]>
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 | ||
1344 | wxPyApp* wxGetApp() { | |
1345 | return (wxPyApp*)wxTheApp; | |
1346 | } | |
1347 | ||
1348 | ||
1349 | ||
1350 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1351 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } | |
1352 | void delete_wxVisualAttributes(wxVisualAttributes *self){} | |
1353 | PyObject *wxWindow_GetChildren(wxWindow *self){ | |
1354 | wxWindowList& list = self->GetChildren(); | |
1355 | return wxPy_ConvertList(&list); | |
1356 | } | |
1357 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1358 | #if wxUSE_HOTKEY | |
1359 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1360 | #else | |
1361 | return False; | |
1362 | #endif | |
1363 | } | |
1364 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1365 | ||
1366 | ||
1367 | ||
1368 | return False; | |
1369 | ||
1370 | } | |
1371 | long wxWindow_GetHandle(wxWindow *self){ | |
1372 | return wxPyGetWinHandle(self); | |
1373 | } | |
1374 | ||
1375 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1376 | return wxWindow::FindWindowById(id, parent); | |
1377 | } | |
1378 | ||
1379 | wxWindow* wxFindWindowByName( const wxString& name, | |
1380 | const wxWindow *parent = NULL ) { | |
1381 | return wxWindow::FindWindowByName(name, parent); | |
1382 | } | |
1383 | ||
1384 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1385 | const wxWindow *parent = NULL ) { | |
1386 | return wxWindow::FindWindowByLabel(label, parent); | |
1387 | } | |
1388 | ||
1389 | ||
1390 | #ifdef __WXMSW__ | |
1391 | #include <wx/msw/private.h> // to get wxGetWindowId | |
1392 | #endif | |
1393 | ||
1394 | ||
1395 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1396 | #ifdef __WXMSW__ | |
1397 | WXHWND hWnd = (WXHWND)_hWnd; | |
1398 | long id = wxGetWindowId(hWnd); | |
1399 | wxWindow* win = new wxWindow; | |
1400 | parent->AddChild(win); | |
1401 | win->SetEventHandler(win); | |
1402 | win->SetHWND(hWnd); | |
1403 | win->SetId(id); | |
1404 | win->SubclassWin(hWnd); | |
1405 | win->AdoptAttributesFromHWND(); | |
1406 | win->SetupColours(); | |
1407 | return win; | |
1408 | #else | |
1409 | wxPyRaiseNotImplemented(); | |
1410 | return NULL; | |
1411 | #endif | |
1412 | } | |
1413 | ||
1414 | ||
1415 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1416 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1417 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1418 | ||
1419 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1420 | ||
1421 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1422 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1423 | wxMenuItemList& list = self->GetMenuItems(); | |
1424 | return wxPy_ConvertList(&list); | |
1425 | } | |
1426 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1427 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ | |
1428 | if (clientData) { | |
1429 | wxPyClientData* data = new wxPyClientData(clientData); | |
1430 | return self->Append(item, data); | |
1431 | } else | |
1432 | return self->Append(item); | |
1433 | } | |
1434 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1435 | if (clientData) { | |
1436 | wxPyClientData* data = new wxPyClientData(clientData); | |
1437 | return self->Insert(item, pos, data); | |
1438 | } else | |
1439 | return self->Insert(item, pos); | |
1440 | } | |
1441 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1442 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1443 | if (data) { | |
1444 | Py_INCREF(data->m_obj); | |
1445 | return data->m_obj; | |
1446 | } else { | |
1447 | Py_INCREF(Py_None); | |
1448 | return Py_None; | |
1449 | } | |
1450 | } | |
1451 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1452 | wxPyClientData* data = new wxPyClientData(clientData); | |
1453 | self->SetClientObject(n, data); | |
1454 | } | |
1455 | ||
1456 | ||
1457 | ||
1458 | #include <float.h> | |
1459 | ||
1460 | SWIGSTATIC(float) | |
1461 | SWIG_FloatCast(double value) | |
1462 | { | |
1463 | float f = 0; | |
1464 | if (!PyErr_Occurred()) { | |
1465 | if (value < FLT_MIN) { | |
1466 | PyObject *err = | |
1467 | PyString_FromFormat("value %g is less than float minimum %g", | |
1468 | value, FLT_MIN); | |
1469 | PyErr_SetObject(PyExc_OverflowError, err); | |
1470 | Py_DECREF(err); | |
1471 | } else if (value > FLT_MAX) { | |
1472 | PyObject *err = | |
1473 | PyString_FromFormat("value %g is greater than float maximum %g", | |
1474 | value, FLT_MAX); | |
1475 | PyErr_SetObject(PyExc_OverflowError, err); | |
1476 | Py_DECREF(err); | |
1477 | } else { | |
1478 | f = swig_numeric_cast(float, value); | |
1479 | } | |
1480 | } | |
1481 | return f; | |
1482 | } | |
1483 | ||
1484 | ||
1485 | SWIGSTATICINLINE(float) | |
1486 | SWIG_AsFloat(PyObject *obj) | |
1487 | { | |
1488 | return SWIG_FloatCast(SWIG_AsDouble(obj)); | |
1489 | } | |
1490 | ||
1491 | ||
1492 | SWIGSTATICINLINE(int) | |
1493 | SWIG_CheckFloat(PyObject* obj) | |
1494 | { | |
1495 | SWIG_AsFloat(obj); | |
1496 | if (PyErr_Occurred()) { | |
1497 | PyErr_Clear(); | |
1498 | return 0; | |
1499 | } else { | |
1500 | return 1; | |
1501 | } | |
1502 | } | |
1503 | ||
1504 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
1505 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1506 | if (data) { | |
1507 | Py_INCREF(data->m_obj); | |
1508 | return data->m_obj; | |
1509 | } else { | |
1510 | Py_INCREF(Py_None); | |
1511 | return Py_None; | |
1512 | } | |
1513 | } | |
1514 | ||
1515 | // Figure out the type of the sizer item | |
1516 | ||
1517 | struct wxPySizerItemInfo { | |
1518 | wxPySizerItemInfo() | |
1519 | : window(NULL), sizer(NULL), gotSize(False), | |
1520 | size(wxDefaultSize), gotPos(False), pos(-1) | |
1521 | {} | |
1522 | ||
1523 | wxWindow* window; | |
1524 | wxSizer* sizer; | |
1525 | bool gotSize; | |
1526 | wxSize size; | |
1527 | bool gotPos; | |
1528 | int pos; | |
1529 | }; | |
1530 | ||
1531 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1532 | ||
1533 | wxPySizerItemInfo info; | |
1534 | wxSize size; | |
1535 | wxSize* sizePtr = &size; | |
1536 | ||
1537 | // Find out what the type of the item is | |
1538 | // try wxWindow | |
1539 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1540 | PyErr_Clear(); | |
1541 | info.window = NULL; | |
1542 | ||
1543 | // try wxSizer | |
1544 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1545 | PyErr_Clear(); | |
1546 | info.sizer = NULL; | |
1547 | ||
1548 | // try wxSize or (w,h) | |
1549 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1550 | info.size = *sizePtr; | |
1551 | info.gotSize = True; | |
1552 | } | |
1553 | ||
1554 | // or a single int | |
1555 | if (checkIdx && PyInt_Check(item)) { | |
1556 | info.pos = PyInt_AsLong(item); | |
1557 | info.gotPos = True; | |
1558 | } | |
1559 | } | |
1560 | } | |
1561 | ||
1562 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1563 | // no expected type, figure out what kind of error message to generate | |
1564 | if ( !checkSize && !checkIdx ) | |
1565 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1566 | else if ( checkSize && !checkIdx ) | |
1567 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1568 | else if ( !checkSize && checkIdx) | |
1569 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1570 | else | |
1571 | // can this one happen? | |
1572 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1573 | } | |
1574 | ||
1575 | return info; | |
1576 | } | |
1577 | ||
1578 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1579 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1580 | } | |
1581 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1582 | ||
1583 | wxPyUserData* data = NULL; | |
1584 | bool blocked = wxPyBeginBlockThreads(); | |
1585 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1586 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1587 | data = new wxPyUserData(userData); | |
1588 | wxPyEndBlockThreads(blocked); | |
1589 | ||
1590 | // Now call the real Add method if a valid item type was found | |
1591 | if ( info.window ) | |
1592 | self->Add(info.window, proportion, flag, border, data); | |
1593 | else if ( info.sizer ) | |
1594 | self->Add(info.sizer, proportion, flag, border, data); | |
1595 | else if (info.gotSize) | |
1596 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1597 | proportion, flag, border, data); | |
1598 | } | |
1599 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1600 | ||
1601 | wxPyUserData* data = NULL; | |
1602 | bool blocked = wxPyBeginBlockThreads(); | |
1603 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1604 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1605 | data = new wxPyUserData(userData); | |
1606 | wxPyEndBlockThreads(blocked); | |
1607 | ||
1608 | // Now call the real Insert method if a valid item type was found | |
1609 | if ( info.window ) | |
1610 | self->Insert(before, info.window, proportion, flag, border, data); | |
1611 | else if ( info.sizer ) | |
1612 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1613 | else if (info.gotSize) | |
1614 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1615 | proportion, flag, border, data); | |
1616 | } | |
1617 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1618 | ||
1619 | wxPyUserData* data = NULL; | |
1620 | bool blocked = wxPyBeginBlockThreads(); | |
1621 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1622 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1623 | data = new wxPyUserData(userData); | |
1624 | wxPyEndBlockThreads(blocked); | |
1625 | ||
1626 | // Now call the real Prepend method if a valid item type was found | |
1627 | if ( info.window ) | |
1628 | self->Prepend(info.window, proportion, flag, border, data); | |
1629 | else if ( info.sizer ) | |
1630 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1631 | else if (info.gotSize) | |
1632 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1633 | proportion, flag, border, data); | |
1634 | } | |
1635 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1636 | bool blocked = wxPyBeginBlockThreads(); | |
1637 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); | |
1638 | wxPyEndBlockThreads(blocked); | |
1639 | if ( info.window ) | |
1640 | return self->Remove(info.window); | |
1641 | else if ( info.sizer ) | |
1642 | return self->Remove(info.sizer); | |
1643 | else if ( info.gotPos ) | |
1644 | return self->Remove(info.pos); | |
1645 | else | |
1646 | return False; | |
1647 | } | |
1648 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ | |
1649 | bool blocked = wxPyBeginBlockThreads(); | |
1650 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); | |
1651 | wxPyEndBlockThreads(blocked); | |
1652 | if ( info.window ) | |
1653 | self->SetItemMinSize(info.window, size); | |
1654 | else if ( info.sizer ) | |
1655 | self->SetItemMinSize(info.sizer, size); | |
1656 | else if ( info.gotPos ) | |
1657 | self->SetItemMinSize(info.pos, size); | |
1658 | } | |
1659 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1660 | wxSizerItemList& list = self->GetChildren(); | |
1661 | return wxPy_ConvertList(&list); | |
1662 | } | |
1663 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
c24da6d6 | 1664 | bool blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 1665 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
c24da6d6 | 1666 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1667 | if ( info.window ) |
1668 | self->Show(info.window, show); | |
1669 | else if ( info.sizer ) | |
1670 | self->Show(info.sizer, show); | |
1671 | } | |
1672 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
c24da6d6 | 1673 | bool blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 1674 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
c24da6d6 | 1675 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1676 | if ( info.window ) |
1677 | self->Hide(info.window); | |
1678 | else if ( info.sizer ) | |
1679 | self->Hide(info.sizer); | |
1680 | } | |
1681 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
c24da6d6 | 1682 | bool blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 1683 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
c24da6d6 | 1684 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1685 | if ( info.window ) |
1686 | return self->IsShown(info.window); | |
1687 | else if ( info.sizer ) | |
1688 | return self->IsShown(info.sizer); | |
1689 | else | |
1690 | return False; | |
1691 | } | |
1692 | ||
1693 | // See pyclasses.h | |
1694 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1695 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1696 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1697 | ||
1698 | ||
1699 | ||
1700 | ||
1701 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1702 | { | |
1703 | if (source == Py_None) { | |
1704 | **obj = wxGBPosition(-1,-1); | |
1705 | return True; | |
1706 | } | |
1707 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1708 | } | |
1709 | ||
1710 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1711 | { | |
1712 | if (source == Py_None) { | |
1713 | **obj = wxGBSpan(-1,-1); | |
1714 | return True; | |
1715 | } | |
1716 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1717 | } | |
1718 | ||
1719 | ||
1720 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ | |
1721 | self->SetRow(row); | |
1722 | self->SetCol(col); | |
1723 | } | |
1724 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
1725 | bool blocked = wxPyBeginBlockThreads(); | |
1726 | PyObject* tup = PyTuple_New(2); | |
1727 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1728 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1729 | wxPyEndBlockThreads(blocked); | |
1730 | return tup; | |
1731 | } | |
1732 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ | |
1733 | self->SetRowspan(rowspan); | |
1734 | self->SetColspan(colspan); | |
1735 | } | |
1736 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
1737 | bool blocked = wxPyBeginBlockThreads(); | |
1738 | PyObject* tup = PyTuple_New(2); | |
1739 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1740 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
1741 | wxPyEndBlockThreads(blocked); | |
1742 | return tup; | |
1743 | } | |
1744 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1745 | ||
1746 | wxPyUserData* data = NULL; | |
1747 | bool blocked = wxPyBeginBlockThreads(); | |
1748 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1749 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1750 | data = new wxPyUserData(userData); | |
1751 | wxPyEndBlockThreads(blocked); | |
1752 | ||
1753 | // Now call the real Add method if a valid item type was found | |
1754 | if ( info.window ) | |
1755 | return self->Add(info.window, pos, span, flag, border, data); | |
1756 | else if ( info.sizer ) | |
1757 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1758 | else if (info.gotSize) | |
1759 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1760 | pos, span, flag, border, data); | |
1761 | return False; | |
1762 | } | |
1763 | ||
1764 | ||
1765 | #ifdef __cplusplus | |
1766 | extern "C" { | |
1767 | #endif | |
1768 | static int _wrap_EmptyString_set(PyObject *_val) { | |
1769 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); | |
1770 | return 1; | |
1771 | } | |
1772 | ||
1773 | ||
1774 | static PyObject *_wrap_EmptyString_get() { | |
1775 | PyObject *pyobj; | |
1776 | ||
1777 | { | |
1778 | #if wxUSE_UNICODE | |
1779 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1780 | #else | |
1781 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1782 | #endif | |
1783 | } | |
1784 | return pyobj; | |
1785 | } | |
1786 | ||
1787 | ||
1788 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1789 | PyObject *resultobj; | |
1790 | wxObject *arg1 = (wxObject *) 0 ; | |
1791 | wxString result; | |
1792 | PyObject * obj0 = 0 ; | |
1793 | char *kwnames[] = { | |
1794 | (char *) "self", NULL | |
1795 | }; | |
1796 | ||
1797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
1798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
1799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1800 | { | |
1801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1802 | result = wxObject_GetClassName(arg1); | |
1803 | ||
1804 | wxPyEndAllowThreads(__tstate); | |
1805 | if (PyErr_Occurred()) SWIG_fail; | |
1806 | } | |
1807 | { | |
1808 | #if wxUSE_UNICODE | |
1809 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1810 | #else | |
1811 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1812 | #endif | |
1813 | } | |
1814 | return resultobj; | |
1815 | fail: | |
1816 | return NULL; | |
1817 | } | |
1818 | ||
1819 | ||
1820 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1821 | PyObject *resultobj; | |
1822 | wxObject *arg1 = (wxObject *) 0 ; | |
1823 | PyObject * obj0 = 0 ; | |
1824 | char *kwnames[] = { | |
1825 | (char *) "self", NULL | |
1826 | }; | |
1827 | ||
1828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
1829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
1830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1831 | { | |
1832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1833 | wxObject_Destroy(arg1); | |
1834 | ||
1835 | wxPyEndAllowThreads(__tstate); | |
1836 | if (PyErr_Occurred()) SWIG_fail; | |
1837 | } | |
1838 | Py_INCREF(Py_None); resultobj = Py_None; | |
1839 | return resultobj; | |
1840 | fail: | |
1841 | return NULL; | |
1842 | } | |
1843 | ||
1844 | ||
1845 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1846 | PyObject *obj; | |
1847 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1848 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1849 | Py_INCREF(obj); | |
1850 | return Py_BuildValue((char *)""); | |
1851 | } | |
1852 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1853 | PyObject *resultobj; | |
1854 | wxSize *arg1 = (wxSize *) 0 ; | |
1855 | int arg2 ; | |
1856 | PyObject * obj0 = 0 ; | |
1857 | PyObject * obj1 = 0 ; | |
1858 | char *kwnames[] = { | |
1859 | (char *) "self",(char *) "x", NULL | |
1860 | }; | |
1861 | ||
1862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; | |
1863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1865 | arg2 = (int) SWIG_AsInt(obj1); | |
1866 | if (PyErr_Occurred()) SWIG_fail; | |
1867 | if (arg1) (arg1)->x = arg2; | |
1868 | ||
1869 | Py_INCREF(Py_None); resultobj = Py_None; | |
1870 | return resultobj; | |
1871 | fail: | |
1872 | return NULL; | |
1873 | } | |
1874 | ||
1875 | ||
1876 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1877 | PyObject *resultobj; | |
1878 | wxSize *arg1 = (wxSize *) 0 ; | |
1879 | int result; | |
1880 | PyObject * obj0 = 0 ; | |
1881 | char *kwnames[] = { | |
1882 | (char *) "self", NULL | |
1883 | }; | |
1884 | ||
1885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
1886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1888 | result = (int) ((arg1)->x); | |
1889 | ||
1890 | resultobj = SWIG_FromInt((int)result); | |
1891 | return resultobj; | |
1892 | fail: | |
1893 | return NULL; | |
1894 | } | |
1895 | ||
1896 | ||
1897 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1898 | PyObject *resultobj; | |
1899 | wxSize *arg1 = (wxSize *) 0 ; | |
1900 | int arg2 ; | |
1901 | PyObject * obj0 = 0 ; | |
1902 | PyObject * obj1 = 0 ; | |
1903 | char *kwnames[] = { | |
1904 | (char *) "self",(char *) "y", NULL | |
1905 | }; | |
1906 | ||
1907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; | |
1908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1910 | arg2 = (int) SWIG_AsInt(obj1); | |
1911 | if (PyErr_Occurred()) SWIG_fail; | |
1912 | if (arg1) (arg1)->y = arg2; | |
1913 | ||
1914 | Py_INCREF(Py_None); resultobj = Py_None; | |
1915 | return resultobj; | |
1916 | fail: | |
1917 | return NULL; | |
1918 | } | |
1919 | ||
1920 | ||
1921 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1922 | PyObject *resultobj; | |
1923 | wxSize *arg1 = (wxSize *) 0 ; | |
1924 | int result; | |
1925 | PyObject * obj0 = 0 ; | |
1926 | char *kwnames[] = { | |
1927 | (char *) "self", NULL | |
1928 | }; | |
1929 | ||
1930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
1931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1933 | result = (int) ((arg1)->y); | |
1934 | ||
1935 | resultobj = SWIG_FromInt((int)result); | |
1936 | return resultobj; | |
1937 | fail: | |
1938 | return NULL; | |
1939 | } | |
1940 | ||
1941 | ||
1942 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1943 | PyObject *resultobj; | |
1944 | int arg1 = (int) 0 ; | |
1945 | int arg2 = (int) 0 ; | |
1946 | wxSize *result; | |
1947 | PyObject * obj0 = 0 ; | |
1948 | PyObject * obj1 = 0 ; | |
1949 | char *kwnames[] = { | |
1950 | (char *) "w",(char *) "h", NULL | |
1951 | }; | |
1952 | ||
1953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; | |
1954 | if (obj0) { | |
1955 | arg1 = (int) SWIG_AsInt(obj0); | |
1956 | if (PyErr_Occurred()) SWIG_fail; | |
1957 | } | |
1958 | if (obj1) { | |
1959 | arg2 = (int) SWIG_AsInt(obj1); | |
1960 | if (PyErr_Occurred()) SWIG_fail; | |
1961 | } | |
1962 | { | |
1963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1964 | result = (wxSize *)new wxSize(arg1,arg2); | |
1965 | ||
1966 | wxPyEndAllowThreads(__tstate); | |
1967 | if (PyErr_Occurred()) SWIG_fail; | |
1968 | } | |
1969 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); | |
1970 | return resultobj; | |
1971 | fail: | |
1972 | return NULL; | |
1973 | } | |
1974 | ||
1975 | ||
1976 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1977 | PyObject *resultobj; | |
1978 | wxSize *arg1 = (wxSize *) 0 ; | |
1979 | PyObject * obj0 = 0 ; | |
1980 | char *kwnames[] = { | |
1981 | (char *) "self", NULL | |
1982 | }; | |
1983 | ||
1984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
1985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1987 | { | |
1988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1989 | delete arg1; | |
1990 | ||
1991 | wxPyEndAllowThreads(__tstate); | |
1992 | if (PyErr_Occurred()) SWIG_fail; | |
1993 | } | |
1994 | Py_INCREF(Py_None); resultobj = Py_None; | |
1995 | return resultobj; | |
1996 | fail: | |
1997 | return NULL; | |
1998 | } | |
1999 | ||
2000 | ||
2001 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2002 | PyObject *resultobj; | |
2003 | wxSize *arg1 = (wxSize *) 0 ; | |
2004 | wxSize *arg2 = 0 ; | |
2005 | bool result; | |
2006 | wxSize temp2 ; | |
2007 | PyObject * obj0 = 0 ; | |
2008 | PyObject * obj1 = 0 ; | |
2009 | char *kwnames[] = { | |
2010 | (char *) "self",(char *) "sz", NULL | |
2011 | }; | |
2012 | ||
2013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2016 | { | |
2017 | arg2 = &temp2; | |
2018 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2019 | } | |
2020 | { | |
2021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2022 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); | |
2023 | ||
2024 | wxPyEndAllowThreads(__tstate); | |
2025 | if (PyErr_Occurred()) SWIG_fail; | |
2026 | } | |
2027 | { | |
2028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2029 | } | |
2030 | return resultobj; | |
2031 | fail: | |
2032 | return NULL; | |
2033 | } | |
2034 | ||
2035 | ||
2036 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2037 | PyObject *resultobj; | |
2038 | wxSize *arg1 = (wxSize *) 0 ; | |
2039 | wxSize *arg2 = 0 ; | |
2040 | bool result; | |
2041 | wxSize temp2 ; | |
2042 | PyObject * obj0 = 0 ; | |
2043 | PyObject * obj1 = 0 ; | |
2044 | char *kwnames[] = { | |
2045 | (char *) "self",(char *) "sz", NULL | |
2046 | }; | |
2047 | ||
2048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2051 | { | |
2052 | arg2 = &temp2; | |
2053 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2054 | } | |
2055 | { | |
2056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2057 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); | |
2058 | ||
2059 | wxPyEndAllowThreads(__tstate); | |
2060 | if (PyErr_Occurred()) SWIG_fail; | |
2061 | } | |
2062 | { | |
2063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2064 | } | |
2065 | return resultobj; | |
2066 | fail: | |
2067 | return NULL; | |
2068 | } | |
2069 | ||
2070 | ||
2071 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2072 | PyObject *resultobj; | |
2073 | wxSize *arg1 = (wxSize *) 0 ; | |
2074 | wxSize *arg2 = 0 ; | |
2075 | wxSize result; | |
2076 | wxSize temp2 ; | |
2077 | PyObject * obj0 = 0 ; | |
2078 | PyObject * obj1 = 0 ; | |
2079 | char *kwnames[] = { | |
2080 | (char *) "self",(char *) "sz", NULL | |
2081 | }; | |
2082 | ||
2083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2086 | { | |
2087 | arg2 = &temp2; | |
2088 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2089 | } | |
2090 | { | |
2091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2092 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2093 | ||
2094 | wxPyEndAllowThreads(__tstate); | |
2095 | if (PyErr_Occurred()) SWIG_fail; | |
2096 | } | |
2097 | { | |
2098 | wxSize * resultptr; | |
2099 | resultptr = new wxSize((wxSize &) result); | |
2100 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2101 | } | |
2102 | return resultobj; | |
2103 | fail: | |
2104 | return NULL; | |
2105 | } | |
2106 | ||
2107 | ||
2108 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2109 | PyObject *resultobj; | |
2110 | wxSize *arg1 = (wxSize *) 0 ; | |
2111 | wxSize *arg2 = 0 ; | |
2112 | wxSize result; | |
2113 | wxSize temp2 ; | |
2114 | PyObject * obj0 = 0 ; | |
2115 | PyObject * obj1 = 0 ; | |
2116 | char *kwnames[] = { | |
2117 | (char *) "self",(char *) "sz", NULL | |
2118 | }; | |
2119 | ||
2120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2123 | { | |
2124 | arg2 = &temp2; | |
2125 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2126 | } | |
2127 | { | |
2128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2129 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2130 | ||
2131 | wxPyEndAllowThreads(__tstate); | |
2132 | if (PyErr_Occurred()) SWIG_fail; | |
2133 | } | |
2134 | { | |
2135 | wxSize * resultptr; | |
2136 | resultptr = new wxSize((wxSize &) result); | |
2137 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2138 | } | |
2139 | return resultobj; | |
2140 | fail: | |
2141 | return NULL; | |
2142 | } | |
2143 | ||
2144 | ||
2145 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2146 | PyObject *resultobj; | |
2147 | wxSize *arg1 = (wxSize *) 0 ; | |
2148 | wxSize *arg2 = 0 ; | |
2149 | wxSize temp2 ; | |
2150 | PyObject * obj0 = 0 ; | |
2151 | PyObject * obj1 = 0 ; | |
2152 | char *kwnames[] = { | |
2153 | (char *) "self",(char *) "sz", NULL | |
2154 | }; | |
2155 | ||
2156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2159 | { | |
2160 | arg2 = &temp2; | |
2161 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2162 | } | |
2163 | { | |
2164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2165 | (arg1)->IncTo((wxSize const &)*arg2); | |
2166 | ||
2167 | wxPyEndAllowThreads(__tstate); | |
2168 | if (PyErr_Occurred()) SWIG_fail; | |
2169 | } | |
2170 | Py_INCREF(Py_None); resultobj = Py_None; | |
2171 | return resultobj; | |
2172 | fail: | |
2173 | return NULL; | |
2174 | } | |
2175 | ||
2176 | ||
2177 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2178 | PyObject *resultobj; | |
2179 | wxSize *arg1 = (wxSize *) 0 ; | |
2180 | wxSize *arg2 = 0 ; | |
2181 | wxSize temp2 ; | |
2182 | PyObject * obj0 = 0 ; | |
2183 | PyObject * obj1 = 0 ; | |
2184 | char *kwnames[] = { | |
2185 | (char *) "self",(char *) "sz", NULL | |
2186 | }; | |
2187 | ||
2188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2191 | { | |
2192 | arg2 = &temp2; | |
2193 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2194 | } | |
2195 | { | |
2196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2197 | (arg1)->DecTo((wxSize const &)*arg2); | |
2198 | ||
2199 | wxPyEndAllowThreads(__tstate); | |
2200 | if (PyErr_Occurred()) SWIG_fail; | |
2201 | } | |
2202 | Py_INCREF(Py_None); resultobj = Py_None; | |
2203 | return resultobj; | |
2204 | fail: | |
2205 | return NULL; | |
2206 | } | |
2207 | ||
2208 | ||
2209 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2210 | PyObject *resultobj; | |
2211 | wxSize *arg1 = (wxSize *) 0 ; | |
2212 | int arg2 ; | |
2213 | int arg3 ; | |
2214 | PyObject * obj0 = 0 ; | |
2215 | PyObject * obj1 = 0 ; | |
2216 | PyObject * obj2 = 0 ; | |
2217 | char *kwnames[] = { | |
2218 | (char *) "self",(char *) "w",(char *) "h", NULL | |
2219 | }; | |
2220 | ||
2221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2224 | arg2 = (int) SWIG_AsInt(obj1); | |
2225 | if (PyErr_Occurred()) SWIG_fail; | |
2226 | arg3 = (int) SWIG_AsInt(obj2); | |
2227 | if (PyErr_Occurred()) SWIG_fail; | |
2228 | { | |
2229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2230 | (arg1)->Set(arg2,arg3); | |
2231 | ||
2232 | wxPyEndAllowThreads(__tstate); | |
2233 | if (PyErr_Occurred()) SWIG_fail; | |
2234 | } | |
2235 | Py_INCREF(Py_None); resultobj = Py_None; | |
2236 | return resultobj; | |
2237 | fail: | |
2238 | return NULL; | |
2239 | } | |
2240 | ||
2241 | ||
2242 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2243 | PyObject *resultobj; | |
2244 | wxSize *arg1 = (wxSize *) 0 ; | |
2245 | int arg2 ; | |
2246 | PyObject * obj0 = 0 ; | |
2247 | PyObject * obj1 = 0 ; | |
2248 | char *kwnames[] = { | |
2249 | (char *) "self",(char *) "w", NULL | |
2250 | }; | |
2251 | ||
2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2255 | arg2 = (int) SWIG_AsInt(obj1); | |
2256 | if (PyErr_Occurred()) SWIG_fail; | |
2257 | { | |
2258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2259 | (arg1)->SetWidth(arg2); | |
2260 | ||
2261 | wxPyEndAllowThreads(__tstate); | |
2262 | if (PyErr_Occurred()) SWIG_fail; | |
2263 | } | |
2264 | Py_INCREF(Py_None); resultobj = Py_None; | |
2265 | return resultobj; | |
2266 | fail: | |
2267 | return NULL; | |
2268 | } | |
2269 | ||
2270 | ||
2271 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2272 | PyObject *resultobj; | |
2273 | wxSize *arg1 = (wxSize *) 0 ; | |
2274 | int arg2 ; | |
2275 | PyObject * obj0 = 0 ; | |
2276 | PyObject * obj1 = 0 ; | |
2277 | char *kwnames[] = { | |
2278 | (char *) "self",(char *) "h", NULL | |
2279 | }; | |
2280 | ||
2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
2282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2284 | arg2 = (int) SWIG_AsInt(obj1); | |
2285 | if (PyErr_Occurred()) SWIG_fail; | |
2286 | { | |
2287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2288 | (arg1)->SetHeight(arg2); | |
2289 | ||
2290 | wxPyEndAllowThreads(__tstate); | |
2291 | if (PyErr_Occurred()) SWIG_fail; | |
2292 | } | |
2293 | Py_INCREF(Py_None); resultobj = Py_None; | |
2294 | return resultobj; | |
2295 | fail: | |
2296 | return NULL; | |
2297 | } | |
2298 | ||
2299 | ||
2300 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2301 | PyObject *resultobj; | |
2302 | wxSize *arg1 = (wxSize *) 0 ; | |
2303 | int result; | |
2304 | PyObject * obj0 = 0 ; | |
2305 | char *kwnames[] = { | |
2306 | (char *) "self", NULL | |
2307 | }; | |
2308 | ||
2309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2312 | { | |
2313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2314 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2315 | ||
2316 | wxPyEndAllowThreads(__tstate); | |
2317 | if (PyErr_Occurred()) SWIG_fail; | |
2318 | } | |
2319 | resultobj = SWIG_FromInt((int)result); | |
2320 | return resultobj; | |
2321 | fail: | |
2322 | return NULL; | |
2323 | } | |
2324 | ||
2325 | ||
2326 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2327 | PyObject *resultobj; | |
2328 | wxSize *arg1 = (wxSize *) 0 ; | |
2329 | int result; | |
2330 | PyObject * obj0 = 0 ; | |
2331 | char *kwnames[] = { | |
2332 | (char *) "self", NULL | |
2333 | }; | |
2334 | ||
2335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2338 | { | |
2339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2340 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2341 | ||
2342 | wxPyEndAllowThreads(__tstate); | |
2343 | if (PyErr_Occurred()) SWIG_fail; | |
2344 | } | |
2345 | resultobj = SWIG_FromInt((int)result); | |
2346 | return resultobj; | |
2347 | fail: | |
2348 | return NULL; | |
2349 | } | |
2350 | ||
2351 | ||
2352 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2353 | PyObject *resultobj; | |
2354 | wxSize *arg1 = (wxSize *) 0 ; | |
2355 | bool result; | |
2356 | PyObject * obj0 = 0 ; | |
2357 | char *kwnames[] = { | |
2358 | (char *) "self", NULL | |
2359 | }; | |
2360 | ||
2361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2364 | { | |
2365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2366 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2367 | ||
2368 | wxPyEndAllowThreads(__tstate); | |
2369 | if (PyErr_Occurred()) SWIG_fail; | |
2370 | } | |
2371 | { | |
2372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2373 | } | |
2374 | return resultobj; | |
2375 | fail: | |
2376 | return NULL; | |
2377 | } | |
2378 | ||
2379 | ||
2380 | static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2381 | PyObject *resultobj; | |
2382 | wxSize *arg1 = (wxSize *) 0 ; | |
2383 | wxSize *arg2 = 0 ; | |
2384 | wxSize temp2 ; | |
2385 | PyObject * obj0 = 0 ; | |
2386 | PyObject * obj1 = 0 ; | |
2387 | char *kwnames[] = { | |
2388 | (char *) "self",(char *) "size", NULL | |
2389 | }; | |
2390 | ||
2391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2394 | { | |
2395 | arg2 = &temp2; | |
2396 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2397 | } | |
2398 | { | |
2399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2400 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2401 | ||
2402 | wxPyEndAllowThreads(__tstate); | |
2403 | if (PyErr_Occurred()) SWIG_fail; | |
2404 | } | |
2405 | Py_INCREF(Py_None); resultobj = Py_None; | |
2406 | return resultobj; | |
2407 | fail: | |
2408 | return NULL; | |
2409 | } | |
2410 | ||
2411 | ||
2412 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2413 | PyObject *resultobj; | |
2414 | wxSize *arg1 = (wxSize *) 0 ; | |
2415 | PyObject *result; | |
2416 | PyObject * obj0 = 0 ; | |
2417 | char *kwnames[] = { | |
2418 | (char *) "self", NULL | |
2419 | }; | |
2420 | ||
2421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; | |
2422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2424 | { | |
2425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2426 | result = (PyObject *)wxSize_Get(arg1); | |
2427 | ||
2428 | wxPyEndAllowThreads(__tstate); | |
2429 | if (PyErr_Occurred()) SWIG_fail; | |
2430 | } | |
2431 | resultobj = result; | |
2432 | return resultobj; | |
2433 | fail: | |
2434 | return NULL; | |
2435 | } | |
2436 | ||
2437 | ||
2438 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2439 | PyObject *obj; | |
2440 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2441 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2442 | Py_INCREF(obj); | |
2443 | return Py_BuildValue((char *)""); | |
2444 | } | |
2445 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2446 | PyObject *resultobj; | |
2447 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2448 | double arg2 ; | |
2449 | PyObject * obj0 = 0 ; | |
2450 | PyObject * obj1 = 0 ; | |
2451 | char *kwnames[] = { | |
2452 | (char *) "self",(char *) "x", NULL | |
2453 | }; | |
2454 | ||
2455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2458 | arg2 = (double) SWIG_AsDouble(obj1); | |
2459 | if (PyErr_Occurred()) SWIG_fail; | |
2460 | if (arg1) (arg1)->x = arg2; | |
2461 | ||
2462 | Py_INCREF(Py_None); resultobj = Py_None; | |
2463 | return resultobj; | |
2464 | fail: | |
2465 | return NULL; | |
2466 | } | |
2467 | ||
2468 | ||
2469 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2470 | PyObject *resultobj; | |
2471 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2472 | double result; | |
2473 | PyObject * obj0 = 0 ; | |
2474 | char *kwnames[] = { | |
2475 | (char *) "self", NULL | |
2476 | }; | |
2477 | ||
2478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2481 | result = (double) ((arg1)->x); | |
2482 | ||
2483 | resultobj = SWIG_FromDouble((double)result); | |
2484 | return resultobj; | |
2485 | fail: | |
2486 | return NULL; | |
2487 | } | |
2488 | ||
2489 | ||
2490 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2491 | PyObject *resultobj; | |
2492 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2493 | double arg2 ; | |
2494 | PyObject * obj0 = 0 ; | |
2495 | PyObject * obj1 = 0 ; | |
2496 | char *kwnames[] = { | |
2497 | (char *) "self",(char *) "y", NULL | |
2498 | }; | |
2499 | ||
2500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2503 | arg2 = (double) SWIG_AsDouble(obj1); | |
2504 | if (PyErr_Occurred()) SWIG_fail; | |
2505 | if (arg1) (arg1)->y = arg2; | |
2506 | ||
2507 | Py_INCREF(Py_None); resultobj = Py_None; | |
2508 | return resultobj; | |
2509 | fail: | |
2510 | return NULL; | |
2511 | } | |
2512 | ||
2513 | ||
2514 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2515 | PyObject *resultobj; | |
2516 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2517 | double result; | |
2518 | PyObject * obj0 = 0 ; | |
2519 | char *kwnames[] = { | |
2520 | (char *) "self", NULL | |
2521 | }; | |
2522 | ||
2523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2526 | result = (double) ((arg1)->y); | |
2527 | ||
2528 | resultobj = SWIG_FromDouble((double)result); | |
2529 | return resultobj; | |
2530 | fail: | |
2531 | return NULL; | |
2532 | } | |
2533 | ||
2534 | ||
2535 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2536 | PyObject *resultobj; | |
2537 | double arg1 = (double) 0.0 ; | |
2538 | double arg2 = (double) 0.0 ; | |
2539 | wxRealPoint *result; | |
2540 | PyObject * obj0 = 0 ; | |
2541 | PyObject * obj1 = 0 ; | |
2542 | char *kwnames[] = { | |
2543 | (char *) "x",(char *) "y", NULL | |
2544 | }; | |
2545 | ||
2546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; | |
2547 | if (obj0) { | |
2548 | arg1 = (double) SWIG_AsDouble(obj0); | |
2549 | if (PyErr_Occurred()) SWIG_fail; | |
2550 | } | |
2551 | if (obj1) { | |
2552 | arg2 = (double) SWIG_AsDouble(obj1); | |
2553 | if (PyErr_Occurred()) SWIG_fail; | |
2554 | } | |
2555 | { | |
2556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2557 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2558 | ||
2559 | wxPyEndAllowThreads(__tstate); | |
2560 | if (PyErr_Occurred()) SWIG_fail; | |
2561 | } | |
2562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); | |
2563 | return resultobj; | |
2564 | fail: | |
2565 | return NULL; | |
2566 | } | |
2567 | ||
2568 | ||
2569 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2570 | PyObject *resultobj; | |
2571 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2572 | PyObject * obj0 = 0 ; | |
2573 | char *kwnames[] = { | |
2574 | (char *) "self", NULL | |
2575 | }; | |
2576 | ||
2577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2580 | { | |
2581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2582 | delete arg1; | |
2583 | ||
2584 | wxPyEndAllowThreads(__tstate); | |
2585 | if (PyErr_Occurred()) SWIG_fail; | |
2586 | } | |
2587 | Py_INCREF(Py_None); resultobj = Py_None; | |
2588 | return resultobj; | |
2589 | fail: | |
2590 | return NULL; | |
2591 | } | |
2592 | ||
2593 | ||
2594 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2595 | PyObject *resultobj; | |
2596 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2597 | wxRealPoint *arg2 = 0 ; | |
2598 | bool result; | |
2599 | wxRealPoint temp2 ; | |
2600 | PyObject * obj0 = 0 ; | |
2601 | PyObject * obj1 = 0 ; | |
2602 | char *kwnames[] = { | |
2603 | (char *) "self",(char *) "pt", NULL | |
2604 | }; | |
2605 | ||
2606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2609 | { | |
2610 | arg2 = &temp2; | |
2611 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2612 | } | |
2613 | { | |
2614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2615 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); | |
2616 | ||
2617 | wxPyEndAllowThreads(__tstate); | |
2618 | if (PyErr_Occurred()) SWIG_fail; | |
2619 | } | |
2620 | { | |
2621 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2622 | } | |
2623 | return resultobj; | |
2624 | fail: | |
2625 | return NULL; | |
2626 | } | |
2627 | ||
2628 | ||
2629 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2630 | PyObject *resultobj; | |
2631 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2632 | wxRealPoint *arg2 = 0 ; | |
2633 | bool result; | |
2634 | wxRealPoint temp2 ; | |
2635 | PyObject * obj0 = 0 ; | |
2636 | PyObject * obj1 = 0 ; | |
2637 | char *kwnames[] = { | |
2638 | (char *) "self",(char *) "pt", NULL | |
2639 | }; | |
2640 | ||
2641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2644 | { | |
2645 | arg2 = &temp2; | |
2646 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2647 | } | |
2648 | { | |
2649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2650 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); | |
2651 | ||
2652 | wxPyEndAllowThreads(__tstate); | |
2653 | if (PyErr_Occurred()) SWIG_fail; | |
2654 | } | |
2655 | { | |
2656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2657 | } | |
2658 | return resultobj; | |
2659 | fail: | |
2660 | return NULL; | |
2661 | } | |
2662 | ||
2663 | ||
2664 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2665 | PyObject *resultobj; | |
2666 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2667 | wxRealPoint *arg2 = 0 ; | |
2668 | wxRealPoint result; | |
2669 | wxRealPoint temp2 ; | |
2670 | PyObject * obj0 = 0 ; | |
2671 | PyObject * obj1 = 0 ; | |
2672 | char *kwnames[] = { | |
2673 | (char *) "self",(char *) "pt", NULL | |
2674 | }; | |
2675 | ||
2676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; | |
2677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2679 | { | |
2680 | arg2 = &temp2; | |
2681 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2682 | } | |
2683 | { | |
2684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2685 | result = (arg1)->operator +((wxRealPoint const &)*arg2); | |
2686 | ||
2687 | wxPyEndAllowThreads(__tstate); | |
2688 | if (PyErr_Occurred()) SWIG_fail; | |
2689 | } | |
2690 | { | |
2691 | wxRealPoint * resultptr; | |
2692 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2693 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
2694 | } | |
2695 | return resultobj; | |
2696 | fail: | |
2697 | return NULL; | |
2698 | } | |
2699 | ||
2700 | ||
2701 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2702 | PyObject *resultobj; | |
2703 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2704 | wxRealPoint *arg2 = 0 ; | |
2705 | wxRealPoint result; | |
2706 | wxRealPoint temp2 ; | |
2707 | PyObject * obj0 = 0 ; | |
2708 | PyObject * obj1 = 0 ; | |
2709 | char *kwnames[] = { | |
2710 | (char *) "self",(char *) "pt", NULL | |
2711 | }; | |
2712 | ||
2713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2716 | { | |
2717 | arg2 = &temp2; | |
2718 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2719 | } | |
2720 | { | |
2721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2722 | result = (arg1)->operator -((wxRealPoint const &)*arg2); | |
2723 | ||
2724 | wxPyEndAllowThreads(__tstate); | |
2725 | if (PyErr_Occurred()) SWIG_fail; | |
2726 | } | |
2727 | { | |
2728 | wxRealPoint * resultptr; | |
2729 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2730 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
2731 | } | |
2732 | return resultobj; | |
2733 | fail: | |
2734 | return NULL; | |
2735 | } | |
2736 | ||
2737 | ||
2738 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2739 | PyObject *resultobj; | |
2740 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2741 | double arg2 ; | |
2742 | double arg3 ; | |
2743 | PyObject * obj0 = 0 ; | |
2744 | PyObject * obj1 = 0 ; | |
2745 | PyObject * obj2 = 0 ; | |
2746 | char *kwnames[] = { | |
2747 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2748 | }; | |
2749 | ||
2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2753 | arg2 = (double) SWIG_AsDouble(obj1); | |
2754 | if (PyErr_Occurred()) SWIG_fail; | |
2755 | arg3 = (double) SWIG_AsDouble(obj2); | |
2756 | if (PyErr_Occurred()) SWIG_fail; | |
2757 | { | |
2758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2759 | wxRealPoint_Set(arg1,arg2,arg3); | |
2760 | ||
2761 | wxPyEndAllowThreads(__tstate); | |
2762 | if (PyErr_Occurred()) SWIG_fail; | |
2763 | } | |
2764 | Py_INCREF(Py_None); resultobj = Py_None; | |
2765 | return resultobj; | |
2766 | fail: | |
2767 | return NULL; | |
2768 | } | |
2769 | ||
2770 | ||
2771 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2772 | PyObject *resultobj; | |
2773 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2774 | PyObject *result; | |
2775 | PyObject * obj0 = 0 ; | |
2776 | char *kwnames[] = { | |
2777 | (char *) "self", NULL | |
2778 | }; | |
2779 | ||
2780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; | |
2781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2783 | { | |
2784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2785 | result = (PyObject *)wxRealPoint_Get(arg1); | |
2786 | ||
2787 | wxPyEndAllowThreads(__tstate); | |
2788 | if (PyErr_Occurred()) SWIG_fail; | |
2789 | } | |
2790 | resultobj = result; | |
2791 | return resultobj; | |
2792 | fail: | |
2793 | return NULL; | |
2794 | } | |
2795 | ||
2796 | ||
2797 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2798 | PyObject *obj; | |
2799 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2800 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2801 | Py_INCREF(obj); | |
2802 | return Py_BuildValue((char *)""); | |
2803 | } | |
2804 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2805 | PyObject *resultobj; | |
2806 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2807 | int arg2 ; | |
2808 | PyObject * obj0 = 0 ; | |
2809 | PyObject * obj1 = 0 ; | |
2810 | char *kwnames[] = { | |
2811 | (char *) "self",(char *) "x", NULL | |
2812 | }; | |
2813 | ||
2814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2817 | arg2 = (int) SWIG_AsInt(obj1); | |
2818 | if (PyErr_Occurred()) SWIG_fail; | |
2819 | if (arg1) (arg1)->x = arg2; | |
2820 | ||
2821 | Py_INCREF(Py_None); resultobj = Py_None; | |
2822 | return resultobj; | |
2823 | fail: | |
2824 | return NULL; | |
2825 | } | |
2826 | ||
2827 | ||
2828 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2829 | PyObject *resultobj; | |
2830 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2831 | int result; | |
2832 | PyObject * obj0 = 0 ; | |
2833 | char *kwnames[] = { | |
2834 | (char *) "self", NULL | |
2835 | }; | |
2836 | ||
2837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2840 | result = (int) ((arg1)->x); | |
2841 | ||
2842 | resultobj = SWIG_FromInt((int)result); | |
2843 | return resultobj; | |
2844 | fail: | |
2845 | return NULL; | |
2846 | } | |
2847 | ||
2848 | ||
2849 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2850 | PyObject *resultobj; | |
2851 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2852 | int arg2 ; | |
2853 | PyObject * obj0 = 0 ; | |
2854 | PyObject * obj1 = 0 ; | |
2855 | char *kwnames[] = { | |
2856 | (char *) "self",(char *) "y", NULL | |
2857 | }; | |
2858 | ||
2859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2862 | arg2 = (int) SWIG_AsInt(obj1); | |
2863 | if (PyErr_Occurred()) SWIG_fail; | |
2864 | if (arg1) (arg1)->y = arg2; | |
2865 | ||
2866 | Py_INCREF(Py_None); resultobj = Py_None; | |
2867 | return resultobj; | |
2868 | fail: | |
2869 | return NULL; | |
2870 | } | |
2871 | ||
2872 | ||
2873 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2874 | PyObject *resultobj; | |
2875 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2876 | int result; | |
2877 | PyObject * obj0 = 0 ; | |
2878 | char *kwnames[] = { | |
2879 | (char *) "self", NULL | |
2880 | }; | |
2881 | ||
2882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2885 | result = (int) ((arg1)->y); | |
2886 | ||
2887 | resultobj = SWIG_FromInt((int)result); | |
2888 | return resultobj; | |
2889 | fail: | |
2890 | return NULL; | |
2891 | } | |
2892 | ||
2893 | ||
2894 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2895 | PyObject *resultobj; | |
2896 | int arg1 = (int) 0 ; | |
2897 | int arg2 = (int) 0 ; | |
2898 | wxPoint *result; | |
2899 | PyObject * obj0 = 0 ; | |
2900 | PyObject * obj1 = 0 ; | |
2901 | char *kwnames[] = { | |
2902 | (char *) "x",(char *) "y", NULL | |
2903 | }; | |
2904 | ||
2905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; | |
2906 | if (obj0) { | |
2907 | arg1 = (int) SWIG_AsInt(obj0); | |
2908 | if (PyErr_Occurred()) SWIG_fail; | |
2909 | } | |
2910 | if (obj1) { | |
2911 | arg2 = (int) SWIG_AsInt(obj1); | |
2912 | if (PyErr_Occurred()) SWIG_fail; | |
2913 | } | |
2914 | { | |
2915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2916 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2917 | ||
2918 | wxPyEndAllowThreads(__tstate); | |
2919 | if (PyErr_Occurred()) SWIG_fail; | |
2920 | } | |
2921 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); | |
2922 | return resultobj; | |
2923 | fail: | |
2924 | return NULL; | |
2925 | } | |
2926 | ||
2927 | ||
2928 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2929 | PyObject *resultobj; | |
2930 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2931 | PyObject * obj0 = 0 ; | |
2932 | char *kwnames[] = { | |
2933 | (char *) "self", NULL | |
2934 | }; | |
2935 | ||
2936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2939 | { | |
2940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2941 | delete arg1; | |
2942 | ||
2943 | wxPyEndAllowThreads(__tstate); | |
2944 | if (PyErr_Occurred()) SWIG_fail; | |
2945 | } | |
2946 | Py_INCREF(Py_None); resultobj = Py_None; | |
2947 | return resultobj; | |
2948 | fail: | |
2949 | return NULL; | |
2950 | } | |
2951 | ||
2952 | ||
2953 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2954 | PyObject *resultobj; | |
2955 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2956 | wxPoint *arg2 = 0 ; | |
2957 | bool result; | |
2958 | wxPoint temp2 ; | |
2959 | PyObject * obj0 = 0 ; | |
2960 | PyObject * obj1 = 0 ; | |
2961 | char *kwnames[] = { | |
2962 | (char *) "self",(char *) "pt", NULL | |
2963 | }; | |
2964 | ||
2965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2968 | { | |
2969 | arg2 = &temp2; | |
2970 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2971 | } | |
2972 | { | |
2973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2974 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); | |
2975 | ||
2976 | wxPyEndAllowThreads(__tstate); | |
2977 | if (PyErr_Occurred()) SWIG_fail; | |
2978 | } | |
2979 | { | |
2980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2981 | } | |
2982 | return resultobj; | |
2983 | fail: | |
2984 | return NULL; | |
2985 | } | |
2986 | ||
2987 | ||
2988 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2989 | PyObject *resultobj; | |
2990 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2991 | wxPoint *arg2 = 0 ; | |
2992 | bool result; | |
2993 | wxPoint temp2 ; | |
2994 | PyObject * obj0 = 0 ; | |
2995 | PyObject * obj1 = 0 ; | |
2996 | char *kwnames[] = { | |
2997 | (char *) "self",(char *) "pt", NULL | |
2998 | }; | |
2999 | ||
3000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3003 | { | |
3004 | arg2 = &temp2; | |
3005 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3006 | } | |
3007 | { | |
3008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3009 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); | |
3010 | ||
3011 | wxPyEndAllowThreads(__tstate); | |
3012 | if (PyErr_Occurred()) SWIG_fail; | |
3013 | } | |
3014 | { | |
3015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3016 | } | |
3017 | return resultobj; | |
3018 | fail: | |
3019 | return NULL; | |
3020 | } | |
3021 | ||
3022 | ||
3023 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3024 | PyObject *resultobj; | |
3025 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3026 | wxPoint *arg2 = 0 ; | |
3027 | wxPoint result; | |
3028 | wxPoint temp2 ; | |
3029 | PyObject * obj0 = 0 ; | |
3030 | PyObject * obj1 = 0 ; | |
3031 | char *kwnames[] = { | |
3032 | (char *) "self",(char *) "pt", NULL | |
3033 | }; | |
3034 | ||
3035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
3036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3038 | { | |
3039 | arg2 = &temp2; | |
3040 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3041 | } | |
3042 | { | |
3043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3044 | result = (arg1)->operator +((wxPoint const &)*arg2); | |
3045 | ||
3046 | wxPyEndAllowThreads(__tstate); | |
3047 | if (PyErr_Occurred()) SWIG_fail; | |
3048 | } | |
3049 | { | |
3050 | wxPoint * resultptr; | |
3051 | resultptr = new wxPoint((wxPoint &) result); | |
3052 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3053 | } | |
3054 | return resultobj; | |
3055 | fail: | |
3056 | return NULL; | |
3057 | } | |
3058 | ||
3059 | ||
3060 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3061 | PyObject *resultobj; | |
3062 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3063 | wxPoint *arg2 = 0 ; | |
3064 | wxPoint result; | |
3065 | wxPoint temp2 ; | |
3066 | PyObject * obj0 = 0 ; | |
3067 | PyObject * obj1 = 0 ; | |
3068 | char *kwnames[] = { | |
3069 | (char *) "self",(char *) "pt", NULL | |
3070 | }; | |
3071 | ||
3072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3075 | { | |
3076 | arg2 = &temp2; | |
3077 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3078 | } | |
3079 | { | |
3080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3081 | result = (arg1)->operator -((wxPoint const &)*arg2); | |
3082 | ||
3083 | wxPyEndAllowThreads(__tstate); | |
3084 | if (PyErr_Occurred()) SWIG_fail; | |
3085 | } | |
3086 | { | |
3087 | wxPoint * resultptr; | |
3088 | resultptr = new wxPoint((wxPoint &) result); | |
3089 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3090 | } | |
3091 | return resultobj; | |
3092 | fail: | |
3093 | return NULL; | |
3094 | } | |
3095 | ||
3096 | ||
3097 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3098 | PyObject *resultobj; | |
3099 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3100 | wxPoint *arg2 = 0 ; | |
3101 | wxPoint *result; | |
3102 | wxPoint temp2 ; | |
3103 | PyObject * obj0 = 0 ; | |
3104 | PyObject * obj1 = 0 ; | |
3105 | char *kwnames[] = { | |
3106 | (char *) "self",(char *) "pt", NULL | |
3107 | }; | |
3108 | ||
3109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3112 | { | |
3113 | arg2 = &temp2; | |
3114 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3115 | } | |
3116 | { | |
3117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3118 | { | |
3119 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3120 | result = (wxPoint *) &_result_ref; | |
3121 | } | |
3122 | ||
3123 | wxPyEndAllowThreads(__tstate); | |
3124 | if (PyErr_Occurred()) SWIG_fail; | |
3125 | } | |
3126 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
3127 | return resultobj; | |
3128 | fail: | |
3129 | return NULL; | |
3130 | } | |
3131 | ||
3132 | ||
3133 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3134 | PyObject *resultobj; | |
3135 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3136 | wxPoint *arg2 = 0 ; | |
3137 | wxPoint *result; | |
3138 | wxPoint temp2 ; | |
3139 | PyObject * obj0 = 0 ; | |
3140 | PyObject * obj1 = 0 ; | |
3141 | char *kwnames[] = { | |
3142 | (char *) "self",(char *) "pt", NULL | |
3143 | }; | |
3144 | ||
3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
3146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3148 | { | |
3149 | arg2 = &temp2; | |
3150 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3151 | } | |
3152 | { | |
3153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3154 | { | |
3155 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3156 | result = (wxPoint *) &_result_ref; | |
3157 | } | |
3158 | ||
3159 | wxPyEndAllowThreads(__tstate); | |
3160 | if (PyErr_Occurred()) SWIG_fail; | |
3161 | } | |
3162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
3163 | return resultobj; | |
3164 | fail: | |
3165 | return NULL; | |
3166 | } | |
3167 | ||
3168 | ||
3169 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3170 | PyObject *resultobj; | |
3171 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3172 | long arg2 ; | |
3173 | long arg3 ; | |
3174 | PyObject * obj0 = 0 ; | |
3175 | PyObject * obj1 = 0 ; | |
3176 | PyObject * obj2 = 0 ; | |
3177 | char *kwnames[] = { | |
3178 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3179 | }; | |
3180 | ||
3181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3184 | arg2 = (long) SWIG_AsLong(obj1); | |
3185 | if (PyErr_Occurred()) SWIG_fail; | |
3186 | arg3 = (long) SWIG_AsLong(obj2); | |
3187 | if (PyErr_Occurred()) SWIG_fail; | |
3188 | { | |
3189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3190 | wxPoint_Set(arg1,arg2,arg3); | |
3191 | ||
3192 | wxPyEndAllowThreads(__tstate); | |
3193 | if (PyErr_Occurred()) SWIG_fail; | |
3194 | } | |
3195 | Py_INCREF(Py_None); resultobj = Py_None; | |
3196 | return resultobj; | |
3197 | fail: | |
3198 | return NULL; | |
3199 | } | |
3200 | ||
3201 | ||
3202 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3203 | PyObject *resultobj; | |
3204 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3205 | PyObject *result; | |
3206 | PyObject * obj0 = 0 ; | |
3207 | char *kwnames[] = { | |
3208 | (char *) "self", NULL | |
3209 | }; | |
3210 | ||
3211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; | |
3212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3214 | { | |
3215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3216 | result = (PyObject *)wxPoint_Get(arg1); | |
3217 | ||
3218 | wxPyEndAllowThreads(__tstate); | |
3219 | if (PyErr_Occurred()) SWIG_fail; | |
3220 | } | |
3221 | resultobj = result; | |
3222 | return resultobj; | |
3223 | fail: | |
3224 | return NULL; | |
3225 | } | |
3226 | ||
3227 | ||
3228 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
3229 | PyObject *obj; | |
3230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3231 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3232 | Py_INCREF(obj); | |
3233 | return Py_BuildValue((char *)""); | |
3234 | } | |
3235 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3236 | PyObject *resultobj; | |
3237 | int arg1 = (int) 0 ; | |
3238 | int arg2 = (int) 0 ; | |
3239 | int arg3 = (int) 0 ; | |
3240 | int arg4 = (int) 0 ; | |
3241 | wxRect *result; | |
3242 | PyObject * obj0 = 0 ; | |
3243 | PyObject * obj1 = 0 ; | |
3244 | PyObject * obj2 = 0 ; | |
3245 | PyObject * obj3 = 0 ; | |
3246 | char *kwnames[] = { | |
3247 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3248 | }; | |
3249 | ||
3250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3251 | if (obj0) { | |
3252 | arg1 = (int) SWIG_AsInt(obj0); | |
3253 | if (PyErr_Occurred()) SWIG_fail; | |
3254 | } | |
3255 | if (obj1) { | |
3256 | arg2 = (int) SWIG_AsInt(obj1); | |
3257 | if (PyErr_Occurred()) SWIG_fail; | |
3258 | } | |
3259 | if (obj2) { | |
3260 | arg3 = (int) SWIG_AsInt(obj2); | |
3261 | if (PyErr_Occurred()) SWIG_fail; | |
3262 | } | |
3263 | if (obj3) { | |
3264 | arg4 = (int) SWIG_AsInt(obj3); | |
3265 | if (PyErr_Occurred()) SWIG_fail; | |
3266 | } | |
3267 | { | |
3268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3269 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3270 | ||
3271 | wxPyEndAllowThreads(__tstate); | |
3272 | if (PyErr_Occurred()) SWIG_fail; | |
3273 | } | |
3274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3275 | return resultobj; | |
3276 | fail: | |
3277 | return NULL; | |
3278 | } | |
3279 | ||
3280 | ||
3281 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3282 | PyObject *resultobj; | |
3283 | wxPoint *arg1 = 0 ; | |
3284 | wxPoint *arg2 = 0 ; | |
3285 | wxRect *result; | |
3286 | wxPoint temp1 ; | |
3287 | wxPoint temp2 ; | |
3288 | PyObject * obj0 = 0 ; | |
3289 | PyObject * obj1 = 0 ; | |
3290 | char *kwnames[] = { | |
3291 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3292 | }; | |
3293 | ||
3294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3295 | { | |
3296 | arg1 = &temp1; | |
3297 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3298 | } | |
3299 | { | |
3300 | arg2 = &temp2; | |
3301 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3302 | } | |
3303 | { | |
3304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3305 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3306 | ||
3307 | wxPyEndAllowThreads(__tstate); | |
3308 | if (PyErr_Occurred()) SWIG_fail; | |
3309 | } | |
3310 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3311 | return resultobj; | |
3312 | fail: | |
3313 | return NULL; | |
3314 | } | |
3315 | ||
3316 | ||
3317 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3318 | PyObject *resultobj; | |
3319 | wxPoint *arg1 = 0 ; | |
3320 | wxSize *arg2 = 0 ; | |
3321 | wxRect *result; | |
3322 | wxPoint temp1 ; | |
3323 | wxSize temp2 ; | |
3324 | PyObject * obj0 = 0 ; | |
3325 | PyObject * obj1 = 0 ; | |
3326 | char *kwnames[] = { | |
3327 | (char *) "pos",(char *) "size", NULL | |
3328 | }; | |
3329 | ||
3330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3331 | { | |
3332 | arg1 = &temp1; | |
3333 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3334 | } | |
3335 | { | |
3336 | arg2 = &temp2; | |
3337 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3338 | } | |
3339 | { | |
3340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3341 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3342 | ||
3343 | wxPyEndAllowThreads(__tstate); | |
3344 | if (PyErr_Occurred()) SWIG_fail; | |
3345 | } | |
3346 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3347 | return resultobj; | |
3348 | fail: | |
3349 | return NULL; | |
3350 | } | |
3351 | ||
3352 | ||
3353 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3354 | PyObject *resultobj; | |
3355 | wxRect *arg1 = (wxRect *) 0 ; | |
3356 | PyObject * obj0 = 0 ; | |
3357 | char *kwnames[] = { | |
3358 | (char *) "self", NULL | |
3359 | }; | |
3360 | ||
3361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
3362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3364 | { | |
3365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3366 | delete arg1; | |
3367 | ||
3368 | wxPyEndAllowThreads(__tstate); | |
3369 | if (PyErr_Occurred()) SWIG_fail; | |
3370 | } | |
3371 | Py_INCREF(Py_None); resultobj = Py_None; | |
3372 | return resultobj; | |
3373 | fail: | |
3374 | return NULL; | |
3375 | } | |
3376 | ||
3377 | ||
3378 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3379 | PyObject *resultobj; | |
3380 | wxRect *arg1 = (wxRect *) 0 ; | |
3381 | int result; | |
3382 | PyObject * obj0 = 0 ; | |
3383 | char *kwnames[] = { | |
3384 | (char *) "self", NULL | |
3385 | }; | |
3386 | ||
3387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
3388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3390 | { | |
3391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3392 | result = (int)((wxRect const *)arg1)->GetX(); | |
3393 | ||
3394 | wxPyEndAllowThreads(__tstate); | |
3395 | if (PyErr_Occurred()) SWIG_fail; | |
3396 | } | |
3397 | resultobj = SWIG_FromInt((int)result); | |
3398 | return resultobj; | |
3399 | fail: | |
3400 | return NULL; | |
3401 | } | |
3402 | ||
3403 | ||
3404 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3405 | PyObject *resultobj; | |
3406 | wxRect *arg1 = (wxRect *) 0 ; | |
3407 | int arg2 ; | |
3408 | PyObject * obj0 = 0 ; | |
3409 | PyObject * obj1 = 0 ; | |
3410 | char *kwnames[] = { | |
3411 | (char *) "self",(char *) "x", NULL | |
3412 | }; | |
3413 | ||
3414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; | |
3415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3417 | arg2 = (int) SWIG_AsInt(obj1); | |
3418 | if (PyErr_Occurred()) SWIG_fail; | |
3419 | { | |
3420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3421 | (arg1)->SetX(arg2); | |
3422 | ||
3423 | wxPyEndAllowThreads(__tstate); | |
3424 | if (PyErr_Occurred()) SWIG_fail; | |
3425 | } | |
3426 | Py_INCREF(Py_None); resultobj = Py_None; | |
3427 | return resultobj; | |
3428 | fail: | |
3429 | return NULL; | |
3430 | } | |
3431 | ||
3432 | ||
3433 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3434 | PyObject *resultobj; | |
3435 | wxRect *arg1 = (wxRect *) 0 ; | |
3436 | int result; | |
3437 | PyObject * obj0 = 0 ; | |
3438 | char *kwnames[] = { | |
3439 | (char *) "self", NULL | |
3440 | }; | |
3441 | ||
3442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
3443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3445 | { | |
3446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3447 | result = (int)(arg1)->GetY(); | |
3448 | ||
3449 | wxPyEndAllowThreads(__tstate); | |
3450 | if (PyErr_Occurred()) SWIG_fail; | |
3451 | } | |
3452 | resultobj = SWIG_FromInt((int)result); | |
3453 | return resultobj; | |
3454 | fail: | |
3455 | return NULL; | |
3456 | } | |
3457 | ||
3458 | ||
3459 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3460 | PyObject *resultobj; | |
3461 | wxRect *arg1 = (wxRect *) 0 ; | |
3462 | int arg2 ; | |
3463 | PyObject * obj0 = 0 ; | |
3464 | PyObject * obj1 = 0 ; | |
3465 | char *kwnames[] = { | |
3466 | (char *) "self",(char *) "y", NULL | |
3467 | }; | |
3468 | ||
3469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; | |
3470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3472 | arg2 = (int) SWIG_AsInt(obj1); | |
3473 | if (PyErr_Occurred()) SWIG_fail; | |
3474 | { | |
3475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3476 | (arg1)->SetY(arg2); | |
3477 | ||
3478 | wxPyEndAllowThreads(__tstate); | |
3479 | if (PyErr_Occurred()) SWIG_fail; | |
3480 | } | |
3481 | Py_INCREF(Py_None); resultobj = Py_None; | |
3482 | return resultobj; | |
3483 | fail: | |
3484 | return NULL; | |
3485 | } | |
3486 | ||
3487 | ||
3488 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3489 | PyObject *resultobj; | |
3490 | wxRect *arg1 = (wxRect *) 0 ; | |
3491 | int result; | |
3492 | PyObject * obj0 = 0 ; | |
3493 | char *kwnames[] = { | |
3494 | (char *) "self", NULL | |
3495 | }; | |
3496 | ||
3497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
3498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3500 | { | |
3501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3502 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3503 | ||
3504 | wxPyEndAllowThreads(__tstate); | |
3505 | if (PyErr_Occurred()) SWIG_fail; | |
3506 | } | |
3507 | resultobj = SWIG_FromInt((int)result); | |
3508 | return resultobj; | |
3509 | fail: | |
3510 | return NULL; | |
3511 | } | |
3512 | ||
3513 | ||
3514 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3515 | PyObject *resultobj; | |
3516 | wxRect *arg1 = (wxRect *) 0 ; | |
3517 | int arg2 ; | |
3518 | PyObject * obj0 = 0 ; | |
3519 | PyObject * obj1 = 0 ; | |
3520 | char *kwnames[] = { | |
3521 | (char *) "self",(char *) "w", NULL | |
3522 | }; | |
3523 | ||
3524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3527 | arg2 = (int) SWIG_AsInt(obj1); | |
3528 | if (PyErr_Occurred()) SWIG_fail; | |
3529 | { | |
3530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3531 | (arg1)->SetWidth(arg2); | |
3532 | ||
3533 | wxPyEndAllowThreads(__tstate); | |
3534 | if (PyErr_Occurred()) SWIG_fail; | |
3535 | } | |
3536 | Py_INCREF(Py_None); resultobj = Py_None; | |
3537 | return resultobj; | |
3538 | fail: | |
3539 | return NULL; | |
3540 | } | |
3541 | ||
3542 | ||
3543 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3544 | PyObject *resultobj; | |
3545 | wxRect *arg1 = (wxRect *) 0 ; | |
3546 | int result; | |
3547 | PyObject * obj0 = 0 ; | |
3548 | char *kwnames[] = { | |
3549 | (char *) "self", NULL | |
3550 | }; | |
3551 | ||
3552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3555 | { | |
3556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3557 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3558 | ||
3559 | wxPyEndAllowThreads(__tstate); | |
3560 | if (PyErr_Occurred()) SWIG_fail; | |
3561 | } | |
3562 | resultobj = SWIG_FromInt((int)result); | |
3563 | return resultobj; | |
3564 | fail: | |
3565 | return NULL; | |
3566 | } | |
3567 | ||
3568 | ||
3569 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3570 | PyObject *resultobj; | |
3571 | wxRect *arg1 = (wxRect *) 0 ; | |
3572 | int arg2 ; | |
3573 | PyObject * obj0 = 0 ; | |
3574 | PyObject * obj1 = 0 ; | |
3575 | char *kwnames[] = { | |
3576 | (char *) "self",(char *) "h", NULL | |
3577 | }; | |
3578 | ||
3579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3582 | arg2 = (int) SWIG_AsInt(obj1); | |
3583 | if (PyErr_Occurred()) SWIG_fail; | |
3584 | { | |
3585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3586 | (arg1)->SetHeight(arg2); | |
3587 | ||
3588 | wxPyEndAllowThreads(__tstate); | |
3589 | if (PyErr_Occurred()) SWIG_fail; | |
3590 | } | |
3591 | Py_INCREF(Py_None); resultobj = Py_None; | |
3592 | return resultobj; | |
3593 | fail: | |
3594 | return NULL; | |
3595 | } | |
3596 | ||
3597 | ||
3598 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3599 | PyObject *resultobj; | |
3600 | wxRect *arg1 = (wxRect *) 0 ; | |
3601 | wxPoint result; | |
3602 | PyObject * obj0 = 0 ; | |
3603 | char *kwnames[] = { | |
3604 | (char *) "self", NULL | |
3605 | }; | |
3606 | ||
3607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
3608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3610 | { | |
3611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3612 | result = ((wxRect const *)arg1)->GetPosition(); | |
3613 | ||
3614 | wxPyEndAllowThreads(__tstate); | |
3615 | if (PyErr_Occurred()) SWIG_fail; | |
3616 | } | |
3617 | { | |
3618 | wxPoint * resultptr; | |
3619 | resultptr = new wxPoint((wxPoint &) result); | |
3620 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3621 | } | |
3622 | return resultobj; | |
3623 | fail: | |
3624 | return NULL; | |
3625 | } | |
3626 | ||
3627 | ||
3628 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3629 | PyObject *resultobj; | |
3630 | wxRect *arg1 = (wxRect *) 0 ; | |
3631 | wxPoint *arg2 = 0 ; | |
3632 | wxPoint temp2 ; | |
3633 | PyObject * obj0 = 0 ; | |
3634 | PyObject * obj1 = 0 ; | |
3635 | char *kwnames[] = { | |
3636 | (char *) "self",(char *) "p", NULL | |
3637 | }; | |
3638 | ||
3639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
3640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3642 | { | |
3643 | arg2 = &temp2; | |
3644 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3645 | } | |
3646 | { | |
3647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3648 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3649 | ||
3650 | wxPyEndAllowThreads(__tstate); | |
3651 | if (PyErr_Occurred()) SWIG_fail; | |
3652 | } | |
3653 | Py_INCREF(Py_None); resultobj = Py_None; | |
3654 | return resultobj; | |
3655 | fail: | |
3656 | return NULL; | |
3657 | } | |
3658 | ||
3659 | ||
3660 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3661 | PyObject *resultobj; | |
3662 | wxRect *arg1 = (wxRect *) 0 ; | |
3663 | wxSize result; | |
3664 | PyObject * obj0 = 0 ; | |
3665 | char *kwnames[] = { | |
3666 | (char *) "self", NULL | |
3667 | }; | |
3668 | ||
3669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
3670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3672 | { | |
3673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3674 | result = ((wxRect const *)arg1)->GetSize(); | |
3675 | ||
3676 | wxPyEndAllowThreads(__tstate); | |
3677 | if (PyErr_Occurred()) SWIG_fail; | |
3678 | } | |
3679 | { | |
3680 | wxSize * resultptr; | |
3681 | resultptr = new wxSize((wxSize &) result); | |
3682 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3683 | } | |
3684 | return resultobj; | |
3685 | fail: | |
3686 | return NULL; | |
3687 | } | |
3688 | ||
3689 | ||
3690 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3691 | PyObject *resultobj; | |
3692 | wxRect *arg1 = (wxRect *) 0 ; | |
3693 | wxSize *arg2 = 0 ; | |
3694 | wxSize temp2 ; | |
3695 | PyObject * obj0 = 0 ; | |
3696 | PyObject * obj1 = 0 ; | |
3697 | char *kwnames[] = { | |
3698 | (char *) "self",(char *) "s", NULL | |
3699 | }; | |
3700 | ||
3701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3704 | { | |
3705 | arg2 = &temp2; | |
3706 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3707 | } | |
3708 | { | |
3709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3710 | (arg1)->SetSize((wxSize const &)*arg2); | |
3711 | ||
3712 | wxPyEndAllowThreads(__tstate); | |
3713 | if (PyErr_Occurred()) SWIG_fail; | |
3714 | } | |
3715 | Py_INCREF(Py_None); resultobj = Py_None; | |
3716 | return resultobj; | |
3717 | fail: | |
3718 | return NULL; | |
3719 | } | |
3720 | ||
3721 | ||
3722 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3723 | PyObject *resultobj; | |
3724 | wxRect *arg1 = (wxRect *) 0 ; | |
3725 | wxPoint result; | |
3726 | PyObject * obj0 = 0 ; | |
3727 | char *kwnames[] = { | |
3728 | (char *) "self", NULL | |
3729 | }; | |
3730 | ||
3731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
3732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3734 | { | |
3735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3736 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3737 | ||
3738 | wxPyEndAllowThreads(__tstate); | |
3739 | if (PyErr_Occurred()) SWIG_fail; | |
3740 | } | |
3741 | { | |
3742 | wxPoint * resultptr; | |
3743 | resultptr = new wxPoint((wxPoint &) result); | |
3744 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3745 | } | |
3746 | return resultobj; | |
3747 | fail: | |
3748 | return NULL; | |
3749 | } | |
3750 | ||
3751 | ||
3752 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3753 | PyObject *resultobj; | |
3754 | wxRect *arg1 = (wxRect *) 0 ; | |
3755 | wxPoint *arg2 = 0 ; | |
3756 | wxPoint temp2 ; | |
3757 | PyObject * obj0 = 0 ; | |
3758 | PyObject * obj1 = 0 ; | |
3759 | char *kwnames[] = { | |
3760 | (char *) "self",(char *) "p", NULL | |
3761 | }; | |
3762 | ||
3763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
3764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3766 | { | |
3767 | arg2 = &temp2; | |
3768 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3769 | } | |
3770 | { | |
3771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3772 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3773 | ||
3774 | wxPyEndAllowThreads(__tstate); | |
3775 | if (PyErr_Occurred()) SWIG_fail; | |
3776 | } | |
3777 | Py_INCREF(Py_None); resultobj = Py_None; | |
3778 | return resultobj; | |
3779 | fail: | |
3780 | return NULL; | |
3781 | } | |
3782 | ||
3783 | ||
3784 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3785 | PyObject *resultobj; | |
3786 | wxRect *arg1 = (wxRect *) 0 ; | |
3787 | wxPoint result; | |
3788 | PyObject * obj0 = 0 ; | |
3789 | char *kwnames[] = { | |
3790 | (char *) "self", NULL | |
3791 | }; | |
3792 | ||
3793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
3794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3796 | { | |
3797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3798 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3799 | ||
3800 | wxPyEndAllowThreads(__tstate); | |
3801 | if (PyErr_Occurred()) SWIG_fail; | |
3802 | } | |
3803 | { | |
3804 | wxPoint * resultptr; | |
3805 | resultptr = new wxPoint((wxPoint &) result); | |
3806 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3807 | } | |
3808 | return resultobj; | |
3809 | fail: | |
3810 | return NULL; | |
3811 | } | |
3812 | ||
3813 | ||
3814 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3815 | PyObject *resultobj; | |
3816 | wxRect *arg1 = (wxRect *) 0 ; | |
3817 | wxPoint *arg2 = 0 ; | |
3818 | wxPoint temp2 ; | |
3819 | PyObject * obj0 = 0 ; | |
3820 | PyObject * obj1 = 0 ; | |
3821 | char *kwnames[] = { | |
3822 | (char *) "self",(char *) "p", NULL | |
3823 | }; | |
3824 | ||
3825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
3826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3828 | { | |
3829 | arg2 = &temp2; | |
3830 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3831 | } | |
3832 | { | |
3833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3834 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3835 | ||
3836 | wxPyEndAllowThreads(__tstate); | |
3837 | if (PyErr_Occurred()) SWIG_fail; | |
3838 | } | |
3839 | Py_INCREF(Py_None); resultobj = Py_None; | |
3840 | return resultobj; | |
3841 | fail: | |
3842 | return NULL; | |
3843 | } | |
3844 | ||
3845 | ||
3846 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3847 | PyObject *resultobj; | |
3848 | wxRect *arg1 = (wxRect *) 0 ; | |
3849 | int result; | |
3850 | PyObject * obj0 = 0 ; | |
3851 | char *kwnames[] = { | |
3852 | (char *) "self", NULL | |
3853 | }; | |
3854 | ||
3855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
3856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3858 | { | |
3859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3860 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3861 | ||
3862 | wxPyEndAllowThreads(__tstate); | |
3863 | if (PyErr_Occurred()) SWIG_fail; | |
3864 | } | |
3865 | resultobj = SWIG_FromInt((int)result); | |
3866 | return resultobj; | |
3867 | fail: | |
3868 | return NULL; | |
3869 | } | |
3870 | ||
3871 | ||
3872 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3873 | PyObject *resultobj; | |
3874 | wxRect *arg1 = (wxRect *) 0 ; | |
3875 | int result; | |
3876 | PyObject * obj0 = 0 ; | |
3877 | char *kwnames[] = { | |
3878 | (char *) "self", NULL | |
3879 | }; | |
3880 | ||
3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
3882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3884 | { | |
3885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3886 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3887 | ||
3888 | wxPyEndAllowThreads(__tstate); | |
3889 | if (PyErr_Occurred()) SWIG_fail; | |
3890 | } | |
3891 | resultobj = SWIG_FromInt((int)result); | |
3892 | return resultobj; | |
3893 | fail: | |
3894 | return NULL; | |
3895 | } | |
3896 | ||
3897 | ||
3898 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3899 | PyObject *resultobj; | |
3900 | wxRect *arg1 = (wxRect *) 0 ; | |
3901 | int result; | |
3902 | PyObject * obj0 = 0 ; | |
3903 | char *kwnames[] = { | |
3904 | (char *) "self", NULL | |
3905 | }; | |
3906 | ||
3907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
3908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3910 | { | |
3911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3912 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3913 | ||
3914 | wxPyEndAllowThreads(__tstate); | |
3915 | if (PyErr_Occurred()) SWIG_fail; | |
3916 | } | |
3917 | resultobj = SWIG_FromInt((int)result); | |
3918 | return resultobj; | |
3919 | fail: | |
3920 | return NULL; | |
3921 | } | |
3922 | ||
3923 | ||
3924 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3925 | PyObject *resultobj; | |
3926 | wxRect *arg1 = (wxRect *) 0 ; | |
3927 | int result; | |
3928 | PyObject * obj0 = 0 ; | |
3929 | char *kwnames[] = { | |
3930 | (char *) "self", NULL | |
3931 | }; | |
3932 | ||
3933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
3934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3936 | { | |
3937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3938 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3939 | ||
3940 | wxPyEndAllowThreads(__tstate); | |
3941 | if (PyErr_Occurred()) SWIG_fail; | |
3942 | } | |
3943 | resultobj = SWIG_FromInt((int)result); | |
3944 | return resultobj; | |
3945 | fail: | |
3946 | return NULL; | |
3947 | } | |
3948 | ||
3949 | ||
3950 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3951 | PyObject *resultobj; | |
3952 | wxRect *arg1 = (wxRect *) 0 ; | |
3953 | int arg2 ; | |
3954 | PyObject * obj0 = 0 ; | |
3955 | PyObject * obj1 = 0 ; | |
3956 | char *kwnames[] = { | |
3957 | (char *) "self",(char *) "left", NULL | |
3958 | }; | |
3959 | ||
3960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; | |
3961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3963 | arg2 = (int) SWIG_AsInt(obj1); | |
3964 | if (PyErr_Occurred()) SWIG_fail; | |
3965 | { | |
3966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3967 | (arg1)->SetLeft(arg2); | |
3968 | ||
3969 | wxPyEndAllowThreads(__tstate); | |
3970 | if (PyErr_Occurred()) SWIG_fail; | |
3971 | } | |
3972 | Py_INCREF(Py_None); resultobj = Py_None; | |
3973 | return resultobj; | |
3974 | fail: | |
3975 | return NULL; | |
3976 | } | |
3977 | ||
3978 | ||
3979 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3980 | PyObject *resultobj; | |
3981 | wxRect *arg1 = (wxRect *) 0 ; | |
3982 | int arg2 ; | |
3983 | PyObject * obj0 = 0 ; | |
3984 | PyObject * obj1 = 0 ; | |
3985 | char *kwnames[] = { | |
3986 | (char *) "self",(char *) "right", NULL | |
3987 | }; | |
3988 | ||
3989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; | |
3990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3992 | arg2 = (int) SWIG_AsInt(obj1); | |
3993 | if (PyErr_Occurred()) SWIG_fail; | |
3994 | { | |
3995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3996 | (arg1)->SetRight(arg2); | |
3997 | ||
3998 | wxPyEndAllowThreads(__tstate); | |
3999 | if (PyErr_Occurred()) SWIG_fail; | |
4000 | } | |
4001 | Py_INCREF(Py_None); resultobj = Py_None; | |
4002 | return resultobj; | |
4003 | fail: | |
4004 | return NULL; | |
4005 | } | |
4006 | ||
4007 | ||
4008 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4009 | PyObject *resultobj; | |
4010 | wxRect *arg1 = (wxRect *) 0 ; | |
4011 | int arg2 ; | |
4012 | PyObject * obj0 = 0 ; | |
4013 | PyObject * obj1 = 0 ; | |
4014 | char *kwnames[] = { | |
4015 | (char *) "self",(char *) "top", NULL | |
4016 | }; | |
4017 | ||
4018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; | |
4019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4021 | arg2 = (int) SWIG_AsInt(obj1); | |
4022 | if (PyErr_Occurred()) SWIG_fail; | |
4023 | { | |
4024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4025 | (arg1)->SetTop(arg2); | |
4026 | ||
4027 | wxPyEndAllowThreads(__tstate); | |
4028 | if (PyErr_Occurred()) SWIG_fail; | |
4029 | } | |
4030 | Py_INCREF(Py_None); resultobj = Py_None; | |
4031 | return resultobj; | |
4032 | fail: | |
4033 | return NULL; | |
4034 | } | |
4035 | ||
4036 | ||
4037 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4038 | PyObject *resultobj; | |
4039 | wxRect *arg1 = (wxRect *) 0 ; | |
4040 | int arg2 ; | |
4041 | PyObject * obj0 = 0 ; | |
4042 | PyObject * obj1 = 0 ; | |
4043 | char *kwnames[] = { | |
4044 | (char *) "self",(char *) "bottom", NULL | |
4045 | }; | |
4046 | ||
4047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; | |
4048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4050 | arg2 = (int) SWIG_AsInt(obj1); | |
4051 | if (PyErr_Occurred()) SWIG_fail; | |
4052 | { | |
4053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4054 | (arg1)->SetBottom(arg2); | |
4055 | ||
4056 | wxPyEndAllowThreads(__tstate); | |
4057 | if (PyErr_Occurred()) SWIG_fail; | |
4058 | } | |
4059 | Py_INCREF(Py_None); resultobj = Py_None; | |
4060 | return resultobj; | |
4061 | fail: | |
4062 | return NULL; | |
4063 | } | |
4064 | ||
4065 | ||
4066 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4067 | PyObject *resultobj; | |
4068 | wxRect *arg1 = (wxRect *) 0 ; | |
4069 | int arg2 ; | |
4070 | int arg3 ; | |
4071 | wxRect *result; | |
4072 | PyObject * obj0 = 0 ; | |
4073 | PyObject * obj1 = 0 ; | |
4074 | PyObject * obj2 = 0 ; | |
4075 | char *kwnames[] = { | |
4076 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4077 | }; | |
4078 | ||
4079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4082 | arg2 = (int) SWIG_AsInt(obj1); | |
4083 | if (PyErr_Occurred()) SWIG_fail; | |
4084 | arg3 = (int) SWIG_AsInt(obj2); | |
4085 | if (PyErr_Occurred()) SWIG_fail; | |
4086 | { | |
4087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4088 | { | |
4089 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4090 | result = (wxRect *) &_result_ref; | |
4091 | } | |
4092 | ||
4093 | wxPyEndAllowThreads(__tstate); | |
4094 | if (PyErr_Occurred()) SWIG_fail; | |
4095 | } | |
4096 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4097 | return resultobj; | |
4098 | fail: | |
4099 | return NULL; | |
4100 | } | |
4101 | ||
4102 | ||
4103 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4104 | PyObject *resultobj; | |
4105 | wxRect *arg1 = (wxRect *) 0 ; | |
4106 | int arg2 ; | |
4107 | int arg3 ; | |
4108 | wxRect *result; | |
4109 | PyObject * obj0 = 0 ; | |
4110 | PyObject * obj1 = 0 ; | |
4111 | PyObject * obj2 = 0 ; | |
4112 | char *kwnames[] = { | |
4113 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4114 | }; | |
4115 | ||
4116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4119 | arg2 = (int) SWIG_AsInt(obj1); | |
4120 | if (PyErr_Occurred()) SWIG_fail; | |
4121 | arg3 = (int) SWIG_AsInt(obj2); | |
4122 | if (PyErr_Occurred()) SWIG_fail; | |
4123 | { | |
4124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4125 | { | |
4126 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4127 | result = (wxRect *) &_result_ref; | |
4128 | } | |
4129 | ||
4130 | wxPyEndAllowThreads(__tstate); | |
4131 | if (PyErr_Occurred()) SWIG_fail; | |
4132 | } | |
4133 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4134 | return resultobj; | |
4135 | fail: | |
4136 | return NULL; | |
4137 | } | |
4138 | ||
4139 | ||
4140 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4141 | PyObject *resultobj; | |
4142 | wxRect *arg1 = (wxRect *) 0 ; | |
4143 | int arg2 ; | |
4144 | int arg3 ; | |
4145 | PyObject * obj0 = 0 ; | |
4146 | PyObject * obj1 = 0 ; | |
4147 | PyObject * obj2 = 0 ; | |
4148 | char *kwnames[] = { | |
4149 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4150 | }; | |
4151 | ||
4152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4155 | arg2 = (int) SWIG_AsInt(obj1); | |
4156 | if (PyErr_Occurred()) SWIG_fail; | |
4157 | arg3 = (int) SWIG_AsInt(obj2); | |
4158 | if (PyErr_Occurred()) SWIG_fail; | |
4159 | { | |
4160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4161 | (arg1)->Offset(arg2,arg3); | |
4162 | ||
4163 | wxPyEndAllowThreads(__tstate); | |
4164 | if (PyErr_Occurred()) SWIG_fail; | |
4165 | } | |
4166 | Py_INCREF(Py_None); resultobj = Py_None; | |
4167 | return resultobj; | |
4168 | fail: | |
4169 | return NULL; | |
4170 | } | |
4171 | ||
4172 | ||
4173 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4174 | PyObject *resultobj; | |
4175 | wxRect *arg1 = (wxRect *) 0 ; | |
4176 | wxPoint *arg2 = 0 ; | |
4177 | wxPoint temp2 ; | |
4178 | PyObject * obj0 = 0 ; | |
4179 | PyObject * obj1 = 0 ; | |
4180 | char *kwnames[] = { | |
4181 | (char *) "self",(char *) "pt", NULL | |
4182 | }; | |
4183 | ||
4184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
4185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4187 | { | |
4188 | arg2 = &temp2; | |
4189 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4190 | } | |
4191 | { | |
4192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4193 | (arg1)->Offset((wxPoint const &)*arg2); | |
4194 | ||
4195 | wxPyEndAllowThreads(__tstate); | |
4196 | if (PyErr_Occurred()) SWIG_fail; | |
4197 | } | |
4198 | Py_INCREF(Py_None); resultobj = Py_None; | |
4199 | return resultobj; | |
4200 | fail: | |
4201 | return NULL; | |
4202 | } | |
4203 | ||
4204 | ||
4205 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4206 | PyObject *resultobj; | |
4207 | wxRect *arg1 = (wxRect *) 0 ; | |
4208 | wxRect *arg2 = 0 ; | |
4209 | wxRect *result; | |
4210 | wxRect temp2 ; | |
4211 | PyObject * obj0 = 0 ; | |
4212 | PyObject * obj1 = 0 ; | |
4213 | char *kwnames[] = { | |
4214 | (char *) "self",(char *) "rect", NULL | |
4215 | }; | |
4216 | ||
4217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
4218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4220 | { | |
4221 | arg2 = &temp2; | |
4222 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4223 | } | |
4224 | { | |
4225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4226 | { | |
4227 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4228 | result = (wxRect *) &_result_ref; | |
4229 | } | |
4230 | ||
4231 | wxPyEndAllowThreads(__tstate); | |
4232 | if (PyErr_Occurred()) SWIG_fail; | |
4233 | } | |
4234 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4235 | return resultobj; | |
4236 | fail: | |
4237 | return NULL; | |
4238 | } | |
4239 | ||
4240 | ||
4241 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4242 | PyObject *resultobj; | |
4243 | wxRect *arg1 = (wxRect *) 0 ; | |
4244 | wxRect *arg2 = 0 ; | |
4245 | wxRect result; | |
4246 | wxRect temp2 ; | |
4247 | PyObject * obj0 = 0 ; | |
4248 | PyObject * obj1 = 0 ; | |
4249 | char *kwnames[] = { | |
4250 | (char *) "self",(char *) "rect", NULL | |
4251 | }; | |
4252 | ||
4253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
4254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4256 | { | |
4257 | arg2 = &temp2; | |
4258 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4259 | } | |
4260 | { | |
4261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4262 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4263 | ||
4264 | wxPyEndAllowThreads(__tstate); | |
4265 | if (PyErr_Occurred()) SWIG_fail; | |
4266 | } | |
4267 | { | |
4268 | wxRect * resultptr; | |
4269 | resultptr = new wxRect((wxRect &) result); | |
4270 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4271 | } | |
4272 | return resultobj; | |
4273 | fail: | |
4274 | return NULL; | |
4275 | } | |
4276 | ||
4277 | ||
4278 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4279 | PyObject *resultobj; | |
4280 | wxRect *arg1 = (wxRect *) 0 ; | |
4281 | wxRect *arg2 = 0 ; | |
4282 | wxRect *result; | |
4283 | wxRect temp2 ; | |
4284 | PyObject * obj0 = 0 ; | |
4285 | PyObject * obj1 = 0 ; | |
4286 | char *kwnames[] = { | |
4287 | (char *) "self",(char *) "rect", NULL | |
4288 | }; | |
4289 | ||
4290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4293 | { | |
4294 | arg2 = &temp2; | |
4295 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4296 | } | |
4297 | { | |
4298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4299 | { | |
4300 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4301 | result = (wxRect *) &_result_ref; | |
4302 | } | |
4303 | ||
4304 | wxPyEndAllowThreads(__tstate); | |
4305 | if (PyErr_Occurred()) SWIG_fail; | |
4306 | } | |
4307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4308 | return resultobj; | |
4309 | fail: | |
4310 | return NULL; | |
4311 | } | |
4312 | ||
4313 | ||
4314 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4315 | PyObject *resultobj; | |
4316 | wxRect *arg1 = (wxRect *) 0 ; | |
4317 | wxRect *arg2 = 0 ; | |
4318 | bool result; | |
4319 | wxRect temp2 ; | |
4320 | PyObject * obj0 = 0 ; | |
4321 | PyObject * obj1 = 0 ; | |
4322 | char *kwnames[] = { | |
4323 | (char *) "self",(char *) "rect", NULL | |
4324 | }; | |
4325 | ||
4326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4329 | { | |
4330 | arg2 = &temp2; | |
4331 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4332 | } | |
4333 | { | |
4334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4335 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4336 | ||
4337 | wxPyEndAllowThreads(__tstate); | |
4338 | if (PyErr_Occurred()) SWIG_fail; | |
4339 | } | |
4340 | { | |
4341 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4342 | } | |
4343 | return resultobj; | |
4344 | fail: | |
4345 | return NULL; | |
4346 | } | |
4347 | ||
4348 | ||
4349 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4350 | PyObject *resultobj; | |
4351 | wxRect *arg1 = (wxRect *) 0 ; | |
4352 | wxRect *arg2 = 0 ; | |
4353 | bool result; | |
4354 | wxRect temp2 ; | |
4355 | PyObject * obj0 = 0 ; | |
4356 | PyObject * obj1 = 0 ; | |
4357 | char *kwnames[] = { | |
4358 | (char *) "self",(char *) "rect", NULL | |
4359 | }; | |
4360 | ||
4361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4364 | { | |
4365 | arg2 = &temp2; | |
4366 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4367 | } | |
4368 | { | |
4369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4370 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4371 | ||
4372 | wxPyEndAllowThreads(__tstate); | |
4373 | if (PyErr_Occurred()) SWIG_fail; | |
4374 | } | |
4375 | { | |
4376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4377 | } | |
4378 | return resultobj; | |
4379 | fail: | |
4380 | return NULL; | |
4381 | } | |
4382 | ||
4383 | ||
4384 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4385 | PyObject *resultobj; | |
4386 | wxRect *arg1 = (wxRect *) 0 ; | |
4387 | int arg2 ; | |
4388 | int arg3 ; | |
4389 | bool result; | |
4390 | PyObject * obj0 = 0 ; | |
4391 | PyObject * obj1 = 0 ; | |
4392 | PyObject * obj2 = 0 ; | |
4393 | char *kwnames[] = { | |
4394 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4395 | }; | |
4396 | ||
4397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4400 | arg2 = (int) SWIG_AsInt(obj1); | |
4401 | if (PyErr_Occurred()) SWIG_fail; | |
4402 | arg3 = (int) SWIG_AsInt(obj2); | |
4403 | if (PyErr_Occurred()) SWIG_fail; | |
4404 | { | |
4405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4406 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4407 | ||
4408 | wxPyEndAllowThreads(__tstate); | |
4409 | if (PyErr_Occurred()) SWIG_fail; | |
4410 | } | |
4411 | { | |
4412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4413 | } | |
4414 | return resultobj; | |
4415 | fail: | |
4416 | return NULL; | |
4417 | } | |
4418 | ||
4419 | ||
4420 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4421 | PyObject *resultobj; | |
4422 | wxRect *arg1 = (wxRect *) 0 ; | |
4423 | wxPoint *arg2 = 0 ; | |
4424 | bool result; | |
4425 | wxPoint temp2 ; | |
4426 | PyObject * obj0 = 0 ; | |
4427 | PyObject * obj1 = 0 ; | |
4428 | char *kwnames[] = { | |
4429 | (char *) "self",(char *) "pt", NULL | |
4430 | }; | |
4431 | ||
4432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
4433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4435 | { | |
4436 | arg2 = &temp2; | |
4437 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4438 | } | |
4439 | { | |
4440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4441 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4442 | ||
4443 | wxPyEndAllowThreads(__tstate); | |
4444 | if (PyErr_Occurred()) SWIG_fail; | |
4445 | } | |
4446 | { | |
4447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4448 | } | |
4449 | return resultobj; | |
4450 | fail: | |
4451 | return NULL; | |
4452 | } | |
4453 | ||
4454 | ||
4455 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4456 | PyObject *resultobj; | |
4457 | wxRect *arg1 = (wxRect *) 0 ; | |
4458 | wxRect *arg2 = 0 ; | |
4459 | bool result; | |
4460 | wxRect temp2 ; | |
4461 | PyObject * obj0 = 0 ; | |
4462 | PyObject * obj1 = 0 ; | |
4463 | char *kwnames[] = { | |
4464 | (char *) "self",(char *) "rect", NULL | |
4465 | }; | |
4466 | ||
4467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
4468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4470 | { | |
4471 | arg2 = &temp2; | |
4472 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4473 | } | |
4474 | { | |
4475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4476 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4477 | ||
4478 | wxPyEndAllowThreads(__tstate); | |
4479 | if (PyErr_Occurred()) SWIG_fail; | |
4480 | } | |
4481 | { | |
4482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4483 | } | |
4484 | return resultobj; | |
4485 | fail: | |
4486 | return NULL; | |
4487 | } | |
4488 | ||
4489 | ||
4490 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4491 | PyObject *resultobj; | |
4492 | wxRect *arg1 = (wxRect *) 0 ; | |
4493 | int arg2 ; | |
4494 | PyObject * obj0 = 0 ; | |
4495 | PyObject * obj1 = 0 ; | |
4496 | char *kwnames[] = { | |
4497 | (char *) "self",(char *) "x", NULL | |
4498 | }; | |
4499 | ||
4500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; | |
4501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4503 | arg2 = (int) SWIG_AsInt(obj1); | |
4504 | if (PyErr_Occurred()) SWIG_fail; | |
4505 | if (arg1) (arg1)->x = arg2; | |
4506 | ||
4507 | Py_INCREF(Py_None); resultobj = Py_None; | |
4508 | return resultobj; | |
4509 | fail: | |
4510 | return NULL; | |
4511 | } | |
4512 | ||
4513 | ||
4514 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4515 | PyObject *resultobj; | |
4516 | wxRect *arg1 = (wxRect *) 0 ; | |
4517 | int result; | |
4518 | PyObject * obj0 = 0 ; | |
4519 | char *kwnames[] = { | |
4520 | (char *) "self", NULL | |
4521 | }; | |
4522 | ||
4523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
4524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4526 | result = (int) ((arg1)->x); | |
4527 | ||
4528 | resultobj = SWIG_FromInt((int)result); | |
4529 | return resultobj; | |
4530 | fail: | |
4531 | return NULL; | |
4532 | } | |
4533 | ||
4534 | ||
4535 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4536 | PyObject *resultobj; | |
4537 | wxRect *arg1 = (wxRect *) 0 ; | |
4538 | int arg2 ; | |
4539 | PyObject * obj0 = 0 ; | |
4540 | PyObject * obj1 = 0 ; | |
4541 | char *kwnames[] = { | |
4542 | (char *) "self",(char *) "y", NULL | |
4543 | }; | |
4544 | ||
4545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; | |
4546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4548 | arg2 = (int) SWIG_AsInt(obj1); | |
4549 | if (PyErr_Occurred()) SWIG_fail; | |
4550 | if (arg1) (arg1)->y = arg2; | |
4551 | ||
4552 | Py_INCREF(Py_None); resultobj = Py_None; | |
4553 | return resultobj; | |
4554 | fail: | |
4555 | return NULL; | |
4556 | } | |
4557 | ||
4558 | ||
4559 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4560 | PyObject *resultobj; | |
4561 | wxRect *arg1 = (wxRect *) 0 ; | |
4562 | int result; | |
4563 | PyObject * obj0 = 0 ; | |
4564 | char *kwnames[] = { | |
4565 | (char *) "self", NULL | |
4566 | }; | |
4567 | ||
4568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
4569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4571 | result = (int) ((arg1)->y); | |
4572 | ||
4573 | resultobj = SWIG_FromInt((int)result); | |
4574 | return resultobj; | |
4575 | fail: | |
4576 | return NULL; | |
4577 | } | |
4578 | ||
4579 | ||
4580 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4581 | PyObject *resultobj; | |
4582 | wxRect *arg1 = (wxRect *) 0 ; | |
4583 | int arg2 ; | |
4584 | PyObject * obj0 = 0 ; | |
4585 | PyObject * obj1 = 0 ; | |
4586 | char *kwnames[] = { | |
4587 | (char *) "self",(char *) "width", NULL | |
4588 | }; | |
4589 | ||
4590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; | |
4591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4593 | arg2 = (int) SWIG_AsInt(obj1); | |
4594 | if (PyErr_Occurred()) SWIG_fail; | |
4595 | if (arg1) (arg1)->width = arg2; | |
4596 | ||
4597 | Py_INCREF(Py_None); resultobj = Py_None; | |
4598 | return resultobj; | |
4599 | fail: | |
4600 | return NULL; | |
4601 | } | |
4602 | ||
4603 | ||
4604 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4605 | PyObject *resultobj; | |
4606 | wxRect *arg1 = (wxRect *) 0 ; | |
4607 | int result; | |
4608 | PyObject * obj0 = 0 ; | |
4609 | char *kwnames[] = { | |
4610 | (char *) "self", NULL | |
4611 | }; | |
4612 | ||
4613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
4614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4616 | result = (int) ((arg1)->width); | |
4617 | ||
4618 | resultobj = SWIG_FromInt((int)result); | |
4619 | return resultobj; | |
4620 | fail: | |
4621 | return NULL; | |
4622 | } | |
4623 | ||
4624 | ||
4625 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4626 | PyObject *resultobj; | |
4627 | wxRect *arg1 = (wxRect *) 0 ; | |
4628 | int arg2 ; | |
4629 | PyObject * obj0 = 0 ; | |
4630 | PyObject * obj1 = 0 ; | |
4631 | char *kwnames[] = { | |
4632 | (char *) "self",(char *) "height", NULL | |
4633 | }; | |
4634 | ||
4635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; | |
4636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4638 | arg2 = (int) SWIG_AsInt(obj1); | |
4639 | if (PyErr_Occurred()) SWIG_fail; | |
4640 | if (arg1) (arg1)->height = arg2; | |
4641 | ||
4642 | Py_INCREF(Py_None); resultobj = Py_None; | |
4643 | return resultobj; | |
4644 | fail: | |
4645 | return NULL; | |
4646 | } | |
4647 | ||
4648 | ||
4649 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4650 | PyObject *resultobj; | |
4651 | wxRect *arg1 = (wxRect *) 0 ; | |
4652 | int result; | |
4653 | PyObject * obj0 = 0 ; | |
4654 | char *kwnames[] = { | |
4655 | (char *) "self", NULL | |
4656 | }; | |
4657 | ||
4658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
4659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4661 | result = (int) ((arg1)->height); | |
4662 | ||
4663 | resultobj = SWIG_FromInt((int)result); | |
4664 | return resultobj; | |
4665 | fail: | |
4666 | return NULL; | |
4667 | } | |
4668 | ||
4669 | ||
4670 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4671 | PyObject *resultobj; | |
4672 | wxRect *arg1 = (wxRect *) 0 ; | |
4673 | int arg2 = (int) 0 ; | |
4674 | int arg3 = (int) 0 ; | |
4675 | int arg4 = (int) 0 ; | |
4676 | int arg5 = (int) 0 ; | |
4677 | PyObject * obj0 = 0 ; | |
4678 | PyObject * obj1 = 0 ; | |
4679 | PyObject * obj2 = 0 ; | |
4680 | PyObject * obj3 = 0 ; | |
4681 | PyObject * obj4 = 0 ; | |
4682 | char *kwnames[] = { | |
4683 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4684 | }; | |
4685 | ||
4686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
4687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4689 | if (obj1) { | |
4690 | arg2 = (int) SWIG_AsInt(obj1); | |
4691 | if (PyErr_Occurred()) SWIG_fail; | |
4692 | } | |
4693 | if (obj2) { | |
4694 | arg3 = (int) SWIG_AsInt(obj2); | |
4695 | if (PyErr_Occurred()) SWIG_fail; | |
4696 | } | |
4697 | if (obj3) { | |
4698 | arg4 = (int) SWIG_AsInt(obj3); | |
4699 | if (PyErr_Occurred()) SWIG_fail; | |
4700 | } | |
4701 | if (obj4) { | |
4702 | arg5 = (int) SWIG_AsInt(obj4); | |
4703 | if (PyErr_Occurred()) SWIG_fail; | |
4704 | } | |
4705 | { | |
4706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4707 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4708 | ||
4709 | wxPyEndAllowThreads(__tstate); | |
4710 | if (PyErr_Occurred()) SWIG_fail; | |
4711 | } | |
4712 | Py_INCREF(Py_None); resultobj = Py_None; | |
4713 | return resultobj; | |
4714 | fail: | |
4715 | return NULL; | |
4716 | } | |
4717 | ||
4718 | ||
4719 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4720 | PyObject *resultobj; | |
4721 | wxRect *arg1 = (wxRect *) 0 ; | |
4722 | PyObject *result; | |
4723 | PyObject * obj0 = 0 ; | |
4724 | char *kwnames[] = { | |
4725 | (char *) "self", NULL | |
4726 | }; | |
4727 | ||
4728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; | |
4729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4731 | { | |
4732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4733 | result = (PyObject *)wxRect_Get(arg1); | |
4734 | ||
4735 | wxPyEndAllowThreads(__tstate); | |
4736 | if (PyErr_Occurred()) SWIG_fail; | |
4737 | } | |
4738 | resultobj = result; | |
4739 | return resultobj; | |
4740 | fail: | |
4741 | return NULL; | |
4742 | } | |
4743 | ||
4744 | ||
4745 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4746 | PyObject *obj; | |
4747 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4748 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4749 | Py_INCREF(obj); | |
4750 | return Py_BuildValue((char *)""); | |
4751 | } | |
4752 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4753 | PyObject *resultobj; | |
4754 | wxRect *arg1 = (wxRect *) 0 ; | |
4755 | wxRect *arg2 = (wxRect *) 0 ; | |
4756 | PyObject *result; | |
4757 | PyObject * obj0 = 0 ; | |
4758 | PyObject * obj1 = 0 ; | |
4759 | char *kwnames[] = { | |
4760 | (char *) "r1",(char *) "r2", NULL | |
4761 | }; | |
4762 | ||
4763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4766 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
4767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4768 | { | |
4769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4770 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4771 | ||
4772 | wxPyEndAllowThreads(__tstate); | |
4773 | if (PyErr_Occurred()) SWIG_fail; | |
4774 | } | |
4775 | resultobj = result; | |
4776 | return resultobj; | |
4777 | fail: | |
4778 | return NULL; | |
4779 | } | |
4780 | ||
4781 | ||
4782 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4783 | PyObject *resultobj; | |
4784 | double arg1 = (double) 0.0 ; | |
4785 | double arg2 = (double) 0.0 ; | |
4786 | wxPoint2D *result; | |
4787 | PyObject * obj0 = 0 ; | |
4788 | PyObject * obj1 = 0 ; | |
4789 | char *kwnames[] = { | |
4790 | (char *) "x",(char *) "y", NULL | |
4791 | }; | |
4792 | ||
4793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; | |
4794 | if (obj0) { | |
4795 | arg1 = (double) SWIG_AsDouble(obj0); | |
4796 | if (PyErr_Occurred()) SWIG_fail; | |
4797 | } | |
4798 | if (obj1) { | |
4799 | arg2 = (double) SWIG_AsDouble(obj1); | |
4800 | if (PyErr_Occurred()) SWIG_fail; | |
4801 | } | |
4802 | { | |
4803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4804 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4805 | ||
4806 | wxPyEndAllowThreads(__tstate); | |
4807 | if (PyErr_Occurred()) SWIG_fail; | |
4808 | } | |
4809 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
4810 | return resultobj; | |
4811 | fail: | |
4812 | return NULL; | |
4813 | } | |
4814 | ||
4815 | ||
4816 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4817 | PyObject *resultobj; | |
4818 | wxPoint2D *arg1 = 0 ; | |
4819 | wxPoint2D *result; | |
4820 | wxPoint2D temp1 ; | |
4821 | PyObject * obj0 = 0 ; | |
4822 | char *kwnames[] = { | |
4823 | (char *) "pt", NULL | |
4824 | }; | |
4825 | ||
4826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4827 | { | |
4828 | arg1 = &temp1; | |
4829 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4830 | } | |
4831 | { | |
4832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4833 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4834 | ||
4835 | wxPyEndAllowThreads(__tstate); | |
4836 | if (PyErr_Occurred()) SWIG_fail; | |
4837 | } | |
4838 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
4839 | return resultobj; | |
4840 | fail: | |
4841 | return NULL; | |
4842 | } | |
4843 | ||
4844 | ||
4845 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4846 | PyObject *resultobj; | |
4847 | wxPoint *arg1 = 0 ; | |
4848 | wxPoint2D *result; | |
4849 | wxPoint temp1 ; | |
4850 | PyObject * obj0 = 0 ; | |
4851 | char *kwnames[] = { | |
4852 | (char *) "pt", NULL | |
4853 | }; | |
4854 | ||
4855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4856 | { | |
4857 | arg1 = &temp1; | |
4858 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4859 | } | |
4860 | { | |
4861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4862 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4863 | ||
4864 | wxPyEndAllowThreads(__tstate); | |
4865 | if (PyErr_Occurred()) SWIG_fail; | |
4866 | } | |
4867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
4868 | return resultobj; | |
4869 | fail: | |
4870 | return NULL; | |
4871 | } | |
4872 | ||
4873 | ||
4874 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4875 | PyObject *resultobj; | |
4876 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4877 | int *arg2 = (int *) 0 ; | |
4878 | int *arg3 = (int *) 0 ; | |
4879 | int temp2 ; | |
4880 | int temp3 ; | |
4881 | PyObject * obj0 = 0 ; | |
4882 | char *kwnames[] = { | |
4883 | (char *) "self", NULL | |
4884 | }; | |
4885 | ||
4886 | arg2 = &temp2; | |
4887 | arg3 = &temp3; | |
4888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
4889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
4890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4891 | { | |
4892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4893 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4894 | ||
4895 | wxPyEndAllowThreads(__tstate); | |
4896 | if (PyErr_Occurred()) SWIG_fail; | |
4897 | } | |
4898 | Py_INCREF(Py_None); resultobj = Py_None; | |
4899 | { | |
4900 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4901 | resultobj = t_output_helper(resultobj,o); | |
4902 | } | |
4903 | { | |
4904 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4905 | resultobj = t_output_helper(resultobj,o); | |
4906 | } | |
4907 | return resultobj; | |
4908 | fail: | |
4909 | return NULL; | |
4910 | } | |
4911 | ||
4912 | ||
4913 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4914 | PyObject *resultobj; | |
4915 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4916 | int *arg2 = (int *) 0 ; | |
4917 | int *arg3 = (int *) 0 ; | |
4918 | int temp2 ; | |
4919 | int temp3 ; | |
4920 | PyObject * obj0 = 0 ; | |
4921 | char *kwnames[] = { | |
4922 | (char *) "self", NULL | |
4923 | }; | |
4924 | ||
4925 | arg2 = &temp2; | |
4926 | arg3 = &temp3; | |
4927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
4928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
4929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4930 | { | |
4931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4932 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4933 | ||
4934 | wxPyEndAllowThreads(__tstate); | |
4935 | if (PyErr_Occurred()) SWIG_fail; | |
4936 | } | |
4937 | Py_INCREF(Py_None); resultobj = Py_None; | |
4938 | { | |
4939 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4940 | resultobj = t_output_helper(resultobj,o); | |
4941 | } | |
4942 | { | |
4943 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4944 | resultobj = t_output_helper(resultobj,o); | |
4945 | } | |
4946 | return resultobj; | |
4947 | fail: | |
4948 | return NULL; | |
4949 | } | |
4950 | ||
4951 | ||
4952 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4953 | PyObject *resultobj; | |
4954 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4955 | double result; | |
4956 | PyObject * obj0 = 0 ; | |
4957 | char *kwnames[] = { | |
4958 | (char *) "self", NULL | |
4959 | }; | |
4960 | ||
4961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
4962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
4963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4964 | { | |
4965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4966 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4967 | ||
4968 | wxPyEndAllowThreads(__tstate); | |
4969 | if (PyErr_Occurred()) SWIG_fail; | |
4970 | } | |
4971 | resultobj = SWIG_FromDouble((double)result); | |
4972 | return resultobj; | |
4973 | fail: | |
4974 | return NULL; | |
4975 | } | |
4976 | ||
4977 | ||
4978 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4979 | PyObject *resultobj; | |
4980 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4981 | double result; | |
4982 | PyObject * obj0 = 0 ; | |
4983 | char *kwnames[] = { | |
4984 | (char *) "self", NULL | |
4985 | }; | |
4986 | ||
4987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
4988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
4989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4990 | { | |
4991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4992 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4993 | ||
4994 | wxPyEndAllowThreads(__tstate); | |
4995 | if (PyErr_Occurred()) SWIG_fail; | |
4996 | } | |
4997 | resultobj = SWIG_FromDouble((double)result); | |
4998 | return resultobj; | |
4999 | fail: | |
5000 | return NULL; | |
5001 | } | |
5002 | ||
5003 | ||
5004 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5005 | PyObject *resultobj; | |
5006 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5007 | double arg2 ; | |
5008 | PyObject * obj0 = 0 ; | |
5009 | PyObject * obj1 = 0 ; | |
5010 | char *kwnames[] = { | |
5011 | (char *) "self",(char *) "length", NULL | |
5012 | }; | |
5013 | ||
5014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; | |
5015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5017 | arg2 = (double) SWIG_AsDouble(obj1); | |
5018 | if (PyErr_Occurred()) SWIG_fail; | |
5019 | { | |
5020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5021 | (arg1)->SetVectorLength(arg2); | |
5022 | ||
5023 | wxPyEndAllowThreads(__tstate); | |
5024 | if (PyErr_Occurred()) SWIG_fail; | |
5025 | } | |
5026 | Py_INCREF(Py_None); resultobj = Py_None; | |
5027 | return resultobj; | |
5028 | fail: | |
5029 | return NULL; | |
5030 | } | |
5031 | ||
5032 | ||
5033 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5034 | PyObject *resultobj; | |
5035 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5036 | double arg2 ; | |
5037 | PyObject * obj0 = 0 ; | |
5038 | PyObject * obj1 = 0 ; | |
5039 | char *kwnames[] = { | |
5040 | (char *) "self",(char *) "degrees", NULL | |
5041 | }; | |
5042 | ||
5043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; | |
5044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5046 | arg2 = (double) SWIG_AsDouble(obj1); | |
5047 | if (PyErr_Occurred()) SWIG_fail; | |
5048 | { | |
5049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5050 | (arg1)->SetVectorAngle(arg2); | |
5051 | ||
5052 | wxPyEndAllowThreads(__tstate); | |
5053 | if (PyErr_Occurred()) SWIG_fail; | |
5054 | } | |
5055 | Py_INCREF(Py_None); resultobj = Py_None; | |
5056 | return resultobj; | |
5057 | fail: | |
5058 | return NULL; | |
5059 | } | |
5060 | ||
5061 | ||
5062 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5063 | PyObject *resultobj; | |
5064 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5065 | wxPoint2D *arg2 = 0 ; | |
5066 | double result; | |
5067 | wxPoint2D temp2 ; | |
5068 | PyObject * obj0 = 0 ; | |
5069 | PyObject * obj1 = 0 ; | |
5070 | char *kwnames[] = { | |
5071 | (char *) "self",(char *) "pt", NULL | |
5072 | }; | |
5073 | ||
5074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
5075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5077 | { | |
5078 | arg2 = &temp2; | |
5079 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5080 | } | |
5081 | { | |
5082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5083 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5084 | ||
5085 | wxPyEndAllowThreads(__tstate); | |
5086 | if (PyErr_Occurred()) SWIG_fail; | |
5087 | } | |
5088 | resultobj = SWIG_FromDouble((double)result); | |
5089 | return resultobj; | |
5090 | fail: | |
5091 | return NULL; | |
5092 | } | |
5093 | ||
5094 | ||
5095 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5096 | PyObject *resultobj; | |
5097 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5098 | wxPoint2D *arg2 = 0 ; | |
5099 | double result; | |
5100 | wxPoint2D temp2 ; | |
5101 | PyObject * obj0 = 0 ; | |
5102 | PyObject * obj1 = 0 ; | |
5103 | char *kwnames[] = { | |
5104 | (char *) "self",(char *) "pt", NULL | |
5105 | }; | |
5106 | ||
5107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
5108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5110 | { | |
5111 | arg2 = &temp2; | |
5112 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5113 | } | |
5114 | { | |
5115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5116 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5117 | ||
5118 | wxPyEndAllowThreads(__tstate); | |
5119 | if (PyErr_Occurred()) SWIG_fail; | |
5120 | } | |
5121 | resultobj = SWIG_FromDouble((double)result); | |
5122 | return resultobj; | |
5123 | fail: | |
5124 | return NULL; | |
5125 | } | |
5126 | ||
5127 | ||
5128 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5129 | PyObject *resultobj; | |
5130 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5131 | wxPoint2D *arg2 = 0 ; | |
5132 | double result; | |
5133 | wxPoint2D temp2 ; | |
5134 | PyObject * obj0 = 0 ; | |
5135 | PyObject * obj1 = 0 ; | |
5136 | char *kwnames[] = { | |
5137 | (char *) "self",(char *) "vec", NULL | |
5138 | }; | |
5139 | ||
5140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
5141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5143 | { | |
5144 | arg2 = &temp2; | |
5145 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5146 | } | |
5147 | { | |
5148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5149 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5150 | ||
5151 | wxPyEndAllowThreads(__tstate); | |
5152 | if (PyErr_Occurred()) SWIG_fail; | |
5153 | } | |
5154 | resultobj = SWIG_FromDouble((double)result); | |
5155 | return resultobj; | |
5156 | fail: | |
5157 | return NULL; | |
5158 | } | |
5159 | ||
5160 | ||
5161 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5162 | PyObject *resultobj; | |
5163 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5164 | wxPoint2D *arg2 = 0 ; | |
5165 | double result; | |
5166 | wxPoint2D temp2 ; | |
5167 | PyObject * obj0 = 0 ; | |
5168 | PyObject * obj1 = 0 ; | |
5169 | char *kwnames[] = { | |
5170 | (char *) "self",(char *) "vec", NULL | |
5171 | }; | |
5172 | ||
5173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
5174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5176 | { | |
5177 | arg2 = &temp2; | |
5178 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5179 | } | |
5180 | { | |
5181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5182 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5183 | ||
5184 | wxPyEndAllowThreads(__tstate); | |
5185 | if (PyErr_Occurred()) SWIG_fail; | |
5186 | } | |
5187 | resultobj = SWIG_FromDouble((double)result); | |
5188 | return resultobj; | |
5189 | fail: | |
5190 | return NULL; | |
5191 | } | |
5192 | ||
5193 | ||
5194 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5195 | PyObject *resultobj; | |
5196 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5197 | wxPoint2D result; | |
5198 | PyObject * obj0 = 0 ; | |
5199 | char *kwnames[] = { | |
5200 | (char *) "self", NULL | |
5201 | }; | |
5202 | ||
5203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
5204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5206 | { | |
5207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5208 | result = (arg1)->operator -(); | |
5209 | ||
5210 | wxPyEndAllowThreads(__tstate); | |
5211 | if (PyErr_Occurred()) SWIG_fail; | |
5212 | } | |
5213 | { | |
5214 | wxPoint2D * resultptr; | |
5215 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
5216 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); | |
5217 | } | |
5218 | return resultobj; | |
5219 | fail: | |
5220 | return NULL; | |
5221 | } | |
5222 | ||
5223 | ||
5224 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5225 | PyObject *resultobj; | |
5226 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5227 | wxPoint2D *arg2 = 0 ; | |
5228 | wxPoint2D *result; | |
5229 | wxPoint2D temp2 ; | |
5230 | PyObject * obj0 = 0 ; | |
5231 | PyObject * obj1 = 0 ; | |
5232 | char *kwnames[] = { | |
5233 | (char *) "self",(char *) "pt", NULL | |
5234 | }; | |
5235 | ||
5236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
5237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5239 | { | |
5240 | arg2 = &temp2; | |
5241 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5242 | } | |
5243 | { | |
5244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5245 | { | |
5246 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5247 | result = (wxPoint2D *) &_result_ref; | |
5248 | } | |
5249 | ||
5250 | wxPyEndAllowThreads(__tstate); | |
5251 | if (PyErr_Occurred()) SWIG_fail; | |
5252 | } | |
5253 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5254 | return resultobj; | |
5255 | fail: | |
5256 | return NULL; | |
5257 | } | |
5258 | ||
5259 | ||
5260 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5261 | PyObject *resultobj; | |
5262 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5263 | wxPoint2D *arg2 = 0 ; | |
5264 | wxPoint2D *result; | |
5265 | wxPoint2D temp2 ; | |
5266 | PyObject * obj0 = 0 ; | |
5267 | PyObject * obj1 = 0 ; | |
5268 | char *kwnames[] = { | |
5269 | (char *) "self",(char *) "pt", NULL | |
5270 | }; | |
5271 | ||
5272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
5273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5275 | { | |
5276 | arg2 = &temp2; | |
5277 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5278 | } | |
5279 | { | |
5280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5281 | { | |
5282 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5283 | result = (wxPoint2D *) &_result_ref; | |
5284 | } | |
5285 | ||
5286 | wxPyEndAllowThreads(__tstate); | |
5287 | if (PyErr_Occurred()) SWIG_fail; | |
5288 | } | |
5289 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5290 | return resultobj; | |
5291 | fail: | |
5292 | return NULL; | |
5293 | } | |
5294 | ||
5295 | ||
5296 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5297 | PyObject *resultobj; | |
5298 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5299 | wxPoint2D *arg2 = 0 ; | |
5300 | wxPoint2D *result; | |
5301 | wxPoint2D temp2 ; | |
5302 | PyObject * obj0 = 0 ; | |
5303 | PyObject * obj1 = 0 ; | |
5304 | char *kwnames[] = { | |
5305 | (char *) "self",(char *) "pt", NULL | |
5306 | }; | |
5307 | ||
5308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
5309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5311 | { | |
5312 | arg2 = &temp2; | |
5313 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5314 | } | |
5315 | { | |
5316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5317 | { | |
5318 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5319 | result = (wxPoint2D *) &_result_ref; | |
5320 | } | |
5321 | ||
5322 | wxPyEndAllowThreads(__tstate); | |
5323 | if (PyErr_Occurred()) SWIG_fail; | |
5324 | } | |
5325 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5326 | return resultobj; | |
5327 | fail: | |
5328 | return NULL; | |
5329 | } | |
5330 | ||
5331 | ||
5332 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5333 | PyObject *resultobj; | |
5334 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5335 | wxPoint2D *arg2 = 0 ; | |
5336 | wxPoint2D *result; | |
5337 | wxPoint2D temp2 ; | |
5338 | PyObject * obj0 = 0 ; | |
5339 | PyObject * obj1 = 0 ; | |
5340 | char *kwnames[] = { | |
5341 | (char *) "self",(char *) "pt", NULL | |
5342 | }; | |
5343 | ||
5344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
5345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5347 | { | |
5348 | arg2 = &temp2; | |
5349 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5350 | } | |
5351 | { | |
5352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5353 | { | |
5354 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5355 | result = (wxPoint2D *) &_result_ref; | |
5356 | } | |
5357 | ||
5358 | wxPyEndAllowThreads(__tstate); | |
5359 | if (PyErr_Occurred()) SWIG_fail; | |
5360 | } | |
5361 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5362 | return resultobj; | |
5363 | fail: | |
5364 | return NULL; | |
5365 | } | |
5366 | ||
5367 | ||
5368 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5369 | PyObject *resultobj; | |
5370 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5371 | wxPoint2D *arg2 = 0 ; | |
5372 | bool result; | |
5373 | wxPoint2D temp2 ; | |
5374 | PyObject * obj0 = 0 ; | |
5375 | PyObject * obj1 = 0 ; | |
5376 | char *kwnames[] = { | |
5377 | (char *) "self",(char *) "pt", NULL | |
5378 | }; | |
5379 | ||
5380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
5381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5383 | { | |
5384 | arg2 = &temp2; | |
5385 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5386 | } | |
5387 | { | |
5388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5389 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5390 | ||
5391 | wxPyEndAllowThreads(__tstate); | |
5392 | if (PyErr_Occurred()) SWIG_fail; | |
5393 | } | |
5394 | { | |
5395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5396 | } | |
5397 | return resultobj; | |
5398 | fail: | |
5399 | return NULL; | |
5400 | } | |
5401 | ||
5402 | ||
5403 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5404 | PyObject *resultobj; | |
5405 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5406 | wxPoint2D *arg2 = 0 ; | |
5407 | bool result; | |
5408 | wxPoint2D temp2 ; | |
5409 | PyObject * obj0 = 0 ; | |
5410 | PyObject * obj1 = 0 ; | |
5411 | char *kwnames[] = { | |
5412 | (char *) "self",(char *) "pt", NULL | |
5413 | }; | |
5414 | ||
5415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
5416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5418 | { | |
5419 | arg2 = &temp2; | |
5420 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5421 | } | |
5422 | { | |
5423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5424 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5425 | ||
5426 | wxPyEndAllowThreads(__tstate); | |
5427 | if (PyErr_Occurred()) SWIG_fail; | |
5428 | } | |
5429 | { | |
5430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5431 | } | |
5432 | return resultobj; | |
5433 | fail: | |
5434 | return NULL; | |
5435 | } | |
5436 | ||
5437 | ||
5438 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5439 | PyObject *resultobj; | |
5440 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5441 | double arg2 ; | |
5442 | PyObject * obj0 = 0 ; | |
5443 | PyObject * obj1 = 0 ; | |
5444 | char *kwnames[] = { | |
5445 | (char *) "self",(char *) "m_x", NULL | |
5446 | }; | |
5447 | ||
5448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; | |
5449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5451 | arg2 = (double) SWIG_AsDouble(obj1); | |
5452 | if (PyErr_Occurred()) SWIG_fail; | |
5453 | if (arg1) (arg1)->m_x = arg2; | |
5454 | ||
5455 | Py_INCREF(Py_None); resultobj = Py_None; | |
5456 | return resultobj; | |
5457 | fail: | |
5458 | return NULL; | |
5459 | } | |
5460 | ||
5461 | ||
5462 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5463 | PyObject *resultobj; | |
5464 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5465 | double result; | |
5466 | PyObject * obj0 = 0 ; | |
5467 | char *kwnames[] = { | |
5468 | (char *) "self", NULL | |
5469 | }; | |
5470 | ||
5471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
5472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5474 | result = (double) ((arg1)->m_x); | |
5475 | ||
5476 | resultobj = SWIG_FromDouble((double)result); | |
5477 | return resultobj; | |
5478 | fail: | |
5479 | return NULL; | |
5480 | } | |
5481 | ||
5482 | ||
5483 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5484 | PyObject *resultobj; | |
5485 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5486 | double arg2 ; | |
5487 | PyObject * obj0 = 0 ; | |
5488 | PyObject * obj1 = 0 ; | |
5489 | char *kwnames[] = { | |
5490 | (char *) "self",(char *) "m_y", NULL | |
5491 | }; | |
5492 | ||
5493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; | |
5494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5496 | arg2 = (double) SWIG_AsDouble(obj1); | |
5497 | if (PyErr_Occurred()) SWIG_fail; | |
5498 | if (arg1) (arg1)->m_y = arg2; | |
5499 | ||
5500 | Py_INCREF(Py_None); resultobj = Py_None; | |
5501 | return resultobj; | |
5502 | fail: | |
5503 | return NULL; | |
5504 | } | |
5505 | ||
5506 | ||
5507 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5508 | PyObject *resultobj; | |
5509 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5510 | double result; | |
5511 | PyObject * obj0 = 0 ; | |
5512 | char *kwnames[] = { | |
5513 | (char *) "self", NULL | |
5514 | }; | |
5515 | ||
5516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
5517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5519 | result = (double) ((arg1)->m_y); | |
5520 | ||
5521 | resultobj = SWIG_FromDouble((double)result); | |
5522 | return resultobj; | |
5523 | fail: | |
5524 | return NULL; | |
5525 | } | |
5526 | ||
5527 | ||
5528 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5529 | PyObject *resultobj; | |
5530 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5531 | double arg2 = (double) 0 ; | |
5532 | double arg3 = (double) 0 ; | |
5533 | PyObject * obj0 = 0 ; | |
5534 | PyObject * obj1 = 0 ; | |
5535 | PyObject * obj2 = 0 ; | |
5536 | char *kwnames[] = { | |
5537 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5538 | }; | |
5539 | ||
5540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5543 | if (obj1) { | |
5544 | arg2 = (double) SWIG_AsDouble(obj1); | |
5545 | if (PyErr_Occurred()) SWIG_fail; | |
5546 | } | |
5547 | if (obj2) { | |
5548 | arg3 = (double) SWIG_AsDouble(obj2); | |
5549 | if (PyErr_Occurred()) SWIG_fail; | |
5550 | } | |
5551 | { | |
5552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5553 | wxPoint2D_Set(arg1,arg2,arg3); | |
5554 | ||
5555 | wxPyEndAllowThreads(__tstate); | |
5556 | if (PyErr_Occurred()) SWIG_fail; | |
5557 | } | |
5558 | Py_INCREF(Py_None); resultobj = Py_None; | |
5559 | return resultobj; | |
5560 | fail: | |
5561 | return NULL; | |
5562 | } | |
5563 | ||
5564 | ||
5565 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5566 | PyObject *resultobj; | |
5567 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5568 | PyObject *result; | |
5569 | PyObject * obj0 = 0 ; | |
5570 | char *kwnames[] = { | |
5571 | (char *) "self", NULL | |
5572 | }; | |
5573 | ||
5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; | |
5575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5577 | { | |
5578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5579 | result = (PyObject *)wxPoint2D_Get(arg1); | |
5580 | ||
5581 | wxPyEndAllowThreads(__tstate); | |
5582 | if (PyErr_Occurred()) SWIG_fail; | |
5583 | } | |
5584 | resultobj = result; | |
5585 | return resultobj; | |
5586 | fail: | |
5587 | return NULL; | |
5588 | } | |
5589 | ||
5590 | ||
5591 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5592 | PyObject *obj; | |
5593 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5594 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5595 | Py_INCREF(obj); | |
5596 | return Py_BuildValue((char *)""); | |
5597 | } | |
5598 | static int _wrap_DefaultPosition_set(PyObject *_val) { | |
5599 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); | |
5600 | return 1; | |
5601 | } | |
5602 | ||
5603 | ||
5604 | static PyObject *_wrap_DefaultPosition_get() { | |
5605 | PyObject *pyobj; | |
5606 | ||
5607 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); | |
5608 | return pyobj; | |
5609 | } | |
5610 | ||
5611 | ||
5612 | static int _wrap_DefaultSize_set(PyObject *_val) { | |
5613 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); | |
5614 | return 1; | |
5615 | } | |
5616 | ||
5617 | ||
5618 | static PyObject *_wrap_DefaultSize_get() { | |
5619 | PyObject *pyobj; | |
5620 | ||
5621 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); | |
5622 | return pyobj; | |
5623 | } | |
5624 | ||
5625 | ||
5626 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5627 | PyObject *resultobj; | |
5628 | PyObject *arg1 = (PyObject *) 0 ; | |
5629 | wxPyInputStream *result; | |
5630 | PyObject * obj0 = 0 ; | |
5631 | char *kwnames[] = { | |
5632 | (char *) "p", NULL | |
5633 | }; | |
5634 | ||
5635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5636 | arg1 = obj0; | |
5637 | { | |
5638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5639 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5640 | ||
5641 | wxPyEndAllowThreads(__tstate); | |
5642 | if (PyErr_Occurred()) SWIG_fail; | |
5643 | } | |
5644 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); | |
5645 | return resultobj; | |
5646 | fail: | |
5647 | return NULL; | |
5648 | } | |
5649 | ||
5650 | ||
5651 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5652 | PyObject *resultobj; | |
5653 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5654 | PyObject * obj0 = 0 ; | |
5655 | char *kwnames[] = { | |
5656 | (char *) "self", NULL | |
5657 | }; | |
5658 | ||
5659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
5660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5662 | { | |
5663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5664 | (arg1)->close(); | |
5665 | ||
5666 | wxPyEndAllowThreads(__tstate); | |
5667 | if (PyErr_Occurred()) SWIG_fail; | |
5668 | } | |
5669 | Py_INCREF(Py_None); resultobj = Py_None; | |
5670 | return resultobj; | |
5671 | fail: | |
5672 | return NULL; | |
5673 | } | |
5674 | ||
5675 | ||
5676 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5677 | PyObject *resultobj; | |
5678 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5679 | PyObject * obj0 = 0 ; | |
5680 | char *kwnames[] = { | |
5681 | (char *) "self", NULL | |
5682 | }; | |
5683 | ||
5684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
5685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5687 | { | |
5688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5689 | (arg1)->flush(); | |
5690 | ||
5691 | wxPyEndAllowThreads(__tstate); | |
5692 | if (PyErr_Occurred()) SWIG_fail; | |
5693 | } | |
5694 | Py_INCREF(Py_None); resultobj = Py_None; | |
5695 | return resultobj; | |
5696 | fail: | |
5697 | return NULL; | |
5698 | } | |
5699 | ||
5700 | ||
5701 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5702 | PyObject *resultobj; | |
5703 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5704 | bool result; | |
5705 | PyObject * obj0 = 0 ; | |
5706 | char *kwnames[] = { | |
5707 | (char *) "self", NULL | |
5708 | }; | |
5709 | ||
5710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
5711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5713 | { | |
5714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5715 | result = (bool)(arg1)->eof(); | |
5716 | ||
5717 | wxPyEndAllowThreads(__tstate); | |
5718 | if (PyErr_Occurred()) SWIG_fail; | |
5719 | } | |
5720 | { | |
5721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5722 | } | |
5723 | return resultobj; | |
5724 | fail: | |
5725 | return NULL; | |
5726 | } | |
5727 | ||
5728 | ||
5729 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5730 | PyObject *resultobj; | |
5731 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5732 | int arg2 = (int) -1 ; | |
5733 | PyObject *result; | |
5734 | PyObject * obj0 = 0 ; | |
5735 | PyObject * obj1 = 0 ; | |
5736 | char *kwnames[] = { | |
5737 | (char *) "self",(char *) "size", NULL | |
5738 | }; | |
5739 | ||
5740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; | |
5741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5743 | if (obj1) { | |
5744 | arg2 = (int) SWIG_AsInt(obj1); | |
5745 | if (PyErr_Occurred()) SWIG_fail; | |
5746 | } | |
5747 | { | |
5748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5749 | result = (PyObject *)(arg1)->read(arg2); | |
5750 | ||
5751 | wxPyEndAllowThreads(__tstate); | |
5752 | if (PyErr_Occurred()) SWIG_fail; | |
5753 | } | |
5754 | resultobj = result; | |
5755 | return resultobj; | |
5756 | fail: | |
5757 | return NULL; | |
5758 | } | |
5759 | ||
5760 | ||
5761 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5762 | PyObject *resultobj; | |
5763 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5764 | int arg2 = (int) -1 ; | |
5765 | PyObject *result; | |
5766 | PyObject * obj0 = 0 ; | |
5767 | PyObject * obj1 = 0 ; | |
5768 | char *kwnames[] = { | |
5769 | (char *) "self",(char *) "size", NULL | |
5770 | }; | |
5771 | ||
5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; | |
5773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5775 | if (obj1) { | |
5776 | arg2 = (int) SWIG_AsInt(obj1); | |
5777 | if (PyErr_Occurred()) SWIG_fail; | |
5778 | } | |
5779 | { | |
5780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5781 | result = (PyObject *)(arg1)->readline(arg2); | |
5782 | ||
5783 | wxPyEndAllowThreads(__tstate); | |
5784 | if (PyErr_Occurred()) SWIG_fail; | |
5785 | } | |
5786 | resultobj = result; | |
5787 | return resultobj; | |
5788 | fail: | |
5789 | return NULL; | |
5790 | } | |
5791 | ||
5792 | ||
5793 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5794 | PyObject *resultobj; | |
5795 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5796 | int arg2 = (int) -1 ; | |
5797 | PyObject *result; | |
5798 | PyObject * obj0 = 0 ; | |
5799 | PyObject * obj1 = 0 ; | |
5800 | char *kwnames[] = { | |
5801 | (char *) "self",(char *) "sizehint", NULL | |
5802 | }; | |
5803 | ||
5804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; | |
5805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5807 | if (obj1) { | |
5808 | arg2 = (int) SWIG_AsInt(obj1); | |
5809 | if (PyErr_Occurred()) SWIG_fail; | |
5810 | } | |
5811 | { | |
5812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5813 | result = (PyObject *)(arg1)->readlines(arg2); | |
5814 | ||
5815 | wxPyEndAllowThreads(__tstate); | |
5816 | if (PyErr_Occurred()) SWIG_fail; | |
5817 | } | |
5818 | resultobj = result; | |
5819 | return resultobj; | |
5820 | fail: | |
5821 | return NULL; | |
5822 | } | |
5823 | ||
5824 | ||
5825 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5826 | PyObject *resultobj; | |
5827 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5828 | int arg2 ; | |
5829 | int arg3 = (int) 0 ; | |
5830 | PyObject * obj0 = 0 ; | |
5831 | PyObject * obj1 = 0 ; | |
5832 | PyObject * obj2 = 0 ; | |
5833 | char *kwnames[] = { | |
5834 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5835 | }; | |
5836 | ||
5837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5840 | arg2 = (int) SWIG_AsInt(obj1); | |
5841 | if (PyErr_Occurred()) SWIG_fail; | |
5842 | if (obj2) { | |
5843 | arg3 = (int) SWIG_AsInt(obj2); | |
5844 | if (PyErr_Occurred()) SWIG_fail; | |
5845 | } | |
5846 | { | |
5847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5848 | (arg1)->seek(arg2,arg3); | |
5849 | ||
5850 | wxPyEndAllowThreads(__tstate); | |
5851 | if (PyErr_Occurred()) SWIG_fail; | |
5852 | } | |
5853 | Py_INCREF(Py_None); resultobj = Py_None; | |
5854 | return resultobj; | |
5855 | fail: | |
5856 | return NULL; | |
5857 | } | |
5858 | ||
5859 | ||
5860 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5861 | PyObject *resultobj; | |
5862 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5863 | int result; | |
5864 | PyObject * obj0 = 0 ; | |
5865 | char *kwnames[] = { | |
5866 | (char *) "self", NULL | |
5867 | }; | |
5868 | ||
5869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
5870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5872 | { | |
5873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5874 | result = (int)(arg1)->tell(); | |
5875 | ||
5876 | wxPyEndAllowThreads(__tstate); | |
5877 | if (PyErr_Occurred()) SWIG_fail; | |
5878 | } | |
5879 | resultobj = SWIG_FromInt((int)result); | |
5880 | return resultobj; | |
5881 | fail: | |
5882 | return NULL; | |
5883 | } | |
5884 | ||
5885 | ||
5886 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5887 | PyObject *resultobj; | |
5888 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5889 | char result; | |
5890 | PyObject * obj0 = 0 ; | |
5891 | char *kwnames[] = { | |
5892 | (char *) "self", NULL | |
5893 | }; | |
5894 | ||
5895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
5896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5898 | { | |
5899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5900 | result = (char)(arg1)->Peek(); | |
5901 | ||
5902 | wxPyEndAllowThreads(__tstate); | |
5903 | if (PyErr_Occurred()) SWIG_fail; | |
5904 | } | |
5905 | resultobj = SWIG_FromChar((char)result); | |
5906 | return resultobj; | |
5907 | fail: | |
5908 | return NULL; | |
5909 | } | |
5910 | ||
5911 | ||
5912 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5913 | PyObject *resultobj; | |
5914 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5915 | char result; | |
5916 | PyObject * obj0 = 0 ; | |
5917 | char *kwnames[] = { | |
5918 | (char *) "self", NULL | |
5919 | }; | |
5920 | ||
5921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
5922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5924 | { | |
5925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5926 | result = (char)(arg1)->GetC(); | |
5927 | ||
5928 | wxPyEndAllowThreads(__tstate); | |
5929 | if (PyErr_Occurred()) SWIG_fail; | |
5930 | } | |
5931 | resultobj = SWIG_FromChar((char)result); | |
5932 | return resultobj; | |
5933 | fail: | |
5934 | return NULL; | |
5935 | } | |
5936 | ||
5937 | ||
5938 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5939 | PyObject *resultobj; | |
5940 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5941 | size_t result; | |
5942 | PyObject * obj0 = 0 ; | |
5943 | char *kwnames[] = { | |
5944 | (char *) "self", NULL | |
5945 | }; | |
5946 | ||
5947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
5948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5950 | { | |
5951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5952 | result = (size_t)(arg1)->LastRead(); | |
5953 | ||
5954 | wxPyEndAllowThreads(__tstate); | |
5955 | if (PyErr_Occurred()) SWIG_fail; | |
5956 | } | |
5957 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
5958 | return resultobj; | |
5959 | fail: | |
5960 | return NULL; | |
5961 | } | |
5962 | ||
5963 | ||
5964 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5965 | PyObject *resultobj; | |
5966 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5967 | bool result; | |
5968 | PyObject * obj0 = 0 ; | |
5969 | char *kwnames[] = { | |
5970 | (char *) "self", NULL | |
5971 | }; | |
5972 | ||
5973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
5974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5976 | { | |
5977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5978 | result = (bool)(arg1)->CanRead(); | |
5979 | ||
5980 | wxPyEndAllowThreads(__tstate); | |
5981 | if (PyErr_Occurred()) SWIG_fail; | |
5982 | } | |
5983 | { | |
5984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5985 | } | |
5986 | return resultobj; | |
5987 | fail: | |
5988 | return NULL; | |
5989 | } | |
5990 | ||
5991 | ||
5992 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5993 | PyObject *resultobj; | |
5994 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5995 | bool result; | |
5996 | PyObject * obj0 = 0 ; | |
5997 | char *kwnames[] = { | |
5998 | (char *) "self", NULL | |
5999 | }; | |
6000 | ||
6001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
6002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6004 | { | |
6005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6006 | result = (bool)(arg1)->Eof(); | |
6007 | ||
6008 | wxPyEndAllowThreads(__tstate); | |
6009 | if (PyErr_Occurred()) SWIG_fail; | |
6010 | } | |
6011 | { | |
6012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6013 | } | |
6014 | return resultobj; | |
6015 | fail: | |
6016 | return NULL; | |
6017 | } | |
6018 | ||
6019 | ||
6020 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6021 | PyObject *resultobj; | |
6022 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6023 | char arg2 ; | |
6024 | bool result; | |
6025 | PyObject * obj0 = 0 ; | |
6026 | PyObject * obj1 = 0 ; | |
6027 | char *kwnames[] = { | |
6028 | (char *) "self",(char *) "c", NULL | |
6029 | }; | |
6030 | ||
6031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; | |
6032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6034 | arg2 = (char) SWIG_AsChar(obj1); | |
6035 | if (PyErr_Occurred()) SWIG_fail; | |
6036 | { | |
6037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6038 | result = (bool)(arg1)->Ungetch(arg2); | |
6039 | ||
6040 | wxPyEndAllowThreads(__tstate); | |
6041 | if (PyErr_Occurred()) SWIG_fail; | |
6042 | } | |
6043 | { | |
6044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6045 | } | |
6046 | return resultobj; | |
6047 | fail: | |
6048 | return NULL; | |
6049 | } | |
6050 | ||
6051 | ||
6052 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6053 | PyObject *resultobj; | |
6054 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6055 | long arg2 ; | |
6056 | int arg3 = (int) wxFromStart ; | |
6057 | long result; | |
6058 | PyObject * obj0 = 0 ; | |
6059 | PyObject * obj1 = 0 ; | |
6060 | PyObject * obj2 = 0 ; | |
6061 | char *kwnames[] = { | |
6062 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6063 | }; | |
6064 | ||
6065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6068 | arg2 = (long) SWIG_AsLong(obj1); | |
6069 | if (PyErr_Occurred()) SWIG_fail; | |
6070 | if (obj2) { | |
6071 | arg3 = (wxSeekMode) SWIG_AsInt(obj2); | |
6072 | if (PyErr_Occurred()) SWIG_fail; | |
6073 | } | |
6074 | { | |
6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6076 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6077 | ||
6078 | wxPyEndAllowThreads(__tstate); | |
6079 | if (PyErr_Occurred()) SWIG_fail; | |
6080 | } | |
6081 | resultobj = SWIG_FromLong((long)result); | |
6082 | return resultobj; | |
6083 | fail: | |
6084 | return NULL; | |
6085 | } | |
6086 | ||
6087 | ||
6088 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6089 | PyObject *resultobj; | |
6090 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6091 | long result; | |
6092 | PyObject * obj0 = 0 ; | |
6093 | char *kwnames[] = { | |
6094 | (char *) "self", NULL | |
6095 | }; | |
6096 | ||
6097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
6098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6100 | { | |
6101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6102 | result = (long)(arg1)->TellI(); | |
6103 | ||
6104 | wxPyEndAllowThreads(__tstate); | |
6105 | if (PyErr_Occurred()) SWIG_fail; | |
6106 | } | |
6107 | resultobj = SWIG_FromLong((long)result); | |
6108 | return resultobj; | |
6109 | fail: | |
6110 | return NULL; | |
6111 | } | |
6112 | ||
6113 | ||
6114 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
6115 | PyObject *obj; | |
6116 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6117 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6118 | Py_INCREF(obj); | |
6119 | return Py_BuildValue((char *)""); | |
6120 | } | |
6121 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6122 | PyObject *resultobj; | |
6123 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6124 | PyObject *arg2 = (PyObject *) 0 ; | |
6125 | PyObject * obj0 = 0 ; | |
6126 | PyObject * obj1 = 0 ; | |
6127 | char *kwnames[] = { | |
6128 | (char *) "self",(char *) "obj", NULL | |
6129 | }; | |
6130 | ||
6131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
6132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, | |
6133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6134 | arg2 = obj1; | |
6135 | { | |
6136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6137 | wxOutputStream_write(arg1,arg2); | |
6138 | ||
6139 | wxPyEndAllowThreads(__tstate); | |
6140 | if (PyErr_Occurred()) SWIG_fail; | |
6141 | } | |
6142 | Py_INCREF(Py_None); resultobj = Py_None; | |
6143 | return resultobj; | |
6144 | fail: | |
6145 | return NULL; | |
6146 | } | |
6147 | ||
6148 | ||
6149 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
6150 | PyObject *obj; | |
6151 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6152 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6153 | Py_INCREF(obj); | |
6154 | return Py_BuildValue((char *)""); | |
6155 | } | |
6156 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6157 | PyObject *resultobj; | |
6158 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6159 | wxString *arg2 = 0 ; | |
6160 | wxString *arg3 = 0 ; | |
6161 | wxString *arg4 = 0 ; | |
6162 | wxDateTime arg5 ; | |
6163 | wxFSFile *result; | |
6164 | wxPyInputStream *temp1 ; | |
6165 | bool created1 ; | |
6166 | bool temp2 = False ; | |
6167 | bool temp3 = False ; | |
6168 | bool temp4 = False ; | |
6169 | wxDateTime *argp5 ; | |
6170 | PyObject * obj0 = 0 ; | |
6171 | PyObject * obj1 = 0 ; | |
6172 | PyObject * obj2 = 0 ; | |
6173 | PyObject * obj3 = 0 ; | |
6174 | PyObject * obj4 = 0 ; | |
6175 | char *kwnames[] = { | |
6176 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6177 | }; | |
6178 | ||
6179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6180 | { | |
6181 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6182 | arg1 = temp1->m_wxis; | |
6183 | created1 = False; | |
6184 | } else { | |
6185 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
6186 | arg1 = wxPyCBInputStream_create(obj0, False); | |
6187 | if (arg1 == NULL) { | |
6188 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6189 | SWIG_fail; | |
6190 | } | |
6191 | created1 = True; | |
6192 | } | |
6193 | } | |
6194 | { | |
6195 | arg2 = wxString_in_helper(obj1); | |
6196 | if (arg2 == NULL) SWIG_fail; | |
6197 | temp2 = True; | |
6198 | } | |
6199 | { | |
6200 | arg3 = wxString_in_helper(obj2); | |
6201 | if (arg3 == NULL) SWIG_fail; | |
6202 | temp3 = True; | |
6203 | } | |
6204 | { | |
6205 | arg4 = wxString_in_helper(obj3); | |
6206 | if (arg4 == NULL) SWIG_fail; | |
6207 | temp4 = True; | |
6208 | } | |
6209 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, | |
6210 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6211 | arg5 = *argp5; | |
6212 | { | |
6213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6214 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6215 | ||
6216 | wxPyEndAllowThreads(__tstate); | |
6217 | if (PyErr_Occurred()) SWIG_fail; | |
6218 | } | |
6219 | { | |
6220 | resultobj = wxPyMake_wxObject(result); | |
6221 | } | |
6222 | { | |
6223 | if (created1) | |
6224 | delete arg1; | |
6225 | } | |
6226 | { | |
6227 | if (temp2) | |
6228 | delete arg2; | |
6229 | } | |
6230 | { | |
6231 | if (temp3) | |
6232 | delete arg3; | |
6233 | } | |
6234 | { | |
6235 | if (temp4) | |
6236 | delete arg4; | |
6237 | } | |
6238 | return resultobj; | |
6239 | fail: | |
6240 | { | |
6241 | if (created1) | |
6242 | delete arg1; | |
6243 | } | |
6244 | { | |
6245 | if (temp2) | |
6246 | delete arg2; | |
6247 | } | |
6248 | { | |
6249 | if (temp3) | |
6250 | delete arg3; | |
6251 | } | |
6252 | { | |
6253 | if (temp4) | |
6254 | delete arg4; | |
6255 | } | |
6256 | return NULL; | |
6257 | } | |
6258 | ||
6259 | ||
6260 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6261 | PyObject *resultobj; | |
6262 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6263 | PyObject * obj0 = 0 ; | |
6264 | char *kwnames[] = { | |
6265 | (char *) "self", NULL | |
6266 | }; | |
6267 | ||
6268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
6269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6271 | { | |
6272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6273 | delete arg1; | |
6274 | ||
6275 | wxPyEndAllowThreads(__tstate); | |
6276 | if (PyErr_Occurred()) SWIG_fail; | |
6277 | } | |
6278 | Py_INCREF(Py_None); resultobj = Py_None; | |
6279 | return resultobj; | |
6280 | fail: | |
6281 | return NULL; | |
6282 | } | |
6283 | ||
6284 | ||
6285 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6286 | PyObject *resultobj; | |
6287 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6288 | wxInputStream *result; | |
6289 | PyObject * obj0 = 0 ; | |
6290 | char *kwnames[] = { | |
6291 | (char *) "self", NULL | |
6292 | }; | |
6293 | ||
6294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
6295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6297 | { | |
6298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6299 | result = (wxInputStream *)(arg1)->GetStream(); | |
6300 | ||
6301 | wxPyEndAllowThreads(__tstate); | |
6302 | if (PyErr_Occurred()) SWIG_fail; | |
6303 | } | |
6304 | { | |
6305 | wxPyInputStream * _ptr = NULL; | |
6306 | ||
6307 | if (result) { | |
6308 | _ptr = new wxPyInputStream(result); | |
6309 | } | |
6310 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
6311 | } | |
6312 | return resultobj; | |
6313 | fail: | |
6314 | return NULL; | |
6315 | } | |
6316 | ||
6317 | ||
6318 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6319 | PyObject *resultobj; | |
6320 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6321 | wxString *result; | |
6322 | PyObject * obj0 = 0 ; | |
6323 | char *kwnames[] = { | |
6324 | (char *) "self", NULL | |
6325 | }; | |
6326 | ||
6327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
6328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6330 | { | |
6331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6332 | { | |
6333 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6334 | result = (wxString *) &_result_ref; | |
6335 | } | |
6336 | ||
6337 | wxPyEndAllowThreads(__tstate); | |
6338 | if (PyErr_Occurred()) SWIG_fail; | |
6339 | } | |
6340 | { | |
6341 | #if wxUSE_UNICODE | |
6342 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6343 | #else | |
6344 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6345 | #endif | |
6346 | } | |
6347 | return resultobj; | |
6348 | fail: | |
6349 | return NULL; | |
6350 | } | |
6351 | ||
6352 | ||
6353 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6354 | PyObject *resultobj; | |
6355 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6356 | wxString *result; | |
6357 | PyObject * obj0 = 0 ; | |
6358 | char *kwnames[] = { | |
6359 | (char *) "self", NULL | |
6360 | }; | |
6361 | ||
6362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
6363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6365 | { | |
6366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6367 | { | |
6368 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6369 | result = (wxString *) &_result_ref; | |
6370 | } | |
6371 | ||
6372 | wxPyEndAllowThreads(__tstate); | |
6373 | if (PyErr_Occurred()) SWIG_fail; | |
6374 | } | |
6375 | { | |
6376 | #if wxUSE_UNICODE | |
6377 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6378 | #else | |
6379 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6380 | #endif | |
6381 | } | |
6382 | return resultobj; | |
6383 | fail: | |
6384 | return NULL; | |
6385 | } | |
6386 | ||
6387 | ||
6388 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6389 | PyObject *resultobj; | |
6390 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6391 | wxString *result; | |
6392 | PyObject * obj0 = 0 ; | |
6393 | char *kwnames[] = { | |
6394 | (char *) "self", NULL | |
6395 | }; | |
6396 | ||
6397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
6398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6400 | { | |
6401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6402 | { | |
6403 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6404 | result = (wxString *) &_result_ref; | |
6405 | } | |
6406 | ||
6407 | wxPyEndAllowThreads(__tstate); | |
6408 | if (PyErr_Occurred()) SWIG_fail; | |
6409 | } | |
6410 | { | |
6411 | #if wxUSE_UNICODE | |
6412 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6413 | #else | |
6414 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6415 | #endif | |
6416 | } | |
6417 | return resultobj; | |
6418 | fail: | |
6419 | return NULL; | |
6420 | } | |
6421 | ||
6422 | ||
6423 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6424 | PyObject *resultobj; | |
6425 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6426 | wxDateTime result; | |
6427 | PyObject * obj0 = 0 ; | |
6428 | char *kwnames[] = { | |
6429 | (char *) "self", NULL | |
6430 | }; | |
6431 | ||
6432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
6433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6435 | { | |
6436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6437 | result = (arg1)->GetModificationTime(); | |
6438 | ||
6439 | wxPyEndAllowThreads(__tstate); | |
6440 | if (PyErr_Occurred()) SWIG_fail; | |
6441 | } | |
6442 | { | |
6443 | wxDateTime * resultptr; | |
6444 | resultptr = new wxDateTime((wxDateTime &) result); | |
6445 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
6446 | } | |
6447 | return resultobj; | |
6448 | fail: | |
6449 | return NULL; | |
6450 | } | |
6451 | ||
6452 | ||
6453 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6454 | PyObject *obj; | |
6455 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6456 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6457 | Py_INCREF(obj); | |
6458 | return Py_BuildValue((char *)""); | |
6459 | } | |
6460 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6461 | PyObject *obj; | |
6462 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6463 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6464 | Py_INCREF(obj); | |
6465 | return Py_BuildValue((char *)""); | |
6466 | } | |
6467 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6468 | PyObject *resultobj; | |
6469 | wxPyFileSystemHandler *result; | |
6470 | char *kwnames[] = { | |
6471 | NULL | |
6472 | }; | |
6473 | ||
6474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6475 | { | |
6476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6477 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6478 | ||
6479 | wxPyEndAllowThreads(__tstate); | |
6480 | if (PyErr_Occurred()) SWIG_fail; | |
6481 | } | |
6482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
6483 | return resultobj; | |
6484 | fail: | |
6485 | return NULL; | |
6486 | } | |
6487 | ||
6488 | ||
6489 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6490 | PyObject *resultobj; | |
6491 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6492 | PyObject *arg2 = (PyObject *) 0 ; | |
6493 | PyObject *arg3 = (PyObject *) 0 ; | |
6494 | PyObject * obj0 = 0 ; | |
6495 | PyObject * obj1 = 0 ; | |
6496 | PyObject * obj2 = 0 ; | |
6497 | char *kwnames[] = { | |
6498 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6499 | }; | |
6500 | ||
6501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6504 | arg2 = obj1; | |
6505 | arg3 = obj2; | |
6506 | { | |
6507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6508 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6509 | ||
6510 | wxPyEndAllowThreads(__tstate); | |
6511 | if (PyErr_Occurred()) SWIG_fail; | |
6512 | } | |
6513 | Py_INCREF(Py_None); resultobj = Py_None; | |
6514 | return resultobj; | |
6515 | fail: | |
6516 | return NULL; | |
6517 | } | |
6518 | ||
6519 | ||
6520 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6521 | PyObject *resultobj; | |
6522 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6523 | wxString *arg2 = 0 ; | |
6524 | bool result; | |
6525 | bool temp2 = False ; | |
6526 | PyObject * obj0 = 0 ; | |
6527 | PyObject * obj1 = 0 ; | |
6528 | char *kwnames[] = { | |
6529 | (char *) "self",(char *) "location", NULL | |
6530 | }; | |
6531 | ||
6532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6535 | { | |
6536 | arg2 = wxString_in_helper(obj1); | |
6537 | if (arg2 == NULL) SWIG_fail; | |
6538 | temp2 = True; | |
6539 | } | |
6540 | { | |
6541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6542 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6543 | ||
6544 | wxPyEndAllowThreads(__tstate); | |
6545 | if (PyErr_Occurred()) SWIG_fail; | |
6546 | } | |
6547 | { | |
6548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6549 | } | |
6550 | { | |
6551 | if (temp2) | |
6552 | delete arg2; | |
6553 | } | |
6554 | return resultobj; | |
6555 | fail: | |
6556 | { | |
6557 | if (temp2) | |
6558 | delete arg2; | |
6559 | } | |
6560 | return NULL; | |
6561 | } | |
6562 | ||
6563 | ||
6564 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6565 | PyObject *resultobj; | |
6566 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6567 | wxFileSystem *arg2 = 0 ; | |
6568 | wxString *arg3 = 0 ; | |
6569 | wxFSFile *result; | |
6570 | bool temp3 = False ; | |
6571 | PyObject * obj0 = 0 ; | |
6572 | PyObject * obj1 = 0 ; | |
6573 | PyObject * obj2 = 0 ; | |
6574 | char *kwnames[] = { | |
6575 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6576 | }; | |
6577 | ||
6578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6581 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6582 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6583 | SWIG_fail; | |
6584 | if (arg2 == NULL) { | |
6585 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6586 | SWIG_fail; | |
6587 | } | |
6588 | { | |
6589 | arg3 = wxString_in_helper(obj2); | |
6590 | if (arg3 == NULL) SWIG_fail; | |
6591 | temp3 = True; | |
6592 | } | |
6593 | { | |
6594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6595 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6596 | ||
6597 | wxPyEndAllowThreads(__tstate); | |
6598 | if (PyErr_Occurred()) SWIG_fail; | |
6599 | } | |
6600 | { | |
6601 | resultobj = wxPyMake_wxObject(result); | |
6602 | } | |
6603 | { | |
6604 | if (temp3) | |
6605 | delete arg3; | |
6606 | } | |
6607 | return resultobj; | |
6608 | fail: | |
6609 | { | |
6610 | if (temp3) | |
6611 | delete arg3; | |
6612 | } | |
6613 | return NULL; | |
6614 | } | |
6615 | ||
6616 | ||
6617 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6618 | PyObject *resultobj; | |
6619 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6620 | wxString *arg2 = 0 ; | |
6621 | int arg3 = (int) 0 ; | |
6622 | wxString result; | |
6623 | bool temp2 = False ; | |
6624 | PyObject * obj0 = 0 ; | |
6625 | PyObject * obj1 = 0 ; | |
6626 | PyObject * obj2 = 0 ; | |
6627 | char *kwnames[] = { | |
6628 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6629 | }; | |
6630 | ||
6631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6634 | { | |
6635 | arg2 = wxString_in_helper(obj1); | |
6636 | if (arg2 == NULL) SWIG_fail; | |
6637 | temp2 = True; | |
6638 | } | |
6639 | if (obj2) { | |
6640 | arg3 = (int) SWIG_AsInt(obj2); | |
6641 | if (PyErr_Occurred()) SWIG_fail; | |
6642 | } | |
6643 | { | |
6644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6645 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6646 | ||
6647 | wxPyEndAllowThreads(__tstate); | |
6648 | if (PyErr_Occurred()) SWIG_fail; | |
6649 | } | |
6650 | { | |
6651 | #if wxUSE_UNICODE | |
6652 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6653 | #else | |
6654 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6655 | #endif | |
6656 | } | |
6657 | { | |
6658 | if (temp2) | |
6659 | delete arg2; | |
6660 | } | |
6661 | return resultobj; | |
6662 | fail: | |
6663 | { | |
6664 | if (temp2) | |
6665 | delete arg2; | |
6666 | } | |
6667 | return NULL; | |
6668 | } | |
6669 | ||
6670 | ||
6671 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6672 | PyObject *resultobj; | |
6673 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6674 | wxString result; | |
6675 | PyObject * obj0 = 0 ; | |
6676 | char *kwnames[] = { | |
6677 | (char *) "self", NULL | |
6678 | }; | |
6679 | ||
6680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
6681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6683 | { | |
6684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6685 | result = (arg1)->FindNext(); | |
6686 | ||
6687 | wxPyEndAllowThreads(__tstate); | |
6688 | if (PyErr_Occurred()) SWIG_fail; | |
6689 | } | |
6690 | { | |
6691 | #if wxUSE_UNICODE | |
6692 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6693 | #else | |
6694 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6695 | #endif | |
6696 | } | |
6697 | return resultobj; | |
6698 | fail: | |
6699 | return NULL; | |
6700 | } | |
6701 | ||
6702 | ||
6703 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6704 | PyObject *resultobj; | |
6705 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6706 | wxString *arg2 = 0 ; | |
6707 | wxString result; | |
6708 | bool temp2 = False ; | |
6709 | PyObject * obj0 = 0 ; | |
6710 | PyObject * obj1 = 0 ; | |
6711 | char *kwnames[] = { | |
6712 | (char *) "self",(char *) "location", NULL | |
6713 | }; | |
6714 | ||
6715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
6716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6718 | { | |
6719 | arg2 = wxString_in_helper(obj1); | |
6720 | if (arg2 == NULL) SWIG_fail; | |
6721 | temp2 = True; | |
6722 | } | |
6723 | { | |
6724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6725 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6726 | ||
6727 | wxPyEndAllowThreads(__tstate); | |
6728 | if (PyErr_Occurred()) SWIG_fail; | |
6729 | } | |
6730 | { | |
6731 | #if wxUSE_UNICODE | |
6732 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6733 | #else | |
6734 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6735 | #endif | |
6736 | } | |
6737 | { | |
6738 | if (temp2) | |
6739 | delete arg2; | |
6740 | } | |
6741 | return resultobj; | |
6742 | fail: | |
6743 | { | |
6744 | if (temp2) | |
6745 | delete arg2; | |
6746 | } | |
6747 | return NULL; | |
6748 | } | |
6749 | ||
6750 | ||
6751 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6752 | PyObject *resultobj; | |
6753 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6754 | wxString *arg2 = 0 ; | |
6755 | wxString result; | |
6756 | bool temp2 = False ; | |
6757 | PyObject * obj0 = 0 ; | |
6758 | PyObject * obj1 = 0 ; | |
6759 | char *kwnames[] = { | |
6760 | (char *) "self",(char *) "location", NULL | |
6761 | }; | |
6762 | ||
6763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
6764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6766 | { | |
6767 | arg2 = wxString_in_helper(obj1); | |
6768 | if (arg2 == NULL) SWIG_fail; | |
6769 | temp2 = True; | |
6770 | } | |
6771 | { | |
6772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6773 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6774 | ||
6775 | wxPyEndAllowThreads(__tstate); | |
6776 | if (PyErr_Occurred()) SWIG_fail; | |
6777 | } | |
6778 | { | |
6779 | #if wxUSE_UNICODE | |
6780 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6781 | #else | |
6782 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6783 | #endif | |
6784 | } | |
6785 | { | |
6786 | if (temp2) | |
6787 | delete arg2; | |
6788 | } | |
6789 | return resultobj; | |
6790 | fail: | |
6791 | { | |
6792 | if (temp2) | |
6793 | delete arg2; | |
6794 | } | |
6795 | return NULL; | |
6796 | } | |
6797 | ||
6798 | ||
6799 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6800 | PyObject *resultobj; | |
6801 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6802 | wxString *arg2 = 0 ; | |
6803 | wxString result; | |
6804 | bool temp2 = False ; | |
6805 | PyObject * obj0 = 0 ; | |
6806 | PyObject * obj1 = 0 ; | |
6807 | char *kwnames[] = { | |
6808 | (char *) "self",(char *) "location", NULL | |
6809 | }; | |
6810 | ||
6811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
6812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6814 | { | |
6815 | arg2 = wxString_in_helper(obj1); | |
6816 | if (arg2 == NULL) SWIG_fail; | |
6817 | temp2 = True; | |
6818 | } | |
6819 | { | |
6820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6821 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6822 | ||
6823 | wxPyEndAllowThreads(__tstate); | |
6824 | if (PyErr_Occurred()) SWIG_fail; | |
6825 | } | |
6826 | { | |
6827 | #if wxUSE_UNICODE | |
6828 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6829 | #else | |
6830 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6831 | #endif | |
6832 | } | |
6833 | { | |
6834 | if (temp2) | |
6835 | delete arg2; | |
6836 | } | |
6837 | return resultobj; | |
6838 | fail: | |
6839 | { | |
6840 | if (temp2) | |
6841 | delete arg2; | |
6842 | } | |
6843 | return NULL; | |
6844 | } | |
6845 | ||
6846 | ||
6847 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6848 | PyObject *resultobj; | |
6849 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6850 | wxString *arg2 = 0 ; | |
6851 | wxString result; | |
6852 | bool temp2 = False ; | |
6853 | PyObject * obj0 = 0 ; | |
6854 | PyObject * obj1 = 0 ; | |
6855 | char *kwnames[] = { | |
6856 | (char *) "self",(char *) "location", NULL | |
6857 | }; | |
6858 | ||
6859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
6860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6862 | { | |
6863 | arg2 = wxString_in_helper(obj1); | |
6864 | if (arg2 == NULL) SWIG_fail; | |
6865 | temp2 = True; | |
6866 | } | |
6867 | { | |
6868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6869 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6870 | ||
6871 | wxPyEndAllowThreads(__tstate); | |
6872 | if (PyErr_Occurred()) SWIG_fail; | |
6873 | } | |
6874 | { | |
6875 | #if wxUSE_UNICODE | |
6876 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6877 | #else | |
6878 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6879 | #endif | |
6880 | } | |
6881 | { | |
6882 | if (temp2) | |
6883 | delete arg2; | |
6884 | } | |
6885 | return resultobj; | |
6886 | fail: | |
6887 | { | |
6888 | if (temp2) | |
6889 | delete arg2; | |
6890 | } | |
6891 | return NULL; | |
6892 | } | |
6893 | ||
6894 | ||
6895 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6896 | PyObject *resultobj; | |
6897 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6898 | wxString *arg2 = 0 ; | |
6899 | wxString result; | |
6900 | bool temp2 = False ; | |
6901 | PyObject * obj0 = 0 ; | |
6902 | PyObject * obj1 = 0 ; | |
6903 | char *kwnames[] = { | |
6904 | (char *) "self",(char *) "location", NULL | |
6905 | }; | |
6906 | ||
6907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
6908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6910 | { | |
6911 | arg2 = wxString_in_helper(obj1); | |
6912 | if (arg2 == NULL) SWIG_fail; | |
6913 | temp2 = True; | |
6914 | } | |
6915 | { | |
6916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6917 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6918 | ||
6919 | wxPyEndAllowThreads(__tstate); | |
6920 | if (PyErr_Occurred()) SWIG_fail; | |
6921 | } | |
6922 | { | |
6923 | #if wxUSE_UNICODE | |
6924 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6925 | #else | |
6926 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6927 | #endif | |
6928 | } | |
6929 | { | |
6930 | if (temp2) | |
6931 | delete arg2; | |
6932 | } | |
6933 | return resultobj; | |
6934 | fail: | |
6935 | { | |
6936 | if (temp2) | |
6937 | delete arg2; | |
6938 | } | |
6939 | return NULL; | |
6940 | } | |
6941 | ||
6942 | ||
6943 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6944 | PyObject *obj; | |
6945 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6946 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
6947 | Py_INCREF(obj); | |
6948 | return Py_BuildValue((char *)""); | |
6949 | } | |
6950 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6951 | PyObject *resultobj; | |
6952 | wxFileSystem *result; | |
6953 | char *kwnames[] = { | |
6954 | NULL | |
6955 | }; | |
6956 | ||
6957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6958 | { | |
6959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6960 | result = (wxFileSystem *)new wxFileSystem(); | |
6961 | ||
6962 | wxPyEndAllowThreads(__tstate); | |
6963 | if (PyErr_Occurred()) SWIG_fail; | |
6964 | } | |
6965 | { | |
6966 | resultobj = wxPyMake_wxObject(result); | |
6967 | } | |
6968 | return resultobj; | |
6969 | fail: | |
6970 | return NULL; | |
6971 | } | |
6972 | ||
6973 | ||
6974 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6975 | PyObject *resultobj; | |
6976 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6977 | PyObject * obj0 = 0 ; | |
6978 | char *kwnames[] = { | |
6979 | (char *) "self", NULL | |
6980 | }; | |
6981 | ||
6982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
6983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
6984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6985 | { | |
6986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6987 | delete arg1; | |
6988 | ||
6989 | wxPyEndAllowThreads(__tstate); | |
6990 | if (PyErr_Occurred()) SWIG_fail; | |
6991 | } | |
6992 | Py_INCREF(Py_None); resultobj = Py_None; | |
6993 | return resultobj; | |
6994 | fail: | |
6995 | return NULL; | |
6996 | } | |
6997 | ||
6998 | ||
6999 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7000 | PyObject *resultobj; | |
7001 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7002 | wxString *arg2 = 0 ; | |
7003 | bool arg3 = (bool) False ; | |
7004 | bool temp2 = False ; | |
7005 | PyObject * obj0 = 0 ; | |
7006 | PyObject * obj1 = 0 ; | |
7007 | PyObject * obj2 = 0 ; | |
7008 | char *kwnames[] = { | |
7009 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7010 | }; | |
7011 | ||
7012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7015 | { | |
7016 | arg2 = wxString_in_helper(obj1); | |
7017 | if (arg2 == NULL) SWIG_fail; | |
7018 | temp2 = True; | |
7019 | } | |
7020 | if (obj2) { | |
7021 | arg3 = (bool) SWIG_AsBool(obj2); | |
7022 | if (PyErr_Occurred()) SWIG_fail; | |
7023 | } | |
7024 | { | |
7025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7026 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7027 | ||
7028 | wxPyEndAllowThreads(__tstate); | |
7029 | if (PyErr_Occurred()) SWIG_fail; | |
7030 | } | |
7031 | Py_INCREF(Py_None); resultobj = Py_None; | |
7032 | { | |
7033 | if (temp2) | |
7034 | delete arg2; | |
7035 | } | |
7036 | return resultobj; | |
7037 | fail: | |
7038 | { | |
7039 | if (temp2) | |
7040 | delete arg2; | |
7041 | } | |
7042 | return NULL; | |
7043 | } | |
7044 | ||
7045 | ||
7046 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7047 | PyObject *resultobj; | |
7048 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7049 | wxString result; | |
7050 | PyObject * obj0 = 0 ; | |
7051 | char *kwnames[] = { | |
7052 | (char *) "self", NULL | |
7053 | }; | |
7054 | ||
7055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
7056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7058 | { | |
7059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7060 | result = (arg1)->GetPath(); | |
7061 | ||
7062 | wxPyEndAllowThreads(__tstate); | |
7063 | if (PyErr_Occurred()) SWIG_fail; | |
7064 | } | |
7065 | { | |
7066 | #if wxUSE_UNICODE | |
7067 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7068 | #else | |
7069 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7070 | #endif | |
7071 | } | |
7072 | return resultobj; | |
7073 | fail: | |
7074 | return NULL; | |
7075 | } | |
7076 | ||
7077 | ||
7078 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7079 | PyObject *resultobj; | |
7080 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7081 | wxString *arg2 = 0 ; | |
7082 | wxFSFile *result; | |
7083 | bool temp2 = False ; | |
7084 | PyObject * obj0 = 0 ; | |
7085 | PyObject * obj1 = 0 ; | |
7086 | char *kwnames[] = { | |
7087 | (char *) "self",(char *) "location", NULL | |
7088 | }; | |
7089 | ||
7090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
7091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7093 | { | |
7094 | arg2 = wxString_in_helper(obj1); | |
7095 | if (arg2 == NULL) SWIG_fail; | |
7096 | temp2 = True; | |
7097 | } | |
7098 | { | |
7099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7100 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7101 | ||
7102 | wxPyEndAllowThreads(__tstate); | |
7103 | if (PyErr_Occurred()) SWIG_fail; | |
7104 | } | |
7105 | { | |
7106 | resultobj = wxPyMake_wxObject(result); | |
7107 | } | |
7108 | { | |
7109 | if (temp2) | |
7110 | delete arg2; | |
7111 | } | |
7112 | return resultobj; | |
7113 | fail: | |
7114 | { | |
7115 | if (temp2) | |
7116 | delete arg2; | |
7117 | } | |
7118 | return NULL; | |
7119 | } | |
7120 | ||
7121 | ||
7122 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7123 | PyObject *resultobj; | |
7124 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7125 | wxString *arg2 = 0 ; | |
7126 | int arg3 = (int) 0 ; | |
7127 | wxString result; | |
7128 | bool temp2 = False ; | |
7129 | PyObject * obj0 = 0 ; | |
7130 | PyObject * obj1 = 0 ; | |
7131 | PyObject * obj2 = 0 ; | |
7132 | char *kwnames[] = { | |
7133 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7134 | }; | |
7135 | ||
7136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7139 | { | |
7140 | arg2 = wxString_in_helper(obj1); | |
7141 | if (arg2 == NULL) SWIG_fail; | |
7142 | temp2 = True; | |
7143 | } | |
7144 | if (obj2) { | |
7145 | arg3 = (int) SWIG_AsInt(obj2); | |
7146 | if (PyErr_Occurred()) SWIG_fail; | |
7147 | } | |
7148 | { | |
7149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7150 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7151 | ||
7152 | wxPyEndAllowThreads(__tstate); | |
7153 | if (PyErr_Occurred()) SWIG_fail; | |
7154 | } | |
7155 | { | |
7156 | #if wxUSE_UNICODE | |
7157 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7158 | #else | |
7159 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7160 | #endif | |
7161 | } | |
7162 | { | |
7163 | if (temp2) | |
7164 | delete arg2; | |
7165 | } | |
7166 | return resultobj; | |
7167 | fail: | |
7168 | { | |
7169 | if (temp2) | |
7170 | delete arg2; | |
7171 | } | |
7172 | return NULL; | |
7173 | } | |
7174 | ||
7175 | ||
7176 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7177 | PyObject *resultobj; | |
7178 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7179 | wxString result; | |
7180 | PyObject * obj0 = 0 ; | |
7181 | char *kwnames[] = { | |
7182 | (char *) "self", NULL | |
7183 | }; | |
7184 | ||
7185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
7186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7188 | { | |
7189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7190 | result = (arg1)->FindNext(); | |
7191 | ||
7192 | wxPyEndAllowThreads(__tstate); | |
7193 | if (PyErr_Occurred()) SWIG_fail; | |
7194 | } | |
7195 | { | |
7196 | #if wxUSE_UNICODE | |
7197 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7198 | #else | |
7199 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7200 | #endif | |
7201 | } | |
7202 | return resultobj; | |
7203 | fail: | |
7204 | return NULL; | |
7205 | } | |
7206 | ||
7207 | ||
7208 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7209 | PyObject *resultobj; | |
7210 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7211 | PyObject * obj0 = 0 ; | |
7212 | char *kwnames[] = { | |
7213 | (char *) "handler", NULL | |
7214 | }; | |
7215 | ||
7216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
7217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, | |
7218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7219 | { | |
7220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7221 | wxFileSystem::AddHandler(arg1); | |
7222 | ||
7223 | wxPyEndAllowThreads(__tstate); | |
7224 | if (PyErr_Occurred()) SWIG_fail; | |
7225 | } | |
7226 | Py_INCREF(Py_None); resultobj = Py_None; | |
7227 | return resultobj; | |
7228 | fail: | |
7229 | return NULL; | |
7230 | } | |
7231 | ||
7232 | ||
7233 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7234 | PyObject *resultobj; | |
7235 | char *kwnames[] = { | |
7236 | NULL | |
7237 | }; | |
7238 | ||
7239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7240 | { | |
7241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7242 | wxFileSystem::CleanUpHandlers(); | |
7243 | ||
7244 | wxPyEndAllowThreads(__tstate); | |
7245 | if (PyErr_Occurred()) SWIG_fail; | |
7246 | } | |
7247 | Py_INCREF(Py_None); resultobj = Py_None; | |
7248 | return resultobj; | |
7249 | fail: | |
7250 | return NULL; | |
7251 | } | |
7252 | ||
7253 | ||
7254 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7255 | PyObject *resultobj; | |
7256 | wxString *arg1 = 0 ; | |
7257 | wxString result; | |
7258 | bool temp1 = False ; | |
7259 | PyObject * obj0 = 0 ; | |
7260 | char *kwnames[] = { | |
7261 | (char *) "filename", NULL | |
7262 | }; | |
7263 | ||
7264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7265 | { | |
7266 | arg1 = wxString_in_helper(obj0); | |
7267 | if (arg1 == NULL) SWIG_fail; | |
7268 | temp1 = True; | |
7269 | } | |
7270 | { | |
7271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7272 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7273 | ||
7274 | wxPyEndAllowThreads(__tstate); | |
7275 | if (PyErr_Occurred()) SWIG_fail; | |
7276 | } | |
7277 | { | |
7278 | #if wxUSE_UNICODE | |
7279 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7280 | #else | |
7281 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7282 | #endif | |
7283 | } | |
7284 | { | |
7285 | if (temp1) | |
7286 | delete arg1; | |
7287 | } | |
7288 | return resultobj; | |
7289 | fail: | |
7290 | { | |
7291 | if (temp1) | |
7292 | delete arg1; | |
7293 | } | |
7294 | return NULL; | |
7295 | } | |
7296 | ||
7297 | ||
7298 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
7299 | PyObject *obj; | |
7300 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7301 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7302 | Py_INCREF(obj); | |
7303 | return Py_BuildValue((char *)""); | |
7304 | } | |
7305 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7306 | PyObject *resultobj; | |
7307 | wxString *arg1 = 0 ; | |
7308 | wxString result; | |
7309 | bool temp1 = False ; | |
7310 | PyObject * obj0 = 0 ; | |
7311 | char *kwnames[] = { | |
7312 | (char *) "url", NULL | |
7313 | }; | |
7314 | ||
7315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7316 | { | |
7317 | arg1 = wxString_in_helper(obj0); | |
7318 | if (arg1 == NULL) SWIG_fail; | |
7319 | temp1 = True; | |
7320 | } | |
7321 | { | |
7322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7323 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
7324 | ||
7325 | wxPyEndAllowThreads(__tstate); | |
7326 | if (PyErr_Occurred()) SWIG_fail; | |
7327 | } | |
7328 | { | |
7329 | #if wxUSE_UNICODE | |
7330 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7331 | #else | |
7332 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7333 | #endif | |
7334 | } | |
7335 | { | |
7336 | if (temp1) | |
7337 | delete arg1; | |
7338 | } | |
7339 | return resultobj; | |
7340 | fail: | |
7341 | { | |
7342 | if (temp1) | |
7343 | delete arg1; | |
7344 | } | |
7345 | return NULL; | |
7346 | } | |
7347 | ||
7348 | ||
7349 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7350 | PyObject *resultobj; | |
7351 | wxInternetFSHandler *result; | |
7352 | char *kwnames[] = { | |
7353 | NULL | |
7354 | }; | |
7355 | ||
7356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7357 | { | |
7358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7359 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7360 | ||
7361 | wxPyEndAllowThreads(__tstate); | |
7362 | if (PyErr_Occurred()) SWIG_fail; | |
7363 | } | |
7364 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); | |
7365 | return resultobj; | |
7366 | fail: | |
7367 | return NULL; | |
7368 | } | |
7369 | ||
7370 | ||
7371 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7372 | PyObject *resultobj; | |
7373 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7374 | wxString *arg2 = 0 ; | |
7375 | bool result; | |
7376 | bool temp2 = False ; | |
7377 | PyObject * obj0 = 0 ; | |
7378 | PyObject * obj1 = 0 ; | |
7379 | char *kwnames[] = { | |
7380 | (char *) "self",(char *) "location", NULL | |
7381 | }; | |
7382 | ||
7383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7386 | { | |
7387 | arg2 = wxString_in_helper(obj1); | |
7388 | if (arg2 == NULL) SWIG_fail; | |
7389 | temp2 = True; | |
7390 | } | |
7391 | { | |
7392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7393 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7394 | ||
7395 | wxPyEndAllowThreads(__tstate); | |
7396 | if (PyErr_Occurred()) SWIG_fail; | |
7397 | } | |
7398 | { | |
7399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7400 | } | |
7401 | { | |
7402 | if (temp2) | |
7403 | delete arg2; | |
7404 | } | |
7405 | return resultobj; | |
7406 | fail: | |
7407 | { | |
7408 | if (temp2) | |
7409 | delete arg2; | |
7410 | } | |
7411 | return NULL; | |
7412 | } | |
7413 | ||
7414 | ||
7415 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7416 | PyObject *resultobj; | |
7417 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7418 | wxFileSystem *arg2 = 0 ; | |
7419 | wxString *arg3 = 0 ; | |
7420 | wxFSFile *result; | |
7421 | bool temp3 = False ; | |
7422 | PyObject * obj0 = 0 ; | |
7423 | PyObject * obj1 = 0 ; | |
7424 | PyObject * obj2 = 0 ; | |
7425 | char *kwnames[] = { | |
7426 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7427 | }; | |
7428 | ||
7429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7432 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7433 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7434 | SWIG_fail; | |
7435 | if (arg2 == NULL) { | |
7436 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7437 | SWIG_fail; | |
7438 | } | |
7439 | { | |
7440 | arg3 = wxString_in_helper(obj2); | |
7441 | if (arg3 == NULL) SWIG_fail; | |
7442 | temp3 = True; | |
7443 | } | |
7444 | { | |
7445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7446 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7447 | ||
7448 | wxPyEndAllowThreads(__tstate); | |
7449 | if (PyErr_Occurred()) SWIG_fail; | |
7450 | } | |
7451 | { | |
7452 | resultobj = wxPyMake_wxObject(result); | |
7453 | } | |
7454 | { | |
7455 | if (temp3) | |
7456 | delete arg3; | |
7457 | } | |
7458 | return resultobj; | |
7459 | fail: | |
7460 | { | |
7461 | if (temp3) | |
7462 | delete arg3; | |
7463 | } | |
7464 | return NULL; | |
7465 | } | |
7466 | ||
7467 | ||
7468 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7469 | PyObject *obj; | |
7470 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7471 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7472 | Py_INCREF(obj); | |
7473 | return Py_BuildValue((char *)""); | |
7474 | } | |
7475 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7476 | PyObject *resultobj; | |
7477 | wxZipFSHandler *result; | |
7478 | char *kwnames[] = { | |
7479 | NULL | |
7480 | }; | |
7481 | ||
7482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7483 | { | |
7484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7485 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7486 | ||
7487 | wxPyEndAllowThreads(__tstate); | |
7488 | if (PyErr_Occurred()) SWIG_fail; | |
7489 | } | |
7490 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); | |
7491 | return resultobj; | |
7492 | fail: | |
7493 | return NULL; | |
7494 | } | |
7495 | ||
7496 | ||
7497 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7498 | PyObject *resultobj; | |
7499 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7500 | wxString *arg2 = 0 ; | |
7501 | bool result; | |
7502 | bool temp2 = False ; | |
7503 | PyObject * obj0 = 0 ; | |
7504 | PyObject * obj1 = 0 ; | |
7505 | char *kwnames[] = { | |
7506 | (char *) "self",(char *) "location", NULL | |
7507 | }; | |
7508 | ||
7509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7512 | { | |
7513 | arg2 = wxString_in_helper(obj1); | |
7514 | if (arg2 == NULL) SWIG_fail; | |
7515 | temp2 = True; | |
7516 | } | |
7517 | { | |
7518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7519 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7520 | ||
7521 | wxPyEndAllowThreads(__tstate); | |
7522 | if (PyErr_Occurred()) SWIG_fail; | |
7523 | } | |
7524 | { | |
7525 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7526 | } | |
7527 | { | |
7528 | if (temp2) | |
7529 | delete arg2; | |
7530 | } | |
7531 | return resultobj; | |
7532 | fail: | |
7533 | { | |
7534 | if (temp2) | |
7535 | delete arg2; | |
7536 | } | |
7537 | return NULL; | |
7538 | } | |
7539 | ||
7540 | ||
7541 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7542 | PyObject *resultobj; | |
7543 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7544 | wxFileSystem *arg2 = 0 ; | |
7545 | wxString *arg3 = 0 ; | |
7546 | wxFSFile *result; | |
7547 | bool temp3 = False ; | |
7548 | PyObject * obj0 = 0 ; | |
7549 | PyObject * obj1 = 0 ; | |
7550 | PyObject * obj2 = 0 ; | |
7551 | char *kwnames[] = { | |
7552 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7553 | }; | |
7554 | ||
7555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7558 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7559 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7560 | SWIG_fail; | |
7561 | if (arg2 == NULL) { | |
7562 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7563 | SWIG_fail; | |
7564 | } | |
7565 | { | |
7566 | arg3 = wxString_in_helper(obj2); | |
7567 | if (arg3 == NULL) SWIG_fail; | |
7568 | temp3 = True; | |
7569 | } | |
7570 | { | |
7571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7572 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7573 | ||
7574 | wxPyEndAllowThreads(__tstate); | |
7575 | if (PyErr_Occurred()) SWIG_fail; | |
7576 | } | |
7577 | { | |
7578 | resultobj = wxPyMake_wxObject(result); | |
7579 | } | |
7580 | { | |
7581 | if (temp3) | |
7582 | delete arg3; | |
7583 | } | |
7584 | return resultobj; | |
7585 | fail: | |
7586 | { | |
7587 | if (temp3) | |
7588 | delete arg3; | |
7589 | } | |
7590 | return NULL; | |
7591 | } | |
7592 | ||
7593 | ||
7594 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7595 | PyObject *resultobj; | |
7596 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7597 | wxString *arg2 = 0 ; | |
7598 | int arg3 = (int) 0 ; | |
7599 | wxString result; | |
7600 | bool temp2 = False ; | |
7601 | PyObject * obj0 = 0 ; | |
7602 | PyObject * obj1 = 0 ; | |
7603 | PyObject * obj2 = 0 ; | |
7604 | char *kwnames[] = { | |
7605 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7606 | }; | |
7607 | ||
7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7611 | { | |
7612 | arg2 = wxString_in_helper(obj1); | |
7613 | if (arg2 == NULL) SWIG_fail; | |
7614 | temp2 = True; | |
7615 | } | |
7616 | if (obj2) { | |
7617 | arg3 = (int) SWIG_AsInt(obj2); | |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
7619 | } | |
7620 | { | |
7621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7622 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7623 | ||
7624 | wxPyEndAllowThreads(__tstate); | |
7625 | if (PyErr_Occurred()) SWIG_fail; | |
7626 | } | |
7627 | { | |
7628 | #if wxUSE_UNICODE | |
7629 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7630 | #else | |
7631 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7632 | #endif | |
7633 | } | |
7634 | { | |
7635 | if (temp2) | |
7636 | delete arg2; | |
7637 | } | |
7638 | return resultobj; | |
7639 | fail: | |
7640 | { | |
7641 | if (temp2) | |
7642 | delete arg2; | |
7643 | } | |
7644 | return NULL; | |
7645 | } | |
7646 | ||
7647 | ||
7648 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7649 | PyObject *resultobj; | |
7650 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7651 | wxString result; | |
7652 | PyObject * obj0 = 0 ; | |
7653 | char *kwnames[] = { | |
7654 | (char *) "self", NULL | |
7655 | }; | |
7656 | ||
7657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7660 | { | |
7661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7662 | result = (arg1)->FindNext(); | |
7663 | ||
7664 | wxPyEndAllowThreads(__tstate); | |
7665 | if (PyErr_Occurred()) SWIG_fail; | |
7666 | } | |
7667 | { | |
7668 | #if wxUSE_UNICODE | |
7669 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7670 | #else | |
7671 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7672 | #endif | |
7673 | } | |
7674 | return resultobj; | |
7675 | fail: | |
7676 | return NULL; | |
7677 | } | |
7678 | ||
7679 | ||
7680 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7681 | PyObject *obj; | |
7682 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7683 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7684 | Py_INCREF(obj); | |
7685 | return Py_BuildValue((char *)""); | |
7686 | } | |
7687 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7688 | PyObject *resultobj; | |
7689 | wxString *arg1 = 0 ; | |
7690 | wxImage *arg2 = 0 ; | |
7691 | long arg3 ; | |
7692 | bool temp1 = False ; | |
7693 | PyObject * obj0 = 0 ; | |
7694 | PyObject * obj1 = 0 ; | |
7695 | PyObject * obj2 = 0 ; | |
7696 | char *kwnames[] = { | |
7697 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7698 | }; | |
7699 | ||
7700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7701 | { | |
7702 | arg1 = wxString_in_helper(obj0); | |
7703 | if (arg1 == NULL) SWIG_fail; | |
7704 | temp1 = True; | |
7705 | } | |
7706 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
7707 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7708 | SWIG_fail; | |
7709 | if (arg2 == NULL) { | |
7710 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7711 | SWIG_fail; | |
7712 | } | |
7713 | arg3 = (long) SWIG_AsLong(obj2); | |
7714 | if (PyErr_Occurred()) SWIG_fail; | |
7715 | { | |
7716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7717 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7718 | ||
7719 | wxPyEndAllowThreads(__tstate); | |
7720 | if (PyErr_Occurred()) SWIG_fail; | |
7721 | } | |
7722 | Py_INCREF(Py_None); resultobj = Py_None; | |
7723 | { | |
7724 | if (temp1) | |
7725 | delete arg1; | |
7726 | } | |
7727 | return resultobj; | |
7728 | fail: | |
7729 | { | |
7730 | if (temp1) | |
7731 | delete arg1; | |
7732 | } | |
7733 | return NULL; | |
7734 | } | |
7735 | ||
7736 | ||
7737 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7738 | PyObject *resultobj; | |
7739 | wxString *arg1 = 0 ; | |
7740 | wxBitmap *arg2 = 0 ; | |
7741 | long arg3 ; | |
7742 | bool temp1 = False ; | |
7743 | PyObject * obj0 = 0 ; | |
7744 | PyObject * obj1 = 0 ; | |
7745 | PyObject * obj2 = 0 ; | |
7746 | char *kwnames[] = { | |
7747 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7748 | }; | |
7749 | ||
7750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7751 | { | |
7752 | arg1 = wxString_in_helper(obj0); | |
7753 | if (arg1 == NULL) SWIG_fail; | |
7754 | temp1 = True; | |
7755 | } | |
7756 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
7757 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7758 | SWIG_fail; | |
7759 | if (arg2 == NULL) { | |
7760 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7761 | SWIG_fail; | |
7762 | } | |
7763 | arg3 = (long) SWIG_AsLong(obj2); | |
7764 | if (PyErr_Occurred()) SWIG_fail; | |
7765 | { | |
7766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7767 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7768 | ||
7769 | wxPyEndAllowThreads(__tstate); | |
7770 | if (PyErr_Occurred()) SWIG_fail; | |
7771 | } | |
7772 | Py_INCREF(Py_None); resultobj = Py_None; | |
7773 | { | |
7774 | if (temp1) | |
7775 | delete arg1; | |
7776 | } | |
7777 | return resultobj; | |
7778 | fail: | |
7779 | { | |
7780 | if (temp1) | |
7781 | delete arg1; | |
7782 | } | |
7783 | return NULL; | |
7784 | } | |
7785 | ||
7786 | ||
7787 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7788 | PyObject *resultobj; | |
7789 | wxString *arg1 = 0 ; | |
7790 | PyObject *arg2 = (PyObject *) 0 ; | |
7791 | bool temp1 = False ; | |
7792 | PyObject * obj0 = 0 ; | |
7793 | PyObject * obj1 = 0 ; | |
7794 | char *kwnames[] = { | |
7795 | (char *) "filename",(char *) "data", NULL | |
7796 | }; | |
7797 | ||
7798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7799 | { | |
7800 | arg1 = wxString_in_helper(obj0); | |
7801 | if (arg1 == NULL) SWIG_fail; | |
7802 | temp1 = True; | |
7803 | } | |
7804 | arg2 = obj1; | |
7805 | { | |
7806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7807 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7808 | ||
7809 | wxPyEndAllowThreads(__tstate); | |
7810 | if (PyErr_Occurred()) SWIG_fail; | |
7811 | } | |
7812 | Py_INCREF(Py_None); resultobj = Py_None; | |
7813 | { | |
7814 | if (temp1) | |
7815 | delete arg1; | |
7816 | } | |
7817 | return resultobj; | |
7818 | fail: | |
7819 | { | |
7820 | if (temp1) | |
7821 | delete arg1; | |
7822 | } | |
7823 | return NULL; | |
7824 | } | |
7825 | ||
7826 | ||
7827 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7828 | PyObject *resultobj; | |
7829 | wxMemoryFSHandler *result; | |
7830 | char *kwnames[] = { | |
7831 | NULL | |
7832 | }; | |
7833 | ||
7834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7835 | { | |
7836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7837 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7838 | ||
7839 | wxPyEndAllowThreads(__tstate); | |
7840 | if (PyErr_Occurred()) SWIG_fail; | |
7841 | } | |
7842 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); | |
7843 | return resultobj; | |
7844 | fail: | |
7845 | return NULL; | |
7846 | } | |
7847 | ||
7848 | ||
7849 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7850 | PyObject *resultobj; | |
7851 | wxString *arg1 = 0 ; | |
7852 | bool temp1 = False ; | |
7853 | PyObject * obj0 = 0 ; | |
7854 | char *kwnames[] = { | |
7855 | (char *) "filename", NULL | |
7856 | }; | |
7857 | ||
7858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7859 | { | |
7860 | arg1 = wxString_in_helper(obj0); | |
7861 | if (arg1 == NULL) SWIG_fail; | |
7862 | temp1 = True; | |
7863 | } | |
7864 | { | |
7865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7866 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7867 | ||
7868 | wxPyEndAllowThreads(__tstate); | |
7869 | if (PyErr_Occurred()) SWIG_fail; | |
7870 | } | |
7871 | Py_INCREF(Py_None); resultobj = Py_None; | |
7872 | { | |
7873 | if (temp1) | |
7874 | delete arg1; | |
7875 | } | |
7876 | return resultobj; | |
7877 | fail: | |
7878 | { | |
7879 | if (temp1) | |
7880 | delete arg1; | |
7881 | } | |
7882 | return NULL; | |
7883 | } | |
7884 | ||
7885 | ||
7886 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7887 | PyObject *resultobj; | |
7888 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7889 | wxString *arg2 = 0 ; | |
7890 | bool result; | |
7891 | bool temp2 = False ; | |
7892 | PyObject * obj0 = 0 ; | |
7893 | PyObject * obj1 = 0 ; | |
7894 | char *kwnames[] = { | |
7895 | (char *) "self",(char *) "location", NULL | |
7896 | }; | |
7897 | ||
7898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
7900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7901 | { | |
7902 | arg2 = wxString_in_helper(obj1); | |
7903 | if (arg2 == NULL) SWIG_fail; | |
7904 | temp2 = True; | |
7905 | } | |
7906 | { | |
7907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7908 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7909 | ||
7910 | wxPyEndAllowThreads(__tstate); | |
7911 | if (PyErr_Occurred()) SWIG_fail; | |
7912 | } | |
7913 | { | |
7914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7915 | } | |
7916 | { | |
7917 | if (temp2) | |
7918 | delete arg2; | |
7919 | } | |
7920 | return resultobj; | |
7921 | fail: | |
7922 | { | |
7923 | if (temp2) | |
7924 | delete arg2; | |
7925 | } | |
7926 | return NULL; | |
7927 | } | |
7928 | ||
7929 | ||
7930 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7931 | PyObject *resultobj; | |
7932 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7933 | wxFileSystem *arg2 = 0 ; | |
7934 | wxString *arg3 = 0 ; | |
7935 | wxFSFile *result; | |
7936 | bool temp3 = False ; | |
7937 | PyObject * obj0 = 0 ; | |
7938 | PyObject * obj1 = 0 ; | |
7939 | PyObject * obj2 = 0 ; | |
7940 | char *kwnames[] = { | |
7941 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7942 | }; | |
7943 | ||
7944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
7946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7947 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7948 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7949 | SWIG_fail; | |
7950 | if (arg2 == NULL) { | |
7951 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7952 | SWIG_fail; | |
7953 | } | |
7954 | { | |
7955 | arg3 = wxString_in_helper(obj2); | |
7956 | if (arg3 == NULL) SWIG_fail; | |
7957 | temp3 = True; | |
7958 | } | |
7959 | { | |
7960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7961 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7962 | ||
7963 | wxPyEndAllowThreads(__tstate); | |
7964 | if (PyErr_Occurred()) SWIG_fail; | |
7965 | } | |
7966 | { | |
7967 | resultobj = wxPyMake_wxObject(result); | |
7968 | } | |
7969 | { | |
7970 | if (temp3) | |
7971 | delete arg3; | |
7972 | } | |
7973 | return resultobj; | |
7974 | fail: | |
7975 | { | |
7976 | if (temp3) | |
7977 | delete arg3; | |
7978 | } | |
7979 | return NULL; | |
7980 | } | |
7981 | ||
7982 | ||
7983 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7984 | PyObject *resultobj; | |
7985 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7986 | wxString *arg2 = 0 ; | |
7987 | int arg3 = (int) 0 ; | |
7988 | wxString result; | |
7989 | bool temp2 = False ; | |
7990 | PyObject * obj0 = 0 ; | |
7991 | PyObject * obj1 = 0 ; | |
7992 | PyObject * obj2 = 0 ; | |
7993 | char *kwnames[] = { | |
7994 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7995 | }; | |
7996 | ||
7997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
7999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8000 | { | |
8001 | arg2 = wxString_in_helper(obj1); | |
8002 | if (arg2 == NULL) SWIG_fail; | |
8003 | temp2 = True; | |
8004 | } | |
8005 | if (obj2) { | |
8006 | arg3 = (int) SWIG_AsInt(obj2); | |
8007 | if (PyErr_Occurred()) SWIG_fail; | |
8008 | } | |
8009 | { | |
8010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8011 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8012 | ||
8013 | wxPyEndAllowThreads(__tstate); | |
8014 | if (PyErr_Occurred()) SWIG_fail; | |
8015 | } | |
8016 | { | |
8017 | #if wxUSE_UNICODE | |
8018 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8019 | #else | |
8020 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8021 | #endif | |
8022 | } | |
8023 | { | |
8024 | if (temp2) | |
8025 | delete arg2; | |
8026 | } | |
8027 | return resultobj; | |
8028 | fail: | |
8029 | { | |
8030 | if (temp2) | |
8031 | delete arg2; | |
8032 | } | |
8033 | return NULL; | |
8034 | } | |
8035 | ||
8036 | ||
8037 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8038 | PyObject *resultobj; | |
8039 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8040 | wxString result; | |
8041 | PyObject * obj0 = 0 ; | |
8042 | char *kwnames[] = { | |
8043 | (char *) "self", NULL | |
8044 | }; | |
8045 | ||
8046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8049 | { | |
8050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8051 | result = (arg1)->FindNext(); | |
8052 | ||
8053 | wxPyEndAllowThreads(__tstate); | |
8054 | if (PyErr_Occurred()) SWIG_fail; | |
8055 | } | |
8056 | { | |
8057 | #if wxUSE_UNICODE | |
8058 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8059 | #else | |
8060 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8061 | #endif | |
8062 | } | |
8063 | return resultobj; | |
8064 | fail: | |
8065 | return NULL; | |
8066 | } | |
8067 | ||
8068 | ||
8069 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
8070 | PyObject *obj; | |
8071 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8072 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8073 | Py_INCREF(obj); | |
8074 | return Py_BuildValue((char *)""); | |
8075 | } | |
8076 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8077 | PyObject *resultobj; | |
8078 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8079 | wxString result; | |
8080 | PyObject * obj0 = 0 ; | |
8081 | char *kwnames[] = { | |
8082 | (char *) "self", NULL | |
8083 | }; | |
8084 | ||
8085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
8086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8088 | { | |
8089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8090 | result = (arg1)->GetName(); | |
8091 | ||
8092 | wxPyEndAllowThreads(__tstate); | |
8093 | if (PyErr_Occurred()) SWIG_fail; | |
8094 | } | |
8095 | { | |
8096 | #if wxUSE_UNICODE | |
8097 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8098 | #else | |
8099 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8100 | #endif | |
8101 | } | |
8102 | return resultobj; | |
8103 | fail: | |
8104 | return NULL; | |
8105 | } | |
8106 | ||
8107 | ||
8108 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8109 | PyObject *resultobj; | |
8110 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8111 | wxString result; | |
8112 | PyObject * obj0 = 0 ; | |
8113 | char *kwnames[] = { | |
8114 | (char *) "self", NULL | |
8115 | }; | |
8116 | ||
8117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
8118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8120 | { | |
8121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8122 | result = (arg1)->GetExtension(); | |
8123 | ||
8124 | wxPyEndAllowThreads(__tstate); | |
8125 | if (PyErr_Occurred()) SWIG_fail; | |
8126 | } | |
8127 | { | |
8128 | #if wxUSE_UNICODE | |
8129 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8130 | #else | |
8131 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8132 | #endif | |
8133 | } | |
8134 | return resultobj; | |
8135 | fail: | |
8136 | return NULL; | |
8137 | } | |
8138 | ||
8139 | ||
8140 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8141 | PyObject *resultobj; | |
8142 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8143 | long result; | |
8144 | PyObject * obj0 = 0 ; | |
8145 | char *kwnames[] = { | |
8146 | (char *) "self", NULL | |
8147 | }; | |
8148 | ||
8149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
8150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8152 | { | |
8153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8154 | result = (long)(arg1)->GetType(); | |
8155 | ||
8156 | wxPyEndAllowThreads(__tstate); | |
8157 | if (PyErr_Occurred()) SWIG_fail; | |
8158 | } | |
8159 | resultobj = SWIG_FromLong((long)result); | |
8160 | return resultobj; | |
8161 | fail: | |
8162 | return NULL; | |
8163 | } | |
8164 | ||
8165 | ||
8166 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8167 | PyObject *resultobj; | |
8168 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8169 | wxString result; | |
8170 | PyObject * obj0 = 0 ; | |
8171 | char *kwnames[] = { | |
8172 | (char *) "self", NULL | |
8173 | }; | |
8174 | ||
8175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
8176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8178 | { | |
8179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8180 | result = (arg1)->GetMimeType(); | |
8181 | ||
8182 | wxPyEndAllowThreads(__tstate); | |
8183 | if (PyErr_Occurred()) SWIG_fail; | |
8184 | } | |
8185 | { | |
8186 | #if wxUSE_UNICODE | |
8187 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8188 | #else | |
8189 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8190 | #endif | |
8191 | } | |
8192 | return resultobj; | |
8193 | fail: | |
8194 | return NULL; | |
8195 | } | |
8196 | ||
8197 | ||
8198 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8199 | PyObject *resultobj; | |
8200 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8201 | wxString *arg2 = 0 ; | |
8202 | bool result; | |
8203 | bool temp2 = False ; | |
8204 | PyObject * obj0 = 0 ; | |
8205 | PyObject * obj1 = 0 ; | |
8206 | char *kwnames[] = { | |
8207 | (char *) "self",(char *) "name", NULL | |
8208 | }; | |
8209 | ||
8210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
8211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8213 | { | |
8214 | arg2 = wxString_in_helper(obj1); | |
8215 | if (arg2 == NULL) SWIG_fail; | |
8216 | temp2 = True; | |
8217 | } | |
8218 | { | |
8219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8220 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8221 | ||
8222 | wxPyEndAllowThreads(__tstate); | |
8223 | if (PyErr_Occurred()) SWIG_fail; | |
8224 | } | |
8225 | { | |
8226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8227 | } | |
8228 | { | |
8229 | if (temp2) | |
8230 | delete arg2; | |
8231 | } | |
8232 | return resultobj; | |
8233 | fail: | |
8234 | { | |
8235 | if (temp2) | |
8236 | delete arg2; | |
8237 | } | |
8238 | return NULL; | |
8239 | } | |
8240 | ||
8241 | ||
8242 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8243 | PyObject *resultobj; | |
8244 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8245 | wxString *arg2 = 0 ; | |
8246 | bool temp2 = False ; | |
8247 | PyObject * obj0 = 0 ; | |
8248 | PyObject * obj1 = 0 ; | |
8249 | char *kwnames[] = { | |
8250 | (char *) "self",(char *) "name", NULL | |
8251 | }; | |
8252 | ||
8253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
8254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8256 | { | |
8257 | arg2 = wxString_in_helper(obj1); | |
8258 | if (arg2 == NULL) SWIG_fail; | |
8259 | temp2 = True; | |
8260 | } | |
8261 | { | |
8262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8263 | (arg1)->SetName((wxString const &)*arg2); | |
8264 | ||
8265 | wxPyEndAllowThreads(__tstate); | |
8266 | if (PyErr_Occurred()) SWIG_fail; | |
8267 | } | |
8268 | Py_INCREF(Py_None); resultobj = Py_None; | |
8269 | { | |
8270 | if (temp2) | |
8271 | delete arg2; | |
8272 | } | |
8273 | return resultobj; | |
8274 | fail: | |
8275 | { | |
8276 | if (temp2) | |
8277 | delete arg2; | |
8278 | } | |
8279 | return NULL; | |
8280 | } | |
8281 | ||
8282 | ||
8283 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8284 | PyObject *resultobj; | |
8285 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8286 | wxString *arg2 = 0 ; | |
8287 | bool temp2 = False ; | |
8288 | PyObject * obj0 = 0 ; | |
8289 | PyObject * obj1 = 0 ; | |
8290 | char *kwnames[] = { | |
8291 | (char *) "self",(char *) "extension", NULL | |
8292 | }; | |
8293 | ||
8294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
8295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8297 | { | |
8298 | arg2 = wxString_in_helper(obj1); | |
8299 | if (arg2 == NULL) SWIG_fail; | |
8300 | temp2 = True; | |
8301 | } | |
8302 | { | |
8303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8304 | (arg1)->SetExtension((wxString const &)*arg2); | |
8305 | ||
8306 | wxPyEndAllowThreads(__tstate); | |
8307 | if (PyErr_Occurred()) SWIG_fail; | |
8308 | } | |
8309 | Py_INCREF(Py_None); resultobj = Py_None; | |
8310 | { | |
8311 | if (temp2) | |
8312 | delete arg2; | |
8313 | } | |
8314 | return resultobj; | |
8315 | fail: | |
8316 | { | |
8317 | if (temp2) | |
8318 | delete arg2; | |
8319 | } | |
8320 | return NULL; | |
8321 | } | |
8322 | ||
8323 | ||
8324 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8325 | PyObject *resultobj; | |
8326 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8327 | long arg2 ; | |
8328 | PyObject * obj0 = 0 ; | |
8329 | PyObject * obj1 = 0 ; | |
8330 | char *kwnames[] = { | |
8331 | (char *) "self",(char *) "type", NULL | |
8332 | }; | |
8333 | ||
8334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; | |
8335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8337 | arg2 = (long) SWIG_AsLong(obj1); | |
8338 | if (PyErr_Occurred()) SWIG_fail; | |
8339 | { | |
8340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8341 | (arg1)->SetType(arg2); | |
8342 | ||
8343 | wxPyEndAllowThreads(__tstate); | |
8344 | if (PyErr_Occurred()) SWIG_fail; | |
8345 | } | |
8346 | Py_INCREF(Py_None); resultobj = Py_None; | |
8347 | return resultobj; | |
8348 | fail: | |
8349 | return NULL; | |
8350 | } | |
8351 | ||
8352 | ||
8353 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8354 | PyObject *resultobj; | |
8355 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8356 | wxString *arg2 = 0 ; | |
8357 | bool temp2 = False ; | |
8358 | PyObject * obj0 = 0 ; | |
8359 | PyObject * obj1 = 0 ; | |
8360 | char *kwnames[] = { | |
8361 | (char *) "self",(char *) "mimetype", NULL | |
8362 | }; | |
8363 | ||
8364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
8365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8367 | { | |
8368 | arg2 = wxString_in_helper(obj1); | |
8369 | if (arg2 == NULL) SWIG_fail; | |
8370 | temp2 = True; | |
8371 | } | |
8372 | { | |
8373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8374 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8375 | ||
8376 | wxPyEndAllowThreads(__tstate); | |
8377 | if (PyErr_Occurred()) SWIG_fail; | |
8378 | } | |
8379 | Py_INCREF(Py_None); resultobj = Py_None; | |
8380 | { | |
8381 | if (temp2) | |
8382 | delete arg2; | |
8383 | } | |
8384 | return resultobj; | |
8385 | fail: | |
8386 | { | |
8387 | if (temp2) | |
8388 | delete arg2; | |
8389 | } | |
8390 | return NULL; | |
8391 | } | |
8392 | ||
8393 | ||
8394 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
8395 | PyObject *obj; | |
8396 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8397 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8398 | Py_INCREF(obj); | |
8399 | return Py_BuildValue((char *)""); | |
8400 | } | |
8401 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8402 | PyObject *resultobj; | |
8403 | wxImageHistogram *result; | |
8404 | char *kwnames[] = { | |
8405 | NULL | |
8406 | }; | |
8407 | ||
8408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8409 | { | |
8410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8411 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8412 | ||
8413 | wxPyEndAllowThreads(__tstate); | |
8414 | if (PyErr_Occurred()) SWIG_fail; | |
8415 | } | |
8416 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); | |
8417 | return resultobj; | |
8418 | fail: | |
8419 | return NULL; | |
8420 | } | |
8421 | ||
8422 | ||
8423 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8424 | PyObject *resultobj; | |
8425 | unsigned char arg1 ; | |
8426 | unsigned char arg2 ; | |
8427 | unsigned char arg3 ; | |
8428 | unsigned long result; | |
8429 | PyObject * obj0 = 0 ; | |
8430 | PyObject * obj1 = 0 ; | |
8431 | PyObject * obj2 = 0 ; | |
8432 | char *kwnames[] = { | |
8433 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8434 | }; | |
8435 | ||
8436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8437 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); | |
8438 | if (PyErr_Occurred()) SWIG_fail; | |
8439 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8440 | if (PyErr_Occurred()) SWIG_fail; | |
8441 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8442 | if (PyErr_Occurred()) SWIG_fail; | |
8443 | { | |
8444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8445 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8446 | ||
8447 | wxPyEndAllowThreads(__tstate); | |
8448 | if (PyErr_Occurred()) SWIG_fail; | |
8449 | } | |
8450 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
8451 | return resultobj; | |
8452 | fail: | |
8453 | return NULL; | |
8454 | } | |
8455 | ||
8456 | ||
8457 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8458 | PyObject *resultobj; | |
8459 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8460 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8461 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8462 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8463 | unsigned char arg5 = (unsigned char) 1 ; | |
8464 | unsigned char arg6 = (unsigned char) 0 ; | |
8465 | unsigned char arg7 = (unsigned char) 0 ; | |
8466 | bool result; | |
8467 | unsigned char temp2 ; | |
8468 | unsigned char temp3 ; | |
8469 | unsigned char temp4 ; | |
8470 | PyObject * obj0 = 0 ; | |
8471 | PyObject * obj1 = 0 ; | |
8472 | PyObject * obj2 = 0 ; | |
8473 | PyObject * obj3 = 0 ; | |
8474 | char *kwnames[] = { | |
8475 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8476 | }; | |
8477 | ||
8478 | arg2 = &temp2; | |
8479 | arg3 = &temp3; | |
8480 | arg4 = &temp4; | |
8481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, | |
8483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8484 | if (obj1) { | |
8485 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8486 | if (PyErr_Occurred()) SWIG_fail; | |
8487 | } | |
8488 | if (obj2) { | |
8489 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8490 | if (PyErr_Occurred()) SWIG_fail; | |
8491 | } | |
8492 | if (obj3) { | |
8493 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
8494 | if (PyErr_Occurred()) SWIG_fail; | |
8495 | } | |
8496 | { | |
8497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8498 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8499 | ||
8500 | wxPyEndAllowThreads(__tstate); | |
8501 | if (PyErr_Occurred()) SWIG_fail; | |
8502 | } | |
8503 | { | |
8504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8505 | } | |
8506 | { | |
8507 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8508 | resultobj = t_output_helper(resultobj,o); | |
8509 | } | |
8510 | { | |
8511 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8512 | resultobj = t_output_helper(resultobj,o); | |
8513 | } | |
8514 | { | |
8515 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8516 | resultobj = t_output_helper(resultobj,o); | |
8517 | } | |
8518 | return resultobj; | |
8519 | fail: | |
8520 | return NULL; | |
8521 | } | |
8522 | ||
8523 | ||
8524 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8525 | PyObject *obj; | |
8526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8527 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8528 | Py_INCREF(obj); | |
8529 | return Py_BuildValue((char *)""); | |
8530 | } | |
8531 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8532 | PyObject *resultobj; | |
8533 | wxString *arg1 = 0 ; | |
8534 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8535 | int arg3 = (int) -1 ; | |
8536 | wxImage *result; | |
8537 | bool temp1 = False ; | |
8538 | PyObject * obj0 = 0 ; | |
8539 | PyObject * obj1 = 0 ; | |
8540 | PyObject * obj2 = 0 ; | |
8541 | char *kwnames[] = { | |
8542 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8543 | }; | |
8544 | ||
8545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8546 | { | |
8547 | arg1 = wxString_in_helper(obj0); | |
8548 | if (arg1 == NULL) SWIG_fail; | |
8549 | temp1 = True; | |
8550 | } | |
8551 | if (obj1) { | |
8552 | arg2 = (long) SWIG_AsLong(obj1); | |
8553 | if (PyErr_Occurred()) SWIG_fail; | |
8554 | } | |
8555 | if (obj2) { | |
8556 | arg3 = (int) SWIG_AsInt(obj2); | |
8557 | if (PyErr_Occurred()) SWIG_fail; | |
8558 | } | |
8559 | { | |
8560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8561 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8562 | ||
8563 | wxPyEndAllowThreads(__tstate); | |
8564 | if (PyErr_Occurred()) SWIG_fail; | |
8565 | } | |
8566 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8567 | { | |
8568 | if (temp1) | |
8569 | delete arg1; | |
8570 | } | |
8571 | return resultobj; | |
8572 | fail: | |
8573 | { | |
8574 | if (temp1) | |
8575 | delete arg1; | |
8576 | } | |
8577 | return NULL; | |
8578 | } | |
8579 | ||
8580 | ||
8581 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8582 | PyObject *resultobj; | |
8583 | wxImage *arg1 = (wxImage *) 0 ; | |
8584 | PyObject * obj0 = 0 ; | |
8585 | char *kwnames[] = { | |
8586 | (char *) "self", NULL | |
8587 | }; | |
8588 | ||
8589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
8590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8592 | { | |
8593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8594 | delete arg1; | |
8595 | ||
8596 | wxPyEndAllowThreads(__tstate); | |
8597 | if (PyErr_Occurred()) SWIG_fail; | |
8598 | } | |
8599 | Py_INCREF(Py_None); resultobj = Py_None; | |
8600 | return resultobj; | |
8601 | fail: | |
8602 | return NULL; | |
8603 | } | |
8604 | ||
8605 | ||
8606 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8607 | PyObject *resultobj; | |
8608 | wxString *arg1 = 0 ; | |
8609 | wxString *arg2 = 0 ; | |
8610 | int arg3 = (int) -1 ; | |
8611 | wxImage *result; | |
8612 | bool temp1 = False ; | |
8613 | bool temp2 = False ; | |
8614 | PyObject * obj0 = 0 ; | |
8615 | PyObject * obj1 = 0 ; | |
8616 | PyObject * obj2 = 0 ; | |
8617 | char *kwnames[] = { | |
8618 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8619 | }; | |
8620 | ||
8621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8622 | { | |
8623 | arg1 = wxString_in_helper(obj0); | |
8624 | if (arg1 == NULL) SWIG_fail; | |
8625 | temp1 = True; | |
8626 | } | |
8627 | { | |
8628 | arg2 = wxString_in_helper(obj1); | |
8629 | if (arg2 == NULL) SWIG_fail; | |
8630 | temp2 = True; | |
8631 | } | |
8632 | if (obj2) { | |
8633 | arg3 = (int) SWIG_AsInt(obj2); | |
8634 | if (PyErr_Occurred()) SWIG_fail; | |
8635 | } | |
8636 | { | |
8637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8638 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8639 | ||
8640 | wxPyEndAllowThreads(__tstate); | |
8641 | if (PyErr_Occurred()) SWIG_fail; | |
8642 | } | |
8643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8644 | { | |
8645 | if (temp1) | |
8646 | delete arg1; | |
8647 | } | |
8648 | { | |
8649 | if (temp2) | |
8650 | delete arg2; | |
8651 | } | |
8652 | return resultobj; | |
8653 | fail: | |
8654 | { | |
8655 | if (temp1) | |
8656 | delete arg1; | |
8657 | } | |
8658 | { | |
8659 | if (temp2) | |
8660 | delete arg2; | |
8661 | } | |
8662 | return NULL; | |
8663 | } | |
8664 | ||
8665 | ||
8666 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8667 | PyObject *resultobj; | |
8668 | wxInputStream *arg1 = 0 ; | |
8669 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8670 | int arg3 = (int) -1 ; | |
8671 | wxImage *result; | |
8672 | wxPyInputStream *temp1 ; | |
8673 | bool created1 ; | |
8674 | PyObject * obj0 = 0 ; | |
8675 | PyObject * obj1 = 0 ; | |
8676 | PyObject * obj2 = 0 ; | |
8677 | char *kwnames[] = { | |
8678 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8679 | }; | |
8680 | ||
8681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8682 | { | |
8683 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8684 | arg1 = temp1->m_wxis; | |
8685 | created1 = False; | |
8686 | } else { | |
8687 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
8688 | arg1 = wxPyCBInputStream_create(obj0, False); | |
8689 | if (arg1 == NULL) { | |
8690 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8691 | SWIG_fail; | |
8692 | } | |
8693 | created1 = True; | |
8694 | } | |
8695 | } | |
8696 | if (obj1) { | |
8697 | arg2 = (long) SWIG_AsLong(obj1); | |
8698 | if (PyErr_Occurred()) SWIG_fail; | |
8699 | } | |
8700 | if (obj2) { | |
8701 | arg3 = (int) SWIG_AsInt(obj2); | |
8702 | if (PyErr_Occurred()) SWIG_fail; | |
8703 | } | |
8704 | { | |
8705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8706 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8707 | ||
8708 | wxPyEndAllowThreads(__tstate); | |
8709 | if (PyErr_Occurred()) SWIG_fail; | |
8710 | } | |
8711 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8712 | { | |
8713 | if (created1) | |
8714 | delete arg1; | |
8715 | } | |
8716 | return resultobj; | |
8717 | fail: | |
8718 | { | |
8719 | if (created1) | |
8720 | delete arg1; | |
8721 | } | |
8722 | return NULL; | |
8723 | } | |
8724 | ||
8725 | ||
8726 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8727 | PyObject *resultobj; | |
8728 | wxInputStream *arg1 = 0 ; | |
8729 | wxString *arg2 = 0 ; | |
8730 | int arg3 = (int) -1 ; | |
8731 | wxImage *result; | |
8732 | wxPyInputStream *temp1 ; | |
8733 | bool created1 ; | |
8734 | bool temp2 = False ; | |
8735 | PyObject * obj0 = 0 ; | |
8736 | PyObject * obj1 = 0 ; | |
8737 | PyObject * obj2 = 0 ; | |
8738 | char *kwnames[] = { | |
8739 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8740 | }; | |
8741 | ||
8742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8743 | { | |
8744 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8745 | arg1 = temp1->m_wxis; | |
8746 | created1 = False; | |
8747 | } else { | |
8748 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
8749 | arg1 = wxPyCBInputStream_create(obj0, False); | |
8750 | if (arg1 == NULL) { | |
8751 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8752 | SWIG_fail; | |
8753 | } | |
8754 | created1 = True; | |
8755 | } | |
8756 | } | |
8757 | { | |
8758 | arg2 = wxString_in_helper(obj1); | |
8759 | if (arg2 == NULL) SWIG_fail; | |
8760 | temp2 = True; | |
8761 | } | |
8762 | if (obj2) { | |
8763 | arg3 = (int) SWIG_AsInt(obj2); | |
8764 | if (PyErr_Occurred()) SWIG_fail; | |
8765 | } | |
8766 | { | |
8767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8768 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8769 | ||
8770 | wxPyEndAllowThreads(__tstate); | |
8771 | if (PyErr_Occurred()) SWIG_fail; | |
8772 | } | |
8773 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8774 | { | |
8775 | if (created1) | |
8776 | delete arg1; | |
8777 | } | |
8778 | { | |
8779 | if (temp2) | |
8780 | delete arg2; | |
8781 | } | |
8782 | return resultobj; | |
8783 | fail: | |
8784 | { | |
8785 | if (created1) | |
8786 | delete arg1; | |
8787 | } | |
8788 | { | |
8789 | if (temp2) | |
8790 | delete arg2; | |
8791 | } | |
8792 | return NULL; | |
8793 | } | |
8794 | ||
8795 | ||
c24da6d6 | 8796 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8797 | PyObject *resultobj; |
8798 | int arg1 = (int) 0 ; | |
8799 | int arg2 = (int) 0 ; | |
8800 | bool arg3 = (bool) True ; | |
8801 | wxImage *result; | |
8802 | PyObject * obj0 = 0 ; | |
8803 | PyObject * obj1 = 0 ; | |
8804 | PyObject * obj2 = 0 ; | |
c24da6d6 RD |
8805 | char *kwnames[] = { |
8806 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8807 | }; | |
d55e5bfc | 8808 | |
c24da6d6 | 8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
8810 | if (obj0) { |
8811 | arg1 = (int) SWIG_AsInt(obj0); | |
8812 | if (PyErr_Occurred()) SWIG_fail; | |
8813 | } | |
8814 | if (obj1) { | |
8815 | arg2 = (int) SWIG_AsInt(obj1); | |
8816 | if (PyErr_Occurred()) SWIG_fail; | |
8817 | } | |
8818 | if (obj2) { | |
8819 | arg3 = (bool) SWIG_AsBool(obj2); | |
8820 | if (PyErr_Occurred()) SWIG_fail; | |
8821 | } | |
8822 | { | |
8823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 8824 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d55e5bfc RD |
8825 | |
8826 | wxPyEndAllowThreads(__tstate); | |
8827 | if (PyErr_Occurred()) SWIG_fail; | |
8828 | } | |
8829 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8830 | return resultobj; | |
8831 | fail: | |
8832 | return NULL; | |
8833 | } | |
8834 | ||
8835 | ||
d55e5bfc RD |
8836 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8837 | PyObject *resultobj; | |
8838 | wxBitmap *arg1 = 0 ; | |
8839 | wxImage *result; | |
8840 | PyObject * obj0 = 0 ; | |
8841 | char *kwnames[] = { | |
8842 | (char *) "bitmap", NULL | |
8843 | }; | |
8844 | ||
8845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
8846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
8847 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8848 | SWIG_fail; | |
8849 | if (arg1 == NULL) { | |
8850 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8851 | SWIG_fail; | |
8852 | } | |
8853 | { | |
8854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8855 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8856 | ||
8857 | wxPyEndAllowThreads(__tstate); | |
8858 | if (PyErr_Occurred()) SWIG_fail; | |
8859 | } | |
8860 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8861 | return resultobj; | |
8862 | fail: | |
8863 | return NULL; | |
8864 | } | |
8865 | ||
8866 | ||
8867 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8868 | PyObject *resultobj; | |
8869 | int arg1 ; | |
8870 | int arg2 ; | |
8871 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8872 | wxImage *result; | |
8873 | PyObject * obj0 = 0 ; | |
8874 | PyObject * obj1 = 0 ; | |
8875 | PyObject * obj2 = 0 ; | |
8876 | char *kwnames[] = { | |
8877 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8878 | }; | |
8879 | ||
8880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8881 | arg1 = (int) SWIG_AsInt(obj0); | |
8882 | if (PyErr_Occurred()) SWIG_fail; | |
8883 | arg2 = (int) SWIG_AsInt(obj1); | |
8884 | if (PyErr_Occurred()) SWIG_fail; | |
8885 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
8886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8887 | { | |
8888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8889 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8890 | ||
8891 | wxPyEndAllowThreads(__tstate); | |
8892 | if (PyErr_Occurred()) SWIG_fail; | |
8893 | } | |
8894 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8895 | return resultobj; | |
8896 | fail: | |
8897 | return NULL; | |
8898 | } | |
8899 | ||
8900 | ||
8901 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8902 | PyObject *resultobj; | |
8903 | wxImage *arg1 = (wxImage *) 0 ; | |
8904 | int arg2 ; | |
8905 | int arg3 ; | |
8906 | PyObject * obj0 = 0 ; | |
8907 | PyObject * obj1 = 0 ; | |
8908 | PyObject * obj2 = 0 ; | |
8909 | char *kwnames[] = { | |
8910 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8911 | }; | |
8912 | ||
8913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8916 | arg2 = (int) SWIG_AsInt(obj1); | |
8917 | if (PyErr_Occurred()) SWIG_fail; | |
8918 | arg3 = (int) SWIG_AsInt(obj2); | |
8919 | if (PyErr_Occurred()) SWIG_fail; | |
8920 | { | |
8921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8922 | (arg1)->Create(arg2,arg3); | |
8923 | ||
8924 | wxPyEndAllowThreads(__tstate); | |
8925 | if (PyErr_Occurred()) SWIG_fail; | |
8926 | } | |
8927 | Py_INCREF(Py_None); resultobj = Py_None; | |
8928 | return resultobj; | |
8929 | fail: | |
8930 | return NULL; | |
8931 | } | |
8932 | ||
8933 | ||
8934 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8935 | PyObject *resultobj; | |
8936 | wxImage *arg1 = (wxImage *) 0 ; | |
8937 | PyObject * obj0 = 0 ; | |
8938 | char *kwnames[] = { | |
8939 | (char *) "self", NULL | |
8940 | }; | |
8941 | ||
8942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
8943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8945 | { | |
8946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8947 | (arg1)->Destroy(); | |
8948 | ||
8949 | wxPyEndAllowThreads(__tstate); | |
8950 | if (PyErr_Occurred()) SWIG_fail; | |
8951 | } | |
8952 | Py_INCREF(Py_None); resultobj = Py_None; | |
8953 | return resultobj; | |
8954 | fail: | |
8955 | return NULL; | |
8956 | } | |
8957 | ||
8958 | ||
8959 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8960 | PyObject *resultobj; | |
8961 | wxImage *arg1 = (wxImage *) 0 ; | |
8962 | int arg2 ; | |
8963 | int arg3 ; | |
8964 | SwigValueWrapper< wxImage > result; | |
8965 | PyObject * obj0 = 0 ; | |
8966 | PyObject * obj1 = 0 ; | |
8967 | PyObject * obj2 = 0 ; | |
8968 | char *kwnames[] = { | |
8969 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8970 | }; | |
8971 | ||
8972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8975 | arg2 = (int) SWIG_AsInt(obj1); | |
8976 | if (PyErr_Occurred()) SWIG_fail; | |
8977 | arg3 = (int) SWIG_AsInt(obj2); | |
8978 | if (PyErr_Occurred()) SWIG_fail; | |
8979 | { | |
8980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8981 | result = (arg1)->Scale(arg2,arg3); | |
8982 | ||
8983 | wxPyEndAllowThreads(__tstate); | |
8984 | if (PyErr_Occurred()) SWIG_fail; | |
8985 | } | |
8986 | { | |
8987 | wxImage * resultptr; | |
8988 | resultptr = new wxImage((wxImage &) result); | |
8989 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
8990 | } | |
8991 | return resultobj; | |
8992 | fail: | |
8993 | return NULL; | |
8994 | } | |
8995 | ||
8996 | ||
8997 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8998 | PyObject *resultobj; | |
8999 | wxImage *arg1 = (wxImage *) 0 ; | |
9000 | int arg2 ; | |
9001 | int arg3 ; | |
9002 | SwigValueWrapper< wxImage > result; | |
9003 | PyObject * obj0 = 0 ; | |
9004 | PyObject * obj1 = 0 ; | |
9005 | PyObject * obj2 = 0 ; | |
9006 | char *kwnames[] = { | |
9007 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9008 | }; | |
9009 | ||
9010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9013 | arg2 = (int) SWIG_AsInt(obj1); | |
9014 | if (PyErr_Occurred()) SWIG_fail; | |
9015 | arg3 = (int) SWIG_AsInt(obj2); | |
9016 | if (PyErr_Occurred()) SWIG_fail; | |
9017 | { | |
9018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9019 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9020 | ||
9021 | wxPyEndAllowThreads(__tstate); | |
9022 | if (PyErr_Occurred()) SWIG_fail; | |
9023 | } | |
9024 | { | |
9025 | wxImage * resultptr; | |
9026 | resultptr = new wxImage((wxImage &) result); | |
9027 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9028 | } | |
9029 | return resultobj; | |
9030 | fail: | |
9031 | return NULL; | |
9032 | } | |
9033 | ||
9034 | ||
9035 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9036 | PyObject *resultobj; | |
9037 | wxImage *arg1 = (wxImage *) 0 ; | |
9038 | int arg2 ; | |
9039 | int arg3 ; | |
9040 | wxImage *result; | |
9041 | PyObject * obj0 = 0 ; | |
9042 | PyObject * obj1 = 0 ; | |
9043 | PyObject * obj2 = 0 ; | |
9044 | char *kwnames[] = { | |
9045 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9046 | }; | |
9047 | ||
9048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9051 | arg2 = (int) SWIG_AsInt(obj1); | |
9052 | if (PyErr_Occurred()) SWIG_fail; | |
9053 | arg3 = (int) SWIG_AsInt(obj2); | |
9054 | if (PyErr_Occurred()) SWIG_fail; | |
9055 | { | |
9056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9057 | { | |
9058 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9059 | result = (wxImage *) &_result_ref; | |
9060 | } | |
9061 | ||
9062 | wxPyEndAllowThreads(__tstate); | |
9063 | if (PyErr_Occurred()) SWIG_fail; | |
9064 | } | |
9065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
9066 | return resultobj; | |
9067 | fail: | |
9068 | return NULL; | |
9069 | } | |
9070 | ||
9071 | ||
9072 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9073 | PyObject *resultobj; | |
9074 | wxImage *arg1 = (wxImage *) 0 ; | |
9075 | int arg2 ; | |
9076 | int arg3 ; | |
9077 | unsigned char arg4 ; | |
9078 | unsigned char arg5 ; | |
9079 | unsigned char arg6 ; | |
9080 | PyObject * obj0 = 0 ; | |
9081 | PyObject * obj1 = 0 ; | |
9082 | PyObject * obj2 = 0 ; | |
9083 | PyObject * obj3 = 0 ; | |
9084 | PyObject * obj4 = 0 ; | |
9085 | PyObject * obj5 = 0 ; | |
9086 | char *kwnames[] = { | |
9087 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9088 | }; | |
9089 | ||
9090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9093 | arg2 = (int) SWIG_AsInt(obj1); | |
9094 | if (PyErr_Occurred()) SWIG_fail; | |
9095 | arg3 = (int) SWIG_AsInt(obj2); | |
9096 | if (PyErr_Occurred()) SWIG_fail; | |
9097 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9098 | if (PyErr_Occurred()) SWIG_fail; | |
9099 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
9100 | if (PyErr_Occurred()) SWIG_fail; | |
9101 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
9102 | if (PyErr_Occurred()) SWIG_fail; | |
9103 | { | |
9104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9105 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9106 | ||
9107 | wxPyEndAllowThreads(__tstate); | |
9108 | if (PyErr_Occurred()) SWIG_fail; | |
9109 | } | |
9110 | Py_INCREF(Py_None); resultobj = Py_None; | |
9111 | return resultobj; | |
9112 | fail: | |
9113 | return NULL; | |
9114 | } | |
9115 | ||
9116 | ||
9117 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9118 | PyObject *resultobj; | |
9119 | wxImage *arg1 = (wxImage *) 0 ; | |
9120 | int arg2 ; | |
9121 | int arg3 ; | |
9122 | unsigned char result; | |
9123 | PyObject * obj0 = 0 ; | |
9124 | PyObject * obj1 = 0 ; | |
9125 | PyObject * obj2 = 0 ; | |
9126 | char *kwnames[] = { | |
9127 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9128 | }; | |
9129 | ||
9130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9133 | arg2 = (int) SWIG_AsInt(obj1); | |
9134 | if (PyErr_Occurred()) SWIG_fail; | |
9135 | arg3 = (int) SWIG_AsInt(obj2); | |
9136 | if (PyErr_Occurred()) SWIG_fail; | |
9137 | { | |
9138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9139 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9140 | ||
9141 | wxPyEndAllowThreads(__tstate); | |
9142 | if (PyErr_Occurred()) SWIG_fail; | |
9143 | } | |
9144 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9145 | return resultobj; | |
9146 | fail: | |
9147 | return NULL; | |
9148 | } | |
9149 | ||
9150 | ||
9151 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9152 | PyObject *resultobj; | |
9153 | wxImage *arg1 = (wxImage *) 0 ; | |
9154 | int arg2 ; | |
9155 | int arg3 ; | |
9156 | unsigned char result; | |
9157 | PyObject * obj0 = 0 ; | |
9158 | PyObject * obj1 = 0 ; | |
9159 | PyObject * obj2 = 0 ; | |
9160 | char *kwnames[] = { | |
9161 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9162 | }; | |
9163 | ||
9164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9167 | arg2 = (int) SWIG_AsInt(obj1); | |
9168 | if (PyErr_Occurred()) SWIG_fail; | |
9169 | arg3 = (int) SWIG_AsInt(obj2); | |
9170 | if (PyErr_Occurred()) SWIG_fail; | |
9171 | { | |
9172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9173 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9174 | ||
9175 | wxPyEndAllowThreads(__tstate); | |
9176 | if (PyErr_Occurred()) SWIG_fail; | |
9177 | } | |
9178 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9179 | return resultobj; | |
9180 | fail: | |
9181 | return NULL; | |
9182 | } | |
9183 | ||
9184 | ||
9185 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9186 | PyObject *resultobj; | |
9187 | wxImage *arg1 = (wxImage *) 0 ; | |
9188 | int arg2 ; | |
9189 | int arg3 ; | |
9190 | unsigned char result; | |
9191 | PyObject * obj0 = 0 ; | |
9192 | PyObject * obj1 = 0 ; | |
9193 | PyObject * obj2 = 0 ; | |
9194 | char *kwnames[] = { | |
9195 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9196 | }; | |
9197 | ||
9198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9201 | arg2 = (int) SWIG_AsInt(obj1); | |
9202 | if (PyErr_Occurred()) SWIG_fail; | |
9203 | arg3 = (int) SWIG_AsInt(obj2); | |
9204 | if (PyErr_Occurred()) SWIG_fail; | |
9205 | { | |
9206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9207 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9208 | ||
9209 | wxPyEndAllowThreads(__tstate); | |
9210 | if (PyErr_Occurred()) SWIG_fail; | |
9211 | } | |
9212 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9213 | return resultobj; | |
9214 | fail: | |
9215 | return NULL; | |
9216 | } | |
9217 | ||
9218 | ||
9219 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9220 | PyObject *resultobj; | |
9221 | wxImage *arg1 = (wxImage *) 0 ; | |
9222 | int arg2 ; | |
9223 | int arg3 ; | |
9224 | unsigned char arg4 ; | |
9225 | PyObject * obj0 = 0 ; | |
9226 | PyObject * obj1 = 0 ; | |
9227 | PyObject * obj2 = 0 ; | |
9228 | PyObject * obj3 = 0 ; | |
9229 | char *kwnames[] = { | |
9230 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9231 | }; | |
9232 | ||
9233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9236 | arg2 = (int) SWIG_AsInt(obj1); | |
9237 | if (PyErr_Occurred()) SWIG_fail; | |
9238 | arg3 = (int) SWIG_AsInt(obj2); | |
9239 | if (PyErr_Occurred()) SWIG_fail; | |
9240 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9241 | if (PyErr_Occurred()) SWIG_fail; | |
9242 | { | |
9243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9244 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9245 | ||
9246 | wxPyEndAllowThreads(__tstate); | |
9247 | if (PyErr_Occurred()) SWIG_fail; | |
9248 | } | |
9249 | Py_INCREF(Py_None); resultobj = Py_None; | |
9250 | return resultobj; | |
9251 | fail: | |
9252 | return NULL; | |
9253 | } | |
9254 | ||
9255 | ||
9256 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9257 | PyObject *resultobj; | |
9258 | wxImage *arg1 = (wxImage *) 0 ; | |
9259 | int arg2 ; | |
9260 | int arg3 ; | |
9261 | unsigned char result; | |
9262 | PyObject * obj0 = 0 ; | |
9263 | PyObject * obj1 = 0 ; | |
9264 | PyObject * obj2 = 0 ; | |
9265 | char *kwnames[] = { | |
9266 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9267 | }; | |
9268 | ||
9269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9272 | arg2 = (int) SWIG_AsInt(obj1); | |
9273 | if (PyErr_Occurred()) SWIG_fail; | |
9274 | arg3 = (int) SWIG_AsInt(obj2); | |
9275 | if (PyErr_Occurred()) SWIG_fail; | |
9276 | { | |
9277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9278 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9279 | ||
9280 | wxPyEndAllowThreads(__tstate); | |
9281 | if (PyErr_Occurred()) SWIG_fail; | |
9282 | } | |
9283 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9284 | return resultobj; | |
9285 | fail: | |
9286 | return NULL; | |
9287 | } | |
9288 | ||
9289 | ||
9290 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9291 | PyObject *resultobj; | |
9292 | wxImage *arg1 = (wxImage *) 0 ; | |
9293 | bool result; | |
9294 | PyObject * obj0 = 0 ; | |
9295 | char *kwnames[] = { | |
9296 | (char *) "self", NULL | |
9297 | }; | |
9298 | ||
9299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
9300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9302 | { | |
9303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9304 | result = (bool)(arg1)->HasAlpha(); | |
9305 | ||
9306 | wxPyEndAllowThreads(__tstate); | |
9307 | if (PyErr_Occurred()) SWIG_fail; | |
9308 | } | |
9309 | { | |
9310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9311 | } | |
9312 | return resultobj; | |
9313 | fail: | |
9314 | return NULL; | |
9315 | } | |
9316 | ||
9317 | ||
9318 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9319 | PyObject *resultobj; | |
9320 | wxImage *arg1 = (wxImage *) 0 ; | |
9321 | byte *arg2 = (byte *) 0 ; | |
9322 | byte *arg3 = (byte *) 0 ; | |
9323 | byte *arg4 = (byte *) 0 ; | |
9324 | byte arg5 = (byte) 0 ; | |
9325 | byte arg6 = (byte) 0 ; | |
9326 | byte arg7 = (byte) 0 ; | |
9327 | bool result; | |
9328 | byte temp2 ; | |
9329 | byte temp3 ; | |
9330 | byte temp4 ; | |
9331 | PyObject * obj0 = 0 ; | |
9332 | PyObject * obj1 = 0 ; | |
9333 | PyObject * obj2 = 0 ; | |
9334 | PyObject * obj3 = 0 ; | |
9335 | char *kwnames[] = { | |
9336 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9337 | }; | |
9338 | ||
9339 | arg2 = &temp2; | |
9340 | arg3 = &temp3; | |
9341 | arg4 = &temp4; | |
9342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9345 | if (obj1) { | |
9346 | arg5 = (byte) SWIG_AsUnsignedChar(obj1); | |
9347 | if (PyErr_Occurred()) SWIG_fail; | |
9348 | } | |
9349 | if (obj2) { | |
9350 | arg6 = (byte) SWIG_AsUnsignedChar(obj2); | |
9351 | if (PyErr_Occurred()) SWIG_fail; | |
9352 | } | |
9353 | if (obj3) { | |
9354 | arg7 = (byte) SWIG_AsUnsignedChar(obj3); | |
9355 | if (PyErr_Occurred()) SWIG_fail; | |
9356 | } | |
9357 | { | |
9358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9359 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9360 | ||
9361 | wxPyEndAllowThreads(__tstate); | |
9362 | if (PyErr_Occurred()) SWIG_fail; | |
9363 | } | |
9364 | { | |
9365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9366 | } | |
9367 | { | |
9368 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9369 | resultobj = t_output_helper(resultobj,o); | |
9370 | } | |
9371 | { | |
9372 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9373 | resultobj = t_output_helper(resultobj,o); | |
9374 | } | |
9375 | { | |
9376 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9377 | resultobj = t_output_helper(resultobj,o); | |
9378 | } | |
9379 | return resultobj; | |
9380 | fail: | |
9381 | return NULL; | |
9382 | } | |
9383 | ||
9384 | ||
9385 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9386 | PyObject *resultobj; | |
9387 | wxImage *arg1 = (wxImage *) 0 ; | |
9388 | wxImage *arg2 = 0 ; | |
9389 | byte arg3 ; | |
9390 | byte arg4 ; | |
9391 | byte arg5 ; | |
9392 | bool result; | |
9393 | PyObject * obj0 = 0 ; | |
9394 | PyObject * obj1 = 0 ; | |
9395 | PyObject * obj2 = 0 ; | |
9396 | PyObject * obj3 = 0 ; | |
9397 | PyObject * obj4 = 0 ; | |
9398 | char *kwnames[] = { | |
9399 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9400 | }; | |
9401 | ||
9402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9405 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9406 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9407 | SWIG_fail; | |
9408 | if (arg2 == NULL) { | |
9409 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9410 | SWIG_fail; | |
9411 | } | |
9412 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); | |
9413 | if (PyErr_Occurred()) SWIG_fail; | |
9414 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
9415 | if (PyErr_Occurred()) SWIG_fail; | |
9416 | arg5 = (byte) SWIG_AsUnsignedChar(obj4); | |
9417 | if (PyErr_Occurred()) SWIG_fail; | |
9418 | { | |
9419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9420 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9421 | ||
9422 | wxPyEndAllowThreads(__tstate); | |
9423 | if (PyErr_Occurred()) SWIG_fail; | |
9424 | } | |
9425 | { | |
9426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9427 | } | |
9428 | return resultobj; | |
9429 | fail: | |
9430 | return NULL; | |
9431 | } | |
9432 | ||
9433 | ||
9434 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9435 | PyObject *resultobj; | |
9436 | wxString *arg1 = 0 ; | |
9437 | bool result; | |
9438 | bool temp1 = False ; | |
9439 | PyObject * obj0 = 0 ; | |
9440 | char *kwnames[] = { | |
9441 | (char *) "name", NULL | |
9442 | }; | |
9443 | ||
9444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9445 | { | |
9446 | arg1 = wxString_in_helper(obj0); | |
9447 | if (arg1 == NULL) SWIG_fail; | |
9448 | temp1 = True; | |
9449 | } | |
9450 | { | |
9451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9452 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9453 | ||
9454 | wxPyEndAllowThreads(__tstate); | |
9455 | if (PyErr_Occurred()) SWIG_fail; | |
9456 | } | |
9457 | { | |
9458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9459 | } | |
9460 | { | |
9461 | if (temp1) | |
9462 | delete arg1; | |
9463 | } | |
9464 | return resultobj; | |
9465 | fail: | |
9466 | { | |
9467 | if (temp1) | |
9468 | delete arg1; | |
9469 | } | |
9470 | return NULL; | |
9471 | } | |
9472 | ||
9473 | ||
9474 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9475 | PyObject *resultobj; | |
9476 | wxString *arg1 = 0 ; | |
9477 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9478 | int result; | |
9479 | bool temp1 = False ; | |
9480 | PyObject * obj0 = 0 ; | |
9481 | PyObject * obj1 = 0 ; | |
9482 | char *kwnames[] = { | |
9483 | (char *) "name",(char *) "type", NULL | |
9484 | }; | |
9485 | ||
9486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; | |
9487 | { | |
9488 | arg1 = wxString_in_helper(obj0); | |
9489 | if (arg1 == NULL) SWIG_fail; | |
9490 | temp1 = True; | |
9491 | } | |
9492 | if (obj1) { | |
9493 | arg2 = (long) SWIG_AsLong(obj1); | |
9494 | if (PyErr_Occurred()) SWIG_fail; | |
9495 | } | |
9496 | { | |
9497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9498 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9499 | ||
9500 | wxPyEndAllowThreads(__tstate); | |
9501 | if (PyErr_Occurred()) SWIG_fail; | |
9502 | } | |
9503 | resultobj = SWIG_FromInt((int)result); | |
9504 | { | |
9505 | if (temp1) | |
9506 | delete arg1; | |
9507 | } | |
9508 | return resultobj; | |
9509 | fail: | |
9510 | { | |
9511 | if (temp1) | |
9512 | delete arg1; | |
9513 | } | |
9514 | return NULL; | |
9515 | } | |
9516 | ||
9517 | ||
9518 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9519 | PyObject *resultobj; | |
9520 | wxImage *arg1 = (wxImage *) 0 ; | |
9521 | wxString *arg2 = 0 ; | |
9522 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9523 | int arg4 = (int) -1 ; | |
9524 | bool result; | |
9525 | bool temp2 = False ; | |
9526 | PyObject * obj0 = 0 ; | |
9527 | PyObject * obj1 = 0 ; | |
9528 | PyObject * obj2 = 0 ; | |
9529 | PyObject * obj3 = 0 ; | |
9530 | char *kwnames[] = { | |
9531 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9532 | }; | |
9533 | ||
9534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9537 | { | |
9538 | arg2 = wxString_in_helper(obj1); | |
9539 | if (arg2 == NULL) SWIG_fail; | |
9540 | temp2 = True; | |
9541 | } | |
9542 | if (obj2) { | |
9543 | arg3 = (long) SWIG_AsLong(obj2); | |
9544 | if (PyErr_Occurred()) SWIG_fail; | |
9545 | } | |
9546 | if (obj3) { | |
9547 | arg4 = (int) SWIG_AsInt(obj3); | |
9548 | if (PyErr_Occurred()) SWIG_fail; | |
9549 | } | |
9550 | { | |
9551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9552 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9553 | ||
9554 | wxPyEndAllowThreads(__tstate); | |
9555 | if (PyErr_Occurred()) SWIG_fail; | |
9556 | } | |
9557 | { | |
9558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9559 | } | |
9560 | { | |
9561 | if (temp2) | |
9562 | delete arg2; | |
9563 | } | |
9564 | return resultobj; | |
9565 | fail: | |
9566 | { | |
9567 | if (temp2) | |
9568 | delete arg2; | |
9569 | } | |
9570 | return NULL; | |
9571 | } | |
9572 | ||
9573 | ||
9574 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9575 | PyObject *resultobj; | |
9576 | wxImage *arg1 = (wxImage *) 0 ; | |
9577 | wxString *arg2 = 0 ; | |
9578 | wxString *arg3 = 0 ; | |
9579 | int arg4 = (int) -1 ; | |
9580 | bool result; | |
9581 | bool temp2 = False ; | |
9582 | bool temp3 = False ; | |
9583 | PyObject * obj0 = 0 ; | |
9584 | PyObject * obj1 = 0 ; | |
9585 | PyObject * obj2 = 0 ; | |
9586 | PyObject * obj3 = 0 ; | |
9587 | char *kwnames[] = { | |
9588 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9589 | }; | |
9590 | ||
9591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9594 | { | |
9595 | arg2 = wxString_in_helper(obj1); | |
9596 | if (arg2 == NULL) SWIG_fail; | |
9597 | temp2 = True; | |
9598 | } | |
9599 | { | |
9600 | arg3 = wxString_in_helper(obj2); | |
9601 | if (arg3 == NULL) SWIG_fail; | |
9602 | temp3 = True; | |
9603 | } | |
9604 | if (obj3) { | |
9605 | arg4 = (int) SWIG_AsInt(obj3); | |
9606 | if (PyErr_Occurred()) SWIG_fail; | |
9607 | } | |
9608 | { | |
9609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9610 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9611 | ||
9612 | wxPyEndAllowThreads(__tstate); | |
9613 | if (PyErr_Occurred()) SWIG_fail; | |
9614 | } | |
9615 | { | |
9616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9617 | } | |
9618 | { | |
9619 | if (temp2) | |
9620 | delete arg2; | |
9621 | } | |
9622 | { | |
9623 | if (temp3) | |
9624 | delete arg3; | |
9625 | } | |
9626 | return resultobj; | |
9627 | fail: | |
9628 | { | |
9629 | if (temp2) | |
9630 | delete arg2; | |
9631 | } | |
9632 | { | |
9633 | if (temp3) | |
9634 | delete arg3; | |
9635 | } | |
9636 | return NULL; | |
9637 | } | |
9638 | ||
9639 | ||
9640 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9641 | PyObject *resultobj; | |
9642 | wxImage *arg1 = (wxImage *) 0 ; | |
9643 | wxString *arg2 = 0 ; | |
9644 | int arg3 ; | |
9645 | bool result; | |
9646 | bool temp2 = False ; | |
9647 | PyObject * obj0 = 0 ; | |
9648 | PyObject * obj1 = 0 ; | |
9649 | PyObject * obj2 = 0 ; | |
9650 | char *kwnames[] = { | |
9651 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9652 | }; | |
9653 | ||
9654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9657 | { | |
9658 | arg2 = wxString_in_helper(obj1); | |
9659 | if (arg2 == NULL) SWIG_fail; | |
9660 | temp2 = True; | |
9661 | } | |
9662 | arg3 = (int) SWIG_AsInt(obj2); | |
9663 | if (PyErr_Occurred()) SWIG_fail; | |
9664 | { | |
9665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9666 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9667 | ||
9668 | wxPyEndAllowThreads(__tstate); | |
9669 | if (PyErr_Occurred()) SWIG_fail; | |
9670 | } | |
9671 | { | |
9672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9673 | } | |
9674 | { | |
9675 | if (temp2) | |
9676 | delete arg2; | |
9677 | } | |
9678 | return resultobj; | |
9679 | fail: | |
9680 | { | |
9681 | if (temp2) | |
9682 | delete arg2; | |
9683 | } | |
9684 | return NULL; | |
9685 | } | |
9686 | ||
9687 | ||
9688 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9689 | PyObject *resultobj; | |
9690 | wxImage *arg1 = (wxImage *) 0 ; | |
9691 | wxString *arg2 = 0 ; | |
9692 | wxString *arg3 = 0 ; | |
9693 | bool result; | |
9694 | bool temp2 = False ; | |
9695 | bool temp3 = False ; | |
9696 | PyObject * obj0 = 0 ; | |
9697 | PyObject * obj1 = 0 ; | |
9698 | PyObject * obj2 = 0 ; | |
9699 | char *kwnames[] = { | |
9700 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9701 | }; | |
9702 | ||
9703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9706 | { | |
9707 | arg2 = wxString_in_helper(obj1); | |
9708 | if (arg2 == NULL) SWIG_fail; | |
9709 | temp2 = True; | |
9710 | } | |
9711 | { | |
9712 | arg3 = wxString_in_helper(obj2); | |
9713 | if (arg3 == NULL) SWIG_fail; | |
9714 | temp3 = True; | |
9715 | } | |
9716 | { | |
9717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9718 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9719 | ||
9720 | wxPyEndAllowThreads(__tstate); | |
9721 | if (PyErr_Occurred()) SWIG_fail; | |
9722 | } | |
9723 | { | |
9724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9725 | } | |
9726 | { | |
9727 | if (temp2) | |
9728 | delete arg2; | |
9729 | } | |
9730 | { | |
9731 | if (temp3) | |
9732 | delete arg3; | |
9733 | } | |
9734 | return resultobj; | |
9735 | fail: | |
9736 | { | |
9737 | if (temp2) | |
9738 | delete arg2; | |
9739 | } | |
9740 | { | |
9741 | if (temp3) | |
9742 | delete arg3; | |
9743 | } | |
9744 | return NULL; | |
9745 | } | |
9746 | ||
9747 | ||
9748 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9749 | PyObject *resultobj; | |
9750 | wxInputStream *arg1 = 0 ; | |
9751 | bool result; | |
9752 | wxPyInputStream *temp1 ; | |
9753 | bool created1 ; | |
9754 | PyObject * obj0 = 0 ; | |
9755 | char *kwnames[] = { | |
9756 | (char *) "stream", NULL | |
9757 | }; | |
9758 | ||
9759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9760 | { | |
9761 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9762 | arg1 = temp1->m_wxis; | |
9763 | created1 = False; | |
9764 | } else { | |
9765 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
9766 | arg1 = wxPyCBInputStream_create(obj0, False); | |
9767 | if (arg1 == NULL) { | |
9768 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9769 | SWIG_fail; | |
9770 | } | |
9771 | created1 = True; | |
9772 | } | |
9773 | } | |
9774 | { | |
9775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9776 | result = (bool)wxImage::CanRead(*arg1); | |
9777 | ||
9778 | wxPyEndAllowThreads(__tstate); | |
9779 | if (PyErr_Occurred()) SWIG_fail; | |
9780 | } | |
9781 | { | |
9782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9783 | } | |
9784 | { | |
9785 | if (created1) | |
9786 | delete arg1; | |
9787 | } | |
9788 | return resultobj; | |
9789 | fail: | |
9790 | { | |
9791 | if (created1) | |
9792 | delete arg1; | |
9793 | } | |
9794 | return NULL; | |
9795 | } | |
9796 | ||
9797 | ||
9798 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9799 | PyObject *resultobj; | |
9800 | wxImage *arg1 = (wxImage *) 0 ; | |
9801 | wxInputStream *arg2 = 0 ; | |
9802 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9803 | int arg4 = (int) -1 ; | |
9804 | bool result; | |
9805 | wxPyInputStream *temp2 ; | |
9806 | bool created2 ; | |
9807 | PyObject * obj0 = 0 ; | |
9808 | PyObject * obj1 = 0 ; | |
9809 | PyObject * obj2 = 0 ; | |
9810 | PyObject * obj3 = 0 ; | |
9811 | char *kwnames[] = { | |
9812 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9813 | }; | |
9814 | ||
9815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9818 | { | |
9819 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9820 | arg2 = temp2->m_wxis; | |
9821 | created2 = False; | |
9822 | } else { | |
9823 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
9824 | arg2 = wxPyCBInputStream_create(obj1, False); | |
9825 | if (arg2 == NULL) { | |
9826 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9827 | SWIG_fail; | |
9828 | } | |
9829 | created2 = True; | |
9830 | } | |
9831 | } | |
9832 | if (obj2) { | |
9833 | arg3 = (long) SWIG_AsLong(obj2); | |
9834 | if (PyErr_Occurred()) SWIG_fail; | |
9835 | } | |
9836 | if (obj3) { | |
9837 | arg4 = (int) SWIG_AsInt(obj3); | |
9838 | if (PyErr_Occurred()) SWIG_fail; | |
9839 | } | |
9840 | { | |
9841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9842 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9843 | ||
9844 | wxPyEndAllowThreads(__tstate); | |
9845 | if (PyErr_Occurred()) SWIG_fail; | |
9846 | } | |
9847 | { | |
9848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9849 | } | |
9850 | { | |
9851 | if (created2) | |
9852 | delete arg2; | |
9853 | } | |
9854 | return resultobj; | |
9855 | fail: | |
9856 | { | |
9857 | if (created2) | |
9858 | delete arg2; | |
9859 | } | |
9860 | return NULL; | |
9861 | } | |
9862 | ||
9863 | ||
9864 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9865 | PyObject *resultobj; | |
9866 | wxImage *arg1 = (wxImage *) 0 ; | |
9867 | wxInputStream *arg2 = 0 ; | |
9868 | wxString *arg3 = 0 ; | |
9869 | int arg4 = (int) -1 ; | |
9870 | bool result; | |
9871 | wxPyInputStream *temp2 ; | |
9872 | bool created2 ; | |
9873 | bool temp3 = False ; | |
9874 | PyObject * obj0 = 0 ; | |
9875 | PyObject * obj1 = 0 ; | |
9876 | PyObject * obj2 = 0 ; | |
9877 | PyObject * obj3 = 0 ; | |
9878 | char *kwnames[] = { | |
9879 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9880 | }; | |
9881 | ||
9882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9885 | { | |
9886 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9887 | arg2 = temp2->m_wxis; | |
9888 | created2 = False; | |
9889 | } else { | |
9890 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
9891 | arg2 = wxPyCBInputStream_create(obj1, False); | |
9892 | if (arg2 == NULL) { | |
9893 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9894 | SWIG_fail; | |
9895 | } | |
9896 | created2 = True; | |
9897 | } | |
9898 | } | |
9899 | { | |
9900 | arg3 = wxString_in_helper(obj2); | |
9901 | if (arg3 == NULL) SWIG_fail; | |
9902 | temp3 = True; | |
9903 | } | |
9904 | if (obj3) { | |
9905 | arg4 = (int) SWIG_AsInt(obj3); | |
9906 | if (PyErr_Occurred()) SWIG_fail; | |
9907 | } | |
9908 | { | |
9909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9910 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9911 | ||
9912 | wxPyEndAllowThreads(__tstate); | |
9913 | if (PyErr_Occurred()) SWIG_fail; | |
9914 | } | |
9915 | { | |
9916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9917 | } | |
9918 | { | |
9919 | if (created2) | |
9920 | delete arg2; | |
9921 | } | |
9922 | { | |
9923 | if (temp3) | |
9924 | delete arg3; | |
9925 | } | |
9926 | return resultobj; | |
9927 | fail: | |
9928 | { | |
9929 | if (created2) | |
9930 | delete arg2; | |
9931 | } | |
9932 | { | |
9933 | if (temp3) | |
9934 | delete arg3; | |
9935 | } | |
9936 | return NULL; | |
9937 | } | |
9938 | ||
9939 | ||
9940 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9941 | PyObject *resultobj; | |
9942 | wxImage *arg1 = (wxImage *) 0 ; | |
9943 | bool result; | |
9944 | PyObject * obj0 = 0 ; | |
9945 | char *kwnames[] = { | |
9946 | (char *) "self", NULL | |
9947 | }; | |
9948 | ||
9949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
9950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9952 | { | |
9953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9954 | result = (bool)(arg1)->Ok(); | |
9955 | ||
9956 | wxPyEndAllowThreads(__tstate); | |
9957 | if (PyErr_Occurred()) SWIG_fail; | |
9958 | } | |
9959 | { | |
9960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9961 | } | |
9962 | return resultobj; | |
9963 | fail: | |
9964 | return NULL; | |
9965 | } | |
9966 | ||
9967 | ||
9968 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9969 | PyObject *resultobj; | |
9970 | wxImage *arg1 = (wxImage *) 0 ; | |
9971 | int result; | |
9972 | PyObject * obj0 = 0 ; | |
9973 | char *kwnames[] = { | |
9974 | (char *) "self", NULL | |
9975 | }; | |
9976 | ||
9977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
9978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9980 | { | |
9981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9982 | result = (int)(arg1)->GetWidth(); | |
9983 | ||
9984 | wxPyEndAllowThreads(__tstate); | |
9985 | if (PyErr_Occurred()) SWIG_fail; | |
9986 | } | |
9987 | resultobj = SWIG_FromInt((int)result); | |
9988 | return resultobj; | |
9989 | fail: | |
9990 | return NULL; | |
9991 | } | |
9992 | ||
9993 | ||
9994 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9995 | PyObject *resultobj; | |
9996 | wxImage *arg1 = (wxImage *) 0 ; | |
9997 | int result; | |
9998 | PyObject * obj0 = 0 ; | |
9999 | char *kwnames[] = { | |
10000 | (char *) "self", NULL | |
10001 | }; | |
10002 | ||
10003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
10004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10006 | { | |
10007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10008 | result = (int)(arg1)->GetHeight(); | |
10009 | ||
10010 | wxPyEndAllowThreads(__tstate); | |
10011 | if (PyErr_Occurred()) SWIG_fail; | |
10012 | } | |
10013 | resultobj = SWIG_FromInt((int)result); | |
10014 | return resultobj; | |
10015 | fail: | |
10016 | return NULL; | |
10017 | } | |
10018 | ||
10019 | ||
10020 | static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10021 | PyObject *resultobj; | |
10022 | wxImage *arg1 = (wxImage *) 0 ; | |
10023 | wxSize result; | |
10024 | PyObject * obj0 = 0 ; | |
10025 | char *kwnames[] = { | |
10026 | (char *) "self", NULL | |
10027 | }; | |
10028 | ||
10029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10032 | { | |
10033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10034 | result = wxImage_GetSize(arg1); | |
10035 | ||
10036 | wxPyEndAllowThreads(__tstate); | |
10037 | if (PyErr_Occurred()) SWIG_fail; | |
10038 | } | |
10039 | { | |
10040 | wxSize * resultptr; | |
10041 | resultptr = new wxSize((wxSize &) result); | |
10042 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10043 | } | |
10044 | return resultobj; | |
10045 | fail: | |
10046 | return NULL; | |
10047 | } | |
10048 | ||
10049 | ||
10050 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10051 | PyObject *resultobj; | |
10052 | wxImage *arg1 = (wxImage *) 0 ; | |
10053 | wxRect *arg2 = 0 ; | |
10054 | SwigValueWrapper< wxImage > result; | |
10055 | wxRect temp2 ; | |
10056 | PyObject * obj0 = 0 ; | |
10057 | PyObject * obj1 = 0 ; | |
10058 | char *kwnames[] = { | |
10059 | (char *) "self",(char *) "rect", NULL | |
10060 | }; | |
10061 | ||
10062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
10063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10065 | { | |
10066 | arg2 = &temp2; | |
10067 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10068 | } | |
10069 | { | |
10070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10071 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10072 | ||
10073 | wxPyEndAllowThreads(__tstate); | |
10074 | if (PyErr_Occurred()) SWIG_fail; | |
10075 | } | |
10076 | { | |
10077 | wxImage * resultptr; | |
10078 | resultptr = new wxImage((wxImage &) result); | |
10079 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10080 | } | |
10081 | return resultobj; | |
10082 | fail: | |
10083 | return NULL; | |
10084 | } | |
10085 | ||
10086 | ||
10087 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10088 | PyObject *resultobj; | |
10089 | wxImage *arg1 = (wxImage *) 0 ; | |
10090 | SwigValueWrapper< wxImage > result; | |
10091 | PyObject * obj0 = 0 ; | |
10092 | char *kwnames[] = { | |
10093 | (char *) "self", NULL | |
10094 | }; | |
10095 | ||
10096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
10097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10099 | { | |
10100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10101 | result = (arg1)->Copy(); | |
10102 | ||
10103 | wxPyEndAllowThreads(__tstate); | |
10104 | if (PyErr_Occurred()) SWIG_fail; | |
10105 | } | |
10106 | { | |
10107 | wxImage * resultptr; | |
10108 | resultptr = new wxImage((wxImage &) result); | |
10109 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10110 | } | |
10111 | return resultobj; | |
10112 | fail: | |
10113 | return NULL; | |
10114 | } | |
10115 | ||
10116 | ||
10117 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10118 | PyObject *resultobj; | |
10119 | wxImage *arg1 = (wxImage *) 0 ; | |
10120 | wxImage *arg2 = 0 ; | |
10121 | int arg3 ; | |
10122 | int arg4 ; | |
10123 | PyObject * obj0 = 0 ; | |
10124 | PyObject * obj1 = 0 ; | |
10125 | PyObject * obj2 = 0 ; | |
10126 | PyObject * obj3 = 0 ; | |
10127 | char *kwnames[] = { | |
10128 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10129 | }; | |
10130 | ||
10131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10134 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10135 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10136 | SWIG_fail; | |
10137 | if (arg2 == NULL) { | |
10138 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10139 | SWIG_fail; | |
10140 | } | |
10141 | arg3 = (int) SWIG_AsInt(obj2); | |
10142 | if (PyErr_Occurred()) SWIG_fail; | |
10143 | arg4 = (int) SWIG_AsInt(obj3); | |
10144 | if (PyErr_Occurred()) SWIG_fail; | |
10145 | { | |
10146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10147 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10148 | ||
10149 | wxPyEndAllowThreads(__tstate); | |
10150 | if (PyErr_Occurred()) SWIG_fail; | |
10151 | } | |
10152 | Py_INCREF(Py_None); resultobj = Py_None; | |
10153 | return resultobj; | |
10154 | fail: | |
10155 | return NULL; | |
10156 | } | |
10157 | ||
10158 | ||
10159 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10160 | PyObject *resultobj; | |
10161 | wxImage *arg1 = (wxImage *) 0 ; | |
10162 | PyObject *result; | |
10163 | PyObject * obj0 = 0 ; | |
10164 | char *kwnames[] = { | |
10165 | (char *) "self", NULL | |
10166 | }; | |
10167 | ||
10168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
10169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10171 | { | |
10172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10173 | result = (PyObject *)wxImage_GetData(arg1); | |
10174 | ||
10175 | wxPyEndAllowThreads(__tstate); | |
10176 | if (PyErr_Occurred()) SWIG_fail; | |
10177 | } | |
10178 | resultobj = result; | |
10179 | return resultobj; | |
10180 | fail: | |
10181 | return NULL; | |
10182 | } | |
10183 | ||
10184 | ||
10185 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10186 | PyObject *resultobj; | |
10187 | wxImage *arg1 = (wxImage *) 0 ; | |
10188 | PyObject *arg2 = (PyObject *) 0 ; | |
10189 | PyObject * obj0 = 0 ; | |
10190 | PyObject * obj1 = 0 ; | |
10191 | char *kwnames[] = { | |
10192 | (char *) "self",(char *) "data", NULL | |
10193 | }; | |
10194 | ||
10195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
10196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10198 | arg2 = obj1; | |
10199 | { | |
10200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10201 | wxImage_SetData(arg1,arg2); | |
10202 | ||
10203 | wxPyEndAllowThreads(__tstate); | |
10204 | if (PyErr_Occurred()) SWIG_fail; | |
10205 | } | |
10206 | Py_INCREF(Py_None); resultobj = Py_None; | |
10207 | return resultobj; | |
10208 | fail: | |
10209 | return NULL; | |
10210 | } | |
10211 | ||
10212 | ||
10213 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10214 | PyObject *resultobj; | |
10215 | wxImage *arg1 = (wxImage *) 0 ; | |
10216 | PyObject *result; | |
10217 | PyObject * obj0 = 0 ; | |
10218 | char *kwnames[] = { | |
10219 | (char *) "self", NULL | |
10220 | }; | |
10221 | ||
10222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
10223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10225 | { | |
10226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10227 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10228 | ||
10229 | wxPyEndAllowThreads(__tstate); | |
10230 | if (PyErr_Occurred()) SWIG_fail; | |
10231 | } | |
10232 | resultobj = result; | |
10233 | return resultobj; | |
10234 | fail: | |
10235 | return NULL; | |
10236 | } | |
10237 | ||
10238 | ||
10239 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10240 | PyObject *resultobj; | |
10241 | wxImage *arg1 = (wxImage *) 0 ; | |
10242 | PyObject *arg2 = (PyObject *) 0 ; | |
10243 | PyObject * obj0 = 0 ; | |
10244 | PyObject * obj1 = 0 ; | |
10245 | char *kwnames[] = { | |
10246 | (char *) "self",(char *) "data", NULL | |
10247 | }; | |
10248 | ||
10249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10252 | arg2 = obj1; | |
10253 | { | |
10254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10255 | wxImage_SetDataBuffer(arg1,arg2); | |
10256 | ||
10257 | wxPyEndAllowThreads(__tstate); | |
10258 | if (PyErr_Occurred()) SWIG_fail; | |
10259 | } | |
10260 | Py_INCREF(Py_None); resultobj = Py_None; | |
10261 | return resultobj; | |
10262 | fail: | |
10263 | return NULL; | |
10264 | } | |
10265 | ||
10266 | ||
10267 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10268 | PyObject *resultobj; | |
10269 | wxImage *arg1 = (wxImage *) 0 ; | |
10270 | PyObject *result; | |
10271 | PyObject * obj0 = 0 ; | |
10272 | char *kwnames[] = { | |
10273 | (char *) "self", NULL | |
10274 | }; | |
10275 | ||
10276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
10277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10279 | { | |
10280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10281 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10282 | ||
10283 | wxPyEndAllowThreads(__tstate); | |
10284 | if (PyErr_Occurred()) SWIG_fail; | |
10285 | } | |
10286 | resultobj = result; | |
10287 | return resultobj; | |
10288 | fail: | |
10289 | return NULL; | |
10290 | } | |
10291 | ||
10292 | ||
10293 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10294 | PyObject *resultobj; | |
10295 | wxImage *arg1 = (wxImage *) 0 ; | |
10296 | PyObject *arg2 = (PyObject *) 0 ; | |
10297 | PyObject * obj0 = 0 ; | |
10298 | PyObject * obj1 = 0 ; | |
10299 | char *kwnames[] = { | |
10300 | (char *) "self",(char *) "data", NULL | |
10301 | }; | |
10302 | ||
10303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
10304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10306 | arg2 = obj1; | |
10307 | { | |
10308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10309 | wxImage_SetAlphaData(arg1,arg2); | |
10310 | ||
10311 | wxPyEndAllowThreads(__tstate); | |
10312 | if (PyErr_Occurred()) SWIG_fail; | |
10313 | } | |
10314 | Py_INCREF(Py_None); resultobj = Py_None; | |
10315 | return resultobj; | |
10316 | fail: | |
10317 | return NULL; | |
10318 | } | |
10319 | ||
10320 | ||
10321 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10322 | PyObject *resultobj; | |
10323 | wxImage *arg1 = (wxImage *) 0 ; | |
10324 | PyObject *result; | |
10325 | PyObject * obj0 = 0 ; | |
10326 | char *kwnames[] = { | |
10327 | (char *) "self", NULL | |
10328 | }; | |
10329 | ||
10330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
10331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10333 | { | |
10334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10335 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10336 | ||
10337 | wxPyEndAllowThreads(__tstate); | |
10338 | if (PyErr_Occurred()) SWIG_fail; | |
10339 | } | |
10340 | resultobj = result; | |
10341 | return resultobj; | |
10342 | fail: | |
10343 | return NULL; | |
10344 | } | |
10345 | ||
10346 | ||
10347 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10348 | PyObject *resultobj; | |
10349 | wxImage *arg1 = (wxImage *) 0 ; | |
10350 | PyObject *arg2 = (PyObject *) 0 ; | |
10351 | PyObject * obj0 = 0 ; | |
10352 | PyObject * obj1 = 0 ; | |
10353 | char *kwnames[] = { | |
10354 | (char *) "self",(char *) "data", NULL | |
10355 | }; | |
10356 | ||
10357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10360 | arg2 = obj1; | |
10361 | { | |
10362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10363 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10364 | ||
10365 | wxPyEndAllowThreads(__tstate); | |
10366 | if (PyErr_Occurred()) SWIG_fail; | |
10367 | } | |
10368 | Py_INCREF(Py_None); resultobj = Py_None; | |
10369 | return resultobj; | |
10370 | fail: | |
10371 | return NULL; | |
10372 | } | |
10373 | ||
10374 | ||
10375 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10376 | PyObject *resultobj; | |
10377 | wxImage *arg1 = (wxImage *) 0 ; | |
10378 | unsigned char arg2 ; | |
10379 | unsigned char arg3 ; | |
10380 | unsigned char arg4 ; | |
10381 | PyObject * obj0 = 0 ; | |
10382 | PyObject * obj1 = 0 ; | |
10383 | PyObject * obj2 = 0 ; | |
10384 | PyObject * obj3 = 0 ; | |
10385 | char *kwnames[] = { | |
10386 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10387 | }; | |
10388 | ||
10389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10392 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10393 | if (PyErr_Occurred()) SWIG_fail; | |
10394 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10395 | if (PyErr_Occurred()) SWIG_fail; | |
10396 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10397 | if (PyErr_Occurred()) SWIG_fail; | |
10398 | { | |
10399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10400 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10401 | ||
10402 | wxPyEndAllowThreads(__tstate); | |
10403 | if (PyErr_Occurred()) SWIG_fail; | |
10404 | } | |
10405 | Py_INCREF(Py_None); resultobj = Py_None; | |
10406 | return resultobj; | |
10407 | fail: | |
10408 | return NULL; | |
10409 | } | |
10410 | ||
10411 | ||
10412 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10413 | PyObject *resultobj; | |
10414 | wxImage *arg1 = (wxImage *) 0 ; | |
10415 | unsigned char result; | |
10416 | PyObject * obj0 = 0 ; | |
10417 | char *kwnames[] = { | |
10418 | (char *) "self", NULL | |
10419 | }; | |
10420 | ||
10421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
10422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10424 | { | |
10425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10426 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10427 | ||
10428 | wxPyEndAllowThreads(__tstate); | |
10429 | if (PyErr_Occurred()) SWIG_fail; | |
10430 | } | |
10431 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
10432 | return resultobj; | |
10433 | fail: | |
10434 | return NULL; | |
10435 | } | |
10436 | ||
10437 | ||
10438 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10439 | PyObject *resultobj; | |
10440 | wxImage *arg1 = (wxImage *) 0 ; | |
10441 | unsigned char result; | |
10442 | PyObject * obj0 = 0 ; | |
10443 | char *kwnames[] = { | |
10444 | (char *) "self", NULL | |
10445 | }; | |
10446 | ||
10447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
10448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10450 | { | |
10451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10452 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10453 | ||
10454 | wxPyEndAllowThreads(__tstate); | |
10455 | if (PyErr_Occurred()) SWIG_fail; | |
10456 | } | |
10457 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
10458 | return resultobj; | |
10459 | fail: | |
10460 | return NULL; | |
10461 | } | |
10462 | ||
10463 | ||
10464 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10465 | PyObject *resultobj; | |
10466 | wxImage *arg1 = (wxImage *) 0 ; | |
10467 | unsigned char result; | |
10468 | PyObject * obj0 = 0 ; | |
10469 | char *kwnames[] = { | |
10470 | (char *) "self", NULL | |
10471 | }; | |
10472 | ||
10473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
10474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10476 | { | |
10477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10478 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10479 | ||
10480 | wxPyEndAllowThreads(__tstate); | |
10481 | if (PyErr_Occurred()) SWIG_fail; | |
10482 | } | |
10483 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
10484 | return resultobj; | |
10485 | fail: | |
10486 | return NULL; | |
10487 | } | |
10488 | ||
10489 | ||
10490 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10491 | PyObject *resultobj; | |
10492 | wxImage *arg1 = (wxImage *) 0 ; | |
10493 | bool arg2 = (bool) True ; | |
10494 | PyObject * obj0 = 0 ; | |
10495 | PyObject * obj1 = 0 ; | |
10496 | char *kwnames[] = { | |
10497 | (char *) "self",(char *) "mask", NULL | |
10498 | }; | |
10499 | ||
10500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
10501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10503 | if (obj1) { | |
10504 | arg2 = (bool) SWIG_AsBool(obj1); | |
10505 | if (PyErr_Occurred()) SWIG_fail; | |
10506 | } | |
10507 | { | |
10508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10509 | (arg1)->SetMask(arg2); | |
10510 | ||
10511 | wxPyEndAllowThreads(__tstate); | |
10512 | if (PyErr_Occurred()) SWIG_fail; | |
10513 | } | |
10514 | Py_INCREF(Py_None); resultobj = Py_None; | |
10515 | return resultobj; | |
10516 | fail: | |
10517 | return NULL; | |
10518 | } | |
10519 | ||
10520 | ||
10521 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10522 | PyObject *resultobj; | |
10523 | wxImage *arg1 = (wxImage *) 0 ; | |
10524 | bool result; | |
10525 | PyObject * obj0 = 0 ; | |
10526 | char *kwnames[] = { | |
10527 | (char *) "self", NULL | |
10528 | }; | |
10529 | ||
10530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
10531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10533 | { | |
10534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10535 | result = (bool)(arg1)->HasMask(); | |
10536 | ||
10537 | wxPyEndAllowThreads(__tstate); | |
10538 | if (PyErr_Occurred()) SWIG_fail; | |
10539 | } | |
10540 | { | |
10541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10542 | } | |
10543 | return resultobj; | |
10544 | fail: | |
10545 | return NULL; | |
10546 | } | |
10547 | ||
10548 | ||
10549 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10550 | PyObject *resultobj; | |
10551 | wxImage *arg1 = (wxImage *) 0 ; | |
10552 | double arg2 ; | |
10553 | wxPoint *arg3 = 0 ; | |
10554 | bool arg4 = (bool) True ; | |
10555 | wxPoint *arg5 = (wxPoint *) NULL ; | |
10556 | SwigValueWrapper< wxImage > result; | |
10557 | wxPoint temp3 ; | |
10558 | PyObject * obj0 = 0 ; | |
10559 | PyObject * obj1 = 0 ; | |
10560 | PyObject * obj2 = 0 ; | |
10561 | PyObject * obj3 = 0 ; | |
10562 | PyObject * obj4 = 0 ; | |
10563 | char *kwnames[] = { | |
10564 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10565 | }; | |
10566 | ||
10567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
10568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10570 | arg2 = (double) SWIG_AsDouble(obj1); | |
10571 | if (PyErr_Occurred()) SWIG_fail; | |
10572 | { | |
10573 | arg3 = &temp3; | |
10574 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10575 | } | |
10576 | if (obj3) { | |
10577 | arg4 = (bool) SWIG_AsBool(obj3); | |
10578 | if (PyErr_Occurred()) SWIG_fail; | |
10579 | } | |
10580 | if (obj4) { | |
10581 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, | |
10582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10583 | } | |
10584 | { | |
10585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10586 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10587 | ||
10588 | wxPyEndAllowThreads(__tstate); | |
10589 | if (PyErr_Occurred()) SWIG_fail; | |
10590 | } | |
10591 | { | |
10592 | wxImage * resultptr; | |
10593 | resultptr = new wxImage((wxImage &) result); | |
10594 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10595 | } | |
10596 | return resultobj; | |
10597 | fail: | |
10598 | return NULL; | |
10599 | } | |
10600 | ||
10601 | ||
10602 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10603 | PyObject *resultobj; | |
10604 | wxImage *arg1 = (wxImage *) 0 ; | |
10605 | bool arg2 = (bool) True ; | |
10606 | SwigValueWrapper< wxImage > result; | |
10607 | PyObject * obj0 = 0 ; | |
10608 | PyObject * obj1 = 0 ; | |
10609 | char *kwnames[] = { | |
10610 | (char *) "self",(char *) "clockwise", NULL | |
10611 | }; | |
10612 | ||
10613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
10614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10616 | if (obj1) { | |
10617 | arg2 = (bool) SWIG_AsBool(obj1); | |
10618 | if (PyErr_Occurred()) SWIG_fail; | |
10619 | } | |
10620 | { | |
10621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10622 | result = (arg1)->Rotate90(arg2); | |
10623 | ||
10624 | wxPyEndAllowThreads(__tstate); | |
10625 | if (PyErr_Occurred()) SWIG_fail; | |
10626 | } | |
10627 | { | |
10628 | wxImage * resultptr; | |
10629 | resultptr = new wxImage((wxImage &) result); | |
10630 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10631 | } | |
10632 | return resultobj; | |
10633 | fail: | |
10634 | return NULL; | |
10635 | } | |
10636 | ||
10637 | ||
10638 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10639 | PyObject *resultobj; | |
10640 | wxImage *arg1 = (wxImage *) 0 ; | |
10641 | bool arg2 = (bool) True ; | |
10642 | SwigValueWrapper< wxImage > result; | |
10643 | PyObject * obj0 = 0 ; | |
10644 | PyObject * obj1 = 0 ; | |
10645 | char *kwnames[] = { | |
10646 | (char *) "self",(char *) "horizontally", NULL | |
10647 | }; | |
10648 | ||
10649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
10650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10652 | if (obj1) { | |
10653 | arg2 = (bool) SWIG_AsBool(obj1); | |
10654 | if (PyErr_Occurred()) SWIG_fail; | |
10655 | } | |
10656 | { | |
10657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10658 | result = (arg1)->Mirror(arg2); | |
10659 | ||
10660 | wxPyEndAllowThreads(__tstate); | |
10661 | if (PyErr_Occurred()) SWIG_fail; | |
10662 | } | |
10663 | { | |
10664 | wxImage * resultptr; | |
10665 | resultptr = new wxImage((wxImage &) result); | |
10666 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10667 | } | |
10668 | return resultobj; | |
10669 | fail: | |
10670 | return NULL; | |
10671 | } | |
10672 | ||
10673 | ||
10674 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10675 | PyObject *resultobj; | |
10676 | wxImage *arg1 = (wxImage *) 0 ; | |
10677 | unsigned char arg2 ; | |
10678 | unsigned char arg3 ; | |
10679 | unsigned char arg4 ; | |
10680 | unsigned char arg5 ; | |
10681 | unsigned char arg6 ; | |
10682 | unsigned char arg7 ; | |
10683 | PyObject * obj0 = 0 ; | |
10684 | PyObject * obj1 = 0 ; | |
10685 | PyObject * obj2 = 0 ; | |
10686 | PyObject * obj3 = 0 ; | |
10687 | PyObject * obj4 = 0 ; | |
10688 | PyObject * obj5 = 0 ; | |
10689 | PyObject * obj6 = 0 ; | |
10690 | char *kwnames[] = { | |
10691 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10692 | }; | |
10693 | ||
10694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10697 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10698 | if (PyErr_Occurred()) SWIG_fail; | |
10699 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10700 | if (PyErr_Occurred()) SWIG_fail; | |
10701 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10702 | if (PyErr_Occurred()) SWIG_fail; | |
10703 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
10704 | if (PyErr_Occurred()) SWIG_fail; | |
10705 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
10706 | if (PyErr_Occurred()) SWIG_fail; | |
10707 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); | |
10708 | if (PyErr_Occurred()) SWIG_fail; | |
10709 | { | |
10710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10711 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10712 | ||
10713 | wxPyEndAllowThreads(__tstate); | |
10714 | if (PyErr_Occurred()) SWIG_fail; | |
10715 | } | |
10716 | Py_INCREF(Py_None); resultobj = Py_None; | |
10717 | return resultobj; | |
10718 | fail: | |
10719 | return NULL; | |
10720 | } | |
10721 | ||
10722 | ||
10723 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10724 | PyObject *resultobj; | |
10725 | wxImage *arg1 = (wxImage *) 0 ; | |
10726 | unsigned char arg2 ; | |
10727 | unsigned char arg3 ; | |
10728 | unsigned char arg4 ; | |
10729 | SwigValueWrapper< wxImage > result; | |
10730 | PyObject * obj0 = 0 ; | |
10731 | PyObject * obj1 = 0 ; | |
10732 | PyObject * obj2 = 0 ; | |
10733 | PyObject * obj3 = 0 ; | |
10734 | char *kwnames[] = { | |
10735 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10736 | }; | |
10737 | ||
10738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10741 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10742 | if (PyErr_Occurred()) SWIG_fail; | |
10743 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10744 | if (PyErr_Occurred()) SWIG_fail; | |
10745 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10746 | if (PyErr_Occurred()) SWIG_fail; | |
10747 | { | |
10748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10749 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10750 | ||
10751 | wxPyEndAllowThreads(__tstate); | |
10752 | if (PyErr_Occurred()) SWIG_fail; | |
10753 | } | |
10754 | { | |
10755 | wxImage * resultptr; | |
10756 | resultptr = new wxImage((wxImage &) result); | |
10757 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10758 | } | |
10759 | return resultobj; | |
10760 | fail: | |
10761 | return NULL; | |
10762 | } | |
10763 | ||
10764 | ||
10765 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10766 | PyObject *resultobj; | |
10767 | wxImage *arg1 = (wxImage *) 0 ; | |
10768 | wxString *arg2 = 0 ; | |
10769 | wxString *arg3 = 0 ; | |
10770 | bool temp2 = False ; | |
10771 | bool temp3 = False ; | |
10772 | PyObject * obj0 = 0 ; | |
10773 | PyObject * obj1 = 0 ; | |
10774 | PyObject * obj2 = 0 ; | |
10775 | char *kwnames[] = { | |
10776 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10777 | }; | |
10778 | ||
10779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10782 | { | |
10783 | arg2 = wxString_in_helper(obj1); | |
10784 | if (arg2 == NULL) SWIG_fail; | |
10785 | temp2 = True; | |
10786 | } | |
10787 | { | |
10788 | arg3 = wxString_in_helper(obj2); | |
10789 | if (arg3 == NULL) SWIG_fail; | |
10790 | temp3 = True; | |
10791 | } | |
10792 | { | |
10793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10794 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10795 | ||
10796 | wxPyEndAllowThreads(__tstate); | |
10797 | if (PyErr_Occurred()) SWIG_fail; | |
10798 | } | |
10799 | Py_INCREF(Py_None); resultobj = Py_None; | |
10800 | { | |
10801 | if (temp2) | |
10802 | delete arg2; | |
10803 | } | |
10804 | { | |
10805 | if (temp3) | |
10806 | delete arg3; | |
10807 | } | |
10808 | return resultobj; | |
10809 | fail: | |
10810 | { | |
10811 | if (temp2) | |
10812 | delete arg2; | |
10813 | } | |
10814 | { | |
10815 | if (temp3) | |
10816 | delete arg3; | |
10817 | } | |
10818 | return NULL; | |
10819 | } | |
10820 | ||
10821 | ||
10822 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10823 | PyObject *resultobj; | |
10824 | wxImage *arg1 = (wxImage *) 0 ; | |
10825 | wxString *arg2 = 0 ; | |
10826 | int arg3 ; | |
10827 | bool temp2 = False ; | |
10828 | PyObject * obj0 = 0 ; | |
10829 | PyObject * obj1 = 0 ; | |
10830 | PyObject * obj2 = 0 ; | |
10831 | char *kwnames[] = { | |
10832 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10833 | }; | |
10834 | ||
10835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10838 | { | |
10839 | arg2 = wxString_in_helper(obj1); | |
10840 | if (arg2 == NULL) SWIG_fail; | |
10841 | temp2 = True; | |
10842 | } | |
10843 | arg3 = (int) SWIG_AsInt(obj2); | |
10844 | if (PyErr_Occurred()) SWIG_fail; | |
10845 | { | |
10846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10847 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10848 | ||
10849 | wxPyEndAllowThreads(__tstate); | |
10850 | if (PyErr_Occurred()) SWIG_fail; | |
10851 | } | |
10852 | Py_INCREF(Py_None); resultobj = Py_None; | |
10853 | { | |
10854 | if (temp2) | |
10855 | delete arg2; | |
10856 | } | |
10857 | return resultobj; | |
10858 | fail: | |
10859 | { | |
10860 | if (temp2) | |
10861 | delete arg2; | |
10862 | } | |
10863 | return NULL; | |
10864 | } | |
10865 | ||
10866 | ||
10867 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10868 | PyObject *resultobj; | |
10869 | wxImage *arg1 = (wxImage *) 0 ; | |
10870 | wxString *arg2 = 0 ; | |
10871 | wxString result; | |
10872 | bool temp2 = False ; | |
10873 | PyObject * obj0 = 0 ; | |
10874 | PyObject * obj1 = 0 ; | |
10875 | char *kwnames[] = { | |
10876 | (char *) "self",(char *) "name", NULL | |
10877 | }; | |
10878 | ||
10879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
10880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10882 | { | |
10883 | arg2 = wxString_in_helper(obj1); | |
10884 | if (arg2 == NULL) SWIG_fail; | |
10885 | temp2 = True; | |
10886 | } | |
10887 | { | |
10888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10889 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10890 | ||
10891 | wxPyEndAllowThreads(__tstate); | |
10892 | if (PyErr_Occurred()) SWIG_fail; | |
10893 | } | |
10894 | { | |
10895 | #if wxUSE_UNICODE | |
10896 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10897 | #else | |
10898 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10899 | #endif | |
10900 | } | |
10901 | { | |
10902 | if (temp2) | |
10903 | delete arg2; | |
10904 | } | |
10905 | return resultobj; | |
10906 | fail: | |
10907 | { | |
10908 | if (temp2) | |
10909 | delete arg2; | |
10910 | } | |
10911 | return NULL; | |
10912 | } | |
10913 | ||
10914 | ||
10915 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10916 | PyObject *resultobj; | |
10917 | wxImage *arg1 = (wxImage *) 0 ; | |
10918 | wxString *arg2 = 0 ; | |
10919 | int result; | |
10920 | bool temp2 = False ; | |
10921 | PyObject * obj0 = 0 ; | |
10922 | PyObject * obj1 = 0 ; | |
10923 | char *kwnames[] = { | |
10924 | (char *) "self",(char *) "name", NULL | |
10925 | }; | |
10926 | ||
10927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
10928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10930 | { | |
10931 | arg2 = wxString_in_helper(obj1); | |
10932 | if (arg2 == NULL) SWIG_fail; | |
10933 | temp2 = True; | |
10934 | } | |
10935 | { | |
10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10937 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
10938 | ||
10939 | wxPyEndAllowThreads(__tstate); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | } | |
10942 | resultobj = SWIG_FromInt((int)result); | |
10943 | { | |
10944 | if (temp2) | |
10945 | delete arg2; | |
10946 | } | |
10947 | return resultobj; | |
10948 | fail: | |
10949 | { | |
10950 | if (temp2) | |
10951 | delete arg2; | |
10952 | } | |
10953 | return NULL; | |
10954 | } | |
10955 | ||
10956 | ||
10957 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10958 | PyObject *resultobj; | |
10959 | wxImage *arg1 = (wxImage *) 0 ; | |
10960 | wxString *arg2 = 0 ; | |
10961 | bool result; | |
10962 | bool temp2 = False ; | |
10963 | PyObject * obj0 = 0 ; | |
10964 | PyObject * obj1 = 0 ; | |
10965 | char *kwnames[] = { | |
10966 | (char *) "self",(char *) "name", NULL | |
10967 | }; | |
10968 | ||
10969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
10970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10972 | { | |
10973 | arg2 = wxString_in_helper(obj1); | |
10974 | if (arg2 == NULL) SWIG_fail; | |
10975 | temp2 = True; | |
10976 | } | |
10977 | { | |
10978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10979 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
10980 | ||
10981 | wxPyEndAllowThreads(__tstate); | |
10982 | if (PyErr_Occurred()) SWIG_fail; | |
10983 | } | |
10984 | { | |
10985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10986 | } | |
10987 | { | |
10988 | if (temp2) | |
10989 | delete arg2; | |
10990 | } | |
10991 | return resultobj; | |
10992 | fail: | |
10993 | { | |
10994 | if (temp2) | |
10995 | delete arg2; | |
10996 | } | |
10997 | return NULL; | |
10998 | } | |
10999 | ||
11000 | ||
11001 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11002 | PyObject *resultobj; | |
11003 | wxImage *arg1 = (wxImage *) 0 ; | |
11004 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11005 | unsigned long result; | |
11006 | PyObject * obj0 = 0 ; | |
11007 | PyObject * obj1 = 0 ; | |
11008 | char *kwnames[] = { | |
11009 | (char *) "self",(char *) "stopafter", NULL | |
11010 | }; | |
11011 | ||
11012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
11013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11015 | if (obj1) { | |
11016 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
11017 | if (PyErr_Occurred()) SWIG_fail; | |
11018 | } | |
11019 | { | |
11020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11021 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11022 | ||
11023 | wxPyEndAllowThreads(__tstate); | |
11024 | if (PyErr_Occurred()) SWIG_fail; | |
11025 | } | |
11026 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
11027 | return resultobj; | |
11028 | fail: | |
11029 | return NULL; | |
11030 | } | |
11031 | ||
11032 | ||
11033 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11034 | PyObject *resultobj; | |
11035 | wxImage *arg1 = (wxImage *) 0 ; | |
11036 | wxImageHistogram *arg2 = 0 ; | |
11037 | unsigned long result; | |
11038 | PyObject * obj0 = 0 ; | |
11039 | PyObject * obj1 = 0 ; | |
11040 | char *kwnames[] = { | |
11041 | (char *) "self",(char *) "h", NULL | |
11042 | }; | |
11043 | ||
11044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
11045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11047 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11048 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11049 | SWIG_fail; | |
11050 | if (arg2 == NULL) { | |
11051 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11052 | SWIG_fail; | |
11053 | } | |
11054 | { | |
11055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11056 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11057 | ||
11058 | wxPyEndAllowThreads(__tstate); | |
11059 | if (PyErr_Occurred()) SWIG_fail; | |
11060 | } | |
11061 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
11062 | return resultobj; | |
11063 | fail: | |
11064 | return NULL; | |
11065 | } | |
11066 | ||
11067 | ||
11068 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11069 | PyObject *resultobj; | |
11070 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11071 | PyObject * obj0 = 0 ; | |
11072 | char *kwnames[] = { | |
11073 | (char *) "handler", NULL | |
11074 | }; | |
11075 | ||
11076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
11077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11079 | { | |
11080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11081 | wxImage::AddHandler(arg1); | |
11082 | ||
11083 | wxPyEndAllowThreads(__tstate); | |
11084 | if (PyErr_Occurred()) SWIG_fail; | |
11085 | } | |
11086 | Py_INCREF(Py_None); resultobj = Py_None; | |
11087 | return resultobj; | |
11088 | fail: | |
11089 | return NULL; | |
11090 | } | |
11091 | ||
11092 | ||
11093 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11094 | PyObject *resultobj; | |
11095 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11096 | PyObject * obj0 = 0 ; | |
11097 | char *kwnames[] = { | |
11098 | (char *) "handler", NULL | |
11099 | }; | |
11100 | ||
11101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
11102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11104 | { | |
11105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11106 | wxImage::InsertHandler(arg1); | |
11107 | ||
11108 | wxPyEndAllowThreads(__tstate); | |
11109 | if (PyErr_Occurred()) SWIG_fail; | |
11110 | } | |
11111 | Py_INCREF(Py_None); resultobj = Py_None; | |
11112 | return resultobj; | |
11113 | fail: | |
11114 | return NULL; | |
11115 | } | |
11116 | ||
11117 | ||
11118 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11119 | PyObject *resultobj; | |
11120 | wxString *arg1 = 0 ; | |
11121 | bool result; | |
11122 | bool temp1 = False ; | |
11123 | PyObject * obj0 = 0 ; | |
11124 | char *kwnames[] = { | |
11125 | (char *) "name", NULL | |
11126 | }; | |
11127 | ||
11128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11129 | { | |
11130 | arg1 = wxString_in_helper(obj0); | |
11131 | if (arg1 == NULL) SWIG_fail; | |
11132 | temp1 = True; | |
11133 | } | |
11134 | { | |
11135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11136 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11137 | ||
11138 | wxPyEndAllowThreads(__tstate); | |
11139 | if (PyErr_Occurred()) SWIG_fail; | |
11140 | } | |
11141 | { | |
11142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11143 | } | |
11144 | { | |
11145 | if (temp1) | |
11146 | delete arg1; | |
11147 | } | |
11148 | return resultobj; | |
11149 | fail: | |
11150 | { | |
11151 | if (temp1) | |
11152 | delete arg1; | |
11153 | } | |
11154 | return NULL; | |
11155 | } | |
11156 | ||
11157 | ||
11158 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11159 | PyObject *resultobj; | |
11160 | wxString result; | |
11161 | char *kwnames[] = { | |
11162 | NULL | |
11163 | }; | |
11164 | ||
11165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11166 | { | |
11167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11168 | result = wxImage::GetImageExtWildcard(); | |
11169 | ||
11170 | wxPyEndAllowThreads(__tstate); | |
11171 | if (PyErr_Occurred()) SWIG_fail; | |
11172 | } | |
11173 | { | |
11174 | #if wxUSE_UNICODE | |
11175 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11176 | #else | |
11177 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11178 | #endif | |
11179 | } | |
11180 | return resultobj; | |
11181 | fail: | |
11182 | return NULL; | |
11183 | } | |
11184 | ||
11185 | ||
11186 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11187 | PyObject *resultobj; | |
11188 | wxImage *arg1 = (wxImage *) 0 ; | |
11189 | wxBitmap result; | |
11190 | PyObject * obj0 = 0 ; | |
11191 | char *kwnames[] = { | |
11192 | (char *) "self", NULL | |
11193 | }; | |
11194 | ||
11195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
11196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11198 | { | |
11199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11200 | result = wxImage_ConvertToBitmap(arg1); | |
11201 | ||
11202 | wxPyEndAllowThreads(__tstate); | |
11203 | if (PyErr_Occurred()) SWIG_fail; | |
11204 | } | |
11205 | { | |
11206 | wxBitmap * resultptr; | |
11207 | resultptr = new wxBitmap((wxBitmap &) result); | |
11208 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11209 | } | |
11210 | return resultobj; | |
11211 | fail: | |
11212 | return NULL; | |
11213 | } | |
11214 | ||
11215 | ||
11216 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11217 | PyObject *resultobj; | |
11218 | wxImage *arg1 = (wxImage *) 0 ; | |
11219 | unsigned char arg2 ; | |
11220 | unsigned char arg3 ; | |
11221 | unsigned char arg4 ; | |
11222 | wxBitmap result; | |
11223 | PyObject * obj0 = 0 ; | |
11224 | PyObject * obj1 = 0 ; | |
11225 | PyObject * obj2 = 0 ; | |
11226 | PyObject * obj3 = 0 ; | |
11227 | char *kwnames[] = { | |
11228 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11229 | }; | |
11230 | ||
11231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11234 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
11235 | if (PyErr_Occurred()) SWIG_fail; | |
11236 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
11237 | if (PyErr_Occurred()) SWIG_fail; | |
11238 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
11239 | if (PyErr_Occurred()) SWIG_fail; | |
11240 | { | |
11241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11242 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11243 | ||
11244 | wxPyEndAllowThreads(__tstate); | |
11245 | if (PyErr_Occurred()) SWIG_fail; | |
11246 | } | |
11247 | { | |
11248 | wxBitmap * resultptr; | |
11249 | resultptr = new wxBitmap((wxBitmap &) result); | |
11250 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11251 | } | |
11252 | return resultobj; | |
11253 | fail: | |
11254 | return NULL; | |
11255 | } | |
11256 | ||
11257 | ||
11258 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
11259 | PyObject *obj; | |
11260 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11261 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11262 | Py_INCREF(obj); | |
11263 | return Py_BuildValue((char *)""); | |
11264 | } | |
11265 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11266 | PyObject *resultobj; | |
11267 | char *kwnames[] = { | |
11268 | NULL | |
11269 | }; | |
11270 | ||
11271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
11272 | { | |
11273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11274 | wxInitAllImageHandlers(); | |
11275 | ||
11276 | wxPyEndAllowThreads(__tstate); | |
11277 | if (PyErr_Occurred()) SWIG_fail; | |
11278 | } | |
11279 | Py_INCREF(Py_None); resultobj = Py_None; | |
11280 | return resultobj; | |
11281 | fail: | |
11282 | return NULL; | |
11283 | } | |
11284 | ||
11285 | ||
11286 | static int _wrap_NullImage_set(PyObject *_val) { | |
11287 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); | |
11288 | return 1; | |
11289 | } | |
11290 | ||
11291 | ||
11292 | static PyObject *_wrap_NullImage_get() { | |
11293 | PyObject *pyobj; | |
11294 | ||
11295 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); | |
11296 | return pyobj; | |
11297 | } | |
11298 | ||
11299 | ||
11300 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { | |
11301 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); | |
11302 | return 1; | |
11303 | } | |
11304 | ||
11305 | ||
11306 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11307 | PyObject *pyobj; | |
11308 | ||
11309 | { | |
11310 | #if wxUSE_UNICODE | |
11311 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11312 | #else | |
11313 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11314 | #endif | |
11315 | } | |
11316 | return pyobj; | |
11317 | } | |
11318 | ||
11319 | ||
11320 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { | |
11321 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); | |
11322 | return 1; | |
11323 | } | |
11324 | ||
11325 | ||
11326 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11327 | PyObject *pyobj; | |
11328 | ||
11329 | { | |
11330 | #if wxUSE_UNICODE | |
11331 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11332 | #else | |
11333 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11334 | #endif | |
11335 | } | |
11336 | return pyobj; | |
11337 | } | |
11338 | ||
11339 | ||
11340 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { | |
11341 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); | |
11342 | return 1; | |
11343 | } | |
11344 | ||
11345 | ||
11346 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11347 | PyObject *pyobj; | |
11348 | ||
11349 | { | |
11350 | #if wxUSE_UNICODE | |
11351 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11352 | #else | |
11353 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11354 | #endif | |
11355 | } | |
11356 | return pyobj; | |
11357 | } | |
11358 | ||
11359 | ||
11360 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { | |
11361 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); | |
11362 | return 1; | |
11363 | } | |
11364 | ||
11365 | ||
11366 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11367 | PyObject *pyobj; | |
11368 | ||
11369 | { | |
11370 | #if wxUSE_UNICODE | |
11371 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11372 | #else | |
11373 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11374 | #endif | |
11375 | } | |
11376 | return pyobj; | |
11377 | } | |
11378 | ||
11379 | ||
11380 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { | |
11381 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); | |
11382 | return 1; | |
11383 | } | |
11384 | ||
11385 | ||
11386 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11387 | PyObject *pyobj; | |
11388 | ||
11389 | { | |
11390 | #if wxUSE_UNICODE | |
11391 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11392 | #else | |
11393 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11394 | #endif | |
11395 | } | |
11396 | return pyobj; | |
11397 | } | |
11398 | ||
11399 | ||
11400 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11401 | PyObject *resultobj; | |
11402 | wxBMPHandler *result; | |
11403 | char *kwnames[] = { | |
11404 | NULL | |
11405 | }; | |
11406 | ||
11407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11408 | { | |
11409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11410 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11411 | ||
11412 | wxPyEndAllowThreads(__tstate); | |
11413 | if (PyErr_Occurred()) SWIG_fail; | |
11414 | } | |
11415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); | |
11416 | return resultobj; | |
11417 | fail: | |
11418 | return NULL; | |
11419 | } | |
11420 | ||
11421 | ||
11422 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11423 | PyObject *obj; | |
11424 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11425 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11426 | Py_INCREF(obj); | |
11427 | return Py_BuildValue((char *)""); | |
11428 | } | |
11429 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11430 | PyObject *resultobj; | |
11431 | wxICOHandler *result; | |
11432 | char *kwnames[] = { | |
11433 | NULL | |
11434 | }; | |
11435 | ||
11436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11437 | { | |
11438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11439 | result = (wxICOHandler *)new wxICOHandler(); | |
11440 | ||
11441 | wxPyEndAllowThreads(__tstate); | |
11442 | if (PyErr_Occurred()) SWIG_fail; | |
11443 | } | |
11444 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); | |
11445 | return resultobj; | |
11446 | fail: | |
11447 | return NULL; | |
11448 | } | |
11449 | ||
11450 | ||
11451 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11452 | PyObject *obj; | |
11453 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11454 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11455 | Py_INCREF(obj); | |
11456 | return Py_BuildValue((char *)""); | |
11457 | } | |
11458 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11459 | PyObject *resultobj; | |
11460 | wxCURHandler *result; | |
11461 | char *kwnames[] = { | |
11462 | NULL | |
11463 | }; | |
11464 | ||
11465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11466 | { | |
11467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11468 | result = (wxCURHandler *)new wxCURHandler(); | |
11469 | ||
11470 | wxPyEndAllowThreads(__tstate); | |
11471 | if (PyErr_Occurred()) SWIG_fail; | |
11472 | } | |
11473 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); | |
11474 | return resultobj; | |
11475 | fail: | |
11476 | return NULL; | |
11477 | } | |
11478 | ||
11479 | ||
11480 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11481 | PyObject *obj; | |
11482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11483 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11484 | Py_INCREF(obj); | |
11485 | return Py_BuildValue((char *)""); | |
11486 | } | |
11487 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11488 | PyObject *resultobj; | |
11489 | wxANIHandler *result; | |
11490 | char *kwnames[] = { | |
11491 | NULL | |
11492 | }; | |
11493 | ||
11494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11495 | { | |
11496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11497 | result = (wxANIHandler *)new wxANIHandler(); | |
11498 | ||
11499 | wxPyEndAllowThreads(__tstate); | |
11500 | if (PyErr_Occurred()) SWIG_fail; | |
11501 | } | |
11502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); | |
11503 | return resultobj; | |
11504 | fail: | |
11505 | return NULL; | |
11506 | } | |
11507 | ||
11508 | ||
11509 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11510 | PyObject *obj; | |
11511 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11512 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11513 | Py_INCREF(obj); | |
11514 | return Py_BuildValue((char *)""); | |
11515 | } | |
11516 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11517 | PyObject *resultobj; | |
11518 | wxPNGHandler *result; | |
11519 | char *kwnames[] = { | |
11520 | NULL | |
11521 | }; | |
11522 | ||
11523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11524 | { | |
11525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11526 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11527 | ||
11528 | wxPyEndAllowThreads(__tstate); | |
11529 | if (PyErr_Occurred()) SWIG_fail; | |
11530 | } | |
11531 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); | |
11532 | return resultobj; | |
11533 | fail: | |
11534 | return NULL; | |
11535 | } | |
11536 | ||
11537 | ||
11538 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11539 | PyObject *obj; | |
11540 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11541 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11542 | Py_INCREF(obj); | |
11543 | return Py_BuildValue((char *)""); | |
11544 | } | |
11545 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11546 | PyObject *resultobj; | |
11547 | wxGIFHandler *result; | |
11548 | char *kwnames[] = { | |
11549 | NULL | |
11550 | }; | |
11551 | ||
11552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11553 | { | |
11554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11555 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11556 | ||
11557 | wxPyEndAllowThreads(__tstate); | |
11558 | if (PyErr_Occurred()) SWIG_fail; | |
11559 | } | |
11560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); | |
11561 | return resultobj; | |
11562 | fail: | |
11563 | return NULL; | |
11564 | } | |
11565 | ||
11566 | ||
11567 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11568 | PyObject *obj; | |
11569 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11570 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11571 | Py_INCREF(obj); | |
11572 | return Py_BuildValue((char *)""); | |
11573 | } | |
11574 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11575 | PyObject *resultobj; | |
11576 | wxPCXHandler *result; | |
11577 | char *kwnames[] = { | |
11578 | NULL | |
11579 | }; | |
11580 | ||
11581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11582 | { | |
11583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11584 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11585 | ||
11586 | wxPyEndAllowThreads(__tstate); | |
11587 | if (PyErr_Occurred()) SWIG_fail; | |
11588 | } | |
11589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); | |
11590 | return resultobj; | |
11591 | fail: | |
11592 | return NULL; | |
11593 | } | |
11594 | ||
11595 | ||
11596 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11597 | PyObject *obj; | |
11598 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11599 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11600 | Py_INCREF(obj); | |
11601 | return Py_BuildValue((char *)""); | |
11602 | } | |
11603 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11604 | PyObject *resultobj; | |
11605 | wxJPEGHandler *result; | |
11606 | char *kwnames[] = { | |
11607 | NULL | |
11608 | }; | |
11609 | ||
11610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11611 | { | |
11612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11613 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11614 | ||
11615 | wxPyEndAllowThreads(__tstate); | |
11616 | if (PyErr_Occurred()) SWIG_fail; | |
11617 | } | |
11618 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); | |
11619 | return resultobj; | |
11620 | fail: | |
11621 | return NULL; | |
11622 | } | |
11623 | ||
11624 | ||
11625 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11626 | PyObject *obj; | |
11627 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11628 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11629 | Py_INCREF(obj); | |
11630 | return Py_BuildValue((char *)""); | |
11631 | } | |
11632 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11633 | PyObject *resultobj; | |
11634 | wxPNMHandler *result; | |
11635 | char *kwnames[] = { | |
11636 | NULL | |
11637 | }; | |
11638 | ||
11639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11640 | { | |
11641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11642 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11643 | ||
11644 | wxPyEndAllowThreads(__tstate); | |
11645 | if (PyErr_Occurred()) SWIG_fail; | |
11646 | } | |
11647 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); | |
11648 | return resultobj; | |
11649 | fail: | |
11650 | return NULL; | |
11651 | } | |
11652 | ||
11653 | ||
11654 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11655 | PyObject *obj; | |
11656 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11657 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11658 | Py_INCREF(obj); | |
11659 | return Py_BuildValue((char *)""); | |
11660 | } | |
11661 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11662 | PyObject *resultobj; | |
11663 | wxXPMHandler *result; | |
11664 | char *kwnames[] = { | |
11665 | NULL | |
11666 | }; | |
11667 | ||
11668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11669 | { | |
11670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11671 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11672 | ||
11673 | wxPyEndAllowThreads(__tstate); | |
11674 | if (PyErr_Occurred()) SWIG_fail; | |
11675 | } | |
11676 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); | |
11677 | return resultobj; | |
11678 | fail: | |
11679 | return NULL; | |
11680 | } | |
11681 | ||
11682 | ||
11683 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11684 | PyObject *obj; | |
11685 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11686 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11687 | Py_INCREF(obj); | |
11688 | return Py_BuildValue((char *)""); | |
11689 | } | |
11690 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11691 | PyObject *resultobj; | |
11692 | wxTIFFHandler *result; | |
11693 | char *kwnames[] = { | |
11694 | NULL | |
11695 | }; | |
11696 | ||
11697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11698 | { | |
11699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11700 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11701 | ||
11702 | wxPyEndAllowThreads(__tstate); | |
11703 | if (PyErr_Occurred()) SWIG_fail; | |
11704 | } | |
11705 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); | |
11706 | return resultobj; | |
11707 | fail: | |
11708 | return NULL; | |
11709 | } | |
11710 | ||
11711 | ||
11712 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11713 | PyObject *obj; | |
11714 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11715 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11716 | Py_INCREF(obj); | |
11717 | return Py_BuildValue((char *)""); | |
11718 | } | |
11719 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11720 | PyObject *resultobj; | |
11721 | wxEvtHandler *result; | |
11722 | char *kwnames[] = { | |
11723 | NULL | |
11724 | }; | |
11725 | ||
11726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11727 | { | |
11728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11729 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11730 | ||
11731 | wxPyEndAllowThreads(__tstate); | |
11732 | if (PyErr_Occurred()) SWIG_fail; | |
11733 | } | |
11734 | { | |
11735 | resultobj = wxPyMake_wxObject(result); | |
11736 | } | |
11737 | return resultobj; | |
11738 | fail: | |
11739 | return NULL; | |
11740 | } | |
11741 | ||
11742 | ||
11743 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11744 | PyObject *resultobj; | |
11745 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11746 | wxEvtHandler *result; | |
11747 | PyObject * obj0 = 0 ; | |
11748 | char *kwnames[] = { | |
11749 | (char *) "self", NULL | |
11750 | }; | |
11751 | ||
11752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
11753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11755 | { | |
11756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11757 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11758 | ||
11759 | wxPyEndAllowThreads(__tstate); | |
11760 | if (PyErr_Occurred()) SWIG_fail; | |
11761 | } | |
11762 | { | |
11763 | resultobj = wxPyMake_wxObject(result); | |
11764 | } | |
11765 | return resultobj; | |
11766 | fail: | |
11767 | return NULL; | |
11768 | } | |
11769 | ||
11770 | ||
11771 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11772 | PyObject *resultobj; | |
11773 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11774 | wxEvtHandler *result; | |
11775 | PyObject * obj0 = 0 ; | |
11776 | char *kwnames[] = { | |
11777 | (char *) "self", NULL | |
11778 | }; | |
11779 | ||
11780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
11781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11783 | { | |
11784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11785 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11786 | ||
11787 | wxPyEndAllowThreads(__tstate); | |
11788 | if (PyErr_Occurred()) SWIG_fail; | |
11789 | } | |
11790 | { | |
11791 | resultobj = wxPyMake_wxObject(result); | |
11792 | } | |
11793 | return resultobj; | |
11794 | fail: | |
11795 | return NULL; | |
11796 | } | |
11797 | ||
11798 | ||
11799 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11800 | PyObject *resultobj; | |
11801 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11802 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11803 | PyObject * obj0 = 0 ; | |
11804 | PyObject * obj1 = 0 ; | |
11805 | char *kwnames[] = { | |
11806 | (char *) "self",(char *) "handler", NULL | |
11807 | }; | |
11808 | ||
11809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
11810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11812 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11814 | { | |
11815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11816 | (arg1)->SetNextHandler(arg2); | |
11817 | ||
11818 | wxPyEndAllowThreads(__tstate); | |
11819 | if (PyErr_Occurred()) SWIG_fail; | |
11820 | } | |
11821 | Py_INCREF(Py_None); resultobj = Py_None; | |
11822 | return resultobj; | |
11823 | fail: | |
11824 | return NULL; | |
11825 | } | |
11826 | ||
11827 | ||
11828 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11829 | PyObject *resultobj; | |
11830 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11831 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11832 | PyObject * obj0 = 0 ; | |
11833 | PyObject * obj1 = 0 ; | |
11834 | char *kwnames[] = { | |
11835 | (char *) "self",(char *) "handler", NULL | |
11836 | }; | |
11837 | ||
11838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
11839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11841 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11843 | { | |
11844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11845 | (arg1)->SetPreviousHandler(arg2); | |
11846 | ||
11847 | wxPyEndAllowThreads(__tstate); | |
11848 | if (PyErr_Occurred()) SWIG_fail; | |
11849 | } | |
11850 | Py_INCREF(Py_None); resultobj = Py_None; | |
11851 | return resultobj; | |
11852 | fail: | |
11853 | return NULL; | |
11854 | } | |
11855 | ||
11856 | ||
11857 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11858 | PyObject *resultobj; | |
11859 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11860 | bool result; | |
11861 | PyObject * obj0 = 0 ; | |
11862 | char *kwnames[] = { | |
11863 | (char *) "self", NULL | |
11864 | }; | |
11865 | ||
11866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
11867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11869 | { | |
11870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11871 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11872 | ||
11873 | wxPyEndAllowThreads(__tstate); | |
11874 | if (PyErr_Occurred()) SWIG_fail; | |
11875 | } | |
11876 | { | |
11877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11878 | } | |
11879 | return resultobj; | |
11880 | fail: | |
11881 | return NULL; | |
11882 | } | |
11883 | ||
11884 | ||
11885 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11886 | PyObject *resultobj; | |
11887 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11888 | bool arg2 ; | |
11889 | PyObject * obj0 = 0 ; | |
11890 | PyObject * obj1 = 0 ; | |
11891 | char *kwnames[] = { | |
11892 | (char *) "self",(char *) "enabled", NULL | |
11893 | }; | |
11894 | ||
11895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
11896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11898 | arg2 = (bool) SWIG_AsBool(obj1); | |
11899 | if (PyErr_Occurred()) SWIG_fail; | |
11900 | { | |
11901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11902 | (arg1)->SetEvtHandlerEnabled(arg2); | |
11903 | ||
11904 | wxPyEndAllowThreads(__tstate); | |
11905 | if (PyErr_Occurred()) SWIG_fail; | |
11906 | } | |
11907 | Py_INCREF(Py_None); resultobj = Py_None; | |
11908 | return resultobj; | |
11909 | fail: | |
11910 | return NULL; | |
11911 | } | |
11912 | ||
11913 | ||
11914 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11915 | PyObject *resultobj; | |
11916 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11917 | wxEvent *arg2 = 0 ; | |
11918 | bool result; | |
11919 | PyObject * obj0 = 0 ; | |
11920 | PyObject * obj1 = 0 ; | |
11921 | char *kwnames[] = { | |
11922 | (char *) "self",(char *) "event", NULL | |
11923 | }; | |
11924 | ||
11925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
11926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11928 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11929 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11930 | SWIG_fail; | |
11931 | if (arg2 == NULL) { | |
11932 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11933 | SWIG_fail; | |
11934 | } | |
11935 | { | |
11936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11937 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
11938 | ||
11939 | wxPyEndAllowThreads(__tstate); | |
11940 | if (PyErr_Occurred()) SWIG_fail; | |
11941 | } | |
11942 | { | |
11943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11944 | } | |
11945 | return resultobj; | |
11946 | fail: | |
11947 | return NULL; | |
11948 | } | |
11949 | ||
11950 | ||
11951 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11952 | PyObject *resultobj; | |
11953 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11954 | wxEvent *arg2 = 0 ; | |
11955 | PyObject * obj0 = 0 ; | |
11956 | PyObject * obj1 = 0 ; | |
11957 | char *kwnames[] = { | |
11958 | (char *) "self",(char *) "event", NULL | |
11959 | }; | |
11960 | ||
11961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
11962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11964 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11965 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11966 | SWIG_fail; | |
11967 | if (arg2 == NULL) { | |
11968 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11969 | SWIG_fail; | |
11970 | } | |
11971 | { | |
11972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11973 | (arg1)->AddPendingEvent(*arg2); | |
11974 | ||
11975 | wxPyEndAllowThreads(__tstate); | |
11976 | if (PyErr_Occurred()) SWIG_fail; | |
11977 | } | |
11978 | Py_INCREF(Py_None); resultobj = Py_None; | |
11979 | return resultobj; | |
11980 | fail: | |
11981 | return NULL; | |
11982 | } | |
11983 | ||
11984 | ||
11985 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11986 | PyObject *resultobj; | |
11987 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11988 | PyObject * obj0 = 0 ; | |
11989 | char *kwnames[] = { | |
11990 | (char *) "self", NULL | |
11991 | }; | |
11992 | ||
11993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
11994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11996 | { | |
11997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11998 | (arg1)->ProcessPendingEvents(); | |
11999 | ||
12000 | wxPyEndAllowThreads(__tstate); | |
12001 | if (PyErr_Occurred()) SWIG_fail; | |
12002 | } | |
12003 | Py_INCREF(Py_None); resultobj = Py_None; | |
12004 | return resultobj; | |
12005 | fail: | |
12006 | return NULL; | |
12007 | } | |
12008 | ||
12009 | ||
12010 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12011 | PyObject *resultobj; | |
12012 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12013 | int arg2 ; | |
12014 | int arg3 ; | |
12015 | int arg4 ; | |
12016 | PyObject *arg5 = (PyObject *) 0 ; | |
12017 | PyObject * obj0 = 0 ; | |
12018 | PyObject * obj1 = 0 ; | |
12019 | PyObject * obj2 = 0 ; | |
12020 | PyObject * obj3 = 0 ; | |
12021 | PyObject * obj4 = 0 ; | |
12022 | char *kwnames[] = { | |
12023 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12024 | }; | |
12025 | ||
12026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12029 | arg2 = (int) SWIG_AsInt(obj1); | |
12030 | if (PyErr_Occurred()) SWIG_fail; | |
12031 | arg3 = (int) SWIG_AsInt(obj2); | |
12032 | if (PyErr_Occurred()) SWIG_fail; | |
12033 | arg4 = (int) SWIG_AsInt(obj3); | |
12034 | if (PyErr_Occurred()) SWIG_fail; | |
12035 | arg5 = obj4; | |
12036 | { | |
12037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12038 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12039 | ||
12040 | wxPyEndAllowThreads(__tstate); | |
12041 | if (PyErr_Occurred()) SWIG_fail; | |
12042 | } | |
12043 | Py_INCREF(Py_None); resultobj = Py_None; | |
12044 | return resultobj; | |
12045 | fail: | |
12046 | return NULL; | |
12047 | } | |
12048 | ||
12049 | ||
12050 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12051 | PyObject *resultobj; | |
12052 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12053 | int arg2 ; | |
12054 | int arg3 = (int) -1 ; | |
12055 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12056 | bool result; | |
12057 | PyObject * obj0 = 0 ; | |
12058 | PyObject * obj1 = 0 ; | |
12059 | PyObject * obj2 = 0 ; | |
12060 | PyObject * obj3 = 0 ; | |
12061 | char *kwnames[] = { | |
12062 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12063 | }; | |
12064 | ||
12065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12068 | arg2 = (int) SWIG_AsInt(obj1); | |
12069 | if (PyErr_Occurred()) SWIG_fail; | |
12070 | if (obj2) { | |
12071 | arg3 = (int) SWIG_AsInt(obj2); | |
12072 | if (PyErr_Occurred()) SWIG_fail; | |
12073 | } | |
12074 | if (obj3) { | |
12075 | arg4 = (wxEventType) SWIG_AsInt(obj3); | |
12076 | if (PyErr_Occurred()) SWIG_fail; | |
12077 | } | |
12078 | { | |
12079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12080 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12081 | ||
12082 | wxPyEndAllowThreads(__tstate); | |
12083 | if (PyErr_Occurred()) SWIG_fail; | |
12084 | } | |
12085 | { | |
12086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12087 | } | |
12088 | return resultobj; | |
12089 | fail: | |
12090 | return NULL; | |
12091 | } | |
12092 | ||
12093 | ||
12094 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12095 | PyObject *resultobj; | |
12096 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12097 | PyObject *arg2 = (PyObject *) 0 ; | |
12098 | PyObject * obj0 = 0 ; | |
12099 | PyObject * obj1 = 0 ; | |
12100 | char *kwnames[] = { | |
12101 | (char *) "self",(char *) "_self", NULL | |
12102 | }; | |
12103 | ||
12104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
12105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12107 | arg2 = obj1; | |
12108 | { | |
12109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12110 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12111 | ||
12112 | wxPyEndAllowThreads(__tstate); | |
12113 | if (PyErr_Occurred()) SWIG_fail; | |
12114 | } | |
12115 | Py_INCREF(Py_None); resultobj = Py_None; | |
12116 | return resultobj; | |
12117 | fail: | |
12118 | return NULL; | |
12119 | } | |
12120 | ||
12121 | ||
12122 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
12123 | PyObject *obj; | |
12124 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12125 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12126 | Py_INCREF(obj); | |
12127 | return Py_BuildValue((char *)""); | |
12128 | } | |
12129 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12130 | PyObject *resultobj; | |
12131 | wxEventType result; | |
12132 | char *kwnames[] = { | |
12133 | NULL | |
12134 | }; | |
12135 | ||
12136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12137 | { | |
12138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12139 | result = (wxEventType)wxNewEventType(); | |
12140 | ||
12141 | wxPyEndAllowThreads(__tstate); | |
12142 | if (PyErr_Occurred()) SWIG_fail; | |
12143 | } | |
12144 | resultobj = SWIG_FromInt((int)result); | |
12145 | return resultobj; | |
12146 | fail: | |
12147 | return NULL; | |
12148 | } | |
12149 | ||
12150 | ||
12151 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12152 | PyObject *resultobj; | |
12153 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12154 | PyObject * obj0 = 0 ; | |
12155 | char *kwnames[] = { | |
12156 | (char *) "self", NULL | |
12157 | }; | |
12158 | ||
12159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
12160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12162 | { | |
12163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12164 | delete arg1; | |
12165 | ||
12166 | wxPyEndAllowThreads(__tstate); | |
12167 | if (PyErr_Occurred()) SWIG_fail; | |
12168 | } | |
12169 | Py_INCREF(Py_None); resultobj = Py_None; | |
12170 | return resultobj; | |
12171 | fail: | |
12172 | return NULL; | |
12173 | } | |
12174 | ||
12175 | ||
12176 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12177 | PyObject *resultobj; | |
12178 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12179 | wxEventType arg2 ; | |
12180 | PyObject * obj0 = 0 ; | |
12181 | PyObject * obj1 = 0 ; | |
12182 | char *kwnames[] = { | |
12183 | (char *) "self",(char *) "typ", NULL | |
12184 | }; | |
12185 | ||
12186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; | |
12187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12189 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
12190 | if (PyErr_Occurred()) SWIG_fail; | |
12191 | { | |
12192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12193 | (arg1)->SetEventType(arg2); | |
12194 | ||
12195 | wxPyEndAllowThreads(__tstate); | |
12196 | if (PyErr_Occurred()) SWIG_fail; | |
12197 | } | |
12198 | Py_INCREF(Py_None); resultobj = Py_None; | |
12199 | return resultobj; | |
12200 | fail: | |
12201 | return NULL; | |
12202 | } | |
12203 | ||
12204 | ||
12205 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12206 | PyObject *resultobj; | |
12207 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12208 | wxEventType result; | |
12209 | PyObject * obj0 = 0 ; | |
12210 | char *kwnames[] = { | |
12211 | (char *) "self", NULL | |
12212 | }; | |
12213 | ||
12214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
12215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12217 | { | |
12218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12219 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12220 | ||
12221 | wxPyEndAllowThreads(__tstate); | |
12222 | if (PyErr_Occurred()) SWIG_fail; | |
12223 | } | |
12224 | resultobj = SWIG_FromInt((int)result); | |
12225 | return resultobj; | |
12226 | fail: | |
12227 | return NULL; | |
12228 | } | |
12229 | ||
12230 | ||
12231 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12232 | PyObject *resultobj; | |
12233 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12234 | wxObject *result; | |
12235 | PyObject * obj0 = 0 ; | |
12236 | char *kwnames[] = { | |
12237 | (char *) "self", NULL | |
12238 | }; | |
12239 | ||
12240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
12241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12243 | { | |
12244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12245 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12246 | ||
12247 | wxPyEndAllowThreads(__tstate); | |
12248 | if (PyErr_Occurred()) SWIG_fail; | |
12249 | } | |
12250 | { | |
12251 | resultobj = wxPyMake_wxObject(result); | |
12252 | } | |
12253 | return resultobj; | |
12254 | fail: | |
12255 | return NULL; | |
12256 | } | |
12257 | ||
12258 | ||
12259 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12260 | PyObject *resultobj; | |
12261 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12262 | wxObject *arg2 = (wxObject *) 0 ; | |
12263 | PyObject * obj0 = 0 ; | |
12264 | PyObject * obj1 = 0 ; | |
12265 | char *kwnames[] = { | |
12266 | (char *) "self",(char *) "obj", NULL | |
12267 | }; | |
12268 | ||
12269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
12270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12272 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12274 | { | |
12275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12276 | (arg1)->SetEventObject(arg2); | |
12277 | ||
12278 | wxPyEndAllowThreads(__tstate); | |
12279 | if (PyErr_Occurred()) SWIG_fail; | |
12280 | } | |
12281 | Py_INCREF(Py_None); resultobj = Py_None; | |
12282 | return resultobj; | |
12283 | fail: | |
12284 | return NULL; | |
12285 | } | |
12286 | ||
12287 | ||
12288 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12289 | PyObject *resultobj; | |
12290 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12291 | long result; | |
12292 | PyObject * obj0 = 0 ; | |
12293 | char *kwnames[] = { | |
12294 | (char *) "self", NULL | |
12295 | }; | |
12296 | ||
12297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
12298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12300 | { | |
12301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12302 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12303 | ||
12304 | wxPyEndAllowThreads(__tstate); | |
12305 | if (PyErr_Occurred()) SWIG_fail; | |
12306 | } | |
12307 | resultobj = SWIG_FromLong((long)result); | |
12308 | return resultobj; | |
12309 | fail: | |
12310 | return NULL; | |
12311 | } | |
12312 | ||
12313 | ||
12314 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12315 | PyObject *resultobj; | |
12316 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12317 | long arg2 = (long) 0 ; | |
12318 | PyObject * obj0 = 0 ; | |
12319 | PyObject * obj1 = 0 ; | |
12320 | char *kwnames[] = { | |
12321 | (char *) "self",(char *) "ts", NULL | |
12322 | }; | |
12323 | ||
12324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; | |
12325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12327 | if (obj1) { | |
12328 | arg2 = (long) SWIG_AsLong(obj1); | |
12329 | if (PyErr_Occurred()) SWIG_fail; | |
12330 | } | |
12331 | { | |
12332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12333 | (arg1)->SetTimestamp(arg2); | |
12334 | ||
12335 | wxPyEndAllowThreads(__tstate); | |
12336 | if (PyErr_Occurred()) SWIG_fail; | |
12337 | } | |
12338 | Py_INCREF(Py_None); resultobj = Py_None; | |
12339 | return resultobj; | |
12340 | fail: | |
12341 | return NULL; | |
12342 | } | |
12343 | ||
12344 | ||
12345 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12346 | PyObject *resultobj; | |
12347 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12348 | int result; | |
12349 | PyObject * obj0 = 0 ; | |
12350 | char *kwnames[] = { | |
12351 | (char *) "self", NULL | |
12352 | }; | |
12353 | ||
12354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
12355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12357 | { | |
12358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12359 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12360 | ||
12361 | wxPyEndAllowThreads(__tstate); | |
12362 | if (PyErr_Occurred()) SWIG_fail; | |
12363 | } | |
12364 | resultobj = SWIG_FromInt((int)result); | |
12365 | return resultobj; | |
12366 | fail: | |
12367 | return NULL; | |
12368 | } | |
12369 | ||
12370 | ||
12371 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12372 | PyObject *resultobj; | |
12373 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12374 | int arg2 ; | |
12375 | PyObject * obj0 = 0 ; | |
12376 | PyObject * obj1 = 0 ; | |
12377 | char *kwnames[] = { | |
12378 | (char *) "self",(char *) "Id", NULL | |
12379 | }; | |
12380 | ||
12381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; | |
12382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12384 | arg2 = (int) SWIG_AsInt(obj1); | |
12385 | if (PyErr_Occurred()) SWIG_fail; | |
12386 | { | |
12387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12388 | (arg1)->SetId(arg2); | |
12389 | ||
12390 | wxPyEndAllowThreads(__tstate); | |
12391 | if (PyErr_Occurred()) SWIG_fail; | |
12392 | } | |
12393 | Py_INCREF(Py_None); resultobj = Py_None; | |
12394 | return resultobj; | |
12395 | fail: | |
12396 | return NULL; | |
12397 | } | |
12398 | ||
12399 | ||
12400 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12401 | PyObject *resultobj; | |
12402 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12403 | bool result; | |
12404 | PyObject * obj0 = 0 ; | |
12405 | char *kwnames[] = { | |
12406 | (char *) "self", NULL | |
12407 | }; | |
12408 | ||
12409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
12410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12412 | { | |
12413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12414 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12415 | ||
12416 | wxPyEndAllowThreads(__tstate); | |
12417 | if (PyErr_Occurred()) SWIG_fail; | |
12418 | } | |
12419 | { | |
12420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12421 | } | |
12422 | return resultobj; | |
12423 | fail: | |
12424 | return NULL; | |
12425 | } | |
12426 | ||
12427 | ||
12428 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12429 | PyObject *resultobj; | |
12430 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12431 | bool arg2 = (bool) True ; | |
12432 | PyObject * obj0 = 0 ; | |
12433 | PyObject * obj1 = 0 ; | |
12434 | char *kwnames[] = { | |
12435 | (char *) "self",(char *) "skip", NULL | |
12436 | }; | |
12437 | ||
12438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
12439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12441 | if (obj1) { | |
12442 | arg2 = (bool) SWIG_AsBool(obj1); | |
12443 | if (PyErr_Occurred()) SWIG_fail; | |
12444 | } | |
12445 | { | |
12446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12447 | (arg1)->Skip(arg2); | |
12448 | ||
12449 | wxPyEndAllowThreads(__tstate); | |
12450 | if (PyErr_Occurred()) SWIG_fail; | |
12451 | } | |
12452 | Py_INCREF(Py_None); resultobj = Py_None; | |
12453 | return resultobj; | |
12454 | fail: | |
12455 | return NULL; | |
12456 | } | |
12457 | ||
12458 | ||
12459 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12460 | PyObject *resultobj; | |
12461 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12462 | bool result; | |
12463 | PyObject * obj0 = 0 ; | |
12464 | char *kwnames[] = { | |
12465 | (char *) "self", NULL | |
12466 | }; | |
12467 | ||
12468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
12469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12471 | { | |
12472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12473 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12474 | ||
12475 | wxPyEndAllowThreads(__tstate); | |
12476 | if (PyErr_Occurred()) SWIG_fail; | |
12477 | } | |
12478 | { | |
12479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12480 | } | |
12481 | return resultobj; | |
12482 | fail: | |
12483 | return NULL; | |
12484 | } | |
12485 | ||
12486 | ||
12487 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12488 | PyObject *resultobj; | |
12489 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12490 | bool result; | |
12491 | PyObject * obj0 = 0 ; | |
12492 | char *kwnames[] = { | |
12493 | (char *) "self", NULL | |
12494 | }; | |
12495 | ||
12496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
12497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12499 | { | |
12500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12501 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12502 | ||
12503 | wxPyEndAllowThreads(__tstate); | |
12504 | if (PyErr_Occurred()) SWIG_fail; | |
12505 | } | |
12506 | { | |
12507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12508 | } | |
12509 | return resultobj; | |
12510 | fail: | |
12511 | return NULL; | |
12512 | } | |
12513 | ||
12514 | ||
12515 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12516 | PyObject *resultobj; | |
12517 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12518 | int result; | |
12519 | PyObject * obj0 = 0 ; | |
12520 | char *kwnames[] = { | |
12521 | (char *) "self", NULL | |
12522 | }; | |
12523 | ||
12524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
12525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12527 | { | |
12528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12529 | result = (int)(arg1)->StopPropagation(); | |
12530 | ||
12531 | wxPyEndAllowThreads(__tstate); | |
12532 | if (PyErr_Occurred()) SWIG_fail; | |
12533 | } | |
12534 | resultobj = SWIG_FromInt((int)result); | |
12535 | return resultobj; | |
12536 | fail: | |
12537 | return NULL; | |
12538 | } | |
12539 | ||
12540 | ||
12541 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12542 | PyObject *resultobj; | |
12543 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12544 | int arg2 ; | |
12545 | PyObject * obj0 = 0 ; | |
12546 | PyObject * obj1 = 0 ; | |
12547 | char *kwnames[] = { | |
12548 | (char *) "self",(char *) "propagationLevel", NULL | |
12549 | }; | |
12550 | ||
12551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; | |
12552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12554 | arg2 = (int) SWIG_AsInt(obj1); | |
12555 | if (PyErr_Occurred()) SWIG_fail; | |
12556 | { | |
12557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12558 | (arg1)->ResumePropagation(arg2); | |
12559 | ||
12560 | wxPyEndAllowThreads(__tstate); | |
12561 | if (PyErr_Occurred()) SWIG_fail; | |
12562 | } | |
12563 | Py_INCREF(Py_None); resultobj = Py_None; | |
12564 | return resultobj; | |
12565 | fail: | |
12566 | return NULL; | |
12567 | } | |
12568 | ||
12569 | ||
12570 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12571 | PyObject *resultobj; | |
12572 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12573 | wxEvent *result; | |
12574 | PyObject * obj0 = 0 ; | |
12575 | char *kwnames[] = { | |
12576 | (char *) "self", NULL | |
12577 | }; | |
12578 | ||
12579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
12580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12582 | { | |
12583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12584 | result = (wxEvent *)(arg1)->Clone(); | |
12585 | ||
12586 | wxPyEndAllowThreads(__tstate); | |
12587 | if (PyErr_Occurred()) SWIG_fail; | |
12588 | } | |
12589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
12590 | return resultobj; | |
12591 | fail: | |
12592 | return NULL; | |
12593 | } | |
12594 | ||
12595 | ||
12596 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12597 | PyObject *obj; | |
12598 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12599 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12600 | Py_INCREF(obj); | |
12601 | return Py_BuildValue((char *)""); | |
12602 | } | |
12603 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12604 | PyObject *resultobj; | |
12605 | wxEvent *arg1 = 0 ; | |
12606 | wxPropagationDisabler *result; | |
12607 | PyObject * obj0 = 0 ; | |
12608 | char *kwnames[] = { | |
12609 | (char *) "event", NULL | |
12610 | }; | |
12611 | ||
12612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12614 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12615 | SWIG_fail; | |
12616 | if (arg1 == NULL) { | |
12617 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12618 | SWIG_fail; | |
12619 | } | |
12620 | { | |
12621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12622 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12623 | ||
12624 | wxPyEndAllowThreads(__tstate); | |
12625 | if (PyErr_Occurred()) SWIG_fail; | |
12626 | } | |
12627 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); | |
12628 | return resultobj; | |
12629 | fail: | |
12630 | return NULL; | |
12631 | } | |
12632 | ||
12633 | ||
12634 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12635 | PyObject *resultobj; | |
12636 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12637 | PyObject * obj0 = 0 ; | |
12638 | char *kwnames[] = { | |
12639 | (char *) "self", NULL | |
12640 | }; | |
12641 | ||
12642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, | |
12644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12645 | { | |
12646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12647 | delete arg1; | |
12648 | ||
12649 | wxPyEndAllowThreads(__tstate); | |
12650 | if (PyErr_Occurred()) SWIG_fail; | |
12651 | } | |
12652 | Py_INCREF(Py_None); resultobj = Py_None; | |
12653 | return resultobj; | |
12654 | fail: | |
12655 | return NULL; | |
12656 | } | |
12657 | ||
12658 | ||
12659 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12660 | PyObject *obj; | |
12661 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12662 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12663 | Py_INCREF(obj); | |
12664 | return Py_BuildValue((char *)""); | |
12665 | } | |
12666 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12667 | PyObject *resultobj; | |
12668 | wxEvent *arg1 = 0 ; | |
12669 | wxPropagateOnce *result; | |
12670 | PyObject * obj0 = 0 ; | |
12671 | char *kwnames[] = { | |
12672 | (char *) "event", NULL | |
12673 | }; | |
12674 | ||
12675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
12676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12677 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12678 | SWIG_fail; | |
12679 | if (arg1 == NULL) { | |
12680 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12681 | SWIG_fail; | |
12682 | } | |
12683 | { | |
12684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12685 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12686 | ||
12687 | wxPyEndAllowThreads(__tstate); | |
12688 | if (PyErr_Occurred()) SWIG_fail; | |
12689 | } | |
12690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); | |
12691 | return resultobj; | |
12692 | fail: | |
12693 | return NULL; | |
12694 | } | |
12695 | ||
12696 | ||
12697 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12698 | PyObject *resultobj; | |
12699 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12700 | PyObject * obj0 = 0 ; | |
12701 | char *kwnames[] = { | |
12702 | (char *) "self", NULL | |
12703 | }; | |
12704 | ||
12705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
12706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, | |
12707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12708 | { | |
12709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12710 | delete arg1; | |
12711 | ||
12712 | wxPyEndAllowThreads(__tstate); | |
12713 | if (PyErr_Occurred()) SWIG_fail; | |
12714 | } | |
12715 | Py_INCREF(Py_None); resultobj = Py_None; | |
12716 | return resultobj; | |
12717 | fail: | |
12718 | return NULL; | |
12719 | } | |
12720 | ||
12721 | ||
12722 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12723 | PyObject *obj; | |
12724 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12725 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12726 | Py_INCREF(obj); | |
12727 | return Py_BuildValue((char *)""); | |
12728 | } | |
12729 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12730 | PyObject *resultobj; | |
12731 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12732 | int arg2 = (int) 0 ; | |
12733 | wxCommandEvent *result; | |
12734 | PyObject * obj0 = 0 ; | |
12735 | PyObject * obj1 = 0 ; | |
12736 | char *kwnames[] = { | |
12737 | (char *) "commandType",(char *) "winid", NULL | |
12738 | }; | |
12739 | ||
12740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
12741 | if (obj0) { | |
12742 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
12743 | if (PyErr_Occurred()) SWIG_fail; | |
12744 | } | |
12745 | if (obj1) { | |
12746 | arg2 = (int) SWIG_AsInt(obj1); | |
12747 | if (PyErr_Occurred()) SWIG_fail; | |
12748 | } | |
12749 | { | |
12750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12751 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12752 | ||
12753 | wxPyEndAllowThreads(__tstate); | |
12754 | if (PyErr_Occurred()) SWIG_fail; | |
12755 | } | |
12756 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); | |
12757 | return resultobj; | |
12758 | fail: | |
12759 | return NULL; | |
12760 | } | |
12761 | ||
12762 | ||
12763 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12764 | PyObject *resultobj; | |
12765 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12766 | int result; | |
12767 | PyObject * obj0 = 0 ; | |
12768 | char *kwnames[] = { | |
12769 | (char *) "self", NULL | |
12770 | }; | |
12771 | ||
12772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
12773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12775 | { | |
12776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12777 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12778 | ||
12779 | wxPyEndAllowThreads(__tstate); | |
12780 | if (PyErr_Occurred()) SWIG_fail; | |
12781 | } | |
12782 | resultobj = SWIG_FromInt((int)result); | |
12783 | return resultobj; | |
12784 | fail: | |
12785 | return NULL; | |
12786 | } | |
12787 | ||
12788 | ||
12789 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12790 | PyObject *resultobj; | |
12791 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12792 | wxString *arg2 = 0 ; | |
12793 | bool temp2 = False ; | |
12794 | PyObject * obj0 = 0 ; | |
12795 | PyObject * obj1 = 0 ; | |
12796 | char *kwnames[] = { | |
12797 | (char *) "self",(char *) "s", NULL | |
12798 | }; | |
12799 | ||
12800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
12801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12803 | { | |
12804 | arg2 = wxString_in_helper(obj1); | |
12805 | if (arg2 == NULL) SWIG_fail; | |
12806 | temp2 = True; | |
12807 | } | |
12808 | { | |
12809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12810 | (arg1)->SetString((wxString const &)*arg2); | |
12811 | ||
12812 | wxPyEndAllowThreads(__tstate); | |
12813 | if (PyErr_Occurred()) SWIG_fail; | |
12814 | } | |
12815 | Py_INCREF(Py_None); resultobj = Py_None; | |
12816 | { | |
12817 | if (temp2) | |
12818 | delete arg2; | |
12819 | } | |
12820 | return resultobj; | |
12821 | fail: | |
12822 | { | |
12823 | if (temp2) | |
12824 | delete arg2; | |
12825 | } | |
12826 | return NULL; | |
12827 | } | |
12828 | ||
12829 | ||
12830 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12831 | PyObject *resultobj; | |
12832 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12833 | wxString result; | |
12834 | PyObject * obj0 = 0 ; | |
12835 | char *kwnames[] = { | |
12836 | (char *) "self", NULL | |
12837 | }; | |
12838 | ||
12839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
12840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12842 | { | |
12843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12844 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12845 | ||
12846 | wxPyEndAllowThreads(__tstate); | |
12847 | if (PyErr_Occurred()) SWIG_fail; | |
12848 | } | |
12849 | { | |
12850 | #if wxUSE_UNICODE | |
12851 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12852 | #else | |
12853 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12854 | #endif | |
12855 | } | |
12856 | return resultobj; | |
12857 | fail: | |
12858 | return NULL; | |
12859 | } | |
12860 | ||
12861 | ||
12862 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12863 | PyObject *resultobj; | |
12864 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12865 | bool result; | |
12866 | PyObject * obj0 = 0 ; | |
12867 | char *kwnames[] = { | |
12868 | (char *) "self", NULL | |
12869 | }; | |
12870 | ||
12871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
12872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12874 | { | |
12875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12876 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12877 | ||
12878 | wxPyEndAllowThreads(__tstate); | |
12879 | if (PyErr_Occurred()) SWIG_fail; | |
12880 | } | |
12881 | { | |
12882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12883 | } | |
12884 | return resultobj; | |
12885 | fail: | |
12886 | return NULL; | |
12887 | } | |
12888 | ||
12889 | ||
12890 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12891 | PyObject *resultobj; | |
12892 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12893 | bool result; | |
12894 | PyObject * obj0 = 0 ; | |
12895 | char *kwnames[] = { | |
12896 | (char *) "self", NULL | |
12897 | }; | |
12898 | ||
12899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
12900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12902 | { | |
12903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12904 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12905 | ||
12906 | wxPyEndAllowThreads(__tstate); | |
12907 | if (PyErr_Occurred()) SWIG_fail; | |
12908 | } | |
12909 | { | |
12910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12911 | } | |
12912 | return resultobj; | |
12913 | fail: | |
12914 | return NULL; | |
12915 | } | |
12916 | ||
12917 | ||
12918 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12919 | PyObject *resultobj; | |
12920 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12921 | long arg2 ; | |
12922 | PyObject * obj0 = 0 ; | |
12923 | PyObject * obj1 = 0 ; | |
12924 | char *kwnames[] = { | |
12925 | (char *) "self",(char *) "extraLong", NULL | |
12926 | }; | |
12927 | ||
12928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; | |
12929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12931 | arg2 = (long) SWIG_AsLong(obj1); | |
12932 | if (PyErr_Occurred()) SWIG_fail; | |
12933 | { | |
12934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12935 | (arg1)->SetExtraLong(arg2); | |
12936 | ||
12937 | wxPyEndAllowThreads(__tstate); | |
12938 | if (PyErr_Occurred()) SWIG_fail; | |
12939 | } | |
12940 | Py_INCREF(Py_None); resultobj = Py_None; | |
12941 | return resultobj; | |
12942 | fail: | |
12943 | return NULL; | |
12944 | } | |
12945 | ||
12946 | ||
12947 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12948 | PyObject *resultobj; | |
12949 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12950 | long result; | |
12951 | PyObject * obj0 = 0 ; | |
12952 | char *kwnames[] = { | |
12953 | (char *) "self", NULL | |
12954 | }; | |
12955 | ||
12956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
12957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12959 | { | |
12960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12961 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
12962 | ||
12963 | wxPyEndAllowThreads(__tstate); | |
12964 | if (PyErr_Occurred()) SWIG_fail; | |
12965 | } | |
12966 | resultobj = SWIG_FromLong((long)result); | |
12967 | return resultobj; | |
12968 | fail: | |
12969 | return NULL; | |
12970 | } | |
12971 | ||
12972 | ||
12973 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12974 | PyObject *resultobj; | |
12975 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12976 | int arg2 ; | |
12977 | PyObject * obj0 = 0 ; | |
12978 | PyObject * obj1 = 0 ; | |
12979 | char *kwnames[] = { | |
12980 | (char *) "self",(char *) "i", NULL | |
12981 | }; | |
12982 | ||
12983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; | |
12984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12986 | arg2 = (int) SWIG_AsInt(obj1); | |
12987 | if (PyErr_Occurred()) SWIG_fail; | |
12988 | { | |
12989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12990 | (arg1)->SetInt(arg2); | |
12991 | ||
12992 | wxPyEndAllowThreads(__tstate); | |
12993 | if (PyErr_Occurred()) SWIG_fail; | |
12994 | } | |
12995 | Py_INCREF(Py_None); resultobj = Py_None; | |
12996 | return resultobj; | |
12997 | fail: | |
12998 | return NULL; | |
12999 | } | |
13000 | ||
13001 | ||
13002 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13003 | PyObject *resultobj; | |
13004 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13005 | long result; | |
13006 | PyObject * obj0 = 0 ; | |
13007 | char *kwnames[] = { | |
13008 | (char *) "self", NULL | |
13009 | }; | |
13010 | ||
13011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
13012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13014 | { | |
13015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13016 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13017 | ||
13018 | wxPyEndAllowThreads(__tstate); | |
13019 | if (PyErr_Occurred()) SWIG_fail; | |
13020 | } | |
13021 | resultobj = SWIG_FromLong((long)result); | |
13022 | return resultobj; | |
13023 | fail: | |
13024 | return NULL; | |
13025 | } | |
13026 | ||
13027 | ||
13028 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13029 | PyObject *resultobj; | |
13030 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13031 | wxEvent *result; | |
13032 | PyObject * obj0 = 0 ; | |
13033 | char *kwnames[] = { | |
13034 | (char *) "self", NULL | |
13035 | }; | |
13036 | ||
13037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
13038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13040 | { | |
13041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13042 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13043 | ||
13044 | wxPyEndAllowThreads(__tstate); | |
13045 | if (PyErr_Occurred()) SWIG_fail; | |
13046 | } | |
13047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13048 | return resultobj; | |
13049 | fail: | |
13050 | return NULL; | |
13051 | } | |
13052 | ||
13053 | ||
13054 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
13055 | PyObject *obj; | |
13056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13057 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13058 | Py_INCREF(obj); | |
13059 | return Py_BuildValue((char *)""); | |
13060 | } | |
13061 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13062 | PyObject *resultobj; | |
13063 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13064 | int arg2 = (int) 0 ; | |
13065 | wxNotifyEvent *result; | |
13066 | PyObject * obj0 = 0 ; | |
13067 | PyObject * obj1 = 0 ; | |
13068 | char *kwnames[] = { | |
13069 | (char *) "commandType",(char *) "winid", NULL | |
13070 | }; | |
13071 | ||
13072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; | |
13073 | if (obj0) { | |
13074 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13075 | if (PyErr_Occurred()) SWIG_fail; | |
13076 | } | |
13077 | if (obj1) { | |
13078 | arg2 = (int) SWIG_AsInt(obj1); | |
13079 | if (PyErr_Occurred()) SWIG_fail; | |
13080 | } | |
13081 | { | |
13082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13083 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13084 | ||
13085 | wxPyEndAllowThreads(__tstate); | |
13086 | if (PyErr_Occurred()) SWIG_fail; | |
13087 | } | |
13088 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); | |
13089 | return resultobj; | |
13090 | fail: | |
13091 | return NULL; | |
13092 | } | |
13093 | ||
13094 | ||
13095 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13096 | PyObject *resultobj; | |
13097 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13098 | PyObject * obj0 = 0 ; | |
13099 | char *kwnames[] = { | |
13100 | (char *) "self", NULL | |
13101 | }; | |
13102 | ||
13103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
13104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13106 | { | |
13107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13108 | (arg1)->Veto(); | |
13109 | ||
13110 | wxPyEndAllowThreads(__tstate); | |
13111 | if (PyErr_Occurred()) SWIG_fail; | |
13112 | } | |
13113 | Py_INCREF(Py_None); resultobj = Py_None; | |
13114 | return resultobj; | |
13115 | fail: | |
13116 | return NULL; | |
13117 | } | |
13118 | ||
13119 | ||
13120 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13121 | PyObject *resultobj; | |
13122 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13123 | PyObject * obj0 = 0 ; | |
13124 | char *kwnames[] = { | |
13125 | (char *) "self", NULL | |
13126 | }; | |
13127 | ||
13128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
13129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13131 | { | |
13132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13133 | (arg1)->Allow(); | |
13134 | ||
13135 | wxPyEndAllowThreads(__tstate); | |
13136 | if (PyErr_Occurred()) SWIG_fail; | |
13137 | } | |
13138 | Py_INCREF(Py_None); resultobj = Py_None; | |
13139 | return resultobj; | |
13140 | fail: | |
13141 | return NULL; | |
13142 | } | |
13143 | ||
13144 | ||
13145 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13146 | PyObject *resultobj; | |
13147 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13148 | bool result; | |
13149 | PyObject * obj0 = 0 ; | |
13150 | char *kwnames[] = { | |
13151 | (char *) "self", NULL | |
13152 | }; | |
13153 | ||
13154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
13155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13157 | { | |
13158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13159 | result = (bool)(arg1)->IsAllowed(); | |
13160 | ||
13161 | wxPyEndAllowThreads(__tstate); | |
13162 | if (PyErr_Occurred()) SWIG_fail; | |
13163 | } | |
13164 | { | |
13165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13166 | } | |
13167 | return resultobj; | |
13168 | fail: | |
13169 | return NULL; | |
13170 | } | |
13171 | ||
13172 | ||
13173 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
13174 | PyObject *obj; | |
13175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13176 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13177 | Py_INCREF(obj); | |
13178 | return Py_BuildValue((char *)""); | |
13179 | } | |
13180 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13181 | PyObject *resultobj; | |
13182 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13183 | int arg2 = (int) 0 ; | |
13184 | int arg3 = (int) 0 ; | |
13185 | int arg4 = (int) 0 ; | |
13186 | wxScrollEvent *result; | |
13187 | PyObject * obj0 = 0 ; | |
13188 | PyObject * obj1 = 0 ; | |
13189 | PyObject * obj2 = 0 ; | |
13190 | PyObject * obj3 = 0 ; | |
13191 | char *kwnames[] = { | |
13192 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13193 | }; | |
13194 | ||
13195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13196 | if (obj0) { | |
13197 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13198 | if (PyErr_Occurred()) SWIG_fail; | |
13199 | } | |
13200 | if (obj1) { | |
13201 | arg2 = (int) SWIG_AsInt(obj1); | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
13203 | } | |
13204 | if (obj2) { | |
13205 | arg3 = (int) SWIG_AsInt(obj2); | |
13206 | if (PyErr_Occurred()) SWIG_fail; | |
13207 | } | |
13208 | if (obj3) { | |
13209 | arg4 = (int) SWIG_AsInt(obj3); | |
13210 | if (PyErr_Occurred()) SWIG_fail; | |
13211 | } | |
13212 | { | |
13213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13214 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13215 | ||
13216 | wxPyEndAllowThreads(__tstate); | |
13217 | if (PyErr_Occurred()) SWIG_fail; | |
13218 | } | |
13219 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); | |
13220 | return resultobj; | |
13221 | fail: | |
13222 | return NULL; | |
13223 | } | |
13224 | ||
13225 | ||
13226 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13227 | PyObject *resultobj; | |
13228 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13229 | int result; | |
13230 | PyObject * obj0 = 0 ; | |
13231 | char *kwnames[] = { | |
13232 | (char *) "self", NULL | |
13233 | }; | |
13234 | ||
13235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13238 | { | |
13239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13240 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13241 | ||
13242 | wxPyEndAllowThreads(__tstate); | |
13243 | if (PyErr_Occurred()) SWIG_fail; | |
13244 | } | |
13245 | resultobj = SWIG_FromInt((int)result); | |
13246 | return resultobj; | |
13247 | fail: | |
13248 | return NULL; | |
13249 | } | |
13250 | ||
13251 | ||
13252 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13253 | PyObject *resultobj; | |
13254 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13255 | int result; | |
13256 | PyObject * obj0 = 0 ; | |
13257 | char *kwnames[] = { | |
13258 | (char *) "self", NULL | |
13259 | }; | |
13260 | ||
13261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13264 | { | |
13265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13266 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13267 | ||
13268 | wxPyEndAllowThreads(__tstate); | |
13269 | if (PyErr_Occurred()) SWIG_fail; | |
13270 | } | |
13271 | resultobj = SWIG_FromInt((int)result); | |
13272 | return resultobj; | |
13273 | fail: | |
13274 | return NULL; | |
13275 | } | |
13276 | ||
13277 | ||
13278 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13279 | PyObject *resultobj; | |
13280 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13281 | int arg2 ; | |
13282 | PyObject * obj0 = 0 ; | |
13283 | PyObject * obj1 = 0 ; | |
13284 | char *kwnames[] = { | |
13285 | (char *) "self",(char *) "orient", NULL | |
13286 | }; | |
13287 | ||
13288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13291 | arg2 = (int) SWIG_AsInt(obj1); | |
13292 | if (PyErr_Occurred()) SWIG_fail; | |
13293 | { | |
13294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13295 | (arg1)->SetOrientation(arg2); | |
13296 | ||
13297 | wxPyEndAllowThreads(__tstate); | |
13298 | if (PyErr_Occurred()) SWIG_fail; | |
13299 | } | |
13300 | Py_INCREF(Py_None); resultobj = Py_None; | |
13301 | return resultobj; | |
13302 | fail: | |
13303 | return NULL; | |
13304 | } | |
13305 | ||
13306 | ||
13307 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13308 | PyObject *resultobj; | |
13309 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13310 | int arg2 ; | |
13311 | PyObject * obj0 = 0 ; | |
13312 | PyObject * obj1 = 0 ; | |
13313 | char *kwnames[] = { | |
13314 | (char *) "self",(char *) "pos", NULL | |
13315 | }; | |
13316 | ||
13317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13320 | arg2 = (int) SWIG_AsInt(obj1); | |
13321 | if (PyErr_Occurred()) SWIG_fail; | |
13322 | { | |
13323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13324 | (arg1)->SetPosition(arg2); | |
13325 | ||
13326 | wxPyEndAllowThreads(__tstate); | |
13327 | if (PyErr_Occurred()) SWIG_fail; | |
13328 | } | |
13329 | Py_INCREF(Py_None); resultobj = Py_None; | |
13330 | return resultobj; | |
13331 | fail: | |
13332 | return NULL; | |
13333 | } | |
13334 | ||
13335 | ||
13336 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
13337 | PyObject *obj; | |
13338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13339 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13340 | Py_INCREF(obj); | |
13341 | return Py_BuildValue((char *)""); | |
13342 | } | |
13343 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13344 | PyObject *resultobj; | |
13345 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13346 | int arg2 = (int) 0 ; | |
13347 | int arg3 = (int) 0 ; | |
13348 | wxScrollWinEvent *result; | |
13349 | PyObject * obj0 = 0 ; | |
13350 | PyObject * obj1 = 0 ; | |
13351 | PyObject * obj2 = 0 ; | |
13352 | char *kwnames[] = { | |
13353 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13354 | }; | |
13355 | ||
13356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13357 | if (obj0) { | |
13358 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13359 | if (PyErr_Occurred()) SWIG_fail; | |
13360 | } | |
13361 | if (obj1) { | |
13362 | arg2 = (int) SWIG_AsInt(obj1); | |
13363 | if (PyErr_Occurred()) SWIG_fail; | |
13364 | } | |
13365 | if (obj2) { | |
13366 | arg3 = (int) SWIG_AsInt(obj2); | |
13367 | if (PyErr_Occurred()) SWIG_fail; | |
13368 | } | |
13369 | { | |
13370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13371 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13372 | ||
13373 | wxPyEndAllowThreads(__tstate); | |
13374 | if (PyErr_Occurred()) SWIG_fail; | |
13375 | } | |
13376 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); | |
13377 | return resultobj; | |
13378 | fail: | |
13379 | return NULL; | |
13380 | } | |
13381 | ||
13382 | ||
13383 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13384 | PyObject *resultobj; | |
13385 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13386 | int result; | |
13387 | PyObject * obj0 = 0 ; | |
13388 | char *kwnames[] = { | |
13389 | (char *) "self", NULL | |
13390 | }; | |
13391 | ||
13392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13395 | { | |
13396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13397 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13398 | ||
13399 | wxPyEndAllowThreads(__tstate); | |
13400 | if (PyErr_Occurred()) SWIG_fail; | |
13401 | } | |
13402 | resultobj = SWIG_FromInt((int)result); | |
13403 | return resultobj; | |
13404 | fail: | |
13405 | return NULL; | |
13406 | } | |
13407 | ||
13408 | ||
13409 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13410 | PyObject *resultobj; | |
13411 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13412 | int result; | |
13413 | PyObject * obj0 = 0 ; | |
13414 | char *kwnames[] = { | |
13415 | (char *) "self", NULL | |
13416 | }; | |
13417 | ||
13418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13421 | { | |
13422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13423 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13424 | ||
13425 | wxPyEndAllowThreads(__tstate); | |
13426 | if (PyErr_Occurred()) SWIG_fail; | |
13427 | } | |
13428 | resultobj = SWIG_FromInt((int)result); | |
13429 | return resultobj; | |
13430 | fail: | |
13431 | return NULL; | |
13432 | } | |
13433 | ||
13434 | ||
13435 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13436 | PyObject *resultobj; | |
13437 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13438 | int arg2 ; | |
13439 | PyObject * obj0 = 0 ; | |
13440 | PyObject * obj1 = 0 ; | |
13441 | char *kwnames[] = { | |
13442 | (char *) "self",(char *) "orient", NULL | |
13443 | }; | |
13444 | ||
13445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13448 | arg2 = (int) SWIG_AsInt(obj1); | |
13449 | if (PyErr_Occurred()) SWIG_fail; | |
13450 | { | |
13451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13452 | (arg1)->SetOrientation(arg2); | |
13453 | ||
13454 | wxPyEndAllowThreads(__tstate); | |
13455 | if (PyErr_Occurred()) SWIG_fail; | |
13456 | } | |
13457 | Py_INCREF(Py_None); resultobj = Py_None; | |
13458 | return resultobj; | |
13459 | fail: | |
13460 | return NULL; | |
13461 | } | |
13462 | ||
13463 | ||
13464 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13465 | PyObject *resultobj; | |
13466 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13467 | int arg2 ; | |
13468 | PyObject * obj0 = 0 ; | |
13469 | PyObject * obj1 = 0 ; | |
13470 | char *kwnames[] = { | |
13471 | (char *) "self",(char *) "pos", NULL | |
13472 | }; | |
13473 | ||
13474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13477 | arg2 = (int) SWIG_AsInt(obj1); | |
13478 | if (PyErr_Occurred()) SWIG_fail; | |
13479 | { | |
13480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13481 | (arg1)->SetPosition(arg2); | |
13482 | ||
13483 | wxPyEndAllowThreads(__tstate); | |
13484 | if (PyErr_Occurred()) SWIG_fail; | |
13485 | } | |
13486 | Py_INCREF(Py_None); resultobj = Py_None; | |
13487 | return resultobj; | |
13488 | fail: | |
13489 | return NULL; | |
13490 | } | |
13491 | ||
13492 | ||
13493 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13494 | PyObject *obj; | |
13495 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13496 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13497 | Py_INCREF(obj); | |
13498 | return Py_BuildValue((char *)""); | |
13499 | } | |
13500 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13501 | PyObject *resultobj; | |
13502 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13503 | wxMouseEvent *result; | |
13504 | PyObject * obj0 = 0 ; | |
13505 | char *kwnames[] = { | |
13506 | (char *) "mouseType", NULL | |
13507 | }; | |
13508 | ||
13509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; | |
13510 | if (obj0) { | |
13511 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13512 | if (PyErr_Occurred()) SWIG_fail; | |
13513 | } | |
13514 | { | |
13515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13516 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13517 | ||
13518 | wxPyEndAllowThreads(__tstate); | |
13519 | if (PyErr_Occurred()) SWIG_fail; | |
13520 | } | |
13521 | { | |
13522 | resultobj = wxPyMake_wxObject(result); | |
13523 | } | |
13524 | return resultobj; | |
13525 | fail: | |
13526 | return NULL; | |
13527 | } | |
13528 | ||
13529 | ||
13530 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13531 | PyObject *resultobj; | |
13532 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13533 | bool result; | |
13534 | PyObject * obj0 = 0 ; | |
13535 | char *kwnames[] = { | |
13536 | (char *) "self", NULL | |
13537 | }; | |
13538 | ||
13539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
13540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13542 | { | |
13543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13544 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13545 | ||
13546 | wxPyEndAllowThreads(__tstate); | |
13547 | if (PyErr_Occurred()) SWIG_fail; | |
13548 | } | |
13549 | { | |
13550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13551 | } | |
13552 | return resultobj; | |
13553 | fail: | |
13554 | return NULL; | |
13555 | } | |
13556 | ||
13557 | ||
13558 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13559 | PyObject *resultobj; | |
13560 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13561 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13562 | bool result; | |
13563 | PyObject * obj0 = 0 ; | |
13564 | PyObject * obj1 = 0 ; | |
13565 | char *kwnames[] = { | |
13566 | (char *) "self",(char *) "but", NULL | |
13567 | }; | |
13568 | ||
13569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
13570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13572 | if (obj1) { | |
13573 | arg2 = (int) SWIG_AsInt(obj1); | |
13574 | if (PyErr_Occurred()) SWIG_fail; | |
13575 | } | |
13576 | { | |
13577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13578 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13579 | ||
13580 | wxPyEndAllowThreads(__tstate); | |
13581 | if (PyErr_Occurred()) SWIG_fail; | |
13582 | } | |
13583 | { | |
13584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13585 | } | |
13586 | return resultobj; | |
13587 | fail: | |
13588 | return NULL; | |
13589 | } | |
13590 | ||
13591 | ||
13592 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13593 | PyObject *resultobj; | |
13594 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13595 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13596 | bool result; | |
13597 | PyObject * obj0 = 0 ; | |
13598 | PyObject * obj1 = 0 ; | |
13599 | char *kwnames[] = { | |
13600 | (char *) "self",(char *) "but", NULL | |
13601 | }; | |
13602 | ||
13603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; | |
13604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13606 | if (obj1) { | |
13607 | arg2 = (int) SWIG_AsInt(obj1); | |
13608 | if (PyErr_Occurred()) SWIG_fail; | |
13609 | } | |
13610 | { | |
13611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13612 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13613 | ||
13614 | wxPyEndAllowThreads(__tstate); | |
13615 | if (PyErr_Occurred()) SWIG_fail; | |
13616 | } | |
13617 | { | |
13618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13619 | } | |
13620 | return resultobj; | |
13621 | fail: | |
13622 | return NULL; | |
13623 | } | |
13624 | ||
13625 | ||
13626 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13627 | PyObject *resultobj; | |
13628 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13629 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13630 | bool result; | |
13631 | PyObject * obj0 = 0 ; | |
13632 | PyObject * obj1 = 0 ; | |
13633 | char *kwnames[] = { | |
13634 | (char *) "self",(char *) "but", NULL | |
13635 | }; | |
13636 | ||
13637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
13638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13640 | if (obj1) { | |
13641 | arg2 = (int) SWIG_AsInt(obj1); | |
13642 | if (PyErr_Occurred()) SWIG_fail; | |
13643 | } | |
13644 | { | |
13645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13646 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13647 | ||
13648 | wxPyEndAllowThreads(__tstate); | |
13649 | if (PyErr_Occurred()) SWIG_fail; | |
13650 | } | |
13651 | { | |
13652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13653 | } | |
13654 | return resultobj; | |
13655 | fail: | |
13656 | return NULL; | |
13657 | } | |
13658 | ||
13659 | ||
13660 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13661 | PyObject *resultobj; | |
13662 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13663 | int arg2 ; | |
13664 | bool result; | |
13665 | PyObject * obj0 = 0 ; | |
13666 | PyObject * obj1 = 0 ; | |
13667 | char *kwnames[] = { | |
13668 | (char *) "self",(char *) "but", NULL | |
13669 | }; | |
13670 | ||
13671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; | |
13672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13674 | arg2 = (int) SWIG_AsInt(obj1); | |
13675 | if (PyErr_Occurred()) SWIG_fail; | |
13676 | { | |
13677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13678 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13679 | ||
13680 | wxPyEndAllowThreads(__tstate); | |
13681 | if (PyErr_Occurred()) SWIG_fail; | |
13682 | } | |
13683 | { | |
13684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13685 | } | |
13686 | return resultobj; | |
13687 | fail: | |
13688 | return NULL; | |
13689 | } | |
13690 | ||
13691 | ||
13692 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13693 | PyObject *resultobj; | |
13694 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13695 | int arg2 ; | |
13696 | bool result; | |
13697 | PyObject * obj0 = 0 ; | |
13698 | PyObject * obj1 = 0 ; | |
13699 | char *kwnames[] = { | |
13700 | (char *) "self",(char *) "but", NULL | |
13701 | }; | |
13702 | ||
13703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
13704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13706 | arg2 = (int) SWIG_AsInt(obj1); | |
13707 | if (PyErr_Occurred()) SWIG_fail; | |
13708 | { | |
13709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13710 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13711 | ||
13712 | wxPyEndAllowThreads(__tstate); | |
13713 | if (PyErr_Occurred()) SWIG_fail; | |
13714 | } | |
13715 | { | |
13716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13717 | } | |
13718 | return resultobj; | |
13719 | fail: | |
13720 | return NULL; | |
13721 | } | |
13722 | ||
13723 | ||
13724 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13725 | PyObject *resultobj; | |
13726 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13727 | int result; | |
13728 | PyObject * obj0 = 0 ; | |
13729 | char *kwnames[] = { | |
13730 | (char *) "self", NULL | |
13731 | }; | |
13732 | ||
13733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
13734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13736 | { | |
13737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13738 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13739 | ||
13740 | wxPyEndAllowThreads(__tstate); | |
13741 | if (PyErr_Occurred()) SWIG_fail; | |
13742 | } | |
13743 | resultobj = SWIG_FromInt((int)result); | |
13744 | return resultobj; | |
13745 | fail: | |
13746 | return NULL; | |
13747 | } | |
13748 | ||
13749 | ||
13750 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13751 | PyObject *resultobj; | |
13752 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13753 | bool result; | |
13754 | PyObject * obj0 = 0 ; | |
13755 | char *kwnames[] = { | |
13756 | (char *) "self", NULL | |
13757 | }; | |
13758 | ||
13759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
13760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13762 | { | |
13763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13764 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13765 | ||
13766 | wxPyEndAllowThreads(__tstate); | |
13767 | if (PyErr_Occurred()) SWIG_fail; | |
13768 | } | |
13769 | { | |
13770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13771 | } | |
13772 | return resultobj; | |
13773 | fail: | |
13774 | return NULL; | |
13775 | } | |
13776 | ||
13777 | ||
13778 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13779 | PyObject *resultobj; | |
13780 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13781 | bool result; | |
13782 | PyObject * obj0 = 0 ; | |
13783 | char *kwnames[] = { | |
13784 | (char *) "self", NULL | |
13785 | }; | |
13786 | ||
13787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
13788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13790 | { | |
13791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13792 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13793 | ||
13794 | wxPyEndAllowThreads(__tstate); | |
13795 | if (PyErr_Occurred()) SWIG_fail; | |
13796 | } | |
13797 | { | |
13798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13799 | } | |
13800 | return resultobj; | |
13801 | fail: | |
13802 | return NULL; | |
13803 | } | |
13804 | ||
13805 | ||
13806 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13807 | PyObject *resultobj; | |
13808 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13809 | bool result; | |
13810 | PyObject * obj0 = 0 ; | |
13811 | char *kwnames[] = { | |
13812 | (char *) "self", NULL | |
13813 | }; | |
13814 | ||
13815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
13816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13818 | { | |
13819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13820 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13821 | ||
13822 | wxPyEndAllowThreads(__tstate); | |
13823 | if (PyErr_Occurred()) SWIG_fail; | |
13824 | } | |
13825 | { | |
13826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13827 | } | |
13828 | return resultobj; | |
13829 | fail: | |
13830 | return NULL; | |
13831 | } | |
13832 | ||
13833 | ||
13834 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13835 | PyObject *resultobj; | |
13836 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13837 | bool result; | |
13838 | PyObject * obj0 = 0 ; | |
13839 | char *kwnames[] = { | |
13840 | (char *) "self", NULL | |
13841 | }; | |
13842 | ||
13843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
13844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13846 | { | |
13847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13848 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13849 | ||
13850 | wxPyEndAllowThreads(__tstate); | |
13851 | if (PyErr_Occurred()) SWIG_fail; | |
13852 | } | |
13853 | { | |
13854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13855 | } | |
13856 | return resultobj; | |
13857 | fail: | |
13858 | return NULL; | |
13859 | } | |
13860 | ||
13861 | ||
13862 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13863 | PyObject *resultobj; | |
13864 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13865 | bool result; | |
13866 | PyObject * obj0 = 0 ; | |
13867 | char *kwnames[] = { | |
13868 | (char *) "self", NULL | |
13869 | }; | |
13870 | ||
13871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
13872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13874 | { | |
13875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13876 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
13877 | ||
13878 | wxPyEndAllowThreads(__tstate); | |
13879 | if (PyErr_Occurred()) SWIG_fail; | |
13880 | } | |
13881 | { | |
13882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13883 | } | |
13884 | return resultobj; | |
13885 | fail: | |
13886 | return NULL; | |
13887 | } | |
13888 | ||
13889 | ||
13890 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13891 | PyObject *resultobj; | |
13892 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13893 | bool result; | |
13894 | PyObject * obj0 = 0 ; | |
13895 | char *kwnames[] = { | |
13896 | (char *) "self", NULL | |
13897 | }; | |
13898 | ||
13899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
13900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13902 | { | |
13903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13904 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13905 | ||
13906 | wxPyEndAllowThreads(__tstate); | |
13907 | if (PyErr_Occurred()) SWIG_fail; | |
13908 | } | |
13909 | { | |
13910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13911 | } | |
13912 | return resultobj; | |
13913 | fail: | |
13914 | return NULL; | |
13915 | } | |
13916 | ||
13917 | ||
13918 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13919 | PyObject *resultobj; | |
13920 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13921 | bool result; | |
13922 | PyObject * obj0 = 0 ; | |
13923 | char *kwnames[] = { | |
13924 | (char *) "self", NULL | |
13925 | }; | |
13926 | ||
13927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
13928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13930 | { | |
13931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13932 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
13933 | ||
13934 | wxPyEndAllowThreads(__tstate); | |
13935 | if (PyErr_Occurred()) SWIG_fail; | |
13936 | } | |
13937 | { | |
13938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13939 | } | |
13940 | return resultobj; | |
13941 | fail: | |
13942 | return NULL; | |
13943 | } | |
13944 | ||
13945 | ||
13946 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13947 | PyObject *resultobj; | |
13948 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13949 | bool result; | |
13950 | PyObject * obj0 = 0 ; | |
13951 | char *kwnames[] = { | |
13952 | (char *) "self", NULL | |
13953 | }; | |
13954 | ||
13955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
13956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13958 | { | |
13959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13960 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
13961 | ||
13962 | wxPyEndAllowThreads(__tstate); | |
13963 | if (PyErr_Occurred()) SWIG_fail; | |
13964 | } | |
13965 | { | |
13966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13967 | } | |
13968 | return resultobj; | |
13969 | fail: | |
13970 | return NULL; | |
13971 | } | |
13972 | ||
13973 | ||
13974 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13975 | PyObject *resultobj; | |
13976 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13977 | bool result; | |
13978 | PyObject * obj0 = 0 ; | |
13979 | char *kwnames[] = { | |
13980 | (char *) "self", NULL | |
13981 | }; | |
13982 | ||
13983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
13984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13986 | { | |
13987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13988 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
13989 | ||
13990 | wxPyEndAllowThreads(__tstate); | |
13991 | if (PyErr_Occurred()) SWIG_fail; | |
13992 | } | |
13993 | { | |
13994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13995 | } | |
13996 | return resultobj; | |
13997 | fail: | |
13998 | return NULL; | |
13999 | } | |
14000 | ||
14001 | ||
14002 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14003 | PyObject *resultobj; | |
14004 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14005 | bool result; | |
14006 | PyObject * obj0 = 0 ; | |
14007 | char *kwnames[] = { | |
14008 | (char *) "self", NULL | |
14009 | }; | |
14010 | ||
14011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
14012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14014 | { | |
14015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14016 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14017 | ||
14018 | wxPyEndAllowThreads(__tstate); | |
14019 | if (PyErr_Occurred()) SWIG_fail; | |
14020 | } | |
14021 | { | |
14022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14023 | } | |
14024 | return resultobj; | |
14025 | fail: | |
14026 | return NULL; | |
14027 | } | |
14028 | ||
14029 | ||
14030 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14031 | PyObject *resultobj; | |
14032 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14033 | bool result; | |
14034 | PyObject * obj0 = 0 ; | |
14035 | char *kwnames[] = { | |
14036 | (char *) "self", NULL | |
14037 | }; | |
14038 | ||
14039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
14040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14042 | { | |
14043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14044 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14045 | ||
14046 | wxPyEndAllowThreads(__tstate); | |
14047 | if (PyErr_Occurred()) SWIG_fail; | |
14048 | } | |
14049 | { | |
14050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14051 | } | |
14052 | return resultobj; | |
14053 | fail: | |
14054 | return NULL; | |
14055 | } | |
14056 | ||
14057 | ||
14058 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14059 | PyObject *resultobj; | |
14060 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14061 | bool result; | |
14062 | PyObject * obj0 = 0 ; | |
14063 | char *kwnames[] = { | |
14064 | (char *) "self", NULL | |
14065 | }; | |
14066 | ||
14067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
14068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14070 | { | |
14071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14072 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14073 | ||
14074 | wxPyEndAllowThreads(__tstate); | |
14075 | if (PyErr_Occurred()) SWIG_fail; | |
14076 | } | |
14077 | { | |
14078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14079 | } | |
14080 | return resultobj; | |
14081 | fail: | |
14082 | return NULL; | |
14083 | } | |
14084 | ||
14085 | ||
14086 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14087 | PyObject *resultobj; | |
14088 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14089 | bool result; | |
14090 | PyObject * obj0 = 0 ; | |
14091 | char *kwnames[] = { | |
14092 | (char *) "self", NULL | |
14093 | }; | |
14094 | ||
14095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
14096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14098 | { | |
14099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14100 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14101 | ||
14102 | wxPyEndAllowThreads(__tstate); | |
14103 | if (PyErr_Occurred()) SWIG_fail; | |
14104 | } | |
14105 | { | |
14106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14107 | } | |
14108 | return resultobj; | |
14109 | fail: | |
14110 | return NULL; | |
14111 | } | |
14112 | ||
14113 | ||
14114 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14115 | PyObject *resultobj; | |
14116 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14117 | bool result; | |
14118 | PyObject * obj0 = 0 ; | |
14119 | char *kwnames[] = { | |
14120 | (char *) "self", NULL | |
14121 | }; | |
14122 | ||
14123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
14124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14126 | { | |
14127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14128 | result = (bool)(arg1)->LeftIsDown(); | |
14129 | ||
14130 | wxPyEndAllowThreads(__tstate); | |
14131 | if (PyErr_Occurred()) SWIG_fail; | |
14132 | } | |
14133 | { | |
14134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14135 | } | |
14136 | return resultobj; | |
14137 | fail: | |
14138 | return NULL; | |
14139 | } | |
14140 | ||
14141 | ||
14142 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14143 | PyObject *resultobj; | |
14144 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14145 | bool result; | |
14146 | PyObject * obj0 = 0 ; | |
14147 | char *kwnames[] = { | |
14148 | (char *) "self", NULL | |
14149 | }; | |
14150 | ||
14151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
14152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14154 | { | |
14155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14156 | result = (bool)(arg1)->MiddleIsDown(); | |
14157 | ||
14158 | wxPyEndAllowThreads(__tstate); | |
14159 | if (PyErr_Occurred()) SWIG_fail; | |
14160 | } | |
14161 | { | |
14162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14163 | } | |
14164 | return resultobj; | |
14165 | fail: | |
14166 | return NULL; | |
14167 | } | |
14168 | ||
14169 | ||
14170 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14171 | PyObject *resultobj; | |
14172 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14173 | bool result; | |
14174 | PyObject * obj0 = 0 ; | |
14175 | char *kwnames[] = { | |
14176 | (char *) "self", NULL | |
14177 | }; | |
14178 | ||
14179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
14180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14182 | { | |
14183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14184 | result = (bool)(arg1)->RightIsDown(); | |
14185 | ||
14186 | wxPyEndAllowThreads(__tstate); | |
14187 | if (PyErr_Occurred()) SWIG_fail; | |
14188 | } | |
14189 | { | |
14190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14191 | } | |
14192 | return resultobj; | |
14193 | fail: | |
14194 | return NULL; | |
14195 | } | |
14196 | ||
14197 | ||
14198 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14199 | PyObject *resultobj; | |
14200 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14201 | bool result; | |
14202 | PyObject * obj0 = 0 ; | |
14203 | char *kwnames[] = { | |
14204 | (char *) "self", NULL | |
14205 | }; | |
14206 | ||
14207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
14208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14210 | { | |
14211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14212 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14213 | ||
14214 | wxPyEndAllowThreads(__tstate); | |
14215 | if (PyErr_Occurred()) SWIG_fail; | |
14216 | } | |
14217 | { | |
14218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14219 | } | |
14220 | return resultobj; | |
14221 | fail: | |
14222 | return NULL; | |
14223 | } | |
14224 | ||
14225 | ||
14226 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14227 | PyObject *resultobj; | |
14228 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14229 | bool result; | |
14230 | PyObject * obj0 = 0 ; | |
14231 | char *kwnames[] = { | |
14232 | (char *) "self", NULL | |
14233 | }; | |
14234 | ||
14235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
14236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14238 | { | |
14239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14240 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14241 | ||
14242 | wxPyEndAllowThreads(__tstate); | |
14243 | if (PyErr_Occurred()) SWIG_fail; | |
14244 | } | |
14245 | { | |
14246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14247 | } | |
14248 | return resultobj; | |
14249 | fail: | |
14250 | return NULL; | |
14251 | } | |
14252 | ||
14253 | ||
14254 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14255 | PyObject *resultobj; | |
14256 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14257 | bool result; | |
14258 | PyObject * obj0 = 0 ; | |
14259 | char *kwnames[] = { | |
14260 | (char *) "self", NULL | |
14261 | }; | |
14262 | ||
14263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
14264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14266 | { | |
14267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14268 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14269 | ||
14270 | wxPyEndAllowThreads(__tstate); | |
14271 | if (PyErr_Occurred()) SWIG_fail; | |
14272 | } | |
14273 | { | |
14274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14275 | } | |
14276 | return resultobj; | |
14277 | fail: | |
14278 | return NULL; | |
14279 | } | |
14280 | ||
14281 | ||
14282 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14283 | PyObject *resultobj; | |
14284 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14285 | bool result; | |
14286 | PyObject * obj0 = 0 ; | |
14287 | char *kwnames[] = { | |
14288 | (char *) "self", NULL | |
14289 | }; | |
14290 | ||
14291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
14292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14294 | { | |
14295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14296 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14297 | ||
14298 | wxPyEndAllowThreads(__tstate); | |
14299 | if (PyErr_Occurred()) SWIG_fail; | |
14300 | } | |
14301 | { | |
14302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14303 | } | |
14304 | return resultobj; | |
14305 | fail: | |
14306 | return NULL; | |
14307 | } | |
14308 | ||
14309 | ||
14310 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14311 | PyObject *resultobj; | |
14312 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14313 | wxPoint result; | |
14314 | PyObject * obj0 = 0 ; | |
14315 | char *kwnames[] = { | |
14316 | (char *) "self", NULL | |
14317 | }; | |
14318 | ||
14319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14322 | { | |
14323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14324 | result = (arg1)->GetPosition(); | |
14325 | ||
14326 | wxPyEndAllowThreads(__tstate); | |
14327 | if (PyErr_Occurred()) SWIG_fail; | |
14328 | } | |
14329 | { | |
14330 | wxPoint * resultptr; | |
14331 | resultptr = new wxPoint((wxPoint &) result); | |
14332 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14333 | } | |
14334 | return resultobj; | |
14335 | fail: | |
14336 | return NULL; | |
14337 | } | |
14338 | ||
14339 | ||
14340 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14341 | PyObject *resultobj; | |
14342 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14343 | long *arg2 = (long *) 0 ; | |
14344 | long *arg3 = (long *) 0 ; | |
14345 | long temp2 ; | |
14346 | long temp3 ; | |
14347 | PyObject * obj0 = 0 ; | |
14348 | char *kwnames[] = { | |
14349 | (char *) "self", NULL | |
14350 | }; | |
14351 | ||
14352 | arg2 = &temp2; | |
14353 | arg3 = &temp3; | |
14354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
14355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14357 | { | |
14358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14359 | (arg1)->GetPosition(arg2,arg3); | |
14360 | ||
14361 | wxPyEndAllowThreads(__tstate); | |
14362 | if (PyErr_Occurred()) SWIG_fail; | |
14363 | } | |
14364 | Py_INCREF(Py_None); resultobj = Py_None; | |
14365 | { | |
14366 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14367 | resultobj = t_output_helper(resultobj,o); | |
14368 | } | |
14369 | { | |
14370 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14371 | resultobj = t_output_helper(resultobj,o); | |
14372 | } | |
14373 | return resultobj; | |
14374 | fail: | |
14375 | return NULL; | |
14376 | } | |
14377 | ||
14378 | ||
14379 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14380 | PyObject *resultobj; | |
14381 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14382 | wxDC *arg2 = 0 ; | |
14383 | wxPoint result; | |
14384 | PyObject * obj0 = 0 ; | |
14385 | PyObject * obj1 = 0 ; | |
14386 | char *kwnames[] = { | |
14387 | (char *) "self",(char *) "dc", NULL | |
14388 | }; | |
14389 | ||
14390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
14391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14393 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14394 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14395 | SWIG_fail; | |
14396 | if (arg2 == NULL) { | |
14397 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14398 | SWIG_fail; | |
14399 | } | |
14400 | { | |
14401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14402 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14403 | ||
14404 | wxPyEndAllowThreads(__tstate); | |
14405 | if (PyErr_Occurred()) SWIG_fail; | |
14406 | } | |
14407 | { | |
14408 | wxPoint * resultptr; | |
14409 | resultptr = new wxPoint((wxPoint &) result); | |
14410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14411 | } | |
14412 | return resultobj; | |
14413 | fail: | |
14414 | return NULL; | |
14415 | } | |
14416 | ||
14417 | ||
14418 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14419 | PyObject *resultobj; | |
14420 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14421 | int result; | |
14422 | PyObject * obj0 = 0 ; | |
14423 | char *kwnames[] = { | |
14424 | (char *) "self", NULL | |
14425 | }; | |
14426 | ||
14427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
14428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14430 | { | |
14431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14432 | result = (int)((wxMouseEvent const *)arg1)->GetX(); | |
14433 | ||
14434 | wxPyEndAllowThreads(__tstate); | |
14435 | if (PyErr_Occurred()) SWIG_fail; | |
14436 | } | |
14437 | resultobj = SWIG_FromInt((int)result); | |
14438 | return resultobj; | |
14439 | fail: | |
14440 | return NULL; | |
14441 | } | |
14442 | ||
14443 | ||
14444 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14445 | PyObject *resultobj; | |
14446 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14447 | int result; | |
14448 | PyObject * obj0 = 0 ; | |
14449 | char *kwnames[] = { | |
14450 | (char *) "self", NULL | |
14451 | }; | |
14452 | ||
14453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
14454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14456 | { | |
14457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14458 | result = (int)((wxMouseEvent const *)arg1)->GetY(); | |
14459 | ||
14460 | wxPyEndAllowThreads(__tstate); | |
14461 | if (PyErr_Occurred()) SWIG_fail; | |
14462 | } | |
14463 | resultobj = SWIG_FromInt((int)result); | |
14464 | return resultobj; | |
14465 | fail: | |
14466 | return NULL; | |
14467 | } | |
14468 | ||
14469 | ||
14470 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14471 | PyObject *resultobj; | |
14472 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14473 | int result; | |
14474 | PyObject * obj0 = 0 ; | |
14475 | char *kwnames[] = { | |
14476 | (char *) "self", NULL | |
14477 | }; | |
14478 | ||
14479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
14480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14482 | { | |
14483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14484 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14485 | ||
14486 | wxPyEndAllowThreads(__tstate); | |
14487 | if (PyErr_Occurred()) SWIG_fail; | |
14488 | } | |
14489 | resultobj = SWIG_FromInt((int)result); | |
14490 | return resultobj; | |
14491 | fail: | |
14492 | return NULL; | |
14493 | } | |
14494 | ||
14495 | ||
14496 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14497 | PyObject *resultobj; | |
14498 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14499 | int result; | |
14500 | PyObject * obj0 = 0 ; | |
14501 | char *kwnames[] = { | |
14502 | (char *) "self", NULL | |
14503 | }; | |
14504 | ||
14505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
14506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14508 | { | |
14509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14510 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14511 | ||
14512 | wxPyEndAllowThreads(__tstate); | |
14513 | if (PyErr_Occurred()) SWIG_fail; | |
14514 | } | |
14515 | resultobj = SWIG_FromInt((int)result); | |
14516 | return resultobj; | |
14517 | fail: | |
14518 | return NULL; | |
14519 | } | |
14520 | ||
14521 | ||
14522 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14523 | PyObject *resultobj; | |
14524 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14525 | int result; | |
14526 | PyObject * obj0 = 0 ; | |
14527 | char *kwnames[] = { | |
14528 | (char *) "self", NULL | |
14529 | }; | |
14530 | ||
14531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
14532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14534 | { | |
14535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14536 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14537 | ||
14538 | wxPyEndAllowThreads(__tstate); | |
14539 | if (PyErr_Occurred()) SWIG_fail; | |
14540 | } | |
14541 | resultobj = SWIG_FromInt((int)result); | |
14542 | return resultobj; | |
14543 | fail: | |
14544 | return NULL; | |
14545 | } | |
14546 | ||
14547 | ||
14548 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14549 | PyObject *resultobj; | |
14550 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14551 | bool result; | |
14552 | PyObject * obj0 = 0 ; | |
14553 | char *kwnames[] = { | |
14554 | (char *) "self", NULL | |
14555 | }; | |
14556 | ||
14557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
14558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14560 | { | |
14561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14562 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14563 | ||
14564 | wxPyEndAllowThreads(__tstate); | |
14565 | if (PyErr_Occurred()) SWIG_fail; | |
14566 | } | |
14567 | { | |
14568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14569 | } | |
14570 | return resultobj; | |
14571 | fail: | |
14572 | return NULL; | |
14573 | } | |
14574 | ||
14575 | ||
14576 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14577 | PyObject *resultobj; | |
14578 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14579 | int arg2 ; | |
14580 | PyObject * obj0 = 0 ; | |
14581 | PyObject * obj1 = 0 ; | |
14582 | char *kwnames[] = { | |
14583 | (char *) "self",(char *) "m_x", NULL | |
14584 | }; | |
14585 | ||
14586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
14587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14589 | arg2 = (int) SWIG_AsInt(obj1); | |
14590 | if (PyErr_Occurred()) SWIG_fail; | |
14591 | if (arg1) (arg1)->m_x = arg2; | |
14592 | ||
14593 | Py_INCREF(Py_None); resultobj = Py_None; | |
14594 | return resultobj; | |
14595 | fail: | |
14596 | return NULL; | |
14597 | } | |
14598 | ||
14599 | ||
14600 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14601 | PyObject *resultobj; | |
14602 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14603 | int result; | |
14604 | PyObject * obj0 = 0 ; | |
14605 | char *kwnames[] = { | |
14606 | (char *) "self", NULL | |
14607 | }; | |
14608 | ||
14609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
14610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14612 | result = (int) ((arg1)->m_x); | |
14613 | ||
14614 | resultobj = SWIG_FromInt((int)result); | |
14615 | return resultobj; | |
14616 | fail: | |
14617 | return NULL; | |
14618 | } | |
14619 | ||
14620 | ||
14621 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14622 | PyObject *resultobj; | |
14623 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14624 | int arg2 ; | |
14625 | PyObject * obj0 = 0 ; | |
14626 | PyObject * obj1 = 0 ; | |
14627 | char *kwnames[] = { | |
14628 | (char *) "self",(char *) "m_y", NULL | |
14629 | }; | |
14630 | ||
14631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
14632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14634 | arg2 = (int) SWIG_AsInt(obj1); | |
14635 | if (PyErr_Occurred()) SWIG_fail; | |
14636 | if (arg1) (arg1)->m_y = arg2; | |
14637 | ||
14638 | Py_INCREF(Py_None); resultobj = Py_None; | |
14639 | return resultobj; | |
14640 | fail: | |
14641 | return NULL; | |
14642 | } | |
14643 | ||
14644 | ||
14645 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14646 | PyObject *resultobj; | |
14647 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14648 | int result; | |
14649 | PyObject * obj0 = 0 ; | |
14650 | char *kwnames[] = { | |
14651 | (char *) "self", NULL | |
14652 | }; | |
14653 | ||
14654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
14655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14657 | result = (int) ((arg1)->m_y); | |
14658 | ||
14659 | resultobj = SWIG_FromInt((int)result); | |
14660 | return resultobj; | |
14661 | fail: | |
14662 | return NULL; | |
14663 | } | |
14664 | ||
14665 | ||
14666 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14667 | PyObject *resultobj; | |
14668 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14669 | bool arg2 ; | |
14670 | PyObject * obj0 = 0 ; | |
14671 | PyObject * obj1 = 0 ; | |
14672 | char *kwnames[] = { | |
14673 | (char *) "self",(char *) "m_leftDown", NULL | |
14674 | }; | |
14675 | ||
14676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14679 | arg2 = (bool) SWIG_AsBool(obj1); | |
14680 | if (PyErr_Occurred()) SWIG_fail; | |
14681 | if (arg1) (arg1)->m_leftDown = arg2; | |
14682 | ||
14683 | Py_INCREF(Py_None); resultobj = Py_None; | |
14684 | return resultobj; | |
14685 | fail: | |
14686 | return NULL; | |
14687 | } | |
14688 | ||
14689 | ||
14690 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14691 | PyObject *resultobj; | |
14692 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14693 | bool result; | |
14694 | PyObject * obj0 = 0 ; | |
14695 | char *kwnames[] = { | |
14696 | (char *) "self", NULL | |
14697 | }; | |
14698 | ||
14699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
14700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14702 | result = (bool) ((arg1)->m_leftDown); | |
14703 | ||
14704 | { | |
14705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14706 | } | |
14707 | return resultobj; | |
14708 | fail: | |
14709 | return NULL; | |
14710 | } | |
14711 | ||
14712 | ||
14713 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14714 | PyObject *resultobj; | |
14715 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14716 | bool arg2 ; | |
14717 | PyObject * obj0 = 0 ; | |
14718 | PyObject * obj1 = 0 ; | |
14719 | char *kwnames[] = { | |
14720 | (char *) "self",(char *) "m_middleDown", NULL | |
14721 | }; | |
14722 | ||
14723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14726 | arg2 = (bool) SWIG_AsBool(obj1); | |
14727 | if (PyErr_Occurred()) SWIG_fail; | |
14728 | if (arg1) (arg1)->m_middleDown = arg2; | |
14729 | ||
14730 | Py_INCREF(Py_None); resultobj = Py_None; | |
14731 | return resultobj; | |
14732 | fail: | |
14733 | return NULL; | |
14734 | } | |
14735 | ||
14736 | ||
14737 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14738 | PyObject *resultobj; | |
14739 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14740 | bool result; | |
14741 | PyObject * obj0 = 0 ; | |
14742 | char *kwnames[] = { | |
14743 | (char *) "self", NULL | |
14744 | }; | |
14745 | ||
14746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
14747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14749 | result = (bool) ((arg1)->m_middleDown); | |
14750 | ||
14751 | { | |
14752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14753 | } | |
14754 | return resultobj; | |
14755 | fail: | |
14756 | return NULL; | |
14757 | } | |
14758 | ||
14759 | ||
14760 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14761 | PyObject *resultobj; | |
14762 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14763 | bool arg2 ; | |
14764 | PyObject * obj0 = 0 ; | |
14765 | PyObject * obj1 = 0 ; | |
14766 | char *kwnames[] = { | |
14767 | (char *) "self",(char *) "m_rightDown", NULL | |
14768 | }; | |
14769 | ||
14770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14773 | arg2 = (bool) SWIG_AsBool(obj1); | |
14774 | if (PyErr_Occurred()) SWIG_fail; | |
14775 | if (arg1) (arg1)->m_rightDown = arg2; | |
14776 | ||
14777 | Py_INCREF(Py_None); resultobj = Py_None; | |
14778 | return resultobj; | |
14779 | fail: | |
14780 | return NULL; | |
14781 | } | |
14782 | ||
14783 | ||
14784 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14785 | PyObject *resultobj; | |
14786 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14787 | bool result; | |
14788 | PyObject * obj0 = 0 ; | |
14789 | char *kwnames[] = { | |
14790 | (char *) "self", NULL | |
14791 | }; | |
14792 | ||
14793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
14794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14796 | result = (bool) ((arg1)->m_rightDown); | |
14797 | ||
14798 | { | |
14799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14800 | } | |
14801 | return resultobj; | |
14802 | fail: | |
14803 | return NULL; | |
14804 | } | |
14805 | ||
14806 | ||
14807 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14808 | PyObject *resultobj; | |
14809 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14810 | bool arg2 ; | |
14811 | PyObject * obj0 = 0 ; | |
14812 | PyObject * obj1 = 0 ; | |
14813 | char *kwnames[] = { | |
14814 | (char *) "self",(char *) "m_controlDown", NULL | |
14815 | }; | |
14816 | ||
14817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14820 | arg2 = (bool) SWIG_AsBool(obj1); | |
14821 | if (PyErr_Occurred()) SWIG_fail; | |
14822 | if (arg1) (arg1)->m_controlDown = arg2; | |
14823 | ||
14824 | Py_INCREF(Py_None); resultobj = Py_None; | |
14825 | return resultobj; | |
14826 | fail: | |
14827 | return NULL; | |
14828 | } | |
14829 | ||
14830 | ||
14831 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14832 | PyObject *resultobj; | |
14833 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14834 | bool result; | |
14835 | PyObject * obj0 = 0 ; | |
14836 | char *kwnames[] = { | |
14837 | (char *) "self", NULL | |
14838 | }; | |
14839 | ||
14840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
14841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14843 | result = (bool) ((arg1)->m_controlDown); | |
14844 | ||
14845 | { | |
14846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14847 | } | |
14848 | return resultobj; | |
14849 | fail: | |
14850 | return NULL; | |
14851 | } | |
14852 | ||
14853 | ||
14854 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14855 | PyObject *resultobj; | |
14856 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14857 | bool arg2 ; | |
14858 | PyObject * obj0 = 0 ; | |
14859 | PyObject * obj1 = 0 ; | |
14860 | char *kwnames[] = { | |
14861 | (char *) "self",(char *) "m_shiftDown", NULL | |
14862 | }; | |
14863 | ||
14864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14867 | arg2 = (bool) SWIG_AsBool(obj1); | |
14868 | if (PyErr_Occurred()) SWIG_fail; | |
14869 | if (arg1) (arg1)->m_shiftDown = arg2; | |
14870 | ||
14871 | Py_INCREF(Py_None); resultobj = Py_None; | |
14872 | return resultobj; | |
14873 | fail: | |
14874 | return NULL; | |
14875 | } | |
14876 | ||
14877 | ||
14878 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14879 | PyObject *resultobj; | |
14880 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14881 | bool result; | |
14882 | PyObject * obj0 = 0 ; | |
14883 | char *kwnames[] = { | |
14884 | (char *) "self", NULL | |
14885 | }; | |
14886 | ||
14887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
14888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14890 | result = (bool) ((arg1)->m_shiftDown); | |
14891 | ||
14892 | { | |
14893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14894 | } | |
14895 | return resultobj; | |
14896 | fail: | |
14897 | return NULL; | |
14898 | } | |
14899 | ||
14900 | ||
14901 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14902 | PyObject *resultobj; | |
14903 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14904 | bool arg2 ; | |
14905 | PyObject * obj0 = 0 ; | |
14906 | PyObject * obj1 = 0 ; | |
14907 | char *kwnames[] = { | |
14908 | (char *) "self",(char *) "m_altDown", NULL | |
14909 | }; | |
14910 | ||
14911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14914 | arg2 = (bool) SWIG_AsBool(obj1); | |
14915 | if (PyErr_Occurred()) SWIG_fail; | |
14916 | if (arg1) (arg1)->m_altDown = arg2; | |
14917 | ||
14918 | Py_INCREF(Py_None); resultobj = Py_None; | |
14919 | return resultobj; | |
14920 | fail: | |
14921 | return NULL; | |
14922 | } | |
14923 | ||
14924 | ||
14925 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14926 | PyObject *resultobj; | |
14927 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14928 | bool result; | |
14929 | PyObject * obj0 = 0 ; | |
14930 | char *kwnames[] = { | |
14931 | (char *) "self", NULL | |
14932 | }; | |
14933 | ||
14934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
14935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14937 | result = (bool) ((arg1)->m_altDown); | |
14938 | ||
14939 | { | |
14940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14941 | } | |
14942 | return resultobj; | |
14943 | fail: | |
14944 | return NULL; | |
14945 | } | |
14946 | ||
14947 | ||
14948 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14949 | PyObject *resultobj; | |
14950 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14951 | bool arg2 ; | |
14952 | PyObject * obj0 = 0 ; | |
14953 | PyObject * obj1 = 0 ; | |
14954 | char *kwnames[] = { | |
14955 | (char *) "self",(char *) "m_metaDown", NULL | |
14956 | }; | |
14957 | ||
14958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14961 | arg2 = (bool) SWIG_AsBool(obj1); | |
14962 | if (PyErr_Occurred()) SWIG_fail; | |
14963 | if (arg1) (arg1)->m_metaDown = arg2; | |
14964 | ||
14965 | Py_INCREF(Py_None); resultobj = Py_None; | |
14966 | return resultobj; | |
14967 | fail: | |
14968 | return NULL; | |
14969 | } | |
14970 | ||
14971 | ||
14972 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14973 | PyObject *resultobj; | |
14974 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14975 | bool result; | |
14976 | PyObject * obj0 = 0 ; | |
14977 | char *kwnames[] = { | |
14978 | (char *) "self", NULL | |
14979 | }; | |
14980 | ||
14981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
14982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14984 | result = (bool) ((arg1)->m_metaDown); | |
14985 | ||
14986 | { | |
14987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14988 | } | |
14989 | return resultobj; | |
14990 | fail: | |
14991 | return NULL; | |
14992 | } | |
14993 | ||
14994 | ||
14995 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14996 | PyObject *resultobj; | |
14997 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14998 | int arg2 ; | |
14999 | PyObject * obj0 = 0 ; | |
15000 | PyObject * obj1 = 0 ; | |
15001 | char *kwnames[] = { | |
15002 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15003 | }; | |
15004 | ||
15005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; | |
15006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15008 | arg2 = (int) SWIG_AsInt(obj1); | |
15009 | if (PyErr_Occurred()) SWIG_fail; | |
15010 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
15011 | ||
15012 | Py_INCREF(Py_None); resultobj = Py_None; | |
15013 | return resultobj; | |
15014 | fail: | |
15015 | return NULL; | |
15016 | } | |
15017 | ||
15018 | ||
15019 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15020 | PyObject *resultobj; | |
15021 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15022 | int result; | |
15023 | PyObject * obj0 = 0 ; | |
15024 | char *kwnames[] = { | |
15025 | (char *) "self", NULL | |
15026 | }; | |
15027 | ||
15028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15031 | result = (int) ((arg1)->m_wheelRotation); | |
15032 | ||
15033 | resultobj = SWIG_FromInt((int)result); | |
15034 | return resultobj; | |
15035 | fail: | |
15036 | return NULL; | |
15037 | } | |
15038 | ||
15039 | ||
15040 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15041 | PyObject *resultobj; | |
15042 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15043 | int arg2 ; | |
15044 | PyObject * obj0 = 0 ; | |
15045 | PyObject * obj1 = 0 ; | |
15046 | char *kwnames[] = { | |
15047 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15048 | }; | |
15049 | ||
15050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; | |
15051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15053 | arg2 = (int) SWIG_AsInt(obj1); | |
15054 | if (PyErr_Occurred()) SWIG_fail; | |
15055 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
15056 | ||
15057 | Py_INCREF(Py_None); resultobj = Py_None; | |
15058 | return resultobj; | |
15059 | fail: | |
15060 | return NULL; | |
15061 | } | |
15062 | ||
15063 | ||
15064 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15065 | PyObject *resultobj; | |
15066 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15067 | int result; | |
15068 | PyObject * obj0 = 0 ; | |
15069 | char *kwnames[] = { | |
15070 | (char *) "self", NULL | |
15071 | }; | |
15072 | ||
15073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15076 | result = (int) ((arg1)->m_wheelDelta); | |
15077 | ||
15078 | resultobj = SWIG_FromInt((int)result); | |
15079 | return resultobj; | |
15080 | fail: | |
15081 | return NULL; | |
15082 | } | |
15083 | ||
15084 | ||
15085 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15086 | PyObject *resultobj; | |
15087 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15088 | int arg2 ; | |
15089 | PyObject * obj0 = 0 ; | |
15090 | PyObject * obj1 = 0 ; | |
15091 | char *kwnames[] = { | |
15092 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15093 | }; | |
15094 | ||
15095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; | |
15096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15098 | arg2 = (int) SWIG_AsInt(obj1); | |
15099 | if (PyErr_Occurred()) SWIG_fail; | |
15100 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
15101 | ||
15102 | Py_INCREF(Py_None); resultobj = Py_None; | |
15103 | return resultobj; | |
15104 | fail: | |
15105 | return NULL; | |
15106 | } | |
15107 | ||
15108 | ||
15109 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15110 | PyObject *resultobj; | |
15111 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15112 | int result; | |
15113 | PyObject * obj0 = 0 ; | |
15114 | char *kwnames[] = { | |
15115 | (char *) "self", NULL | |
15116 | }; | |
15117 | ||
15118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15121 | result = (int) ((arg1)->m_linesPerAction); | |
15122 | ||
15123 | resultobj = SWIG_FromInt((int)result); | |
15124 | return resultobj; | |
15125 | fail: | |
15126 | return NULL; | |
15127 | } | |
15128 | ||
15129 | ||
15130 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
15131 | PyObject *obj; | |
15132 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15133 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15134 | Py_INCREF(obj); | |
15135 | return Py_BuildValue((char *)""); | |
15136 | } | |
15137 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15138 | PyObject *resultobj; | |
15139 | int arg1 = (int) 0 ; | |
15140 | int arg2 = (int) 0 ; | |
15141 | wxSetCursorEvent *result; | |
15142 | PyObject * obj0 = 0 ; | |
15143 | PyObject * obj1 = 0 ; | |
15144 | char *kwnames[] = { | |
15145 | (char *) "x",(char *) "y", NULL | |
15146 | }; | |
15147 | ||
15148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; | |
15149 | if (obj0) { | |
15150 | arg1 = (int) SWIG_AsInt(obj0); | |
15151 | if (PyErr_Occurred()) SWIG_fail; | |
15152 | } | |
15153 | if (obj1) { | |
15154 | arg2 = (int) SWIG_AsInt(obj1); | |
15155 | if (PyErr_Occurred()) SWIG_fail; | |
15156 | } | |
15157 | { | |
15158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15159 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15160 | ||
15161 | wxPyEndAllowThreads(__tstate); | |
15162 | if (PyErr_Occurred()) SWIG_fail; | |
15163 | } | |
15164 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); | |
15165 | return resultobj; | |
15166 | fail: | |
15167 | return NULL; | |
15168 | } | |
15169 | ||
15170 | ||
15171 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15172 | PyObject *resultobj; | |
15173 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15174 | int result; | |
15175 | PyObject * obj0 = 0 ; | |
15176 | char *kwnames[] = { | |
15177 | (char *) "self", NULL | |
15178 | }; | |
15179 | ||
15180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15183 | { | |
15184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15185 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); | |
15186 | ||
15187 | wxPyEndAllowThreads(__tstate); | |
15188 | if (PyErr_Occurred()) SWIG_fail; | |
15189 | } | |
15190 | resultobj = SWIG_FromInt((int)result); | |
15191 | return resultobj; | |
15192 | fail: | |
15193 | return NULL; | |
15194 | } | |
15195 | ||
15196 | ||
15197 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15198 | PyObject *resultobj; | |
15199 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15200 | int result; | |
15201 | PyObject * obj0 = 0 ; | |
15202 | char *kwnames[] = { | |
15203 | (char *) "self", NULL | |
15204 | }; | |
15205 | ||
15206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15209 | { | |
15210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15211 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); | |
15212 | ||
15213 | wxPyEndAllowThreads(__tstate); | |
15214 | if (PyErr_Occurred()) SWIG_fail; | |
15215 | } | |
15216 | resultobj = SWIG_FromInt((int)result); | |
15217 | return resultobj; | |
15218 | fail: | |
15219 | return NULL; | |
15220 | } | |
15221 | ||
15222 | ||
15223 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15224 | PyObject *resultobj; | |
15225 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15226 | wxCursor *arg2 = 0 ; | |
15227 | PyObject * obj0 = 0 ; | |
15228 | PyObject * obj1 = 0 ; | |
15229 | char *kwnames[] = { | |
15230 | (char *) "self",(char *) "cursor", NULL | |
15231 | }; | |
15232 | ||
15233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15236 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15237 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15238 | SWIG_fail; | |
15239 | if (arg2 == NULL) { | |
15240 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15241 | SWIG_fail; | |
15242 | } | |
15243 | { | |
15244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15245 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15246 | ||
15247 | wxPyEndAllowThreads(__tstate); | |
15248 | if (PyErr_Occurred()) SWIG_fail; | |
15249 | } | |
15250 | Py_INCREF(Py_None); resultobj = Py_None; | |
15251 | return resultobj; | |
15252 | fail: | |
15253 | return NULL; | |
15254 | } | |
15255 | ||
15256 | ||
15257 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15258 | PyObject *resultobj; | |
15259 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15260 | wxCursor *result; | |
15261 | PyObject * obj0 = 0 ; | |
15262 | char *kwnames[] = { | |
15263 | (char *) "self", NULL | |
15264 | }; | |
15265 | ||
15266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15269 | { | |
15270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15271 | { | |
15272 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15273 | result = (wxCursor *) &_result_ref; | |
15274 | } | |
15275 | ||
15276 | wxPyEndAllowThreads(__tstate); | |
15277 | if (PyErr_Occurred()) SWIG_fail; | |
15278 | } | |
15279 | { | |
15280 | wxCursor* resultptr = new wxCursor(*result); | |
15281 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15282 | } | |
15283 | return resultobj; | |
15284 | fail: | |
15285 | return NULL; | |
15286 | } | |
15287 | ||
15288 | ||
15289 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15290 | PyObject *resultobj; | |
15291 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15292 | bool result; | |
15293 | PyObject * obj0 = 0 ; | |
15294 | char *kwnames[] = { | |
15295 | (char *) "self", NULL | |
15296 | }; | |
15297 | ||
15298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15301 | { | |
15302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15303 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15304 | ||
15305 | wxPyEndAllowThreads(__tstate); | |
15306 | if (PyErr_Occurred()) SWIG_fail; | |
15307 | } | |
15308 | { | |
15309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15310 | } | |
15311 | return resultobj; | |
15312 | fail: | |
15313 | return NULL; | |
15314 | } | |
15315 | ||
15316 | ||
15317 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
15318 | PyObject *obj; | |
15319 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15320 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15321 | Py_INCREF(obj); | |
15322 | return Py_BuildValue((char *)""); | |
15323 | } | |
15324 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15325 | PyObject *resultobj; | |
15326 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15327 | wxKeyEvent *result; | |
15328 | PyObject * obj0 = 0 ; | |
15329 | char *kwnames[] = { | |
15330 | (char *) "keyType", NULL | |
15331 | }; | |
15332 | ||
15333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; | |
15334 | if (obj0) { | |
15335 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
15336 | if (PyErr_Occurred()) SWIG_fail; | |
15337 | } | |
15338 | { | |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15341 | ||
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
15345 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
15352 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15353 | PyObject *resultobj; | |
15354 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15355 | bool result; | |
15356 | PyObject * obj0 = 0 ; | |
15357 | char *kwnames[] = { | |
15358 | (char *) "self", NULL | |
15359 | }; | |
15360 | ||
15361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15364 | { | |
15365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15366 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15367 | ||
15368 | wxPyEndAllowThreads(__tstate); | |
15369 | if (PyErr_Occurred()) SWIG_fail; | |
15370 | } | |
15371 | { | |
15372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15373 | } | |
15374 | return resultobj; | |
15375 | fail: | |
15376 | return NULL; | |
15377 | } | |
15378 | ||
15379 | ||
15380 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15381 | PyObject *resultobj; | |
15382 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15383 | bool result; | |
15384 | PyObject * obj0 = 0 ; | |
15385 | char *kwnames[] = { | |
15386 | (char *) "self", NULL | |
15387 | }; | |
15388 | ||
15389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15392 | { | |
15393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15394 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15395 | ||
15396 | wxPyEndAllowThreads(__tstate); | |
15397 | if (PyErr_Occurred()) SWIG_fail; | |
15398 | } | |
15399 | { | |
15400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15401 | } | |
15402 | return resultobj; | |
15403 | fail: | |
15404 | return NULL; | |
15405 | } | |
15406 | ||
15407 | ||
15408 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15409 | PyObject *resultobj; | |
15410 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15411 | bool result; | |
15412 | PyObject * obj0 = 0 ; | |
15413 | char *kwnames[] = { | |
15414 | (char *) "self", NULL | |
15415 | }; | |
15416 | ||
15417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
15418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15420 | { | |
15421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15422 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15423 | ||
15424 | wxPyEndAllowThreads(__tstate); | |
15425 | if (PyErr_Occurred()) SWIG_fail; | |
15426 | } | |
15427 | { | |
15428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15429 | } | |
15430 | return resultobj; | |
15431 | fail: | |
15432 | return NULL; | |
15433 | } | |
15434 | ||
15435 | ||
15436 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15437 | PyObject *resultobj; | |
15438 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15439 | bool result; | |
15440 | PyObject * obj0 = 0 ; | |
15441 | char *kwnames[] = { | |
15442 | (char *) "self", NULL | |
15443 | }; | |
15444 | ||
15445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15448 | { | |
15449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15450 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15451 | ||
15452 | wxPyEndAllowThreads(__tstate); | |
15453 | if (PyErr_Occurred()) SWIG_fail; | |
15454 | } | |
15455 | { | |
15456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15457 | } | |
15458 | return resultobj; | |
15459 | fail: | |
15460 | return NULL; | |
15461 | } | |
15462 | ||
15463 | ||
15464 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15465 | PyObject *resultobj; | |
15466 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15467 | bool result; | |
15468 | PyObject * obj0 = 0 ; | |
15469 | char *kwnames[] = { | |
15470 | (char *) "self", NULL | |
15471 | }; | |
15472 | ||
15473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
15474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15476 | { | |
15477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15478 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15479 | ||
15480 | wxPyEndAllowThreads(__tstate); | |
15481 | if (PyErr_Occurred()) SWIG_fail; | |
15482 | } | |
15483 | { | |
15484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15485 | } | |
15486 | return resultobj; | |
15487 | fail: | |
15488 | return NULL; | |
15489 | } | |
15490 | ||
15491 | ||
15492 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15493 | PyObject *resultobj; | |
15494 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15495 | int result; | |
15496 | PyObject * obj0 = 0 ; | |
15497 | char *kwnames[] = { | |
15498 | (char *) "self", NULL | |
15499 | }; | |
15500 | ||
15501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15504 | { | |
15505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15506 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15507 | ||
15508 | wxPyEndAllowThreads(__tstate); | |
15509 | if (PyErr_Occurred()) SWIG_fail; | |
15510 | } | |
15511 | resultobj = SWIG_FromInt((int)result); | |
15512 | return resultobj; | |
15513 | fail: | |
15514 | return NULL; | |
15515 | } | |
15516 | ||
15517 | ||
15518 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15519 | PyObject *resultobj; | |
15520 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15521 | int result; | |
15522 | PyObject * obj0 = 0 ; | |
15523 | char *kwnames[] = { | |
15524 | (char *) "self", NULL | |
15525 | }; | |
15526 | ||
15527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
15528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15530 | { | |
15531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15532 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
15533 | ||
15534 | wxPyEndAllowThreads(__tstate); | |
15535 | if (PyErr_Occurred()) SWIG_fail; | |
15536 | } | |
15537 | resultobj = SWIG_FromInt((int)result); | |
15538 | return resultobj; | |
15539 | fail: | |
15540 | return NULL; | |
15541 | } | |
15542 | ||
15543 | ||
15544 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15545 | PyObject *resultobj; | |
15546 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15547 | unsigned int result; | |
15548 | PyObject * obj0 = 0 ; | |
15549 | char *kwnames[] = { | |
15550 | (char *) "self", NULL | |
15551 | }; | |
15552 | ||
15553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
15554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15556 | { | |
15557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15558 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); | |
15559 | ||
15560 | wxPyEndAllowThreads(__tstate); | |
15561 | if (PyErr_Occurred()) SWIG_fail; | |
15562 | } | |
15563 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
15564 | return resultobj; | |
15565 | fail: | |
15566 | return NULL; | |
15567 | } | |
15568 | ||
15569 | ||
15570 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15571 | PyObject *resultobj; | |
15572 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15573 | unsigned int result; | |
15574 | PyObject * obj0 = 0 ; | |
15575 | char *kwnames[] = { | |
15576 | (char *) "self", NULL | |
15577 | }; | |
15578 | ||
15579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
15580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15582 | { | |
15583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15584 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); | |
15585 | ||
15586 | wxPyEndAllowThreads(__tstate); | |
15587 | if (PyErr_Occurred()) SWIG_fail; | |
15588 | } | |
15589 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
15590 | return resultobj; | |
15591 | fail: | |
15592 | return NULL; | |
15593 | } | |
15594 | ||
15595 | ||
15596 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15597 | PyObject *resultobj; | |
15598 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15599 | wxPoint result; | |
15600 | PyObject * obj0 = 0 ; | |
15601 | char *kwnames[] = { | |
15602 | (char *) "self", NULL | |
15603 | }; | |
15604 | ||
15605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15608 | { | |
15609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15610 | result = (arg1)->GetPosition(); | |
15611 | ||
15612 | wxPyEndAllowThreads(__tstate); | |
15613 | if (PyErr_Occurred()) SWIG_fail; | |
15614 | } | |
15615 | { | |
15616 | wxPoint * resultptr; | |
15617 | resultptr = new wxPoint((wxPoint &) result); | |
15618 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
15619 | } | |
15620 | return resultobj; | |
15621 | fail: | |
15622 | return NULL; | |
15623 | } | |
15624 | ||
15625 | ||
15626 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15627 | PyObject *resultobj; | |
15628 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15629 | long *arg2 = (long *) 0 ; | |
15630 | long *arg3 = (long *) 0 ; | |
15631 | long temp2 ; | |
15632 | long temp3 ; | |
15633 | PyObject * obj0 = 0 ; | |
15634 | char *kwnames[] = { | |
15635 | (char *) "self", NULL | |
15636 | }; | |
15637 | ||
15638 | arg2 = &temp2; | |
15639 | arg3 = &temp3; | |
15640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15643 | { | |
15644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15645 | (arg1)->GetPosition(arg2,arg3); | |
15646 | ||
15647 | wxPyEndAllowThreads(__tstate); | |
15648 | if (PyErr_Occurred()) SWIG_fail; | |
15649 | } | |
15650 | Py_INCREF(Py_None); resultobj = Py_None; | |
15651 | { | |
15652 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15653 | resultobj = t_output_helper(resultobj,o); | |
15654 | } | |
15655 | { | |
15656 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15657 | resultobj = t_output_helper(resultobj,o); | |
15658 | } | |
15659 | return resultobj; | |
15660 | fail: | |
15661 | return NULL; | |
15662 | } | |
15663 | ||
15664 | ||
15665 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15666 | PyObject *resultobj; | |
15667 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15668 | int result; | |
15669 | PyObject * obj0 = 0 ; | |
15670 | char *kwnames[] = { | |
15671 | (char *) "self", NULL | |
15672 | }; | |
15673 | ||
15674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
15675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15677 | { | |
15678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15679 | result = (int)((wxKeyEvent const *)arg1)->GetX(); | |
15680 | ||
15681 | wxPyEndAllowThreads(__tstate); | |
15682 | if (PyErr_Occurred()) SWIG_fail; | |
15683 | } | |
15684 | resultobj = SWIG_FromInt((int)result); | |
15685 | return resultobj; | |
15686 | fail: | |
15687 | return NULL; | |
15688 | } | |
15689 | ||
15690 | ||
15691 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15692 | PyObject *resultobj; | |
15693 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15694 | int result; | |
15695 | PyObject * obj0 = 0 ; | |
15696 | char *kwnames[] = { | |
15697 | (char *) "self", NULL | |
15698 | }; | |
15699 | ||
15700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
15701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15703 | { | |
15704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15705 | result = (int)((wxKeyEvent const *)arg1)->GetY(); | |
15706 | ||
15707 | wxPyEndAllowThreads(__tstate); | |
15708 | if (PyErr_Occurred()) SWIG_fail; | |
15709 | } | |
15710 | resultobj = SWIG_FromInt((int)result); | |
15711 | return resultobj; | |
15712 | fail: | |
15713 | return NULL; | |
15714 | } | |
15715 | ||
15716 | ||
15717 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15718 | PyObject *resultobj; | |
15719 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15720 | int arg2 ; | |
15721 | PyObject * obj0 = 0 ; | |
15722 | PyObject * obj1 = 0 ; | |
15723 | char *kwnames[] = { | |
15724 | (char *) "self",(char *) "m_x", NULL | |
15725 | }; | |
15726 | ||
15727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
15728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15730 | arg2 = (int) SWIG_AsInt(obj1); | |
15731 | if (PyErr_Occurred()) SWIG_fail; | |
15732 | if (arg1) (arg1)->m_x = arg2; | |
15733 | ||
15734 | Py_INCREF(Py_None); resultobj = Py_None; | |
15735 | return resultobj; | |
15736 | fail: | |
15737 | return NULL; | |
15738 | } | |
15739 | ||
15740 | ||
15741 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15742 | PyObject *resultobj; | |
15743 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15744 | int result; | |
15745 | PyObject * obj0 = 0 ; | |
15746 | char *kwnames[] = { | |
15747 | (char *) "self", NULL | |
15748 | }; | |
15749 | ||
15750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15753 | result = (int) ((arg1)->m_x); | |
15754 | ||
15755 | resultobj = SWIG_FromInt((int)result); | |
15756 | return resultobj; | |
15757 | fail: | |
15758 | return NULL; | |
15759 | } | |
15760 | ||
15761 | ||
15762 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15763 | PyObject *resultobj; | |
15764 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15765 | int arg2 ; | |
15766 | PyObject * obj0 = 0 ; | |
15767 | PyObject * obj1 = 0 ; | |
15768 | char *kwnames[] = { | |
15769 | (char *) "self",(char *) "m_y", NULL | |
15770 | }; | |
15771 | ||
15772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
15773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15775 | arg2 = (int) SWIG_AsInt(obj1); | |
15776 | if (PyErr_Occurred()) SWIG_fail; | |
15777 | if (arg1) (arg1)->m_y = arg2; | |
15778 | ||
15779 | Py_INCREF(Py_None); resultobj = Py_None; | |
15780 | return resultobj; | |
15781 | fail: | |
15782 | return NULL; | |
15783 | } | |
15784 | ||
15785 | ||
15786 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15787 | PyObject *resultobj; | |
15788 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15789 | int result; | |
15790 | PyObject * obj0 = 0 ; | |
15791 | char *kwnames[] = { | |
15792 | (char *) "self", NULL | |
15793 | }; | |
15794 | ||
15795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15798 | result = (int) ((arg1)->m_y); | |
15799 | ||
15800 | resultobj = SWIG_FromInt((int)result); | |
15801 | return resultobj; | |
15802 | fail: | |
15803 | return NULL; | |
15804 | } | |
15805 | ||
15806 | ||
15807 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15808 | PyObject *resultobj; | |
15809 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15810 | long arg2 ; | |
15811 | PyObject * obj0 = 0 ; | |
15812 | PyObject * obj1 = 0 ; | |
15813 | char *kwnames[] = { | |
15814 | (char *) "self",(char *) "m_keyCode", NULL | |
15815 | }; | |
15816 | ||
15817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15820 | arg2 = (long) SWIG_AsLong(obj1); | |
15821 | if (PyErr_Occurred()) SWIG_fail; | |
15822 | if (arg1) (arg1)->m_keyCode = arg2; | |
15823 | ||
15824 | Py_INCREF(Py_None); resultobj = Py_None; | |
15825 | return resultobj; | |
15826 | fail: | |
15827 | return NULL; | |
15828 | } | |
15829 | ||
15830 | ||
15831 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15832 | PyObject *resultobj; | |
15833 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15834 | long result; | |
15835 | PyObject * obj0 = 0 ; | |
15836 | char *kwnames[] = { | |
15837 | (char *) "self", NULL | |
15838 | }; | |
15839 | ||
15840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
15841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15843 | result = (long) ((arg1)->m_keyCode); | |
15844 | ||
15845 | resultobj = SWIG_FromLong((long)result); | |
15846 | return resultobj; | |
15847 | fail: | |
15848 | return NULL; | |
15849 | } | |
15850 | ||
15851 | ||
15852 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15853 | PyObject *resultobj; | |
15854 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15855 | bool arg2 ; | |
15856 | PyObject * obj0 = 0 ; | |
15857 | PyObject * obj1 = 0 ; | |
15858 | char *kwnames[] = { | |
15859 | (char *) "self",(char *) "m_controlDown", NULL | |
15860 | }; | |
15861 | ||
15862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15865 | arg2 = (bool) SWIG_AsBool(obj1); | |
15866 | if (PyErr_Occurred()) SWIG_fail; | |
15867 | if (arg1) (arg1)->m_controlDown = arg2; | |
15868 | ||
15869 | Py_INCREF(Py_None); resultobj = Py_None; | |
15870 | return resultobj; | |
15871 | fail: | |
15872 | return NULL; | |
15873 | } | |
15874 | ||
15875 | ||
15876 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15877 | PyObject *resultobj; | |
15878 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15879 | bool result; | |
15880 | PyObject * obj0 = 0 ; | |
15881 | char *kwnames[] = { | |
15882 | (char *) "self", NULL | |
15883 | }; | |
15884 | ||
15885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15888 | result = (bool) ((arg1)->m_controlDown); | |
15889 | ||
15890 | { | |
15891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15892 | } | |
15893 | return resultobj; | |
15894 | fail: | |
15895 | return NULL; | |
15896 | } | |
15897 | ||
15898 | ||
15899 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15900 | PyObject *resultobj; | |
15901 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15902 | bool arg2 ; | |
15903 | PyObject * obj0 = 0 ; | |
15904 | PyObject * obj1 = 0 ; | |
15905 | char *kwnames[] = { | |
15906 | (char *) "self",(char *) "m_shiftDown", NULL | |
15907 | }; | |
15908 | ||
15909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15912 | arg2 = (bool) SWIG_AsBool(obj1); | |
15913 | if (PyErr_Occurred()) SWIG_fail; | |
15914 | if (arg1) (arg1)->m_shiftDown = arg2; | |
15915 | ||
15916 | Py_INCREF(Py_None); resultobj = Py_None; | |
15917 | return resultobj; | |
15918 | fail: | |
15919 | return NULL; | |
15920 | } | |
15921 | ||
15922 | ||
15923 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15924 | PyObject *resultobj; | |
15925 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15926 | bool result; | |
15927 | PyObject * obj0 = 0 ; | |
15928 | char *kwnames[] = { | |
15929 | (char *) "self", NULL | |
15930 | }; | |
15931 | ||
15932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15935 | result = (bool) ((arg1)->m_shiftDown); | |
15936 | ||
15937 | { | |
15938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15939 | } | |
15940 | return resultobj; | |
15941 | fail: | |
15942 | return NULL; | |
15943 | } | |
15944 | ||
15945 | ||
15946 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15947 | PyObject *resultobj; | |
15948 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15949 | bool arg2 ; | |
15950 | PyObject * obj0 = 0 ; | |
15951 | PyObject * obj1 = 0 ; | |
15952 | char *kwnames[] = { | |
15953 | (char *) "self",(char *) "m_altDown", NULL | |
15954 | }; | |
15955 | ||
15956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15959 | arg2 = (bool) SWIG_AsBool(obj1); | |
15960 | if (PyErr_Occurred()) SWIG_fail; | |
15961 | if (arg1) (arg1)->m_altDown = arg2; | |
15962 | ||
15963 | Py_INCREF(Py_None); resultobj = Py_None; | |
15964 | return resultobj; | |
15965 | fail: | |
15966 | return NULL; | |
15967 | } | |
15968 | ||
15969 | ||
15970 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15971 | PyObject *resultobj; | |
15972 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15973 | bool result; | |
15974 | PyObject * obj0 = 0 ; | |
15975 | char *kwnames[] = { | |
15976 | (char *) "self", NULL | |
15977 | }; | |
15978 | ||
15979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15982 | result = (bool) ((arg1)->m_altDown); | |
15983 | ||
15984 | { | |
15985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15986 | } | |
15987 | return resultobj; | |
15988 | fail: | |
15989 | return NULL; | |
15990 | } | |
15991 | ||
15992 | ||
15993 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15994 | PyObject *resultobj; | |
15995 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15996 | bool arg2 ; | |
15997 | PyObject * obj0 = 0 ; | |
15998 | PyObject * obj1 = 0 ; | |
15999 | char *kwnames[] = { | |
16000 | (char *) "self",(char *) "m_metaDown", NULL | |
16001 | }; | |
16002 | ||
16003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16006 | arg2 = (bool) SWIG_AsBool(obj1); | |
16007 | if (PyErr_Occurred()) SWIG_fail; | |
16008 | if (arg1) (arg1)->m_metaDown = arg2; | |
16009 | ||
16010 | Py_INCREF(Py_None); resultobj = Py_None; | |
16011 | return resultobj; | |
16012 | fail: | |
16013 | return NULL; | |
16014 | } | |
16015 | ||
16016 | ||
16017 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16018 | PyObject *resultobj; | |
16019 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16020 | bool result; | |
16021 | PyObject * obj0 = 0 ; | |
16022 | char *kwnames[] = { | |
16023 | (char *) "self", NULL | |
16024 | }; | |
16025 | ||
16026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
16027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16029 | result = (bool) ((arg1)->m_metaDown); | |
16030 | ||
16031 | { | |
16032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16033 | } | |
16034 | return resultobj; | |
16035 | fail: | |
16036 | return NULL; | |
16037 | } | |
16038 | ||
16039 | ||
16040 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16041 | PyObject *resultobj; | |
16042 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16043 | bool arg2 ; | |
16044 | PyObject * obj0 = 0 ; | |
16045 | PyObject * obj1 = 0 ; | |
16046 | char *kwnames[] = { | |
16047 | (char *) "self",(char *) "m_scanCode", NULL | |
16048 | }; | |
16049 | ||
16050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16053 | arg2 = (bool) SWIG_AsBool(obj1); | |
16054 | if (PyErr_Occurred()) SWIG_fail; | |
16055 | if (arg1) (arg1)->m_scanCode = arg2; | |
16056 | ||
16057 | Py_INCREF(Py_None); resultobj = Py_None; | |
16058 | return resultobj; | |
16059 | fail: | |
16060 | return NULL; | |
16061 | } | |
16062 | ||
16063 | ||
16064 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16065 | PyObject *resultobj; | |
16066 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16067 | bool result; | |
16068 | PyObject * obj0 = 0 ; | |
16069 | char *kwnames[] = { | |
16070 | (char *) "self", NULL | |
16071 | }; | |
16072 | ||
16073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
16074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16076 | result = (bool) ((arg1)->m_scanCode); | |
16077 | ||
16078 | { | |
16079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16080 | } | |
16081 | return resultobj; | |
16082 | fail: | |
16083 | return NULL; | |
16084 | } | |
16085 | ||
16086 | ||
16087 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16088 | PyObject *resultobj; | |
16089 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16090 | unsigned int arg2 ; | |
16091 | PyObject * obj0 = 0 ; | |
16092 | PyObject * obj1 = 0 ; | |
16093 | char *kwnames[] = { | |
16094 | (char *) "self",(char *) "m_rawCode", NULL | |
16095 | }; | |
16096 | ||
16097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16100 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16101 | if (PyErr_Occurred()) SWIG_fail; | |
16102 | if (arg1) (arg1)->m_rawCode = arg2; | |
16103 | ||
16104 | Py_INCREF(Py_None); resultobj = Py_None; | |
16105 | return resultobj; | |
16106 | fail: | |
16107 | return NULL; | |
16108 | } | |
16109 | ||
16110 | ||
16111 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16112 | PyObject *resultobj; | |
16113 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16114 | unsigned int result; | |
16115 | PyObject * obj0 = 0 ; | |
16116 | char *kwnames[] = { | |
16117 | (char *) "self", NULL | |
16118 | }; | |
16119 | ||
16120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
16121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16123 | result = (unsigned int) ((arg1)->m_rawCode); | |
16124 | ||
16125 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
16126 | return resultobj; | |
16127 | fail: | |
16128 | return NULL; | |
16129 | } | |
16130 | ||
16131 | ||
16132 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16133 | PyObject *resultobj; | |
16134 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16135 | unsigned int arg2 ; | |
16136 | PyObject * obj0 = 0 ; | |
16137 | PyObject * obj1 = 0 ; | |
16138 | char *kwnames[] = { | |
16139 | (char *) "self",(char *) "m_rawFlags", NULL | |
16140 | }; | |
16141 | ||
16142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
16143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16145 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16146 | if (PyErr_Occurred()) SWIG_fail; | |
16147 | if (arg1) (arg1)->m_rawFlags = arg2; | |
16148 | ||
16149 | Py_INCREF(Py_None); resultobj = Py_None; | |
16150 | return resultobj; | |
16151 | fail: | |
16152 | return NULL; | |
16153 | } | |
16154 | ||
16155 | ||
16156 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16157 | PyObject *resultobj; | |
16158 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16159 | unsigned int result; | |
16160 | PyObject * obj0 = 0 ; | |
16161 | char *kwnames[] = { | |
16162 | (char *) "self", NULL | |
16163 | }; | |
16164 | ||
16165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
16166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16168 | result = (unsigned int) ((arg1)->m_rawFlags); | |
16169 | ||
16170 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
16171 | return resultobj; | |
16172 | fail: | |
16173 | return NULL; | |
16174 | } | |
16175 | ||
16176 | ||
16177 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
16178 | PyObject *obj; | |
16179 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16180 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16181 | Py_INCREF(obj); | |
16182 | return Py_BuildValue((char *)""); | |
16183 | } | |
16184 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16185 | PyObject *resultobj; | |
16186 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16187 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16188 | int arg2 = (int) 0 ; | |
16189 | wxSizeEvent *result; | |
16190 | wxSize temp1 ; | |
16191 | PyObject * obj0 = 0 ; | |
16192 | PyObject * obj1 = 0 ; | |
16193 | char *kwnames[] = { | |
16194 | (char *) "sz",(char *) "winid", NULL | |
16195 | }; | |
16196 | ||
16197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
16198 | if (obj0) { | |
16199 | { | |
16200 | arg1 = &temp1; | |
16201 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16202 | } | |
16203 | } | |
16204 | if (obj1) { | |
16205 | arg2 = (int) SWIG_AsInt(obj1); | |
16206 | if (PyErr_Occurred()) SWIG_fail; | |
16207 | } | |
16208 | { | |
16209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16210 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16211 | ||
16212 | wxPyEndAllowThreads(__tstate); | |
16213 | if (PyErr_Occurred()) SWIG_fail; | |
16214 | } | |
16215 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); | |
16216 | return resultobj; | |
16217 | fail: | |
16218 | return NULL; | |
16219 | } | |
16220 | ||
16221 | ||
16222 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16223 | PyObject *resultobj; | |
16224 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16225 | wxSize result; | |
16226 | PyObject * obj0 = 0 ; | |
16227 | char *kwnames[] = { | |
16228 | (char *) "self", NULL | |
16229 | }; | |
16230 | ||
16231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
16232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16234 | { | |
16235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16236 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16237 | ||
16238 | wxPyEndAllowThreads(__tstate); | |
16239 | if (PyErr_Occurred()) SWIG_fail; | |
16240 | } | |
16241 | { | |
16242 | wxSize * resultptr; | |
16243 | resultptr = new wxSize((wxSize &) result); | |
16244 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16245 | } | |
16246 | return resultobj; | |
16247 | fail: | |
16248 | return NULL; | |
16249 | } | |
16250 | ||
16251 | ||
16252 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16253 | PyObject *resultobj; | |
16254 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16255 | wxRect result; | |
16256 | PyObject * obj0 = 0 ; | |
16257 | char *kwnames[] = { | |
16258 | (char *) "self", NULL | |
16259 | }; | |
16260 | ||
16261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
16262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16264 | { | |
16265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16266 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16267 | ||
16268 | wxPyEndAllowThreads(__tstate); | |
16269 | if (PyErr_Occurred()) SWIG_fail; | |
16270 | } | |
16271 | { | |
16272 | wxRect * resultptr; | |
16273 | resultptr = new wxRect((wxRect &) result); | |
16274 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16275 | } | |
16276 | return resultobj; | |
16277 | fail: | |
16278 | return NULL; | |
16279 | } | |
16280 | ||
16281 | ||
16282 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16283 | PyObject *resultobj; | |
16284 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16285 | wxRect arg2 ; | |
16286 | wxRect *argp2 ; | |
16287 | PyObject * obj0 = 0 ; | |
16288 | PyObject * obj1 = 0 ; | |
16289 | char *kwnames[] = { | |
16290 | (char *) "self",(char *) "rect", NULL | |
16291 | }; | |
16292 | ||
16293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16296 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16297 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16298 | arg2 = *argp2; | |
16299 | { | |
16300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16301 | (arg1)->SetRect(arg2); | |
16302 | ||
16303 | wxPyEndAllowThreads(__tstate); | |
16304 | if (PyErr_Occurred()) SWIG_fail; | |
16305 | } | |
16306 | Py_INCREF(Py_None); resultobj = Py_None; | |
16307 | return resultobj; | |
16308 | fail: | |
16309 | return NULL; | |
16310 | } | |
16311 | ||
16312 | ||
16313 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16314 | PyObject *resultobj; | |
16315 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16316 | wxSize arg2 ; | |
16317 | wxSize *argp2 ; | |
16318 | PyObject * obj0 = 0 ; | |
16319 | PyObject * obj1 = 0 ; | |
16320 | char *kwnames[] = { | |
16321 | (char *) "self",(char *) "size", NULL | |
16322 | }; | |
16323 | ||
16324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
16325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16327 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16328 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16329 | arg2 = *argp2; | |
16330 | { | |
16331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16332 | wxSizeEvent_SetSize(arg1,arg2); | |
16333 | ||
16334 | wxPyEndAllowThreads(__tstate); | |
16335 | if (PyErr_Occurred()) SWIG_fail; | |
16336 | } | |
16337 | Py_INCREF(Py_None); resultobj = Py_None; | |
16338 | return resultobj; | |
16339 | fail: | |
16340 | return NULL; | |
16341 | } | |
16342 | ||
16343 | ||
16344 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16345 | PyObject *resultobj; | |
16346 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16347 | wxSize *arg2 = (wxSize *) 0 ; | |
16348 | PyObject * obj0 = 0 ; | |
16349 | PyObject * obj1 = 0 ; | |
16350 | char *kwnames[] = { | |
16351 | (char *) "self",(char *) "m_size", NULL | |
16352 | }; | |
16353 | ||
16354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
16355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16357 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16359 | if (arg1) (arg1)->m_size = *arg2; | |
16360 | ||
16361 | Py_INCREF(Py_None); resultobj = Py_None; | |
16362 | return resultobj; | |
16363 | fail: | |
16364 | return NULL; | |
16365 | } | |
16366 | ||
16367 | ||
16368 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16369 | PyObject *resultobj; | |
16370 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16371 | wxSize *result; | |
16372 | PyObject * obj0 = 0 ; | |
16373 | char *kwnames[] = { | |
16374 | (char *) "self", NULL | |
16375 | }; | |
16376 | ||
16377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
16378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16380 | result = (wxSize *)& ((arg1)->m_size); | |
16381 | ||
16382 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
16383 | return resultobj; | |
16384 | fail: | |
16385 | return NULL; | |
16386 | } | |
16387 | ||
16388 | ||
16389 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16390 | PyObject *resultobj; | |
16391 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16392 | wxRect *arg2 = (wxRect *) 0 ; | |
16393 | PyObject * obj0 = 0 ; | |
16394 | PyObject * obj1 = 0 ; | |
16395 | char *kwnames[] = { | |
16396 | (char *) "self",(char *) "m_rect", NULL | |
16397 | }; | |
16398 | ||
16399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16402 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16404 | if (arg1) (arg1)->m_rect = *arg2; | |
16405 | ||
16406 | Py_INCREF(Py_None); resultobj = Py_None; | |
16407 | return resultobj; | |
16408 | fail: | |
16409 | return NULL; | |
16410 | } | |
16411 | ||
16412 | ||
16413 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16414 | PyObject *resultobj; | |
16415 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16416 | wxRect *result; | |
16417 | PyObject * obj0 = 0 ; | |
16418 | char *kwnames[] = { | |
16419 | (char *) "self", NULL | |
16420 | }; | |
16421 | ||
16422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16425 | result = (wxRect *)& ((arg1)->m_rect); | |
16426 | ||
16427 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
16428 | return resultobj; | |
16429 | fail: | |
16430 | return NULL; | |
16431 | } | |
16432 | ||
16433 | ||
16434 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
16435 | PyObject *obj; | |
16436 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16437 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16438 | Py_INCREF(obj); | |
16439 | return Py_BuildValue((char *)""); | |
16440 | } | |
16441 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16442 | PyObject *resultobj; | |
16443 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16444 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16445 | int arg2 = (int) 0 ; | |
16446 | wxMoveEvent *result; | |
16447 | wxPoint temp1 ; | |
16448 | PyObject * obj0 = 0 ; | |
16449 | PyObject * obj1 = 0 ; | |
16450 | char *kwnames[] = { | |
16451 | (char *) "pos",(char *) "winid", NULL | |
16452 | }; | |
16453 | ||
16454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; | |
16455 | if (obj0) { | |
16456 | { | |
16457 | arg1 = &temp1; | |
16458 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16459 | } | |
16460 | } | |
16461 | if (obj1) { | |
16462 | arg2 = (int) SWIG_AsInt(obj1); | |
16463 | if (PyErr_Occurred()) SWIG_fail; | |
16464 | } | |
16465 | { | |
16466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16467 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16468 | ||
16469 | wxPyEndAllowThreads(__tstate); | |
16470 | if (PyErr_Occurred()) SWIG_fail; | |
16471 | } | |
16472 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); | |
16473 | return resultobj; | |
16474 | fail: | |
16475 | return NULL; | |
16476 | } | |
16477 | ||
16478 | ||
16479 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16480 | PyObject *resultobj; | |
16481 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16482 | wxPoint result; | |
16483 | PyObject * obj0 = 0 ; | |
16484 | char *kwnames[] = { | |
16485 | (char *) "self", NULL | |
16486 | }; | |
16487 | ||
16488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16491 | { | |
16492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16493 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16494 | ||
16495 | wxPyEndAllowThreads(__tstate); | |
16496 | if (PyErr_Occurred()) SWIG_fail; | |
16497 | } | |
16498 | { | |
16499 | wxPoint * resultptr; | |
16500 | resultptr = new wxPoint((wxPoint &) result); | |
16501 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16502 | } | |
16503 | return resultobj; | |
16504 | fail: | |
16505 | return NULL; | |
16506 | } | |
16507 | ||
16508 | ||
16509 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16510 | PyObject *resultobj; | |
16511 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16512 | wxRect result; | |
16513 | PyObject * obj0 = 0 ; | |
16514 | char *kwnames[] = { | |
16515 | (char *) "self", NULL | |
16516 | }; | |
16517 | ||
16518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
16519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16521 | { | |
16522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16523 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16524 | ||
16525 | wxPyEndAllowThreads(__tstate); | |
16526 | if (PyErr_Occurred()) SWIG_fail; | |
16527 | } | |
16528 | { | |
16529 | wxRect * resultptr; | |
16530 | resultptr = new wxRect((wxRect &) result); | |
16531 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16532 | } | |
16533 | return resultobj; | |
16534 | fail: | |
16535 | return NULL; | |
16536 | } | |
16537 | ||
16538 | ||
16539 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16540 | PyObject *resultobj; | |
16541 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16542 | wxRect arg2 ; | |
16543 | wxRect *argp2 ; | |
16544 | PyObject * obj0 = 0 ; | |
16545 | PyObject * obj1 = 0 ; | |
16546 | char *kwnames[] = { | |
16547 | (char *) "self",(char *) "rect", NULL | |
16548 | }; | |
16549 | ||
16550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16553 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16554 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16555 | arg2 = *argp2; | |
16556 | { | |
16557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16558 | (arg1)->SetRect(arg2); | |
16559 | ||
16560 | wxPyEndAllowThreads(__tstate); | |
16561 | if (PyErr_Occurred()) SWIG_fail; | |
16562 | } | |
16563 | Py_INCREF(Py_None); resultobj = Py_None; | |
16564 | return resultobj; | |
16565 | fail: | |
16566 | return NULL; | |
16567 | } | |
16568 | ||
16569 | ||
16570 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16571 | PyObject *resultobj; | |
16572 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16573 | wxPoint arg2 ; | |
16574 | wxPoint *argp2 ; | |
16575 | PyObject * obj0 = 0 ; | |
16576 | PyObject * obj1 = 0 ; | |
16577 | char *kwnames[] = { | |
16578 | (char *) "self",(char *) "pos", NULL | |
16579 | }; | |
16580 | ||
16581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
16582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16584 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
16585 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16586 | arg2 = *argp2; | |
16587 | { | |
16588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16589 | wxMoveEvent_SetPosition(arg1,arg2); | |
16590 | ||
16591 | wxPyEndAllowThreads(__tstate); | |
16592 | if (PyErr_Occurred()) SWIG_fail; | |
16593 | } | |
16594 | Py_INCREF(Py_None); resultobj = Py_None; | |
16595 | return resultobj; | |
16596 | fail: | |
16597 | return NULL; | |
16598 | } | |
16599 | ||
16600 | ||
16601 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16602 | PyObject *resultobj; | |
16603 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16604 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16605 | PyObject * obj0 = 0 ; | |
16606 | PyObject * obj1 = 0 ; | |
16607 | char *kwnames[] = { | |
16608 | (char *) "self",(char *) "m_pos", NULL | |
16609 | }; | |
16610 | ||
16611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
16612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16614 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
16615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16616 | if (arg1) (arg1)->m_pos = *arg2; | |
16617 | ||
16618 | Py_INCREF(Py_None); resultobj = Py_None; | |
16619 | return resultobj; | |
16620 | fail: | |
16621 | return NULL; | |
16622 | } | |
16623 | ||
16624 | ||
16625 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16626 | PyObject *resultobj; | |
16627 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16628 | wxPoint *result; | |
16629 | PyObject * obj0 = 0 ; | |
16630 | char *kwnames[] = { | |
16631 | (char *) "self", NULL | |
16632 | }; | |
16633 | ||
16634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
16635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16637 | result = (wxPoint *)& ((arg1)->m_pos); | |
16638 | ||
16639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
16640 | return resultobj; | |
16641 | fail: | |
16642 | return NULL; | |
16643 | } | |
16644 | ||
16645 | ||
16646 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16647 | PyObject *resultobj; | |
16648 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16649 | wxRect *arg2 = (wxRect *) 0 ; | |
16650 | PyObject * obj0 = 0 ; | |
16651 | PyObject * obj1 = 0 ; | |
16652 | char *kwnames[] = { | |
16653 | (char *) "self",(char *) "m_rect", NULL | |
16654 | }; | |
16655 | ||
16656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16659 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16661 | if (arg1) (arg1)->m_rect = *arg2; | |
16662 | ||
16663 | Py_INCREF(Py_None); resultobj = Py_None; | |
16664 | return resultobj; | |
16665 | fail: | |
16666 | return NULL; | |
16667 | } | |
16668 | ||
16669 | ||
16670 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16671 | PyObject *resultobj; | |
16672 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16673 | wxRect *result; | |
16674 | PyObject * obj0 = 0 ; | |
16675 | char *kwnames[] = { | |
16676 | (char *) "self", NULL | |
16677 | }; | |
16678 | ||
16679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16682 | result = (wxRect *)& ((arg1)->m_rect); | |
16683 | ||
16684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
16685 | return resultobj; | |
16686 | fail: | |
16687 | return NULL; | |
16688 | } | |
16689 | ||
16690 | ||
16691 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16692 | PyObject *obj; | |
16693 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16694 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16695 | Py_INCREF(obj); | |
16696 | return Py_BuildValue((char *)""); | |
16697 | } | |
16698 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16699 | PyObject *resultobj; | |
16700 | int arg1 = (int) 0 ; | |
16701 | wxPaintEvent *result; | |
16702 | PyObject * obj0 = 0 ; | |
16703 | char *kwnames[] = { | |
16704 | (char *) "Id", NULL | |
16705 | }; | |
16706 | ||
16707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; | |
16708 | if (obj0) { | |
16709 | arg1 = (int) SWIG_AsInt(obj0); | |
16710 | if (PyErr_Occurred()) SWIG_fail; | |
16711 | } | |
16712 | { | |
16713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16714 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16715 | ||
16716 | wxPyEndAllowThreads(__tstate); | |
16717 | if (PyErr_Occurred()) SWIG_fail; | |
16718 | } | |
16719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); | |
16720 | return resultobj; | |
16721 | fail: | |
16722 | return NULL; | |
16723 | } | |
16724 | ||
16725 | ||
16726 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16727 | PyObject *obj; | |
16728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16729 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16730 | Py_INCREF(obj); | |
16731 | return Py_BuildValue((char *)""); | |
16732 | } | |
16733 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16734 | PyObject *resultobj; | |
16735 | int arg1 = (int) 0 ; | |
16736 | wxNcPaintEvent *result; | |
16737 | PyObject * obj0 = 0 ; | |
16738 | char *kwnames[] = { | |
16739 | (char *) "winid", NULL | |
16740 | }; | |
16741 | ||
16742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; | |
16743 | if (obj0) { | |
16744 | arg1 = (int) SWIG_AsInt(obj0); | |
16745 | if (PyErr_Occurred()) SWIG_fail; | |
16746 | } | |
16747 | { | |
16748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16749 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16750 | ||
16751 | wxPyEndAllowThreads(__tstate); | |
16752 | if (PyErr_Occurred()) SWIG_fail; | |
16753 | } | |
16754 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); | |
16755 | return resultobj; | |
16756 | fail: | |
16757 | return NULL; | |
16758 | } | |
16759 | ||
16760 | ||
16761 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16762 | PyObject *obj; | |
16763 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16764 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16765 | Py_INCREF(obj); | |
16766 | return Py_BuildValue((char *)""); | |
16767 | } | |
16768 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16769 | PyObject *resultobj; | |
16770 | int arg1 = (int) 0 ; | |
16771 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16772 | wxEraseEvent *result; | |
16773 | PyObject * obj0 = 0 ; | |
16774 | PyObject * obj1 = 0 ; | |
16775 | char *kwnames[] = { | |
16776 | (char *) "Id",(char *) "dc", NULL | |
16777 | }; | |
16778 | ||
16779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; | |
16780 | if (obj0) { | |
16781 | arg1 = (int) SWIG_AsInt(obj0); | |
16782 | if (PyErr_Occurred()) SWIG_fail; | |
16783 | } | |
16784 | if (obj1) { | |
16785 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16787 | } | |
16788 | { | |
16789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16790 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16791 | ||
16792 | wxPyEndAllowThreads(__tstate); | |
16793 | if (PyErr_Occurred()) SWIG_fail; | |
16794 | } | |
16795 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); | |
16796 | return resultobj; | |
16797 | fail: | |
16798 | return NULL; | |
16799 | } | |
16800 | ||
16801 | ||
16802 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16803 | PyObject *resultobj; | |
16804 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16805 | wxDC *result; | |
16806 | PyObject * obj0 = 0 ; | |
16807 | char *kwnames[] = { | |
16808 | (char *) "self", NULL | |
16809 | }; | |
16810 | ||
16811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
16812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, | |
16813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16814 | { | |
16815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16816 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16817 | ||
16818 | wxPyEndAllowThreads(__tstate); | |
16819 | if (PyErr_Occurred()) SWIG_fail; | |
16820 | } | |
16821 | { | |
16822 | resultobj = wxPyMake_wxObject(result); | |
16823 | } | |
16824 | return resultobj; | |
16825 | fail: | |
16826 | return NULL; | |
16827 | } | |
16828 | ||
16829 | ||
16830 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
16831 | PyObject *obj; | |
16832 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16833 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16834 | Py_INCREF(obj); | |
16835 | return Py_BuildValue((char *)""); | |
16836 | } | |
16837 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16838 | PyObject *resultobj; | |
16839 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16840 | int arg2 = (int) 0 ; | |
16841 | wxFocusEvent *result; | |
16842 | PyObject * obj0 = 0 ; | |
16843 | PyObject * obj1 = 0 ; | |
16844 | char *kwnames[] = { | |
16845 | (char *) "type",(char *) "winid", NULL | |
16846 | }; | |
16847 | ||
16848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; | |
16849 | if (obj0) { | |
16850 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
16851 | if (PyErr_Occurred()) SWIG_fail; | |
16852 | } | |
16853 | if (obj1) { | |
16854 | arg2 = (int) SWIG_AsInt(obj1); | |
16855 | if (PyErr_Occurred()) SWIG_fail; | |
16856 | } | |
16857 | { | |
16858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16859 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16860 | ||
16861 | wxPyEndAllowThreads(__tstate); | |
16862 | if (PyErr_Occurred()) SWIG_fail; | |
16863 | } | |
16864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); | |
16865 | return resultobj; | |
16866 | fail: | |
16867 | return NULL; | |
16868 | } | |
16869 | ||
16870 | ||
16871 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16872 | PyObject *resultobj; | |
16873 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16874 | wxWindow *result; | |
16875 | PyObject * obj0 = 0 ; | |
16876 | char *kwnames[] = { | |
16877 | (char *) "self", NULL | |
16878 | }; | |
16879 | ||
16880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
16882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16883 | { | |
16884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16885 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
16886 | ||
16887 | wxPyEndAllowThreads(__tstate); | |
16888 | if (PyErr_Occurred()) SWIG_fail; | |
16889 | } | |
16890 | { | |
16891 | resultobj = wxPyMake_wxObject(result); | |
16892 | } | |
16893 | return resultobj; | |
16894 | fail: | |
16895 | return NULL; | |
16896 | } | |
16897 | ||
16898 | ||
16899 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16900 | PyObject *resultobj; | |
16901 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16902 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16903 | PyObject * obj0 = 0 ; | |
16904 | PyObject * obj1 = 0 ; | |
16905 | char *kwnames[] = { | |
16906 | (char *) "self",(char *) "win", NULL | |
16907 | }; | |
16908 | ||
16909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
16910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
16911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16912 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16914 | { | |
16915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16916 | (arg1)->SetWindow(arg2); | |
16917 | ||
16918 | wxPyEndAllowThreads(__tstate); | |
16919 | if (PyErr_Occurred()) SWIG_fail; | |
16920 | } | |
16921 | Py_INCREF(Py_None); resultobj = Py_None; | |
16922 | return resultobj; | |
16923 | fail: | |
16924 | return NULL; | |
16925 | } | |
16926 | ||
16927 | ||
16928 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16929 | PyObject *obj; | |
16930 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16931 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
16932 | Py_INCREF(obj); | |
16933 | return Py_BuildValue((char *)""); | |
16934 | } | |
16935 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16936 | PyObject *resultobj; | |
16937 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16938 | wxChildFocusEvent *result; | |
16939 | PyObject * obj0 = 0 ; | |
16940 | char *kwnames[] = { | |
16941 | (char *) "win", NULL | |
16942 | }; | |
16943 | ||
16944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
16945 | if (obj0) { | |
16946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16948 | } | |
16949 | { | |
16950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16951 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
16952 | ||
16953 | wxPyEndAllowThreads(__tstate); | |
16954 | if (PyErr_Occurred()) SWIG_fail; | |
16955 | } | |
16956 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); | |
16957 | return resultobj; | |
16958 | fail: | |
16959 | return NULL; | |
16960 | } | |
16961 | ||
16962 | ||
16963 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16964 | PyObject *resultobj; | |
16965 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
16966 | wxWindow *result; | |
16967 | PyObject * obj0 = 0 ; | |
16968 | char *kwnames[] = { | |
16969 | (char *) "self", NULL | |
16970 | }; | |
16971 | ||
16972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, | |
16974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16975 | { | |
16976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16977 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
16978 | ||
16979 | wxPyEndAllowThreads(__tstate); | |
16980 | if (PyErr_Occurred()) SWIG_fail; | |
16981 | } | |
16982 | { | |
16983 | resultobj = wxPyMake_wxObject(result); | |
16984 | } | |
16985 | return resultobj; | |
16986 | fail: | |
16987 | return NULL; | |
16988 | } | |
16989 | ||
16990 | ||
16991 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16992 | PyObject *obj; | |
16993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16994 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
16995 | Py_INCREF(obj); | |
16996 | return Py_BuildValue((char *)""); | |
16997 | } | |
16998 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16999 | PyObject *resultobj; | |
17000 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17001 | bool arg2 = (bool) True ; | |
17002 | int arg3 = (int) 0 ; | |
17003 | wxActivateEvent *result; | |
17004 | PyObject * obj0 = 0 ; | |
17005 | PyObject * obj1 = 0 ; | |
17006 | PyObject * obj2 = 0 ; | |
17007 | char *kwnames[] = { | |
17008 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17009 | }; | |
17010 | ||
17011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17012 | if (obj0) { | |
17013 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
17014 | if (PyErr_Occurred()) SWIG_fail; | |
17015 | } | |
17016 | if (obj1) { | |
17017 | arg2 = (bool) SWIG_AsBool(obj1); | |
17018 | if (PyErr_Occurred()) SWIG_fail; | |
17019 | } | |
17020 | if (obj2) { | |
17021 | arg3 = (int) SWIG_AsInt(obj2); | |
17022 | if (PyErr_Occurred()) SWIG_fail; | |
17023 | } | |
17024 | { | |
17025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17026 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17027 | ||
17028 | wxPyEndAllowThreads(__tstate); | |
17029 | if (PyErr_Occurred()) SWIG_fail; | |
17030 | } | |
17031 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); | |
17032 | return resultobj; | |
17033 | fail: | |
17034 | return NULL; | |
17035 | } | |
17036 | ||
17037 | ||
17038 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17039 | PyObject *resultobj; | |
17040 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17041 | bool result; | |
17042 | PyObject * obj0 = 0 ; | |
17043 | char *kwnames[] = { | |
17044 | (char *) "self", NULL | |
17045 | }; | |
17046 | ||
17047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
17048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, | |
17049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17050 | { | |
17051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17052 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17053 | ||
17054 | wxPyEndAllowThreads(__tstate); | |
17055 | if (PyErr_Occurred()) SWIG_fail; | |
17056 | } | |
17057 | { | |
17058 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17059 | } | |
17060 | return resultobj; | |
17061 | fail: | |
17062 | return NULL; | |
17063 | } | |
17064 | ||
17065 | ||
17066 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
17067 | PyObject *obj; | |
17068 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17069 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17070 | Py_INCREF(obj); | |
17071 | return Py_BuildValue((char *)""); | |
17072 | } | |
17073 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17074 | PyObject *resultobj; | |
17075 | int arg1 = (int) 0 ; | |
17076 | wxInitDialogEvent *result; | |
17077 | PyObject * obj0 = 0 ; | |
17078 | char *kwnames[] = { | |
17079 | (char *) "Id", NULL | |
17080 | }; | |
17081 | ||
17082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; | |
17083 | if (obj0) { | |
17084 | arg1 = (int) SWIG_AsInt(obj0); | |
17085 | if (PyErr_Occurred()) SWIG_fail; | |
17086 | } | |
17087 | { | |
17088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17089 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17090 | ||
17091 | wxPyEndAllowThreads(__tstate); | |
17092 | if (PyErr_Occurred()) SWIG_fail; | |
17093 | } | |
17094 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); | |
17095 | return resultobj; | |
17096 | fail: | |
17097 | return NULL; | |
17098 | } | |
17099 | ||
17100 | ||
17101 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
17102 | PyObject *obj; | |
17103 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17104 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17105 | Py_INCREF(obj); | |
17106 | return Py_BuildValue((char *)""); | |
17107 | } | |
17108 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17109 | PyObject *resultobj; | |
17110 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17111 | int arg2 = (int) 0 ; | |
17112 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17113 | wxMenuEvent *result; | |
17114 | PyObject * obj0 = 0 ; | |
17115 | PyObject * obj1 = 0 ; | |
17116 | PyObject * obj2 = 0 ; | |
17117 | char *kwnames[] = { | |
17118 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17119 | }; | |
17120 | ||
17121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17122 | if (obj0) { | |
17123 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
17124 | if (PyErr_Occurred()) SWIG_fail; | |
17125 | } | |
17126 | if (obj1) { | |
17127 | arg2 = (int) SWIG_AsInt(obj1); | |
17128 | if (PyErr_Occurred()) SWIG_fail; | |
17129 | } | |
17130 | if (obj2) { | |
17131 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
17132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17133 | } | |
17134 | { | |
17135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17136 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17137 | ||
17138 | wxPyEndAllowThreads(__tstate); | |
17139 | if (PyErr_Occurred()) SWIG_fail; | |
17140 | } | |
17141 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); | |
17142 | return resultobj; | |
17143 | fail: | |
17144 | return NULL; | |
17145 | } | |
17146 | ||
17147 | ||
17148 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17149 | PyObject *resultobj; | |
17150 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17151 | int result; | |
17152 | PyObject * obj0 = 0 ; | |
17153 | char *kwnames[] = { | |
17154 | (char *) "self", NULL | |
17155 | }; | |
17156 | ||
17157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
17158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17160 | { | |
17161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17162 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17163 | ||
17164 | wxPyEndAllowThreads(__tstate); | |
17165 | if (PyErr_Occurred()) SWIG_fail; | |
17166 | } | |
17167 | resultobj = SWIG_FromInt((int)result); | |
17168 | return resultobj; | |
17169 | fail: | |
17170 | return NULL; | |
17171 | } | |
17172 | ||
17173 | ||
17174 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17175 | PyObject *resultobj; | |
17176 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17177 | bool result; | |
17178 | PyObject * obj0 = 0 ; | |
17179 | char *kwnames[] = { | |
17180 | (char *) "self", NULL | |
17181 | }; | |
17182 | ||
17183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
17184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17186 | { | |
17187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17188 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17189 | ||
17190 | wxPyEndAllowThreads(__tstate); | |
17191 | if (PyErr_Occurred()) SWIG_fail; | |
17192 | } | |
17193 | { | |
17194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17195 | } | |
17196 | return resultobj; | |
17197 | fail: | |
17198 | return NULL; | |
17199 | } | |
17200 | ||
17201 | ||
17202 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17203 | PyObject *resultobj; | |
17204 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17205 | wxMenu *result; | |
17206 | PyObject * obj0 = 0 ; | |
17207 | char *kwnames[] = { | |
17208 | (char *) "self", NULL | |
17209 | }; | |
17210 | ||
17211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
17212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17214 | { | |
17215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17216 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17217 | ||
17218 | wxPyEndAllowThreads(__tstate); | |
17219 | if (PyErr_Occurred()) SWIG_fail; | |
17220 | } | |
17221 | { | |
17222 | resultobj = wxPyMake_wxObject(result); | |
17223 | } | |
17224 | return resultobj; | |
17225 | fail: | |
17226 | return NULL; | |
17227 | } | |
17228 | ||
17229 | ||
17230 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
17231 | PyObject *obj; | |
17232 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17233 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17234 | Py_INCREF(obj); | |
17235 | return Py_BuildValue((char *)""); | |
17236 | } | |
17237 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17238 | PyObject *resultobj; | |
17239 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17240 | int arg2 = (int) 0 ; | |
17241 | wxCloseEvent *result; | |
17242 | PyObject * obj0 = 0 ; | |
17243 | PyObject * obj1 = 0 ; | |
17244 | char *kwnames[] = { | |
17245 | (char *) "type",(char *) "winid", NULL | |
17246 | }; | |
17247 | ||
17248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17249 | if (obj0) { | |
17250 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
17251 | if (PyErr_Occurred()) SWIG_fail; | |
17252 | } | |
17253 | if (obj1) { | |
17254 | arg2 = (int) SWIG_AsInt(obj1); | |
17255 | if (PyErr_Occurred()) SWIG_fail; | |
17256 | } | |
17257 | { | |
17258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17259 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17260 | ||
17261 | wxPyEndAllowThreads(__tstate); | |
17262 | if (PyErr_Occurred()) SWIG_fail; | |
17263 | } | |
17264 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); | |
17265 | return resultobj; | |
17266 | fail: | |
17267 | return NULL; | |
17268 | } | |
17269 | ||
17270 | ||
17271 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17272 | PyObject *resultobj; | |
17273 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17274 | bool arg2 ; | |
17275 | PyObject * obj0 = 0 ; | |
17276 | PyObject * obj1 = 0 ; | |
17277 | char *kwnames[] = { | |
17278 | (char *) "self",(char *) "logOff", NULL | |
17279 | }; | |
17280 | ||
17281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
17282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17284 | arg2 = (bool) SWIG_AsBool(obj1); | |
17285 | if (PyErr_Occurred()) SWIG_fail; | |
17286 | { | |
17287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17288 | (arg1)->SetLoggingOff(arg2); | |
17289 | ||
17290 | wxPyEndAllowThreads(__tstate); | |
17291 | if (PyErr_Occurred()) SWIG_fail; | |
17292 | } | |
17293 | Py_INCREF(Py_None); resultobj = Py_None; | |
17294 | return resultobj; | |
17295 | fail: | |
17296 | return NULL; | |
17297 | } | |
17298 | ||
17299 | ||
17300 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17301 | PyObject *resultobj; | |
17302 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17303 | bool result; | |
17304 | PyObject * obj0 = 0 ; | |
17305 | char *kwnames[] = { | |
17306 | (char *) "self", NULL | |
17307 | }; | |
17308 | ||
17309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
17310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17312 | { | |
17313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17314 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17315 | ||
17316 | wxPyEndAllowThreads(__tstate); | |
17317 | if (PyErr_Occurred()) SWIG_fail; | |
17318 | } | |
17319 | { | |
17320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17321 | } | |
17322 | return resultobj; | |
17323 | fail: | |
17324 | return NULL; | |
17325 | } | |
17326 | ||
17327 | ||
17328 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17329 | PyObject *resultobj; | |
17330 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17331 | bool arg2 = (bool) True ; | |
17332 | PyObject * obj0 = 0 ; | |
17333 | PyObject * obj1 = 0 ; | |
17334 | char *kwnames[] = { | |
17335 | (char *) "self",(char *) "veto", NULL | |
17336 | }; | |
17337 | ||
17338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
17339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17341 | if (obj1) { | |
17342 | arg2 = (bool) SWIG_AsBool(obj1); | |
17343 | if (PyErr_Occurred()) SWIG_fail; | |
17344 | } | |
17345 | { | |
17346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17347 | (arg1)->Veto(arg2); | |
17348 | ||
17349 | wxPyEndAllowThreads(__tstate); | |
17350 | if (PyErr_Occurred()) SWIG_fail; | |
17351 | } | |
17352 | Py_INCREF(Py_None); resultobj = Py_None; | |
17353 | return resultobj; | |
17354 | fail: | |
17355 | return NULL; | |
17356 | } | |
17357 | ||
17358 | ||
17359 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17360 | PyObject *resultobj; | |
17361 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17362 | bool arg2 ; | |
17363 | PyObject * obj0 = 0 ; | |
17364 | PyObject * obj1 = 0 ; | |
17365 | char *kwnames[] = { | |
17366 | (char *) "self",(char *) "canVeto", NULL | |
17367 | }; | |
17368 | ||
17369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
17370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17372 | arg2 = (bool) SWIG_AsBool(obj1); | |
17373 | if (PyErr_Occurred()) SWIG_fail; | |
17374 | { | |
17375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17376 | (arg1)->SetCanVeto(arg2); | |
17377 | ||
17378 | wxPyEndAllowThreads(__tstate); | |
17379 | if (PyErr_Occurred()) SWIG_fail; | |
17380 | } | |
17381 | Py_INCREF(Py_None); resultobj = Py_None; | |
17382 | return resultobj; | |
17383 | fail: | |
17384 | return NULL; | |
17385 | } | |
17386 | ||
17387 | ||
17388 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17389 | PyObject *resultobj; | |
17390 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17391 | bool result; | |
17392 | PyObject * obj0 = 0 ; | |
17393 | char *kwnames[] = { | |
17394 | (char *) "self", NULL | |
17395 | }; | |
17396 | ||
17397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
17398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17400 | { | |
17401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17402 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17403 | ||
17404 | wxPyEndAllowThreads(__tstate); | |
17405 | if (PyErr_Occurred()) SWIG_fail; | |
17406 | } | |
17407 | { | |
17408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17409 | } | |
17410 | return resultobj; | |
17411 | fail: | |
17412 | return NULL; | |
17413 | } | |
17414 | ||
17415 | ||
17416 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17417 | PyObject *resultobj; | |
17418 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17419 | bool result; | |
17420 | PyObject * obj0 = 0 ; | |
17421 | char *kwnames[] = { | |
17422 | (char *) "self", NULL | |
17423 | }; | |
17424 | ||
17425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
17426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17428 | { | |
17429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17430 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17431 | ||
17432 | wxPyEndAllowThreads(__tstate); | |
17433 | if (PyErr_Occurred()) SWIG_fail; | |
17434 | } | |
17435 | { | |
17436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17437 | } | |
17438 | return resultobj; | |
17439 | fail: | |
17440 | return NULL; | |
17441 | } | |
17442 | ||
17443 | ||
17444 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
17445 | PyObject *obj; | |
17446 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17447 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17448 | Py_INCREF(obj); | |
17449 | return Py_BuildValue((char *)""); | |
17450 | } | |
17451 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17452 | PyObject *resultobj; | |
17453 | int arg1 = (int) 0 ; | |
17454 | bool arg2 = (bool) False ; | |
17455 | wxShowEvent *result; | |
17456 | PyObject * obj0 = 0 ; | |
17457 | PyObject * obj1 = 0 ; | |
17458 | char *kwnames[] = { | |
17459 | (char *) "winid",(char *) "show", NULL | |
17460 | }; | |
17461 | ||
17462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; | |
17463 | if (obj0) { | |
17464 | arg1 = (int) SWIG_AsInt(obj0); | |
17465 | if (PyErr_Occurred()) SWIG_fail; | |
17466 | } | |
17467 | if (obj1) { | |
17468 | arg2 = (bool) SWIG_AsBool(obj1); | |
17469 | if (PyErr_Occurred()) SWIG_fail; | |
17470 | } | |
17471 | { | |
17472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17473 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17474 | ||
17475 | wxPyEndAllowThreads(__tstate); | |
17476 | if (PyErr_Occurred()) SWIG_fail; | |
17477 | } | |
17478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); | |
17479 | return resultobj; | |
17480 | fail: | |
17481 | return NULL; | |
17482 | } | |
17483 | ||
17484 | ||
17485 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17486 | PyObject *resultobj; | |
17487 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17488 | bool arg2 ; | |
17489 | PyObject * obj0 = 0 ; | |
17490 | PyObject * obj1 = 0 ; | |
17491 | char *kwnames[] = { | |
17492 | (char *) "self",(char *) "show", NULL | |
17493 | }; | |
17494 | ||
17495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
17496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
17497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17498 | arg2 = (bool) SWIG_AsBool(obj1); | |
17499 | if (PyErr_Occurred()) SWIG_fail; | |
17500 | { | |
17501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17502 | (arg1)->SetShow(arg2); | |
17503 | ||
17504 | wxPyEndAllowThreads(__tstate); | |
17505 | if (PyErr_Occurred()) SWIG_fail; | |
17506 | } | |
17507 | Py_INCREF(Py_None); resultobj = Py_None; | |
17508 | return resultobj; | |
17509 | fail: | |
17510 | return NULL; | |
17511 | } | |
17512 | ||
17513 | ||
17514 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17515 | PyObject *resultobj; | |
17516 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17517 | bool result; | |
17518 | PyObject * obj0 = 0 ; | |
17519 | char *kwnames[] = { | |
17520 | (char *) "self", NULL | |
17521 | }; | |
17522 | ||
17523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
17524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
17525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17526 | { | |
17527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17528 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17529 | ||
17530 | wxPyEndAllowThreads(__tstate); | |
17531 | if (PyErr_Occurred()) SWIG_fail; | |
17532 | } | |
17533 | { | |
17534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17535 | } | |
17536 | return resultobj; | |
17537 | fail: | |
17538 | return NULL; | |
17539 | } | |
17540 | ||
17541 | ||
17542 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
17543 | PyObject *obj; | |
17544 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17545 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17546 | Py_INCREF(obj); | |
17547 | return Py_BuildValue((char *)""); | |
17548 | } | |
17549 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17550 | PyObject *resultobj; | |
17551 | int arg1 = (int) 0 ; | |
17552 | bool arg2 = (bool) True ; | |
17553 | wxIconizeEvent *result; | |
17554 | PyObject * obj0 = 0 ; | |
17555 | PyObject * obj1 = 0 ; | |
17556 | char *kwnames[] = { | |
17557 | (char *) "id",(char *) "iconized", NULL | |
17558 | }; | |
17559 | ||
17560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
17561 | if (obj0) { | |
17562 | arg1 = (int) SWIG_AsInt(obj0); | |
17563 | if (PyErr_Occurred()) SWIG_fail; | |
17564 | } | |
17565 | if (obj1) { | |
17566 | arg2 = (bool) SWIG_AsBool(obj1); | |
17567 | if (PyErr_Occurred()) SWIG_fail; | |
17568 | } | |
17569 | { | |
17570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17571 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
17572 | ||
17573 | wxPyEndAllowThreads(__tstate); | |
17574 | if (PyErr_Occurred()) SWIG_fail; | |
17575 | } | |
17576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); | |
17577 | return resultobj; | |
17578 | fail: | |
17579 | return NULL; | |
17580 | } | |
17581 | ||
17582 | ||
17583 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17584 | PyObject *resultobj; | |
17585 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17586 | bool result; | |
17587 | PyObject * obj0 = 0 ; | |
17588 | char *kwnames[] = { | |
17589 | (char *) "self", NULL | |
17590 | }; | |
17591 | ||
17592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
17593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, | |
17594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17595 | { | |
17596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17597 | result = (bool)(arg1)->Iconized(); | |
17598 | ||
17599 | wxPyEndAllowThreads(__tstate); | |
17600 | if (PyErr_Occurred()) SWIG_fail; | |
17601 | } | |
17602 | { | |
17603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17604 | } | |
17605 | return resultobj; | |
17606 | fail: | |
17607 | return NULL; | |
17608 | } | |
17609 | ||
17610 | ||
17611 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17612 | PyObject *obj; | |
17613 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17614 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17615 | Py_INCREF(obj); | |
17616 | return Py_BuildValue((char *)""); | |
17617 | } | |
17618 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17619 | PyObject *resultobj; | |
17620 | int arg1 = (int) 0 ; | |
17621 | wxMaximizeEvent *result; | |
17622 | PyObject * obj0 = 0 ; | |
17623 | char *kwnames[] = { | |
17624 | (char *) "id", NULL | |
17625 | }; | |
17626 | ||
17627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; | |
17628 | if (obj0) { | |
17629 | arg1 = (int) SWIG_AsInt(obj0); | |
17630 | if (PyErr_Occurred()) SWIG_fail; | |
17631 | } | |
17632 | { | |
17633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17634 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17635 | ||
17636 | wxPyEndAllowThreads(__tstate); | |
17637 | if (PyErr_Occurred()) SWIG_fail; | |
17638 | } | |
17639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); | |
17640 | return resultobj; | |
17641 | fail: | |
17642 | return NULL; | |
17643 | } | |
17644 | ||
17645 | ||
17646 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17647 | PyObject *obj; | |
17648 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17649 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17650 | Py_INCREF(obj); | |
17651 | return Py_BuildValue((char *)""); | |
17652 | } | |
17653 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17654 | PyObject *resultobj; | |
17655 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17656 | wxPoint result; | |
17657 | PyObject * obj0 = 0 ; | |
17658 | char *kwnames[] = { | |
17659 | (char *) "self", NULL | |
17660 | }; | |
17661 | ||
17662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
17663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
17664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17665 | { | |
17666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17667 | result = (arg1)->GetPosition(); | |
17668 | ||
17669 | wxPyEndAllowThreads(__tstate); | |
17670 | if (PyErr_Occurred()) SWIG_fail; | |
17671 | } | |
17672 | { | |
17673 | wxPoint * resultptr; | |
17674 | resultptr = new wxPoint((wxPoint &) result); | |
17675 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
17676 | } | |
17677 | return resultobj; | |
17678 | fail: | |
17679 | return NULL; | |
17680 | } | |
17681 | ||
17682 | ||
17683 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17684 | PyObject *resultobj; | |
17685 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17686 | int result; | |
17687 | PyObject * obj0 = 0 ; | |
17688 | char *kwnames[] = { | |
17689 | (char *) "self", NULL | |
17690 | }; | |
17691 | ||
17692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
17693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
17694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17695 | { | |
17696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17697 | result = (int)(arg1)->GetNumberOfFiles(); | |
17698 | ||
17699 | wxPyEndAllowThreads(__tstate); | |
17700 | if (PyErr_Occurred()) SWIG_fail; | |
17701 | } | |
17702 | resultobj = SWIG_FromInt((int)result); | |
17703 | return resultobj; | |
17704 | fail: | |
17705 | return NULL; | |
17706 | } | |
17707 | ||
17708 | ||
17709 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17710 | PyObject *resultobj; | |
17711 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17712 | PyObject *result; | |
17713 | PyObject * obj0 = 0 ; | |
17714 | char *kwnames[] = { | |
17715 | (char *) "self", NULL | |
17716 | }; | |
17717 | ||
17718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
17719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
17720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17721 | { | |
17722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17723 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17724 | ||
17725 | wxPyEndAllowThreads(__tstate); | |
17726 | if (PyErr_Occurred()) SWIG_fail; | |
17727 | } | |
17728 | resultobj = result; | |
17729 | return resultobj; | |
17730 | fail: | |
17731 | return NULL; | |
17732 | } | |
17733 | ||
17734 | ||
17735 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17736 | PyObject *obj; | |
17737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17738 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17739 | Py_INCREF(obj); | |
17740 | return Py_BuildValue((char *)""); | |
17741 | } | |
17742 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17743 | PyObject *resultobj; | |
17744 | int arg1 = (int) 0 ; | |
17745 | wxUpdateUIEvent *result; | |
17746 | PyObject * obj0 = 0 ; | |
17747 | char *kwnames[] = { | |
17748 | (char *) "commandId", NULL | |
17749 | }; | |
17750 | ||
17751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; | |
17752 | if (obj0) { | |
17753 | arg1 = (int) SWIG_AsInt(obj0); | |
17754 | if (PyErr_Occurred()) SWIG_fail; | |
17755 | } | |
17756 | { | |
17757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17758 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17759 | ||
17760 | wxPyEndAllowThreads(__tstate); | |
17761 | if (PyErr_Occurred()) SWIG_fail; | |
17762 | } | |
17763 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); | |
17764 | return resultobj; | |
17765 | fail: | |
17766 | return NULL; | |
17767 | } | |
17768 | ||
17769 | ||
17770 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17771 | PyObject *resultobj; | |
17772 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17773 | bool result; | |
17774 | PyObject * obj0 = 0 ; | |
17775 | char *kwnames[] = { | |
17776 | (char *) "self", NULL | |
17777 | }; | |
17778 | ||
17779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
17780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17782 | { | |
17783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17784 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17785 | ||
17786 | wxPyEndAllowThreads(__tstate); | |
17787 | if (PyErr_Occurred()) SWIG_fail; | |
17788 | } | |
17789 | { | |
17790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17791 | } | |
17792 | return resultobj; | |
17793 | fail: | |
17794 | return NULL; | |
17795 | } | |
17796 | ||
17797 | ||
17798 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17799 | PyObject *resultobj; | |
17800 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17801 | bool result; | |
17802 | PyObject * obj0 = 0 ; | |
17803 | char *kwnames[] = { | |
17804 | (char *) "self", NULL | |
17805 | }; | |
17806 | ||
17807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
17808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17810 | { | |
17811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17812 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17813 | ||
17814 | wxPyEndAllowThreads(__tstate); | |
17815 | if (PyErr_Occurred()) SWIG_fail; | |
17816 | } | |
17817 | { | |
17818 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17819 | } | |
17820 | return resultobj; | |
17821 | fail: | |
17822 | return NULL; | |
17823 | } | |
17824 | ||
17825 | ||
17826 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17827 | PyObject *resultobj; | |
17828 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17829 | wxString result; | |
17830 | PyObject * obj0 = 0 ; | |
17831 | char *kwnames[] = { | |
17832 | (char *) "self", NULL | |
17833 | }; | |
17834 | ||
17835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
17836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17838 | { | |
17839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17840 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17841 | ||
17842 | wxPyEndAllowThreads(__tstate); | |
17843 | if (PyErr_Occurred()) SWIG_fail; | |
17844 | } | |
17845 | { | |
17846 | #if wxUSE_UNICODE | |
17847 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17848 | #else | |
17849 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17850 | #endif | |
17851 | } | |
17852 | return resultobj; | |
17853 | fail: | |
17854 | return NULL; | |
17855 | } | |
17856 | ||
17857 | ||
17858 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17859 | PyObject *resultobj; | |
17860 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17861 | bool result; | |
17862 | PyObject * obj0 = 0 ; | |
17863 | char *kwnames[] = { | |
17864 | (char *) "self", NULL | |
17865 | }; | |
17866 | ||
17867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
17868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17870 | { | |
17871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17872 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17873 | ||
17874 | wxPyEndAllowThreads(__tstate); | |
17875 | if (PyErr_Occurred()) SWIG_fail; | |
17876 | } | |
17877 | { | |
17878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17879 | } | |
17880 | return resultobj; | |
17881 | fail: | |
17882 | return NULL; | |
17883 | } | |
17884 | ||
17885 | ||
17886 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17887 | PyObject *resultobj; | |
17888 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17889 | bool result; | |
17890 | PyObject * obj0 = 0 ; | |
17891 | char *kwnames[] = { | |
17892 | (char *) "self", NULL | |
17893 | }; | |
17894 | ||
17895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
17896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17898 | { | |
17899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17900 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
17901 | ||
17902 | wxPyEndAllowThreads(__tstate); | |
17903 | if (PyErr_Occurred()) SWIG_fail; | |
17904 | } | |
17905 | { | |
17906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17907 | } | |
17908 | return resultobj; | |
17909 | fail: | |
17910 | return NULL; | |
17911 | } | |
17912 | ||
17913 | ||
17914 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17915 | PyObject *resultobj; | |
17916 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17917 | bool result; | |
17918 | PyObject * obj0 = 0 ; | |
17919 | char *kwnames[] = { | |
17920 | (char *) "self", NULL | |
17921 | }; | |
17922 | ||
17923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
17924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17926 | { | |
17927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17928 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
17929 | ||
17930 | wxPyEndAllowThreads(__tstate); | |
17931 | if (PyErr_Occurred()) SWIG_fail; | |
17932 | } | |
17933 | { | |
17934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17935 | } | |
17936 | return resultobj; | |
17937 | fail: | |
17938 | return NULL; | |
17939 | } | |
17940 | ||
17941 | ||
17942 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17943 | PyObject *resultobj; | |
17944 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17945 | bool arg2 ; | |
17946 | PyObject * obj0 = 0 ; | |
17947 | PyObject * obj1 = 0 ; | |
17948 | char *kwnames[] = { | |
17949 | (char *) "self",(char *) "check", NULL | |
17950 | }; | |
17951 | ||
17952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
17953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17955 | arg2 = (bool) SWIG_AsBool(obj1); | |
17956 | if (PyErr_Occurred()) SWIG_fail; | |
17957 | { | |
17958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17959 | (arg1)->Check(arg2); | |
17960 | ||
17961 | wxPyEndAllowThreads(__tstate); | |
17962 | if (PyErr_Occurred()) SWIG_fail; | |
17963 | } | |
17964 | Py_INCREF(Py_None); resultobj = Py_None; | |
17965 | return resultobj; | |
17966 | fail: | |
17967 | return NULL; | |
17968 | } | |
17969 | ||
17970 | ||
17971 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17972 | PyObject *resultobj; | |
17973 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17974 | bool arg2 ; | |
17975 | PyObject * obj0 = 0 ; | |
17976 | PyObject * obj1 = 0 ; | |
17977 | char *kwnames[] = { | |
17978 | (char *) "self",(char *) "enable", NULL | |
17979 | }; | |
17980 | ||
17981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
17982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17984 | arg2 = (bool) SWIG_AsBool(obj1); | |
17985 | if (PyErr_Occurred()) SWIG_fail; | |
17986 | { | |
17987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17988 | (arg1)->Enable(arg2); | |
17989 | ||
17990 | wxPyEndAllowThreads(__tstate); | |
17991 | if (PyErr_Occurred()) SWIG_fail; | |
17992 | } | |
17993 | Py_INCREF(Py_None); resultobj = Py_None; | |
17994 | return resultobj; | |
17995 | fail: | |
17996 | return NULL; | |
17997 | } | |
17998 | ||
17999 | ||
18000 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18001 | PyObject *resultobj; | |
18002 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18003 | wxString *arg2 = 0 ; | |
18004 | bool temp2 = False ; | |
18005 | PyObject * obj0 = 0 ; | |
18006 | PyObject * obj1 = 0 ; | |
18007 | char *kwnames[] = { | |
18008 | (char *) "self",(char *) "text", NULL | |
18009 | }; | |
18010 | ||
18011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18014 | { | |
18015 | arg2 = wxString_in_helper(obj1); | |
18016 | if (arg2 == NULL) SWIG_fail; | |
18017 | temp2 = True; | |
18018 | } | |
18019 | { | |
18020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18021 | (arg1)->SetText((wxString const &)*arg2); | |
18022 | ||
18023 | wxPyEndAllowThreads(__tstate); | |
18024 | if (PyErr_Occurred()) SWIG_fail; | |
18025 | } | |
18026 | Py_INCREF(Py_None); resultobj = Py_None; | |
18027 | { | |
18028 | if (temp2) | |
18029 | delete arg2; | |
18030 | } | |
18031 | return resultobj; | |
18032 | fail: | |
18033 | { | |
18034 | if (temp2) | |
18035 | delete arg2; | |
18036 | } | |
18037 | return NULL; | |
18038 | } | |
18039 | ||
18040 | ||
18041 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18042 | PyObject *resultobj; | |
18043 | long arg1 ; | |
18044 | PyObject * obj0 = 0 ; | |
18045 | char *kwnames[] = { | |
18046 | (char *) "updateInterval", NULL | |
18047 | }; | |
18048 | ||
18049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; | |
18050 | arg1 = (long) SWIG_AsLong(obj0); | |
18051 | if (PyErr_Occurred()) SWIG_fail; | |
18052 | { | |
18053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18054 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18055 | ||
18056 | wxPyEndAllowThreads(__tstate); | |
18057 | if (PyErr_Occurred()) SWIG_fail; | |
18058 | } | |
18059 | Py_INCREF(Py_None); resultobj = Py_None; | |
18060 | return resultobj; | |
18061 | fail: | |
18062 | return NULL; | |
18063 | } | |
18064 | ||
18065 | ||
18066 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18067 | PyObject *resultobj; | |
18068 | long result; | |
18069 | char *kwnames[] = { | |
18070 | NULL | |
18071 | }; | |
18072 | ||
18073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18074 | { | |
18075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18076 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18077 | ||
18078 | wxPyEndAllowThreads(__tstate); | |
18079 | if (PyErr_Occurred()) SWIG_fail; | |
18080 | } | |
18081 | resultobj = SWIG_FromLong((long)result); | |
18082 | return resultobj; | |
18083 | fail: | |
18084 | return NULL; | |
18085 | } | |
18086 | ||
18087 | ||
18088 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18089 | PyObject *resultobj; | |
18090 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18091 | bool result; | |
18092 | PyObject * obj0 = 0 ; | |
18093 | char *kwnames[] = { | |
18094 | (char *) "win", NULL | |
18095 | }; | |
18096 | ||
18097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
18098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18100 | { | |
18101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18102 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18103 | ||
18104 | wxPyEndAllowThreads(__tstate); | |
18105 | if (PyErr_Occurred()) SWIG_fail; | |
18106 | } | |
18107 | { | |
18108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18109 | } | |
18110 | return resultobj; | |
18111 | fail: | |
18112 | return NULL; | |
18113 | } | |
18114 | ||
18115 | ||
18116 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18117 | PyObject *resultobj; | |
18118 | char *kwnames[] = { | |
18119 | NULL | |
18120 | }; | |
18121 | ||
18122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18123 | { | |
18124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18125 | wxUpdateUIEvent::ResetUpdateTime(); | |
18126 | ||
18127 | wxPyEndAllowThreads(__tstate); | |
18128 | if (PyErr_Occurred()) SWIG_fail; | |
18129 | } | |
18130 | Py_INCREF(Py_None); resultobj = Py_None; | |
18131 | return resultobj; | |
18132 | fail: | |
18133 | return NULL; | |
18134 | } | |
18135 | ||
18136 | ||
18137 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18138 | PyObject *resultobj; | |
18139 | int arg1 ; | |
18140 | PyObject * obj0 = 0 ; | |
18141 | char *kwnames[] = { | |
18142 | (char *) "mode", NULL | |
18143 | }; | |
18144 | ||
18145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; | |
18146 | arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); | |
18147 | if (PyErr_Occurred()) SWIG_fail; | |
18148 | { | |
18149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18150 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18151 | ||
18152 | wxPyEndAllowThreads(__tstate); | |
18153 | if (PyErr_Occurred()) SWIG_fail; | |
18154 | } | |
18155 | Py_INCREF(Py_None); resultobj = Py_None; | |
18156 | return resultobj; | |
18157 | fail: | |
18158 | return NULL; | |
18159 | } | |
18160 | ||
18161 | ||
18162 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18163 | PyObject *resultobj; | |
18164 | int result; | |
18165 | char *kwnames[] = { | |
18166 | NULL | |
18167 | }; | |
18168 | ||
18169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18170 | { | |
18171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18172 | result = (int)wxUpdateUIEvent::GetMode(); | |
18173 | ||
18174 | wxPyEndAllowThreads(__tstate); | |
18175 | if (PyErr_Occurred()) SWIG_fail; | |
18176 | } | |
18177 | resultobj = SWIG_FromInt((int)result); | |
18178 | return resultobj; | |
18179 | fail: | |
18180 | return NULL; | |
18181 | } | |
18182 | ||
18183 | ||
18184 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
18185 | PyObject *obj; | |
18186 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18187 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18188 | Py_INCREF(obj); | |
18189 | return Py_BuildValue((char *)""); | |
18190 | } | |
18191 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18192 | PyObject *resultobj; | |
18193 | wxSysColourChangedEvent *result; | |
18194 | char *kwnames[] = { | |
18195 | NULL | |
18196 | }; | |
18197 | ||
18198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18199 | { | |
18200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18201 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18202 | ||
18203 | wxPyEndAllowThreads(__tstate); | |
18204 | if (PyErr_Occurred()) SWIG_fail; | |
18205 | } | |
18206 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
18207 | return resultobj; | |
18208 | fail: | |
18209 | return NULL; | |
18210 | } | |
18211 | ||
18212 | ||
18213 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18214 | PyObject *obj; | |
18215 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18216 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18217 | Py_INCREF(obj); | |
18218 | return Py_BuildValue((char *)""); | |
18219 | } | |
18220 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18221 | PyObject *resultobj; | |
18222 | int arg1 = (int) 0 ; | |
18223 | wxWindow *arg2 = (wxWindow *) NULL ; | |
18224 | wxMouseCaptureChangedEvent *result; | |
18225 | PyObject * obj0 = 0 ; | |
18226 | PyObject * obj1 = 0 ; | |
18227 | char *kwnames[] = { | |
18228 | (char *) "winid",(char *) "gainedCapture", NULL | |
18229 | }; | |
18230 | ||
18231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; | |
18232 | if (obj0) { | |
18233 | arg1 = (int) SWIG_AsInt(obj0); | |
18234 | if (PyErr_Occurred()) SWIG_fail; | |
18235 | } | |
18236 | if (obj1) { | |
18237 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18239 | } | |
18240 | { | |
18241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18242 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18243 | ||
18244 | wxPyEndAllowThreads(__tstate); | |
18245 | if (PyErr_Occurred()) SWIG_fail; | |
18246 | } | |
18247 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
18248 | return resultobj; | |
18249 | fail: | |
18250 | return NULL; | |
18251 | } | |
18252 | ||
18253 | ||
18254 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18255 | PyObject *resultobj; | |
18256 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18257 | wxWindow *result; | |
18258 | PyObject * obj0 = 0 ; | |
18259 | char *kwnames[] = { | |
18260 | (char *) "self", NULL | |
18261 | }; | |
18262 | ||
18263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
18264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, | |
18265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18266 | { | |
18267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18268 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18269 | ||
18270 | wxPyEndAllowThreads(__tstate); | |
18271 | if (PyErr_Occurred()) SWIG_fail; | |
18272 | } | |
18273 | { | |
18274 | resultobj = wxPyMake_wxObject(result); | |
18275 | } | |
18276 | return resultobj; | |
18277 | fail: | |
18278 | return NULL; | |
18279 | } | |
18280 | ||
18281 | ||
18282 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18283 | PyObject *obj; | |
18284 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18285 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18286 | Py_INCREF(obj); | |
18287 | return Py_BuildValue((char *)""); | |
18288 | } | |
18289 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18290 | PyObject *resultobj; | |
18291 | wxDisplayChangedEvent *result; | |
18292 | char *kwnames[] = { | |
18293 | NULL | |
18294 | }; | |
18295 | ||
18296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18297 | { | |
18298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18299 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18300 | ||
18301 | wxPyEndAllowThreads(__tstate); | |
18302 | if (PyErr_Occurred()) SWIG_fail; | |
18303 | } | |
18304 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
18305 | return resultobj; | |
18306 | fail: | |
18307 | return NULL; | |
18308 | } | |
18309 | ||
18310 | ||
18311 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18312 | PyObject *obj; | |
18313 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18314 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18315 | Py_INCREF(obj); | |
18316 | return Py_BuildValue((char *)""); | |
18317 | } | |
18318 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18319 | PyObject *resultobj; | |
18320 | int arg1 = (int) 0 ; | |
18321 | wxPaletteChangedEvent *result; | |
18322 | PyObject * obj0 = 0 ; | |
18323 | char *kwnames[] = { | |
18324 | (char *) "id", NULL | |
18325 | }; | |
18326 | ||
18327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; | |
18328 | if (obj0) { | |
18329 | arg1 = (int) SWIG_AsInt(obj0); | |
18330 | if (PyErr_Occurred()) SWIG_fail; | |
18331 | } | |
18332 | { | |
18333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18334 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18335 | ||
18336 | wxPyEndAllowThreads(__tstate); | |
18337 | if (PyErr_Occurred()) SWIG_fail; | |
18338 | } | |
18339 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
18340 | return resultobj; | |
18341 | fail: | |
18342 | return NULL; | |
18343 | } | |
18344 | ||
18345 | ||
18346 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18347 | PyObject *resultobj; | |
18348 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18349 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18350 | PyObject * obj0 = 0 ; | |
18351 | PyObject * obj1 = 0 ; | |
18352 | char *kwnames[] = { | |
18353 | (char *) "self",(char *) "win", NULL | |
18354 | }; | |
18355 | ||
18356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
18357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18359 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18361 | { | |
18362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18363 | (arg1)->SetChangedWindow(arg2); | |
18364 | ||
18365 | wxPyEndAllowThreads(__tstate); | |
18366 | if (PyErr_Occurred()) SWIG_fail; | |
18367 | } | |
18368 | Py_INCREF(Py_None); resultobj = Py_None; | |
18369 | return resultobj; | |
18370 | fail: | |
18371 | return NULL; | |
18372 | } | |
18373 | ||
18374 | ||
18375 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18376 | PyObject *resultobj; | |
18377 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18378 | wxWindow *result; | |
18379 | PyObject * obj0 = 0 ; | |
18380 | char *kwnames[] = { | |
18381 | (char *) "self", NULL | |
18382 | }; | |
18383 | ||
18384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
18385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18387 | { | |
18388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18389 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18390 | ||
18391 | wxPyEndAllowThreads(__tstate); | |
18392 | if (PyErr_Occurred()) SWIG_fail; | |
18393 | } | |
18394 | { | |
18395 | resultobj = wxPyMake_wxObject(result); | |
18396 | } | |
18397 | return resultobj; | |
18398 | fail: | |
18399 | return NULL; | |
18400 | } | |
18401 | ||
18402 | ||
18403 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18404 | PyObject *obj; | |
18405 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18406 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18407 | Py_INCREF(obj); | |
18408 | return Py_BuildValue((char *)""); | |
18409 | } | |
18410 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18411 | PyObject *resultobj; | |
18412 | int arg1 = (int) 0 ; | |
18413 | wxQueryNewPaletteEvent *result; | |
18414 | PyObject * obj0 = 0 ; | |
18415 | char *kwnames[] = { | |
18416 | (char *) "winid", NULL | |
18417 | }; | |
18418 | ||
18419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; | |
18420 | if (obj0) { | |
18421 | arg1 = (int) SWIG_AsInt(obj0); | |
18422 | if (PyErr_Occurred()) SWIG_fail; | |
18423 | } | |
18424 | { | |
18425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18426 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18427 | ||
18428 | wxPyEndAllowThreads(__tstate); | |
18429 | if (PyErr_Occurred()) SWIG_fail; | |
18430 | } | |
18431 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
18432 | return resultobj; | |
18433 | fail: | |
18434 | return NULL; | |
18435 | } | |
18436 | ||
18437 | ||
18438 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18439 | PyObject *resultobj; | |
18440 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18441 | bool arg2 ; | |
18442 | PyObject * obj0 = 0 ; | |
18443 | PyObject * obj1 = 0 ; | |
18444 | char *kwnames[] = { | |
18445 | (char *) "self",(char *) "realized", NULL | |
18446 | }; | |
18447 | ||
18448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
18449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18451 | arg2 = (bool) SWIG_AsBool(obj1); | |
18452 | if (PyErr_Occurred()) SWIG_fail; | |
18453 | { | |
18454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18455 | (arg1)->SetPaletteRealized(arg2); | |
18456 | ||
18457 | wxPyEndAllowThreads(__tstate); | |
18458 | if (PyErr_Occurred()) SWIG_fail; | |
18459 | } | |
18460 | Py_INCREF(Py_None); resultobj = Py_None; | |
18461 | return resultobj; | |
18462 | fail: | |
18463 | return NULL; | |
18464 | } | |
18465 | ||
18466 | ||
18467 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18468 | PyObject *resultobj; | |
18469 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18470 | bool result; | |
18471 | PyObject * obj0 = 0 ; | |
18472 | char *kwnames[] = { | |
18473 | (char *) "self", NULL | |
18474 | }; | |
18475 | ||
18476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
18477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18479 | { | |
18480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18481 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18482 | ||
18483 | wxPyEndAllowThreads(__tstate); | |
18484 | if (PyErr_Occurred()) SWIG_fail; | |
18485 | } | |
18486 | { | |
18487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18488 | } | |
18489 | return resultobj; | |
18490 | fail: | |
18491 | return NULL; | |
18492 | } | |
18493 | ||
18494 | ||
18495 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
18496 | PyObject *obj; | |
18497 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18498 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18499 | Py_INCREF(obj); | |
18500 | return Py_BuildValue((char *)""); | |
18501 | } | |
18502 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18503 | PyObject *resultobj; | |
18504 | wxNavigationKeyEvent *result; | |
18505 | char *kwnames[] = { | |
18506 | NULL | |
18507 | }; | |
18508 | ||
18509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18510 | { | |
18511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18512 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18513 | ||
18514 | wxPyEndAllowThreads(__tstate); | |
18515 | if (PyErr_Occurred()) SWIG_fail; | |
18516 | } | |
18517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
18518 | return resultobj; | |
18519 | fail: | |
18520 | return NULL; | |
18521 | } | |
18522 | ||
18523 | ||
18524 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18525 | PyObject *resultobj; | |
18526 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18527 | bool result; | |
18528 | PyObject * obj0 = 0 ; | |
18529 | char *kwnames[] = { | |
18530 | (char *) "self", NULL | |
18531 | }; | |
18532 | ||
18533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
18534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18536 | { | |
18537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18538 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18539 | ||
18540 | wxPyEndAllowThreads(__tstate); | |
18541 | if (PyErr_Occurred()) SWIG_fail; | |
18542 | } | |
18543 | { | |
18544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18545 | } | |
18546 | return resultobj; | |
18547 | fail: | |
18548 | return NULL; | |
18549 | } | |
18550 | ||
18551 | ||
18552 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18553 | PyObject *resultobj; | |
18554 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18555 | bool arg2 ; | |
18556 | PyObject * obj0 = 0 ; | |
18557 | PyObject * obj1 = 0 ; | |
18558 | char *kwnames[] = { | |
18559 | (char *) "self",(char *) "bForward", NULL | |
18560 | }; | |
18561 | ||
18562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
18563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18565 | arg2 = (bool) SWIG_AsBool(obj1); | |
18566 | if (PyErr_Occurred()) SWIG_fail; | |
18567 | { | |
18568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18569 | (arg1)->SetDirection(arg2); | |
18570 | ||
18571 | wxPyEndAllowThreads(__tstate); | |
18572 | if (PyErr_Occurred()) SWIG_fail; | |
18573 | } | |
18574 | Py_INCREF(Py_None); resultobj = Py_None; | |
18575 | return resultobj; | |
18576 | fail: | |
18577 | return NULL; | |
18578 | } | |
18579 | ||
18580 | ||
18581 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18582 | PyObject *resultobj; | |
18583 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18584 | bool result; | |
18585 | PyObject * obj0 = 0 ; | |
18586 | char *kwnames[] = { | |
18587 | (char *) "self", NULL | |
18588 | }; | |
18589 | ||
18590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
18591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18593 | { | |
18594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18595 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
18596 | ||
18597 | wxPyEndAllowThreads(__tstate); | |
18598 | if (PyErr_Occurred()) SWIG_fail; | |
18599 | } | |
18600 | { | |
18601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18602 | } | |
18603 | return resultobj; | |
18604 | fail: | |
18605 | return NULL; | |
18606 | } | |
18607 | ||
18608 | ||
18609 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18610 | PyObject *resultobj; | |
18611 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18612 | bool arg2 ; | |
18613 | PyObject * obj0 = 0 ; | |
18614 | PyObject * obj1 = 0 ; | |
18615 | char *kwnames[] = { | |
18616 | (char *) "self",(char *) "bIs", NULL | |
18617 | }; | |
18618 | ||
18619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
18620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18622 | arg2 = (bool) SWIG_AsBool(obj1); | |
18623 | if (PyErr_Occurred()) SWIG_fail; | |
18624 | { | |
18625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18626 | (arg1)->SetWindowChange(arg2); | |
18627 | ||
18628 | wxPyEndAllowThreads(__tstate); | |
18629 | if (PyErr_Occurred()) SWIG_fail; | |
18630 | } | |
18631 | Py_INCREF(Py_None); resultobj = Py_None; | |
18632 | return resultobj; | |
18633 | fail: | |
18634 | return NULL; | |
18635 | } | |
18636 | ||
18637 | ||
18638 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18639 | PyObject *resultobj; | |
18640 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18641 | wxWindow *result; | |
18642 | PyObject * obj0 = 0 ; | |
18643 | char *kwnames[] = { | |
18644 | (char *) "self", NULL | |
18645 | }; | |
18646 | ||
18647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
18648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18650 | { | |
18651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18652 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18653 | ||
18654 | wxPyEndAllowThreads(__tstate); | |
18655 | if (PyErr_Occurred()) SWIG_fail; | |
18656 | } | |
18657 | { | |
18658 | resultobj = wxPyMake_wxObject(result); | |
18659 | } | |
18660 | return resultobj; | |
18661 | fail: | |
18662 | return NULL; | |
18663 | } | |
18664 | ||
18665 | ||
18666 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18667 | PyObject *resultobj; | |
18668 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18669 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18670 | PyObject * obj0 = 0 ; | |
18671 | PyObject * obj1 = 0 ; | |
18672 | char *kwnames[] = { | |
18673 | (char *) "self",(char *) "win", NULL | |
18674 | }; | |
18675 | ||
18676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
18677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18679 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18681 | { | |
18682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18683 | (arg1)->SetCurrentFocus(arg2); | |
18684 | ||
18685 | wxPyEndAllowThreads(__tstate); | |
18686 | if (PyErr_Occurred()) SWIG_fail; | |
18687 | } | |
18688 | Py_INCREF(Py_None); resultobj = Py_None; | |
18689 | return resultobj; | |
18690 | fail: | |
18691 | return NULL; | |
18692 | } | |
18693 | ||
18694 | ||
18695 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18696 | PyObject *obj; | |
18697 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18698 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18699 | Py_INCREF(obj); | |
18700 | return Py_BuildValue((char *)""); | |
18701 | } | |
18702 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18703 | PyObject *resultobj; | |
18704 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18705 | wxWindowCreateEvent *result; | |
18706 | PyObject * obj0 = 0 ; | |
18707 | char *kwnames[] = { | |
18708 | (char *) "win", NULL | |
18709 | }; | |
18710 | ||
18711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18712 | if (obj0) { | |
18713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18715 | } | |
18716 | { | |
18717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18718 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18719 | ||
18720 | wxPyEndAllowThreads(__tstate); | |
18721 | if (PyErr_Occurred()) SWIG_fail; | |
18722 | } | |
18723 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); | |
18724 | return resultobj; | |
18725 | fail: | |
18726 | return NULL; | |
18727 | } | |
18728 | ||
18729 | ||
18730 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18731 | PyObject *resultobj; | |
18732 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18733 | wxWindow *result; | |
18734 | PyObject * obj0 = 0 ; | |
18735 | char *kwnames[] = { | |
18736 | (char *) "self", NULL | |
18737 | }; | |
18738 | ||
18739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
18740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, | |
18741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18742 | { | |
18743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18744 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18745 | ||
18746 | wxPyEndAllowThreads(__tstate); | |
18747 | if (PyErr_Occurred()) SWIG_fail; | |
18748 | } | |
18749 | { | |
18750 | resultobj = wxPyMake_wxObject(result); | |
18751 | } | |
18752 | return resultobj; | |
18753 | fail: | |
18754 | return NULL; | |
18755 | } | |
18756 | ||
18757 | ||
18758 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18759 | PyObject *obj; | |
18760 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18761 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18762 | Py_INCREF(obj); | |
18763 | return Py_BuildValue((char *)""); | |
18764 | } | |
18765 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18766 | PyObject *resultobj; | |
18767 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18768 | wxWindowDestroyEvent *result; | |
18769 | PyObject * obj0 = 0 ; | |
18770 | char *kwnames[] = { | |
18771 | (char *) "win", NULL | |
18772 | }; | |
18773 | ||
18774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18775 | if (obj0) { | |
18776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18778 | } | |
18779 | { | |
18780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18781 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18782 | ||
18783 | wxPyEndAllowThreads(__tstate); | |
18784 | if (PyErr_Occurred()) SWIG_fail; | |
18785 | } | |
18786 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
18787 | return resultobj; | |
18788 | fail: | |
18789 | return NULL; | |
18790 | } | |
18791 | ||
18792 | ||
18793 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18794 | PyObject *resultobj; | |
18795 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18796 | wxWindow *result; | |
18797 | PyObject * obj0 = 0 ; | |
18798 | char *kwnames[] = { | |
18799 | (char *) "self", NULL | |
18800 | }; | |
18801 | ||
18802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
18803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, | |
18804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18805 | { | |
18806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18807 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18808 | ||
18809 | wxPyEndAllowThreads(__tstate); | |
18810 | if (PyErr_Occurred()) SWIG_fail; | |
18811 | } | |
18812 | { | |
18813 | resultobj = wxPyMake_wxObject(result); | |
18814 | } | |
18815 | return resultobj; | |
18816 | fail: | |
18817 | return NULL; | |
18818 | } | |
18819 | ||
18820 | ||
18821 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
18822 | PyObject *obj; | |
18823 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18824 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18825 | Py_INCREF(obj); | |
18826 | return Py_BuildValue((char *)""); | |
18827 | } | |
18828 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18829 | PyObject *resultobj; | |
18830 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18831 | int arg2 = (int) 0 ; | |
18832 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
18833 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18834 | wxContextMenuEvent *result; | |
18835 | wxPoint temp3 ; | |
18836 | PyObject * obj0 = 0 ; | |
18837 | PyObject * obj1 = 0 ; | |
18838 | PyObject * obj2 = 0 ; | |
18839 | char *kwnames[] = { | |
18840 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18841 | }; | |
18842 | ||
18843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18844 | if (obj0) { | |
18845 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
18846 | if (PyErr_Occurred()) SWIG_fail; | |
18847 | } | |
18848 | if (obj1) { | |
18849 | arg2 = (int) SWIG_AsInt(obj1); | |
18850 | if (PyErr_Occurred()) SWIG_fail; | |
18851 | } | |
18852 | if (obj2) { | |
18853 | { | |
18854 | arg3 = &temp3; | |
18855 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18856 | } | |
18857 | } | |
18858 | { | |
18859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18860 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18861 | ||
18862 | wxPyEndAllowThreads(__tstate); | |
18863 | if (PyErr_Occurred()) SWIG_fail; | |
18864 | } | |
18865 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); | |
18866 | return resultobj; | |
18867 | fail: | |
18868 | return NULL; | |
18869 | } | |
18870 | ||
18871 | ||
18872 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18873 | PyObject *resultobj; | |
18874 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18875 | wxPoint *result; | |
18876 | PyObject * obj0 = 0 ; | |
18877 | char *kwnames[] = { | |
18878 | (char *) "self", NULL | |
18879 | }; | |
18880 | ||
18881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
18882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
18883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18884 | { | |
18885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18886 | { | |
18887 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
18888 | result = (wxPoint *) &_result_ref; | |
18889 | } | |
18890 | ||
18891 | wxPyEndAllowThreads(__tstate); | |
18892 | if (PyErr_Occurred()) SWIG_fail; | |
18893 | } | |
18894 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
18895 | return resultobj; | |
18896 | fail: | |
18897 | return NULL; | |
18898 | } | |
18899 | ||
18900 | ||
18901 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18902 | PyObject *resultobj; | |
18903 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18904 | wxPoint *arg2 = 0 ; | |
18905 | wxPoint temp2 ; | |
18906 | PyObject * obj0 = 0 ; | |
18907 | PyObject * obj1 = 0 ; | |
18908 | char *kwnames[] = { | |
18909 | (char *) "self",(char *) "pos", NULL | |
18910 | }; | |
18911 | ||
18912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
18913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
18914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18915 | { | |
18916 | arg2 = &temp2; | |
18917 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18918 | } | |
18919 | { | |
18920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18921 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
18922 | ||
18923 | wxPyEndAllowThreads(__tstate); | |
18924 | if (PyErr_Occurred()) SWIG_fail; | |
18925 | } | |
18926 | Py_INCREF(Py_None); resultobj = Py_None; | |
18927 | return resultobj; | |
18928 | fail: | |
18929 | return NULL; | |
18930 | } | |
18931 | ||
18932 | ||
18933 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
18934 | PyObject *obj; | |
18935 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18936 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
18937 | Py_INCREF(obj); | |
18938 | return Py_BuildValue((char *)""); | |
18939 | } | |
18940 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18941 | PyObject *resultobj; | |
18942 | wxIdleEvent *result; | |
18943 | char *kwnames[] = { | |
18944 | NULL | |
18945 | }; | |
18946 | ||
18947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
18948 | { | |
18949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18950 | result = (wxIdleEvent *)new wxIdleEvent(); | |
18951 | ||
18952 | wxPyEndAllowThreads(__tstate); | |
18953 | if (PyErr_Occurred()) SWIG_fail; | |
18954 | } | |
18955 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); | |
18956 | return resultobj; | |
18957 | fail: | |
18958 | return NULL; | |
18959 | } | |
18960 | ||
18961 | ||
18962 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18963 | PyObject *resultobj; | |
18964 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
18965 | bool arg2 = (bool) True ; | |
18966 | PyObject * obj0 = 0 ; | |
18967 | PyObject * obj1 = 0 ; | |
18968 | char *kwnames[] = { | |
18969 | (char *) "self",(char *) "needMore", NULL | |
18970 | }; | |
18971 | ||
18972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
18973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
18974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18975 | if (obj1) { | |
18976 | arg2 = (bool) SWIG_AsBool(obj1); | |
18977 | if (PyErr_Occurred()) SWIG_fail; | |
18978 | } | |
18979 | { | |
18980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18981 | (arg1)->RequestMore(arg2); | |
18982 | ||
18983 | wxPyEndAllowThreads(__tstate); | |
18984 | if (PyErr_Occurred()) SWIG_fail; | |
18985 | } | |
18986 | Py_INCREF(Py_None); resultobj = Py_None; | |
18987 | return resultobj; | |
18988 | fail: | |
18989 | return NULL; | |
18990 | } | |
18991 | ||
18992 | ||
18993 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18994 | PyObject *resultobj; | |
18995 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
18996 | bool result; | |
18997 | PyObject * obj0 = 0 ; | |
18998 | char *kwnames[] = { | |
18999 | (char *) "self", NULL | |
19000 | }; | |
19001 | ||
19002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
19003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19005 | { | |
19006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19007 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19008 | ||
19009 | wxPyEndAllowThreads(__tstate); | |
19010 | if (PyErr_Occurred()) SWIG_fail; | |
19011 | } | |
19012 | { | |
19013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19014 | } | |
19015 | return resultobj; | |
19016 | fail: | |
19017 | return NULL; | |
19018 | } | |
19019 | ||
19020 | ||
19021 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19022 | PyObject *resultobj; | |
19023 | int arg1 ; | |
19024 | PyObject * obj0 = 0 ; | |
19025 | char *kwnames[] = { | |
19026 | (char *) "mode", NULL | |
19027 | }; | |
19028 | ||
19029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; | |
19030 | arg1 = (wxIdleMode) SWIG_AsInt(obj0); | |
19031 | if (PyErr_Occurred()) SWIG_fail; | |
19032 | { | |
19033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19034 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19035 | ||
19036 | wxPyEndAllowThreads(__tstate); | |
19037 | if (PyErr_Occurred()) SWIG_fail; | |
19038 | } | |
19039 | Py_INCREF(Py_None); resultobj = Py_None; | |
19040 | return resultobj; | |
19041 | fail: | |
19042 | return NULL; | |
19043 | } | |
19044 | ||
19045 | ||
19046 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19047 | PyObject *resultobj; | |
19048 | int result; | |
19049 | char *kwnames[] = { | |
19050 | NULL | |
19051 | }; | |
19052 | ||
19053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19054 | { | |
19055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19056 | result = (int)wxIdleEvent::GetMode(); | |
19057 | ||
19058 | wxPyEndAllowThreads(__tstate); | |
19059 | if (PyErr_Occurred()) SWIG_fail; | |
19060 | } | |
19061 | resultobj = SWIG_FromInt((int)result); | |
19062 | return resultobj; | |
19063 | fail: | |
19064 | return NULL; | |
19065 | } | |
19066 | ||
19067 | ||
19068 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19069 | PyObject *resultobj; | |
19070 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19071 | bool result; | |
19072 | PyObject * obj0 = 0 ; | |
19073 | char *kwnames[] = { | |
19074 | (char *) "win", NULL | |
19075 | }; | |
19076 | ||
19077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
19078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19080 | { | |
19081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19082 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19083 | ||
19084 | wxPyEndAllowThreads(__tstate); | |
19085 | if (PyErr_Occurred()) SWIG_fail; | |
19086 | } | |
19087 | { | |
19088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19089 | } | |
19090 | return resultobj; | |
19091 | fail: | |
19092 | return NULL; | |
19093 | } | |
19094 | ||
19095 | ||
19096 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
19097 | PyObject *obj; | |
19098 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19099 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19100 | Py_INCREF(obj); | |
19101 | return Py_BuildValue((char *)""); | |
19102 | } | |
19103 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19104 | PyObject *resultobj; | |
19105 | int arg1 = (int) 0 ; | |
19106 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19107 | wxPyEvent *result; | |
19108 | PyObject * obj0 = 0 ; | |
19109 | PyObject * obj1 = 0 ; | |
19110 | char *kwnames[] = { | |
19111 | (char *) "winid",(char *) "commandType", NULL | |
19112 | }; | |
19113 | ||
19114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; | |
19115 | if (obj0) { | |
19116 | arg1 = (int) SWIG_AsInt(obj0); | |
19117 | if (PyErr_Occurred()) SWIG_fail; | |
19118 | } | |
19119 | if (obj1) { | |
19120 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
19121 | if (PyErr_Occurred()) SWIG_fail; | |
19122 | } | |
19123 | { | |
19124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19125 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19126 | ||
19127 | wxPyEndAllowThreads(__tstate); | |
19128 | if (PyErr_Occurred()) SWIG_fail; | |
19129 | } | |
19130 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); | |
19131 | return resultobj; | |
19132 | fail: | |
19133 | return NULL; | |
19134 | } | |
19135 | ||
19136 | ||
19137 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19138 | PyObject *resultobj; | |
19139 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19140 | PyObject * obj0 = 0 ; | |
19141 | char *kwnames[] = { | |
19142 | (char *) "self", NULL | |
19143 | }; | |
19144 | ||
19145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
19146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19148 | { | |
19149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19150 | delete arg1; | |
19151 | ||
19152 | wxPyEndAllowThreads(__tstate); | |
19153 | if (PyErr_Occurred()) SWIG_fail; | |
19154 | } | |
19155 | Py_INCREF(Py_None); resultobj = Py_None; | |
19156 | return resultobj; | |
19157 | fail: | |
19158 | return NULL; | |
19159 | } | |
19160 | ||
19161 | ||
19162 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19163 | PyObject *resultobj; | |
19164 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19165 | PyObject *arg2 = (PyObject *) 0 ; | |
19166 | PyObject * obj0 = 0 ; | |
19167 | PyObject * obj1 = 0 ; | |
19168 | char *kwnames[] = { | |
19169 | (char *) "self",(char *) "self", NULL | |
19170 | }; | |
19171 | ||
19172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19175 | arg2 = obj1; | |
19176 | { | |
19177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19178 | (arg1)->SetSelf(arg2); | |
19179 | ||
19180 | wxPyEndAllowThreads(__tstate); | |
19181 | if (PyErr_Occurred()) SWIG_fail; | |
19182 | } | |
19183 | Py_INCREF(Py_None); resultobj = Py_None; | |
19184 | return resultobj; | |
19185 | fail: | |
19186 | return NULL; | |
19187 | } | |
19188 | ||
19189 | ||
19190 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19191 | PyObject *resultobj; | |
19192 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19193 | PyObject *result; | |
19194 | PyObject * obj0 = 0 ; | |
19195 | char *kwnames[] = { | |
19196 | (char *) "self", NULL | |
19197 | }; | |
19198 | ||
19199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19202 | { | |
19203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19204 | result = (PyObject *)(arg1)->GetSelf(); | |
19205 | ||
19206 | wxPyEndAllowThreads(__tstate); | |
19207 | if (PyErr_Occurred()) SWIG_fail; | |
19208 | } | |
19209 | resultobj = result; | |
19210 | return resultobj; | |
19211 | fail: | |
19212 | return NULL; | |
19213 | } | |
19214 | ||
19215 | ||
19216 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
19217 | PyObject *obj; | |
19218 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19219 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19220 | Py_INCREF(obj); | |
19221 | return Py_BuildValue((char *)""); | |
19222 | } | |
19223 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19224 | PyObject *resultobj; | |
19225 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19226 | int arg2 = (int) 0 ; | |
19227 | wxPyCommandEvent *result; | |
19228 | PyObject * obj0 = 0 ; | |
19229 | PyObject * obj1 = 0 ; | |
19230 | char *kwnames[] = { | |
19231 | (char *) "commandType",(char *) "id", NULL | |
19232 | }; | |
19233 | ||
19234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
19235 | if (obj0) { | |
19236 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
19237 | if (PyErr_Occurred()) SWIG_fail; | |
19238 | } | |
19239 | if (obj1) { | |
19240 | arg2 = (int) SWIG_AsInt(obj1); | |
19241 | if (PyErr_Occurred()) SWIG_fail; | |
19242 | } | |
19243 | { | |
19244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19245 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19246 | ||
19247 | wxPyEndAllowThreads(__tstate); | |
19248 | if (PyErr_Occurred()) SWIG_fail; | |
19249 | } | |
19250 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); | |
19251 | return resultobj; | |
19252 | fail: | |
19253 | return NULL; | |
19254 | } | |
19255 | ||
19256 | ||
19257 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19258 | PyObject *resultobj; | |
19259 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19260 | PyObject * obj0 = 0 ; | |
19261 | char *kwnames[] = { | |
19262 | (char *) "self", NULL | |
19263 | }; | |
19264 | ||
19265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
19266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19268 | { | |
19269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19270 | delete arg1; | |
19271 | ||
19272 | wxPyEndAllowThreads(__tstate); | |
19273 | if (PyErr_Occurred()) SWIG_fail; | |
19274 | } | |
19275 | Py_INCREF(Py_None); resultobj = Py_None; | |
19276 | return resultobj; | |
19277 | fail: | |
19278 | return NULL; | |
19279 | } | |
19280 | ||
19281 | ||
19282 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19283 | PyObject *resultobj; | |
19284 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19285 | PyObject *arg2 = (PyObject *) 0 ; | |
19286 | PyObject * obj0 = 0 ; | |
19287 | PyObject * obj1 = 0 ; | |
19288 | char *kwnames[] = { | |
19289 | (char *) "self",(char *) "self", NULL | |
19290 | }; | |
19291 | ||
19292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19295 | arg2 = obj1; | |
19296 | { | |
19297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19298 | (arg1)->SetSelf(arg2); | |
19299 | ||
19300 | wxPyEndAllowThreads(__tstate); | |
19301 | if (PyErr_Occurred()) SWIG_fail; | |
19302 | } | |
19303 | Py_INCREF(Py_None); resultobj = Py_None; | |
19304 | return resultobj; | |
19305 | fail: | |
19306 | return NULL; | |
19307 | } | |
19308 | ||
19309 | ||
19310 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19311 | PyObject *resultobj; | |
19312 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19313 | PyObject *result; | |
19314 | PyObject * obj0 = 0 ; | |
19315 | char *kwnames[] = { | |
19316 | (char *) "self", NULL | |
19317 | }; | |
19318 | ||
19319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19322 | { | |
19323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19324 | result = (PyObject *)(arg1)->GetSelf(); | |
19325 | ||
19326 | wxPyEndAllowThreads(__tstate); | |
19327 | if (PyErr_Occurred()) SWIG_fail; | |
19328 | } | |
19329 | resultobj = result; | |
19330 | return resultobj; | |
19331 | fail: | |
19332 | return NULL; | |
19333 | } | |
19334 | ||
19335 | ||
19336 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
19337 | PyObject *obj; | |
19338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19339 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19340 | Py_INCREF(obj); | |
19341 | return Py_BuildValue((char *)""); | |
19342 | } | |
19343 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19344 | PyObject *resultobj; | |
19345 | wxPyApp *result; | |
19346 | char *kwnames[] = { | |
19347 | NULL | |
19348 | }; | |
19349 | ||
19350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19351 | { | |
19352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19353 | result = (wxPyApp *)new_wxPyApp(); | |
19354 | ||
19355 | wxPyEndAllowThreads(__tstate); | |
19356 | if (PyErr_Occurred()) SWIG_fail; | |
19357 | } | |
19358 | { | |
19359 | resultobj = wxPyMake_wxObject(result); | |
19360 | } | |
19361 | return resultobj; | |
19362 | fail: | |
19363 | return NULL; | |
19364 | } | |
19365 | ||
19366 | ||
19367 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19368 | PyObject *resultobj; | |
19369 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19370 | PyObject * obj0 = 0 ; | |
19371 | char *kwnames[] = { | |
19372 | (char *) "self", NULL | |
19373 | }; | |
19374 | ||
19375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
19376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19378 | { | |
19379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19380 | delete arg1; | |
19381 | ||
19382 | wxPyEndAllowThreads(__tstate); | |
19383 | if (PyErr_Occurred()) SWIG_fail; | |
19384 | } | |
19385 | Py_INCREF(Py_None); resultobj = Py_None; | |
19386 | return resultobj; | |
19387 | fail: | |
19388 | return NULL; | |
19389 | } | |
19390 | ||
19391 | ||
19392 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19393 | PyObject *resultobj; | |
19394 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19395 | PyObject *arg2 = (PyObject *) 0 ; | |
19396 | PyObject *arg3 = (PyObject *) 0 ; | |
19397 | PyObject * obj0 = 0 ; | |
19398 | PyObject * obj1 = 0 ; | |
19399 | PyObject * obj2 = 0 ; | |
19400 | char *kwnames[] = { | |
19401 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19402 | }; | |
19403 | ||
19404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19407 | arg2 = obj1; | |
19408 | arg3 = obj2; | |
19409 | { | |
19410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19411 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19412 | ||
19413 | wxPyEndAllowThreads(__tstate); | |
19414 | if (PyErr_Occurred()) SWIG_fail; | |
19415 | } | |
19416 | Py_INCREF(Py_None); resultobj = Py_None; | |
19417 | return resultobj; | |
19418 | fail: | |
19419 | return NULL; | |
19420 | } | |
19421 | ||
19422 | ||
19423 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19424 | PyObject *resultobj; | |
19425 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19426 | wxString result; | |
19427 | PyObject * obj0 = 0 ; | |
19428 | char *kwnames[] = { | |
19429 | (char *) "self", NULL | |
19430 | }; | |
19431 | ||
19432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
19433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19435 | { | |
19436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19437 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19438 | ||
19439 | wxPyEndAllowThreads(__tstate); | |
19440 | if (PyErr_Occurred()) SWIG_fail; | |
19441 | } | |
19442 | { | |
19443 | #if wxUSE_UNICODE | |
19444 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19445 | #else | |
19446 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19447 | #endif | |
19448 | } | |
19449 | return resultobj; | |
19450 | fail: | |
19451 | return NULL; | |
19452 | } | |
19453 | ||
19454 | ||
19455 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19456 | PyObject *resultobj; | |
19457 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19458 | wxString *arg2 = 0 ; | |
19459 | bool temp2 = False ; | |
19460 | PyObject * obj0 = 0 ; | |
19461 | PyObject * obj1 = 0 ; | |
19462 | char *kwnames[] = { | |
19463 | (char *) "self",(char *) "name", NULL | |
19464 | }; | |
19465 | ||
19466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
19467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19469 | { | |
19470 | arg2 = wxString_in_helper(obj1); | |
19471 | if (arg2 == NULL) SWIG_fail; | |
19472 | temp2 = True; | |
19473 | } | |
19474 | { | |
19475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19476 | (arg1)->SetAppName((wxString const &)*arg2); | |
19477 | ||
19478 | wxPyEndAllowThreads(__tstate); | |
19479 | if (PyErr_Occurred()) SWIG_fail; | |
19480 | } | |
19481 | Py_INCREF(Py_None); resultobj = Py_None; | |
19482 | { | |
19483 | if (temp2) | |
19484 | delete arg2; | |
19485 | } | |
19486 | return resultobj; | |
19487 | fail: | |
19488 | { | |
19489 | if (temp2) | |
19490 | delete arg2; | |
19491 | } | |
19492 | return NULL; | |
19493 | } | |
19494 | ||
19495 | ||
19496 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19497 | PyObject *resultobj; | |
19498 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19499 | wxString result; | |
19500 | PyObject * obj0 = 0 ; | |
19501 | char *kwnames[] = { | |
19502 | (char *) "self", NULL | |
19503 | }; | |
19504 | ||
19505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
19506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19508 | { | |
19509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19510 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19511 | ||
19512 | wxPyEndAllowThreads(__tstate); | |
19513 | if (PyErr_Occurred()) SWIG_fail; | |
19514 | } | |
19515 | { | |
19516 | #if wxUSE_UNICODE | |
19517 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19518 | #else | |
19519 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19520 | #endif | |
19521 | } | |
19522 | return resultobj; | |
19523 | fail: | |
19524 | return NULL; | |
19525 | } | |
19526 | ||
19527 | ||
19528 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19529 | PyObject *resultobj; | |
19530 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19531 | wxString *arg2 = 0 ; | |
19532 | bool temp2 = False ; | |
19533 | PyObject * obj0 = 0 ; | |
19534 | PyObject * obj1 = 0 ; | |
19535 | char *kwnames[] = { | |
19536 | (char *) "self",(char *) "name", NULL | |
19537 | }; | |
19538 | ||
19539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
19540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19542 | { | |
19543 | arg2 = wxString_in_helper(obj1); | |
19544 | if (arg2 == NULL) SWIG_fail; | |
19545 | temp2 = True; | |
19546 | } | |
19547 | { | |
19548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19549 | (arg1)->SetClassName((wxString const &)*arg2); | |
19550 | ||
19551 | wxPyEndAllowThreads(__tstate); | |
19552 | if (PyErr_Occurred()) SWIG_fail; | |
19553 | } | |
19554 | Py_INCREF(Py_None); resultobj = Py_None; | |
19555 | { | |
19556 | if (temp2) | |
19557 | delete arg2; | |
19558 | } | |
19559 | return resultobj; | |
19560 | fail: | |
19561 | { | |
19562 | if (temp2) | |
19563 | delete arg2; | |
19564 | } | |
19565 | return NULL; | |
19566 | } | |
19567 | ||
19568 | ||
19569 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19570 | PyObject *resultobj; | |
19571 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19572 | wxString *result; | |
19573 | PyObject * obj0 = 0 ; | |
19574 | char *kwnames[] = { | |
19575 | (char *) "self", NULL | |
19576 | }; | |
19577 | ||
19578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
19579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19581 | { | |
19582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19583 | { | |
19584 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
19585 | result = (wxString *) &_result_ref; | |
19586 | } | |
19587 | ||
19588 | wxPyEndAllowThreads(__tstate); | |
19589 | if (PyErr_Occurred()) SWIG_fail; | |
19590 | } | |
19591 | { | |
19592 | #if wxUSE_UNICODE | |
19593 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19594 | #else | |
19595 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19596 | #endif | |
19597 | } | |
19598 | return resultobj; | |
19599 | fail: | |
19600 | return NULL; | |
19601 | } | |
19602 | ||
19603 | ||
19604 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19605 | PyObject *resultobj; | |
19606 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19607 | wxString *arg2 = 0 ; | |
19608 | bool temp2 = False ; | |
19609 | PyObject * obj0 = 0 ; | |
19610 | PyObject * obj1 = 0 ; | |
19611 | char *kwnames[] = { | |
19612 | (char *) "self",(char *) "name", NULL | |
19613 | }; | |
19614 | ||
19615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
19616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19618 | { | |
19619 | arg2 = wxString_in_helper(obj1); | |
19620 | if (arg2 == NULL) SWIG_fail; | |
19621 | temp2 = True; | |
19622 | } | |
19623 | { | |
19624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19625 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19626 | ||
19627 | wxPyEndAllowThreads(__tstate); | |
19628 | if (PyErr_Occurred()) SWIG_fail; | |
19629 | } | |
19630 | Py_INCREF(Py_None); resultobj = Py_None; | |
19631 | { | |
19632 | if (temp2) | |
19633 | delete arg2; | |
19634 | } | |
19635 | return resultobj; | |
19636 | fail: | |
19637 | { | |
19638 | if (temp2) | |
19639 | delete arg2; | |
19640 | } | |
19641 | return NULL; | |
19642 | } | |
19643 | ||
19644 | ||
19645 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19646 | PyObject *resultobj; | |
19647 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19648 | wxAppTraits *result; | |
19649 | PyObject * obj0 = 0 ; | |
19650 | char *kwnames[] = { | |
19651 | (char *) "self", NULL | |
19652 | }; | |
19653 | ||
19654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
19655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19657 | { | |
19658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19659 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19660 | ||
19661 | wxPyEndAllowThreads(__tstate); | |
19662 | if (PyErr_Occurred()) SWIG_fail; | |
19663 | } | |
19664 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); | |
19665 | return resultobj; | |
19666 | fail: | |
19667 | return NULL; | |
19668 | } | |
19669 | ||
19670 | ||
19671 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19672 | PyObject *resultobj; | |
19673 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19674 | PyObject * obj0 = 0 ; | |
19675 | char *kwnames[] = { | |
19676 | (char *) "self", NULL | |
19677 | }; | |
19678 | ||
19679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
19680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19682 | { | |
19683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19684 | (arg1)->ProcessPendingEvents(); | |
19685 | ||
19686 | wxPyEndAllowThreads(__tstate); | |
19687 | if (PyErr_Occurred()) SWIG_fail; | |
19688 | } | |
19689 | Py_INCREF(Py_None); resultobj = Py_None; | |
19690 | return resultobj; | |
19691 | fail: | |
19692 | return NULL; | |
19693 | } | |
19694 | ||
19695 | ||
19696 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19697 | PyObject *resultobj; | |
19698 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19699 | bool arg2 = (bool) False ; | |
19700 | bool result; | |
19701 | PyObject * obj0 = 0 ; | |
19702 | PyObject * obj1 = 0 ; | |
19703 | char *kwnames[] = { | |
19704 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19705 | }; | |
19706 | ||
19707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
19708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19710 | if (obj1) { | |
19711 | arg2 = (bool) SWIG_AsBool(obj1); | |
19712 | if (PyErr_Occurred()) SWIG_fail; | |
19713 | } | |
19714 | { | |
19715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19716 | result = (bool)(arg1)->Yield(arg2); | |
19717 | ||
19718 | wxPyEndAllowThreads(__tstate); | |
19719 | if (PyErr_Occurred()) SWIG_fail; | |
19720 | } | |
19721 | { | |
19722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19723 | } | |
19724 | return resultobj; | |
19725 | fail: | |
19726 | return NULL; | |
19727 | } | |
19728 | ||
19729 | ||
19730 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19731 | PyObject *resultobj; | |
19732 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19733 | PyObject * obj0 = 0 ; | |
19734 | char *kwnames[] = { | |
19735 | (char *) "self", NULL | |
19736 | }; | |
19737 | ||
19738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
19739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19741 | { | |
19742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19743 | (arg1)->WakeUpIdle(); | |
19744 | ||
19745 | wxPyEndAllowThreads(__tstate); | |
19746 | if (PyErr_Occurred()) SWIG_fail; | |
19747 | } | |
19748 | Py_INCREF(Py_None); resultobj = Py_None; | |
19749 | return resultobj; | |
19750 | fail: | |
19751 | return NULL; | |
19752 | } | |
19753 | ||
19754 | ||
19755 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19756 | PyObject *resultobj; | |
19757 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19758 | int result; | |
19759 | PyObject * obj0 = 0 ; | |
19760 | char *kwnames[] = { | |
19761 | (char *) "self", NULL | |
19762 | }; | |
19763 | ||
19764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
19765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19767 | { | |
19768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19769 | result = (int)(arg1)->MainLoop(); | |
19770 | ||
19771 | wxPyEndAllowThreads(__tstate); | |
19772 | if (PyErr_Occurred()) SWIG_fail; | |
19773 | } | |
19774 | resultobj = SWIG_FromInt((int)result); | |
19775 | return resultobj; | |
19776 | fail: | |
19777 | return NULL; | |
19778 | } | |
19779 | ||
19780 | ||
19781 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19782 | PyObject *resultobj; | |
19783 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19784 | PyObject * obj0 = 0 ; | |
19785 | char *kwnames[] = { | |
19786 | (char *) "self", NULL | |
19787 | }; | |
19788 | ||
19789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
19790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19792 | { | |
19793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19794 | (arg1)->Exit(); | |
19795 | ||
19796 | wxPyEndAllowThreads(__tstate); | |
19797 | if (PyErr_Occurred()) SWIG_fail; | |
19798 | } | |
19799 | Py_INCREF(Py_None); resultobj = Py_None; | |
19800 | return resultobj; | |
19801 | fail: | |
19802 | return NULL; | |
19803 | } | |
19804 | ||
19805 | ||
19806 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19807 | PyObject *resultobj; | |
19808 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19809 | PyObject * obj0 = 0 ; | |
19810 | char *kwnames[] = { | |
19811 | (char *) "self", NULL | |
19812 | }; | |
19813 | ||
19814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
19815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19817 | { | |
19818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19819 | (arg1)->ExitMainLoop(); | |
19820 | ||
19821 | wxPyEndAllowThreads(__tstate); | |
19822 | if (PyErr_Occurred()) SWIG_fail; | |
19823 | } | |
19824 | Py_INCREF(Py_None); resultobj = Py_None; | |
19825 | return resultobj; | |
19826 | fail: | |
19827 | return NULL; | |
19828 | } | |
19829 | ||
19830 | ||
19831 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19832 | PyObject *resultobj; | |
19833 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19834 | bool result; | |
19835 | PyObject * obj0 = 0 ; | |
19836 | char *kwnames[] = { | |
19837 | (char *) "self", NULL | |
19838 | }; | |
19839 | ||
19840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
19841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19843 | { | |
19844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19845 | result = (bool)(arg1)->Pending(); | |
19846 | ||
19847 | wxPyEndAllowThreads(__tstate); | |
19848 | if (PyErr_Occurred()) SWIG_fail; | |
19849 | } | |
19850 | { | |
19851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19852 | } | |
19853 | return resultobj; | |
19854 | fail: | |
19855 | return NULL; | |
19856 | } | |
19857 | ||
19858 | ||
19859 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19860 | PyObject *resultobj; | |
19861 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19862 | bool result; | |
19863 | PyObject * obj0 = 0 ; | |
19864 | char *kwnames[] = { | |
19865 | (char *) "self", NULL | |
19866 | }; | |
19867 | ||
19868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
19869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19871 | { | |
19872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19873 | result = (bool)(arg1)->Dispatch(); | |
19874 | ||
19875 | wxPyEndAllowThreads(__tstate); | |
19876 | if (PyErr_Occurred()) SWIG_fail; | |
19877 | } | |
19878 | { | |
19879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19880 | } | |
19881 | return resultobj; | |
19882 | fail: | |
19883 | return NULL; | |
19884 | } | |
19885 | ||
19886 | ||
19887 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19888 | PyObject *resultobj; | |
19889 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19890 | bool result; | |
19891 | PyObject * obj0 = 0 ; | |
19892 | char *kwnames[] = { | |
19893 | (char *) "self", NULL | |
19894 | }; | |
19895 | ||
19896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
19897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19899 | { | |
19900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19901 | result = (bool)(arg1)->ProcessIdle(); | |
19902 | ||
19903 | wxPyEndAllowThreads(__tstate); | |
19904 | if (PyErr_Occurred()) SWIG_fail; | |
19905 | } | |
19906 | { | |
19907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19908 | } | |
19909 | return resultobj; | |
19910 | fail: | |
19911 | return NULL; | |
19912 | } | |
19913 | ||
19914 | ||
19915 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19916 | PyObject *resultobj; | |
19917 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19918 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19919 | wxIdleEvent *arg3 = 0 ; | |
19920 | bool result; | |
19921 | PyObject * obj0 = 0 ; | |
19922 | PyObject * obj1 = 0 ; | |
19923 | PyObject * obj2 = 0 ; | |
19924 | char *kwnames[] = { | |
19925 | (char *) "self",(char *) "win",(char *) "event", NULL | |
19926 | }; | |
19927 | ||
19928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19931 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19933 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
19934 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19935 | SWIG_fail; | |
19936 | if (arg3 == NULL) { | |
19937 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19938 | SWIG_fail; | |
19939 | } | |
19940 | { | |
19941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19942 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
19943 | ||
19944 | wxPyEndAllowThreads(__tstate); | |
19945 | if (PyErr_Occurred()) SWIG_fail; | |
19946 | } | |
19947 | { | |
19948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19949 | } | |
19950 | return resultobj; | |
19951 | fail: | |
19952 | return NULL; | |
19953 | } | |
19954 | ||
19955 | ||
19956 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19957 | PyObject *resultobj; | |
19958 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19959 | bool result; | |
19960 | PyObject * obj0 = 0 ; | |
19961 | char *kwnames[] = { | |
19962 | (char *) "self", NULL | |
19963 | }; | |
19964 | ||
19965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
19966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19968 | { | |
19969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19970 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
19971 | ||
19972 | wxPyEndAllowThreads(__tstate); | |
19973 | if (PyErr_Occurred()) SWIG_fail; | |
19974 | } | |
19975 | { | |
19976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19977 | } | |
19978 | return resultobj; | |
19979 | fail: | |
19980 | return NULL; | |
19981 | } | |
19982 | ||
19983 | ||
19984 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19985 | PyObject *resultobj; | |
19986 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19987 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19988 | PyObject * obj0 = 0 ; | |
19989 | PyObject * obj1 = 0 ; | |
19990 | char *kwnames[] = { | |
19991 | (char *) "self",(char *) "win", NULL | |
19992 | }; | |
19993 | ||
19994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
19995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19997 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19999 | { | |
20000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20001 | (arg1)->SetTopWindow(arg2); | |
20002 | ||
20003 | wxPyEndAllowThreads(__tstate); | |
20004 | if (PyErr_Occurred()) SWIG_fail; | |
20005 | } | |
20006 | Py_INCREF(Py_None); resultobj = Py_None; | |
20007 | return resultobj; | |
20008 | fail: | |
20009 | return NULL; | |
20010 | } | |
20011 | ||
20012 | ||
20013 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20014 | PyObject *resultobj; | |
20015 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20016 | wxWindow *result; | |
20017 | PyObject * obj0 = 0 ; | |
20018 | char *kwnames[] = { | |
20019 | (char *) "self", NULL | |
20020 | }; | |
20021 | ||
20022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
20023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20025 | { | |
20026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20027 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20028 | ||
20029 | wxPyEndAllowThreads(__tstate); | |
20030 | if (PyErr_Occurred()) SWIG_fail; | |
20031 | } | |
20032 | { | |
20033 | resultobj = wxPyMake_wxObject(result); | |
20034 | } | |
20035 | return resultobj; | |
20036 | fail: | |
20037 | return NULL; | |
20038 | } | |
20039 | ||
20040 | ||
20041 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20042 | PyObject *resultobj; | |
20043 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20044 | bool arg2 ; | |
20045 | PyObject * obj0 = 0 ; | |
20046 | PyObject * obj1 = 0 ; | |
20047 | char *kwnames[] = { | |
20048 | (char *) "self",(char *) "flag", NULL | |
20049 | }; | |
20050 | ||
20051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
20052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20054 | arg2 = (bool) SWIG_AsBool(obj1); | |
20055 | if (PyErr_Occurred()) SWIG_fail; | |
20056 | { | |
20057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20058 | (arg1)->SetExitOnFrameDelete(arg2); | |
20059 | ||
20060 | wxPyEndAllowThreads(__tstate); | |
20061 | if (PyErr_Occurred()) SWIG_fail; | |
20062 | } | |
20063 | Py_INCREF(Py_None); resultobj = Py_None; | |
20064 | return resultobj; | |
20065 | fail: | |
20066 | return NULL; | |
20067 | } | |
20068 | ||
20069 | ||
20070 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20071 | PyObject *resultobj; | |
20072 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20073 | bool result; | |
20074 | PyObject * obj0 = 0 ; | |
20075 | char *kwnames[] = { | |
20076 | (char *) "self", NULL | |
20077 | }; | |
20078 | ||
20079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
20080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20082 | { | |
20083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20084 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20085 | ||
20086 | wxPyEndAllowThreads(__tstate); | |
20087 | if (PyErr_Occurred()) SWIG_fail; | |
20088 | } | |
20089 | { | |
20090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20091 | } | |
20092 | return resultobj; | |
20093 | fail: | |
20094 | return NULL; | |
20095 | } | |
20096 | ||
20097 | ||
20098 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20099 | PyObject *resultobj; | |
20100 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20101 | bool arg2 ; | |
20102 | PyObject * obj0 = 0 ; | |
20103 | PyObject * obj1 = 0 ; | |
20104 | char *kwnames[] = { | |
20105 | (char *) "self",(char *) "flag", NULL | |
20106 | }; | |
20107 | ||
20108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
20109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20111 | arg2 = (bool) SWIG_AsBool(obj1); | |
20112 | if (PyErr_Occurred()) SWIG_fail; | |
20113 | { | |
20114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20115 | (arg1)->SetUseBestVisual(arg2); | |
20116 | ||
20117 | wxPyEndAllowThreads(__tstate); | |
20118 | if (PyErr_Occurred()) SWIG_fail; | |
20119 | } | |
20120 | Py_INCREF(Py_None); resultobj = Py_None; | |
20121 | return resultobj; | |
20122 | fail: | |
20123 | return NULL; | |
20124 | } | |
20125 | ||
20126 | ||
20127 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20128 | PyObject *resultobj; | |
20129 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20130 | bool result; | |
20131 | PyObject * obj0 = 0 ; | |
20132 | char *kwnames[] = { | |
20133 | (char *) "self", NULL | |
20134 | }; | |
20135 | ||
20136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
20137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20139 | { | |
20140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20141 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20142 | ||
20143 | wxPyEndAllowThreads(__tstate); | |
20144 | if (PyErr_Occurred()) SWIG_fail; | |
20145 | } | |
20146 | { | |
20147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20148 | } | |
20149 | return resultobj; | |
20150 | fail: | |
20151 | return NULL; | |
20152 | } | |
20153 | ||
20154 | ||
20155 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20156 | PyObject *resultobj; | |
20157 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20158 | int arg2 ; | |
20159 | PyObject * obj0 = 0 ; | |
20160 | PyObject * obj1 = 0 ; | |
20161 | char *kwnames[] = { | |
20162 | (char *) "self",(char *) "mode", NULL | |
20163 | }; | |
20164 | ||
20165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
20166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20168 | arg2 = (int) SWIG_AsInt(obj1); | |
20169 | if (PyErr_Occurred()) SWIG_fail; | |
20170 | { | |
20171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20172 | (arg1)->SetPrintMode(arg2); | |
20173 | ||
20174 | wxPyEndAllowThreads(__tstate); | |
20175 | if (PyErr_Occurred()) SWIG_fail; | |
20176 | } | |
20177 | Py_INCREF(Py_None); resultobj = Py_None; | |
20178 | return resultobj; | |
20179 | fail: | |
20180 | return NULL; | |
20181 | } | |
20182 | ||
20183 | ||
20184 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20185 | PyObject *resultobj; | |
20186 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20187 | int result; | |
20188 | PyObject * obj0 = 0 ; | |
20189 | char *kwnames[] = { | |
20190 | (char *) "self", NULL | |
20191 | }; | |
20192 | ||
20193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
20194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20196 | { | |
20197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20198 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20199 | ||
20200 | wxPyEndAllowThreads(__tstate); | |
20201 | if (PyErr_Occurred()) SWIG_fail; | |
20202 | } | |
20203 | resultobj = SWIG_FromInt((int)result); | |
20204 | return resultobj; | |
20205 | fail: | |
20206 | return NULL; | |
20207 | } | |
20208 | ||
20209 | ||
20210 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20211 | PyObject *resultobj; | |
20212 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20213 | int arg2 ; | |
20214 | PyObject * obj0 = 0 ; | |
20215 | PyObject * obj1 = 0 ; | |
20216 | char *kwnames[] = { | |
20217 | (char *) "self",(char *) "mode", NULL | |
20218 | }; | |
20219 | ||
20220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; | |
20221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20223 | arg2 = (int) SWIG_AsInt(obj1); | |
20224 | if (PyErr_Occurred()) SWIG_fail; | |
20225 | { | |
20226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20227 | (arg1)->SetAssertMode(arg2); | |
20228 | ||
20229 | wxPyEndAllowThreads(__tstate); | |
20230 | if (PyErr_Occurred()) SWIG_fail; | |
20231 | } | |
20232 | Py_INCREF(Py_None); resultobj = Py_None; | |
20233 | return resultobj; | |
20234 | fail: | |
20235 | return NULL; | |
20236 | } | |
20237 | ||
20238 | ||
20239 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20240 | PyObject *resultobj; | |
20241 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20242 | int result; | |
20243 | PyObject * obj0 = 0 ; | |
20244 | char *kwnames[] = { | |
20245 | (char *) "self", NULL | |
20246 | }; | |
20247 | ||
20248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
20249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20251 | { | |
20252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20253 | result = (int)(arg1)->GetAssertMode(); | |
20254 | ||
20255 | wxPyEndAllowThreads(__tstate); | |
20256 | if (PyErr_Occurred()) SWIG_fail; | |
20257 | } | |
20258 | resultobj = SWIG_FromInt((int)result); | |
20259 | return resultobj; | |
20260 | fail: | |
20261 | return NULL; | |
20262 | } | |
20263 | ||
20264 | ||
20265 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20266 | PyObject *resultobj; | |
20267 | bool result; | |
20268 | char *kwnames[] = { | |
20269 | NULL | |
20270 | }; | |
20271 | ||
20272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20273 | { | |
20274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20275 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20276 | ||
20277 | wxPyEndAllowThreads(__tstate); | |
20278 | if (PyErr_Occurred()) SWIG_fail; | |
20279 | } | |
20280 | { | |
20281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20282 | } | |
20283 | return resultobj; | |
20284 | fail: | |
20285 | return NULL; | |
20286 | } | |
20287 | ||
20288 | ||
20289 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20290 | PyObject *resultobj; | |
20291 | long result; | |
20292 | char *kwnames[] = { | |
20293 | NULL | |
20294 | }; | |
20295 | ||
20296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20297 | { | |
20298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20299 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20300 | ||
20301 | wxPyEndAllowThreads(__tstate); | |
20302 | if (PyErr_Occurred()) SWIG_fail; | |
20303 | } | |
20304 | resultobj = SWIG_FromLong((long)result); | |
20305 | return resultobj; | |
20306 | fail: | |
20307 | return NULL; | |
20308 | } | |
20309 | ||
20310 | ||
20311 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20312 | PyObject *resultobj; | |
20313 | long result; | |
20314 | char *kwnames[] = { | |
20315 | NULL | |
20316 | }; | |
20317 | ||
20318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20319 | { | |
20320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20321 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20322 | ||
20323 | wxPyEndAllowThreads(__tstate); | |
20324 | if (PyErr_Occurred()) SWIG_fail; | |
20325 | } | |
20326 | resultobj = SWIG_FromLong((long)result); | |
20327 | return resultobj; | |
20328 | fail: | |
20329 | return NULL; | |
20330 | } | |
20331 | ||
20332 | ||
20333 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20334 | PyObject *resultobj; | |
20335 | long result; | |
20336 | char *kwnames[] = { | |
20337 | NULL | |
20338 | }; | |
20339 | ||
20340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20341 | { | |
20342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20343 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20344 | ||
20345 | wxPyEndAllowThreads(__tstate); | |
20346 | if (PyErr_Occurred()) SWIG_fail; | |
20347 | } | |
20348 | resultobj = SWIG_FromLong((long)result); | |
20349 | return resultobj; | |
20350 | fail: | |
20351 | return NULL; | |
20352 | } | |
20353 | ||
20354 | ||
20355 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20356 | PyObject *resultobj; | |
20357 | wxString result; | |
20358 | char *kwnames[] = { | |
20359 | NULL | |
20360 | }; | |
20361 | ||
20362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20363 | { | |
20364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20365 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20366 | ||
20367 | wxPyEndAllowThreads(__tstate); | |
20368 | if (PyErr_Occurred()) SWIG_fail; | |
20369 | } | |
20370 | { | |
20371 | #if wxUSE_UNICODE | |
20372 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20373 | #else | |
20374 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20375 | #endif | |
20376 | } | |
20377 | return resultobj; | |
20378 | fail: | |
20379 | return NULL; | |
20380 | } | |
20381 | ||
20382 | ||
20383 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20384 | PyObject *resultobj; | |
20385 | bool arg1 ; | |
20386 | PyObject * obj0 = 0 ; | |
20387 | char *kwnames[] = { | |
20388 | (char *) "val", NULL | |
20389 | }; | |
20390 | ||
20391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
20392 | arg1 = (bool) SWIG_AsBool(obj0); | |
20393 | if (PyErr_Occurred()) SWIG_fail; | |
20394 | { | |
20395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20396 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20397 | ||
20398 | wxPyEndAllowThreads(__tstate); | |
20399 | if (PyErr_Occurred()) SWIG_fail; | |
20400 | } | |
20401 | Py_INCREF(Py_None); resultobj = Py_None; | |
20402 | return resultobj; | |
20403 | fail: | |
20404 | return NULL; | |
20405 | } | |
20406 | ||
20407 | ||
20408 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20409 | PyObject *resultobj; | |
20410 | long arg1 ; | |
20411 | PyObject * obj0 = 0 ; | |
20412 | char *kwnames[] = { | |
20413 | (char *) "val", NULL | |
20414 | }; | |
20415 | ||
20416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; | |
20417 | arg1 = (long) SWIG_AsLong(obj0); | |
20418 | if (PyErr_Occurred()) SWIG_fail; | |
20419 | { | |
20420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20421 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20422 | ||
20423 | wxPyEndAllowThreads(__tstate); | |
20424 | if (PyErr_Occurred()) SWIG_fail; | |
20425 | } | |
20426 | Py_INCREF(Py_None); resultobj = Py_None; | |
20427 | return resultobj; | |
20428 | fail: | |
20429 | return NULL; | |
20430 | } | |
20431 | ||
20432 | ||
20433 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20434 | PyObject *resultobj; | |
20435 | long arg1 ; | |
20436 | PyObject * obj0 = 0 ; | |
20437 | char *kwnames[] = { | |
20438 | (char *) "val", NULL | |
20439 | }; | |
20440 | ||
20441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; | |
20442 | arg1 = (long) SWIG_AsLong(obj0); | |
20443 | if (PyErr_Occurred()) SWIG_fail; | |
20444 | { | |
20445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20446 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20447 | ||
20448 | wxPyEndAllowThreads(__tstate); | |
20449 | if (PyErr_Occurred()) SWIG_fail; | |
20450 | } | |
20451 | Py_INCREF(Py_None); resultobj = Py_None; | |
20452 | return resultobj; | |
20453 | fail: | |
20454 | return NULL; | |
20455 | } | |
20456 | ||
20457 | ||
20458 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20459 | PyObject *resultobj; | |
20460 | long arg1 ; | |
20461 | PyObject * obj0 = 0 ; | |
20462 | char *kwnames[] = { | |
20463 | (char *) "val", NULL | |
20464 | }; | |
20465 | ||
20466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; | |
20467 | arg1 = (long) SWIG_AsLong(obj0); | |
20468 | if (PyErr_Occurred()) SWIG_fail; | |
20469 | { | |
20470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20471 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20472 | ||
20473 | wxPyEndAllowThreads(__tstate); | |
20474 | if (PyErr_Occurred()) SWIG_fail; | |
20475 | } | |
20476 | Py_INCREF(Py_None); resultobj = Py_None; | |
20477 | return resultobj; | |
20478 | fail: | |
20479 | return NULL; | |
20480 | } | |
20481 | ||
20482 | ||
20483 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20484 | PyObject *resultobj; | |
20485 | wxString *arg1 = 0 ; | |
20486 | bool temp1 = False ; | |
20487 | PyObject * obj0 = 0 ; | |
20488 | char *kwnames[] = { | |
20489 | (char *) "val", NULL | |
20490 | }; | |
20491 | ||
20492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20493 | { | |
20494 | arg1 = wxString_in_helper(obj0); | |
20495 | if (arg1 == NULL) SWIG_fail; | |
20496 | temp1 = True; | |
20497 | } | |
20498 | { | |
20499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20500 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20501 | ||
20502 | wxPyEndAllowThreads(__tstate); | |
20503 | if (PyErr_Occurred()) SWIG_fail; | |
20504 | } | |
20505 | Py_INCREF(Py_None); resultobj = Py_None; | |
20506 | { | |
20507 | if (temp1) | |
20508 | delete arg1; | |
20509 | } | |
20510 | return resultobj; | |
20511 | fail: | |
20512 | { | |
20513 | if (temp1) | |
20514 | delete arg1; | |
20515 | } | |
20516 | return NULL; | |
20517 | } | |
20518 | ||
20519 | ||
20520 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20521 | PyObject *resultobj; | |
20522 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20523 | PyObject * obj0 = 0 ; | |
20524 | char *kwnames[] = { | |
20525 | (char *) "self", NULL | |
20526 | }; | |
20527 | ||
20528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
20529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20531 | { | |
20532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20533 | (arg1)->_BootstrapApp(); | |
20534 | ||
20535 | wxPyEndAllowThreads(__tstate); | |
20536 | if (PyErr_Occurred()) SWIG_fail; | |
20537 | } | |
20538 | Py_INCREF(Py_None); resultobj = Py_None; | |
20539 | return resultobj; | |
20540 | fail: | |
20541 | return NULL; | |
20542 | } | |
20543 | ||
20544 | ||
20545 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20546 | PyObject *resultobj; | |
20547 | int result; | |
20548 | char *kwnames[] = { | |
20549 | NULL | |
20550 | }; | |
20551 | ||
20552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
20553 | { | |
20554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20555 | result = (int)wxPyApp::GetComCtl32Version(); | |
20556 | ||
20557 | wxPyEndAllowThreads(__tstate); | |
20558 | if (PyErr_Occurred()) SWIG_fail; | |
20559 | } | |
20560 | resultobj = SWIG_FromInt((int)result); | |
20561 | return resultobj; | |
20562 | fail: | |
20563 | return NULL; | |
20564 | } | |
20565 | ||
20566 | ||
20567 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
20568 | PyObject *obj; | |
20569 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20570 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
20571 | Py_INCREF(obj); | |
20572 | return Py_BuildValue((char *)""); | |
20573 | } | |
20574 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20575 | PyObject *resultobj; | |
20576 | char *kwnames[] = { | |
20577 | NULL | |
20578 | }; | |
20579 | ||
20580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
20581 | { | |
20582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20583 | wxExit(); | |
20584 | ||
20585 | wxPyEndAllowThreads(__tstate); | |
20586 | if (PyErr_Occurred()) SWIG_fail; | |
20587 | } | |
20588 | Py_INCREF(Py_None); resultobj = Py_None; | |
20589 | return resultobj; | |
20590 | fail: | |
20591 | return NULL; | |
20592 | } | |
20593 | ||
20594 | ||
20595 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20596 | PyObject *resultobj; | |
20597 | bool result; | |
20598 | char *kwnames[] = { | |
20599 | NULL | |
20600 | }; | |
20601 | ||
20602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
20603 | { | |
20604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20605 | result = (bool)wxYield(); | |
20606 | ||
20607 | wxPyEndAllowThreads(__tstate); | |
20608 | if (PyErr_Occurred()) SWIG_fail; | |
20609 | } | |
20610 | { | |
20611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20612 | } | |
20613 | return resultobj; | |
20614 | fail: | |
20615 | return NULL; | |
20616 | } | |
20617 | ||
20618 | ||
20619 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20620 | PyObject *resultobj; | |
20621 | bool result; | |
20622 | char *kwnames[] = { | |
20623 | NULL | |
20624 | }; | |
20625 | ||
20626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
20627 | { | |
20628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20629 | result = (bool)wxYieldIfNeeded(); | |
20630 | ||
20631 | wxPyEndAllowThreads(__tstate); | |
20632 | if (PyErr_Occurred()) SWIG_fail; | |
20633 | } | |
20634 | { | |
20635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20636 | } | |
20637 | return resultobj; | |
20638 | fail: | |
20639 | return NULL; | |
20640 | } | |
20641 | ||
20642 | ||
20643 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20644 | PyObject *resultobj; | |
20645 | wxWindow *arg1 = (wxWindow *) NULL ; | |
20646 | bool arg2 = (bool) False ; | |
20647 | bool result; | |
20648 | PyObject * obj0 = 0 ; | |
20649 | PyObject * obj1 = 0 ; | |
20650 | char *kwnames[] = { | |
20651 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20652 | }; | |
20653 | ||
20654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20655 | if (obj0) { | |
20656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
20657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20658 | } | |
20659 | if (obj1) { | |
20660 | arg2 = (bool) SWIG_AsBool(obj1); | |
20661 | if (PyErr_Occurred()) SWIG_fail; | |
20662 | } | |
20663 | { | |
20664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20665 | result = (bool)wxSafeYield(arg1,arg2); | |
20666 | ||
20667 | wxPyEndAllowThreads(__tstate); | |
20668 | if (PyErr_Occurred()) SWIG_fail; | |
20669 | } | |
20670 | { | |
20671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20672 | } | |
20673 | return resultobj; | |
20674 | fail: | |
20675 | return NULL; | |
20676 | } | |
20677 | ||
20678 | ||
20679 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20680 | PyObject *resultobj; | |
20681 | char *kwnames[] = { | |
20682 | NULL | |
20683 | }; | |
20684 | ||
20685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20686 | { | |
20687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20688 | wxWakeUpIdle(); | |
20689 | ||
20690 | wxPyEndAllowThreads(__tstate); | |
20691 | if (PyErr_Occurred()) SWIG_fail; | |
20692 | } | |
20693 | Py_INCREF(Py_None); resultobj = Py_None; | |
20694 | return resultobj; | |
20695 | fail: | |
20696 | return NULL; | |
20697 | } | |
20698 | ||
20699 | ||
20700 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20701 | PyObject *resultobj; | |
20702 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20703 | wxEvent *arg2 = 0 ; | |
20704 | PyObject * obj0 = 0 ; | |
20705 | PyObject * obj1 = 0 ; | |
20706 | char *kwnames[] = { | |
20707 | (char *) "dest",(char *) "event", NULL | |
20708 | }; | |
20709 | ||
20710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
20711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
20712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20713 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
20714 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20715 | SWIG_fail; | |
20716 | if (arg2 == NULL) { | |
20717 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20718 | SWIG_fail; | |
20719 | } | |
20720 | { | |
20721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20722 | wxPostEvent(arg1,*arg2); | |
20723 | ||
20724 | wxPyEndAllowThreads(__tstate); | |
20725 | if (PyErr_Occurred()) SWIG_fail; | |
20726 | } | |
20727 | Py_INCREF(Py_None); resultobj = Py_None; | |
20728 | return resultobj; | |
20729 | fail: | |
20730 | return NULL; | |
20731 | } | |
20732 | ||
20733 | ||
20734 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20735 | PyObject *resultobj; | |
20736 | char *kwnames[] = { | |
20737 | NULL | |
20738 | }; | |
20739 | ||
20740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20741 | { | |
20742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20743 | wxApp_CleanUp(); | |
20744 | ||
20745 | wxPyEndAllowThreads(__tstate); | |
20746 | if (PyErr_Occurred()) SWIG_fail; | |
20747 | } | |
20748 | Py_INCREF(Py_None); resultobj = Py_None; | |
20749 | return resultobj; | |
20750 | fail: | |
20751 | return NULL; | |
20752 | } | |
20753 | ||
20754 | ||
20755 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20756 | PyObject *resultobj; | |
20757 | wxPyApp *result; | |
20758 | char *kwnames[] = { | |
20759 | NULL | |
20760 | }; | |
20761 | ||
20762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20763 | { | |
20764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20765 | result = (wxPyApp *)wxGetApp(); | |
20766 | ||
20767 | wxPyEndAllowThreads(__tstate); | |
20768 | if (PyErr_Occurred()) SWIG_fail; | |
20769 | } | |
20770 | { | |
20771 | resultobj = wxPyMake_wxObject(result); | |
20772 | } | |
20773 | return resultobj; | |
20774 | fail: | |
20775 | return NULL; | |
20776 | } | |
20777 | ||
20778 | ||
20779 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20780 | PyObject *resultobj; | |
20781 | int arg1 = (int) 0 ; | |
20782 | int arg2 = (int) 0 ; | |
20783 | int arg3 = (int) 0 ; | |
d55e5bfc RD |
20784 | wxAcceleratorEntry *result; |
20785 | PyObject * obj0 = 0 ; | |
20786 | PyObject * obj1 = 0 ; | |
20787 | PyObject * obj2 = 0 ; | |
d55e5bfc | 20788 | char *kwnames[] = { |
c24da6d6 | 20789 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
d55e5bfc RD |
20790 | }; |
20791 | ||
c24da6d6 | 20792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
20793 | if (obj0) { |
20794 | arg1 = (int) SWIG_AsInt(obj0); | |
20795 | if (PyErr_Occurred()) SWIG_fail; | |
20796 | } | |
20797 | if (obj1) { | |
20798 | arg2 = (int) SWIG_AsInt(obj1); | |
20799 | if (PyErr_Occurred()) SWIG_fail; | |
20800 | } | |
20801 | if (obj2) { | |
20802 | arg3 = (int) SWIG_AsInt(obj2); | |
20803 | if (PyErr_Occurred()) SWIG_fail; | |
20804 | } | |
d55e5bfc RD |
20805 | { |
20806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 20807 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
d55e5bfc RD |
20808 | |
20809 | wxPyEndAllowThreads(__tstate); | |
20810 | if (PyErr_Occurred()) SWIG_fail; | |
20811 | } | |
20812 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); | |
20813 | return resultobj; | |
20814 | fail: | |
20815 | return NULL; | |
20816 | } | |
20817 | ||
20818 | ||
20819 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20820 | PyObject *resultobj; | |
20821 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20822 | PyObject * obj0 = 0 ; | |
20823 | char *kwnames[] = { | |
20824 | (char *) "self", NULL | |
20825 | }; | |
20826 | ||
20827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
20828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
20829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20830 | { | |
20831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20832 | delete arg1; | |
20833 | ||
20834 | wxPyEndAllowThreads(__tstate); | |
20835 | if (PyErr_Occurred()) SWIG_fail; | |
20836 | } | |
20837 | Py_INCREF(Py_None); resultobj = Py_None; | |
20838 | return resultobj; | |
20839 | fail: | |
20840 | return NULL; | |
20841 | } | |
20842 | ||
20843 | ||
20844 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20845 | PyObject *resultobj; | |
20846 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20847 | int arg2 ; | |
20848 | int arg3 ; | |
20849 | int arg4 ; | |
d55e5bfc RD |
20850 | PyObject * obj0 = 0 ; |
20851 | PyObject * obj1 = 0 ; | |
20852 | PyObject * obj2 = 0 ; | |
20853 | PyObject * obj3 = 0 ; | |
d55e5bfc | 20854 | char *kwnames[] = { |
c24da6d6 | 20855 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
d55e5bfc RD |
20856 | }; |
20857 | ||
c24da6d6 | 20858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
20859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20861 | arg2 = (int) SWIG_AsInt(obj1); | |
20862 | if (PyErr_Occurred()) SWIG_fail; | |
20863 | arg3 = (int) SWIG_AsInt(obj2); | |
20864 | if (PyErr_Occurred()) SWIG_fail; | |
20865 | arg4 = (int) SWIG_AsInt(obj3); | |
20866 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc RD |
20867 | { |
20868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 20869 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
20870 | |
20871 | wxPyEndAllowThreads(__tstate); | |
20872 | if (PyErr_Occurred()) SWIG_fail; | |
20873 | } | |
20874 | Py_INCREF(Py_None); resultobj = Py_None; | |
20875 | return resultobj; | |
20876 | fail: | |
20877 | return NULL; | |
20878 | } | |
20879 | ||
20880 | ||
d55e5bfc RD |
20881 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { |
20882 | PyObject *resultobj; | |
20883 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20884 | int result; | |
20885 | PyObject * obj0 = 0 ; | |
20886 | char *kwnames[] = { | |
20887 | (char *) "self", NULL | |
20888 | }; | |
20889 | ||
20890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
20891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
20892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20893 | { | |
20894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20895 | result = (int)(arg1)->GetFlags(); | |
20896 | ||
20897 | wxPyEndAllowThreads(__tstate); | |
20898 | if (PyErr_Occurred()) SWIG_fail; | |
20899 | } | |
20900 | resultobj = SWIG_FromInt((int)result); | |
20901 | return resultobj; | |
20902 | fail: | |
20903 | return NULL; | |
20904 | } | |
20905 | ||
20906 | ||
20907 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20908 | PyObject *resultobj; | |
20909 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20910 | int result; | |
20911 | PyObject * obj0 = 0 ; | |
20912 | char *kwnames[] = { | |
20913 | (char *) "self", NULL | |
20914 | }; | |
20915 | ||
20916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
20917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
20918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20919 | { | |
20920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20921 | result = (int)(arg1)->GetKeyCode(); | |
20922 | ||
20923 | wxPyEndAllowThreads(__tstate); | |
20924 | if (PyErr_Occurred()) SWIG_fail; | |
20925 | } | |
20926 | resultobj = SWIG_FromInt((int)result); | |
20927 | return resultobj; | |
20928 | fail: | |
20929 | return NULL; | |
20930 | } | |
20931 | ||
20932 | ||
20933 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20934 | PyObject *resultobj; | |
20935 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20936 | int result; | |
20937 | PyObject * obj0 = 0 ; | |
20938 | char *kwnames[] = { | |
20939 | (char *) "self", NULL | |
20940 | }; | |
20941 | ||
20942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
20943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
20944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20945 | { | |
20946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20947 | result = (int)(arg1)->GetCommand(); | |
20948 | ||
20949 | wxPyEndAllowThreads(__tstate); | |
20950 | if (PyErr_Occurred()) SWIG_fail; | |
20951 | } | |
20952 | resultobj = SWIG_FromInt((int)result); | |
20953 | return resultobj; | |
20954 | fail: | |
20955 | return NULL; | |
20956 | } | |
20957 | ||
20958 | ||
20959 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
20960 | PyObject *obj; | |
20961 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20962 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
20963 | Py_INCREF(obj); | |
20964 | return Py_BuildValue((char *)""); | |
20965 | } | |
20966 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20967 | PyObject *resultobj; | |
20968 | int arg1 ; | |
20969 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
20970 | wxAcceleratorTable *result; | |
20971 | PyObject * obj0 = 0 ; | |
20972 | char *kwnames[] = { | |
20973 | (char *) "n", NULL | |
20974 | }; | |
20975 | ||
20976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
20977 | { | |
20978 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
20979 | if (arg2) arg1 = PyList_Size(obj0); | |
20980 | else arg1 = 0; | |
20981 | } | |
20982 | { | |
20983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20984 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
20985 | ||
20986 | wxPyEndAllowThreads(__tstate); | |
20987 | if (PyErr_Occurred()) SWIG_fail; | |
20988 | } | |
20989 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); | |
20990 | { | |
20991 | delete [] arg2; | |
20992 | } | |
20993 | return resultobj; | |
20994 | fail: | |
20995 | { | |
20996 | delete [] arg2; | |
20997 | } | |
20998 | return NULL; | |
20999 | } | |
21000 | ||
21001 | ||
21002 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21003 | PyObject *resultobj; | |
21004 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21005 | PyObject * obj0 = 0 ; | |
21006 | char *kwnames[] = { | |
21007 | (char *) "self", NULL | |
21008 | }; | |
21009 | ||
21010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21013 | { | |
21014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21015 | delete arg1; | |
21016 | ||
21017 | wxPyEndAllowThreads(__tstate); | |
21018 | if (PyErr_Occurred()) SWIG_fail; | |
21019 | } | |
21020 | Py_INCREF(Py_None); resultobj = Py_None; | |
21021 | return resultobj; | |
21022 | fail: | |
21023 | return NULL; | |
21024 | } | |
21025 | ||
21026 | ||
21027 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21028 | PyObject *resultobj; | |
21029 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21030 | bool result; | |
21031 | PyObject * obj0 = 0 ; | |
21032 | char *kwnames[] = { | |
21033 | (char *) "self", NULL | |
21034 | }; | |
21035 | ||
21036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
21037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21039 | { | |
21040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21041 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21042 | ||
21043 | wxPyEndAllowThreads(__tstate); | |
21044 | if (PyErr_Occurred()) SWIG_fail; | |
21045 | } | |
21046 | { | |
21047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21048 | } | |
21049 | return resultobj; | |
21050 | fail: | |
21051 | return NULL; | |
21052 | } | |
21053 | ||
21054 | ||
21055 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
21056 | PyObject *obj; | |
21057 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21058 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21059 | Py_INCREF(obj); | |
21060 | return Py_BuildValue((char *)""); | |
21061 | } | |
21062 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { | |
21063 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); | |
21064 | return 1; | |
21065 | } | |
21066 | ||
21067 | ||
21068 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21069 | PyObject *pyobj; | |
21070 | ||
21071 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); | |
21072 | return pyobj; | |
21073 | } | |
21074 | ||
21075 | ||
21076 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21077 | PyObject *resultobj; | |
21078 | wxString *arg1 = 0 ; | |
21079 | wxAcceleratorEntry *result; | |
21080 | bool temp1 = False ; | |
21081 | PyObject * obj0 = 0 ; | |
21082 | char *kwnames[] = { | |
21083 | (char *) "label", NULL | |
21084 | }; | |
21085 | ||
21086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21087 | { | |
21088 | arg1 = wxString_in_helper(obj0); | |
21089 | if (arg1 == NULL) SWIG_fail; | |
21090 | temp1 = True; | |
21091 | } | |
21092 | { | |
21093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21094 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21095 | ||
21096 | wxPyEndAllowThreads(__tstate); | |
21097 | if (PyErr_Occurred()) SWIG_fail; | |
21098 | } | |
21099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
21100 | { | |
21101 | if (temp1) | |
21102 | delete arg1; | |
21103 | } | |
21104 | return resultobj; | |
21105 | fail: | |
21106 | { | |
21107 | if (temp1) | |
21108 | delete arg1; | |
21109 | } | |
21110 | return NULL; | |
21111 | } | |
21112 | ||
21113 | ||
21114 | static int _wrap_PanelNameStr_set(PyObject *_val) { | |
21115 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); | |
21116 | return 1; | |
21117 | } | |
21118 | ||
21119 | ||
21120 | static PyObject *_wrap_PanelNameStr_get() { | |
21121 | PyObject *pyobj; | |
21122 | ||
21123 | { | |
21124 | #if wxUSE_UNICODE | |
21125 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21126 | #else | |
21127 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21128 | #endif | |
21129 | } | |
21130 | return pyobj; | |
21131 | } | |
21132 | ||
21133 | ||
21134 | static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21135 | PyObject *resultobj; | |
21136 | wxVisualAttributes *result; | |
21137 | char *kwnames[] = { | |
21138 | NULL | |
21139 | }; | |
21140 | ||
21141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
21142 | { | |
21143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21144 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
21145 | ||
21146 | wxPyEndAllowThreads(__tstate); | |
21147 | if (PyErr_Occurred()) SWIG_fail; | |
21148 | } | |
21149 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
21150 | return resultobj; | |
21151 | fail: | |
21152 | return NULL; | |
21153 | } | |
21154 | ||
21155 | ||
21156 | static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21157 | PyObject *resultobj; | |
21158 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21159 | PyObject * obj0 = 0 ; | |
21160 | char *kwnames[] = { | |
21161 | (char *) "self", NULL | |
21162 | }; | |
21163 | ||
21164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
21165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21167 | { | |
21168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21169 | delete_wxVisualAttributes(arg1); | |
21170 | ||
21171 | wxPyEndAllowThreads(__tstate); | |
21172 | if (PyErr_Occurred()) SWIG_fail; | |
21173 | } | |
21174 | Py_INCREF(Py_None); resultobj = Py_None; | |
21175 | return resultobj; | |
21176 | fail: | |
21177 | return NULL; | |
21178 | } | |
21179 | ||
21180 | ||
21181 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21182 | PyObject *resultobj; | |
21183 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21184 | wxFont *arg2 = (wxFont *) 0 ; | |
21185 | PyObject * obj0 = 0 ; | |
21186 | PyObject * obj1 = 0 ; | |
21187 | char *kwnames[] = { | |
21188 | (char *) "self",(char *) "font", NULL | |
21189 | }; | |
21190 | ||
21191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
21192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21194 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
21195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21196 | if (arg1) (arg1)->font = *arg2; | |
21197 | ||
21198 | Py_INCREF(Py_None); resultobj = Py_None; | |
21199 | return resultobj; | |
21200 | fail: | |
21201 | return NULL; | |
21202 | } | |
21203 | ||
21204 | ||
21205 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21206 | PyObject *resultobj; | |
21207 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21208 | wxFont *result; | |
21209 | PyObject * obj0 = 0 ; | |
21210 | char *kwnames[] = { | |
21211 | (char *) "self", NULL | |
21212 | }; | |
21213 | ||
21214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
21215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21217 | result = (wxFont *)& ((arg1)->font); | |
21218 | ||
21219 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
21220 | return resultobj; | |
21221 | fail: | |
21222 | return NULL; | |
21223 | } | |
21224 | ||
21225 | ||
21226 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21227 | PyObject *resultobj; | |
21228 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21229 | wxColour *arg2 = (wxColour *) 0 ; | |
21230 | PyObject * obj0 = 0 ; | |
21231 | PyObject * obj1 = 0 ; | |
21232 | char *kwnames[] = { | |
21233 | (char *) "self",(char *) "colFg", NULL | |
21234 | }; | |
21235 | ||
21236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
21237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21239 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21241 | if (arg1) (arg1)->colFg = *arg2; | |
21242 | ||
21243 | Py_INCREF(Py_None); resultobj = Py_None; | |
21244 | return resultobj; | |
21245 | fail: | |
21246 | return NULL; | |
21247 | } | |
21248 | ||
21249 | ||
21250 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21251 | PyObject *resultobj; | |
21252 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21253 | wxColour *result; | |
21254 | PyObject * obj0 = 0 ; | |
21255 | char *kwnames[] = { | |
21256 | (char *) "self", NULL | |
21257 | }; | |
21258 | ||
21259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
21260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21262 | result = (wxColour *)& ((arg1)->colFg); | |
21263 | ||
21264 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21265 | return resultobj; | |
21266 | fail: | |
21267 | return NULL; | |
21268 | } | |
21269 | ||
21270 | ||
21271 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21272 | PyObject *resultobj; | |
21273 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21274 | wxColour *arg2 = (wxColour *) 0 ; | |
21275 | PyObject * obj0 = 0 ; | |
21276 | PyObject * obj1 = 0 ; | |
21277 | char *kwnames[] = { | |
21278 | (char *) "self",(char *) "colBg", NULL | |
21279 | }; | |
21280 | ||
21281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
21282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21284 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21286 | if (arg1) (arg1)->colBg = *arg2; | |
21287 | ||
21288 | Py_INCREF(Py_None); resultobj = Py_None; | |
21289 | return resultobj; | |
21290 | fail: | |
21291 | return NULL; | |
21292 | } | |
21293 | ||
21294 | ||
21295 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21296 | PyObject *resultobj; | |
21297 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21298 | wxColour *result; | |
21299 | PyObject * obj0 = 0 ; | |
21300 | char *kwnames[] = { | |
21301 | (char *) "self", NULL | |
21302 | }; | |
21303 | ||
21304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
21305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21307 | result = (wxColour *)& ((arg1)->colBg); | |
21308 | ||
21309 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21310 | return resultobj; | |
21311 | fail: | |
21312 | return NULL; | |
21313 | } | |
21314 | ||
21315 | ||
21316 | static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) { | |
21317 | PyObject *obj; | |
21318 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21319 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
21320 | Py_INCREF(obj); | |
21321 | return Py_BuildValue((char *)""); | |
21322 | } | |
21323 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21324 | PyObject *resultobj; | |
21325 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21326 | int arg2 = (int) (int)-1 ; | |
21327 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21328 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21329 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21330 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21331 | long arg5 = (long) 0 ; | |
21332 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21333 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21334 | wxWindow *result; | |
21335 | wxPoint temp3 ; | |
21336 | wxSize temp4 ; | |
21337 | bool temp6 = False ; | |
21338 | PyObject * obj0 = 0 ; | |
21339 | PyObject * obj1 = 0 ; | |
21340 | PyObject * obj2 = 0 ; | |
21341 | PyObject * obj3 = 0 ; | |
21342 | PyObject * obj4 = 0 ; | |
21343 | PyObject * obj5 = 0 ; | |
21344 | char *kwnames[] = { | |
21345 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21346 | }; | |
21347 | ||
21348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
21349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21351 | if (obj1) { | |
21352 | arg2 = (int const) SWIG_AsInt(obj1); | |
21353 | if (PyErr_Occurred()) SWIG_fail; | |
21354 | } | |
21355 | if (obj2) { | |
21356 | { | |
21357 | arg3 = &temp3; | |
21358 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21359 | } | |
21360 | } | |
21361 | if (obj3) { | |
21362 | { | |
21363 | arg4 = &temp4; | |
21364 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21365 | } | |
21366 | } | |
21367 | if (obj4) { | |
21368 | arg5 = (long) SWIG_AsLong(obj4); | |
21369 | if (PyErr_Occurred()) SWIG_fail; | |
21370 | } | |
21371 | if (obj5) { | |
21372 | { | |
21373 | arg6 = wxString_in_helper(obj5); | |
21374 | if (arg6 == NULL) SWIG_fail; | |
21375 | temp6 = True; | |
21376 | } | |
21377 | } | |
21378 | { | |
21379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21380 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21381 | ||
21382 | wxPyEndAllowThreads(__tstate); | |
21383 | if (PyErr_Occurred()) SWIG_fail; | |
21384 | } | |
21385 | { | |
21386 | resultobj = wxPyMake_wxObject(result); | |
21387 | } | |
21388 | { | |
21389 | if (temp6) | |
21390 | delete arg6; | |
21391 | } | |
21392 | return resultobj; | |
21393 | fail: | |
21394 | { | |
21395 | if (temp6) | |
21396 | delete arg6; | |
21397 | } | |
21398 | return NULL; | |
21399 | } | |
21400 | ||
21401 | ||
21402 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21403 | PyObject *resultobj; | |
21404 | wxWindow *result; | |
21405 | char *kwnames[] = { | |
21406 | NULL | |
21407 | }; | |
21408 | ||
21409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
21410 | { | |
21411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21412 | result = (wxWindow *)new wxWindow(); | |
21413 | ||
21414 | wxPyEndAllowThreads(__tstate); | |
21415 | if (PyErr_Occurred()) SWIG_fail; | |
21416 | } | |
21417 | { | |
21418 | resultobj = wxPyMake_wxObject(result); | |
21419 | } | |
21420 | return resultobj; | |
21421 | fail: | |
21422 | return NULL; | |
21423 | } | |
21424 | ||
21425 | ||
21426 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21427 | PyObject *resultobj; | |
21428 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21429 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21430 | int arg3 = (int) (int)-1 ; | |
21431 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21432 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21433 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21434 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21435 | long arg6 = (long) 0 ; | |
21436 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
21437 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21438 | bool result; | |
21439 | wxPoint temp4 ; | |
21440 | wxSize temp5 ; | |
21441 | bool temp7 = False ; | |
21442 | PyObject * obj0 = 0 ; | |
21443 | PyObject * obj1 = 0 ; | |
21444 | PyObject * obj2 = 0 ; | |
21445 | PyObject * obj3 = 0 ; | |
21446 | PyObject * obj4 = 0 ; | |
21447 | PyObject * obj5 = 0 ; | |
21448 | PyObject * obj6 = 0 ; | |
21449 | char *kwnames[] = { | |
21450 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21451 | }; | |
21452 | ||
21453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21456 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21458 | if (obj2) { | |
21459 | arg3 = (int const) SWIG_AsInt(obj2); | |
21460 | if (PyErr_Occurred()) SWIG_fail; | |
21461 | } | |
21462 | if (obj3) { | |
21463 | { | |
21464 | arg4 = &temp4; | |
21465 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21466 | } | |
21467 | } | |
21468 | if (obj4) { | |
21469 | { | |
21470 | arg5 = &temp5; | |
21471 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21472 | } | |
21473 | } | |
21474 | if (obj5) { | |
21475 | arg6 = (long) SWIG_AsLong(obj5); | |
21476 | if (PyErr_Occurred()) SWIG_fail; | |
21477 | } | |
21478 | if (obj6) { | |
21479 | { | |
21480 | arg7 = wxString_in_helper(obj6); | |
21481 | if (arg7 == NULL) SWIG_fail; | |
21482 | temp7 = True; | |
21483 | } | |
21484 | } | |
21485 | { | |
21486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21487 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21488 | ||
21489 | wxPyEndAllowThreads(__tstate); | |
21490 | if (PyErr_Occurred()) SWIG_fail; | |
21491 | } | |
21492 | { | |
21493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21494 | } | |
21495 | { | |
21496 | if (temp7) | |
21497 | delete arg7; | |
21498 | } | |
21499 | return resultobj; | |
21500 | fail: | |
21501 | { | |
21502 | if (temp7) | |
21503 | delete arg7; | |
21504 | } | |
21505 | return NULL; | |
21506 | } | |
21507 | ||
21508 | ||
21509 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21510 | PyObject *resultobj; | |
21511 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21512 | bool arg2 = (bool) False ; | |
21513 | bool result; | |
21514 | PyObject * obj0 = 0 ; | |
21515 | PyObject * obj1 = 0 ; | |
21516 | char *kwnames[] = { | |
21517 | (char *) "self",(char *) "force", NULL | |
21518 | }; | |
21519 | ||
21520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
21521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21523 | if (obj1) { | |
21524 | arg2 = (bool) SWIG_AsBool(obj1); | |
21525 | if (PyErr_Occurred()) SWIG_fail; | |
21526 | } | |
21527 | { | |
21528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21529 | result = (bool)(arg1)->Close(arg2); | |
21530 | ||
21531 | wxPyEndAllowThreads(__tstate); | |
21532 | if (PyErr_Occurred()) SWIG_fail; | |
21533 | } | |
21534 | { | |
21535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21536 | } | |
21537 | return resultobj; | |
21538 | fail: | |
21539 | return NULL; | |
21540 | } | |
21541 | ||
21542 | ||
21543 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21544 | PyObject *resultobj; | |
21545 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21546 | bool result; | |
21547 | PyObject * obj0 = 0 ; | |
21548 | char *kwnames[] = { | |
21549 | (char *) "self", NULL | |
21550 | }; | |
21551 | ||
21552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
21553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21555 | { | |
21556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21557 | result = (bool)(arg1)->Destroy(); | |
21558 | ||
21559 | wxPyEndAllowThreads(__tstate); | |
21560 | if (PyErr_Occurred()) SWIG_fail; | |
21561 | } | |
21562 | { | |
21563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21564 | } | |
21565 | return resultobj; | |
21566 | fail: | |
21567 | return NULL; | |
21568 | } | |
21569 | ||
21570 | ||
21571 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21572 | PyObject *resultobj; | |
21573 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21574 | bool result; | |
21575 | PyObject * obj0 = 0 ; | |
21576 | char *kwnames[] = { | |
21577 | (char *) "self", NULL | |
21578 | }; | |
21579 | ||
21580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
21581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21583 | { | |
21584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21585 | result = (bool)(arg1)->DestroyChildren(); | |
21586 | ||
21587 | wxPyEndAllowThreads(__tstate); | |
21588 | if (PyErr_Occurred()) SWIG_fail; | |
21589 | } | |
21590 | { | |
21591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21592 | } | |
21593 | return resultobj; | |
21594 | fail: | |
21595 | return NULL; | |
21596 | } | |
21597 | ||
21598 | ||
21599 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21600 | PyObject *resultobj; | |
21601 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21602 | bool result; | |
21603 | PyObject * obj0 = 0 ; | |
21604 | char *kwnames[] = { | |
21605 | (char *) "self", NULL | |
21606 | }; | |
21607 | ||
21608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
21609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21611 | { | |
21612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21613 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
21614 | ||
21615 | wxPyEndAllowThreads(__tstate); | |
21616 | if (PyErr_Occurred()) SWIG_fail; | |
21617 | } | |
21618 | { | |
21619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21620 | } | |
21621 | return resultobj; | |
21622 | fail: | |
21623 | return NULL; | |
21624 | } | |
21625 | ||
21626 | ||
21627 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21628 | PyObject *resultobj; | |
21629 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21630 | wxString *arg2 = 0 ; | |
21631 | bool temp2 = False ; | |
21632 | PyObject * obj0 = 0 ; | |
21633 | PyObject * obj1 = 0 ; | |
21634 | char *kwnames[] = { | |
21635 | (char *) "self",(char *) "title", NULL | |
21636 | }; | |
21637 | ||
21638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
21639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21641 | { | |
21642 | arg2 = wxString_in_helper(obj1); | |
21643 | if (arg2 == NULL) SWIG_fail; | |
21644 | temp2 = True; | |
21645 | } | |
21646 | { | |
21647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21648 | (arg1)->SetTitle((wxString const &)*arg2); | |
21649 | ||
21650 | wxPyEndAllowThreads(__tstate); | |
21651 | if (PyErr_Occurred()) SWIG_fail; | |
21652 | } | |
21653 | Py_INCREF(Py_None); resultobj = Py_None; | |
21654 | { | |
21655 | if (temp2) | |
21656 | delete arg2; | |
21657 | } | |
21658 | return resultobj; | |
21659 | fail: | |
21660 | { | |
21661 | if (temp2) | |
21662 | delete arg2; | |
21663 | } | |
21664 | return NULL; | |
21665 | } | |
21666 | ||
21667 | ||
21668 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21669 | PyObject *resultobj; | |
21670 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21671 | wxString result; | |
21672 | PyObject * obj0 = 0 ; | |
21673 | char *kwnames[] = { | |
21674 | (char *) "self", NULL | |
21675 | }; | |
21676 | ||
21677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
21678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21680 | { | |
21681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21682 | result = ((wxWindow const *)arg1)->GetTitle(); | |
21683 | ||
21684 | wxPyEndAllowThreads(__tstate); | |
21685 | if (PyErr_Occurred()) SWIG_fail; | |
21686 | } | |
21687 | { | |
21688 | #if wxUSE_UNICODE | |
21689 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21690 | #else | |
21691 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21692 | #endif | |
21693 | } | |
21694 | return resultobj; | |
21695 | fail: | |
21696 | return NULL; | |
21697 | } | |
21698 | ||
21699 | ||
21700 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21701 | PyObject *resultobj; | |
21702 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21703 | wxString *arg2 = 0 ; | |
21704 | bool temp2 = False ; | |
21705 | PyObject * obj0 = 0 ; | |
21706 | PyObject * obj1 = 0 ; | |
21707 | char *kwnames[] = { | |
21708 | (char *) "self",(char *) "label", NULL | |
21709 | }; | |
21710 | ||
21711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
21712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21714 | { | |
21715 | arg2 = wxString_in_helper(obj1); | |
21716 | if (arg2 == NULL) SWIG_fail; | |
21717 | temp2 = True; | |
21718 | } | |
21719 | { | |
21720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21721 | (arg1)->SetLabel((wxString const &)*arg2); | |
21722 | ||
21723 | wxPyEndAllowThreads(__tstate); | |
21724 | if (PyErr_Occurred()) SWIG_fail; | |
21725 | } | |
21726 | Py_INCREF(Py_None); resultobj = Py_None; | |
21727 | { | |
21728 | if (temp2) | |
21729 | delete arg2; | |
21730 | } | |
21731 | return resultobj; | |
21732 | fail: | |
21733 | { | |
21734 | if (temp2) | |
21735 | delete arg2; | |
21736 | } | |
21737 | return NULL; | |
21738 | } | |
21739 | ||
21740 | ||
21741 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21742 | PyObject *resultobj; | |
21743 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21744 | wxString result; | |
21745 | PyObject * obj0 = 0 ; | |
21746 | char *kwnames[] = { | |
21747 | (char *) "self", NULL | |
21748 | }; | |
21749 | ||
21750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
21751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21753 | { | |
21754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21755 | result = ((wxWindow const *)arg1)->GetLabel(); | |
21756 | ||
21757 | wxPyEndAllowThreads(__tstate); | |
21758 | if (PyErr_Occurred()) SWIG_fail; | |
21759 | } | |
21760 | { | |
21761 | #if wxUSE_UNICODE | |
21762 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21763 | #else | |
21764 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21765 | #endif | |
21766 | } | |
21767 | return resultobj; | |
21768 | fail: | |
21769 | return NULL; | |
21770 | } | |
21771 | ||
21772 | ||
21773 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21774 | PyObject *resultobj; | |
21775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21776 | wxString *arg2 = 0 ; | |
21777 | bool temp2 = False ; | |
21778 | PyObject * obj0 = 0 ; | |
21779 | PyObject * obj1 = 0 ; | |
21780 | char *kwnames[] = { | |
21781 | (char *) "self",(char *) "name", NULL | |
21782 | }; | |
21783 | ||
21784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
21785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21787 | { | |
21788 | arg2 = wxString_in_helper(obj1); | |
21789 | if (arg2 == NULL) SWIG_fail; | |
21790 | temp2 = True; | |
21791 | } | |
21792 | { | |
21793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21794 | (arg1)->SetName((wxString const &)*arg2); | |
21795 | ||
21796 | wxPyEndAllowThreads(__tstate); | |
21797 | if (PyErr_Occurred()) SWIG_fail; | |
21798 | } | |
21799 | Py_INCREF(Py_None); resultobj = Py_None; | |
21800 | { | |
21801 | if (temp2) | |
21802 | delete arg2; | |
21803 | } | |
21804 | return resultobj; | |
21805 | fail: | |
21806 | { | |
21807 | if (temp2) | |
21808 | delete arg2; | |
21809 | } | |
21810 | return NULL; | |
21811 | } | |
21812 | ||
21813 | ||
21814 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21815 | PyObject *resultobj; | |
21816 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21817 | wxString result; | |
21818 | PyObject * obj0 = 0 ; | |
21819 | char *kwnames[] = { | |
21820 | (char *) "self", NULL | |
21821 | }; | |
21822 | ||
21823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
21824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21826 | { | |
21827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21828 | result = ((wxWindow const *)arg1)->GetName(); | |
21829 | ||
21830 | wxPyEndAllowThreads(__tstate); | |
21831 | if (PyErr_Occurred()) SWIG_fail; | |
21832 | } | |
21833 | { | |
21834 | #if wxUSE_UNICODE | |
21835 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21836 | #else | |
21837 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21838 | #endif | |
21839 | } | |
21840 | return resultobj; | |
21841 | fail: | |
21842 | return NULL; | |
21843 | } | |
21844 | ||
21845 | ||
21846 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21847 | PyObject *resultobj; | |
21848 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21849 | int arg2 ; | |
21850 | PyObject * obj0 = 0 ; | |
21851 | PyObject * obj1 = 0 ; | |
21852 | char *kwnames[] = { | |
21853 | (char *) "self",(char *) "variant", NULL | |
21854 | }; | |
21855 | ||
21856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
21857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21859 | arg2 = (wxWindowVariant) SWIG_AsInt(obj1); | |
21860 | if (PyErr_Occurred()) SWIG_fail; | |
21861 | { | |
21862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21863 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
21864 | ||
21865 | wxPyEndAllowThreads(__tstate); | |
21866 | if (PyErr_Occurred()) SWIG_fail; | |
21867 | } | |
21868 | Py_INCREF(Py_None); resultobj = Py_None; | |
21869 | return resultobj; | |
21870 | fail: | |
21871 | return NULL; | |
21872 | } | |
21873 | ||
21874 | ||
21875 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21876 | PyObject *resultobj; | |
21877 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21878 | int result; | |
21879 | PyObject * obj0 = 0 ; | |
21880 | char *kwnames[] = { | |
21881 | (char *) "self", NULL | |
21882 | }; | |
21883 | ||
21884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
21885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21887 | { | |
21888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21889 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
21890 | ||
21891 | wxPyEndAllowThreads(__tstate); | |
21892 | if (PyErr_Occurred()) SWIG_fail; | |
21893 | } | |
21894 | resultobj = SWIG_FromInt((int)result); | |
21895 | return resultobj; | |
21896 | fail: | |
21897 | return NULL; | |
21898 | } | |
21899 | ||
21900 | ||
21901 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21902 | PyObject *resultobj; | |
21903 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21904 | int arg2 ; | |
21905 | PyObject * obj0 = 0 ; | |
21906 | PyObject * obj1 = 0 ; | |
21907 | char *kwnames[] = { | |
21908 | (char *) "self",(char *) "winid", NULL | |
21909 | }; | |
21910 | ||
21911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; | |
21912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21914 | arg2 = (int) SWIG_AsInt(obj1); | |
21915 | if (PyErr_Occurred()) SWIG_fail; | |
21916 | { | |
21917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21918 | (arg1)->SetId(arg2); | |
21919 | ||
21920 | wxPyEndAllowThreads(__tstate); | |
21921 | if (PyErr_Occurred()) SWIG_fail; | |
21922 | } | |
21923 | Py_INCREF(Py_None); resultobj = Py_None; | |
21924 | return resultobj; | |
21925 | fail: | |
21926 | return NULL; | |
21927 | } | |
21928 | ||
21929 | ||
21930 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21931 | PyObject *resultobj; | |
21932 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21933 | int result; | |
21934 | PyObject * obj0 = 0 ; | |
21935 | char *kwnames[] = { | |
21936 | (char *) "self", NULL | |
21937 | }; | |
21938 | ||
21939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
21940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21942 | { | |
21943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21944 | result = (int)((wxWindow const *)arg1)->GetId(); | |
21945 | ||
21946 | wxPyEndAllowThreads(__tstate); | |
21947 | if (PyErr_Occurred()) SWIG_fail; | |
21948 | } | |
21949 | resultobj = SWIG_FromInt((int)result); | |
21950 | return resultobj; | |
21951 | fail: | |
21952 | return NULL; | |
21953 | } | |
21954 | ||
21955 | ||
21956 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21957 | PyObject *resultobj; | |
21958 | int result; | |
21959 | char *kwnames[] = { | |
21960 | NULL | |
21961 | }; | |
21962 | ||
21963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
21964 | { | |
21965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21966 | result = (int)wxWindow::NewControlId(); | |
21967 | ||
21968 | wxPyEndAllowThreads(__tstate); | |
21969 | if (PyErr_Occurred()) SWIG_fail; | |
21970 | } | |
21971 | resultobj = SWIG_FromInt((int)result); | |
21972 | return resultobj; | |
21973 | fail: | |
21974 | return NULL; | |
21975 | } | |
21976 | ||
21977 | ||
21978 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21979 | PyObject *resultobj; | |
21980 | int arg1 ; | |
21981 | int result; | |
21982 | PyObject * obj0 = 0 ; | |
21983 | char *kwnames[] = { | |
21984 | (char *) "winid", NULL | |
21985 | }; | |
21986 | ||
21987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; | |
21988 | arg1 = (int) SWIG_AsInt(obj0); | |
21989 | if (PyErr_Occurred()) SWIG_fail; | |
21990 | { | |
21991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21992 | result = (int)wxWindow::NextControlId(arg1); | |
21993 | ||
21994 | wxPyEndAllowThreads(__tstate); | |
21995 | if (PyErr_Occurred()) SWIG_fail; | |
21996 | } | |
21997 | resultobj = SWIG_FromInt((int)result); | |
21998 | return resultobj; | |
21999 | fail: | |
22000 | return NULL; | |
22001 | } | |
22002 | ||
22003 | ||
22004 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22005 | PyObject *resultobj; | |
22006 | int arg1 ; | |
22007 | int result; | |
22008 | PyObject * obj0 = 0 ; | |
22009 | char *kwnames[] = { | |
22010 | (char *) "winid", NULL | |
22011 | }; | |
22012 | ||
22013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; | |
22014 | arg1 = (int) SWIG_AsInt(obj0); | |
22015 | if (PyErr_Occurred()) SWIG_fail; | |
22016 | { | |
22017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22018 | result = (int)wxWindow::PrevControlId(arg1); | |
22019 | ||
22020 | wxPyEndAllowThreads(__tstate); | |
22021 | if (PyErr_Occurred()) SWIG_fail; | |
22022 | } | |
22023 | resultobj = SWIG_FromInt((int)result); | |
22024 | return resultobj; | |
22025 | fail: | |
22026 | return NULL; | |
22027 | } | |
22028 | ||
22029 | ||
22030 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22031 | PyObject *resultobj; | |
22032 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22033 | wxSize *arg2 = 0 ; | |
22034 | wxSize temp2 ; | |
22035 | PyObject * obj0 = 0 ; | |
22036 | PyObject * obj1 = 0 ; | |
22037 | char *kwnames[] = { | |
22038 | (char *) "self",(char *) "size", NULL | |
22039 | }; | |
22040 | ||
22041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
22042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22044 | { | |
22045 | arg2 = &temp2; | |
22046 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22047 | } | |
22048 | { | |
22049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22050 | (arg1)->SetSize((wxSize const &)*arg2); | |
22051 | ||
22052 | wxPyEndAllowThreads(__tstate); | |
22053 | if (PyErr_Occurred()) SWIG_fail; | |
22054 | } | |
22055 | Py_INCREF(Py_None); resultobj = Py_None; | |
22056 | return resultobj; | |
22057 | fail: | |
22058 | return NULL; | |
22059 | } | |
22060 | ||
22061 | ||
22062 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22063 | PyObject *resultobj; | |
22064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22065 | int arg2 ; | |
22066 | int arg3 ; | |
22067 | int arg4 ; | |
22068 | int arg5 ; | |
22069 | int arg6 = (int) wxSIZE_AUTO ; | |
22070 | PyObject * obj0 = 0 ; | |
22071 | PyObject * obj1 = 0 ; | |
22072 | PyObject * obj2 = 0 ; | |
22073 | PyObject * obj3 = 0 ; | |
22074 | PyObject * obj4 = 0 ; | |
22075 | PyObject * obj5 = 0 ; | |
22076 | char *kwnames[] = { | |
22077 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22078 | }; | |
22079 | ||
22080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22083 | arg2 = (int) SWIG_AsInt(obj1); | |
22084 | if (PyErr_Occurred()) SWIG_fail; | |
22085 | arg3 = (int) SWIG_AsInt(obj2); | |
22086 | if (PyErr_Occurred()) SWIG_fail; | |
22087 | arg4 = (int) SWIG_AsInt(obj3); | |
22088 | if (PyErr_Occurred()) SWIG_fail; | |
22089 | arg5 = (int) SWIG_AsInt(obj4); | |
22090 | if (PyErr_Occurred()) SWIG_fail; | |
22091 | if (obj5) { | |
22092 | arg6 = (int) SWIG_AsInt(obj5); | |
22093 | if (PyErr_Occurred()) SWIG_fail; | |
22094 | } | |
22095 | { | |
22096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22097 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
22098 | ||
22099 | wxPyEndAllowThreads(__tstate); | |
22100 | if (PyErr_Occurred()) SWIG_fail; | |
22101 | } | |
22102 | Py_INCREF(Py_None); resultobj = Py_None; | |
22103 | return resultobj; | |
22104 | fail: | |
22105 | return NULL; | |
22106 | } | |
22107 | ||
22108 | ||
22109 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22110 | PyObject *resultobj; | |
22111 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22112 | wxRect *arg2 = 0 ; | |
22113 | int arg3 = (int) wxSIZE_AUTO ; | |
22114 | wxRect temp2 ; | |
22115 | PyObject * obj0 = 0 ; | |
22116 | PyObject * obj1 = 0 ; | |
22117 | PyObject * obj2 = 0 ; | |
22118 | char *kwnames[] = { | |
22119 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
22120 | }; | |
22121 | ||
22122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22125 | { | |
22126 | arg2 = &temp2; | |
22127 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22128 | } | |
22129 | if (obj2) { | |
22130 | arg3 = (int) SWIG_AsInt(obj2); | |
22131 | if (PyErr_Occurred()) SWIG_fail; | |
22132 | } | |
22133 | { | |
22134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22135 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
22136 | ||
22137 | wxPyEndAllowThreads(__tstate); | |
22138 | if (PyErr_Occurred()) SWIG_fail; | |
22139 | } | |
22140 | Py_INCREF(Py_None); resultobj = Py_None; | |
22141 | return resultobj; | |
22142 | fail: | |
22143 | return NULL; | |
22144 | } | |
22145 | ||
22146 | ||
22147 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22148 | PyObject *resultobj; | |
22149 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22150 | int arg2 ; | |
22151 | int arg3 ; | |
22152 | PyObject * obj0 = 0 ; | |
22153 | PyObject * obj1 = 0 ; | |
22154 | PyObject * obj2 = 0 ; | |
22155 | char *kwnames[] = { | |
22156 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22157 | }; | |
22158 | ||
22159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22162 | arg2 = (int) SWIG_AsInt(obj1); | |
22163 | if (PyErr_Occurred()) SWIG_fail; | |
22164 | arg3 = (int) SWIG_AsInt(obj2); | |
22165 | if (PyErr_Occurred()) SWIG_fail; | |
22166 | { | |
22167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22168 | (arg1)->SetSize(arg2,arg3); | |
22169 | ||
22170 | wxPyEndAllowThreads(__tstate); | |
22171 | if (PyErr_Occurred()) SWIG_fail; | |
22172 | } | |
22173 | Py_INCREF(Py_None); resultobj = Py_None; | |
22174 | return resultobj; | |
22175 | fail: | |
22176 | return NULL; | |
22177 | } | |
22178 | ||
22179 | ||
22180 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22181 | PyObject *resultobj; | |
22182 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22183 | wxPoint *arg2 = 0 ; | |
22184 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
22185 | wxPoint temp2 ; | |
22186 | PyObject * obj0 = 0 ; | |
22187 | PyObject * obj1 = 0 ; | |
22188 | PyObject * obj2 = 0 ; | |
22189 | char *kwnames[] = { | |
22190 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
22191 | }; | |
22192 | ||
22193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22196 | { | |
22197 | arg2 = &temp2; | |
22198 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22199 | } | |
22200 | if (obj2) { | |
22201 | arg3 = (int) SWIG_AsInt(obj2); | |
22202 | if (PyErr_Occurred()) SWIG_fail; | |
22203 | } | |
22204 | { | |
22205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22206 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
22207 | ||
22208 | wxPyEndAllowThreads(__tstate); | |
22209 | if (PyErr_Occurred()) SWIG_fail; | |
22210 | } | |
22211 | Py_INCREF(Py_None); resultobj = Py_None; | |
22212 | return resultobj; | |
22213 | fail: | |
22214 | return NULL; | |
22215 | } | |
22216 | ||
22217 | ||
22218 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22219 | PyObject *resultobj; | |
22220 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22221 | int arg2 ; | |
22222 | int arg3 ; | |
22223 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
22224 | PyObject * obj0 = 0 ; | |
22225 | PyObject * obj1 = 0 ; | |
22226 | PyObject * obj2 = 0 ; | |
22227 | PyObject * obj3 = 0 ; | |
22228 | char *kwnames[] = { | |
22229 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
22230 | }; | |
22231 | ||
22232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22235 | arg2 = (int) SWIG_AsInt(obj1); | |
22236 | if (PyErr_Occurred()) SWIG_fail; | |
22237 | arg3 = (int) SWIG_AsInt(obj2); | |
22238 | if (PyErr_Occurred()) SWIG_fail; | |
22239 | if (obj3) { | |
22240 | arg4 = (int) SWIG_AsInt(obj3); | |
22241 | if (PyErr_Occurred()) SWIG_fail; | |
22242 | } | |
22243 | { | |
22244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22245 | (arg1)->Move(arg2,arg3,arg4); | |
22246 | ||
22247 | wxPyEndAllowThreads(__tstate); | |
22248 | if (PyErr_Occurred()) SWIG_fail; | |
22249 | } | |
22250 | Py_INCREF(Py_None); resultobj = Py_None; | |
22251 | return resultobj; | |
22252 | fail: | |
22253 | return NULL; | |
22254 | } | |
22255 | ||
22256 | ||
22257 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22258 | PyObject *resultobj; | |
22259 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22260 | PyObject * obj0 = 0 ; | |
22261 | char *kwnames[] = { | |
22262 | (char *) "self", NULL | |
22263 | }; | |
22264 | ||
22265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
22266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22268 | { | |
22269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22270 | (arg1)->Raise(); | |
22271 | ||
22272 | wxPyEndAllowThreads(__tstate); | |
22273 | if (PyErr_Occurred()) SWIG_fail; | |
22274 | } | |
22275 | Py_INCREF(Py_None); resultobj = Py_None; | |
22276 | return resultobj; | |
22277 | fail: | |
22278 | return NULL; | |
22279 | } | |
22280 | ||
22281 | ||
22282 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22283 | PyObject *resultobj; | |
22284 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22285 | PyObject * obj0 = 0 ; | |
22286 | char *kwnames[] = { | |
22287 | (char *) "self", NULL | |
22288 | }; | |
22289 | ||
22290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
22291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22293 | { | |
22294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22295 | (arg1)->Lower(); | |
22296 | ||
22297 | wxPyEndAllowThreads(__tstate); | |
22298 | if (PyErr_Occurred()) SWIG_fail; | |
22299 | } | |
22300 | Py_INCREF(Py_None); resultobj = Py_None; | |
22301 | return resultobj; | |
22302 | fail: | |
22303 | return NULL; | |
22304 | } | |
22305 | ||
22306 | ||
22307 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22308 | PyObject *resultobj; | |
22309 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22310 | wxSize *arg2 = 0 ; | |
22311 | wxSize temp2 ; | |
22312 | PyObject * obj0 = 0 ; | |
22313 | PyObject * obj1 = 0 ; | |
22314 | char *kwnames[] = { | |
22315 | (char *) "self",(char *) "size", NULL | |
22316 | }; | |
22317 | ||
22318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
22319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22321 | { | |
22322 | arg2 = &temp2; | |
22323 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22324 | } | |
22325 | { | |
22326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22327 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
22328 | ||
22329 | wxPyEndAllowThreads(__tstate); | |
22330 | if (PyErr_Occurred()) SWIG_fail; | |
22331 | } | |
22332 | Py_INCREF(Py_None); resultobj = Py_None; | |
22333 | return resultobj; | |
22334 | fail: | |
22335 | return NULL; | |
22336 | } | |
22337 | ||
22338 | ||
22339 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22340 | PyObject *resultobj; | |
22341 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22342 | int arg2 ; | |
22343 | int arg3 ; | |
22344 | PyObject * obj0 = 0 ; | |
22345 | PyObject * obj1 = 0 ; | |
22346 | PyObject * obj2 = 0 ; | |
22347 | char *kwnames[] = { | |
22348 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22349 | }; | |
22350 | ||
22351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22354 | arg2 = (int) SWIG_AsInt(obj1); | |
22355 | if (PyErr_Occurred()) SWIG_fail; | |
22356 | arg3 = (int) SWIG_AsInt(obj2); | |
22357 | if (PyErr_Occurred()) SWIG_fail; | |
22358 | { | |
22359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22360 | (arg1)->SetClientSize(arg2,arg3); | |
22361 | ||
22362 | wxPyEndAllowThreads(__tstate); | |
22363 | if (PyErr_Occurred()) SWIG_fail; | |
22364 | } | |
22365 | Py_INCREF(Py_None); resultobj = Py_None; | |
22366 | return resultobj; | |
22367 | fail: | |
22368 | return NULL; | |
22369 | } | |
22370 | ||
22371 | ||
22372 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22373 | PyObject *resultobj; | |
22374 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22375 | wxRect *arg2 = 0 ; | |
22376 | wxRect temp2 ; | |
22377 | PyObject * obj0 = 0 ; | |
22378 | PyObject * obj1 = 0 ; | |
22379 | char *kwnames[] = { | |
22380 | (char *) "self",(char *) "rect", NULL | |
22381 | }; | |
22382 | ||
22383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
22384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22386 | { | |
22387 | arg2 = &temp2; | |
22388 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22389 | } | |
22390 | { | |
22391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22392 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
22393 | ||
22394 | wxPyEndAllowThreads(__tstate); | |
22395 | if (PyErr_Occurred()) SWIG_fail; | |
22396 | } | |
22397 | Py_INCREF(Py_None); resultobj = Py_None; | |
22398 | return resultobj; | |
22399 | fail: | |
22400 | return NULL; | |
22401 | } | |
22402 | ||
22403 | ||
22404 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22405 | PyObject *resultobj; | |
22406 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22407 | wxPoint result; | |
22408 | PyObject * obj0 = 0 ; | |
22409 | char *kwnames[] = { | |
22410 | (char *) "self", NULL | |
22411 | }; | |
22412 | ||
22413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
22414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22416 | { | |
22417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22418 | result = (arg1)->GetPosition(); | |
22419 | ||
22420 | wxPyEndAllowThreads(__tstate); | |
22421 | if (PyErr_Occurred()) SWIG_fail; | |
22422 | } | |
22423 | { | |
22424 | wxPoint * resultptr; | |
22425 | resultptr = new wxPoint((wxPoint &) result); | |
22426 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
22427 | } | |
22428 | return resultobj; | |
22429 | fail: | |
22430 | return NULL; | |
22431 | } | |
22432 | ||
22433 | ||
22434 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22435 | PyObject *resultobj; | |
22436 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22437 | int *arg2 = (int *) 0 ; | |
22438 | int *arg3 = (int *) 0 ; | |
22439 | int temp2 ; | |
22440 | int temp3 ; | |
22441 | PyObject * obj0 = 0 ; | |
22442 | char *kwnames[] = { | |
22443 | (char *) "self", NULL | |
22444 | }; | |
22445 | ||
22446 | arg2 = &temp2; | |
22447 | arg3 = &temp3; | |
22448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
22449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22451 | { | |
22452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22453 | (arg1)->GetPosition(arg2,arg3); | |
22454 | ||
22455 | wxPyEndAllowThreads(__tstate); | |
22456 | if (PyErr_Occurred()) SWIG_fail; | |
22457 | } | |
22458 | Py_INCREF(Py_None); resultobj = Py_None; | |
22459 | { | |
22460 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22461 | resultobj = t_output_helper(resultobj,o); | |
22462 | } | |
22463 | { | |
22464 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22465 | resultobj = t_output_helper(resultobj,o); | |
22466 | } | |
22467 | return resultobj; | |
22468 | fail: | |
22469 | return NULL; | |
22470 | } | |
22471 | ||
22472 | ||
22473 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22474 | PyObject *resultobj; | |
22475 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22476 | wxSize result; | |
22477 | PyObject * obj0 = 0 ; | |
22478 | char *kwnames[] = { | |
22479 | (char *) "self", NULL | |
22480 | }; | |
22481 | ||
22482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
22483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22485 | { | |
22486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22487 | result = ((wxWindow const *)arg1)->GetSize(); | |
22488 | ||
22489 | wxPyEndAllowThreads(__tstate); | |
22490 | if (PyErr_Occurred()) SWIG_fail; | |
22491 | } | |
22492 | { | |
22493 | wxSize * resultptr; | |
22494 | resultptr = new wxSize((wxSize &) result); | |
22495 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22496 | } | |
22497 | return resultobj; | |
22498 | fail: | |
22499 | return NULL; | |
22500 | } | |
22501 | ||
22502 | ||
22503 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22504 | PyObject *resultobj; | |
22505 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22506 | int *arg2 = (int *) 0 ; | |
22507 | int *arg3 = (int *) 0 ; | |
22508 | int temp2 ; | |
22509 | int temp3 ; | |
22510 | PyObject * obj0 = 0 ; | |
22511 | char *kwnames[] = { | |
22512 | (char *) "self", NULL | |
22513 | }; | |
22514 | ||
22515 | arg2 = &temp2; | |
22516 | arg3 = &temp3; | |
22517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
22518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22520 | { | |
22521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22522 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
22523 | ||
22524 | wxPyEndAllowThreads(__tstate); | |
22525 | if (PyErr_Occurred()) SWIG_fail; | |
22526 | } | |
22527 | Py_INCREF(Py_None); resultobj = Py_None; | |
22528 | { | |
22529 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22530 | resultobj = t_output_helper(resultobj,o); | |
22531 | } | |
22532 | { | |
22533 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22534 | resultobj = t_output_helper(resultobj,o); | |
22535 | } | |
22536 | return resultobj; | |
22537 | fail: | |
22538 | return NULL; | |
22539 | } | |
22540 | ||
22541 | ||
22542 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22543 | PyObject *resultobj; | |
22544 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22545 | wxRect result; | |
22546 | PyObject * obj0 = 0 ; | |
22547 | char *kwnames[] = { | |
22548 | (char *) "self", NULL | |
22549 | }; | |
22550 | ||
22551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
22552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22554 | { | |
22555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22556 | result = ((wxWindow const *)arg1)->GetRect(); | |
22557 | ||
22558 | wxPyEndAllowThreads(__tstate); | |
22559 | if (PyErr_Occurred()) SWIG_fail; | |
22560 | } | |
22561 | { | |
22562 | wxRect * resultptr; | |
22563 | resultptr = new wxRect((wxRect &) result); | |
22564 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
22565 | } | |
22566 | return resultobj; | |
22567 | fail: | |
22568 | return NULL; | |
22569 | } | |
22570 | ||
22571 | ||
22572 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22573 | PyObject *resultobj; | |
22574 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22575 | wxSize result; | |
22576 | PyObject * obj0 = 0 ; | |
22577 | char *kwnames[] = { | |
22578 | (char *) "self", NULL | |
22579 | }; | |
22580 | ||
22581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
22582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22584 | { | |
22585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22586 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
22587 | ||
22588 | wxPyEndAllowThreads(__tstate); | |
22589 | if (PyErr_Occurred()) SWIG_fail; | |
22590 | } | |
22591 | { | |
22592 | wxSize * resultptr; | |
22593 | resultptr = new wxSize((wxSize &) result); | |
22594 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22595 | } | |
22596 | return resultobj; | |
22597 | fail: | |
22598 | return NULL; | |
22599 | } | |
22600 | ||
22601 | ||
22602 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22603 | PyObject *resultobj; | |
22604 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22605 | int *arg2 = (int *) 0 ; | |
22606 | int *arg3 = (int *) 0 ; | |
22607 | int temp2 ; | |
22608 | int temp3 ; | |
22609 | PyObject * obj0 = 0 ; | |
22610 | char *kwnames[] = { | |
22611 | (char *) "self", NULL | |
22612 | }; | |
22613 | ||
22614 | arg2 = &temp2; | |
22615 | arg3 = &temp3; | |
22616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
22617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22619 | { | |
22620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22621 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
22622 | ||
22623 | wxPyEndAllowThreads(__tstate); | |
22624 | if (PyErr_Occurred()) SWIG_fail; | |
22625 | } | |
22626 | Py_INCREF(Py_None); resultobj = Py_None; | |
22627 | { | |
22628 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22629 | resultobj = t_output_helper(resultobj,o); | |
22630 | } | |
22631 | { | |
22632 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22633 | resultobj = t_output_helper(resultobj,o); | |
22634 | } | |
22635 | return resultobj; | |
22636 | fail: | |
22637 | return NULL; | |
22638 | } | |
22639 | ||
22640 | ||
22641 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22642 | PyObject *resultobj; | |
22643 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22644 | wxPoint result; | |
22645 | PyObject * obj0 = 0 ; | |
22646 | char *kwnames[] = { | |
22647 | (char *) "self", NULL | |
22648 | }; | |
22649 | ||
22650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
22651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22653 | { | |
22654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22655 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
22656 | ||
22657 | wxPyEndAllowThreads(__tstate); | |
22658 | if (PyErr_Occurred()) SWIG_fail; | |
22659 | } | |
22660 | { | |
22661 | wxPoint * resultptr; | |
22662 | resultptr = new wxPoint((wxPoint &) result); | |
22663 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
22664 | } | |
22665 | return resultobj; | |
22666 | fail: | |
22667 | return NULL; | |
22668 | } | |
22669 | ||
22670 | ||
22671 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22672 | PyObject *resultobj; | |
22673 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22674 | wxRect result; | |
22675 | PyObject * obj0 = 0 ; | |
22676 | char *kwnames[] = { | |
22677 | (char *) "self", NULL | |
22678 | }; | |
22679 | ||
22680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
22681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22683 | { | |
22684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22685 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
22686 | ||
22687 | wxPyEndAllowThreads(__tstate); | |
22688 | if (PyErr_Occurred()) SWIG_fail; | |
22689 | } | |
22690 | { | |
22691 | wxRect * resultptr; | |
22692 | resultptr = new wxRect((wxRect &) result); | |
22693 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
22694 | } | |
22695 | return resultobj; | |
22696 | fail: | |
22697 | return NULL; | |
22698 | } | |
22699 | ||
22700 | ||
22701 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22702 | PyObject *resultobj; | |
22703 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22704 | wxSize result; | |
22705 | PyObject * obj0 = 0 ; | |
22706 | char *kwnames[] = { | |
22707 | (char *) "self", NULL | |
22708 | }; | |
22709 | ||
22710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
22711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22713 | { | |
22714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22715 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
22716 | ||
22717 | wxPyEndAllowThreads(__tstate); | |
22718 | if (PyErr_Occurred()) SWIG_fail; | |
22719 | } | |
22720 | { | |
22721 | wxSize * resultptr; | |
22722 | resultptr = new wxSize((wxSize &) result); | |
22723 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22724 | } | |
22725 | return resultobj; | |
22726 | fail: | |
22727 | return NULL; | |
22728 | } | |
22729 | ||
22730 | ||
22731 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22732 | PyObject *resultobj; | |
22733 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22734 | int *arg2 = (int *) 0 ; | |
22735 | int *arg3 = (int *) 0 ; | |
22736 | int temp2 ; | |
22737 | int temp3 ; | |
22738 | PyObject * obj0 = 0 ; | |
22739 | char *kwnames[] = { | |
22740 | (char *) "self", NULL | |
22741 | }; | |
22742 | ||
22743 | arg2 = &temp2; | |
22744 | arg3 = &temp3; | |
22745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
22746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22748 | { | |
22749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22750 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
22751 | ||
22752 | wxPyEndAllowThreads(__tstate); | |
22753 | if (PyErr_Occurred()) SWIG_fail; | |
22754 | } | |
22755 | Py_INCREF(Py_None); resultobj = Py_None; | |
22756 | { | |
22757 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22758 | resultobj = t_output_helper(resultobj,o); | |
22759 | } | |
22760 | { | |
22761 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22762 | resultobj = t_output_helper(resultobj,o); | |
22763 | } | |
22764 | return resultobj; | |
22765 | fail: | |
22766 | return NULL; | |
22767 | } | |
22768 | ||
22769 | ||
22770 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22771 | PyObject *resultobj; | |
22772 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22773 | wxSize result; | |
22774 | PyObject * obj0 = 0 ; | |
22775 | char *kwnames[] = { | |
22776 | (char *) "self", NULL | |
22777 | }; | |
22778 | ||
22779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
22780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22782 | { | |
22783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22784 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
22785 | ||
22786 | wxPyEndAllowThreads(__tstate); | |
22787 | if (PyErr_Occurred()) SWIG_fail; | |
22788 | } | |
22789 | { | |
22790 | wxSize * resultptr; | |
22791 | resultptr = new wxSize((wxSize &) result); | |
22792 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22793 | } | |
22794 | return resultobj; | |
22795 | fail: | |
22796 | return NULL; | |
22797 | } | |
22798 | ||
22799 | ||
22800 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22801 | PyObject *resultobj; | |
22802 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22803 | int arg2 = (int) wxBOTH ; | |
22804 | PyObject * obj0 = 0 ; | |
22805 | PyObject * obj1 = 0 ; | |
22806 | char *kwnames[] = { | |
22807 | (char *) "self",(char *) "direction", NULL | |
22808 | }; | |
22809 | ||
22810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; | |
22811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22813 | if (obj1) { | |
22814 | arg2 = (int) SWIG_AsInt(obj1); | |
22815 | if (PyErr_Occurred()) SWIG_fail; | |
22816 | } | |
22817 | { | |
22818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22819 | (arg1)->Center(arg2); | |
22820 | ||
22821 | wxPyEndAllowThreads(__tstate); | |
22822 | if (PyErr_Occurred()) SWIG_fail; | |
22823 | } | |
22824 | Py_INCREF(Py_None); resultobj = Py_None; | |
22825 | return resultobj; | |
22826 | fail: | |
22827 | return NULL; | |
22828 | } | |
22829 | ||
22830 | ||
22831 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22832 | PyObject *resultobj; | |
22833 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22834 | int arg2 = (int) wxBOTH ; | |
22835 | PyObject * obj0 = 0 ; | |
22836 | PyObject * obj1 = 0 ; | |
22837 | char *kwnames[] = { | |
22838 | (char *) "self",(char *) "dir", NULL | |
22839 | }; | |
22840 | ||
22841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; | |
22842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22844 | if (obj1) { | |
22845 | arg2 = (int) SWIG_AsInt(obj1); | |
22846 | if (PyErr_Occurred()) SWIG_fail; | |
22847 | } | |
22848 | { | |
22849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22850 | (arg1)->CenterOnScreen(arg2); | |
22851 | ||
22852 | wxPyEndAllowThreads(__tstate); | |
22853 | if (PyErr_Occurred()) SWIG_fail; | |
22854 | } | |
22855 | Py_INCREF(Py_None); resultobj = Py_None; | |
22856 | return resultobj; | |
22857 | fail: | |
22858 | return NULL; | |
22859 | } | |
22860 | ||
22861 | ||
22862 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22863 | PyObject *resultobj; | |
22864 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22865 | int arg2 = (int) wxBOTH ; | |
22866 | PyObject * obj0 = 0 ; | |
22867 | PyObject * obj1 = 0 ; | |
22868 | char *kwnames[] = { | |
22869 | (char *) "self",(char *) "dir", NULL | |
22870 | }; | |
22871 | ||
22872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; | |
22873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22875 | if (obj1) { | |
22876 | arg2 = (int) SWIG_AsInt(obj1); | |
22877 | if (PyErr_Occurred()) SWIG_fail; | |
22878 | } | |
22879 | { | |
22880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22881 | (arg1)->CenterOnParent(arg2); | |
22882 | ||
22883 | wxPyEndAllowThreads(__tstate); | |
22884 | if (PyErr_Occurred()) SWIG_fail; | |
22885 | } | |
22886 | Py_INCREF(Py_None); resultobj = Py_None; | |
22887 | return resultobj; | |
22888 | fail: | |
22889 | return NULL; | |
22890 | } | |
22891 | ||
22892 | ||
22893 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22894 | PyObject *resultobj; | |
22895 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22896 | PyObject * obj0 = 0 ; | |
22897 | char *kwnames[] = { | |
22898 | (char *) "self", NULL | |
22899 | }; | |
22900 | ||
22901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
22902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22904 | { | |
22905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22906 | (arg1)->Fit(); | |
22907 | ||
22908 | wxPyEndAllowThreads(__tstate); | |
22909 | if (PyErr_Occurred()) SWIG_fail; | |
22910 | } | |
22911 | Py_INCREF(Py_None); resultobj = Py_None; | |
22912 | return resultobj; | |
22913 | fail: | |
22914 | return NULL; | |
22915 | } | |
22916 | ||
22917 | ||
22918 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22919 | PyObject *resultobj; | |
22920 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22921 | PyObject * obj0 = 0 ; | |
22922 | char *kwnames[] = { | |
22923 | (char *) "self", NULL | |
22924 | }; | |
22925 | ||
22926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
22927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22929 | { | |
22930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22931 | (arg1)->FitInside(); | |
22932 | ||
22933 | wxPyEndAllowThreads(__tstate); | |
22934 | if (PyErr_Occurred()) SWIG_fail; | |
22935 | } | |
22936 | Py_INCREF(Py_None); resultobj = Py_None; | |
22937 | return resultobj; | |
22938 | fail: | |
22939 | return NULL; | |
22940 | } | |
22941 | ||
22942 | ||
22943 | static PyObject *_wrap_Window_SetSizeHints__SWIG_0(PyObject *self, PyObject *args) { | |
22944 | PyObject *resultobj; | |
22945 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22946 | int arg2 ; | |
22947 | int arg3 ; | |
22948 | int arg4 = (int) -1 ; | |
22949 | int arg5 = (int) -1 ; | |
22950 | int arg6 = (int) -1 ; | |
22951 | int arg7 = (int) -1 ; | |
22952 | PyObject * obj0 = 0 ; | |
22953 | PyObject * obj1 = 0 ; | |
22954 | PyObject * obj2 = 0 ; | |
22955 | PyObject * obj3 = 0 ; | |
22956 | PyObject * obj4 = 0 ; | |
22957 | PyObject * obj5 = 0 ; | |
22958 | PyObject * obj6 = 0 ; | |
22959 | ||
22960 | if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22963 | arg2 = (int) SWIG_AsInt(obj1); | |
22964 | if (PyErr_Occurred()) SWIG_fail; | |
22965 | arg3 = (int) SWIG_AsInt(obj2); | |
22966 | if (PyErr_Occurred()) SWIG_fail; | |
22967 | if (obj3) { | |
22968 | arg4 = (int) SWIG_AsInt(obj3); | |
22969 | if (PyErr_Occurred()) SWIG_fail; | |
22970 | } | |
22971 | if (obj4) { | |
22972 | arg5 = (int) SWIG_AsInt(obj4); | |
22973 | if (PyErr_Occurred()) SWIG_fail; | |
22974 | } | |
22975 | if (obj5) { | |
22976 | arg6 = (int) SWIG_AsInt(obj5); | |
22977 | if (PyErr_Occurred()) SWIG_fail; | |
22978 | } | |
22979 | if (obj6) { | |
22980 | arg7 = (int) SWIG_AsInt(obj6); | |
22981 | if (PyErr_Occurred()) SWIG_fail; | |
22982 | } | |
22983 | { | |
22984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22985 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
22986 | ||
22987 | wxPyEndAllowThreads(__tstate); | |
22988 | if (PyErr_Occurred()) SWIG_fail; | |
22989 | } | |
22990 | Py_INCREF(Py_None); resultobj = Py_None; | |
22991 | return resultobj; | |
22992 | fail: | |
22993 | return NULL; | |
22994 | } | |
22995 | ||
22996 | ||
22997 | static PyObject *_wrap_Window_SetSizeHints__SWIG_1(PyObject *self, PyObject *args) { | |
22998 | PyObject *resultobj; | |
22999 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23000 | wxSize *arg2 = 0 ; | |
23001 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23002 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23003 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23004 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23005 | wxSize temp2 ; | |
23006 | wxSize temp3 ; | |
23007 | wxSize temp4 ; | |
23008 | PyObject * obj0 = 0 ; | |
23009 | PyObject * obj1 = 0 ; | |
23010 | PyObject * obj2 = 0 ; | |
23011 | PyObject * obj3 = 0 ; | |
23012 | ||
23013 | if(!PyArg_ParseTuple(args,(char *)"OO|OO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23016 | { | |
23017 | arg2 = &temp2; | |
23018 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23019 | } | |
23020 | if (obj2) { | |
23021 | { | |
23022 | arg3 = &temp3; | |
23023 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23024 | } | |
23025 | } | |
23026 | if (obj3) { | |
23027 | { | |
23028 | arg4 = &temp4; | |
23029 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23030 | } | |
23031 | } | |
23032 | { | |
23033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23034 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); | |
23035 | ||
23036 | wxPyEndAllowThreads(__tstate); | |
23037 | if (PyErr_Occurred()) SWIG_fail; | |
23038 | } | |
23039 | Py_INCREF(Py_None); resultobj = Py_None; | |
23040 | return resultobj; | |
23041 | fail: | |
23042 | return NULL; | |
23043 | } | |
23044 | ||
23045 | ||
23046 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args) { | |
23047 | int argc; | |
23048 | PyObject *argv[8]; | |
23049 | int ii; | |
23050 | ||
23051 | argc = PyObject_Length(args); | |
23052 | for (ii = 0; (ii < argc) && (ii < 7); ii++) { | |
23053 | argv[ii] = PyTuple_GetItem(args,ii); | |
23054 | } | |
23055 | if ((argc >= 2) && (argc <= 4)) { | |
23056 | int _v; | |
23057 | { | |
23058 | void *ptr; | |
23059 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23060 | _v = 0; | |
23061 | PyErr_Clear(); | |
23062 | } else { | |
23063 | _v = 1; | |
23064 | } | |
23065 | } | |
23066 | if (_v) { | |
23067 | { | |
23068 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
23069 | } | |
23070 | if (_v) { | |
23071 | if (argc <= 2) { | |
23072 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23073 | } | |
23074 | { | |
23075 | _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); | |
23076 | } | |
23077 | if (_v) { | |
23078 | if (argc <= 3) { | |
23079 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23080 | } | |
23081 | { | |
23082 | _v = wxPySimple_typecheck(argv[3], wxT("wxSize"), 2); | |
23083 | } | |
23084 | if (_v) { | |
23085 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23086 | } | |
23087 | } | |
23088 | } | |
23089 | } | |
23090 | } | |
23091 | if ((argc >= 3) && (argc <= 7)) { | |
23092 | int _v; | |
23093 | { | |
23094 | void *ptr; | |
23095 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23096 | _v = 0; | |
23097 | PyErr_Clear(); | |
23098 | } else { | |
23099 | _v = 1; | |
23100 | } | |
23101 | } | |
23102 | if (_v) { | |
23103 | _v = SWIG_CheckInt(argv[1]); | |
23104 | if (_v) { | |
23105 | _v = SWIG_CheckInt(argv[2]); | |
23106 | if (_v) { | |
23107 | if (argc <= 3) { | |
23108 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23109 | } | |
23110 | _v = SWIG_CheckInt(argv[3]); | |
23111 | if (_v) { | |
23112 | if (argc <= 4) { | |
23113 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23114 | } | |
23115 | _v = SWIG_CheckInt(argv[4]); | |
23116 | if (_v) { | |
23117 | if (argc <= 5) { | |
23118 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23119 | } | |
23120 | _v = SWIG_CheckInt(argv[5]); | |
23121 | if (_v) { | |
23122 | if (argc <= 6) { | |
23123 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23124 | } | |
23125 | _v = SWIG_CheckInt(argv[6]); | |
23126 | if (_v) { | |
23127 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23128 | } | |
23129 | } | |
23130 | } | |
23131 | } | |
23132 | } | |
23133 | } | |
23134 | } | |
23135 | } | |
23136 | ||
23137 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetSizeHints'"); | |
23138 | return NULL; | |
23139 | } | |
23140 | ||
23141 | ||
23142 | static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_0(PyObject *self, PyObject *args) { | |
23143 | PyObject *resultobj; | |
23144 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23145 | int arg2 ; | |
23146 | int arg3 ; | |
23147 | int arg4 = (int) -1 ; | |
23148 | int arg5 = (int) -1 ; | |
23149 | PyObject * obj0 = 0 ; | |
23150 | PyObject * obj1 = 0 ; | |
23151 | PyObject * obj2 = 0 ; | |
23152 | PyObject * obj3 = 0 ; | |
23153 | PyObject * obj4 = 0 ; | |
23154 | ||
23155 | if(!PyArg_ParseTuple(args,(char *)"OOO|OO:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
23156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23158 | arg2 = (int) SWIG_AsInt(obj1); | |
23159 | if (PyErr_Occurred()) SWIG_fail; | |
23160 | arg3 = (int) SWIG_AsInt(obj2); | |
23161 | if (PyErr_Occurred()) SWIG_fail; | |
23162 | if (obj3) { | |
23163 | arg4 = (int) SWIG_AsInt(obj3); | |
23164 | if (PyErr_Occurred()) SWIG_fail; | |
23165 | } | |
23166 | if (obj4) { | |
23167 | arg5 = (int) SWIG_AsInt(obj4); | |
23168 | if (PyErr_Occurred()) SWIG_fail; | |
23169 | } | |
23170 | { | |
23171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23172 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
23173 | ||
23174 | wxPyEndAllowThreads(__tstate); | |
23175 | if (PyErr_Occurred()) SWIG_fail; | |
23176 | } | |
23177 | Py_INCREF(Py_None); resultobj = Py_None; | |
23178 | return resultobj; | |
23179 | fail: | |
23180 | return NULL; | |
23181 | } | |
23182 | ||
23183 | ||
23184 | static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_1(PyObject *self, PyObject *args) { | |
23185 | PyObject *resultobj; | |
23186 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23187 | wxSize *arg2 = 0 ; | |
23188 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23189 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23190 | wxSize temp2 ; | |
23191 | wxSize temp3 ; | |
23192 | PyObject * obj0 = 0 ; | |
23193 | PyObject * obj1 = 0 ; | |
23194 | PyObject * obj2 = 0 ; | |
23195 | ||
23196 | if(!PyArg_ParseTuple(args,(char *)"OO|O:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2)) goto fail; | |
23197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23199 | { | |
23200 | arg2 = &temp2; | |
23201 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23202 | } | |
23203 | if (obj2) { | |
23204 | { | |
23205 | arg3 = &temp3; | |
23206 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23207 | } | |
23208 | } | |
23209 | { | |
23210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23211 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
23212 | ||
23213 | wxPyEndAllowThreads(__tstate); | |
23214 | if (PyErr_Occurred()) SWIG_fail; | |
23215 | } | |
23216 | Py_INCREF(Py_None); resultobj = Py_None; | |
23217 | return resultobj; | |
23218 | fail: | |
23219 | return NULL; | |
23220 | } | |
23221 | ||
23222 | ||
23223 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args) { | |
23224 | int argc; | |
23225 | PyObject *argv[6]; | |
23226 | int ii; | |
23227 | ||
23228 | argc = PyObject_Length(args); | |
23229 | for (ii = 0; (ii < argc) && (ii < 5); ii++) { | |
23230 | argv[ii] = PyTuple_GetItem(args,ii); | |
23231 | } | |
23232 | if ((argc >= 2) && (argc <= 3)) { | |
23233 | int _v; | |
23234 | { | |
23235 | void *ptr; | |
23236 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23237 | _v = 0; | |
23238 | PyErr_Clear(); | |
23239 | } else { | |
23240 | _v = 1; | |
23241 | } | |
23242 | } | |
23243 | if (_v) { | |
23244 | { | |
23245 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
23246 | } | |
23247 | if (_v) { | |
23248 | if (argc <= 2) { | |
23249 | return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); | |
23250 | } | |
23251 | { | |
23252 | _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); | |
23253 | } | |
23254 | if (_v) { | |
23255 | return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); | |
23256 | } | |
23257 | } | |
23258 | } | |
23259 | } | |
23260 | if ((argc >= 3) && (argc <= 5)) { | |
23261 | int _v; | |
23262 | { | |
23263 | void *ptr; | |
23264 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23265 | _v = 0; | |
23266 | PyErr_Clear(); | |
23267 | } else { | |
23268 | _v = 1; | |
23269 | } | |
23270 | } | |
23271 | if (_v) { | |
23272 | _v = SWIG_CheckInt(argv[1]); | |
23273 | if (_v) { | |
23274 | _v = SWIG_CheckInt(argv[2]); | |
23275 | if (_v) { | |
23276 | if (argc <= 3) { | |
23277 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23278 | } | |
23279 | _v = SWIG_CheckInt(argv[3]); | |
23280 | if (_v) { | |
23281 | if (argc <= 4) { | |
23282 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23283 | } | |
23284 | _v = SWIG_CheckInt(argv[4]); | |
23285 | if (_v) { | |
23286 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23287 | } | |
23288 | } | |
23289 | } | |
23290 | } | |
23291 | } | |
23292 | } | |
23293 | ||
23294 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetVirtualSizeHints'"); | |
23295 | return NULL; | |
23296 | } | |
23297 | ||
23298 | ||
23299 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23300 | PyObject *resultobj; | |
23301 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23302 | int result; | |
23303 | PyObject * obj0 = 0 ; | |
23304 | char *kwnames[] = { | |
23305 | (char *) "self", NULL | |
23306 | }; | |
23307 | ||
23308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
23309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23311 | { | |
23312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23313 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
23314 | ||
23315 | wxPyEndAllowThreads(__tstate); | |
23316 | if (PyErr_Occurred()) SWIG_fail; | |
23317 | } | |
23318 | resultobj = SWIG_FromInt((int)result); | |
23319 | return resultobj; | |
23320 | fail: | |
23321 | return NULL; | |
23322 | } | |
23323 | ||
23324 | ||
23325 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23326 | PyObject *resultobj; | |
23327 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23328 | int result; | |
23329 | PyObject * obj0 = 0 ; | |
23330 | char *kwnames[] = { | |
23331 | (char *) "self", NULL | |
23332 | }; | |
23333 | ||
23334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
23335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23337 | { | |
23338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23339 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
23340 | ||
23341 | wxPyEndAllowThreads(__tstate); | |
23342 | if (PyErr_Occurred()) SWIG_fail; | |
23343 | } | |
23344 | resultobj = SWIG_FromInt((int)result); | |
23345 | return resultobj; | |
23346 | fail: | |
23347 | return NULL; | |
23348 | } | |
23349 | ||
23350 | ||
23351 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23352 | PyObject *resultobj; | |
23353 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23354 | int result; | |
23355 | PyObject * obj0 = 0 ; | |
23356 | char *kwnames[] = { | |
23357 | (char *) "self", NULL | |
23358 | }; | |
23359 | ||
23360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
23361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23363 | { | |
23364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23365 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
23366 | ||
23367 | wxPyEndAllowThreads(__tstate); | |
23368 | if (PyErr_Occurred()) SWIG_fail; | |
23369 | } | |
23370 | resultobj = SWIG_FromInt((int)result); | |
23371 | return resultobj; | |
23372 | fail: | |
23373 | return NULL; | |
23374 | } | |
23375 | ||
23376 | ||
23377 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23378 | PyObject *resultobj; | |
23379 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23380 | int result; | |
23381 | PyObject * obj0 = 0 ; | |
23382 | char *kwnames[] = { | |
23383 | (char *) "self", NULL | |
23384 | }; | |
23385 | ||
23386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
23387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23389 | { | |
23390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23391 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
23392 | ||
23393 | wxPyEndAllowThreads(__tstate); | |
23394 | if (PyErr_Occurred()) SWIG_fail; | |
23395 | } | |
23396 | resultobj = SWIG_FromInt((int)result); | |
23397 | return resultobj; | |
23398 | fail: | |
23399 | return NULL; | |
23400 | } | |
23401 | ||
23402 | ||
23403 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23404 | PyObject *resultobj; | |
23405 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23406 | wxSize result; | |
23407 | PyObject * obj0 = 0 ; | |
23408 | char *kwnames[] = { | |
23409 | (char *) "self", NULL | |
23410 | }; | |
23411 | ||
23412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
23413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23415 | { | |
23416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23417 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
23418 | ||
23419 | wxPyEndAllowThreads(__tstate); | |
23420 | if (PyErr_Occurred()) SWIG_fail; | |
23421 | } | |
23422 | { | |
23423 | wxSize * resultptr; | |
23424 | resultptr = new wxSize((wxSize &) result); | |
23425 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23426 | } | |
23427 | return resultobj; | |
23428 | fail: | |
23429 | return NULL; | |
23430 | } | |
23431 | ||
23432 | ||
23433 | static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23434 | PyObject *resultobj; | |
23435 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23436 | wxSize result; | |
23437 | PyObject * obj0 = 0 ; | |
23438 | char *kwnames[] = { | |
23439 | (char *) "self", NULL | |
23440 | }; | |
23441 | ||
23442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; | |
23443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23445 | { | |
23446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23447 | result = ((wxWindow const *)arg1)->GetMinSize(); | |
23448 | ||
23449 | wxPyEndAllowThreads(__tstate); | |
23450 | if (PyErr_Occurred()) SWIG_fail; | |
23451 | } | |
23452 | { | |
23453 | wxSize * resultptr; | |
23454 | resultptr = new wxSize((wxSize &) result); | |
23455 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23456 | } | |
23457 | return resultobj; | |
23458 | fail: | |
23459 | return NULL; | |
23460 | } | |
23461 | ||
23462 | ||
23463 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23464 | PyObject *resultobj; | |
23465 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23466 | wxSize *arg2 = 0 ; | |
23467 | wxSize temp2 ; | |
23468 | PyObject * obj0 = 0 ; | |
23469 | PyObject * obj1 = 0 ; | |
23470 | char *kwnames[] = { | |
23471 | (char *) "self",(char *) "size", NULL | |
23472 | }; | |
23473 | ||
23474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
23475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23477 | { | |
23478 | arg2 = &temp2; | |
23479 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23480 | } | |
23481 | { | |
23482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23483 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
23484 | ||
23485 | wxPyEndAllowThreads(__tstate); | |
23486 | if (PyErr_Occurred()) SWIG_fail; | |
23487 | } | |
23488 | Py_INCREF(Py_None); resultobj = Py_None; | |
23489 | return resultobj; | |
23490 | fail: | |
23491 | return NULL; | |
23492 | } | |
23493 | ||
23494 | ||
23495 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23496 | PyObject *resultobj; | |
23497 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23498 | int arg2 ; | |
23499 | int arg3 ; | |
23500 | PyObject * obj0 = 0 ; | |
23501 | PyObject * obj1 = 0 ; | |
23502 | PyObject * obj2 = 0 ; | |
23503 | char *kwnames[] = { | |
23504 | (char *) "self",(char *) "w",(char *) "h", NULL | |
23505 | }; | |
23506 | ||
23507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23510 | arg2 = (int) SWIG_AsInt(obj1); | |
23511 | if (PyErr_Occurred()) SWIG_fail; | |
23512 | arg3 = (int) SWIG_AsInt(obj2); | |
23513 | if (PyErr_Occurred()) SWIG_fail; | |
23514 | { | |
23515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23516 | (arg1)->SetVirtualSize(arg2,arg3); | |
23517 | ||
23518 | wxPyEndAllowThreads(__tstate); | |
23519 | if (PyErr_Occurred()) SWIG_fail; | |
23520 | } | |
23521 | Py_INCREF(Py_None); resultobj = Py_None; | |
23522 | return resultobj; | |
23523 | fail: | |
23524 | return NULL; | |
23525 | } | |
23526 | ||
23527 | ||
23528 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23529 | PyObject *resultobj; | |
23530 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23531 | wxSize result; | |
23532 | PyObject * obj0 = 0 ; | |
23533 | char *kwnames[] = { | |
23534 | (char *) "self", NULL | |
23535 | }; | |
23536 | ||
23537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
23538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23540 | { | |
23541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23542 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
23543 | ||
23544 | wxPyEndAllowThreads(__tstate); | |
23545 | if (PyErr_Occurred()) SWIG_fail; | |
23546 | } | |
23547 | { | |
23548 | wxSize * resultptr; | |
23549 | resultptr = new wxSize((wxSize &) result); | |
23550 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23551 | } | |
23552 | return resultobj; | |
23553 | fail: | |
23554 | return NULL; | |
23555 | } | |
23556 | ||
23557 | ||
23558 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23559 | PyObject *resultobj; | |
23560 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23561 | int *arg2 = (int *) 0 ; | |
23562 | int *arg3 = (int *) 0 ; | |
23563 | int temp2 ; | |
23564 | int temp3 ; | |
23565 | PyObject * obj0 = 0 ; | |
23566 | char *kwnames[] = { | |
23567 | (char *) "self", NULL | |
23568 | }; | |
23569 | ||
23570 | arg2 = &temp2; | |
23571 | arg3 = &temp3; | |
23572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
23573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23575 | { | |
23576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23577 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
23578 | ||
23579 | wxPyEndAllowThreads(__tstate); | |
23580 | if (PyErr_Occurred()) SWIG_fail; | |
23581 | } | |
23582 | Py_INCREF(Py_None); resultobj = Py_None; | |
23583 | { | |
23584 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23585 | resultobj = t_output_helper(resultobj,o); | |
23586 | } | |
23587 | { | |
23588 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23589 | resultobj = t_output_helper(resultobj,o); | |
23590 | } | |
23591 | return resultobj; | |
23592 | fail: | |
23593 | return NULL; | |
23594 | } | |
23595 | ||
23596 | ||
23597 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23598 | PyObject *resultobj; | |
23599 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23600 | wxSize result; | |
23601 | PyObject * obj0 = 0 ; | |
23602 | char *kwnames[] = { | |
23603 | (char *) "self", NULL | |
23604 | }; | |
23605 | ||
23606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
23607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23609 | { | |
23610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23611 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
23612 | ||
23613 | wxPyEndAllowThreads(__tstate); | |
23614 | if (PyErr_Occurred()) SWIG_fail; | |
23615 | } | |
23616 | { | |
23617 | wxSize * resultptr; | |
23618 | resultptr = new wxSize((wxSize &) result); | |
23619 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23620 | } | |
23621 | return resultobj; | |
23622 | fail: | |
23623 | return NULL; | |
23624 | } | |
23625 | ||
23626 | ||
23627 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23628 | PyObject *resultobj; | |
23629 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23630 | bool arg2 = (bool) True ; | |
23631 | bool result; | |
23632 | PyObject * obj0 = 0 ; | |
23633 | PyObject * obj1 = 0 ; | |
23634 | char *kwnames[] = { | |
23635 | (char *) "self",(char *) "show", NULL | |
23636 | }; | |
23637 | ||
23638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
23639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23641 | if (obj1) { | |
23642 | arg2 = (bool) SWIG_AsBool(obj1); | |
23643 | if (PyErr_Occurred()) SWIG_fail; | |
23644 | } | |
23645 | { | |
23646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23647 | result = (bool)(arg1)->Show(arg2); | |
23648 | ||
23649 | wxPyEndAllowThreads(__tstate); | |
23650 | if (PyErr_Occurred()) SWIG_fail; | |
23651 | } | |
23652 | { | |
23653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23654 | } | |
23655 | return resultobj; | |
23656 | fail: | |
23657 | return NULL; | |
23658 | } | |
23659 | ||
23660 | ||
23661 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23662 | PyObject *resultobj; | |
23663 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23664 | bool result; | |
23665 | PyObject * obj0 = 0 ; | |
23666 | char *kwnames[] = { | |
23667 | (char *) "self", NULL | |
23668 | }; | |
23669 | ||
23670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
23671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23673 | { | |
23674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23675 | result = (bool)(arg1)->Hide(); | |
23676 | ||
23677 | wxPyEndAllowThreads(__tstate); | |
23678 | if (PyErr_Occurred()) SWIG_fail; | |
23679 | } | |
23680 | { | |
23681 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23682 | } | |
23683 | return resultobj; | |
23684 | fail: | |
23685 | return NULL; | |
23686 | } | |
23687 | ||
23688 | ||
23689 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23690 | PyObject *resultobj; | |
23691 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23692 | bool arg2 = (bool) True ; | |
23693 | bool result; | |
23694 | PyObject * obj0 = 0 ; | |
23695 | PyObject * obj1 = 0 ; | |
23696 | char *kwnames[] = { | |
23697 | (char *) "self",(char *) "enable", NULL | |
23698 | }; | |
23699 | ||
23700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
23701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23703 | if (obj1) { | |
23704 | arg2 = (bool) SWIG_AsBool(obj1); | |
23705 | if (PyErr_Occurred()) SWIG_fail; | |
23706 | } | |
23707 | { | |
23708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23709 | result = (bool)(arg1)->Enable(arg2); | |
23710 | ||
23711 | wxPyEndAllowThreads(__tstate); | |
23712 | if (PyErr_Occurred()) SWIG_fail; | |
23713 | } | |
23714 | { | |
23715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23716 | } | |
23717 | return resultobj; | |
23718 | fail: | |
23719 | return NULL; | |
23720 | } | |
23721 | ||
23722 | ||
23723 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23724 | PyObject *resultobj; | |
23725 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23726 | bool result; | |
23727 | PyObject * obj0 = 0 ; | |
23728 | char *kwnames[] = { | |
23729 | (char *) "self", NULL | |
23730 | }; | |
23731 | ||
23732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
23733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23735 | { | |
23736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23737 | result = (bool)(arg1)->Disable(); | |
23738 | ||
23739 | wxPyEndAllowThreads(__tstate); | |
23740 | if (PyErr_Occurred()) SWIG_fail; | |
23741 | } | |
23742 | { | |
23743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23744 | } | |
23745 | return resultobj; | |
23746 | fail: | |
23747 | return NULL; | |
23748 | } | |
23749 | ||
23750 | ||
23751 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23752 | PyObject *resultobj; | |
23753 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23754 | bool result; | |
23755 | PyObject * obj0 = 0 ; | |
23756 | char *kwnames[] = { | |
23757 | (char *) "self", NULL | |
23758 | }; | |
23759 | ||
23760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
23761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23763 | { | |
23764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23765 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
23766 | ||
23767 | wxPyEndAllowThreads(__tstate); | |
23768 | if (PyErr_Occurred()) SWIG_fail; | |
23769 | } | |
23770 | { | |
23771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23772 | } | |
23773 | return resultobj; | |
23774 | fail: | |
23775 | return NULL; | |
23776 | } | |
23777 | ||
23778 | ||
23779 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23780 | PyObject *resultobj; | |
23781 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23782 | bool result; | |
23783 | PyObject * obj0 = 0 ; | |
23784 | char *kwnames[] = { | |
23785 | (char *) "self", NULL | |
23786 | }; | |
23787 | ||
23788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
23789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23791 | { | |
23792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23793 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
23794 | ||
23795 | wxPyEndAllowThreads(__tstate); | |
23796 | if (PyErr_Occurred()) SWIG_fail; | |
23797 | } | |
23798 | { | |
23799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23800 | } | |
23801 | return resultobj; | |
23802 | fail: | |
23803 | return NULL; | |
23804 | } | |
23805 | ||
23806 | ||
23807 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23808 | PyObject *resultobj; | |
23809 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23810 | long arg2 ; | |
23811 | PyObject * obj0 = 0 ; | |
23812 | PyObject * obj1 = 0 ; | |
23813 | char *kwnames[] = { | |
23814 | (char *) "self",(char *) "style", NULL | |
23815 | }; | |
23816 | ||
23817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
23818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23820 | arg2 = (long) SWIG_AsLong(obj1); | |
23821 | if (PyErr_Occurred()) SWIG_fail; | |
23822 | { | |
23823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23824 | (arg1)->SetWindowStyleFlag(arg2); | |
23825 | ||
23826 | wxPyEndAllowThreads(__tstate); | |
23827 | if (PyErr_Occurred()) SWIG_fail; | |
23828 | } | |
23829 | Py_INCREF(Py_None); resultobj = Py_None; | |
23830 | return resultobj; | |
23831 | fail: | |
23832 | return NULL; | |
23833 | } | |
23834 | ||
23835 | ||
23836 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23837 | PyObject *resultobj; | |
23838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23839 | long result; | |
23840 | PyObject * obj0 = 0 ; | |
23841 | char *kwnames[] = { | |
23842 | (char *) "self", NULL | |
23843 | }; | |
23844 | ||
23845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
23846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23848 | { | |
23849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23850 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
23851 | ||
23852 | wxPyEndAllowThreads(__tstate); | |
23853 | if (PyErr_Occurred()) SWIG_fail; | |
23854 | } | |
23855 | resultobj = SWIG_FromLong((long)result); | |
23856 | return resultobj; | |
23857 | fail: | |
23858 | return NULL; | |
23859 | } | |
23860 | ||
23861 | ||
23862 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23863 | PyObject *resultobj; | |
23864 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23865 | int arg2 ; | |
23866 | bool result; | |
23867 | PyObject * obj0 = 0 ; | |
23868 | PyObject * obj1 = 0 ; | |
23869 | char *kwnames[] = { | |
23870 | (char *) "self",(char *) "flag", NULL | |
23871 | }; | |
23872 | ||
23873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
23874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23876 | arg2 = (int) SWIG_AsInt(obj1); | |
23877 | if (PyErr_Occurred()) SWIG_fail; | |
23878 | { | |
23879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23880 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
23881 | ||
23882 | wxPyEndAllowThreads(__tstate); | |
23883 | if (PyErr_Occurred()) SWIG_fail; | |
23884 | } | |
23885 | { | |
23886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23887 | } | |
23888 | return resultobj; | |
23889 | fail: | |
23890 | return NULL; | |
23891 | } | |
23892 | ||
23893 | ||
23894 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23895 | PyObject *resultobj; | |
23896 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23897 | bool result; | |
23898 | PyObject * obj0 = 0 ; | |
23899 | char *kwnames[] = { | |
23900 | (char *) "self", NULL | |
23901 | }; | |
23902 | ||
23903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
23904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23906 | { | |
23907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23908 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
23909 | ||
23910 | wxPyEndAllowThreads(__tstate); | |
23911 | if (PyErr_Occurred()) SWIG_fail; | |
23912 | } | |
23913 | { | |
23914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23915 | } | |
23916 | return resultobj; | |
23917 | fail: | |
23918 | return NULL; | |
23919 | } | |
23920 | ||
23921 | ||
23922 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23923 | PyObject *resultobj; | |
23924 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23925 | long arg2 ; | |
23926 | PyObject * obj0 = 0 ; | |
23927 | PyObject * obj1 = 0 ; | |
23928 | char *kwnames[] = { | |
23929 | (char *) "self",(char *) "exStyle", NULL | |
23930 | }; | |
23931 | ||
23932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; | |
23933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23935 | arg2 = (long) SWIG_AsLong(obj1); | |
23936 | if (PyErr_Occurred()) SWIG_fail; | |
23937 | { | |
23938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23939 | (arg1)->SetExtraStyle(arg2); | |
23940 | ||
23941 | wxPyEndAllowThreads(__tstate); | |
23942 | if (PyErr_Occurred()) SWIG_fail; | |
23943 | } | |
23944 | Py_INCREF(Py_None); resultobj = Py_None; | |
23945 | return resultobj; | |
23946 | fail: | |
23947 | return NULL; | |
23948 | } | |
23949 | ||
23950 | ||
23951 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23952 | PyObject *resultobj; | |
23953 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23954 | long result; | |
23955 | PyObject * obj0 = 0 ; | |
23956 | char *kwnames[] = { | |
23957 | (char *) "self", NULL | |
23958 | }; | |
23959 | ||
23960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
23961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23963 | { | |
23964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23965 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
23966 | ||
23967 | wxPyEndAllowThreads(__tstate); | |
23968 | if (PyErr_Occurred()) SWIG_fail; | |
23969 | } | |
23970 | resultobj = SWIG_FromLong((long)result); | |
23971 | return resultobj; | |
23972 | fail: | |
23973 | return NULL; | |
23974 | } | |
23975 | ||
23976 | ||
23977 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23978 | PyObject *resultobj; | |
23979 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23980 | bool arg2 = (bool) True ; | |
23981 | PyObject * obj0 = 0 ; | |
23982 | PyObject * obj1 = 0 ; | |
23983 | char *kwnames[] = { | |
23984 | (char *) "self",(char *) "modal", NULL | |
23985 | }; | |
23986 | ||
23987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
23988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23990 | if (obj1) { | |
23991 | arg2 = (bool) SWIG_AsBool(obj1); | |
23992 | if (PyErr_Occurred()) SWIG_fail; | |
23993 | } | |
23994 | { | |
23995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23996 | (arg1)->MakeModal(arg2); | |
23997 | ||
23998 | wxPyEndAllowThreads(__tstate); | |
23999 | if (PyErr_Occurred()) SWIG_fail; | |
24000 | } | |
24001 | Py_INCREF(Py_None); resultobj = Py_None; | |
24002 | return resultobj; | |
24003 | fail: | |
24004 | return NULL; | |
24005 | } | |
24006 | ||
24007 | ||
24008 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24009 | PyObject *resultobj; | |
24010 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24011 | bool arg2 ; | |
24012 | PyObject * obj0 = 0 ; | |
24013 | PyObject * obj1 = 0 ; | |
24014 | char *kwnames[] = { | |
24015 | (char *) "self",(char *) "enableTheme", NULL | |
24016 | }; | |
24017 | ||
24018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
24019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24021 | arg2 = (bool) SWIG_AsBool(obj1); | |
24022 | if (PyErr_Occurred()) SWIG_fail; | |
24023 | { | |
24024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24025 | (arg1)->SetThemeEnabled(arg2); | |
24026 | ||
24027 | wxPyEndAllowThreads(__tstate); | |
24028 | if (PyErr_Occurred()) SWIG_fail; | |
24029 | } | |
24030 | Py_INCREF(Py_None); resultobj = Py_None; | |
24031 | return resultobj; | |
24032 | fail: | |
24033 | return NULL; | |
24034 | } | |
24035 | ||
24036 | ||
24037 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24038 | PyObject *resultobj; | |
24039 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24040 | bool result; | |
24041 | PyObject * obj0 = 0 ; | |
24042 | char *kwnames[] = { | |
24043 | (char *) "self", NULL | |
24044 | }; | |
24045 | ||
24046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
24047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24049 | { | |
24050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24051 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
24052 | ||
24053 | wxPyEndAllowThreads(__tstate); | |
24054 | if (PyErr_Occurred()) SWIG_fail; | |
24055 | } | |
24056 | { | |
24057 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24058 | } | |
24059 | return resultobj; | |
24060 | fail: | |
24061 | return NULL; | |
24062 | } | |
24063 | ||
24064 | ||
24065 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24066 | PyObject *resultobj; | |
24067 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24068 | PyObject * obj0 = 0 ; | |
24069 | char *kwnames[] = { | |
24070 | (char *) "self", NULL | |
24071 | }; | |
24072 | ||
24073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
24074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24076 | { | |
24077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24078 | (arg1)->SetFocus(); | |
24079 | ||
24080 | wxPyEndAllowThreads(__tstate); | |
24081 | if (PyErr_Occurred()) SWIG_fail; | |
24082 | } | |
24083 | Py_INCREF(Py_None); resultobj = Py_None; | |
24084 | return resultobj; | |
24085 | fail: | |
24086 | return NULL; | |
24087 | } | |
24088 | ||
24089 | ||
24090 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24091 | PyObject *resultobj; | |
24092 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24093 | PyObject * obj0 = 0 ; | |
24094 | char *kwnames[] = { | |
24095 | (char *) "self", NULL | |
24096 | }; | |
24097 | ||
24098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
24099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24101 | { | |
24102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24103 | (arg1)->SetFocusFromKbd(); | |
24104 | ||
24105 | wxPyEndAllowThreads(__tstate); | |
24106 | if (PyErr_Occurred()) SWIG_fail; | |
24107 | } | |
24108 | Py_INCREF(Py_None); resultobj = Py_None; | |
24109 | return resultobj; | |
24110 | fail: | |
24111 | return NULL; | |
24112 | } | |
24113 | ||
24114 | ||
24115 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24116 | PyObject *resultobj; | |
24117 | wxWindow *result; | |
24118 | char *kwnames[] = { | |
24119 | NULL | |
24120 | }; | |
24121 | ||
24122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
24123 | { | |
24124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24125 | result = (wxWindow *)wxWindow::FindFocus(); | |
24126 | ||
24127 | wxPyEndAllowThreads(__tstate); | |
24128 | if (PyErr_Occurred()) SWIG_fail; | |
24129 | } | |
24130 | { | |
24131 | resultobj = wxPyMake_wxObject(result); | |
24132 | } | |
24133 | return resultobj; | |
24134 | fail: | |
24135 | return NULL; | |
24136 | } | |
24137 | ||
24138 | ||
24139 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24140 | PyObject *resultobj; | |
24141 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24142 | bool result; | |
24143 | PyObject * obj0 = 0 ; | |
24144 | char *kwnames[] = { | |
24145 | (char *) "self", NULL | |
24146 | }; | |
24147 | ||
24148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
24149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24151 | { | |
24152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24153 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
24154 | ||
24155 | wxPyEndAllowThreads(__tstate); | |
24156 | if (PyErr_Occurred()) SWIG_fail; | |
24157 | } | |
24158 | { | |
24159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24160 | } | |
24161 | return resultobj; | |
24162 | fail: | |
24163 | return NULL; | |
24164 | } | |
24165 | ||
24166 | ||
24167 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24168 | PyObject *resultobj; | |
24169 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24170 | bool result; | |
24171 | PyObject * obj0 = 0 ; | |
24172 | char *kwnames[] = { | |
24173 | (char *) "self", NULL | |
24174 | }; | |
24175 | ||
24176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
24177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24179 | { | |
24180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24181 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
24182 | ||
24183 | wxPyEndAllowThreads(__tstate); | |
24184 | if (PyErr_Occurred()) SWIG_fail; | |
24185 | } | |
24186 | { | |
24187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24188 | } | |
24189 | return resultobj; | |
24190 | fail: | |
24191 | return NULL; | |
24192 | } | |
24193 | ||
24194 | ||
24195 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24196 | PyObject *resultobj; | |
24197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24198 | wxWindow *result; | |
24199 | PyObject * obj0 = 0 ; | |
24200 | char *kwnames[] = { | |
24201 | (char *) "self", NULL | |
24202 | }; | |
24203 | ||
24204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
24205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24207 | { | |
24208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24209 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
24210 | ||
24211 | wxPyEndAllowThreads(__tstate); | |
24212 | if (PyErr_Occurred()) SWIG_fail; | |
24213 | } | |
24214 | { | |
24215 | resultobj = wxPyMake_wxObject(result); | |
24216 | } | |
24217 | return resultobj; | |
24218 | fail: | |
24219 | return NULL; | |
24220 | } | |
24221 | ||
24222 | ||
24223 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24224 | PyObject *resultobj; | |
24225 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24226 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24227 | wxWindow *result; | |
24228 | PyObject * obj0 = 0 ; | |
24229 | PyObject * obj1 = 0 ; | |
24230 | char *kwnames[] = { | |
24231 | (char *) "self",(char *) "child", NULL | |
24232 | }; | |
24233 | ||
24234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24237 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24239 | { | |
24240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24241 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
24242 | ||
24243 | wxPyEndAllowThreads(__tstate); | |
24244 | if (PyErr_Occurred()) SWIG_fail; | |
24245 | } | |
24246 | { | |
24247 | resultobj = wxPyMake_wxObject(result); | |
24248 | } | |
24249 | return resultobj; | |
24250 | fail: | |
24251 | return NULL; | |
24252 | } | |
24253 | ||
24254 | ||
24255 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24256 | PyObject *resultobj; | |
24257 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24258 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24259 | PyObject * obj0 = 0 ; | |
24260 | PyObject * obj1 = 0 ; | |
24261 | char *kwnames[] = { | |
24262 | (char *) "self",(char *) "win", NULL | |
24263 | }; | |
24264 | ||
24265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24268 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24270 | { | |
24271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24272 | (arg1)->SetTmpDefaultItem(arg2); | |
24273 | ||
24274 | wxPyEndAllowThreads(__tstate); | |
24275 | if (PyErr_Occurred()) SWIG_fail; | |
24276 | } | |
24277 | Py_INCREF(Py_None); resultobj = Py_None; | |
24278 | return resultobj; | |
24279 | fail: | |
24280 | return NULL; | |
24281 | } | |
24282 | ||
24283 | ||
24284 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24285 | PyObject *resultobj; | |
24286 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24287 | PyObject *result; | |
24288 | PyObject * obj0 = 0 ; | |
24289 | char *kwnames[] = { | |
24290 | (char *) "self", NULL | |
24291 | }; | |
24292 | ||
24293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
24294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24296 | { | |
24297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24298 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
24299 | ||
24300 | wxPyEndAllowThreads(__tstate); | |
24301 | if (PyErr_Occurred()) SWIG_fail; | |
24302 | } | |
24303 | resultobj = result; | |
24304 | return resultobj; | |
24305 | fail: | |
24306 | return NULL; | |
24307 | } | |
24308 | ||
24309 | ||
24310 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24311 | PyObject *resultobj; | |
24312 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24313 | wxWindow *result; | |
24314 | PyObject * obj0 = 0 ; | |
24315 | char *kwnames[] = { | |
24316 | (char *) "self", NULL | |
24317 | }; | |
24318 | ||
24319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
24320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24322 | { | |
24323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24324 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
24325 | ||
24326 | wxPyEndAllowThreads(__tstate); | |
24327 | if (PyErr_Occurred()) SWIG_fail; | |
24328 | } | |
24329 | { | |
24330 | resultobj = wxPyMake_wxObject(result); | |
24331 | } | |
24332 | return resultobj; | |
24333 | fail: | |
24334 | return NULL; | |
24335 | } | |
24336 | ||
24337 | ||
24338 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24339 | PyObject *resultobj; | |
24340 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24341 | wxWindow *result; | |
24342 | PyObject * obj0 = 0 ; | |
24343 | char *kwnames[] = { | |
24344 | (char *) "self", NULL | |
24345 | }; | |
24346 | ||
24347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
24348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24350 | { | |
24351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24352 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
24353 | ||
24354 | wxPyEndAllowThreads(__tstate); | |
24355 | if (PyErr_Occurred()) SWIG_fail; | |
24356 | } | |
24357 | { | |
24358 | resultobj = wxPyMake_wxObject(result); | |
24359 | } | |
24360 | return resultobj; | |
24361 | fail: | |
24362 | return NULL; | |
24363 | } | |
24364 | ||
24365 | ||
24366 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24367 | PyObject *resultobj; | |
24368 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24369 | bool result; | |
24370 | PyObject * obj0 = 0 ; | |
24371 | char *kwnames[] = { | |
24372 | (char *) "self", NULL | |
24373 | }; | |
24374 | ||
24375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
24376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24378 | { | |
24379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24380 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
24381 | ||
24382 | wxPyEndAllowThreads(__tstate); | |
24383 | if (PyErr_Occurred()) SWIG_fail; | |
24384 | } | |
24385 | { | |
24386 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24387 | } | |
24388 | return resultobj; | |
24389 | fail: | |
24390 | return NULL; | |
24391 | } | |
24392 | ||
24393 | ||
24394 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24395 | PyObject *resultobj; | |
24396 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24397 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24398 | bool result; | |
24399 | PyObject * obj0 = 0 ; | |
24400 | PyObject * obj1 = 0 ; | |
24401 | char *kwnames[] = { | |
24402 | (char *) "self",(char *) "newParent", NULL | |
24403 | }; | |
24404 | ||
24405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
24406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24408 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24410 | { | |
24411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24412 | result = (bool)(arg1)->Reparent(arg2); | |
24413 | ||
24414 | wxPyEndAllowThreads(__tstate); | |
24415 | if (PyErr_Occurred()) SWIG_fail; | |
24416 | } | |
24417 | { | |
24418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24419 | } | |
24420 | return resultobj; | |
24421 | fail: | |
24422 | return NULL; | |
24423 | } | |
24424 | ||
24425 | ||
24426 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24427 | PyObject *resultobj; | |
24428 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24429 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24430 | PyObject * obj0 = 0 ; | |
24431 | PyObject * obj1 = 0 ; | |
24432 | char *kwnames[] = { | |
24433 | (char *) "self",(char *) "child", NULL | |
24434 | }; | |
24435 | ||
24436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
24437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24439 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24441 | { | |
24442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24443 | (arg1)->AddChild(arg2); | |
24444 | ||
24445 | wxPyEndAllowThreads(__tstate); | |
24446 | if (PyErr_Occurred()) SWIG_fail; | |
24447 | } | |
24448 | Py_INCREF(Py_None); resultobj = Py_None; | |
24449 | return resultobj; | |
24450 | fail: | |
24451 | return NULL; | |
24452 | } | |
24453 | ||
24454 | ||
24455 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24456 | PyObject *resultobj; | |
24457 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24458 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24459 | PyObject * obj0 = 0 ; | |
24460 | PyObject * obj1 = 0 ; | |
24461 | char *kwnames[] = { | |
24462 | (char *) "self",(char *) "child", NULL | |
24463 | }; | |
24464 | ||
24465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
24466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24468 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24470 | { | |
24471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24472 | (arg1)->RemoveChild(arg2); | |
24473 | ||
24474 | wxPyEndAllowThreads(__tstate); | |
24475 | if (PyErr_Occurred()) SWIG_fail; | |
24476 | } | |
24477 | Py_INCREF(Py_None); resultobj = Py_None; | |
24478 | return resultobj; | |
24479 | fail: | |
24480 | return NULL; | |
24481 | } | |
24482 | ||
24483 | ||
24484 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24485 | PyObject *resultobj; | |
24486 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24487 | long arg2 ; | |
24488 | wxWindow *result; | |
24489 | PyObject * obj0 = 0 ; | |
24490 | PyObject * obj1 = 0 ; | |
24491 | char *kwnames[] = { | |
24492 | (char *) "self",(char *) "winid", NULL | |
24493 | }; | |
24494 | ||
24495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
24496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24498 | arg2 = (long) SWIG_AsLong(obj1); | |
24499 | if (PyErr_Occurred()) SWIG_fail; | |
24500 | { | |
24501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24502 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
24503 | ||
24504 | wxPyEndAllowThreads(__tstate); | |
24505 | if (PyErr_Occurred()) SWIG_fail; | |
24506 | } | |
24507 | { | |
24508 | resultobj = wxPyMake_wxObject(result); | |
24509 | } | |
24510 | return resultobj; | |
24511 | fail: | |
24512 | return NULL; | |
24513 | } | |
24514 | ||
24515 | ||
24516 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24517 | PyObject *resultobj; | |
24518 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24519 | wxString *arg2 = 0 ; | |
24520 | wxWindow *result; | |
24521 | bool temp2 = False ; | |
24522 | PyObject * obj0 = 0 ; | |
24523 | PyObject * obj1 = 0 ; | |
24524 | char *kwnames[] = { | |
24525 | (char *) "self",(char *) "name", NULL | |
24526 | }; | |
24527 | ||
24528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
24529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24531 | { | |
24532 | arg2 = wxString_in_helper(obj1); | |
24533 | if (arg2 == NULL) SWIG_fail; | |
24534 | temp2 = True; | |
24535 | } | |
24536 | { | |
24537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24538 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
24539 | ||
24540 | wxPyEndAllowThreads(__tstate); | |
24541 | if (PyErr_Occurred()) SWIG_fail; | |
24542 | } | |
24543 | { | |
24544 | resultobj = wxPyMake_wxObject(result); | |
24545 | } | |
24546 | { | |
24547 | if (temp2) | |
24548 | delete arg2; | |
24549 | } | |
24550 | return resultobj; | |
24551 | fail: | |
24552 | { | |
24553 | if (temp2) | |
24554 | delete arg2; | |
24555 | } | |
24556 | return NULL; | |
24557 | } | |
24558 | ||
24559 | ||
24560 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24561 | PyObject *resultobj; | |
24562 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24563 | wxEvtHandler *result; | |
24564 | PyObject * obj0 = 0 ; | |
24565 | char *kwnames[] = { | |
24566 | (char *) "self", NULL | |
24567 | }; | |
24568 | ||
24569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
24570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24572 | { | |
24573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24574 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
24575 | ||
24576 | wxPyEndAllowThreads(__tstate); | |
24577 | if (PyErr_Occurred()) SWIG_fail; | |
24578 | } | |
24579 | { | |
24580 | resultobj = wxPyMake_wxObject(result); | |
24581 | } | |
24582 | return resultobj; | |
24583 | fail: | |
24584 | return NULL; | |
24585 | } | |
24586 | ||
24587 | ||
24588 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24589 | PyObject *resultobj; | |
24590 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24591 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24592 | PyObject * obj0 = 0 ; | |
24593 | PyObject * obj1 = 0 ; | |
24594 | char *kwnames[] = { | |
24595 | (char *) "self",(char *) "handler", NULL | |
24596 | }; | |
24597 | ||
24598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24601 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24603 | { | |
24604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24605 | (arg1)->SetEventHandler(arg2); | |
24606 | ||
24607 | wxPyEndAllowThreads(__tstate); | |
24608 | if (PyErr_Occurred()) SWIG_fail; | |
24609 | } | |
24610 | Py_INCREF(Py_None); resultobj = Py_None; | |
24611 | return resultobj; | |
24612 | fail: | |
24613 | return NULL; | |
24614 | } | |
24615 | ||
24616 | ||
24617 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24618 | PyObject *resultobj; | |
24619 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24620 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24621 | PyObject * obj0 = 0 ; | |
24622 | PyObject * obj1 = 0 ; | |
24623 | char *kwnames[] = { | |
24624 | (char *) "self",(char *) "handler", NULL | |
24625 | }; | |
24626 | ||
24627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24630 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24632 | { | |
24633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24634 | (arg1)->PushEventHandler(arg2); | |
24635 | ||
24636 | wxPyEndAllowThreads(__tstate); | |
24637 | if (PyErr_Occurred()) SWIG_fail; | |
24638 | } | |
24639 | Py_INCREF(Py_None); resultobj = Py_None; | |
24640 | return resultobj; | |
24641 | fail: | |
24642 | return NULL; | |
24643 | } | |
24644 | ||
24645 | ||
24646 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24647 | PyObject *resultobj; | |
24648 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24649 | bool arg2 = (bool) False ; | |
24650 | wxEvtHandler *result; | |
24651 | PyObject * obj0 = 0 ; | |
24652 | PyObject * obj1 = 0 ; | |
24653 | char *kwnames[] = { | |
24654 | (char *) "self",(char *) "deleteHandler", NULL | |
24655 | }; | |
24656 | ||
24657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24660 | if (obj1) { | |
24661 | arg2 = (bool) SWIG_AsBool(obj1); | |
24662 | if (PyErr_Occurred()) SWIG_fail; | |
24663 | } | |
24664 | { | |
24665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24666 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
24667 | ||
24668 | wxPyEndAllowThreads(__tstate); | |
24669 | if (PyErr_Occurred()) SWIG_fail; | |
24670 | } | |
24671 | { | |
24672 | resultobj = wxPyMake_wxObject(result); | |
24673 | } | |
24674 | return resultobj; | |
24675 | fail: | |
24676 | return NULL; | |
24677 | } | |
24678 | ||
24679 | ||
24680 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24681 | PyObject *resultobj; | |
24682 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24683 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24684 | bool result; | |
24685 | PyObject * obj0 = 0 ; | |
24686 | PyObject * obj1 = 0 ; | |
24687 | char *kwnames[] = { | |
24688 | (char *) "self",(char *) "handler", NULL | |
24689 | }; | |
24690 | ||
24691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24694 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24696 | { | |
24697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24698 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
24699 | ||
24700 | wxPyEndAllowThreads(__tstate); | |
24701 | if (PyErr_Occurred()) SWIG_fail; | |
24702 | } | |
24703 | { | |
24704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24705 | } | |
24706 | return resultobj; | |
24707 | fail: | |
24708 | return NULL; | |
24709 | } | |
24710 | ||
24711 | ||
24712 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24713 | PyObject *resultobj; | |
24714 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24715 | wxValidator *arg2 = 0 ; | |
24716 | PyObject * obj0 = 0 ; | |
24717 | PyObject * obj1 = 0 ; | |
24718 | char *kwnames[] = { | |
24719 | (char *) "self",(char *) "validator", NULL | |
24720 | }; | |
24721 | ||
24722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
24723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24725 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
24726 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24727 | SWIG_fail; | |
24728 | if (arg2 == NULL) { | |
24729 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24730 | SWIG_fail; | |
24731 | } | |
24732 | { | |
24733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24734 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
24735 | ||
24736 | wxPyEndAllowThreads(__tstate); | |
24737 | if (PyErr_Occurred()) SWIG_fail; | |
24738 | } | |
24739 | Py_INCREF(Py_None); resultobj = Py_None; | |
24740 | return resultobj; | |
24741 | fail: | |
24742 | return NULL; | |
24743 | } | |
24744 | ||
24745 | ||
24746 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24747 | PyObject *resultobj; | |
24748 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24749 | wxValidator *result; | |
24750 | PyObject * obj0 = 0 ; | |
24751 | char *kwnames[] = { | |
24752 | (char *) "self", NULL | |
24753 | }; | |
24754 | ||
24755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
24756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24758 | { | |
24759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24760 | result = (wxValidator *)(arg1)->GetValidator(); | |
24761 | ||
24762 | wxPyEndAllowThreads(__tstate); | |
24763 | if (PyErr_Occurred()) SWIG_fail; | |
24764 | } | |
24765 | { | |
24766 | resultobj = wxPyMake_wxObject(result); | |
24767 | } | |
24768 | return resultobj; | |
24769 | fail: | |
24770 | return NULL; | |
24771 | } | |
24772 | ||
24773 | ||
24774 | static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24775 | PyObject *resultobj; | |
24776 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24777 | bool result; | |
24778 | PyObject * obj0 = 0 ; | |
24779 | char *kwnames[] = { | |
24780 | (char *) "self", NULL | |
24781 | }; | |
24782 | ||
24783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
24784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24786 | { | |
24787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24788 | result = (bool)(arg1)->Validate(); | |
24789 | ||
24790 | wxPyEndAllowThreads(__tstate); | |
24791 | if (PyErr_Occurred()) SWIG_fail; | |
24792 | } | |
24793 | { | |
24794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24795 | } | |
24796 | return resultobj; | |
24797 | fail: | |
24798 | return NULL; | |
24799 | } | |
24800 | ||
24801 | ||
24802 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24803 | PyObject *resultobj; | |
24804 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24805 | bool result; | |
24806 | PyObject * obj0 = 0 ; | |
24807 | char *kwnames[] = { | |
24808 | (char *) "self", NULL | |
24809 | }; | |
24810 | ||
24811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
24812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24814 | { | |
24815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24816 | result = (bool)(arg1)->TransferDataToWindow(); | |
24817 | ||
24818 | wxPyEndAllowThreads(__tstate); | |
24819 | if (PyErr_Occurred()) SWIG_fail; | |
24820 | } | |
24821 | { | |
24822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24823 | } | |
24824 | return resultobj; | |
24825 | fail: | |
24826 | return NULL; | |
24827 | } | |
24828 | ||
24829 | ||
24830 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24831 | PyObject *resultobj; | |
24832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24833 | bool result; | |
24834 | PyObject * obj0 = 0 ; | |
24835 | char *kwnames[] = { | |
24836 | (char *) "self", NULL | |
24837 | }; | |
24838 | ||
24839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
24840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24842 | { | |
24843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24844 | result = (bool)(arg1)->TransferDataFromWindow(); | |
24845 | ||
24846 | wxPyEndAllowThreads(__tstate); | |
24847 | if (PyErr_Occurred()) SWIG_fail; | |
24848 | } | |
24849 | { | |
24850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24851 | } | |
24852 | return resultobj; | |
24853 | fail: | |
24854 | return NULL; | |
24855 | } | |
24856 | ||
24857 | ||
24858 | static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24859 | PyObject *resultobj; | |
24860 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24861 | PyObject * obj0 = 0 ; | |
24862 | char *kwnames[] = { | |
24863 | (char *) "self", NULL | |
24864 | }; | |
24865 | ||
24866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
24867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24869 | { | |
24870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24871 | (arg1)->InitDialog(); | |
24872 | ||
24873 | wxPyEndAllowThreads(__tstate); | |
24874 | if (PyErr_Occurred()) SWIG_fail; | |
24875 | } | |
24876 | Py_INCREF(Py_None); resultobj = Py_None; | |
24877 | return resultobj; | |
24878 | fail: | |
24879 | return NULL; | |
24880 | } | |
24881 | ||
24882 | ||
24883 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24884 | PyObject *resultobj; | |
24885 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24886 | wxAcceleratorTable *arg2 = 0 ; | |
24887 | PyObject * obj0 = 0 ; | |
24888 | PyObject * obj1 = 0 ; | |
24889 | char *kwnames[] = { | |
24890 | (char *) "self",(char *) "accel", NULL | |
24891 | }; | |
24892 | ||
24893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
24894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24896 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
24897 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24898 | SWIG_fail; | |
24899 | if (arg2 == NULL) { | |
24900 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24901 | SWIG_fail; | |
24902 | } | |
24903 | { | |
24904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24905 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
24906 | ||
24907 | wxPyEndAllowThreads(__tstate); | |
24908 | if (PyErr_Occurred()) SWIG_fail; | |
24909 | } | |
24910 | Py_INCREF(Py_None); resultobj = Py_None; | |
24911 | return resultobj; | |
24912 | fail: | |
24913 | return NULL; | |
24914 | } | |
24915 | ||
24916 | ||
24917 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24918 | PyObject *resultobj; | |
24919 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24920 | wxAcceleratorTable *result; | |
24921 | PyObject * obj0 = 0 ; | |
24922 | char *kwnames[] = { | |
24923 | (char *) "self", NULL | |
24924 | }; | |
24925 | ||
24926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
24927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24929 | { | |
24930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24931 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
24932 | ||
24933 | wxPyEndAllowThreads(__tstate); | |
24934 | if (PyErr_Occurred()) SWIG_fail; | |
24935 | } | |
24936 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); | |
24937 | return resultobj; | |
24938 | fail: | |
24939 | return NULL; | |
24940 | } | |
24941 | ||
24942 | ||
24943 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24944 | PyObject *resultobj; | |
24945 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24946 | int arg2 ; | |
24947 | int arg3 ; | |
24948 | int arg4 ; | |
24949 | bool result; | |
24950 | PyObject * obj0 = 0 ; | |
24951 | PyObject * obj1 = 0 ; | |
24952 | PyObject * obj2 = 0 ; | |
24953 | PyObject * obj3 = 0 ; | |
24954 | char *kwnames[] = { | |
24955 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
24956 | }; | |
24957 | ||
24958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24961 | arg2 = (int) SWIG_AsInt(obj1); | |
24962 | if (PyErr_Occurred()) SWIG_fail; | |
24963 | arg3 = (int) SWIG_AsInt(obj2); | |
24964 | if (PyErr_Occurred()) SWIG_fail; | |
24965 | arg4 = (int) SWIG_AsInt(obj3); | |
24966 | if (PyErr_Occurred()) SWIG_fail; | |
24967 | { | |
24968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24969 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
24970 | ||
24971 | wxPyEndAllowThreads(__tstate); | |
24972 | if (PyErr_Occurred()) SWIG_fail; | |
24973 | } | |
24974 | { | |
24975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24976 | } | |
24977 | return resultobj; | |
24978 | fail: | |
24979 | return NULL; | |
24980 | } | |
24981 | ||
24982 | ||
24983 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24984 | PyObject *resultobj; | |
24985 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24986 | int arg2 ; | |
24987 | bool result; | |
24988 | PyObject * obj0 = 0 ; | |
24989 | PyObject * obj1 = 0 ; | |
24990 | char *kwnames[] = { | |
24991 | (char *) "self",(char *) "hotkeyId", NULL | |
24992 | }; | |
24993 | ||
24994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; | |
24995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24997 | arg2 = (int) SWIG_AsInt(obj1); | |
24998 | if (PyErr_Occurred()) SWIG_fail; | |
24999 | { | |
25000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25001 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25002 | ||
25003 | wxPyEndAllowThreads(__tstate); | |
25004 | if (PyErr_Occurred()) SWIG_fail; | |
25005 | } | |
25006 | { | |
25007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25008 | } | |
25009 | return resultobj; | |
25010 | fail: | |
25011 | return NULL; | |
25012 | } | |
25013 | ||
25014 | ||
25015 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25016 | PyObject *resultobj; | |
25017 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25018 | wxPoint *arg2 = 0 ; | |
25019 | wxPoint result; | |
25020 | wxPoint temp2 ; | |
25021 | PyObject * obj0 = 0 ; | |
25022 | PyObject * obj1 = 0 ; | |
25023 | char *kwnames[] = { | |
25024 | (char *) "self",(char *) "pt", NULL | |
25025 | }; | |
25026 | ||
25027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25030 | { | |
25031 | arg2 = &temp2; | |
25032 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25033 | } | |
25034 | { | |
25035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25036 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25037 | ||
25038 | wxPyEndAllowThreads(__tstate); | |
25039 | if (PyErr_Occurred()) SWIG_fail; | |
25040 | } | |
25041 | { | |
25042 | wxPoint * resultptr; | |
25043 | resultptr = new wxPoint((wxPoint &) result); | |
25044 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25045 | } | |
25046 | return resultobj; | |
25047 | fail: | |
25048 | return NULL; | |
25049 | } | |
25050 | ||
25051 | ||
25052 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25053 | PyObject *resultobj; | |
25054 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25055 | wxSize *arg2 = 0 ; | |
25056 | wxSize result; | |
25057 | wxSize temp2 ; | |
25058 | PyObject * obj0 = 0 ; | |
25059 | PyObject * obj1 = 0 ; | |
25060 | char *kwnames[] = { | |
25061 | (char *) "self",(char *) "sz", NULL | |
25062 | }; | |
25063 | ||
25064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25067 | { | |
25068 | arg2 = &temp2; | |
25069 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25070 | } | |
25071 | { | |
25072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25073 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25074 | ||
25075 | wxPyEndAllowThreads(__tstate); | |
25076 | if (PyErr_Occurred()) SWIG_fail; | |
25077 | } | |
25078 | { | |
25079 | wxSize * resultptr; | |
25080 | resultptr = new wxSize((wxSize &) result); | |
25081 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25082 | } | |
25083 | return resultobj; | |
25084 | fail: | |
25085 | return NULL; | |
25086 | } | |
25087 | ||
25088 | ||
25089 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25090 | PyObject *resultobj; | |
25091 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25092 | wxPoint *arg2 = 0 ; | |
25093 | wxPoint result; | |
25094 | wxPoint temp2 ; | |
25095 | PyObject * obj0 = 0 ; | |
25096 | PyObject * obj1 = 0 ; | |
25097 | char *kwnames[] = { | |
25098 | (char *) "self",(char *) "pt", NULL | |
25099 | }; | |
25100 | ||
25101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
25102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25104 | { | |
25105 | arg2 = &temp2; | |
25106 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25107 | } | |
25108 | { | |
25109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25110 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25111 | ||
25112 | wxPyEndAllowThreads(__tstate); | |
25113 | if (PyErr_Occurred()) SWIG_fail; | |
25114 | } | |
25115 | { | |
25116 | wxPoint * resultptr; | |
25117 | resultptr = new wxPoint((wxPoint &) result); | |
25118 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25119 | } | |
25120 | return resultobj; | |
25121 | fail: | |
25122 | return NULL; | |
25123 | } | |
25124 | ||
25125 | ||
25126 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25127 | PyObject *resultobj; | |
25128 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25129 | wxSize *arg2 = 0 ; | |
25130 | wxSize result; | |
25131 | wxSize temp2 ; | |
25132 | PyObject * obj0 = 0 ; | |
25133 | PyObject * obj1 = 0 ; | |
25134 | char *kwnames[] = { | |
25135 | (char *) "self",(char *) "sz", NULL | |
25136 | }; | |
25137 | ||
25138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
25139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25141 | { | |
25142 | arg2 = &temp2; | |
25143 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25144 | } | |
25145 | { | |
25146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25147 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25148 | ||
25149 | wxPyEndAllowThreads(__tstate); | |
25150 | if (PyErr_Occurred()) SWIG_fail; | |
25151 | } | |
25152 | { | |
25153 | wxSize * resultptr; | |
25154 | resultptr = new wxSize((wxSize &) result); | |
25155 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25156 | } | |
25157 | return resultobj; | |
25158 | fail: | |
25159 | return NULL; | |
25160 | } | |
25161 | ||
25162 | ||
25163 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25164 | PyObject *resultobj; | |
25165 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25166 | wxPoint *arg2 = 0 ; | |
25167 | wxPoint result; | |
25168 | wxPoint temp2 ; | |
25169 | PyObject * obj0 = 0 ; | |
25170 | PyObject * obj1 = 0 ; | |
25171 | char *kwnames[] = { | |
25172 | (char *) "self",(char *) "pt", NULL | |
25173 | }; | |
25174 | ||
25175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
25176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25178 | { | |
25179 | arg2 = &temp2; | |
25180 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25181 | } | |
25182 | { | |
25183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25184 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
25185 | ||
25186 | wxPyEndAllowThreads(__tstate); | |
25187 | if (PyErr_Occurred()) SWIG_fail; | |
25188 | } | |
25189 | { | |
25190 | wxPoint * resultptr; | |
25191 | resultptr = new wxPoint((wxPoint &) result); | |
25192 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25193 | } | |
25194 | return resultobj; | |
25195 | fail: | |
25196 | return NULL; | |
25197 | } | |
25198 | ||
25199 | ||
25200 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25201 | PyObject *resultobj; | |
25202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25203 | wxSize *arg2 = 0 ; | |
25204 | wxSize result; | |
25205 | wxSize temp2 ; | |
25206 | PyObject * obj0 = 0 ; | |
25207 | PyObject * obj1 = 0 ; | |
25208 | char *kwnames[] = { | |
25209 | (char *) "self",(char *) "sz", NULL | |
25210 | }; | |
25211 | ||
25212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
25213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25215 | { | |
25216 | arg2 = &temp2; | |
25217 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25218 | } | |
25219 | { | |
25220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25221 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
25222 | ||
25223 | wxPyEndAllowThreads(__tstate); | |
25224 | if (PyErr_Occurred()) SWIG_fail; | |
25225 | } | |
25226 | { | |
25227 | wxSize * resultptr; | |
25228 | resultptr = new wxSize((wxSize &) result); | |
25229 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25230 | } | |
25231 | return resultobj; | |
25232 | fail: | |
25233 | return NULL; | |
25234 | } | |
25235 | ||
25236 | ||
25237 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25238 | PyObject *resultobj; | |
25239 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25240 | int arg2 ; | |
25241 | int arg3 ; | |
25242 | PyObject * obj0 = 0 ; | |
25243 | PyObject * obj1 = 0 ; | |
25244 | PyObject * obj2 = 0 ; | |
25245 | char *kwnames[] = { | |
25246 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25247 | }; | |
25248 | ||
25249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25252 | arg2 = (int) SWIG_AsInt(obj1); | |
25253 | if (PyErr_Occurred()) SWIG_fail; | |
25254 | arg3 = (int) SWIG_AsInt(obj2); | |
25255 | if (PyErr_Occurred()) SWIG_fail; | |
25256 | { | |
25257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25258 | (arg1)->WarpPointer(arg2,arg3); | |
25259 | ||
25260 | wxPyEndAllowThreads(__tstate); | |
25261 | if (PyErr_Occurred()) SWIG_fail; | |
25262 | } | |
25263 | Py_INCREF(Py_None); resultobj = Py_None; | |
25264 | return resultobj; | |
25265 | fail: | |
25266 | return NULL; | |
25267 | } | |
25268 | ||
25269 | ||
25270 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25271 | PyObject *resultobj; | |
25272 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25273 | PyObject * obj0 = 0 ; | |
25274 | char *kwnames[] = { | |
25275 | (char *) "self", NULL | |
25276 | }; | |
25277 | ||
25278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
25279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25281 | { | |
25282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25283 | (arg1)->CaptureMouse(); | |
25284 | ||
25285 | wxPyEndAllowThreads(__tstate); | |
25286 | if (PyErr_Occurred()) SWIG_fail; | |
25287 | } | |
25288 | Py_INCREF(Py_None); resultobj = Py_None; | |
25289 | return resultobj; | |
25290 | fail: | |
25291 | return NULL; | |
25292 | } | |
25293 | ||
25294 | ||
25295 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25296 | PyObject *resultobj; | |
25297 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25298 | PyObject * obj0 = 0 ; | |
25299 | char *kwnames[] = { | |
25300 | (char *) "self", NULL | |
25301 | }; | |
25302 | ||
25303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
25304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25306 | { | |
25307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25308 | (arg1)->ReleaseMouse(); | |
25309 | ||
25310 | wxPyEndAllowThreads(__tstate); | |
25311 | if (PyErr_Occurred()) SWIG_fail; | |
25312 | } | |
25313 | Py_INCREF(Py_None); resultobj = Py_None; | |
25314 | return resultobj; | |
25315 | fail: | |
25316 | return NULL; | |
25317 | } | |
25318 | ||
25319 | ||
25320 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25321 | PyObject *resultobj; | |
25322 | wxWindow *result; | |
25323 | char *kwnames[] = { | |
25324 | NULL | |
25325 | }; | |
25326 | ||
25327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
25328 | { | |
25329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25330 | result = (wxWindow *)wxWindow::GetCapture(); | |
25331 | ||
25332 | wxPyEndAllowThreads(__tstate); | |
25333 | if (PyErr_Occurred()) SWIG_fail; | |
25334 | } | |
25335 | { | |
25336 | resultobj = wxPyMake_wxObject(result); | |
25337 | } | |
25338 | return resultobj; | |
25339 | fail: | |
25340 | return NULL; | |
25341 | } | |
25342 | ||
25343 | ||
25344 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25345 | PyObject *resultobj; | |
25346 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25347 | bool result; | |
25348 | PyObject * obj0 = 0 ; | |
25349 | char *kwnames[] = { | |
25350 | (char *) "self", NULL | |
25351 | }; | |
25352 | ||
25353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
25354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25356 | { | |
25357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25358 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
25359 | ||
25360 | wxPyEndAllowThreads(__tstate); | |
25361 | if (PyErr_Occurred()) SWIG_fail; | |
25362 | } | |
25363 | { | |
25364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25365 | } | |
25366 | return resultobj; | |
25367 | fail: | |
25368 | return NULL; | |
25369 | } | |
25370 | ||
25371 | ||
25372 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25373 | PyObject *resultobj; | |
25374 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25375 | bool arg2 = (bool) True ; | |
25376 | wxRect *arg3 = (wxRect *) NULL ; | |
25377 | PyObject * obj0 = 0 ; | |
25378 | PyObject * obj1 = 0 ; | |
25379 | PyObject * obj2 = 0 ; | |
25380 | char *kwnames[] = { | |
25381 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
25382 | }; | |
25383 | ||
25384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25387 | if (obj1) { | |
25388 | arg2 = (bool) SWIG_AsBool(obj1); | |
25389 | if (PyErr_Occurred()) SWIG_fail; | |
25390 | } | |
25391 | if (obj2) { | |
25392 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
25393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25394 | } | |
25395 | { | |
25396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25397 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
25398 | ||
25399 | wxPyEndAllowThreads(__tstate); | |
25400 | if (PyErr_Occurred()) SWIG_fail; | |
25401 | } | |
25402 | Py_INCREF(Py_None); resultobj = Py_None; | |
25403 | return resultobj; | |
25404 | fail: | |
25405 | return NULL; | |
25406 | } | |
25407 | ||
25408 | ||
25409 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25410 | PyObject *resultobj; | |
25411 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25412 | wxRect *arg2 = 0 ; | |
25413 | wxRect temp2 ; | |
25414 | PyObject * obj0 = 0 ; | |
25415 | PyObject * obj1 = 0 ; | |
25416 | char *kwnames[] = { | |
25417 | (char *) "self",(char *) "rect", NULL | |
25418 | }; | |
25419 | ||
25420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
25421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25423 | { | |
25424 | arg2 = &temp2; | |
25425 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25426 | } | |
25427 | { | |
25428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25429 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
25430 | ||
25431 | wxPyEndAllowThreads(__tstate); | |
25432 | if (PyErr_Occurred()) SWIG_fail; | |
25433 | } | |
25434 | Py_INCREF(Py_None); resultobj = Py_None; | |
25435 | return resultobj; | |
25436 | fail: | |
25437 | return NULL; | |
25438 | } | |
25439 | ||
25440 | ||
25441 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25442 | PyObject *resultobj; | |
25443 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25444 | PyObject * obj0 = 0 ; | |
25445 | char *kwnames[] = { | |
25446 | (char *) "self", NULL | |
25447 | }; | |
25448 | ||
25449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
25450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25452 | { | |
25453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25454 | (arg1)->Update(); | |
25455 | ||
25456 | wxPyEndAllowThreads(__tstate); | |
25457 | if (PyErr_Occurred()) SWIG_fail; | |
25458 | } | |
25459 | Py_INCREF(Py_None); resultobj = Py_None; | |
25460 | return resultobj; | |
25461 | fail: | |
25462 | return NULL; | |
25463 | } | |
25464 | ||
25465 | ||
25466 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25467 | PyObject *resultobj; | |
25468 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25469 | PyObject * obj0 = 0 ; | |
25470 | char *kwnames[] = { | |
25471 | (char *) "self", NULL | |
25472 | }; | |
25473 | ||
25474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
25475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25477 | { | |
25478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25479 | (arg1)->ClearBackground(); | |
25480 | ||
25481 | wxPyEndAllowThreads(__tstate); | |
25482 | if (PyErr_Occurred()) SWIG_fail; | |
25483 | } | |
25484 | Py_INCREF(Py_None); resultobj = Py_None; | |
25485 | return resultobj; | |
25486 | fail: | |
25487 | return NULL; | |
25488 | } | |
25489 | ||
25490 | ||
25491 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25492 | PyObject *resultobj; | |
25493 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25494 | PyObject * obj0 = 0 ; | |
25495 | char *kwnames[] = { | |
25496 | (char *) "self", NULL | |
25497 | }; | |
25498 | ||
25499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
25500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25502 | { | |
25503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25504 | (arg1)->Freeze(); | |
25505 | ||
25506 | wxPyEndAllowThreads(__tstate); | |
25507 | if (PyErr_Occurred()) SWIG_fail; | |
25508 | } | |
25509 | Py_INCREF(Py_None); resultobj = Py_None; | |
25510 | return resultobj; | |
25511 | fail: | |
25512 | return NULL; | |
25513 | } | |
25514 | ||
25515 | ||
25516 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25517 | PyObject *resultobj; | |
25518 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25519 | PyObject * obj0 = 0 ; | |
25520 | char *kwnames[] = { | |
25521 | (char *) "self", NULL | |
25522 | }; | |
25523 | ||
25524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
25525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25527 | { | |
25528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25529 | (arg1)->Thaw(); | |
25530 | ||
25531 | wxPyEndAllowThreads(__tstate); | |
25532 | if (PyErr_Occurred()) SWIG_fail; | |
25533 | } | |
25534 | Py_INCREF(Py_None); resultobj = Py_None; | |
25535 | return resultobj; | |
25536 | fail: | |
25537 | return NULL; | |
25538 | } | |
25539 | ||
25540 | ||
25541 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25542 | PyObject *resultobj; | |
25543 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25544 | wxDC *arg2 = 0 ; | |
25545 | PyObject * obj0 = 0 ; | |
25546 | PyObject * obj1 = 0 ; | |
25547 | char *kwnames[] = { | |
25548 | (char *) "self",(char *) "dc", NULL | |
25549 | }; | |
25550 | ||
25551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
25552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25554 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25555 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25556 | SWIG_fail; | |
25557 | if (arg2 == NULL) { | |
25558 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25559 | SWIG_fail; | |
25560 | } | |
25561 | { | |
25562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25563 | (arg1)->PrepareDC(*arg2); | |
25564 | ||
25565 | wxPyEndAllowThreads(__tstate); | |
25566 | if (PyErr_Occurred()) SWIG_fail; | |
25567 | } | |
25568 | Py_INCREF(Py_None); resultobj = Py_None; | |
25569 | return resultobj; | |
25570 | fail: | |
25571 | return NULL; | |
25572 | } | |
25573 | ||
25574 | ||
25575 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25576 | PyObject *resultobj; | |
25577 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25578 | wxRegion *result; | |
25579 | PyObject * obj0 = 0 ; | |
25580 | char *kwnames[] = { | |
25581 | (char *) "self", NULL | |
25582 | }; | |
25583 | ||
25584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
25585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25587 | { | |
25588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25589 | { | |
25590 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
25591 | result = (wxRegion *) &_result_ref; | |
25592 | } | |
25593 | ||
25594 | wxPyEndAllowThreads(__tstate); | |
25595 | if (PyErr_Occurred()) SWIG_fail; | |
25596 | } | |
25597 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); | |
25598 | return resultobj; | |
25599 | fail: | |
25600 | return NULL; | |
25601 | } | |
25602 | ||
25603 | ||
25604 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25605 | PyObject *resultobj; | |
25606 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25607 | wxRect result; | |
25608 | PyObject * obj0 = 0 ; | |
25609 | char *kwnames[] = { | |
25610 | (char *) "self", NULL | |
25611 | }; | |
25612 | ||
25613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
25614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25616 | { | |
25617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25618 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
25619 | ||
25620 | wxPyEndAllowThreads(__tstate); | |
25621 | if (PyErr_Occurred()) SWIG_fail; | |
25622 | } | |
25623 | { | |
25624 | wxRect * resultptr; | |
25625 | resultptr = new wxRect((wxRect &) result); | |
25626 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
25627 | } | |
25628 | return resultobj; | |
25629 | fail: | |
25630 | return NULL; | |
25631 | } | |
25632 | ||
25633 | ||
25634 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25635 | PyObject *resultobj; | |
25636 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25637 | int arg2 ; | |
25638 | int arg3 ; | |
25639 | int arg4 = (int) 1 ; | |
25640 | int arg5 = (int) 1 ; | |
25641 | bool result; | |
25642 | PyObject * obj0 = 0 ; | |
25643 | PyObject * obj1 = 0 ; | |
25644 | PyObject * obj2 = 0 ; | |
25645 | PyObject * obj3 = 0 ; | |
25646 | PyObject * obj4 = 0 ; | |
25647 | char *kwnames[] = { | |
25648 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
25649 | }; | |
25650 | ||
25651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25654 | arg2 = (int) SWIG_AsInt(obj1); | |
25655 | if (PyErr_Occurred()) SWIG_fail; | |
25656 | arg3 = (int) SWIG_AsInt(obj2); | |
25657 | if (PyErr_Occurred()) SWIG_fail; | |
25658 | if (obj3) { | |
25659 | arg4 = (int) SWIG_AsInt(obj3); | |
25660 | if (PyErr_Occurred()) SWIG_fail; | |
25661 | } | |
25662 | if (obj4) { | |
25663 | arg5 = (int) SWIG_AsInt(obj4); | |
25664 | if (PyErr_Occurred()) SWIG_fail; | |
25665 | } | |
25666 | { | |
25667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25668 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
25669 | ||
25670 | wxPyEndAllowThreads(__tstate); | |
25671 | if (PyErr_Occurred()) SWIG_fail; | |
25672 | } | |
25673 | { | |
25674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25675 | } | |
25676 | return resultobj; | |
25677 | fail: | |
25678 | return NULL; | |
25679 | } | |
25680 | ||
25681 | ||
25682 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25683 | PyObject *resultobj; | |
25684 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25685 | wxPoint *arg2 = 0 ; | |
25686 | bool result; | |
25687 | wxPoint temp2 ; | |
25688 | PyObject * obj0 = 0 ; | |
25689 | PyObject * obj1 = 0 ; | |
25690 | char *kwnames[] = { | |
25691 | (char *) "self",(char *) "pt", NULL | |
25692 | }; | |
25693 | ||
25694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
25695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25697 | { | |
25698 | arg2 = &temp2; | |
25699 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25700 | } | |
25701 | { | |
25702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25703 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
25704 | ||
25705 | wxPyEndAllowThreads(__tstate); | |
25706 | if (PyErr_Occurred()) SWIG_fail; | |
25707 | } | |
25708 | { | |
25709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25710 | } | |
25711 | return resultobj; | |
25712 | fail: | |
25713 | return NULL; | |
25714 | } | |
25715 | ||
25716 | ||
25717 | static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25718 | PyObject *resultobj; | |
25719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25720 | wxRect *arg2 = 0 ; | |
25721 | bool result; | |
25722 | wxRect temp2 ; | |
25723 | PyObject * obj0 = 0 ; | |
25724 | PyObject * obj1 = 0 ; | |
25725 | char *kwnames[] = { | |
25726 | (char *) "self",(char *) "rect", NULL | |
25727 | }; | |
25728 | ||
25729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
25730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25732 | { | |
25733 | arg2 = &temp2; | |
25734 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25735 | } | |
25736 | { | |
25737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25738 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
25739 | ||
25740 | wxPyEndAllowThreads(__tstate); | |
25741 | if (PyErr_Occurred()) SWIG_fail; | |
25742 | } | |
25743 | { | |
25744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25745 | } | |
25746 | return resultobj; | |
25747 | fail: | |
25748 | return NULL; | |
25749 | } | |
25750 | ||
25751 | ||
25752 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25753 | PyObject *resultobj; | |
25754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25755 | wxVisualAttributes result; | |
25756 | PyObject * obj0 = 0 ; | |
25757 | char *kwnames[] = { | |
25758 | (char *) "self", NULL | |
25759 | }; | |
25760 | ||
25761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
25762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25764 | { | |
25765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25766 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
25767 | ||
25768 | wxPyEndAllowThreads(__tstate); | |
25769 | if (PyErr_Occurred()) SWIG_fail; | |
25770 | } | |
25771 | { | |
25772 | wxVisualAttributes * resultptr; | |
25773 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
25774 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
25775 | } | |
25776 | return resultobj; | |
25777 | fail: | |
25778 | return NULL; | |
25779 | } | |
25780 | ||
25781 | ||
25782 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25783 | PyObject *resultobj; | |
25784 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
25785 | wxVisualAttributes result; | |
25786 | PyObject * obj0 = 0 ; | |
25787 | char *kwnames[] = { | |
25788 | (char *) "variant", NULL | |
25789 | }; | |
25790 | ||
25791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
25792 | if (obj0) { | |
25793 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
25794 | if (PyErr_Occurred()) SWIG_fail; | |
25795 | } | |
25796 | { | |
25797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25798 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
25799 | ||
25800 | wxPyEndAllowThreads(__tstate); | |
25801 | if (PyErr_Occurred()) SWIG_fail; | |
25802 | } | |
25803 | { | |
25804 | wxVisualAttributes * resultptr; | |
25805 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
25806 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
25807 | } | |
25808 | return resultobj; | |
25809 | fail: | |
25810 | return NULL; | |
25811 | } | |
25812 | ||
25813 | ||
25814 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25815 | PyObject *resultobj; | |
25816 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25817 | wxColour *arg2 = 0 ; | |
25818 | bool result; | |
25819 | wxColour temp2 ; | |
25820 | PyObject * obj0 = 0 ; | |
25821 | PyObject * obj1 = 0 ; | |
25822 | char *kwnames[] = { | |
25823 | (char *) "self",(char *) "colour", NULL | |
25824 | }; | |
25825 | ||
25826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25829 | { | |
25830 | arg2 = &temp2; | |
25831 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25832 | } | |
25833 | { | |
25834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25835 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
25836 | ||
25837 | wxPyEndAllowThreads(__tstate); | |
25838 | if (PyErr_Occurred()) SWIG_fail; | |
25839 | } | |
25840 | { | |
25841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25842 | } | |
25843 | return resultobj; | |
25844 | fail: | |
25845 | return NULL; | |
25846 | } | |
25847 | ||
25848 | ||
25849 | static PyObject *_wrap_Window_SetDefaultBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25850 | PyObject *resultobj; | |
25851 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25852 | wxColour *arg2 = 0 ; | |
25853 | wxColour temp2 ; | |
25854 | PyObject * obj0 = 0 ; | |
25855 | PyObject * obj1 = 0 ; | |
25856 | char *kwnames[] = { | |
25857 | (char *) "self",(char *) "colour", NULL | |
25858 | }; | |
25859 | ||
25860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25863 | { | |
25864 | arg2 = &temp2; | |
25865 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25866 | } | |
25867 | { | |
25868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25869 | (arg1)->SetDefaultBackgroundColour((wxColour const &)*arg2); | |
25870 | ||
25871 | wxPyEndAllowThreads(__tstate); | |
25872 | if (PyErr_Occurred()) SWIG_fail; | |
25873 | } | |
25874 | Py_INCREF(Py_None); resultobj = Py_None; | |
25875 | return resultobj; | |
25876 | fail: | |
25877 | return NULL; | |
25878 | } | |
25879 | ||
25880 | ||
25881 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25882 | PyObject *resultobj; | |
25883 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25884 | wxColour *arg2 = 0 ; | |
25885 | bool result; | |
25886 | wxColour temp2 ; | |
25887 | PyObject * obj0 = 0 ; | |
25888 | PyObject * obj1 = 0 ; | |
25889 | char *kwnames[] = { | |
25890 | (char *) "self",(char *) "colour", NULL | |
25891 | }; | |
25892 | ||
25893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25896 | { | |
25897 | arg2 = &temp2; | |
25898 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25899 | } | |
25900 | { | |
25901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25902 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
25903 | ||
25904 | wxPyEndAllowThreads(__tstate); | |
25905 | if (PyErr_Occurred()) SWIG_fail; | |
25906 | } | |
25907 | { | |
25908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25909 | } | |
25910 | return resultobj; | |
25911 | fail: | |
25912 | return NULL; | |
25913 | } | |
25914 | ||
25915 | ||
25916 | static PyObject *_wrap_Window_SetDefaultForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25917 | PyObject *resultobj; | |
25918 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25919 | wxColour *arg2 = 0 ; | |
25920 | wxColour temp2 ; | |
25921 | PyObject * obj0 = 0 ; | |
25922 | PyObject * obj1 = 0 ; | |
25923 | char *kwnames[] = { | |
25924 | (char *) "self",(char *) "colour", NULL | |
25925 | }; | |
25926 | ||
25927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25930 | { | |
25931 | arg2 = &temp2; | |
25932 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25933 | } | |
25934 | { | |
25935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25936 | (arg1)->SetDefaultForegroundColour((wxColour const &)*arg2); | |
25937 | ||
25938 | wxPyEndAllowThreads(__tstate); | |
25939 | if (PyErr_Occurred()) SWIG_fail; | |
25940 | } | |
25941 | Py_INCREF(Py_None); resultobj = Py_None; | |
25942 | return resultobj; | |
25943 | fail: | |
25944 | return NULL; | |
25945 | } | |
25946 | ||
25947 | ||
25948 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25949 | PyObject *resultobj; | |
25950 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25951 | wxColour result; | |
25952 | PyObject * obj0 = 0 ; | |
25953 | char *kwnames[] = { | |
25954 | (char *) "self", NULL | |
25955 | }; | |
25956 | ||
25957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
25958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25960 | { | |
25961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25962 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
25963 | ||
25964 | wxPyEndAllowThreads(__tstate); | |
25965 | if (PyErr_Occurred()) SWIG_fail; | |
25966 | } | |
25967 | { | |
25968 | wxColour * resultptr; | |
25969 | resultptr = new wxColour((wxColour &) result); | |
25970 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
25971 | } | |
25972 | return resultobj; | |
25973 | fail: | |
25974 | return NULL; | |
25975 | } | |
25976 | ||
25977 | ||
25978 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25979 | PyObject *resultobj; | |
25980 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25981 | wxColour result; | |
25982 | PyObject * obj0 = 0 ; | |
25983 | char *kwnames[] = { | |
25984 | (char *) "self", NULL | |
25985 | }; | |
25986 | ||
25987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
25988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25990 | { | |
25991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25992 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
25993 | ||
25994 | wxPyEndAllowThreads(__tstate); | |
25995 | if (PyErr_Occurred()) SWIG_fail; | |
25996 | } | |
25997 | { | |
25998 | wxColour * resultptr; | |
25999 | resultptr = new wxColour((wxColour &) result); | |
26000 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26001 | } | |
26002 | return resultobj; | |
26003 | fail: | |
26004 | return NULL; | |
26005 | } | |
26006 | ||
26007 | ||
26008 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26009 | PyObject *resultobj; | |
26010 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26011 | wxCursor *arg2 = 0 ; | |
26012 | bool result; | |
26013 | PyObject * obj0 = 0 ; | |
26014 | PyObject * obj1 = 0 ; | |
26015 | char *kwnames[] = { | |
26016 | (char *) "self",(char *) "cursor", NULL | |
26017 | }; | |
26018 | ||
26019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
26020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26022 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26023 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26024 | SWIG_fail; | |
26025 | if (arg2 == NULL) { | |
26026 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26027 | SWIG_fail; | |
26028 | } | |
26029 | { | |
26030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26031 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
26032 | ||
26033 | wxPyEndAllowThreads(__tstate); | |
26034 | if (PyErr_Occurred()) SWIG_fail; | |
26035 | } | |
26036 | { | |
26037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26038 | } | |
26039 | return resultobj; | |
26040 | fail: | |
26041 | return NULL; | |
26042 | } | |
26043 | ||
26044 | ||
26045 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26046 | PyObject *resultobj; | |
26047 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26048 | wxCursor *result; | |
26049 | PyObject * obj0 = 0 ; | |
26050 | char *kwnames[] = { | |
26051 | (char *) "self", NULL | |
26052 | }; | |
26053 | ||
26054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
26055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26057 | { | |
26058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26059 | { | |
26060 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
26061 | result = (wxCursor *) &_result_ref; | |
26062 | } | |
26063 | ||
26064 | wxPyEndAllowThreads(__tstate); | |
26065 | if (PyErr_Occurred()) SWIG_fail; | |
26066 | } | |
26067 | { | |
26068 | wxCursor* resultptr = new wxCursor(*result); | |
26069 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
26070 | } | |
26071 | return resultobj; | |
26072 | fail: | |
26073 | return NULL; | |
26074 | } | |
26075 | ||
26076 | ||
26077 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26078 | PyObject *resultobj; | |
26079 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26080 | wxFont *arg2 = 0 ; | |
26081 | bool result; | |
26082 | PyObject * obj0 = 0 ; | |
26083 | PyObject * obj1 = 0 ; | |
26084 | char *kwnames[] = { | |
26085 | (char *) "self",(char *) "font", NULL | |
26086 | }; | |
26087 | ||
26088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
26089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26091 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26092 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26093 | SWIG_fail; | |
26094 | if (arg2 == NULL) { | |
26095 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26096 | SWIG_fail; | |
26097 | } | |
26098 | { | |
26099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26100 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
26101 | ||
26102 | wxPyEndAllowThreads(__tstate); | |
26103 | if (PyErr_Occurred()) SWIG_fail; | |
26104 | } | |
26105 | { | |
26106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26107 | } | |
26108 | return resultobj; | |
26109 | fail: | |
26110 | return NULL; | |
26111 | } | |
26112 | ||
26113 | ||
26114 | static PyObject *_wrap_Window_SetDefaultFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26115 | PyObject *resultobj; | |
26116 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26117 | wxFont *arg2 = 0 ; | |
26118 | PyObject * obj0 = 0 ; | |
26119 | PyObject * obj1 = 0 ; | |
26120 | char *kwnames[] = { | |
26121 | (char *) "self",(char *) "font", NULL | |
26122 | }; | |
26123 | ||
26124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultFont",kwnames,&obj0,&obj1)) goto fail; | |
26125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26127 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26128 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26129 | SWIG_fail; | |
26130 | if (arg2 == NULL) { | |
26131 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26132 | SWIG_fail; | |
26133 | } | |
26134 | { | |
26135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26136 | (arg1)->SetDefaultFont((wxFont const &)*arg2); | |
26137 | ||
26138 | wxPyEndAllowThreads(__tstate); | |
26139 | if (PyErr_Occurred()) SWIG_fail; | |
26140 | } | |
26141 | Py_INCREF(Py_None); resultobj = Py_None; | |
26142 | return resultobj; | |
26143 | fail: | |
26144 | return NULL; | |
26145 | } | |
26146 | ||
26147 | ||
26148 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26149 | PyObject *resultobj; | |
26150 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26151 | wxFont *result; | |
26152 | PyObject * obj0 = 0 ; | |
26153 | char *kwnames[] = { | |
26154 | (char *) "self", NULL | |
26155 | }; | |
26156 | ||
26157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
26158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26160 | { | |
26161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26162 | { | |
26163 | wxFont &_result_ref = (arg1)->GetFont(); | |
26164 | result = (wxFont *) &_result_ref; | |
26165 | } | |
26166 | ||
26167 | wxPyEndAllowThreads(__tstate); | |
26168 | if (PyErr_Occurred()) SWIG_fail; | |
26169 | } | |
26170 | { | |
26171 | wxFont* resultptr = new wxFont(*result); | |
26172 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
26173 | } | |
26174 | return resultobj; | |
26175 | fail: | |
26176 | return NULL; | |
26177 | } | |
26178 | ||
26179 | ||
26180 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26181 | PyObject *resultobj; | |
26182 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26183 | wxCaret *arg2 = (wxCaret *) 0 ; | |
26184 | PyObject * obj0 = 0 ; | |
26185 | PyObject * obj1 = 0 ; | |
26186 | char *kwnames[] = { | |
26187 | (char *) "self",(char *) "caret", NULL | |
26188 | }; | |
26189 | ||
26190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
26191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26193 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
26194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26195 | { | |
26196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26197 | (arg1)->SetCaret(arg2); | |
26198 | ||
26199 | wxPyEndAllowThreads(__tstate); | |
26200 | if (PyErr_Occurred()) SWIG_fail; | |
26201 | } | |
26202 | Py_INCREF(Py_None); resultobj = Py_None; | |
26203 | return resultobj; | |
26204 | fail: | |
26205 | return NULL; | |
26206 | } | |
26207 | ||
26208 | ||
26209 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26210 | PyObject *resultobj; | |
26211 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26212 | wxCaret *result; | |
26213 | PyObject * obj0 = 0 ; | |
26214 | char *kwnames[] = { | |
26215 | (char *) "self", NULL | |
26216 | }; | |
26217 | ||
26218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
26219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26221 | { | |
26222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26223 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
26224 | ||
26225 | wxPyEndAllowThreads(__tstate); | |
26226 | if (PyErr_Occurred()) SWIG_fail; | |
26227 | } | |
26228 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); | |
26229 | return resultobj; | |
26230 | fail: | |
26231 | return NULL; | |
26232 | } | |
26233 | ||
26234 | ||
26235 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26236 | PyObject *resultobj; | |
26237 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26238 | int result; | |
26239 | PyObject * obj0 = 0 ; | |
26240 | char *kwnames[] = { | |
26241 | (char *) "self", NULL | |
26242 | }; | |
26243 | ||
26244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
26245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26247 | { | |
26248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26249 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
26250 | ||
26251 | wxPyEndAllowThreads(__tstate); | |
26252 | if (PyErr_Occurred()) SWIG_fail; | |
26253 | } | |
26254 | resultobj = SWIG_FromInt((int)result); | |
26255 | return resultobj; | |
26256 | fail: | |
26257 | return NULL; | |
26258 | } | |
26259 | ||
26260 | ||
26261 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26262 | PyObject *resultobj; | |
26263 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26264 | int result; | |
26265 | PyObject * obj0 = 0 ; | |
26266 | char *kwnames[] = { | |
26267 | (char *) "self", NULL | |
26268 | }; | |
26269 | ||
26270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
26271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26273 | { | |
26274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26275 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
26276 | ||
26277 | wxPyEndAllowThreads(__tstate); | |
26278 | if (PyErr_Occurred()) SWIG_fail; | |
26279 | } | |
26280 | resultobj = SWIG_FromInt((int)result); | |
26281 | return resultobj; | |
26282 | fail: | |
26283 | return NULL; | |
26284 | } | |
26285 | ||
26286 | ||
26287 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26288 | PyObject *resultobj; | |
26289 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26290 | wxString *arg2 = 0 ; | |
26291 | int *arg3 = (int *) 0 ; | |
26292 | int *arg4 = (int *) 0 ; | |
26293 | bool temp2 = False ; | |
26294 | int temp3 ; | |
26295 | int temp4 ; | |
26296 | PyObject * obj0 = 0 ; | |
26297 | PyObject * obj1 = 0 ; | |
26298 | char *kwnames[] = { | |
26299 | (char *) "self",(char *) "string", NULL | |
26300 | }; | |
26301 | ||
26302 | arg3 = &temp3; | |
26303 | arg4 = &temp4; | |
26304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
26305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26307 | { | |
26308 | arg2 = wxString_in_helper(obj1); | |
26309 | if (arg2 == NULL) SWIG_fail; | |
26310 | temp2 = True; | |
26311 | } | |
26312 | { | |
26313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26314 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
26315 | ||
26316 | wxPyEndAllowThreads(__tstate); | |
26317 | if (PyErr_Occurred()) SWIG_fail; | |
26318 | } | |
26319 | Py_INCREF(Py_None); resultobj = Py_None; | |
26320 | { | |
26321 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26322 | resultobj = t_output_helper(resultobj,o); | |
26323 | } | |
26324 | { | |
26325 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26326 | resultobj = t_output_helper(resultobj,o); | |
26327 | } | |
26328 | { | |
26329 | if (temp2) | |
26330 | delete arg2; | |
26331 | } | |
26332 | return resultobj; | |
26333 | fail: | |
26334 | { | |
26335 | if (temp2) | |
26336 | delete arg2; | |
26337 | } | |
26338 | return NULL; | |
26339 | } | |
26340 | ||
26341 | ||
26342 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26343 | PyObject *resultobj; | |
26344 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26345 | wxString *arg2 = 0 ; | |
26346 | int *arg3 = (int *) 0 ; | |
26347 | int *arg4 = (int *) 0 ; | |
26348 | int *arg5 = (int *) 0 ; | |
26349 | int *arg6 = (int *) 0 ; | |
26350 | wxFont *arg7 = (wxFont *) NULL ; | |
26351 | bool temp2 = False ; | |
26352 | int temp3 ; | |
26353 | int temp4 ; | |
26354 | int temp5 ; | |
26355 | int temp6 ; | |
26356 | PyObject * obj0 = 0 ; | |
26357 | PyObject * obj1 = 0 ; | |
26358 | PyObject * obj2 = 0 ; | |
26359 | char *kwnames[] = { | |
26360 | (char *) "self",(char *) "string",(char *) "font", NULL | |
26361 | }; | |
26362 | ||
26363 | arg3 = &temp3; | |
26364 | arg4 = &temp4; | |
26365 | arg5 = &temp5; | |
26366 | arg6 = &temp6; | |
26367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26370 | { | |
26371 | arg2 = wxString_in_helper(obj1); | |
26372 | if (arg2 == NULL) SWIG_fail; | |
26373 | temp2 = True; | |
26374 | } | |
26375 | if (obj2) { | |
26376 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
26377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26378 | } | |
26379 | { | |
26380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26381 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
26382 | ||
26383 | wxPyEndAllowThreads(__tstate); | |
26384 | if (PyErr_Occurred()) SWIG_fail; | |
26385 | } | |
26386 | Py_INCREF(Py_None); resultobj = Py_None; | |
26387 | { | |
26388 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26389 | resultobj = t_output_helper(resultobj,o); | |
26390 | } | |
26391 | { | |
26392 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26393 | resultobj = t_output_helper(resultobj,o); | |
26394 | } | |
26395 | { | |
26396 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
26397 | resultobj = t_output_helper(resultobj,o); | |
26398 | } | |
26399 | { | |
26400 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
26401 | resultobj = t_output_helper(resultobj,o); | |
26402 | } | |
26403 | { | |
26404 | if (temp2) | |
26405 | delete arg2; | |
26406 | } | |
26407 | return resultobj; | |
26408 | fail: | |
26409 | { | |
26410 | if (temp2) | |
26411 | delete arg2; | |
26412 | } | |
26413 | return NULL; | |
26414 | } | |
26415 | ||
26416 | ||
26417 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26418 | PyObject *resultobj; | |
26419 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26420 | int *arg2 = (int *) 0 ; | |
26421 | int *arg3 = (int *) 0 ; | |
26422 | int temp2 ; | |
26423 | int temp3 ; | |
26424 | PyObject * obj0 = 0 ; | |
26425 | PyObject * obj1 = 0 ; | |
26426 | PyObject * obj2 = 0 ; | |
26427 | char *kwnames[] = { | |
26428 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26429 | }; | |
26430 | ||
26431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26434 | { | |
26435 | temp2 = PyInt_AsLong(obj1); | |
26436 | if (PyErr_Occurred()) SWIG_fail; | |
26437 | arg2 = &temp2; | |
26438 | } | |
26439 | { | |
26440 | temp3 = PyInt_AsLong(obj2); | |
26441 | if (PyErr_Occurred()) SWIG_fail; | |
26442 | arg3 = &temp3; | |
26443 | } | |
26444 | { | |
26445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26446 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
26447 | ||
26448 | wxPyEndAllowThreads(__tstate); | |
26449 | if (PyErr_Occurred()) SWIG_fail; | |
26450 | } | |
26451 | Py_INCREF(Py_None); resultobj = Py_None; | |
26452 | { | |
26453 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26454 | resultobj = t_output_helper(resultobj,o); | |
26455 | } | |
26456 | { | |
26457 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26458 | resultobj = t_output_helper(resultobj,o); | |
26459 | } | |
26460 | return resultobj; | |
26461 | fail: | |
26462 | return NULL; | |
26463 | } | |
26464 | ||
26465 | ||
26466 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26467 | PyObject *resultobj; | |
26468 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26469 | int *arg2 = (int *) 0 ; | |
26470 | int *arg3 = (int *) 0 ; | |
26471 | int temp2 ; | |
26472 | int temp3 ; | |
26473 | PyObject * obj0 = 0 ; | |
26474 | PyObject * obj1 = 0 ; | |
26475 | PyObject * obj2 = 0 ; | |
26476 | char *kwnames[] = { | |
26477 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26478 | }; | |
26479 | ||
26480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26483 | { | |
26484 | temp2 = PyInt_AsLong(obj1); | |
26485 | if (PyErr_Occurred()) SWIG_fail; | |
26486 | arg2 = &temp2; | |
26487 | } | |
26488 | { | |
26489 | temp3 = PyInt_AsLong(obj2); | |
26490 | if (PyErr_Occurred()) SWIG_fail; | |
26491 | arg3 = &temp3; | |
26492 | } | |
26493 | { | |
26494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26495 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
26496 | ||
26497 | wxPyEndAllowThreads(__tstate); | |
26498 | if (PyErr_Occurred()) SWIG_fail; | |
26499 | } | |
26500 | Py_INCREF(Py_None); resultobj = Py_None; | |
26501 | { | |
26502 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26503 | resultobj = t_output_helper(resultobj,o); | |
26504 | } | |
26505 | { | |
26506 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26507 | resultobj = t_output_helper(resultobj,o); | |
26508 | } | |
26509 | return resultobj; | |
26510 | fail: | |
26511 | return NULL; | |
26512 | } | |
26513 | ||
26514 | ||
26515 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26516 | PyObject *resultobj; | |
26517 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26518 | wxPoint *arg2 = 0 ; | |
26519 | wxPoint result; | |
26520 | wxPoint temp2 ; | |
26521 | PyObject * obj0 = 0 ; | |
26522 | PyObject * obj1 = 0 ; | |
26523 | char *kwnames[] = { | |
26524 | (char *) "self",(char *) "pt", NULL | |
26525 | }; | |
26526 | ||
26527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
26528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26530 | { | |
26531 | arg2 = &temp2; | |
26532 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26533 | } | |
26534 | { | |
26535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26536 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
26537 | ||
26538 | wxPyEndAllowThreads(__tstate); | |
26539 | if (PyErr_Occurred()) SWIG_fail; | |
26540 | } | |
26541 | { | |
26542 | wxPoint * resultptr; | |
26543 | resultptr = new wxPoint((wxPoint &) result); | |
26544 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26545 | } | |
26546 | return resultobj; | |
26547 | fail: | |
26548 | return NULL; | |
26549 | } | |
26550 | ||
26551 | ||
26552 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26553 | PyObject *resultobj; | |
26554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26555 | wxPoint *arg2 = 0 ; | |
26556 | wxPoint result; | |
26557 | wxPoint temp2 ; | |
26558 | PyObject * obj0 = 0 ; | |
26559 | PyObject * obj1 = 0 ; | |
26560 | char *kwnames[] = { | |
26561 | (char *) "self",(char *) "pt", NULL | |
26562 | }; | |
26563 | ||
26564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
26565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26567 | { | |
26568 | arg2 = &temp2; | |
26569 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26570 | } | |
26571 | { | |
26572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26573 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
26574 | ||
26575 | wxPyEndAllowThreads(__tstate); | |
26576 | if (PyErr_Occurred()) SWIG_fail; | |
26577 | } | |
26578 | { | |
26579 | wxPoint * resultptr; | |
26580 | resultptr = new wxPoint((wxPoint &) result); | |
26581 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26582 | } | |
26583 | return resultobj; | |
26584 | fail: | |
26585 | return NULL; | |
26586 | } | |
26587 | ||
26588 | ||
26589 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26590 | PyObject *resultobj; | |
26591 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26592 | int arg2 ; | |
26593 | int arg3 ; | |
26594 | int result; | |
26595 | PyObject * obj0 = 0 ; | |
26596 | PyObject * obj1 = 0 ; | |
26597 | PyObject * obj2 = 0 ; | |
26598 | char *kwnames[] = { | |
26599 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26600 | }; | |
26601 | ||
26602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26605 | arg2 = (int) SWIG_AsInt(obj1); | |
26606 | if (PyErr_Occurred()) SWIG_fail; | |
26607 | arg3 = (int) SWIG_AsInt(obj2); | |
26608 | if (PyErr_Occurred()) SWIG_fail; | |
26609 | { | |
26610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26611 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
26612 | ||
26613 | wxPyEndAllowThreads(__tstate); | |
26614 | if (PyErr_Occurred()) SWIG_fail; | |
26615 | } | |
26616 | resultobj = SWIG_FromInt((int)result); | |
26617 | return resultobj; | |
26618 | fail: | |
26619 | return NULL; | |
26620 | } | |
26621 | ||
26622 | ||
26623 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26624 | PyObject *resultobj; | |
26625 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26626 | wxPoint *arg2 = 0 ; | |
26627 | int result; | |
26628 | wxPoint temp2 ; | |
26629 | PyObject * obj0 = 0 ; | |
26630 | PyObject * obj1 = 0 ; | |
26631 | char *kwnames[] = { | |
26632 | (char *) "self",(char *) "pt", NULL | |
26633 | }; | |
26634 | ||
26635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
26636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26638 | { | |
26639 | arg2 = &temp2; | |
26640 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26641 | } | |
26642 | { | |
26643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26644 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
26645 | ||
26646 | wxPyEndAllowThreads(__tstate); | |
26647 | if (PyErr_Occurred()) SWIG_fail; | |
26648 | } | |
26649 | resultobj = SWIG_FromInt((int)result); | |
26650 | return resultobj; | |
26651 | fail: | |
26652 | return NULL; | |
26653 | } | |
26654 | ||
26655 | ||
26656 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) { | |
26657 | PyObject *resultobj; | |
26658 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26659 | long arg2 ; | |
26660 | int result; | |
26661 | PyObject * obj0 = 0 ; | |
26662 | PyObject * obj1 = 0 ; | |
26663 | ||
26664 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; | |
26665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26667 | arg2 = (long) SWIG_AsLong(obj1); | |
26668 | if (PyErr_Occurred()) SWIG_fail; | |
26669 | { | |
26670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26671 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
26672 | ||
26673 | wxPyEndAllowThreads(__tstate); | |
26674 | if (PyErr_Occurred()) SWIG_fail; | |
26675 | } | |
26676 | resultobj = SWIG_FromInt((int)result); | |
26677 | return resultobj; | |
26678 | fail: | |
26679 | return NULL; | |
26680 | } | |
26681 | ||
26682 | ||
26683 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) { | |
26684 | PyObject *resultobj; | |
26685 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26686 | int result; | |
26687 | PyObject * obj0 = 0 ; | |
26688 | ||
26689 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; | |
26690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26692 | { | |
26693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26694 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
26695 | ||
26696 | wxPyEndAllowThreads(__tstate); | |
26697 | if (PyErr_Occurred()) SWIG_fail; | |
26698 | } | |
26699 | resultobj = SWIG_FromInt((int)result); | |
26700 | return resultobj; | |
26701 | fail: | |
26702 | return NULL; | |
26703 | } | |
26704 | ||
26705 | ||
26706 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { | |
26707 | int argc; | |
26708 | PyObject *argv[3]; | |
26709 | int ii; | |
26710 | ||
26711 | argc = PyObject_Length(args); | |
26712 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
26713 | argv[ii] = PyTuple_GetItem(args,ii); | |
26714 | } | |
26715 | if (argc == 1) { | |
26716 | int _v; | |
26717 | { | |
26718 | void *ptr; | |
26719 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
26720 | _v = 0; | |
26721 | PyErr_Clear(); | |
26722 | } else { | |
26723 | _v = 1; | |
26724 | } | |
26725 | } | |
26726 | if (_v) { | |
26727 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
26728 | } | |
26729 | } | |
26730 | if (argc == 2) { | |
26731 | int _v; | |
26732 | { | |
26733 | void *ptr; | |
26734 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
26735 | _v = 0; | |
26736 | PyErr_Clear(); | |
26737 | } else { | |
26738 | _v = 1; | |
26739 | } | |
26740 | } | |
26741 | if (_v) { | |
26742 | _v = SWIG_CheckLong(argv[1]); | |
26743 | if (_v) { | |
26744 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
26745 | } | |
26746 | } | |
26747 | } | |
26748 | ||
26749 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
26750 | return NULL; | |
26751 | } | |
26752 | ||
26753 | ||
26754 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26755 | PyObject *resultobj; | |
26756 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26757 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
26758 | PyObject * obj0 = 0 ; | |
26759 | PyObject * obj1 = 0 ; | |
26760 | char *kwnames[] = { | |
26761 | (char *) "self",(char *) "flags", NULL | |
26762 | }; | |
26763 | ||
26764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; | |
26765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26767 | if (obj1) { | |
26768 | arg2 = (long) SWIG_AsLong(obj1); | |
26769 | if (PyErr_Occurred()) SWIG_fail; | |
26770 | } | |
26771 | { | |
26772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26773 | (arg1)->UpdateWindowUI(arg2); | |
26774 | ||
26775 | wxPyEndAllowThreads(__tstate); | |
26776 | if (PyErr_Occurred()) SWIG_fail; | |
26777 | } | |
26778 | Py_INCREF(Py_None); resultobj = Py_None; | |
26779 | return resultobj; | |
26780 | fail: | |
26781 | return NULL; | |
26782 | } | |
26783 | ||
26784 | ||
26785 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26786 | PyObject *resultobj; | |
26787 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26788 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26789 | int arg3 ; | |
26790 | int arg4 ; | |
26791 | bool result; | |
26792 | PyObject * obj0 = 0 ; | |
26793 | PyObject * obj1 = 0 ; | |
26794 | PyObject * obj2 = 0 ; | |
26795 | PyObject * obj3 = 0 ; | |
26796 | char *kwnames[] = { | |
26797 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
26798 | }; | |
26799 | ||
26800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26803 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26805 | arg3 = (int) SWIG_AsInt(obj2); | |
26806 | if (PyErr_Occurred()) SWIG_fail; | |
26807 | arg4 = (int) SWIG_AsInt(obj3); | |
26808 | if (PyErr_Occurred()) SWIG_fail; | |
26809 | { | |
26810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26811 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
26812 | ||
26813 | wxPyEndAllowThreads(__tstate); | |
26814 | if (PyErr_Occurred()) SWIG_fail; | |
26815 | } | |
26816 | { | |
26817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26818 | } | |
26819 | return resultobj; | |
26820 | fail: | |
26821 | return NULL; | |
26822 | } | |
26823 | ||
26824 | ||
26825 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26826 | PyObject *resultobj; | |
26827 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26828 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26829 | wxPoint *arg3 = 0 ; | |
26830 | bool result; | |
26831 | wxPoint temp3 ; | |
26832 | PyObject * obj0 = 0 ; | |
26833 | PyObject * obj1 = 0 ; | |
26834 | PyObject * obj2 = 0 ; | |
26835 | char *kwnames[] = { | |
26836 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
26837 | }; | |
26838 | ||
26839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26842 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26844 | { | |
26845 | arg3 = &temp3; | |
26846 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26847 | } | |
26848 | { | |
26849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26850 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
26851 | ||
26852 | wxPyEndAllowThreads(__tstate); | |
26853 | if (PyErr_Occurred()) SWIG_fail; | |
26854 | } | |
26855 | { | |
26856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26857 | } | |
26858 | return resultobj; | |
26859 | fail: | |
26860 | return NULL; | |
26861 | } | |
26862 | ||
26863 | ||
26864 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26865 | PyObject *resultobj; | |
26866 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26867 | long result; | |
26868 | PyObject * obj0 = 0 ; | |
26869 | char *kwnames[] = { | |
26870 | (char *) "self", NULL | |
26871 | }; | |
26872 | ||
26873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
26874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26876 | { | |
26877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26878 | result = (long)wxWindow_GetHandle(arg1); | |
26879 | ||
26880 | wxPyEndAllowThreads(__tstate); | |
26881 | if (PyErr_Occurred()) SWIG_fail; | |
26882 | } | |
26883 | resultobj = SWIG_FromLong((long)result); | |
26884 | return resultobj; | |
26885 | fail: | |
26886 | return NULL; | |
26887 | } | |
26888 | ||
26889 | ||
26890 | static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26891 | PyObject *resultobj; | |
26892 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26893 | wxPaintEvent *arg2 = 0 ; | |
26894 | PyObject * obj0 = 0 ; | |
26895 | PyObject * obj1 = 0 ; | |
26896 | char *kwnames[] = { | |
26897 | (char *) "self",(char *) "event", NULL | |
26898 | }; | |
26899 | ||
26900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
26901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26903 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent, | |
26904 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26905 | SWIG_fail; | |
26906 | if (arg2 == NULL) { | |
26907 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26908 | SWIG_fail; | |
26909 | } | |
26910 | { | |
26911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26912 | (arg1)->OnPaint(*arg2); | |
26913 | ||
26914 | wxPyEndAllowThreads(__tstate); | |
26915 | if (PyErr_Occurred()) SWIG_fail; | |
26916 | } | |
26917 | Py_INCREF(Py_None); resultobj = Py_None; | |
26918 | return resultobj; | |
26919 | fail: | |
26920 | return NULL; | |
26921 | } | |
26922 | ||
26923 | ||
26924 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26925 | PyObject *resultobj; | |
26926 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26927 | int arg2 ; | |
26928 | bool result; | |
26929 | PyObject * obj0 = 0 ; | |
26930 | PyObject * obj1 = 0 ; | |
26931 | char *kwnames[] = { | |
26932 | (char *) "self",(char *) "orient", NULL | |
26933 | }; | |
26934 | ||
26935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; | |
26936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26938 | arg2 = (int) SWIG_AsInt(obj1); | |
26939 | if (PyErr_Occurred()) SWIG_fail; | |
26940 | { | |
26941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26942 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
26943 | ||
26944 | wxPyEndAllowThreads(__tstate); | |
26945 | if (PyErr_Occurred()) SWIG_fail; | |
26946 | } | |
26947 | { | |
26948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26949 | } | |
26950 | return resultobj; | |
26951 | fail: | |
26952 | return NULL; | |
26953 | } | |
26954 | ||
26955 | ||
26956 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26957 | PyObject *resultobj; | |
26958 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26959 | int arg2 ; | |
26960 | int arg3 ; | |
26961 | int arg4 ; | |
26962 | int arg5 ; | |
26963 | bool arg6 = (bool) True ; | |
26964 | PyObject * obj0 = 0 ; | |
26965 | PyObject * obj1 = 0 ; | |
26966 | PyObject * obj2 = 0 ; | |
26967 | PyObject * obj3 = 0 ; | |
26968 | PyObject * obj4 = 0 ; | |
26969 | PyObject * obj5 = 0 ; | |
26970 | char *kwnames[] = { | |
26971 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL | |
26972 | }; | |
26973 | ||
26974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
26975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26977 | arg2 = (int) SWIG_AsInt(obj1); | |
26978 | if (PyErr_Occurred()) SWIG_fail; | |
26979 | arg3 = (int) SWIG_AsInt(obj2); | |
26980 | if (PyErr_Occurred()) SWIG_fail; | |
26981 | arg4 = (int) SWIG_AsInt(obj3); | |
26982 | if (PyErr_Occurred()) SWIG_fail; | |
26983 | arg5 = (int) SWIG_AsInt(obj4); | |
26984 | if (PyErr_Occurred()) SWIG_fail; | |
26985 | if (obj5) { | |
26986 | arg6 = (bool) SWIG_AsBool(obj5); | |
26987 | if (PyErr_Occurred()) SWIG_fail; | |
26988 | } | |
26989 | { | |
26990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26991 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
26992 | ||
26993 | wxPyEndAllowThreads(__tstate); | |
26994 | if (PyErr_Occurred()) SWIG_fail; | |
26995 | } | |
26996 | Py_INCREF(Py_None); resultobj = Py_None; | |
26997 | return resultobj; | |
26998 | fail: | |
26999 | return NULL; | |
27000 | } | |
27001 | ||
27002 | ||
27003 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27004 | PyObject *resultobj; | |
27005 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27006 | int arg2 ; | |
27007 | int arg3 ; | |
27008 | bool arg4 = (bool) True ; | |
27009 | PyObject * obj0 = 0 ; | |
27010 | PyObject * obj1 = 0 ; | |
27011 | PyObject * obj2 = 0 ; | |
27012 | PyObject * obj3 = 0 ; | |
27013 | char *kwnames[] = { | |
27014 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL | |
27015 | }; | |
27016 | ||
27017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27020 | arg2 = (int) SWIG_AsInt(obj1); | |
27021 | if (PyErr_Occurred()) SWIG_fail; | |
27022 | arg3 = (int) SWIG_AsInt(obj2); | |
27023 | if (PyErr_Occurred()) SWIG_fail; | |
27024 | if (obj3) { | |
27025 | arg4 = (bool) SWIG_AsBool(obj3); | |
27026 | if (PyErr_Occurred()) SWIG_fail; | |
27027 | } | |
27028 | { | |
27029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27030 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
27031 | ||
27032 | wxPyEndAllowThreads(__tstate); | |
27033 | if (PyErr_Occurred()) SWIG_fail; | |
27034 | } | |
27035 | Py_INCREF(Py_None); resultobj = Py_None; | |
27036 | return resultobj; | |
27037 | fail: | |
27038 | return NULL; | |
27039 | } | |
27040 | ||
27041 | ||
27042 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27043 | PyObject *resultobj; | |
27044 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27045 | int arg2 ; | |
27046 | int result; | |
27047 | PyObject * obj0 = 0 ; | |
27048 | PyObject * obj1 = 0 ; | |
27049 | char *kwnames[] = { | |
27050 | (char *) "self",(char *) "orientation", NULL | |
27051 | }; | |
27052 | ||
27053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; | |
27054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27056 | arg2 = (int) SWIG_AsInt(obj1); | |
27057 | if (PyErr_Occurred()) SWIG_fail; | |
27058 | { | |
27059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27060 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
27061 | ||
27062 | wxPyEndAllowThreads(__tstate); | |
27063 | if (PyErr_Occurred()) SWIG_fail; | |
27064 | } | |
27065 | resultobj = SWIG_FromInt((int)result); | |
27066 | return resultobj; | |
27067 | fail: | |
27068 | return NULL; | |
27069 | } | |
27070 | ||
27071 | ||
27072 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27073 | PyObject *resultobj; | |
27074 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27075 | int arg2 ; | |
27076 | int result; | |
27077 | PyObject * obj0 = 0 ; | |
27078 | PyObject * obj1 = 0 ; | |
27079 | char *kwnames[] = { | |
27080 | (char *) "self",(char *) "orientation", NULL | |
27081 | }; | |
27082 | ||
27083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; | |
27084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27086 | arg2 = (int) SWIG_AsInt(obj1); | |
27087 | if (PyErr_Occurred()) SWIG_fail; | |
27088 | { | |
27089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27090 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
27091 | ||
27092 | wxPyEndAllowThreads(__tstate); | |
27093 | if (PyErr_Occurred()) SWIG_fail; | |
27094 | } | |
27095 | resultobj = SWIG_FromInt((int)result); | |
27096 | return resultobj; | |
27097 | fail: | |
27098 | return NULL; | |
27099 | } | |
27100 | ||
27101 | ||
27102 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27103 | PyObject *resultobj; | |
27104 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27105 | int arg2 ; | |
27106 | int result; | |
27107 | PyObject * obj0 = 0 ; | |
27108 | PyObject * obj1 = 0 ; | |
27109 | char *kwnames[] = { | |
27110 | (char *) "self",(char *) "orientation", NULL | |
27111 | }; | |
27112 | ||
27113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; | |
27114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27116 | arg2 = (int) SWIG_AsInt(obj1); | |
27117 | if (PyErr_Occurred()) SWIG_fail; | |
27118 | { | |
27119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27120 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
27121 | ||
27122 | wxPyEndAllowThreads(__tstate); | |
27123 | if (PyErr_Occurred()) SWIG_fail; | |
27124 | } | |
27125 | resultobj = SWIG_FromInt((int)result); | |
27126 | return resultobj; | |
27127 | fail: | |
27128 | return NULL; | |
27129 | } | |
27130 | ||
27131 | ||
27132 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27133 | PyObject *resultobj; | |
27134 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27135 | int arg2 ; | |
27136 | int arg3 ; | |
27137 | wxRect *arg4 = (wxRect *) NULL ; | |
27138 | PyObject * obj0 = 0 ; | |
27139 | PyObject * obj1 = 0 ; | |
27140 | PyObject * obj2 = 0 ; | |
27141 | PyObject * obj3 = 0 ; | |
27142 | char *kwnames[] = { | |
27143 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
27144 | }; | |
27145 | ||
27146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27149 | arg2 = (int) SWIG_AsInt(obj1); | |
27150 | if (PyErr_Occurred()) SWIG_fail; | |
27151 | arg3 = (int) SWIG_AsInt(obj2); | |
27152 | if (PyErr_Occurred()) SWIG_fail; | |
27153 | if (obj3) { | |
27154 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
27155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27156 | } | |
27157 | { | |
27158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27159 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
27160 | ||
27161 | wxPyEndAllowThreads(__tstate); | |
27162 | if (PyErr_Occurred()) SWIG_fail; | |
27163 | } | |
27164 | Py_INCREF(Py_None); resultobj = Py_None; | |
27165 | return resultobj; | |
27166 | fail: | |
27167 | return NULL; | |
27168 | } | |
27169 | ||
27170 | ||
27171 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27172 | PyObject *resultobj; | |
27173 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27174 | int arg2 ; | |
27175 | bool result; | |
27176 | PyObject * obj0 = 0 ; | |
27177 | PyObject * obj1 = 0 ; | |
27178 | char *kwnames[] = { | |
27179 | (char *) "self",(char *) "lines", NULL | |
27180 | }; | |
27181 | ||
27182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
27183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27185 | arg2 = (int) SWIG_AsInt(obj1); | |
27186 | if (PyErr_Occurred()) SWIG_fail; | |
27187 | { | |
27188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27189 | result = (bool)(arg1)->ScrollLines(arg2); | |
27190 | ||
27191 | wxPyEndAllowThreads(__tstate); | |
27192 | if (PyErr_Occurred()) SWIG_fail; | |
27193 | } | |
27194 | { | |
27195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27196 | } | |
27197 | return resultobj; | |
27198 | fail: | |
27199 | return NULL; | |
27200 | } | |
27201 | ||
27202 | ||
27203 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27204 | PyObject *resultobj; | |
27205 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27206 | int arg2 ; | |
27207 | bool result; | |
27208 | PyObject * obj0 = 0 ; | |
27209 | PyObject * obj1 = 0 ; | |
27210 | char *kwnames[] = { | |
27211 | (char *) "self",(char *) "pages", NULL | |
27212 | }; | |
27213 | ||
27214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
27215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27217 | arg2 = (int) SWIG_AsInt(obj1); | |
27218 | if (PyErr_Occurred()) SWIG_fail; | |
27219 | { | |
27220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27221 | result = (bool)(arg1)->ScrollPages(arg2); | |
27222 | ||
27223 | wxPyEndAllowThreads(__tstate); | |
27224 | if (PyErr_Occurred()) SWIG_fail; | |
27225 | } | |
27226 | { | |
27227 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27228 | } | |
27229 | return resultobj; | |
27230 | fail: | |
27231 | return NULL; | |
27232 | } | |
27233 | ||
27234 | ||
27235 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27236 | PyObject *resultobj; | |
27237 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27238 | bool result; | |
27239 | PyObject * obj0 = 0 ; | |
27240 | char *kwnames[] = { | |
27241 | (char *) "self", NULL | |
27242 | }; | |
27243 | ||
27244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
27245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27247 | { | |
27248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27249 | result = (bool)(arg1)->LineUp(); | |
27250 | ||
27251 | wxPyEndAllowThreads(__tstate); | |
27252 | if (PyErr_Occurred()) SWIG_fail; | |
27253 | } | |
27254 | { | |
27255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27256 | } | |
27257 | return resultobj; | |
27258 | fail: | |
27259 | return NULL; | |
27260 | } | |
27261 | ||
27262 | ||
27263 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27264 | PyObject *resultobj; | |
27265 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27266 | bool result; | |
27267 | PyObject * obj0 = 0 ; | |
27268 | char *kwnames[] = { | |
27269 | (char *) "self", NULL | |
27270 | }; | |
27271 | ||
27272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
27273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27275 | { | |
27276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27277 | result = (bool)(arg1)->LineDown(); | |
27278 | ||
27279 | wxPyEndAllowThreads(__tstate); | |
27280 | if (PyErr_Occurred()) SWIG_fail; | |
27281 | } | |
27282 | { | |
27283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27284 | } | |
27285 | return resultobj; | |
27286 | fail: | |
27287 | return NULL; | |
27288 | } | |
27289 | ||
27290 | ||
27291 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27292 | PyObject *resultobj; | |
27293 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27294 | bool result; | |
27295 | PyObject * obj0 = 0 ; | |
27296 | char *kwnames[] = { | |
27297 | (char *) "self", NULL | |
27298 | }; | |
27299 | ||
27300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
27301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27303 | { | |
27304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27305 | result = (bool)(arg1)->PageUp(); | |
27306 | ||
27307 | wxPyEndAllowThreads(__tstate); | |
27308 | if (PyErr_Occurred()) SWIG_fail; | |
27309 | } | |
27310 | { | |
27311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27312 | } | |
27313 | return resultobj; | |
27314 | fail: | |
27315 | return NULL; | |
27316 | } | |
27317 | ||
27318 | ||
27319 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27320 | PyObject *resultobj; | |
27321 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27322 | bool result; | |
27323 | PyObject * obj0 = 0 ; | |
27324 | char *kwnames[] = { | |
27325 | (char *) "self", NULL | |
27326 | }; | |
27327 | ||
27328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
27329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27331 | { | |
27332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27333 | result = (bool)(arg1)->PageDown(); | |
27334 | ||
27335 | wxPyEndAllowThreads(__tstate); | |
27336 | if (PyErr_Occurred()) SWIG_fail; | |
27337 | } | |
27338 | { | |
27339 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27340 | } | |
27341 | return resultobj; | |
27342 | fail: | |
27343 | return NULL; | |
27344 | } | |
27345 | ||
27346 | ||
27347 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27348 | PyObject *resultobj; | |
27349 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27350 | wxString *arg2 = 0 ; | |
27351 | bool temp2 = False ; | |
27352 | PyObject * obj0 = 0 ; | |
27353 | PyObject * obj1 = 0 ; | |
27354 | char *kwnames[] = { | |
27355 | (char *) "self",(char *) "text", NULL | |
27356 | }; | |
27357 | ||
27358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
27359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27361 | { | |
27362 | arg2 = wxString_in_helper(obj1); | |
27363 | if (arg2 == NULL) SWIG_fail; | |
27364 | temp2 = True; | |
27365 | } | |
27366 | { | |
27367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27368 | (arg1)->SetHelpText((wxString const &)*arg2); | |
27369 | ||
27370 | wxPyEndAllowThreads(__tstate); | |
27371 | if (PyErr_Occurred()) SWIG_fail; | |
27372 | } | |
27373 | Py_INCREF(Py_None); resultobj = Py_None; | |
27374 | { | |
27375 | if (temp2) | |
27376 | delete arg2; | |
27377 | } | |
27378 | return resultobj; | |
27379 | fail: | |
27380 | { | |
27381 | if (temp2) | |
27382 | delete arg2; | |
27383 | } | |
27384 | return NULL; | |
27385 | } | |
27386 | ||
27387 | ||
27388 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27389 | PyObject *resultobj; | |
27390 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27391 | wxString *arg2 = 0 ; | |
27392 | bool temp2 = False ; | |
27393 | PyObject * obj0 = 0 ; | |
27394 | PyObject * obj1 = 0 ; | |
27395 | char *kwnames[] = { | |
27396 | (char *) "self",(char *) "text", NULL | |
27397 | }; | |
27398 | ||
27399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
27400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27402 | { | |
27403 | arg2 = wxString_in_helper(obj1); | |
27404 | if (arg2 == NULL) SWIG_fail; | |
27405 | temp2 = True; | |
27406 | } | |
27407 | { | |
27408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27409 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
27410 | ||
27411 | wxPyEndAllowThreads(__tstate); | |
27412 | if (PyErr_Occurred()) SWIG_fail; | |
27413 | } | |
27414 | Py_INCREF(Py_None); resultobj = Py_None; | |
27415 | { | |
27416 | if (temp2) | |
27417 | delete arg2; | |
27418 | } | |
27419 | return resultobj; | |
27420 | fail: | |
27421 | { | |
27422 | if (temp2) | |
27423 | delete arg2; | |
27424 | } | |
27425 | return NULL; | |
27426 | } | |
27427 | ||
27428 | ||
27429 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27430 | PyObject *resultobj; | |
27431 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27432 | wxString result; | |
27433 | PyObject * obj0 = 0 ; | |
27434 | char *kwnames[] = { | |
27435 | (char *) "self", NULL | |
27436 | }; | |
27437 | ||
27438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
27439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27441 | { | |
27442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27443 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
27444 | ||
27445 | wxPyEndAllowThreads(__tstate); | |
27446 | if (PyErr_Occurred()) SWIG_fail; | |
27447 | } | |
27448 | { | |
27449 | #if wxUSE_UNICODE | |
27450 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27451 | #else | |
27452 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27453 | #endif | |
27454 | } | |
27455 | return resultobj; | |
27456 | fail: | |
27457 | return NULL; | |
27458 | } | |
27459 | ||
27460 | ||
27461 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27462 | PyObject *resultobj; | |
27463 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27464 | wxString *arg2 = 0 ; | |
27465 | bool temp2 = False ; | |
27466 | PyObject * obj0 = 0 ; | |
27467 | PyObject * obj1 = 0 ; | |
27468 | char *kwnames[] = { | |
27469 | (char *) "self",(char *) "tip", NULL | |
27470 | }; | |
27471 | ||
27472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
27473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27475 | { | |
27476 | arg2 = wxString_in_helper(obj1); | |
27477 | if (arg2 == NULL) SWIG_fail; | |
27478 | temp2 = True; | |
27479 | } | |
27480 | { | |
27481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27482 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27483 | ||
27484 | wxPyEndAllowThreads(__tstate); | |
27485 | if (PyErr_Occurred()) SWIG_fail; | |
27486 | } | |
27487 | Py_INCREF(Py_None); resultobj = Py_None; | |
27488 | { | |
27489 | if (temp2) | |
27490 | delete arg2; | |
27491 | } | |
27492 | return resultobj; | |
27493 | fail: | |
27494 | { | |
27495 | if (temp2) | |
27496 | delete arg2; | |
27497 | } | |
27498 | return NULL; | |
27499 | } | |
27500 | ||
27501 | ||
27502 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27503 | PyObject *resultobj; | |
27504 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27505 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
27506 | PyObject * obj0 = 0 ; | |
27507 | PyObject * obj1 = 0 ; | |
27508 | char *kwnames[] = { | |
27509 | (char *) "self",(char *) "tip", NULL | |
27510 | }; | |
27511 | ||
27512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
27513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27515 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
27516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27517 | { | |
27518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27519 | (arg1)->SetToolTip(arg2); | |
27520 | ||
27521 | wxPyEndAllowThreads(__tstate); | |
27522 | if (PyErr_Occurred()) SWIG_fail; | |
27523 | } | |
27524 | Py_INCREF(Py_None); resultobj = Py_None; | |
27525 | return resultobj; | |
27526 | fail: | |
27527 | return NULL; | |
27528 | } | |
27529 | ||
27530 | ||
27531 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27532 | PyObject *resultobj; | |
27533 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27534 | wxToolTip *result; | |
27535 | PyObject * obj0 = 0 ; | |
27536 | char *kwnames[] = { | |
27537 | (char *) "self", NULL | |
27538 | }; | |
27539 | ||
27540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
27541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27543 | { | |
27544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27545 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
27546 | ||
27547 | wxPyEndAllowThreads(__tstate); | |
27548 | if (PyErr_Occurred()) SWIG_fail; | |
27549 | } | |
27550 | { | |
27551 | resultobj = wxPyMake_wxObject(result); | |
27552 | } | |
27553 | return resultobj; | |
27554 | fail: | |
27555 | return NULL; | |
27556 | } | |
27557 | ||
27558 | ||
27559 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27560 | PyObject *resultobj; | |
27561 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27562 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; | |
27563 | PyObject * obj0 = 0 ; | |
27564 | PyObject * obj1 = 0 ; | |
27565 | char *kwnames[] = { | |
27566 | (char *) "self",(char *) "dropTarget", NULL | |
27567 | }; | |
27568 | ||
27569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
27570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27572 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
27573 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27574 | { | |
27575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27576 | (arg1)->SetDropTarget(arg2); | |
27577 | ||
27578 | wxPyEndAllowThreads(__tstate); | |
27579 | if (PyErr_Occurred()) SWIG_fail; | |
27580 | } | |
27581 | Py_INCREF(Py_None); resultobj = Py_None; | |
27582 | return resultobj; | |
27583 | fail: | |
27584 | return NULL; | |
27585 | } | |
27586 | ||
27587 | ||
27588 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27589 | PyObject *resultobj; | |
27590 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27591 | wxPyDropTarget *result; | |
27592 | PyObject * obj0 = 0 ; | |
27593 | char *kwnames[] = { | |
27594 | (char *) "self", NULL | |
27595 | }; | |
27596 | ||
27597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
27598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27600 | { | |
27601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27602 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
27603 | ||
27604 | wxPyEndAllowThreads(__tstate); | |
27605 | if (PyErr_Occurred()) SWIG_fail; | |
27606 | } | |
27607 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); | |
27608 | return resultobj; | |
27609 | fail: | |
27610 | return NULL; | |
27611 | } | |
27612 | ||
27613 | ||
27614 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27615 | PyObject *resultobj; | |
27616 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27617 | bool arg2 ; | |
27618 | PyObject * obj0 = 0 ; | |
27619 | PyObject * obj1 = 0 ; | |
27620 | char *kwnames[] = { | |
27621 | (char *) "self",(char *) "accept", NULL | |
27622 | }; | |
27623 | ||
27624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
27625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27627 | arg2 = (bool) SWIG_AsBool(obj1); | |
27628 | if (PyErr_Occurred()) SWIG_fail; | |
27629 | { | |
27630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27631 | (arg1)->DragAcceptFiles(arg2); | |
27632 | ||
27633 | wxPyEndAllowThreads(__tstate); | |
27634 | if (PyErr_Occurred()) SWIG_fail; | |
27635 | } | |
27636 | Py_INCREF(Py_None); resultobj = Py_None; | |
27637 | return resultobj; | |
27638 | fail: | |
27639 | return NULL; | |
27640 | } | |
27641 | ||
27642 | ||
27643 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27644 | PyObject *resultobj; | |
27645 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27646 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
27647 | PyObject * obj0 = 0 ; | |
27648 | PyObject * obj1 = 0 ; | |
27649 | char *kwnames[] = { | |
27650 | (char *) "self",(char *) "constraints", NULL | |
27651 | }; | |
27652 | ||
27653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
27654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27656 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
27657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27658 | { | |
27659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27660 | (arg1)->SetConstraints(arg2); | |
27661 | ||
27662 | wxPyEndAllowThreads(__tstate); | |
27663 | if (PyErr_Occurred()) SWIG_fail; | |
27664 | } | |
27665 | Py_INCREF(Py_None); resultobj = Py_None; | |
27666 | return resultobj; | |
27667 | fail: | |
27668 | return NULL; | |
27669 | } | |
27670 | ||
27671 | ||
27672 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27673 | PyObject *resultobj; | |
27674 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27675 | wxLayoutConstraints *result; | |
27676 | PyObject * obj0 = 0 ; | |
27677 | char *kwnames[] = { | |
27678 | (char *) "self", NULL | |
27679 | }; | |
27680 | ||
27681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
27682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27684 | { | |
27685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27686 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
27687 | ||
27688 | wxPyEndAllowThreads(__tstate); | |
27689 | if (PyErr_Occurred()) SWIG_fail; | |
27690 | } | |
27691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); | |
27692 | return resultobj; | |
27693 | fail: | |
27694 | return NULL; | |
27695 | } | |
27696 | ||
27697 | ||
27698 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27699 | PyObject *resultobj; | |
27700 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27701 | bool arg2 ; | |
27702 | PyObject * obj0 = 0 ; | |
27703 | PyObject * obj1 = 0 ; | |
27704 | char *kwnames[] = { | |
27705 | (char *) "self",(char *) "autoLayout", NULL | |
27706 | }; | |
27707 | ||
27708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
27709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27711 | arg2 = (bool) SWIG_AsBool(obj1); | |
27712 | if (PyErr_Occurred()) SWIG_fail; | |
27713 | { | |
27714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27715 | (arg1)->SetAutoLayout(arg2); | |
27716 | ||
27717 | wxPyEndAllowThreads(__tstate); | |
27718 | if (PyErr_Occurred()) SWIG_fail; | |
27719 | } | |
27720 | Py_INCREF(Py_None); resultobj = Py_None; | |
27721 | return resultobj; | |
27722 | fail: | |
27723 | return NULL; | |
27724 | } | |
27725 | ||
27726 | ||
27727 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27728 | PyObject *resultobj; | |
27729 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27730 | bool result; | |
27731 | PyObject * obj0 = 0 ; | |
27732 | char *kwnames[] = { | |
27733 | (char *) "self", NULL | |
27734 | }; | |
27735 | ||
27736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
27737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27739 | { | |
27740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27741 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
27742 | ||
27743 | wxPyEndAllowThreads(__tstate); | |
27744 | if (PyErr_Occurred()) SWIG_fail; | |
27745 | } | |
27746 | { | |
27747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27748 | } | |
27749 | return resultobj; | |
27750 | fail: | |
27751 | return NULL; | |
27752 | } | |
27753 | ||
27754 | ||
27755 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27756 | PyObject *resultobj; | |
27757 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27758 | bool result; | |
27759 | PyObject * obj0 = 0 ; | |
27760 | char *kwnames[] = { | |
27761 | (char *) "self", NULL | |
27762 | }; | |
27763 | ||
27764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
27765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27767 | { | |
27768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27769 | result = (bool)(arg1)->Layout(); | |
27770 | ||
27771 | wxPyEndAllowThreads(__tstate); | |
27772 | if (PyErr_Occurred()) SWIG_fail; | |
27773 | } | |
27774 | { | |
27775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27776 | } | |
27777 | return resultobj; | |
27778 | fail: | |
27779 | return NULL; | |
27780 | } | |
27781 | ||
27782 | ||
27783 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27784 | PyObject *resultobj; | |
27785 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27786 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27787 | bool arg3 = (bool) True ; | |
27788 | PyObject * obj0 = 0 ; | |
27789 | PyObject * obj1 = 0 ; | |
27790 | PyObject * obj2 = 0 ; | |
27791 | char *kwnames[] = { | |
27792 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27793 | }; | |
27794 | ||
27795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27798 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27800 | if (obj2) { | |
27801 | arg3 = (bool) SWIG_AsBool(obj2); | |
27802 | if (PyErr_Occurred()) SWIG_fail; | |
27803 | } | |
27804 | { | |
27805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27806 | (arg1)->SetSizer(arg2,arg3); | |
27807 | ||
27808 | wxPyEndAllowThreads(__tstate); | |
27809 | if (PyErr_Occurred()) SWIG_fail; | |
27810 | } | |
27811 | Py_INCREF(Py_None); resultobj = Py_None; | |
27812 | return resultobj; | |
27813 | fail: | |
27814 | return NULL; | |
27815 | } | |
27816 | ||
27817 | ||
27818 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27819 | PyObject *resultobj; | |
27820 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27821 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27822 | bool arg3 = (bool) True ; | |
27823 | PyObject * obj0 = 0 ; | |
27824 | PyObject * obj1 = 0 ; | |
27825 | PyObject * obj2 = 0 ; | |
27826 | char *kwnames[] = { | |
27827 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27828 | }; | |
27829 | ||
27830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27833 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27835 | if (obj2) { | |
27836 | arg3 = (bool) SWIG_AsBool(obj2); | |
27837 | if (PyErr_Occurred()) SWIG_fail; | |
27838 | } | |
27839 | { | |
27840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27841 | (arg1)->SetSizerAndFit(arg2,arg3); | |
27842 | ||
27843 | wxPyEndAllowThreads(__tstate); | |
27844 | if (PyErr_Occurred()) SWIG_fail; | |
27845 | } | |
27846 | Py_INCREF(Py_None); resultobj = Py_None; | |
27847 | return resultobj; | |
27848 | fail: | |
27849 | return NULL; | |
27850 | } | |
27851 | ||
27852 | ||
27853 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27854 | PyObject *resultobj; | |
27855 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27856 | wxSizer *result; | |
27857 | PyObject * obj0 = 0 ; | |
27858 | char *kwnames[] = { | |
27859 | (char *) "self", NULL | |
27860 | }; | |
27861 | ||
27862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
27863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27865 | { | |
27866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27867 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
27868 | ||
27869 | wxPyEndAllowThreads(__tstate); | |
27870 | if (PyErr_Occurred()) SWIG_fail; | |
27871 | } | |
27872 | { | |
27873 | resultobj = wxPyMake_wxSizer(result); | |
27874 | } | |
27875 | return resultobj; | |
27876 | fail: | |
27877 | return NULL; | |
27878 | } | |
27879 | ||
27880 | ||
27881 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27882 | PyObject *resultobj; | |
27883 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27884 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27885 | PyObject * obj0 = 0 ; | |
27886 | PyObject * obj1 = 0 ; | |
27887 | char *kwnames[] = { | |
27888 | (char *) "self",(char *) "sizer", NULL | |
27889 | }; | |
27890 | ||
27891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
27892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27894 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27896 | { | |
27897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27898 | (arg1)->SetContainingSizer(arg2); | |
27899 | ||
27900 | wxPyEndAllowThreads(__tstate); | |
27901 | if (PyErr_Occurred()) SWIG_fail; | |
27902 | } | |
27903 | Py_INCREF(Py_None); resultobj = Py_None; | |
27904 | return resultobj; | |
27905 | fail: | |
27906 | return NULL; | |
27907 | } | |
27908 | ||
27909 | ||
27910 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27911 | PyObject *resultobj; | |
27912 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27913 | wxSizer *result; | |
27914 | PyObject * obj0 = 0 ; | |
27915 | char *kwnames[] = { | |
27916 | (char *) "self", NULL | |
27917 | }; | |
27918 | ||
27919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
27920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27922 | { | |
27923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27924 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
27925 | ||
27926 | wxPyEndAllowThreads(__tstate); | |
27927 | if (PyErr_Occurred()) SWIG_fail; | |
27928 | } | |
27929 | { | |
27930 | resultobj = wxPyMake_wxSizer(result); | |
27931 | } | |
27932 | return resultobj; | |
27933 | fail: | |
27934 | return NULL; | |
27935 | } | |
27936 | ||
27937 | ||
27938 | static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27939 | PyObject *resultobj; | |
27940 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27941 | PyObject * obj0 = 0 ; | |
27942 | char *kwnames[] = { | |
27943 | (char *) "self", NULL | |
27944 | }; | |
27945 | ||
27946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
27947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27949 | { | |
27950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27951 | (arg1)->InheritAttributes(); | |
27952 | ||
27953 | wxPyEndAllowThreads(__tstate); | |
27954 | if (PyErr_Occurred()) SWIG_fail; | |
27955 | } | |
27956 | Py_INCREF(Py_None); resultobj = Py_None; | |
27957 | return resultobj; | |
27958 | fail: | |
27959 | return NULL; | |
27960 | } | |
27961 | ||
27962 | ||
27963 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27964 | PyObject *resultobj; | |
27965 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27966 | bool result; | |
27967 | PyObject * obj0 = 0 ; | |
27968 | char *kwnames[] = { | |
27969 | (char *) "self", NULL | |
27970 | }; | |
27971 | ||
27972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
27973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27975 | { | |
27976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27977 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
27978 | ||
27979 | wxPyEndAllowThreads(__tstate); | |
27980 | if (PyErr_Occurred()) SWIG_fail; | |
27981 | } | |
27982 | { | |
27983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27984 | } | |
27985 | return resultobj; | |
27986 | fail: | |
27987 | return NULL; | |
27988 | } | |
27989 | ||
27990 | ||
27991 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
27992 | PyObject *obj; | |
27993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27994 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
27995 | Py_INCREF(obj); | |
27996 | return Py_BuildValue((char *)""); | |
27997 | } | |
27998 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27999 | PyObject *resultobj; | |
28000 | long arg1 ; | |
28001 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28002 | wxWindow *result; | |
28003 | PyObject * obj0 = 0 ; | |
28004 | PyObject * obj1 = 0 ; | |
28005 | char *kwnames[] = { | |
28006 | (char *) "id",(char *) "parent", NULL | |
28007 | }; | |
28008 | ||
28009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
28010 | arg1 = (long) SWIG_AsLong(obj0); | |
28011 | if (PyErr_Occurred()) SWIG_fail; | |
28012 | if (obj1) { | |
28013 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28015 | } | |
28016 | { | |
28017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28018 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
28019 | ||
28020 | wxPyEndAllowThreads(__tstate); | |
28021 | if (PyErr_Occurred()) SWIG_fail; | |
28022 | } | |
28023 | { | |
28024 | resultobj = wxPyMake_wxObject(result); | |
28025 | } | |
28026 | return resultobj; | |
28027 | fail: | |
28028 | return NULL; | |
28029 | } | |
28030 | ||
28031 | ||
28032 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28033 | PyObject *resultobj; | |
28034 | wxString *arg1 = 0 ; | |
28035 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28036 | wxWindow *result; | |
28037 | bool temp1 = False ; | |
28038 | PyObject * obj0 = 0 ; | |
28039 | PyObject * obj1 = 0 ; | |
28040 | char *kwnames[] = { | |
28041 | (char *) "name",(char *) "parent", NULL | |
28042 | }; | |
28043 | ||
28044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
28045 | { | |
28046 | arg1 = wxString_in_helper(obj0); | |
28047 | if (arg1 == NULL) SWIG_fail; | |
28048 | temp1 = True; | |
28049 | } | |
28050 | if (obj1) { | |
28051 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28053 | } | |
28054 | { | |
28055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28056 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
28057 | ||
28058 | wxPyEndAllowThreads(__tstate); | |
28059 | if (PyErr_Occurred()) SWIG_fail; | |
28060 | } | |
28061 | { | |
28062 | resultobj = wxPyMake_wxObject(result); | |
28063 | } | |
28064 | { | |
28065 | if (temp1) | |
28066 | delete arg1; | |
28067 | } | |
28068 | return resultobj; | |
28069 | fail: | |
28070 | { | |
28071 | if (temp1) | |
28072 | delete arg1; | |
28073 | } | |
28074 | return NULL; | |
28075 | } | |
28076 | ||
28077 | ||
28078 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28079 | PyObject *resultobj; | |
28080 | wxString *arg1 = 0 ; | |
28081 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28082 | wxWindow *result; | |
28083 | bool temp1 = False ; | |
28084 | PyObject * obj0 = 0 ; | |
28085 | PyObject * obj1 = 0 ; | |
28086 | char *kwnames[] = { | |
28087 | (char *) "label",(char *) "parent", NULL | |
28088 | }; | |
28089 | ||
28090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
28091 | { | |
28092 | arg1 = wxString_in_helper(obj0); | |
28093 | if (arg1 == NULL) SWIG_fail; | |
28094 | temp1 = True; | |
28095 | } | |
28096 | if (obj1) { | |
28097 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28099 | } | |
28100 | { | |
28101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28102 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
28103 | ||
28104 | wxPyEndAllowThreads(__tstate); | |
28105 | if (PyErr_Occurred()) SWIG_fail; | |
28106 | } | |
28107 | { | |
28108 | resultobj = wxPyMake_wxObject(result); | |
28109 | } | |
28110 | { | |
28111 | if (temp1) | |
28112 | delete arg1; | |
28113 | } | |
28114 | return resultobj; | |
28115 | fail: | |
28116 | { | |
28117 | if (temp1) | |
28118 | delete arg1; | |
28119 | } | |
28120 | return NULL; | |
28121 | } | |
28122 | ||
28123 | ||
28124 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28125 | PyObject *resultobj; | |
28126 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28127 | unsigned long arg2 ; | |
28128 | wxWindow *result; | |
28129 | PyObject * obj0 = 0 ; | |
28130 | PyObject * obj1 = 0 ; | |
28131 | char *kwnames[] = { | |
28132 | (char *) "parent",(char *) "_hWnd", NULL | |
28133 | }; | |
28134 | ||
28135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; | |
28136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28138 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
28139 | if (PyErr_Occurred()) SWIG_fail; | |
28140 | { | |
28141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28142 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); | |
28143 | ||
28144 | wxPyEndAllowThreads(__tstate); | |
28145 | if (PyErr_Occurred()) SWIG_fail; | |
28146 | } | |
28147 | { | |
28148 | resultobj = wxPyMake_wxObject(result); | |
28149 | } | |
28150 | return resultobj; | |
28151 | fail: | |
28152 | return NULL; | |
28153 | } | |
28154 | ||
28155 | ||
28156 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28157 | PyObject *resultobj; | |
28158 | wxValidator *result; | |
28159 | char *kwnames[] = { | |
28160 | NULL | |
28161 | }; | |
28162 | ||
28163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
28164 | { | |
28165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28166 | result = (wxValidator *)new wxValidator(); | |
28167 | ||
28168 | wxPyEndAllowThreads(__tstate); | |
28169 | if (PyErr_Occurred()) SWIG_fail; | |
28170 | } | |
28171 | { | |
28172 | resultobj = wxPyMake_wxObject(result); | |
28173 | } | |
28174 | return resultobj; | |
28175 | fail: | |
28176 | return NULL; | |
28177 | } | |
28178 | ||
28179 | ||
28180 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28181 | PyObject *resultobj; | |
28182 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28183 | wxValidator *result; | |
28184 | PyObject * obj0 = 0 ; | |
28185 | char *kwnames[] = { | |
28186 | (char *) "self", NULL | |
28187 | }; | |
28188 | ||
28189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
28190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28192 | { | |
28193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28194 | result = (wxValidator *)(arg1)->Clone(); | |
28195 | ||
28196 | wxPyEndAllowThreads(__tstate); | |
28197 | if (PyErr_Occurred()) SWIG_fail; | |
28198 | } | |
28199 | { | |
28200 | resultobj = wxPyMake_wxObject(result); | |
28201 | } | |
28202 | return resultobj; | |
28203 | fail: | |
28204 | return NULL; | |
28205 | } | |
28206 | ||
28207 | ||
28208 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28209 | PyObject *resultobj; | |
28210 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28211 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28212 | bool result; | |
28213 | PyObject * obj0 = 0 ; | |
28214 | PyObject * obj1 = 0 ; | |
28215 | char *kwnames[] = { | |
28216 | (char *) "self",(char *) "parent", NULL | |
28217 | }; | |
28218 | ||
28219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
28220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28222 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28224 | { | |
28225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28226 | result = (bool)(arg1)->Validate(arg2); | |
28227 | ||
28228 | wxPyEndAllowThreads(__tstate); | |
28229 | if (PyErr_Occurred()) SWIG_fail; | |
28230 | } | |
28231 | { | |
28232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28233 | } | |
28234 | return resultobj; | |
28235 | fail: | |
28236 | return NULL; | |
28237 | } | |
28238 | ||
28239 | ||
28240 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28241 | PyObject *resultobj; | |
28242 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28243 | bool result; | |
28244 | PyObject * obj0 = 0 ; | |
28245 | char *kwnames[] = { | |
28246 | (char *) "self", NULL | |
28247 | }; | |
28248 | ||
28249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
28250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28252 | { | |
28253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28254 | result = (bool)(arg1)->TransferToWindow(); | |
28255 | ||
28256 | wxPyEndAllowThreads(__tstate); | |
28257 | if (PyErr_Occurred()) SWIG_fail; | |
28258 | } | |
28259 | { | |
28260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28261 | } | |
28262 | return resultobj; | |
28263 | fail: | |
28264 | return NULL; | |
28265 | } | |
28266 | ||
28267 | ||
28268 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28269 | PyObject *resultobj; | |
28270 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28271 | bool result; | |
28272 | PyObject * obj0 = 0 ; | |
28273 | char *kwnames[] = { | |
28274 | (char *) "self", NULL | |
28275 | }; | |
28276 | ||
28277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
28278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28280 | { | |
28281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28282 | result = (bool)(arg1)->TransferFromWindow(); | |
28283 | ||
28284 | wxPyEndAllowThreads(__tstate); | |
28285 | if (PyErr_Occurred()) SWIG_fail; | |
28286 | } | |
28287 | { | |
28288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28289 | } | |
28290 | return resultobj; | |
28291 | fail: | |
28292 | return NULL; | |
28293 | } | |
28294 | ||
28295 | ||
28296 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28297 | PyObject *resultobj; | |
28298 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28299 | wxWindow *result; | |
28300 | PyObject * obj0 = 0 ; | |
28301 | char *kwnames[] = { | |
28302 | (char *) "self", NULL | |
28303 | }; | |
28304 | ||
28305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
28306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28308 | { | |
28309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28310 | result = (wxWindow *)(arg1)->GetWindow(); | |
28311 | ||
28312 | wxPyEndAllowThreads(__tstate); | |
28313 | if (PyErr_Occurred()) SWIG_fail; | |
28314 | } | |
28315 | { | |
28316 | resultobj = wxPyMake_wxObject(result); | |
28317 | } | |
28318 | return resultobj; | |
28319 | fail: | |
28320 | return NULL; | |
28321 | } | |
28322 | ||
28323 | ||
28324 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28325 | PyObject *resultobj; | |
28326 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28327 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28328 | PyObject * obj0 = 0 ; | |
28329 | PyObject * obj1 = 0 ; | |
28330 | char *kwnames[] = { | |
28331 | (char *) "self",(char *) "window", NULL | |
28332 | }; | |
28333 | ||
28334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
28335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28339 | { | |
28340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28341 | (arg1)->SetWindow(arg2); | |
28342 | ||
28343 | wxPyEndAllowThreads(__tstate); | |
28344 | if (PyErr_Occurred()) SWIG_fail; | |
28345 | } | |
28346 | Py_INCREF(Py_None); resultobj = Py_None; | |
28347 | return resultobj; | |
28348 | fail: | |
28349 | return NULL; | |
28350 | } | |
28351 | ||
28352 | ||
28353 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28354 | PyObject *resultobj; | |
28355 | bool result; | |
28356 | char *kwnames[] = { | |
28357 | NULL | |
28358 | }; | |
28359 | ||
28360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
28361 | { | |
28362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28363 | result = (bool)wxValidator::IsSilent(); | |
28364 | ||
28365 | wxPyEndAllowThreads(__tstate); | |
28366 | if (PyErr_Occurred()) SWIG_fail; | |
28367 | } | |
28368 | { | |
28369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28370 | } | |
28371 | return resultobj; | |
28372 | fail: | |
28373 | return NULL; | |
28374 | } | |
28375 | ||
28376 | ||
28377 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28378 | PyObject *resultobj; | |
28379 | int arg1 = (int) True ; | |
28380 | PyObject * obj0 = 0 ; | |
28381 | char *kwnames[] = { | |
28382 | (char *) "doIt", NULL | |
28383 | }; | |
28384 | ||
28385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; | |
28386 | if (obj0) { | |
28387 | arg1 = (int) SWIG_AsInt(obj0); | |
28388 | if (PyErr_Occurred()) SWIG_fail; | |
28389 | } | |
28390 | { | |
28391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28392 | wxValidator::SetBellOnError(arg1); | |
28393 | ||
28394 | wxPyEndAllowThreads(__tstate); | |
28395 | if (PyErr_Occurred()) SWIG_fail; | |
28396 | } | |
28397 | Py_INCREF(Py_None); resultobj = Py_None; | |
28398 | return resultobj; | |
28399 | fail: | |
28400 | return NULL; | |
28401 | } | |
28402 | ||
28403 | ||
28404 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
28405 | PyObject *obj; | |
28406 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28407 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
28408 | Py_INCREF(obj); | |
28409 | return Py_BuildValue((char *)""); | |
28410 | } | |
28411 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28412 | PyObject *resultobj; | |
28413 | wxPyValidator *result; | |
28414 | char *kwnames[] = { | |
28415 | NULL | |
28416 | }; | |
28417 | ||
28418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
28419 | { | |
28420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28421 | result = (wxPyValidator *)new wxPyValidator(); | |
28422 | ||
28423 | wxPyEndAllowThreads(__tstate); | |
28424 | if (PyErr_Occurred()) SWIG_fail; | |
28425 | } | |
28426 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); | |
28427 | return resultobj; | |
28428 | fail: | |
28429 | return NULL; | |
28430 | } | |
28431 | ||
28432 | ||
28433 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28434 | PyObject *resultobj; | |
28435 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
28436 | PyObject *arg2 = (PyObject *) 0 ; | |
28437 | PyObject *arg3 = (PyObject *) 0 ; | |
28438 | int arg4 = (int) True ; | |
28439 | PyObject * obj0 = 0 ; | |
28440 | PyObject * obj1 = 0 ; | |
28441 | PyObject * obj2 = 0 ; | |
28442 | PyObject * obj3 = 0 ; | |
28443 | char *kwnames[] = { | |
28444 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
28445 | }; | |
28446 | ||
28447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, | |
28449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28450 | arg2 = obj1; | |
28451 | arg3 = obj2; | |
28452 | if (obj3) { | |
28453 | arg4 = (int) SWIG_AsInt(obj3); | |
28454 | if (PyErr_Occurred()) SWIG_fail; | |
28455 | } | |
28456 | { | |
28457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28458 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
28459 | ||
28460 | wxPyEndAllowThreads(__tstate); | |
28461 | if (PyErr_Occurred()) SWIG_fail; | |
28462 | } | |
28463 | Py_INCREF(Py_None); resultobj = Py_None; | |
28464 | return resultobj; | |
28465 | fail: | |
28466 | return NULL; | |
28467 | } | |
28468 | ||
28469 | ||
28470 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
28471 | PyObject *obj; | |
28472 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28473 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
28474 | Py_INCREF(obj); | |
28475 | return Py_BuildValue((char *)""); | |
28476 | } | |
28477 | static int _wrap_DefaultValidator_set(PyObject *_val) { | |
28478 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); | |
28479 | return 1; | |
28480 | } | |
28481 | ||
28482 | ||
28483 | static PyObject *_wrap_DefaultValidator_get() { | |
28484 | PyObject *pyobj; | |
28485 | ||
28486 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); | |
28487 | return pyobj; | |
28488 | } | |
28489 | ||
28490 | ||
28491 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28492 | PyObject *resultobj; | |
28493 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
28494 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
28495 | long arg2 = (long) 0 ; | |
28496 | wxMenu *result; | |
28497 | bool temp1 = False ; | |
28498 | PyObject * obj0 = 0 ; | |
28499 | PyObject * obj1 = 0 ; | |
28500 | char *kwnames[] = { | |
28501 | (char *) "title",(char *) "style", NULL | |
28502 | }; | |
28503 | ||
28504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; | |
28505 | if (obj0) { | |
28506 | { | |
28507 | arg1 = wxString_in_helper(obj0); | |
28508 | if (arg1 == NULL) SWIG_fail; | |
28509 | temp1 = True; | |
28510 | } | |
28511 | } | |
28512 | if (obj1) { | |
28513 | arg2 = (long) SWIG_AsLong(obj1); | |
28514 | if (PyErr_Occurred()) SWIG_fail; | |
28515 | } | |
28516 | { | |
28517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28518 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
28519 | ||
28520 | wxPyEndAllowThreads(__tstate); | |
28521 | if (PyErr_Occurred()) SWIG_fail; | |
28522 | } | |
28523 | { | |
28524 | resultobj = wxPyMake_wxObject(result); | |
28525 | } | |
28526 | { | |
28527 | if (temp1) | |
28528 | delete arg1; | |
28529 | } | |
28530 | return resultobj; | |
28531 | fail: | |
28532 | { | |
28533 | if (temp1) | |
28534 | delete arg1; | |
28535 | } | |
28536 | return NULL; | |
28537 | } | |
28538 | ||
28539 | ||
28540 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28541 | PyObject *resultobj; | |
28542 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28543 | int arg2 ; | |
28544 | wxString *arg3 = 0 ; | |
28545 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28546 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28547 | int arg5 = (int) wxITEM_NORMAL ; | |
28548 | wxMenuItem *result; | |
28549 | bool temp3 = False ; | |
28550 | bool temp4 = False ; | |
28551 | PyObject * obj0 = 0 ; | |
28552 | PyObject * obj1 = 0 ; | |
28553 | PyObject * obj2 = 0 ; | |
28554 | PyObject * obj3 = 0 ; | |
28555 | PyObject * obj4 = 0 ; | |
28556 | char *kwnames[] = { | |
28557 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
28558 | }; | |
28559 | ||
28560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28563 | arg2 = (int) SWIG_AsInt(obj1); | |
28564 | if (PyErr_Occurred()) SWIG_fail; | |
28565 | { | |
28566 | arg3 = wxString_in_helper(obj2); | |
28567 | if (arg3 == NULL) SWIG_fail; | |
28568 | temp3 = True; | |
28569 | } | |
28570 | if (obj3) { | |
28571 | { | |
28572 | arg4 = wxString_in_helper(obj3); | |
28573 | if (arg4 == NULL) SWIG_fail; | |
28574 | temp4 = True; | |
28575 | } | |
28576 | } | |
28577 | if (obj4) { | |
28578 | arg5 = (wxItemKind) SWIG_AsInt(obj4); | |
28579 | if (PyErr_Occurred()) SWIG_fail; | |
28580 | } | |
28581 | { | |
28582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28583 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
28584 | ||
28585 | wxPyEndAllowThreads(__tstate); | |
28586 | if (PyErr_Occurred()) SWIG_fail; | |
28587 | } | |
28588 | { | |
28589 | resultobj = wxPyMake_wxObject(result); | |
28590 | } | |
28591 | { | |
28592 | if (temp3) | |
28593 | delete arg3; | |
28594 | } | |
28595 | { | |
28596 | if (temp4) | |
28597 | delete arg4; | |
28598 | } | |
28599 | return resultobj; | |
28600 | fail: | |
28601 | { | |
28602 | if (temp3) | |
28603 | delete arg3; | |
28604 | } | |
28605 | { | |
28606 | if (temp4) | |
28607 | delete arg4; | |
28608 | } | |
28609 | return NULL; | |
28610 | } | |
28611 | ||
28612 | ||
28613 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28614 | PyObject *resultobj; | |
28615 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28616 | wxMenuItem *result; | |
28617 | PyObject * obj0 = 0 ; | |
28618 | char *kwnames[] = { | |
28619 | (char *) "self", NULL | |
28620 | }; | |
28621 | ||
28622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
28623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28625 | { | |
28626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28627 | result = (wxMenuItem *)(arg1)->AppendSeparator(); | |
28628 | ||
28629 | wxPyEndAllowThreads(__tstate); | |
28630 | if (PyErr_Occurred()) SWIG_fail; | |
28631 | } | |
28632 | { | |
28633 | resultobj = wxPyMake_wxObject(result); | |
28634 | } | |
28635 | return resultobj; | |
28636 | fail: | |
28637 | return NULL; | |
28638 | } | |
28639 | ||
28640 | ||
28641 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28642 | PyObject *resultobj; | |
28643 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28644 | int arg2 ; | |
28645 | wxString *arg3 = 0 ; | |
28646 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28647 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28648 | wxMenuItem *result; | |
28649 | bool temp3 = False ; | |
28650 | bool temp4 = False ; | |
28651 | PyObject * obj0 = 0 ; | |
28652 | PyObject * obj1 = 0 ; | |
28653 | PyObject * obj2 = 0 ; | |
28654 | PyObject * obj3 = 0 ; | |
28655 | char *kwnames[] = { | |
28656 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
28657 | }; | |
28658 | ||
28659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28662 | arg2 = (int) SWIG_AsInt(obj1); | |
28663 | if (PyErr_Occurred()) SWIG_fail; | |
28664 | { | |
28665 | arg3 = wxString_in_helper(obj2); | |
28666 | if (arg3 == NULL) SWIG_fail; | |
28667 | temp3 = True; | |
28668 | } | |
28669 | if (obj3) { | |
28670 | { | |
28671 | arg4 = wxString_in_helper(obj3); | |
28672 | if (arg4 == NULL) SWIG_fail; | |
28673 | temp4 = True; | |
28674 | } | |
28675 | } | |
28676 | { | |
28677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28678 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
28679 | ||
28680 | wxPyEndAllowThreads(__tstate); | |
28681 | if (PyErr_Occurred()) SWIG_fail; | |
28682 | } | |
28683 | { | |
28684 | resultobj = wxPyMake_wxObject(result); | |
28685 | } | |
28686 | { | |
28687 | if (temp3) | |
28688 | delete arg3; | |
28689 | } | |
28690 | { | |
28691 | if (temp4) | |
28692 | delete arg4; | |
28693 | } | |
28694 | return resultobj; | |
28695 | fail: | |
28696 | { | |
28697 | if (temp3) | |
28698 | delete arg3; | |
28699 | } | |
28700 | { | |
28701 | if (temp4) | |
28702 | delete arg4; | |
28703 | } | |
28704 | return NULL; | |
28705 | } | |
28706 | ||
28707 | ||
28708 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28709 | PyObject *resultobj; | |
28710 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28711 | int arg2 ; | |
28712 | wxString *arg3 = 0 ; | |
28713 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28714 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28715 | wxMenuItem *result; | |
28716 | bool temp3 = False ; | |
28717 | bool temp4 = False ; | |
28718 | PyObject * obj0 = 0 ; | |
28719 | PyObject * obj1 = 0 ; | |
28720 | PyObject * obj2 = 0 ; | |
28721 | PyObject * obj3 = 0 ; | |
28722 | char *kwnames[] = { | |
28723 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
28724 | }; | |
28725 | ||
28726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28729 | arg2 = (int) SWIG_AsInt(obj1); | |
28730 | if (PyErr_Occurred()) SWIG_fail; | |
28731 | { | |
28732 | arg3 = wxString_in_helper(obj2); | |
28733 | if (arg3 == NULL) SWIG_fail; | |
28734 | temp3 = True; | |
28735 | } | |
28736 | if (obj3) { | |
28737 | { | |
28738 | arg4 = wxString_in_helper(obj3); | |
28739 | if (arg4 == NULL) SWIG_fail; | |
28740 | temp4 = True; | |
28741 | } | |
28742 | } | |
28743 | { | |
28744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28745 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
28746 | ||
28747 | wxPyEndAllowThreads(__tstate); | |
28748 | if (PyErr_Occurred()) SWIG_fail; | |
28749 | } | |
28750 | { | |
28751 | resultobj = wxPyMake_wxObject(result); | |
28752 | } | |
28753 | { | |
28754 | if (temp3) | |
28755 | delete arg3; | |
28756 | } | |
28757 | { | |
28758 | if (temp4) | |
28759 | delete arg4; | |
28760 | } | |
28761 | return resultobj; | |
28762 | fail: | |
28763 | { | |
28764 | if (temp3) | |
28765 | delete arg3; | |
28766 | } | |
28767 | { | |
28768 | if (temp4) | |
28769 | delete arg4; | |
28770 | } | |
28771 | return NULL; | |
28772 | } | |
28773 | ||
28774 | ||
28775 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28776 | PyObject *resultobj; | |
28777 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28778 | int arg2 ; | |
28779 | wxString *arg3 = 0 ; | |
28780 | wxMenu *arg4 = (wxMenu *) 0 ; | |
28781 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28782 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
28783 | wxMenuItem *result; | |
28784 | bool temp3 = False ; | |
28785 | bool temp5 = False ; | |
28786 | PyObject * obj0 = 0 ; | |
28787 | PyObject * obj1 = 0 ; | |
28788 | PyObject * obj2 = 0 ; | |
28789 | PyObject * obj3 = 0 ; | |
28790 | PyObject * obj4 = 0 ; | |
28791 | char *kwnames[] = { | |
28792 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
28793 | }; | |
28794 | ||
28795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28798 | arg2 = (int) SWIG_AsInt(obj1); | |
28799 | if (PyErr_Occurred()) SWIG_fail; | |
28800 | { | |
28801 | arg3 = wxString_in_helper(obj2); | |
28802 | if (arg3 == NULL) SWIG_fail; | |
28803 | temp3 = True; | |
28804 | } | |
28805 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
28806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28807 | if (obj4) { | |
28808 | { | |
28809 | arg5 = wxString_in_helper(obj4); | |
28810 | if (arg5 == NULL) SWIG_fail; | |
28811 | temp5 = True; | |
28812 | } | |
28813 | } | |
28814 | { | |
28815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28816 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
28817 | ||
28818 | wxPyEndAllowThreads(__tstate); | |
28819 | if (PyErr_Occurred()) SWIG_fail; | |
28820 | } | |
28821 | { | |
28822 | resultobj = wxPyMake_wxObject(result); | |
28823 | } | |
28824 | { | |
28825 | if (temp3) | |
28826 | delete arg3; | |
28827 | } | |
28828 | { | |
28829 | if (temp5) | |
28830 | delete arg5; | |
28831 | } | |
28832 | return resultobj; | |
28833 | fail: | |
28834 | { | |
28835 | if (temp3) | |
28836 | delete arg3; | |
28837 | } | |
28838 | { | |
28839 | if (temp5) | |
28840 | delete arg5; | |
28841 | } | |
28842 | return NULL; | |
28843 | } | |
28844 | ||
28845 | ||
28846 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28847 | PyObject *resultobj; | |
28848 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28849 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28850 | wxMenuItem *result; | |
28851 | PyObject * obj0 = 0 ; | |
28852 | PyObject * obj1 = 0 ; | |
28853 | char *kwnames[] = { | |
28854 | (char *) "self",(char *) "item", NULL | |
28855 | }; | |
28856 | ||
28857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
28858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28860 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28862 | { | |
28863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28864 | result = (wxMenuItem *)(arg1)->Append(arg2); | |
28865 | ||
28866 | wxPyEndAllowThreads(__tstate); | |
28867 | if (PyErr_Occurred()) SWIG_fail; | |
28868 | } | |
28869 | { | |
28870 | resultobj = wxPyMake_wxObject(result); | |
28871 | } | |
28872 | return resultobj; | |
28873 | fail: | |
28874 | return NULL; | |
28875 | } | |
28876 | ||
28877 | ||
28878 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28879 | PyObject *resultobj; | |
28880 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28881 | PyObject * obj0 = 0 ; | |
28882 | char *kwnames[] = { | |
28883 | (char *) "self", NULL | |
28884 | }; | |
28885 | ||
28886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
28887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28889 | { | |
28890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28891 | (arg1)->Break(); | |
28892 | ||
28893 | wxPyEndAllowThreads(__tstate); | |
28894 | if (PyErr_Occurred()) SWIG_fail; | |
28895 | } | |
28896 | Py_INCREF(Py_None); resultobj = Py_None; | |
28897 | return resultobj; | |
28898 | fail: | |
28899 | return NULL; | |
28900 | } | |
28901 | ||
28902 | ||
28903 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28904 | PyObject *resultobj; | |
28905 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28906 | size_t arg2 ; | |
28907 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
28908 | wxMenuItem *result; | |
28909 | PyObject * obj0 = 0 ; | |
28910 | PyObject * obj1 = 0 ; | |
28911 | PyObject * obj2 = 0 ; | |
28912 | char *kwnames[] = { | |
28913 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
28914 | }; | |
28915 | ||
28916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28919 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28920 | if (PyErr_Occurred()) SWIG_fail; | |
28921 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
28922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28923 | { | |
28924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28925 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); | |
28926 | ||
28927 | wxPyEndAllowThreads(__tstate); | |
28928 | if (PyErr_Occurred()) SWIG_fail; | |
28929 | } | |
28930 | { | |
28931 | resultobj = wxPyMake_wxObject(result); | |
28932 | } | |
28933 | return resultobj; | |
28934 | fail: | |
28935 | return NULL; | |
28936 | } | |
28937 | ||
28938 | ||
28939 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28940 | PyObject *resultobj; | |
28941 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28942 | size_t arg2 ; | |
28943 | int arg3 ; | |
28944 | wxString *arg4 = 0 ; | |
28945 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28946 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
28947 | int arg6 = (int) wxITEM_NORMAL ; | |
28948 | wxMenuItem *result; | |
28949 | bool temp4 = False ; | |
28950 | bool temp5 = False ; | |
28951 | PyObject * obj0 = 0 ; | |
28952 | PyObject * obj1 = 0 ; | |
28953 | PyObject * obj2 = 0 ; | |
28954 | PyObject * obj3 = 0 ; | |
28955 | PyObject * obj4 = 0 ; | |
28956 | PyObject * obj5 = 0 ; | |
28957 | char *kwnames[] = { | |
28958 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
28959 | }; | |
28960 | ||
28961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
28962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28964 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28965 | if (PyErr_Occurred()) SWIG_fail; | |
28966 | arg3 = (int) SWIG_AsInt(obj2); | |
28967 | if (PyErr_Occurred()) SWIG_fail; | |
28968 | { | |
28969 | arg4 = wxString_in_helper(obj3); | |
28970 | if (arg4 == NULL) SWIG_fail; | |
28971 | temp4 = True; | |
28972 | } | |
28973 | if (obj4) { | |
28974 | { | |
28975 | arg5 = wxString_in_helper(obj4); | |
28976 | if (arg5 == NULL) SWIG_fail; | |
28977 | temp5 = True; | |
28978 | } | |
28979 | } | |
28980 | if (obj5) { | |
28981 | arg6 = (wxItemKind) SWIG_AsInt(obj5); | |
28982 | if (PyErr_Occurred()) SWIG_fail; | |
28983 | } | |
28984 | { | |
28985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28986 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
28987 | ||
28988 | wxPyEndAllowThreads(__tstate); | |
28989 | if (PyErr_Occurred()) SWIG_fail; | |
28990 | } | |
28991 | { | |
28992 | resultobj = wxPyMake_wxObject(result); | |
28993 | } | |
28994 | { | |
28995 | if (temp4) | |
28996 | delete arg4; | |
28997 | } | |
28998 | { | |
28999 | if (temp5) | |
29000 | delete arg5; | |
29001 | } | |
29002 | return resultobj; | |
29003 | fail: | |
29004 | { | |
29005 | if (temp4) | |
29006 | delete arg4; | |
29007 | } | |
29008 | { | |
29009 | if (temp5) | |
29010 | delete arg5; | |
29011 | } | |
29012 | return NULL; | |
29013 | } | |
29014 | ||
29015 | ||
29016 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29017 | PyObject *resultobj; | |
29018 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29019 | size_t arg2 ; | |
29020 | wxMenuItem *result; | |
29021 | PyObject * obj0 = 0 ; | |
29022 | PyObject * obj1 = 0 ; | |
29023 | char *kwnames[] = { | |
29024 | (char *) "self",(char *) "pos", NULL | |
29025 | }; | |
29026 | ||
29027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
29028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29030 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29031 | if (PyErr_Occurred()) SWIG_fail; | |
29032 | { | |
29033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29034 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); | |
29035 | ||
29036 | wxPyEndAllowThreads(__tstate); | |
29037 | if (PyErr_Occurred()) SWIG_fail; | |
29038 | } | |
29039 | { | |
29040 | resultobj = wxPyMake_wxObject(result); | |
29041 | } | |
29042 | return resultobj; | |
29043 | fail: | |
29044 | return NULL; | |
29045 | } | |
29046 | ||
29047 | ||
29048 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29049 | PyObject *resultobj; | |
29050 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29051 | size_t arg2 ; | |
29052 | int arg3 ; | |
29053 | wxString *arg4 = 0 ; | |
29054 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29055 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29056 | wxMenuItem *result; | |
29057 | bool temp4 = False ; | |
29058 | bool temp5 = False ; | |
29059 | PyObject * obj0 = 0 ; | |
29060 | PyObject * obj1 = 0 ; | |
29061 | PyObject * obj2 = 0 ; | |
29062 | PyObject * obj3 = 0 ; | |
29063 | PyObject * obj4 = 0 ; | |
29064 | char *kwnames[] = { | |
29065 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
29066 | }; | |
29067 | ||
29068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29071 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29072 | if (PyErr_Occurred()) SWIG_fail; | |
29073 | arg3 = (int) SWIG_AsInt(obj2); | |
29074 | if (PyErr_Occurred()) SWIG_fail; | |
29075 | { | |
29076 | arg4 = wxString_in_helper(obj3); | |
29077 | if (arg4 == NULL) SWIG_fail; | |
29078 | temp4 = True; | |
29079 | } | |
29080 | if (obj4) { | |
29081 | { | |
29082 | arg5 = wxString_in_helper(obj4); | |
29083 | if (arg5 == NULL) SWIG_fail; | |
29084 | temp5 = True; | |
29085 | } | |
29086 | } | |
29087 | { | |
29088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29089 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
29090 | ||
29091 | wxPyEndAllowThreads(__tstate); | |
29092 | if (PyErr_Occurred()) SWIG_fail; | |
29093 | } | |
29094 | { | |
29095 | resultobj = wxPyMake_wxObject(result); | |
29096 | } | |
29097 | { | |
29098 | if (temp4) | |
29099 | delete arg4; | |
29100 | } | |
29101 | { | |
29102 | if (temp5) | |
29103 | delete arg5; | |
29104 | } | |
29105 | return resultobj; | |
29106 | fail: | |
29107 | { | |
29108 | if (temp4) | |
29109 | delete arg4; | |
29110 | } | |
29111 | { | |
29112 | if (temp5) | |
29113 | delete arg5; | |
29114 | } | |
29115 | return NULL; | |
29116 | } | |
29117 | ||
29118 | ||
29119 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29120 | PyObject *resultobj; | |
29121 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29122 | size_t arg2 ; | |
29123 | int arg3 ; | |
29124 | wxString *arg4 = 0 ; | |
29125 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29126 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29127 | wxMenuItem *result; | |
29128 | bool temp4 = False ; | |
29129 | bool temp5 = False ; | |
29130 | PyObject * obj0 = 0 ; | |
29131 | PyObject * obj1 = 0 ; | |
29132 | PyObject * obj2 = 0 ; | |
29133 | PyObject * obj3 = 0 ; | |
29134 | PyObject * obj4 = 0 ; | |
29135 | char *kwnames[] = { | |
29136 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
29137 | }; | |
29138 | ||
29139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29142 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29143 | if (PyErr_Occurred()) SWIG_fail; | |
29144 | arg3 = (int) SWIG_AsInt(obj2); | |
29145 | if (PyErr_Occurred()) SWIG_fail; | |
29146 | { | |
29147 | arg4 = wxString_in_helper(obj3); | |
29148 | if (arg4 == NULL) SWIG_fail; | |
29149 | temp4 = True; | |
29150 | } | |
29151 | if (obj4) { | |
29152 | { | |
29153 | arg5 = wxString_in_helper(obj4); | |
29154 | if (arg5 == NULL) SWIG_fail; | |
29155 | temp5 = True; | |
29156 | } | |
29157 | } | |
29158 | { | |
29159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29160 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
29161 | ||
29162 | wxPyEndAllowThreads(__tstate); | |
29163 | if (PyErr_Occurred()) SWIG_fail; | |
29164 | } | |
29165 | { | |
29166 | resultobj = wxPyMake_wxObject(result); | |
29167 | } | |
29168 | { | |
29169 | if (temp4) | |
29170 | delete arg4; | |
29171 | } | |
29172 | { | |
29173 | if (temp5) | |
29174 | delete arg5; | |
29175 | } | |
29176 | return resultobj; | |
29177 | fail: | |
29178 | { | |
29179 | if (temp4) | |
29180 | delete arg4; | |
29181 | } | |
29182 | { | |
29183 | if (temp5) | |
29184 | delete arg5; | |
29185 | } | |
29186 | return NULL; | |
29187 | } | |
29188 | ||
29189 | ||
29190 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29191 | PyObject *resultobj; | |
29192 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29193 | size_t arg2 ; | |
29194 | int arg3 ; | |
29195 | wxString *arg4 = 0 ; | |
29196 | wxMenu *arg5 = (wxMenu *) 0 ; | |
29197 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
29198 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
29199 | wxMenuItem *result; | |
29200 | bool temp4 = False ; | |
29201 | bool temp6 = False ; | |
29202 | PyObject * obj0 = 0 ; | |
29203 | PyObject * obj1 = 0 ; | |
29204 | PyObject * obj2 = 0 ; | |
29205 | PyObject * obj3 = 0 ; | |
29206 | PyObject * obj4 = 0 ; | |
29207 | PyObject * obj5 = 0 ; | |
29208 | char *kwnames[] = { | |
29209 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29210 | }; | |
29211 | ||
29212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29215 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29216 | if (PyErr_Occurred()) SWIG_fail; | |
29217 | arg3 = (int) SWIG_AsInt(obj2); | |
29218 | if (PyErr_Occurred()) SWIG_fail; | |
29219 | { | |
29220 | arg4 = wxString_in_helper(obj3); | |
29221 | if (arg4 == NULL) SWIG_fail; | |
29222 | temp4 = True; | |
29223 | } | |
29224 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, | |
29225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29226 | if (obj5) { | |
29227 | { | |
29228 | arg6 = wxString_in_helper(obj5); | |
29229 | if (arg6 == NULL) SWIG_fail; | |
29230 | temp6 = True; | |
29231 | } | |
29232 | } | |
29233 | { | |
29234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29235 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
29236 | ||
29237 | wxPyEndAllowThreads(__tstate); | |
29238 | if (PyErr_Occurred()) SWIG_fail; | |
29239 | } | |
29240 | { | |
29241 | resultobj = wxPyMake_wxObject(result); | |
29242 | } | |
29243 | { | |
29244 | if (temp4) | |
29245 | delete arg4; | |
29246 | } | |
29247 | { | |
29248 | if (temp6) | |
29249 | delete arg6; | |
29250 | } | |
29251 | return resultobj; | |
29252 | fail: | |
29253 | { | |
29254 | if (temp4) | |
29255 | delete arg4; | |
29256 | } | |
29257 | { | |
29258 | if (temp6) | |
29259 | delete arg6; | |
29260 | } | |
29261 | return NULL; | |
29262 | } | |
29263 | ||
29264 | ||
29265 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29266 | PyObject *resultobj; | |
29267 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29268 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29269 | wxMenuItem *result; | |
29270 | PyObject * obj0 = 0 ; | |
29271 | PyObject * obj1 = 0 ; | |
29272 | char *kwnames[] = { | |
29273 | (char *) "self",(char *) "item", NULL | |
29274 | }; | |
29275 | ||
29276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
29277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29279 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29281 | { | |
29282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29283 | result = (wxMenuItem *)(arg1)->Prepend(arg2); | |
29284 | ||
29285 | wxPyEndAllowThreads(__tstate); | |
29286 | if (PyErr_Occurred()) SWIG_fail; | |
29287 | } | |
29288 | { | |
29289 | resultobj = wxPyMake_wxObject(result); | |
29290 | } | |
29291 | return resultobj; | |
29292 | fail: | |
29293 | return NULL; | |
29294 | } | |
29295 | ||
29296 | ||
29297 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29298 | PyObject *resultobj; | |
29299 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29300 | int arg2 ; | |
29301 | wxString *arg3 = 0 ; | |
29302 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29303 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29304 | int arg5 = (int) wxITEM_NORMAL ; | |
29305 | wxMenuItem *result; | |
29306 | bool temp3 = False ; | |
29307 | bool temp4 = False ; | |
29308 | PyObject * obj0 = 0 ; | |
29309 | PyObject * obj1 = 0 ; | |
29310 | PyObject * obj2 = 0 ; | |
29311 | PyObject * obj3 = 0 ; | |
29312 | PyObject * obj4 = 0 ; | |
29313 | char *kwnames[] = { | |
29314 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29315 | }; | |
29316 | ||
29317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29320 | arg2 = (int) SWIG_AsInt(obj1); | |
29321 | if (PyErr_Occurred()) SWIG_fail; | |
29322 | { | |
29323 | arg3 = wxString_in_helper(obj2); | |
29324 | if (arg3 == NULL) SWIG_fail; | |
29325 | temp3 = True; | |
29326 | } | |
29327 | if (obj3) { | |
29328 | { | |
29329 | arg4 = wxString_in_helper(obj3); | |
29330 | if (arg4 == NULL) SWIG_fail; | |
29331 | temp4 = True; | |
29332 | } | |
29333 | } | |
29334 | if (obj4) { | |
29335 | arg5 = (wxItemKind) SWIG_AsInt(obj4); | |
29336 | if (PyErr_Occurred()) SWIG_fail; | |
29337 | } | |
29338 | { | |
29339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29340 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
29341 | ||
29342 | wxPyEndAllowThreads(__tstate); | |
29343 | if (PyErr_Occurred()) SWIG_fail; | |
29344 | } | |
29345 | { | |
29346 | resultobj = wxPyMake_wxObject(result); | |
29347 | } | |
29348 | { | |
29349 | if (temp3) | |
29350 | delete arg3; | |
29351 | } | |
29352 | { | |
29353 | if (temp4) | |
29354 | delete arg4; | |
29355 | } | |
29356 | return resultobj; | |
29357 | fail: | |
29358 | { | |
29359 | if (temp3) | |
29360 | delete arg3; | |
29361 | } | |
29362 | { | |
29363 | if (temp4) | |
29364 | delete arg4; | |
29365 | } | |
29366 | return NULL; | |
29367 | } | |
29368 | ||
29369 | ||
29370 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29371 | PyObject *resultobj; | |
29372 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29373 | wxMenuItem *result; | |
29374 | PyObject * obj0 = 0 ; | |
29375 | char *kwnames[] = { | |
29376 | (char *) "self", NULL | |
29377 | }; | |
29378 | ||
29379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
29380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29382 | { | |
29383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29384 | result = (wxMenuItem *)(arg1)->PrependSeparator(); | |
29385 | ||
29386 | wxPyEndAllowThreads(__tstate); | |
29387 | if (PyErr_Occurred()) SWIG_fail; | |
29388 | } | |
29389 | { | |
29390 | resultobj = wxPyMake_wxObject(result); | |
29391 | } | |
29392 | return resultobj; | |
29393 | fail: | |
29394 | return NULL; | |
29395 | } | |
29396 | ||
29397 | ||
29398 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29399 | PyObject *resultobj; | |
29400 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29401 | int arg2 ; | |
29402 | wxString *arg3 = 0 ; | |
29403 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29404 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29405 | wxMenuItem *result; | |
29406 | bool temp3 = False ; | |
29407 | bool temp4 = False ; | |
29408 | PyObject * obj0 = 0 ; | |
29409 | PyObject * obj1 = 0 ; | |
29410 | PyObject * obj2 = 0 ; | |
29411 | PyObject * obj3 = 0 ; | |
29412 | char *kwnames[] = { | |
29413 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29414 | }; | |
29415 | ||
29416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29419 | arg2 = (int) SWIG_AsInt(obj1); | |
29420 | if (PyErr_Occurred()) SWIG_fail; | |
29421 | { | |
29422 | arg3 = wxString_in_helper(obj2); | |
29423 | if (arg3 == NULL) SWIG_fail; | |
29424 | temp3 = True; | |
29425 | } | |
29426 | if (obj3) { | |
29427 | { | |
29428 | arg4 = wxString_in_helper(obj3); | |
29429 | if (arg4 == NULL) SWIG_fail; | |
29430 | temp4 = True; | |
29431 | } | |
29432 | } | |
29433 | { | |
29434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29435 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29436 | ||
29437 | wxPyEndAllowThreads(__tstate); | |
29438 | if (PyErr_Occurred()) SWIG_fail; | |
29439 | } | |
29440 | { | |
29441 | resultobj = wxPyMake_wxObject(result); | |
29442 | } | |
29443 | { | |
29444 | if (temp3) | |
29445 | delete arg3; | |
29446 | } | |
29447 | { | |
29448 | if (temp4) | |
29449 | delete arg4; | |
29450 | } | |
29451 | return resultobj; | |
29452 | fail: | |
29453 | { | |
29454 | if (temp3) | |
29455 | delete arg3; | |
29456 | } | |
29457 | { | |
29458 | if (temp4) | |
29459 | delete arg4; | |
29460 | } | |
29461 | return NULL; | |
29462 | } | |
29463 | ||
29464 | ||
29465 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29466 | PyObject *resultobj; | |
29467 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29468 | int arg2 ; | |
29469 | wxString *arg3 = 0 ; | |
29470 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29471 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29472 | wxMenuItem *result; | |
29473 | bool temp3 = False ; | |
29474 | bool temp4 = False ; | |
29475 | PyObject * obj0 = 0 ; | |
29476 | PyObject * obj1 = 0 ; | |
29477 | PyObject * obj2 = 0 ; | |
29478 | PyObject * obj3 = 0 ; | |
29479 | char *kwnames[] = { | |
29480 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29481 | }; | |
29482 | ||
29483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29486 | arg2 = (int) SWIG_AsInt(obj1); | |
29487 | if (PyErr_Occurred()) SWIG_fail; | |
29488 | { | |
29489 | arg3 = wxString_in_helper(obj2); | |
29490 | if (arg3 == NULL) SWIG_fail; | |
29491 | temp3 = True; | |
29492 | } | |
29493 | if (obj3) { | |
29494 | { | |
29495 | arg4 = wxString_in_helper(obj3); | |
29496 | if (arg4 == NULL) SWIG_fail; | |
29497 | temp4 = True; | |
29498 | } | |
29499 | } | |
29500 | { | |
29501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29502 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29503 | ||
29504 | wxPyEndAllowThreads(__tstate); | |
29505 | if (PyErr_Occurred()) SWIG_fail; | |
29506 | } | |
29507 | { | |
29508 | resultobj = wxPyMake_wxObject(result); | |
29509 | } | |
29510 | { | |
29511 | if (temp3) | |
29512 | delete arg3; | |
29513 | } | |
29514 | { | |
29515 | if (temp4) | |
29516 | delete arg4; | |
29517 | } | |
29518 | return resultobj; | |
29519 | fail: | |
29520 | { | |
29521 | if (temp3) | |
29522 | delete arg3; | |
29523 | } | |
29524 | { | |
29525 | if (temp4) | |
29526 | delete arg4; | |
29527 | } | |
29528 | return NULL; | |
29529 | } | |
29530 | ||
29531 | ||
29532 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29533 | PyObject *resultobj; | |
29534 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29535 | int arg2 ; | |
29536 | wxString *arg3 = 0 ; | |
29537 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29538 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29539 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29540 | wxMenuItem *result; | |
29541 | bool temp3 = False ; | |
29542 | bool temp5 = False ; | |
29543 | PyObject * obj0 = 0 ; | |
29544 | PyObject * obj1 = 0 ; | |
29545 | PyObject * obj2 = 0 ; | |
29546 | PyObject * obj3 = 0 ; | |
29547 | PyObject * obj4 = 0 ; | |
29548 | char *kwnames[] = { | |
29549 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29550 | }; | |
29551 | ||
29552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29555 | arg2 = (int) SWIG_AsInt(obj1); | |
29556 | if (PyErr_Occurred()) SWIG_fail; | |
29557 | { | |
29558 | arg3 = wxString_in_helper(obj2); | |
29559 | if (arg3 == NULL) SWIG_fail; | |
29560 | temp3 = True; | |
29561 | } | |
29562 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
29563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29564 | if (obj4) { | |
29565 | { | |
29566 | arg5 = wxString_in_helper(obj4); | |
29567 | if (arg5 == NULL) SWIG_fail; | |
29568 | temp5 = True; | |
29569 | } | |
29570 | } | |
29571 | { | |
29572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29573 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
29574 | ||
29575 | wxPyEndAllowThreads(__tstate); | |
29576 | if (PyErr_Occurred()) SWIG_fail; | |
29577 | } | |
29578 | { | |
29579 | resultobj = wxPyMake_wxObject(result); | |
29580 | } | |
29581 | { | |
29582 | if (temp3) | |
29583 | delete arg3; | |
29584 | } | |
29585 | { | |
29586 | if (temp5) | |
29587 | delete arg5; | |
29588 | } | |
29589 | return resultobj; | |
29590 | fail: | |
29591 | { | |
29592 | if (temp3) | |
29593 | delete arg3; | |
29594 | } | |
29595 | { | |
29596 | if (temp5) | |
29597 | delete arg5; | |
29598 | } | |
29599 | return NULL; | |
29600 | } | |
29601 | ||
29602 | ||
29603 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29604 | PyObject *resultobj; | |
29605 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29606 | int arg2 ; | |
29607 | wxMenuItem *result; | |
29608 | PyObject * obj0 = 0 ; | |
29609 | PyObject * obj1 = 0 ; | |
29610 | char *kwnames[] = { | |
29611 | (char *) "self",(char *) "id", NULL | |
29612 | }; | |
29613 | ||
29614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; | |
29615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29617 | arg2 = (int) SWIG_AsInt(obj1); | |
29618 | if (PyErr_Occurred()) SWIG_fail; | |
29619 | { | |
29620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29621 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29622 | ||
29623 | wxPyEndAllowThreads(__tstate); | |
29624 | if (PyErr_Occurred()) SWIG_fail; | |
29625 | } | |
29626 | { | |
29627 | resultobj = wxPyMake_wxObject(result); | |
29628 | } | |
29629 | return resultobj; | |
29630 | fail: | |
29631 | return NULL; | |
29632 | } | |
29633 | ||
29634 | ||
29635 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29636 | PyObject *resultobj; | |
29637 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29638 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29639 | wxMenuItem *result; | |
29640 | PyObject * obj0 = 0 ; | |
29641 | PyObject * obj1 = 0 ; | |
29642 | char *kwnames[] = { | |
29643 | (char *) "self",(char *) "item", NULL | |
29644 | }; | |
29645 | ||
29646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
29647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29649 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29651 | { | |
29652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29653 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29654 | ||
29655 | wxPyEndAllowThreads(__tstate); | |
29656 | if (PyErr_Occurred()) SWIG_fail; | |
29657 | } | |
29658 | { | |
29659 | resultobj = wxPyMake_wxObject(result); | |
29660 | } | |
29661 | return resultobj; | |
29662 | fail: | |
29663 | return NULL; | |
29664 | } | |
29665 | ||
29666 | ||
29667 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29668 | PyObject *resultobj; | |
29669 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29670 | int arg2 ; | |
29671 | bool result; | |
29672 | PyObject * obj0 = 0 ; | |
29673 | PyObject * obj1 = 0 ; | |
29674 | char *kwnames[] = { | |
29675 | (char *) "self",(char *) "id", NULL | |
29676 | }; | |
29677 | ||
29678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; | |
29679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29681 | arg2 = (int) SWIG_AsInt(obj1); | |
29682 | if (PyErr_Occurred()) SWIG_fail; | |
29683 | { | |
29684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29685 | result = (bool)(arg1)->Delete(arg2); | |
29686 | ||
29687 | wxPyEndAllowThreads(__tstate); | |
29688 | if (PyErr_Occurred()) SWIG_fail; | |
29689 | } | |
29690 | { | |
29691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29692 | } | |
29693 | return resultobj; | |
29694 | fail: | |
29695 | return NULL; | |
29696 | } | |
29697 | ||
29698 | ||
29699 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29700 | PyObject *resultobj; | |
29701 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29702 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29703 | bool result; | |
29704 | PyObject * obj0 = 0 ; | |
29705 | PyObject * obj1 = 0 ; | |
29706 | char *kwnames[] = { | |
29707 | (char *) "self",(char *) "item", NULL | |
29708 | }; | |
29709 | ||
29710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
29711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29713 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29715 | { | |
29716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29717 | result = (bool)(arg1)->Delete(arg2); | |
29718 | ||
29719 | wxPyEndAllowThreads(__tstate); | |
29720 | if (PyErr_Occurred()) SWIG_fail; | |
29721 | } | |
29722 | { | |
29723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29724 | } | |
29725 | return resultobj; | |
29726 | fail: | |
29727 | return NULL; | |
29728 | } | |
29729 | ||
29730 | ||
29731 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29732 | PyObject *resultobj; | |
29733 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29734 | PyObject * obj0 = 0 ; | |
29735 | char *kwnames[] = { | |
29736 | (char *) "self", NULL | |
29737 | }; | |
29738 | ||
29739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
29740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29742 | { | |
29743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29744 | wxMenu_Destroy(arg1); | |
29745 | ||
29746 | wxPyEndAllowThreads(__tstate); | |
29747 | if (PyErr_Occurred()) SWIG_fail; | |
29748 | } | |
29749 | Py_INCREF(Py_None); resultobj = Py_None; | |
29750 | return resultobj; | |
29751 | fail: | |
29752 | return NULL; | |
29753 | } | |
29754 | ||
29755 | ||
29756 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29757 | PyObject *resultobj; | |
29758 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29759 | int arg2 ; | |
29760 | bool result; | |
29761 | PyObject * obj0 = 0 ; | |
29762 | PyObject * obj1 = 0 ; | |
29763 | char *kwnames[] = { | |
29764 | (char *) "self",(char *) "id", NULL | |
29765 | }; | |
29766 | ||
29767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; | |
29768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29770 | arg2 = (int) SWIG_AsInt(obj1); | |
29771 | if (PyErr_Occurred()) SWIG_fail; | |
29772 | { | |
29773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29774 | result = (bool)(arg1)->Destroy(arg2); | |
29775 | ||
29776 | wxPyEndAllowThreads(__tstate); | |
29777 | if (PyErr_Occurred()) SWIG_fail; | |
29778 | } | |
29779 | { | |
29780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29781 | } | |
29782 | return resultobj; | |
29783 | fail: | |
29784 | return NULL; | |
29785 | } | |
29786 | ||
29787 | ||
29788 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29789 | PyObject *resultobj; | |
29790 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29791 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29792 | bool result; | |
29793 | PyObject * obj0 = 0 ; | |
29794 | PyObject * obj1 = 0 ; | |
29795 | char *kwnames[] = { | |
29796 | (char *) "self",(char *) "item", NULL | |
29797 | }; | |
29798 | ||
29799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
29800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29802 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29804 | { | |
29805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29806 | result = (bool)(arg1)->Destroy(arg2); | |
29807 | ||
29808 | wxPyEndAllowThreads(__tstate); | |
29809 | if (PyErr_Occurred()) SWIG_fail; | |
29810 | } | |
29811 | { | |
29812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29813 | } | |
29814 | return resultobj; | |
29815 | fail: | |
29816 | return NULL; | |
29817 | } | |
29818 | ||
29819 | ||
29820 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29821 | PyObject *resultobj; | |
29822 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29823 | size_t result; | |
29824 | PyObject * obj0 = 0 ; | |
29825 | char *kwnames[] = { | |
29826 | (char *) "self", NULL | |
29827 | }; | |
29828 | ||
29829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
29830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29832 | { | |
29833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29834 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
29835 | ||
29836 | wxPyEndAllowThreads(__tstate); | |
29837 | if (PyErr_Occurred()) SWIG_fail; | |
29838 | } | |
29839 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
29840 | return resultobj; | |
29841 | fail: | |
29842 | return NULL; | |
29843 | } | |
29844 | ||
29845 | ||
29846 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29847 | PyObject *resultobj; | |
29848 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29849 | PyObject *result; | |
29850 | PyObject * obj0 = 0 ; | |
29851 | char *kwnames[] = { | |
29852 | (char *) "self", NULL | |
29853 | }; | |
29854 | ||
29855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
29856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29858 | { | |
29859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29860 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
29861 | ||
29862 | wxPyEndAllowThreads(__tstate); | |
29863 | if (PyErr_Occurred()) SWIG_fail; | |
29864 | } | |
29865 | resultobj = result; | |
29866 | return resultobj; | |
29867 | fail: | |
29868 | return NULL; | |
29869 | } | |
29870 | ||
29871 | ||
29872 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29873 | PyObject *resultobj; | |
29874 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29875 | wxString *arg2 = 0 ; | |
29876 | int result; | |
29877 | bool temp2 = False ; | |
29878 | PyObject * obj0 = 0 ; | |
29879 | PyObject * obj1 = 0 ; | |
29880 | char *kwnames[] = { | |
29881 | (char *) "self",(char *) "item", NULL | |
29882 | }; | |
29883 | ||
29884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
29885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29887 | { | |
29888 | arg2 = wxString_in_helper(obj1); | |
29889 | if (arg2 == NULL) SWIG_fail; | |
29890 | temp2 = True; | |
29891 | } | |
29892 | { | |
29893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29894 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
29895 | ||
29896 | wxPyEndAllowThreads(__tstate); | |
29897 | if (PyErr_Occurred()) SWIG_fail; | |
29898 | } | |
29899 | resultobj = SWIG_FromInt((int)result); | |
29900 | { | |
29901 | if (temp2) | |
29902 | delete arg2; | |
29903 | } | |
29904 | return resultobj; | |
29905 | fail: | |
29906 | { | |
29907 | if (temp2) | |
29908 | delete arg2; | |
29909 | } | |
29910 | return NULL; | |
29911 | } | |
29912 | ||
29913 | ||
29914 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29915 | PyObject *resultobj; | |
29916 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29917 | int arg2 ; | |
29918 | wxMenuItem *result; | |
29919 | PyObject * obj0 = 0 ; | |
29920 | PyObject * obj1 = 0 ; | |
29921 | char *kwnames[] = { | |
29922 | (char *) "self",(char *) "id", NULL | |
29923 | }; | |
29924 | ||
29925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
29926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29928 | arg2 = (int) SWIG_AsInt(obj1); | |
29929 | if (PyErr_Occurred()) SWIG_fail; | |
29930 | { | |
29931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29932 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
29933 | ||
29934 | wxPyEndAllowThreads(__tstate); | |
29935 | if (PyErr_Occurred()) SWIG_fail; | |
29936 | } | |
29937 | { | |
29938 | resultobj = wxPyMake_wxObject(result); | |
29939 | } | |
29940 | return resultobj; | |
29941 | fail: | |
29942 | return NULL; | |
29943 | } | |
29944 | ||
29945 | ||
29946 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29947 | PyObject *resultobj; | |
29948 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29949 | size_t arg2 ; | |
29950 | wxMenuItem *result; | |
29951 | PyObject * obj0 = 0 ; | |
29952 | PyObject * obj1 = 0 ; | |
29953 | char *kwnames[] = { | |
29954 | (char *) "self",(char *) "position", NULL | |
29955 | }; | |
29956 | ||
29957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
29958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29960 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29961 | if (PyErr_Occurred()) SWIG_fail; | |
29962 | { | |
29963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29964 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
29965 | ||
29966 | wxPyEndAllowThreads(__tstate); | |
29967 | if (PyErr_Occurred()) SWIG_fail; | |
29968 | } | |
29969 | { | |
29970 | resultobj = wxPyMake_wxObject(result); | |
29971 | } | |
29972 | return resultobj; | |
29973 | fail: | |
29974 | return NULL; | |
29975 | } | |
29976 | ||
29977 | ||
29978 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29979 | PyObject *resultobj; | |
29980 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29981 | int arg2 ; | |
29982 | bool arg3 ; | |
29983 | PyObject * obj0 = 0 ; | |
29984 | PyObject * obj1 = 0 ; | |
29985 | PyObject * obj2 = 0 ; | |
29986 | char *kwnames[] = { | |
29987 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
29988 | }; | |
29989 | ||
29990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29993 | arg2 = (int) SWIG_AsInt(obj1); | |
29994 | if (PyErr_Occurred()) SWIG_fail; | |
29995 | arg3 = (bool) SWIG_AsBool(obj2); | |
29996 | if (PyErr_Occurred()) SWIG_fail; | |
29997 | { | |
29998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29999 | (arg1)->Enable(arg2,arg3); | |
30000 | ||
30001 | wxPyEndAllowThreads(__tstate); | |
30002 | if (PyErr_Occurred()) SWIG_fail; | |
30003 | } | |
30004 | Py_INCREF(Py_None); resultobj = Py_None; | |
30005 | return resultobj; | |
30006 | fail: | |
30007 | return NULL; | |
30008 | } | |
30009 | ||
30010 | ||
30011 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30012 | PyObject *resultobj; | |
30013 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30014 | int arg2 ; | |
30015 | bool result; | |
30016 | PyObject * obj0 = 0 ; | |
30017 | PyObject * obj1 = 0 ; | |
30018 | char *kwnames[] = { | |
30019 | (char *) "self",(char *) "id", NULL | |
30020 | }; | |
30021 | ||
30022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
30023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30025 | arg2 = (int) SWIG_AsInt(obj1); | |
30026 | if (PyErr_Occurred()) SWIG_fail; | |
30027 | { | |
30028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30029 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
30030 | ||
30031 | wxPyEndAllowThreads(__tstate); | |
30032 | if (PyErr_Occurred()) SWIG_fail; | |
30033 | } | |
30034 | { | |
30035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30036 | } | |
30037 | return resultobj; | |
30038 | fail: | |
30039 | return NULL; | |
30040 | } | |
30041 | ||
30042 | ||
30043 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30044 | PyObject *resultobj; | |
30045 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30046 | int arg2 ; | |
30047 | bool arg3 ; | |
30048 | PyObject * obj0 = 0 ; | |
30049 | PyObject * obj1 = 0 ; | |
30050 | PyObject * obj2 = 0 ; | |
30051 | char *kwnames[] = { | |
30052 | (char *) "self",(char *) "id",(char *) "check", NULL | |
30053 | }; | |
30054 | ||
30055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30058 | arg2 = (int) SWIG_AsInt(obj1); | |
30059 | if (PyErr_Occurred()) SWIG_fail; | |
30060 | arg3 = (bool) SWIG_AsBool(obj2); | |
30061 | if (PyErr_Occurred()) SWIG_fail; | |
30062 | { | |
30063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30064 | (arg1)->Check(arg2,arg3); | |
30065 | ||
30066 | wxPyEndAllowThreads(__tstate); | |
30067 | if (PyErr_Occurred()) SWIG_fail; | |
30068 | } | |
30069 | Py_INCREF(Py_None); resultobj = Py_None; | |
30070 | return resultobj; | |
30071 | fail: | |
30072 | return NULL; | |
30073 | } | |
30074 | ||
30075 | ||
30076 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30077 | PyObject *resultobj; | |
30078 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30079 | int arg2 ; | |
30080 | bool result; | |
30081 | PyObject * obj0 = 0 ; | |
30082 | PyObject * obj1 = 0 ; | |
30083 | char *kwnames[] = { | |
30084 | (char *) "self",(char *) "id", NULL | |
30085 | }; | |
30086 | ||
30087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
30088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30090 | arg2 = (int) SWIG_AsInt(obj1); | |
30091 | if (PyErr_Occurred()) SWIG_fail; | |
30092 | { | |
30093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30094 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
30095 | ||
30096 | wxPyEndAllowThreads(__tstate); | |
30097 | if (PyErr_Occurred()) SWIG_fail; | |
30098 | } | |
30099 | { | |
30100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30101 | } | |
30102 | return resultobj; | |
30103 | fail: | |
30104 | return NULL; | |
30105 | } | |
30106 | ||
30107 | ||
30108 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30109 | PyObject *resultobj; | |
30110 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30111 | int arg2 ; | |
30112 | wxString *arg3 = 0 ; | |
30113 | bool temp3 = False ; | |
30114 | PyObject * obj0 = 0 ; | |
30115 | PyObject * obj1 = 0 ; | |
30116 | PyObject * obj2 = 0 ; | |
30117 | char *kwnames[] = { | |
30118 | (char *) "self",(char *) "id",(char *) "label", NULL | |
30119 | }; | |
30120 | ||
30121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30124 | arg2 = (int) SWIG_AsInt(obj1); | |
30125 | if (PyErr_Occurred()) SWIG_fail; | |
30126 | { | |
30127 | arg3 = wxString_in_helper(obj2); | |
30128 | if (arg3 == NULL) SWIG_fail; | |
30129 | temp3 = True; | |
30130 | } | |
30131 | { | |
30132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30133 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
30134 | ||
30135 | wxPyEndAllowThreads(__tstate); | |
30136 | if (PyErr_Occurred()) SWIG_fail; | |
30137 | } | |
30138 | Py_INCREF(Py_None); resultobj = Py_None; | |
30139 | { | |
30140 | if (temp3) | |
30141 | delete arg3; | |
30142 | } | |
30143 | return resultobj; | |
30144 | fail: | |
30145 | { | |
30146 | if (temp3) | |
30147 | delete arg3; | |
30148 | } | |
30149 | return NULL; | |
30150 | } | |
30151 | ||
30152 | ||
30153 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30154 | PyObject *resultobj; | |
30155 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30156 | int arg2 ; | |
30157 | wxString result; | |
30158 | PyObject * obj0 = 0 ; | |
30159 | PyObject * obj1 = 0 ; | |
30160 | char *kwnames[] = { | |
30161 | (char *) "self",(char *) "id", NULL | |
30162 | }; | |
30163 | ||
30164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
30165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30167 | arg2 = (int) SWIG_AsInt(obj1); | |
30168 | if (PyErr_Occurred()) SWIG_fail; | |
30169 | { | |
30170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30171 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
30172 | ||
30173 | wxPyEndAllowThreads(__tstate); | |
30174 | if (PyErr_Occurred()) SWIG_fail; | |
30175 | } | |
30176 | { | |
30177 | #if wxUSE_UNICODE | |
30178 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30179 | #else | |
30180 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30181 | #endif | |
30182 | } | |
30183 | return resultobj; | |
30184 | fail: | |
30185 | return NULL; | |
30186 | } | |
30187 | ||
30188 | ||
30189 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30190 | PyObject *resultobj; | |
30191 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30192 | int arg2 ; | |
30193 | wxString *arg3 = 0 ; | |
30194 | bool temp3 = False ; | |
30195 | PyObject * obj0 = 0 ; | |
30196 | PyObject * obj1 = 0 ; | |
30197 | PyObject * obj2 = 0 ; | |
30198 | char *kwnames[] = { | |
30199 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
30200 | }; | |
30201 | ||
30202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30205 | arg2 = (int) SWIG_AsInt(obj1); | |
30206 | if (PyErr_Occurred()) SWIG_fail; | |
30207 | { | |
30208 | arg3 = wxString_in_helper(obj2); | |
30209 | if (arg3 == NULL) SWIG_fail; | |
30210 | temp3 = True; | |
30211 | } | |
30212 | { | |
30213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30214 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
30215 | ||
30216 | wxPyEndAllowThreads(__tstate); | |
30217 | if (PyErr_Occurred()) SWIG_fail; | |
30218 | } | |
30219 | Py_INCREF(Py_None); resultobj = Py_None; | |
30220 | { | |
30221 | if (temp3) | |
30222 | delete arg3; | |
30223 | } | |
30224 | return resultobj; | |
30225 | fail: | |
30226 | { | |
30227 | if (temp3) | |
30228 | delete arg3; | |
30229 | } | |
30230 | return NULL; | |
30231 | } | |
30232 | ||
30233 | ||
30234 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30235 | PyObject *resultobj; | |
30236 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30237 | int arg2 ; | |
30238 | wxString result; | |
30239 | PyObject * obj0 = 0 ; | |
30240 | PyObject * obj1 = 0 ; | |
30241 | char *kwnames[] = { | |
30242 | (char *) "self",(char *) "id", NULL | |
30243 | }; | |
30244 | ||
30245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
30246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30248 | arg2 = (int) SWIG_AsInt(obj1); | |
30249 | if (PyErr_Occurred()) SWIG_fail; | |
30250 | { | |
30251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30252 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
30253 | ||
30254 | wxPyEndAllowThreads(__tstate); | |
30255 | if (PyErr_Occurred()) SWIG_fail; | |
30256 | } | |
30257 | { | |
30258 | #if wxUSE_UNICODE | |
30259 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30260 | #else | |
30261 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30262 | #endif | |
30263 | } | |
30264 | return resultobj; | |
30265 | fail: | |
30266 | return NULL; | |
30267 | } | |
30268 | ||
30269 | ||
30270 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30271 | PyObject *resultobj; | |
30272 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30273 | wxString *arg2 = 0 ; | |
30274 | bool temp2 = False ; | |
30275 | PyObject * obj0 = 0 ; | |
30276 | PyObject * obj1 = 0 ; | |
30277 | char *kwnames[] = { | |
30278 | (char *) "self",(char *) "title", NULL | |
30279 | }; | |
30280 | ||
30281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
30282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30284 | { | |
30285 | arg2 = wxString_in_helper(obj1); | |
30286 | if (arg2 == NULL) SWIG_fail; | |
30287 | temp2 = True; | |
30288 | } | |
30289 | { | |
30290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30291 | (arg1)->SetTitle((wxString const &)*arg2); | |
30292 | ||
30293 | wxPyEndAllowThreads(__tstate); | |
30294 | if (PyErr_Occurred()) SWIG_fail; | |
30295 | } | |
30296 | Py_INCREF(Py_None); resultobj = Py_None; | |
30297 | { | |
30298 | if (temp2) | |
30299 | delete arg2; | |
30300 | } | |
30301 | return resultobj; | |
30302 | fail: | |
30303 | { | |
30304 | if (temp2) | |
30305 | delete arg2; | |
30306 | } | |
30307 | return NULL; | |
30308 | } | |
30309 | ||
30310 | ||
30311 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30312 | PyObject *resultobj; | |
30313 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30314 | wxString result; | |
30315 | PyObject * obj0 = 0 ; | |
30316 | char *kwnames[] = { | |
30317 | (char *) "self", NULL | |
30318 | }; | |
30319 | ||
30320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
30321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30323 | { | |
30324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30325 | result = ((wxMenu const *)arg1)->GetTitle(); | |
30326 | ||
30327 | wxPyEndAllowThreads(__tstate); | |
30328 | if (PyErr_Occurred()) SWIG_fail; | |
30329 | } | |
30330 | { | |
30331 | #if wxUSE_UNICODE | |
30332 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30333 | #else | |
30334 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30335 | #endif | |
30336 | } | |
30337 | return resultobj; | |
30338 | fail: | |
30339 | return NULL; | |
30340 | } | |
30341 | ||
30342 | ||
30343 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30344 | PyObject *resultobj; | |
30345 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30346 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
30347 | PyObject * obj0 = 0 ; | |
30348 | PyObject * obj1 = 0 ; | |
30349 | char *kwnames[] = { | |
30350 | (char *) "self",(char *) "handler", NULL | |
30351 | }; | |
30352 | ||
30353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
30354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30356 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
30357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30358 | { | |
30359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30360 | (arg1)->SetEventHandler(arg2); | |
30361 | ||
30362 | wxPyEndAllowThreads(__tstate); | |
30363 | if (PyErr_Occurred()) SWIG_fail; | |
30364 | } | |
30365 | Py_INCREF(Py_None); resultobj = Py_None; | |
30366 | return resultobj; | |
30367 | fail: | |
30368 | return NULL; | |
30369 | } | |
30370 | ||
30371 | ||
30372 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30373 | PyObject *resultobj; | |
30374 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30375 | wxEvtHandler *result; | |
30376 | PyObject * obj0 = 0 ; | |
30377 | char *kwnames[] = { | |
30378 | (char *) "self", NULL | |
30379 | }; | |
30380 | ||
30381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
30382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30384 | { | |
30385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30386 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
30387 | ||
30388 | wxPyEndAllowThreads(__tstate); | |
30389 | if (PyErr_Occurred()) SWIG_fail; | |
30390 | } | |
30391 | { | |
30392 | resultobj = wxPyMake_wxObject(result); | |
30393 | } | |
30394 | return resultobj; | |
30395 | fail: | |
30396 | return NULL; | |
30397 | } | |
30398 | ||
30399 | ||
30400 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30401 | PyObject *resultobj; | |
30402 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30403 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30404 | PyObject * obj0 = 0 ; | |
30405 | PyObject * obj1 = 0 ; | |
30406 | char *kwnames[] = { | |
30407 | (char *) "self",(char *) "win", NULL | |
30408 | }; | |
30409 | ||
30410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
30411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30413 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30415 | { | |
30416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30417 | (arg1)->SetInvokingWindow(arg2); | |
30418 | ||
30419 | wxPyEndAllowThreads(__tstate); | |
30420 | if (PyErr_Occurred()) SWIG_fail; | |
30421 | } | |
30422 | Py_INCREF(Py_None); resultobj = Py_None; | |
30423 | return resultobj; | |
30424 | fail: | |
30425 | return NULL; | |
30426 | } | |
30427 | ||
30428 | ||
30429 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30430 | PyObject *resultobj; | |
30431 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30432 | wxWindow *result; | |
30433 | PyObject * obj0 = 0 ; | |
30434 | char *kwnames[] = { | |
30435 | (char *) "self", NULL | |
30436 | }; | |
30437 | ||
30438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
30439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30441 | { | |
30442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30443 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
30444 | ||
30445 | wxPyEndAllowThreads(__tstate); | |
30446 | if (PyErr_Occurred()) SWIG_fail; | |
30447 | } | |
30448 | { | |
30449 | resultobj = wxPyMake_wxObject(result); | |
30450 | } | |
30451 | return resultobj; | |
30452 | fail: | |
30453 | return NULL; | |
30454 | } | |
30455 | ||
30456 | ||
30457 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30458 | PyObject *resultobj; | |
30459 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30460 | long result; | |
30461 | PyObject * obj0 = 0 ; | |
30462 | char *kwnames[] = { | |
30463 | (char *) "self", NULL | |
30464 | }; | |
30465 | ||
30466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
30467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30469 | { | |
30470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30471 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
30472 | ||
30473 | wxPyEndAllowThreads(__tstate); | |
30474 | if (PyErr_Occurred()) SWIG_fail; | |
30475 | } | |
30476 | resultobj = SWIG_FromLong((long)result); | |
30477 | return resultobj; | |
30478 | fail: | |
30479 | return NULL; | |
30480 | } | |
30481 | ||
30482 | ||
30483 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30484 | PyObject *resultobj; | |
30485 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30486 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
30487 | PyObject * obj0 = 0 ; | |
30488 | PyObject * obj1 = 0 ; | |
30489 | char *kwnames[] = { | |
30490 | (char *) "self",(char *) "source", NULL | |
30491 | }; | |
30492 | ||
30493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
30494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30496 | if (obj1) { | |
30497 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
30498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30499 | } | |
30500 | { | |
30501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30502 | (arg1)->UpdateUI(arg2); | |
30503 | ||
30504 | wxPyEndAllowThreads(__tstate); | |
30505 | if (PyErr_Occurred()) SWIG_fail; | |
30506 | } | |
30507 | Py_INCREF(Py_None); resultobj = Py_None; | |
30508 | return resultobj; | |
30509 | fail: | |
30510 | return NULL; | |
30511 | } | |
30512 | ||
30513 | ||
30514 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30515 | PyObject *resultobj; | |
30516 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30517 | wxMenuBar *result; | |
30518 | PyObject * obj0 = 0 ; | |
30519 | char *kwnames[] = { | |
30520 | (char *) "self", NULL | |
30521 | }; | |
30522 | ||
30523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
30524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30526 | { | |
30527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30528 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
30529 | ||
30530 | wxPyEndAllowThreads(__tstate); | |
30531 | if (PyErr_Occurred()) SWIG_fail; | |
30532 | } | |
30533 | { | |
30534 | resultobj = wxPyMake_wxObject(result); | |
30535 | } | |
30536 | return resultobj; | |
30537 | fail: | |
30538 | return NULL; | |
30539 | } | |
30540 | ||
30541 | ||
30542 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30543 | PyObject *resultobj; | |
30544 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30545 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
30546 | PyObject * obj0 = 0 ; | |
30547 | PyObject * obj1 = 0 ; | |
30548 | char *kwnames[] = { | |
30549 | (char *) "self",(char *) "menubar", NULL | |
30550 | }; | |
30551 | ||
30552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
30553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30555 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
30556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30557 | { | |
30558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30559 | (arg1)->Attach(arg2); | |
30560 | ||
30561 | wxPyEndAllowThreads(__tstate); | |
30562 | if (PyErr_Occurred()) SWIG_fail; | |
30563 | } | |
30564 | Py_INCREF(Py_None); resultobj = Py_None; | |
30565 | return resultobj; | |
30566 | fail: | |
30567 | return NULL; | |
30568 | } | |
30569 | ||
30570 | ||
30571 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30572 | PyObject *resultobj; | |
30573 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30574 | PyObject * obj0 = 0 ; | |
30575 | char *kwnames[] = { | |
30576 | (char *) "self", NULL | |
30577 | }; | |
30578 | ||
30579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
30580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30582 | { | |
30583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30584 | (arg1)->Detach(); | |
30585 | ||
30586 | wxPyEndAllowThreads(__tstate); | |
30587 | if (PyErr_Occurred()) SWIG_fail; | |
30588 | } | |
30589 | Py_INCREF(Py_None); resultobj = Py_None; | |
30590 | return resultobj; | |
30591 | fail: | |
30592 | return NULL; | |
30593 | } | |
30594 | ||
30595 | ||
30596 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30597 | PyObject *resultobj; | |
30598 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30599 | bool result; | |
30600 | PyObject * obj0 = 0 ; | |
30601 | char *kwnames[] = { | |
30602 | (char *) "self", NULL | |
30603 | }; | |
30604 | ||
30605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
30606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30608 | { | |
30609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30610 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
30611 | ||
30612 | wxPyEndAllowThreads(__tstate); | |
30613 | if (PyErr_Occurred()) SWIG_fail; | |
30614 | } | |
30615 | { | |
30616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30617 | } | |
30618 | return resultobj; | |
30619 | fail: | |
30620 | return NULL; | |
30621 | } | |
30622 | ||
30623 | ||
30624 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30625 | PyObject *resultobj; | |
30626 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30627 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30628 | PyObject * obj0 = 0 ; | |
30629 | PyObject * obj1 = 0 ; | |
30630 | char *kwnames[] = { | |
30631 | (char *) "self",(char *) "parent", NULL | |
30632 | }; | |
30633 | ||
30634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
30635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30637 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30639 | { | |
30640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30641 | (arg1)->SetParent(arg2); | |
30642 | ||
30643 | wxPyEndAllowThreads(__tstate); | |
30644 | if (PyErr_Occurred()) SWIG_fail; | |
30645 | } | |
30646 | Py_INCREF(Py_None); resultobj = Py_None; | |
30647 | return resultobj; | |
30648 | fail: | |
30649 | return NULL; | |
30650 | } | |
30651 | ||
30652 | ||
30653 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30654 | PyObject *resultobj; | |
30655 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30656 | wxMenu *result; | |
30657 | PyObject * obj0 = 0 ; | |
30658 | char *kwnames[] = { | |
30659 | (char *) "self", NULL | |
30660 | }; | |
30661 | ||
30662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
30663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30665 | { | |
30666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30667 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
30668 | ||
30669 | wxPyEndAllowThreads(__tstate); | |
30670 | if (PyErr_Occurred()) SWIG_fail; | |
30671 | } | |
30672 | { | |
30673 | resultobj = wxPyMake_wxObject(result); | |
30674 | } | |
30675 | return resultobj; | |
30676 | fail: | |
30677 | return NULL; | |
30678 | } | |
30679 | ||
30680 | ||
30681 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
30682 | PyObject *obj; | |
30683 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30684 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
30685 | Py_INCREF(obj); | |
30686 | return Py_BuildValue((char *)""); | |
30687 | } | |
30688 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30689 | PyObject *resultobj; | |
30690 | long arg1 = (long) 0 ; | |
30691 | wxMenuBar *result; | |
30692 | PyObject * obj0 = 0 ; | |
30693 | char *kwnames[] = { | |
30694 | (char *) "style", NULL | |
30695 | }; | |
30696 | ||
30697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; | |
30698 | if (obj0) { | |
30699 | arg1 = (long) SWIG_AsLong(obj0); | |
30700 | if (PyErr_Occurred()) SWIG_fail; | |
30701 | } | |
30702 | { | |
30703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30704 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
30705 | ||
30706 | wxPyEndAllowThreads(__tstate); | |
30707 | if (PyErr_Occurred()) SWIG_fail; | |
30708 | } | |
30709 | { | |
30710 | resultobj = wxPyMake_wxObject(result); | |
30711 | } | |
30712 | return resultobj; | |
30713 | fail: | |
30714 | return NULL; | |
30715 | } | |
30716 | ||
30717 | ||
30718 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30719 | PyObject *resultobj; | |
30720 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30721 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30722 | wxString *arg3 = 0 ; | |
30723 | bool result; | |
30724 | bool temp3 = False ; | |
30725 | PyObject * obj0 = 0 ; | |
30726 | PyObject * obj1 = 0 ; | |
30727 | PyObject * obj2 = 0 ; | |
30728 | char *kwnames[] = { | |
30729 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
30730 | }; | |
30731 | ||
30732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30735 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30737 | { | |
30738 | arg3 = wxString_in_helper(obj2); | |
30739 | if (arg3 == NULL) SWIG_fail; | |
30740 | temp3 = True; | |
30741 | } | |
30742 | { | |
30743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30744 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
30745 | ||
30746 | wxPyEndAllowThreads(__tstate); | |
30747 | if (PyErr_Occurred()) SWIG_fail; | |
30748 | } | |
30749 | { | |
30750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30751 | } | |
30752 | { | |
30753 | if (temp3) | |
30754 | delete arg3; | |
30755 | } | |
30756 | return resultobj; | |
30757 | fail: | |
30758 | { | |
30759 | if (temp3) | |
30760 | delete arg3; | |
30761 | } | |
30762 | return NULL; | |
30763 | } | |
30764 | ||
30765 | ||
30766 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30767 | PyObject *resultobj; | |
30768 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30769 | size_t arg2 ; | |
30770 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30771 | wxString *arg4 = 0 ; | |
30772 | bool result; | |
30773 | bool temp4 = False ; | |
30774 | PyObject * obj0 = 0 ; | |
30775 | PyObject * obj1 = 0 ; | |
30776 | PyObject * obj2 = 0 ; | |
30777 | PyObject * obj3 = 0 ; | |
30778 | char *kwnames[] = { | |
30779 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30780 | }; | |
30781 | ||
30782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30785 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30786 | if (PyErr_Occurred()) SWIG_fail; | |
30787 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30789 | { | |
30790 | arg4 = wxString_in_helper(obj3); | |
30791 | if (arg4 == NULL) SWIG_fail; | |
30792 | temp4 = True; | |
30793 | } | |
30794 | { | |
30795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30796 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
30797 | ||
30798 | wxPyEndAllowThreads(__tstate); | |
30799 | if (PyErr_Occurred()) SWIG_fail; | |
30800 | } | |
30801 | { | |
30802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30803 | } | |
30804 | { | |
30805 | if (temp4) | |
30806 | delete arg4; | |
30807 | } | |
30808 | return resultobj; | |
30809 | fail: | |
30810 | { | |
30811 | if (temp4) | |
30812 | delete arg4; | |
30813 | } | |
30814 | return NULL; | |
30815 | } | |
30816 | ||
30817 | ||
30818 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30819 | PyObject *resultobj; | |
30820 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30821 | size_t result; | |
30822 | PyObject * obj0 = 0 ; | |
30823 | char *kwnames[] = { | |
30824 | (char *) "self", NULL | |
30825 | }; | |
30826 | ||
30827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
30828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30830 | { | |
30831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30832 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
30833 | ||
30834 | wxPyEndAllowThreads(__tstate); | |
30835 | if (PyErr_Occurred()) SWIG_fail; | |
30836 | } | |
30837 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
30838 | return resultobj; | |
30839 | fail: | |
30840 | return NULL; | |
30841 | } | |
30842 | ||
30843 | ||
30844 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30845 | PyObject *resultobj; | |
30846 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30847 | size_t arg2 ; | |
30848 | wxMenu *result; | |
30849 | PyObject * obj0 = 0 ; | |
30850 | PyObject * obj1 = 0 ; | |
30851 | char *kwnames[] = { | |
30852 | (char *) "self",(char *) "pos", NULL | |
30853 | }; | |
30854 | ||
30855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
30856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30858 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30859 | if (PyErr_Occurred()) SWIG_fail; | |
30860 | { | |
30861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30862 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
30863 | ||
30864 | wxPyEndAllowThreads(__tstate); | |
30865 | if (PyErr_Occurred()) SWIG_fail; | |
30866 | } | |
30867 | { | |
30868 | resultobj = wxPyMake_wxObject(result); | |
30869 | } | |
30870 | return resultobj; | |
30871 | fail: | |
30872 | return NULL; | |
30873 | } | |
30874 | ||
30875 | ||
30876 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30877 | PyObject *resultobj; | |
30878 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30879 | size_t arg2 ; | |
30880 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30881 | wxString *arg4 = 0 ; | |
30882 | wxMenu *result; | |
30883 | bool temp4 = False ; | |
30884 | PyObject * obj0 = 0 ; | |
30885 | PyObject * obj1 = 0 ; | |
30886 | PyObject * obj2 = 0 ; | |
30887 | PyObject * obj3 = 0 ; | |
30888 | char *kwnames[] = { | |
30889 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30890 | }; | |
30891 | ||
30892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30895 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30896 | if (PyErr_Occurred()) SWIG_fail; | |
30897 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30899 | { | |
30900 | arg4 = wxString_in_helper(obj3); | |
30901 | if (arg4 == NULL) SWIG_fail; | |
30902 | temp4 = True; | |
30903 | } | |
30904 | { | |
30905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30906 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
30907 | ||
30908 | wxPyEndAllowThreads(__tstate); | |
30909 | if (PyErr_Occurred()) SWIG_fail; | |
30910 | } | |
30911 | { | |
30912 | resultobj = wxPyMake_wxObject(result); | |
30913 | } | |
30914 | { | |
30915 | if (temp4) | |
30916 | delete arg4; | |
30917 | } | |
30918 | return resultobj; | |
30919 | fail: | |
30920 | { | |
30921 | if (temp4) | |
30922 | delete arg4; | |
30923 | } | |
30924 | return NULL; | |
30925 | } | |
30926 | ||
30927 | ||
30928 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30929 | PyObject *resultobj; | |
30930 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30931 | size_t arg2 ; | |
30932 | wxMenu *result; | |
30933 | PyObject * obj0 = 0 ; | |
30934 | PyObject * obj1 = 0 ; | |
30935 | char *kwnames[] = { | |
30936 | (char *) "self",(char *) "pos", NULL | |
30937 | }; | |
30938 | ||
30939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
30940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30942 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30943 | if (PyErr_Occurred()) SWIG_fail; | |
30944 | { | |
30945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30946 | result = (wxMenu *)(arg1)->Remove(arg2); | |
30947 | ||
30948 | wxPyEndAllowThreads(__tstate); | |
30949 | if (PyErr_Occurred()) SWIG_fail; | |
30950 | } | |
30951 | { | |
30952 | resultobj = wxPyMake_wxObject(result); | |
30953 | } | |
30954 | return resultobj; | |
30955 | fail: | |
30956 | return NULL; | |
30957 | } | |
30958 | ||
30959 | ||
30960 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30961 | PyObject *resultobj; | |
30962 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30963 | size_t arg2 ; | |
30964 | bool arg3 ; | |
30965 | PyObject * obj0 = 0 ; | |
30966 | PyObject * obj1 = 0 ; | |
30967 | PyObject * obj2 = 0 ; | |
30968 | char *kwnames[] = { | |
30969 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
30970 | }; | |
30971 | ||
30972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30975 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30976 | if (PyErr_Occurred()) SWIG_fail; | |
30977 | arg3 = (bool) SWIG_AsBool(obj2); | |
30978 | if (PyErr_Occurred()) SWIG_fail; | |
30979 | { | |
30980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30981 | (arg1)->EnableTop(arg2,arg3); | |
30982 | ||
30983 | wxPyEndAllowThreads(__tstate); | |
30984 | if (PyErr_Occurred()) SWIG_fail; | |
30985 | } | |
30986 | Py_INCREF(Py_None); resultobj = Py_None; | |
30987 | return resultobj; | |
30988 | fail: | |
30989 | return NULL; | |
30990 | } | |
30991 | ||
30992 | ||
30993 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30994 | PyObject *resultobj; | |
30995 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30996 | size_t arg2 ; | |
30997 | bool result; | |
30998 | PyObject * obj0 = 0 ; | |
30999 | PyObject * obj1 = 0 ; | |
31000 | char *kwnames[] = { | |
31001 | (char *) "self",(char *) "pos", NULL | |
31002 | }; | |
31003 | ||
31004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
31005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31007 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31008 | if (PyErr_Occurred()) SWIG_fail; | |
31009 | { | |
31010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31011 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
31012 | ||
31013 | wxPyEndAllowThreads(__tstate); | |
31014 | if (PyErr_Occurred()) SWIG_fail; | |
31015 | } | |
31016 | { | |
31017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31018 | } | |
31019 | return resultobj; | |
31020 | fail: | |
31021 | return NULL; | |
31022 | } | |
31023 | ||
31024 | ||
31025 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31026 | PyObject *resultobj; | |
31027 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31028 | size_t arg2 ; | |
31029 | wxString *arg3 = 0 ; | |
31030 | bool temp3 = False ; | |
31031 | PyObject * obj0 = 0 ; | |
31032 | PyObject * obj1 = 0 ; | |
31033 | PyObject * obj2 = 0 ; | |
31034 | char *kwnames[] = { | |
31035 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
31036 | }; | |
31037 | ||
31038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31041 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31042 | if (PyErr_Occurred()) SWIG_fail; | |
31043 | { | |
31044 | arg3 = wxString_in_helper(obj2); | |
31045 | if (arg3 == NULL) SWIG_fail; | |
31046 | temp3 = True; | |
31047 | } | |
31048 | { | |
31049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31050 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
31051 | ||
31052 | wxPyEndAllowThreads(__tstate); | |
31053 | if (PyErr_Occurred()) SWIG_fail; | |
31054 | } | |
31055 | Py_INCREF(Py_None); resultobj = Py_None; | |
31056 | { | |
31057 | if (temp3) | |
31058 | delete arg3; | |
31059 | } | |
31060 | return resultobj; | |
31061 | fail: | |
31062 | { | |
31063 | if (temp3) | |
31064 | delete arg3; | |
31065 | } | |
31066 | return NULL; | |
31067 | } | |
31068 | ||
31069 | ||
31070 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31071 | PyObject *resultobj; | |
31072 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31073 | size_t arg2 ; | |
31074 | wxString result; | |
31075 | PyObject * obj0 = 0 ; | |
31076 | PyObject * obj1 = 0 ; | |
31077 | char *kwnames[] = { | |
31078 | (char *) "self",(char *) "pos", NULL | |
31079 | }; | |
31080 | ||
31081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
31082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31084 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31085 | if (PyErr_Occurred()) SWIG_fail; | |
31086 | { | |
31087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31088 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
31089 | ||
31090 | wxPyEndAllowThreads(__tstate); | |
31091 | if (PyErr_Occurred()) SWIG_fail; | |
31092 | } | |
31093 | { | |
31094 | #if wxUSE_UNICODE | |
31095 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31096 | #else | |
31097 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31098 | #endif | |
31099 | } | |
31100 | return resultobj; | |
31101 | fail: | |
31102 | return NULL; | |
31103 | } | |
31104 | ||
31105 | ||
31106 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31107 | PyObject *resultobj; | |
31108 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31109 | wxString *arg2 = 0 ; | |
31110 | wxString *arg3 = 0 ; | |
31111 | int result; | |
31112 | bool temp2 = False ; | |
31113 | bool temp3 = False ; | |
31114 | PyObject * obj0 = 0 ; | |
31115 | PyObject * obj1 = 0 ; | |
31116 | PyObject * obj2 = 0 ; | |
31117 | char *kwnames[] = { | |
31118 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
31119 | }; | |
31120 | ||
31121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31124 | { | |
31125 | arg2 = wxString_in_helper(obj1); | |
31126 | if (arg2 == NULL) SWIG_fail; | |
31127 | temp2 = True; | |
31128 | } | |
31129 | { | |
31130 | arg3 = wxString_in_helper(obj2); | |
31131 | if (arg3 == NULL) SWIG_fail; | |
31132 | temp3 = True; | |
31133 | } | |
31134 | { | |
31135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31136 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
31137 | ||
31138 | wxPyEndAllowThreads(__tstate); | |
31139 | if (PyErr_Occurred()) SWIG_fail; | |
31140 | } | |
31141 | resultobj = SWIG_FromInt((int)result); | |
31142 | { | |
31143 | if (temp2) | |
31144 | delete arg2; | |
31145 | } | |
31146 | { | |
31147 | if (temp3) | |
31148 | delete arg3; | |
31149 | } | |
31150 | return resultobj; | |
31151 | fail: | |
31152 | { | |
31153 | if (temp2) | |
31154 | delete arg2; | |
31155 | } | |
31156 | { | |
31157 | if (temp3) | |
31158 | delete arg3; | |
31159 | } | |
31160 | return NULL; | |
31161 | } | |
31162 | ||
31163 | ||
31164 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31165 | PyObject *resultobj; | |
31166 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31167 | int arg2 ; | |
31168 | wxMenuItem *result; | |
31169 | PyObject * obj0 = 0 ; | |
31170 | PyObject * obj1 = 0 ; | |
31171 | char *kwnames[] = { | |
31172 | (char *) "self",(char *) "id", NULL | |
31173 | }; | |
31174 | ||
31175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
31176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31178 | arg2 = (int) SWIG_AsInt(obj1); | |
31179 | if (PyErr_Occurred()) SWIG_fail; | |
31180 | { | |
31181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31182 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
31183 | ||
31184 | wxPyEndAllowThreads(__tstate); | |
31185 | if (PyErr_Occurred()) SWIG_fail; | |
31186 | } | |
31187 | { | |
31188 | resultobj = wxPyMake_wxObject(result); | |
31189 | } | |
31190 | return resultobj; | |
31191 | fail: | |
31192 | return NULL; | |
31193 | } | |
31194 | ||
31195 | ||
31196 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31197 | PyObject *resultobj; | |
31198 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31199 | wxString *arg2 = 0 ; | |
31200 | int result; | |
31201 | bool temp2 = False ; | |
31202 | PyObject * obj0 = 0 ; | |
31203 | PyObject * obj1 = 0 ; | |
31204 | char *kwnames[] = { | |
31205 | (char *) "self",(char *) "title", NULL | |
31206 | }; | |
31207 | ||
31208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
31209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31211 | { | |
31212 | arg2 = wxString_in_helper(obj1); | |
31213 | if (arg2 == NULL) SWIG_fail; | |
31214 | temp2 = True; | |
31215 | } | |
31216 | { | |
31217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31218 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
31219 | ||
31220 | wxPyEndAllowThreads(__tstate); | |
31221 | if (PyErr_Occurred()) SWIG_fail; | |
31222 | } | |
31223 | resultobj = SWIG_FromInt((int)result); | |
31224 | { | |
31225 | if (temp2) | |
31226 | delete arg2; | |
31227 | } | |
31228 | return resultobj; | |
31229 | fail: | |
31230 | { | |
31231 | if (temp2) | |
31232 | delete arg2; | |
31233 | } | |
31234 | return NULL; | |
31235 | } | |
31236 | ||
31237 | ||
31238 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31239 | PyObject *resultobj; | |
31240 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31241 | int arg2 ; | |
31242 | bool arg3 ; | |
31243 | PyObject * obj0 = 0 ; | |
31244 | PyObject * obj1 = 0 ; | |
31245 | PyObject * obj2 = 0 ; | |
31246 | char *kwnames[] = { | |
31247 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
31248 | }; | |
31249 | ||
31250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31253 | arg2 = (int) SWIG_AsInt(obj1); | |
31254 | if (PyErr_Occurred()) SWIG_fail; | |
31255 | arg3 = (bool) SWIG_AsBool(obj2); | |
31256 | if (PyErr_Occurred()) SWIG_fail; | |
31257 | { | |
31258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31259 | (arg1)->Enable(arg2,arg3); | |
31260 | ||
31261 | wxPyEndAllowThreads(__tstate); | |
31262 | if (PyErr_Occurred()) SWIG_fail; | |
31263 | } | |
31264 | Py_INCREF(Py_None); resultobj = Py_None; | |
31265 | return resultobj; | |
31266 | fail: | |
31267 | return NULL; | |
31268 | } | |
31269 | ||
31270 | ||
31271 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31272 | PyObject *resultobj; | |
31273 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31274 | int arg2 ; | |
31275 | bool arg3 ; | |
31276 | PyObject * obj0 = 0 ; | |
31277 | PyObject * obj1 = 0 ; | |
31278 | PyObject * obj2 = 0 ; | |
31279 | char *kwnames[] = { | |
31280 | (char *) "self",(char *) "id",(char *) "check", NULL | |
31281 | }; | |
31282 | ||
31283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31286 | arg2 = (int) SWIG_AsInt(obj1); | |
31287 | if (PyErr_Occurred()) SWIG_fail; | |
31288 | arg3 = (bool) SWIG_AsBool(obj2); | |
31289 | if (PyErr_Occurred()) SWIG_fail; | |
31290 | { | |
31291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31292 | (arg1)->Check(arg2,arg3); | |
31293 | ||
31294 | wxPyEndAllowThreads(__tstate); | |
31295 | if (PyErr_Occurred()) SWIG_fail; | |
31296 | } | |
31297 | Py_INCREF(Py_None); resultobj = Py_None; | |
31298 | return resultobj; | |
31299 | fail: | |
31300 | return NULL; | |
31301 | } | |
31302 | ||
31303 | ||
31304 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31305 | PyObject *resultobj; | |
31306 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31307 | int arg2 ; | |
31308 | bool result; | |
31309 | PyObject * obj0 = 0 ; | |
31310 | PyObject * obj1 = 0 ; | |
31311 | char *kwnames[] = { | |
31312 | (char *) "self",(char *) "id", NULL | |
31313 | }; | |
31314 | ||
31315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
31316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31318 | arg2 = (int) SWIG_AsInt(obj1); | |
31319 | if (PyErr_Occurred()) SWIG_fail; | |
31320 | { | |
31321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31322 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
31323 | ||
31324 | wxPyEndAllowThreads(__tstate); | |
31325 | if (PyErr_Occurred()) SWIG_fail; | |
31326 | } | |
31327 | { | |
31328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31329 | } | |
31330 | return resultobj; | |
31331 | fail: | |
31332 | return NULL; | |
31333 | } | |
31334 | ||
31335 | ||
31336 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31337 | PyObject *resultobj; | |
31338 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31339 | int arg2 ; | |
31340 | bool result; | |
31341 | PyObject * obj0 = 0 ; | |
31342 | PyObject * obj1 = 0 ; | |
31343 | char *kwnames[] = { | |
31344 | (char *) "self",(char *) "id", NULL | |
31345 | }; | |
31346 | ||
31347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
31348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31350 | arg2 = (int) SWIG_AsInt(obj1); | |
31351 | if (PyErr_Occurred()) SWIG_fail; | |
31352 | { | |
31353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31354 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
31355 | ||
31356 | wxPyEndAllowThreads(__tstate); | |
31357 | if (PyErr_Occurred()) SWIG_fail; | |
31358 | } | |
31359 | { | |
31360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31361 | } | |
31362 | return resultobj; | |
31363 | fail: | |
31364 | return NULL; | |
31365 | } | |
31366 | ||
31367 | ||
31368 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31369 | PyObject *resultobj; | |
31370 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31371 | int arg2 ; | |
31372 | wxString *arg3 = 0 ; | |
31373 | bool temp3 = False ; | |
31374 | PyObject * obj0 = 0 ; | |
31375 | PyObject * obj1 = 0 ; | |
31376 | PyObject * obj2 = 0 ; | |
31377 | char *kwnames[] = { | |
31378 | (char *) "self",(char *) "id",(char *) "label", NULL | |
31379 | }; | |
31380 | ||
31381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31384 | arg2 = (int) SWIG_AsInt(obj1); | |
31385 | if (PyErr_Occurred()) SWIG_fail; | |
31386 | { | |
31387 | arg3 = wxString_in_helper(obj2); | |
31388 | if (arg3 == NULL) SWIG_fail; | |
31389 | temp3 = True; | |
31390 | } | |
31391 | { | |
31392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31393 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31394 | ||
31395 | wxPyEndAllowThreads(__tstate); | |
31396 | if (PyErr_Occurred()) SWIG_fail; | |
31397 | } | |
31398 | Py_INCREF(Py_None); resultobj = Py_None; | |
31399 | { | |
31400 | if (temp3) | |
31401 | delete arg3; | |
31402 | } | |
31403 | return resultobj; | |
31404 | fail: | |
31405 | { | |
31406 | if (temp3) | |
31407 | delete arg3; | |
31408 | } | |
31409 | return NULL; | |
31410 | } | |
31411 | ||
31412 | ||
31413 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31414 | PyObject *resultobj; | |
31415 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31416 | int arg2 ; | |
31417 | wxString result; | |
31418 | PyObject * obj0 = 0 ; | |
31419 | PyObject * obj1 = 0 ; | |
31420 | char *kwnames[] = { | |
31421 | (char *) "self",(char *) "id", NULL | |
31422 | }; | |
31423 | ||
31424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31427 | arg2 = (int) SWIG_AsInt(obj1); | |
31428 | if (PyErr_Occurred()) SWIG_fail; | |
31429 | { | |
31430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31431 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
31432 | ||
31433 | wxPyEndAllowThreads(__tstate); | |
31434 | if (PyErr_Occurred()) SWIG_fail; | |
31435 | } | |
31436 | { | |
31437 | #if wxUSE_UNICODE | |
31438 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31439 | #else | |
31440 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31441 | #endif | |
31442 | } | |
31443 | return resultobj; | |
31444 | fail: | |
31445 | return NULL; | |
31446 | } | |
31447 | ||
31448 | ||
31449 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31450 | PyObject *resultobj; | |
31451 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31452 | int arg2 ; | |
31453 | wxString *arg3 = 0 ; | |
31454 | bool temp3 = False ; | |
31455 | PyObject * obj0 = 0 ; | |
31456 | PyObject * obj1 = 0 ; | |
31457 | PyObject * obj2 = 0 ; | |
31458 | char *kwnames[] = { | |
31459 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
31460 | }; | |
31461 | ||
31462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31465 | arg2 = (int) SWIG_AsInt(obj1); | |
31466 | if (PyErr_Occurred()) SWIG_fail; | |
31467 | { | |
31468 | arg3 = wxString_in_helper(obj2); | |
31469 | if (arg3 == NULL) SWIG_fail; | |
31470 | temp3 = True; | |
31471 | } | |
31472 | { | |
31473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31474 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31475 | ||
31476 | wxPyEndAllowThreads(__tstate); | |
31477 | if (PyErr_Occurred()) SWIG_fail; | |
31478 | } | |
31479 | Py_INCREF(Py_None); resultobj = Py_None; | |
31480 | { | |
31481 | if (temp3) | |
31482 | delete arg3; | |
31483 | } | |
31484 | return resultobj; | |
31485 | fail: | |
31486 | { | |
31487 | if (temp3) | |
31488 | delete arg3; | |
31489 | } | |
31490 | return NULL; | |
31491 | } | |
31492 | ||
31493 | ||
31494 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31495 | PyObject *resultobj; | |
31496 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31497 | int arg2 ; | |
31498 | wxString result; | |
31499 | PyObject * obj0 = 0 ; | |
31500 | PyObject * obj1 = 0 ; | |
31501 | char *kwnames[] = { | |
31502 | (char *) "self",(char *) "id", NULL | |
31503 | }; | |
31504 | ||
31505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
31506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31508 | arg2 = (int) SWIG_AsInt(obj1); | |
31509 | if (PyErr_Occurred()) SWIG_fail; | |
31510 | { | |
31511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31512 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
31513 | ||
31514 | wxPyEndAllowThreads(__tstate); | |
31515 | if (PyErr_Occurred()) SWIG_fail; | |
31516 | } | |
31517 | { | |
31518 | #if wxUSE_UNICODE | |
31519 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31520 | #else | |
31521 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31522 | #endif | |
31523 | } | |
31524 | return resultobj; | |
31525 | fail: | |
31526 | return NULL; | |
31527 | } | |
31528 | ||
31529 | ||
31530 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31531 | PyObject *resultobj; | |
31532 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31533 | wxFrame *result; | |
31534 | PyObject * obj0 = 0 ; | |
31535 | char *kwnames[] = { | |
31536 | (char *) "self", NULL | |
31537 | }; | |
31538 | ||
31539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
31540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31542 | { | |
31543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31544 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
31545 | ||
31546 | wxPyEndAllowThreads(__tstate); | |
31547 | if (PyErr_Occurred()) SWIG_fail; | |
31548 | } | |
31549 | { | |
31550 | resultobj = wxPyMake_wxObject(result); | |
31551 | } | |
31552 | return resultobj; | |
31553 | fail: | |
31554 | return NULL; | |
31555 | } | |
31556 | ||
31557 | ||
31558 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31559 | PyObject *resultobj; | |
31560 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31561 | bool result; | |
31562 | PyObject * obj0 = 0 ; | |
31563 | char *kwnames[] = { | |
31564 | (char *) "self", NULL | |
31565 | }; | |
31566 | ||
31567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
31568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31570 | { | |
31571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31572 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
31573 | ||
31574 | wxPyEndAllowThreads(__tstate); | |
31575 | if (PyErr_Occurred()) SWIG_fail; | |
31576 | } | |
31577 | { | |
31578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31579 | } | |
31580 | return resultobj; | |
31581 | fail: | |
31582 | return NULL; | |
31583 | } | |
31584 | ||
31585 | ||
31586 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31587 | PyObject *resultobj; | |
31588 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31589 | wxFrame *arg2 = (wxFrame *) 0 ; | |
31590 | PyObject * obj0 = 0 ; | |
31591 | PyObject * obj1 = 0 ; | |
31592 | char *kwnames[] = { | |
31593 | (char *) "self",(char *) "frame", NULL | |
31594 | }; | |
31595 | ||
31596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
31597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31599 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
31600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31601 | { | |
31602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31603 | (arg1)->Attach(arg2); | |
31604 | ||
31605 | wxPyEndAllowThreads(__tstate); | |
31606 | if (PyErr_Occurred()) SWIG_fail; | |
31607 | } | |
31608 | Py_INCREF(Py_None); resultobj = Py_None; | |
31609 | return resultobj; | |
31610 | fail: | |
31611 | return NULL; | |
31612 | } | |
31613 | ||
31614 | ||
31615 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31616 | PyObject *resultobj; | |
31617 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31618 | PyObject * obj0 = 0 ; | |
31619 | char *kwnames[] = { | |
31620 | (char *) "self", NULL | |
31621 | }; | |
31622 | ||
31623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
31624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31626 | { | |
31627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31628 | (arg1)->Detach(); | |
31629 | ||
31630 | wxPyEndAllowThreads(__tstate); | |
31631 | if (PyErr_Occurred()) SWIG_fail; | |
31632 | } | |
31633 | Py_INCREF(Py_None); resultobj = Py_None; | |
31634 | return resultobj; | |
31635 | fail: | |
31636 | return NULL; | |
31637 | } | |
31638 | ||
31639 | ||
31640 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
31641 | PyObject *obj; | |
31642 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31643 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
31644 | Py_INCREF(obj); | |
31645 | return Py_BuildValue((char *)""); | |
31646 | } | |
31647 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31648 | PyObject *resultobj; | |
31649 | wxMenu *arg1 = (wxMenu *) NULL ; | |
31650 | int arg2 = (int) wxID_ANY ; | |
31651 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
31652 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
31653 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
31654 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31655 | int arg5 = (int) wxITEM_NORMAL ; | |
31656 | wxMenu *arg6 = (wxMenu *) NULL ; | |
31657 | wxMenuItem *result; | |
31658 | bool temp3 = False ; | |
31659 | bool temp4 = False ; | |
31660 | PyObject * obj0 = 0 ; | |
31661 | PyObject * obj1 = 0 ; | |
31662 | PyObject * obj2 = 0 ; | |
31663 | PyObject * obj3 = 0 ; | |
31664 | PyObject * obj4 = 0 ; | |
31665 | PyObject * obj5 = 0 ; | |
31666 | char *kwnames[] = { | |
31667 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
31668 | }; | |
31669 | ||
31670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
31671 | if (obj0) { | |
31672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31674 | } | |
31675 | if (obj1) { | |
31676 | arg2 = (int) SWIG_AsInt(obj1); | |
31677 | if (PyErr_Occurred()) SWIG_fail; | |
31678 | } | |
31679 | if (obj2) { | |
31680 | { | |
31681 | arg3 = wxString_in_helper(obj2); | |
31682 | if (arg3 == NULL) SWIG_fail; | |
31683 | temp3 = True; | |
31684 | } | |
31685 | } | |
31686 | if (obj3) { | |
31687 | { | |
31688 | arg4 = wxString_in_helper(obj3); | |
31689 | if (arg4 == NULL) SWIG_fail; | |
31690 | temp4 = True; | |
31691 | } | |
31692 | } | |
31693 | if (obj4) { | |
31694 | arg5 = (wxItemKind) SWIG_AsInt(obj4); | |
31695 | if (PyErr_Occurred()) SWIG_fail; | |
31696 | } | |
31697 | if (obj5) { | |
31698 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, | |
31699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31700 | } | |
31701 | { | |
31702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31703 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
31704 | ||
31705 | wxPyEndAllowThreads(__tstate); | |
31706 | if (PyErr_Occurred()) SWIG_fail; | |
31707 | } | |
31708 | { | |
31709 | resultobj = wxPyMake_wxObject(result); | |
31710 | } | |
31711 | { | |
31712 | if (temp3) | |
31713 | delete arg3; | |
31714 | } | |
31715 | { | |
31716 | if (temp4) | |
31717 | delete arg4; | |
31718 | } | |
31719 | return resultobj; | |
31720 | fail: | |
31721 | { | |
31722 | if (temp3) | |
31723 | delete arg3; | |
31724 | } | |
31725 | { | |
31726 | if (temp4) | |
31727 | delete arg4; | |
31728 | } | |
31729 | return NULL; | |
31730 | } | |
31731 | ||
31732 | ||
31733 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31734 | PyObject *resultobj; | |
31735 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31736 | wxMenu *result; | |
31737 | PyObject * obj0 = 0 ; | |
31738 | char *kwnames[] = { | |
31739 | (char *) "self", NULL | |
31740 | }; | |
31741 | ||
31742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
31743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31745 | { | |
31746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31747 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
31748 | ||
31749 | wxPyEndAllowThreads(__tstate); | |
31750 | if (PyErr_Occurred()) SWIG_fail; | |
31751 | } | |
31752 | { | |
31753 | resultobj = wxPyMake_wxObject(result); | |
31754 | } | |
31755 | return resultobj; | |
31756 | fail: | |
31757 | return NULL; | |
31758 | } | |
31759 | ||
31760 | ||
31761 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31762 | PyObject *resultobj; | |
31763 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31764 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31765 | PyObject * obj0 = 0 ; | |
31766 | PyObject * obj1 = 0 ; | |
31767 | char *kwnames[] = { | |
31768 | (char *) "self",(char *) "menu", NULL | |
31769 | }; | |
31770 | ||
31771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
31772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31774 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31776 | { | |
31777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31778 | (arg1)->SetMenu(arg2); | |
31779 | ||
31780 | wxPyEndAllowThreads(__tstate); | |
31781 | if (PyErr_Occurred()) SWIG_fail; | |
31782 | } | |
31783 | Py_INCREF(Py_None); resultobj = Py_None; | |
31784 | return resultobj; | |
31785 | fail: | |
31786 | return NULL; | |
31787 | } | |
31788 | ||
31789 | ||
31790 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31791 | PyObject *resultobj; | |
31792 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31793 | int arg2 ; | |
31794 | PyObject * obj0 = 0 ; | |
31795 | PyObject * obj1 = 0 ; | |
31796 | char *kwnames[] = { | |
31797 | (char *) "self",(char *) "id", NULL | |
31798 | }; | |
31799 | ||
31800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
31801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31803 | arg2 = (int) SWIG_AsInt(obj1); | |
31804 | if (PyErr_Occurred()) SWIG_fail; | |
31805 | { | |
31806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31807 | (arg1)->SetId(arg2); | |
31808 | ||
31809 | wxPyEndAllowThreads(__tstate); | |
31810 | if (PyErr_Occurred()) SWIG_fail; | |
31811 | } | |
31812 | Py_INCREF(Py_None); resultobj = Py_None; | |
31813 | return resultobj; | |
31814 | fail: | |
31815 | return NULL; | |
31816 | } | |
31817 | ||
31818 | ||
31819 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31820 | PyObject *resultobj; | |
31821 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31822 | int result; | |
31823 | PyObject * obj0 = 0 ; | |
31824 | char *kwnames[] = { | |
31825 | (char *) "self", NULL | |
31826 | }; | |
31827 | ||
31828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
31829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31831 | { | |
31832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31833 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
31834 | ||
31835 | wxPyEndAllowThreads(__tstate); | |
31836 | if (PyErr_Occurred()) SWIG_fail; | |
31837 | } | |
31838 | resultobj = SWIG_FromInt((int)result); | |
31839 | return resultobj; | |
31840 | fail: | |
31841 | return NULL; | |
31842 | } | |
31843 | ||
31844 | ||
31845 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31846 | PyObject *resultobj; | |
31847 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31848 | bool result; | |
31849 | PyObject * obj0 = 0 ; | |
31850 | char *kwnames[] = { | |
31851 | (char *) "self", NULL | |
31852 | }; | |
31853 | ||
31854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
31855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31857 | { | |
31858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31859 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
31860 | ||
31861 | wxPyEndAllowThreads(__tstate); | |
31862 | if (PyErr_Occurred()) SWIG_fail; | |
31863 | } | |
31864 | { | |
31865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31866 | } | |
31867 | return resultobj; | |
31868 | fail: | |
31869 | return NULL; | |
31870 | } | |
31871 | ||
31872 | ||
31873 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31874 | PyObject *resultobj; | |
31875 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31876 | wxString *arg2 = 0 ; | |
31877 | bool temp2 = False ; | |
31878 | PyObject * obj0 = 0 ; | |
31879 | PyObject * obj1 = 0 ; | |
31880 | char *kwnames[] = { | |
31881 | (char *) "self",(char *) "str", NULL | |
31882 | }; | |
31883 | ||
31884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
31885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31887 | { | |
31888 | arg2 = wxString_in_helper(obj1); | |
31889 | if (arg2 == NULL) SWIG_fail; | |
31890 | temp2 = True; | |
31891 | } | |
31892 | { | |
31893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31894 | (arg1)->SetText((wxString const &)*arg2); | |
31895 | ||
31896 | wxPyEndAllowThreads(__tstate); | |
31897 | if (PyErr_Occurred()) SWIG_fail; | |
31898 | } | |
31899 | Py_INCREF(Py_None); resultobj = Py_None; | |
31900 | { | |
31901 | if (temp2) | |
31902 | delete arg2; | |
31903 | } | |
31904 | return resultobj; | |
31905 | fail: | |
31906 | { | |
31907 | if (temp2) | |
31908 | delete arg2; | |
31909 | } | |
31910 | return NULL; | |
31911 | } | |
31912 | ||
31913 | ||
31914 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31915 | PyObject *resultobj; | |
31916 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31917 | wxString result; | |
31918 | PyObject * obj0 = 0 ; | |
31919 | char *kwnames[] = { | |
31920 | (char *) "self", NULL | |
31921 | }; | |
31922 | ||
31923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
31924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31926 | { | |
31927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31928 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
31929 | ||
31930 | wxPyEndAllowThreads(__tstate); | |
31931 | if (PyErr_Occurred()) SWIG_fail; | |
31932 | } | |
31933 | { | |
31934 | #if wxUSE_UNICODE | |
31935 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31936 | #else | |
31937 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31938 | #endif | |
31939 | } | |
31940 | return resultobj; | |
31941 | fail: | |
31942 | return NULL; | |
31943 | } | |
31944 | ||
31945 | ||
31946 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31947 | PyObject *resultobj; | |
31948 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31949 | wxString *result; | |
31950 | PyObject * obj0 = 0 ; | |
31951 | char *kwnames[] = { | |
31952 | (char *) "self", NULL | |
31953 | }; | |
31954 | ||
31955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
31956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31958 | { | |
31959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31960 | { | |
31961 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
31962 | result = (wxString *) &_result_ref; | |
31963 | } | |
31964 | ||
31965 | wxPyEndAllowThreads(__tstate); | |
31966 | if (PyErr_Occurred()) SWIG_fail; | |
31967 | } | |
31968 | { | |
31969 | #if wxUSE_UNICODE | |
31970 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
31971 | #else | |
31972 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
31973 | #endif | |
31974 | } | |
31975 | return resultobj; | |
31976 | fail: | |
31977 | return NULL; | |
31978 | } | |
31979 | ||
31980 | ||
31981 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31982 | PyObject *resultobj; | |
31983 | wxString *arg1 = 0 ; | |
31984 | wxString result; | |
31985 | bool temp1 = False ; | |
31986 | PyObject * obj0 = 0 ; | |
31987 | char *kwnames[] = { | |
31988 | (char *) "text", NULL | |
31989 | }; | |
31990 | ||
31991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
31992 | { | |
31993 | arg1 = wxString_in_helper(obj0); | |
31994 | if (arg1 == NULL) SWIG_fail; | |
31995 | temp1 = True; | |
31996 | } | |
31997 | { | |
31998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31999 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
32000 | ||
32001 | wxPyEndAllowThreads(__tstate); | |
32002 | if (PyErr_Occurred()) SWIG_fail; | |
32003 | } | |
32004 | { | |
32005 | #if wxUSE_UNICODE | |
32006 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32007 | #else | |
32008 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32009 | #endif | |
32010 | } | |
32011 | { | |
32012 | if (temp1) | |
32013 | delete arg1; | |
32014 | } | |
32015 | return resultobj; | |
32016 | fail: | |
32017 | { | |
32018 | if (temp1) | |
32019 | delete arg1; | |
32020 | } | |
32021 | return NULL; | |
32022 | } | |
32023 | ||
32024 | ||
32025 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32026 | PyObject *resultobj; | |
32027 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32028 | int result; | |
32029 | PyObject * obj0 = 0 ; | |
32030 | char *kwnames[] = { | |
32031 | (char *) "self", NULL | |
32032 | }; | |
32033 | ||
32034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
32035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32037 | { | |
32038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32039 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
32040 | ||
32041 | wxPyEndAllowThreads(__tstate); | |
32042 | if (PyErr_Occurred()) SWIG_fail; | |
32043 | } | |
32044 | resultobj = SWIG_FromInt((int)result); | |
32045 | return resultobj; | |
32046 | fail: | |
32047 | return NULL; | |
32048 | } | |
32049 | ||
32050 | ||
32051 | static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32052 | PyObject *resultobj; | |
32053 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32054 | int arg2 ; | |
32055 | PyObject * obj0 = 0 ; | |
32056 | PyObject * obj1 = 0 ; | |
32057 | char *kwnames[] = { | |
32058 | (char *) "self",(char *) "kind", NULL | |
32059 | }; | |
32060 | ||
32061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
32062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32064 | arg2 = (wxItemKind) SWIG_AsInt(obj1); | |
32065 | if (PyErr_Occurred()) SWIG_fail; | |
32066 | { | |
32067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32068 | (arg1)->SetKind((wxItemKind )arg2); | |
32069 | ||
32070 | wxPyEndAllowThreads(__tstate); | |
32071 | if (PyErr_Occurred()) SWIG_fail; | |
32072 | } | |
32073 | Py_INCREF(Py_None); resultobj = Py_None; | |
32074 | return resultobj; | |
32075 | fail: | |
32076 | return NULL; | |
32077 | } | |
32078 | ||
32079 | ||
32080 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32081 | PyObject *resultobj; | |
32082 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32083 | bool arg2 ; | |
32084 | PyObject * obj0 = 0 ; | |
32085 | PyObject * obj1 = 0 ; | |
32086 | char *kwnames[] = { | |
32087 | (char *) "self",(char *) "checkable", NULL | |
32088 | }; | |
32089 | ||
32090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
32091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32093 | arg2 = (bool) SWIG_AsBool(obj1); | |
32094 | if (PyErr_Occurred()) SWIG_fail; | |
32095 | { | |
32096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32097 | (arg1)->SetCheckable(arg2); | |
32098 | ||
32099 | wxPyEndAllowThreads(__tstate); | |
32100 | if (PyErr_Occurred()) SWIG_fail; | |
32101 | } | |
32102 | Py_INCREF(Py_None); resultobj = Py_None; | |
32103 | return resultobj; | |
32104 | fail: | |
32105 | return NULL; | |
32106 | } | |
32107 | ||
32108 | ||
32109 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32110 | PyObject *resultobj; | |
32111 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32112 | bool result; | |
32113 | PyObject * obj0 = 0 ; | |
32114 | char *kwnames[] = { | |
32115 | (char *) "self", NULL | |
32116 | }; | |
32117 | ||
32118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
32119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32121 | { | |
32122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32123 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
32124 | ||
32125 | wxPyEndAllowThreads(__tstate); | |
32126 | if (PyErr_Occurred()) SWIG_fail; | |
32127 | } | |
32128 | { | |
32129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32130 | } | |
32131 | return resultobj; | |
32132 | fail: | |
32133 | return NULL; | |
32134 | } | |
32135 | ||
32136 | ||
32137 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32138 | PyObject *resultobj; | |
32139 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32140 | bool result; | |
32141 | PyObject * obj0 = 0 ; | |
32142 | char *kwnames[] = { | |
32143 | (char *) "self", NULL | |
32144 | }; | |
32145 | ||
32146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
32147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32149 | { | |
32150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32151 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
32152 | ||
32153 | wxPyEndAllowThreads(__tstate); | |
32154 | if (PyErr_Occurred()) SWIG_fail; | |
32155 | } | |
32156 | { | |
32157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32158 | } | |
32159 | return resultobj; | |
32160 | fail: | |
32161 | return NULL; | |
32162 | } | |
32163 | ||
32164 | ||
32165 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32166 | PyObject *resultobj; | |
32167 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32168 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32169 | PyObject * obj0 = 0 ; | |
32170 | PyObject * obj1 = 0 ; | |
32171 | char *kwnames[] = { | |
32172 | (char *) "self",(char *) "menu", NULL | |
32173 | }; | |
32174 | ||
32175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
32176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32178 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32180 | { | |
32181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32182 | (arg1)->SetSubMenu(arg2); | |
32183 | ||
32184 | wxPyEndAllowThreads(__tstate); | |
32185 | if (PyErr_Occurred()) SWIG_fail; | |
32186 | } | |
32187 | Py_INCREF(Py_None); resultobj = Py_None; | |
32188 | return resultobj; | |
32189 | fail: | |
32190 | return NULL; | |
32191 | } | |
32192 | ||
32193 | ||
32194 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32195 | PyObject *resultobj; | |
32196 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32197 | wxMenu *result; | |
32198 | PyObject * obj0 = 0 ; | |
32199 | char *kwnames[] = { | |
32200 | (char *) "self", NULL | |
32201 | }; | |
32202 | ||
32203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
32204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32206 | { | |
32207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32208 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
32209 | ||
32210 | wxPyEndAllowThreads(__tstate); | |
32211 | if (PyErr_Occurred()) SWIG_fail; | |
32212 | } | |
32213 | { | |
32214 | resultobj = wxPyMake_wxObject(result); | |
32215 | } | |
32216 | return resultobj; | |
32217 | fail: | |
32218 | return NULL; | |
32219 | } | |
32220 | ||
32221 | ||
32222 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32223 | PyObject *resultobj; | |
32224 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32225 | bool arg2 = (bool) True ; | |
32226 | PyObject * obj0 = 0 ; | |
32227 | PyObject * obj1 = 0 ; | |
32228 | char *kwnames[] = { | |
32229 | (char *) "self",(char *) "enable", NULL | |
32230 | }; | |
32231 | ||
32232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
32233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32235 | if (obj1) { | |
32236 | arg2 = (bool) SWIG_AsBool(obj1); | |
32237 | if (PyErr_Occurred()) SWIG_fail; | |
32238 | } | |
32239 | { | |
32240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32241 | (arg1)->Enable(arg2); | |
32242 | ||
32243 | wxPyEndAllowThreads(__tstate); | |
32244 | if (PyErr_Occurred()) SWIG_fail; | |
32245 | } | |
32246 | Py_INCREF(Py_None); resultobj = Py_None; | |
32247 | return resultobj; | |
32248 | fail: | |
32249 | return NULL; | |
32250 | } | |
32251 | ||
32252 | ||
32253 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32254 | PyObject *resultobj; | |
32255 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32256 | bool result; | |
32257 | PyObject * obj0 = 0 ; | |
32258 | char *kwnames[] = { | |
32259 | (char *) "self", NULL | |
32260 | }; | |
32261 | ||
32262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
32263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32265 | { | |
32266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32267 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
32268 | ||
32269 | wxPyEndAllowThreads(__tstate); | |
32270 | if (PyErr_Occurred()) SWIG_fail; | |
32271 | } | |
32272 | { | |
32273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32274 | } | |
32275 | return resultobj; | |
32276 | fail: | |
32277 | return NULL; | |
32278 | } | |
32279 | ||
32280 | ||
32281 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32282 | PyObject *resultobj; | |
32283 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32284 | bool arg2 = (bool) True ; | |
32285 | PyObject * obj0 = 0 ; | |
32286 | PyObject * obj1 = 0 ; | |
32287 | char *kwnames[] = { | |
32288 | (char *) "self",(char *) "check", NULL | |
32289 | }; | |
32290 | ||
32291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
32292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32294 | if (obj1) { | |
32295 | arg2 = (bool) SWIG_AsBool(obj1); | |
32296 | if (PyErr_Occurred()) SWIG_fail; | |
32297 | } | |
32298 | { | |
32299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32300 | (arg1)->Check(arg2); | |
32301 | ||
32302 | wxPyEndAllowThreads(__tstate); | |
32303 | if (PyErr_Occurred()) SWIG_fail; | |
32304 | } | |
32305 | Py_INCREF(Py_None); resultobj = Py_None; | |
32306 | return resultobj; | |
32307 | fail: | |
32308 | return NULL; | |
32309 | } | |
32310 | ||
32311 | ||
32312 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32313 | PyObject *resultobj; | |
32314 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32315 | bool result; | |
32316 | PyObject * obj0 = 0 ; | |
32317 | char *kwnames[] = { | |
32318 | (char *) "self", NULL | |
32319 | }; | |
32320 | ||
32321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
32322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32324 | { | |
32325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32326 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
32327 | ||
32328 | wxPyEndAllowThreads(__tstate); | |
32329 | if (PyErr_Occurred()) SWIG_fail; | |
32330 | } | |
32331 | { | |
32332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32333 | } | |
32334 | return resultobj; | |
32335 | fail: | |
32336 | return NULL; | |
32337 | } | |
32338 | ||
32339 | ||
32340 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32341 | PyObject *resultobj; | |
32342 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32343 | PyObject * obj0 = 0 ; | |
32344 | char *kwnames[] = { | |
32345 | (char *) "self", NULL | |
32346 | }; | |
32347 | ||
32348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
32349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32351 | { | |
32352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32353 | (arg1)->Toggle(); | |
32354 | ||
32355 | wxPyEndAllowThreads(__tstate); | |
32356 | if (PyErr_Occurred()) SWIG_fail; | |
32357 | } | |
32358 | Py_INCREF(Py_None); resultobj = Py_None; | |
32359 | return resultobj; | |
32360 | fail: | |
32361 | return NULL; | |
32362 | } | |
32363 | ||
32364 | ||
32365 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32366 | PyObject *resultobj; | |
32367 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32368 | wxString *arg2 = 0 ; | |
32369 | bool temp2 = False ; | |
32370 | PyObject * obj0 = 0 ; | |
32371 | PyObject * obj1 = 0 ; | |
32372 | char *kwnames[] = { | |
32373 | (char *) "self",(char *) "str", NULL | |
32374 | }; | |
32375 | ||
32376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
32377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32379 | { | |
32380 | arg2 = wxString_in_helper(obj1); | |
32381 | if (arg2 == NULL) SWIG_fail; | |
32382 | temp2 = True; | |
32383 | } | |
32384 | { | |
32385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32386 | (arg1)->SetHelp((wxString const &)*arg2); | |
32387 | ||
32388 | wxPyEndAllowThreads(__tstate); | |
32389 | if (PyErr_Occurred()) SWIG_fail; | |
32390 | } | |
32391 | Py_INCREF(Py_None); resultobj = Py_None; | |
32392 | { | |
32393 | if (temp2) | |
32394 | delete arg2; | |
32395 | } | |
32396 | return resultobj; | |
32397 | fail: | |
32398 | { | |
32399 | if (temp2) | |
32400 | delete arg2; | |
32401 | } | |
32402 | return NULL; | |
32403 | } | |
32404 | ||
32405 | ||
32406 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32407 | PyObject *resultobj; | |
32408 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32409 | wxString *result; | |
32410 | PyObject * obj0 = 0 ; | |
32411 | char *kwnames[] = { | |
32412 | (char *) "self", NULL | |
32413 | }; | |
32414 | ||
32415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
32416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32418 | { | |
32419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32420 | { | |
32421 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
32422 | result = (wxString *) &_result_ref; | |
32423 | } | |
32424 | ||
32425 | wxPyEndAllowThreads(__tstate); | |
32426 | if (PyErr_Occurred()) SWIG_fail; | |
32427 | } | |
32428 | { | |
32429 | #if wxUSE_UNICODE | |
32430 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32431 | #else | |
32432 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32433 | #endif | |
32434 | } | |
32435 | return resultobj; | |
32436 | fail: | |
32437 | return NULL; | |
32438 | } | |
32439 | ||
32440 | ||
32441 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32442 | PyObject *resultobj; | |
32443 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32444 | wxAcceleratorEntry *result; | |
32445 | PyObject * obj0 = 0 ; | |
32446 | char *kwnames[] = { | |
32447 | (char *) "self", NULL | |
32448 | }; | |
32449 | ||
32450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
32451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32453 | { | |
32454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32455 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
32456 | ||
32457 | wxPyEndAllowThreads(__tstate); | |
32458 | if (PyErr_Occurred()) SWIG_fail; | |
32459 | } | |
32460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
32461 | return resultobj; | |
32462 | fail: | |
32463 | return NULL; | |
32464 | } | |
32465 | ||
32466 | ||
32467 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32468 | PyObject *resultobj; | |
32469 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32470 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
32471 | PyObject * obj0 = 0 ; | |
32472 | PyObject * obj1 = 0 ; | |
32473 | char *kwnames[] = { | |
32474 | (char *) "self",(char *) "accel", NULL | |
32475 | }; | |
32476 | ||
32477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
32478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32480 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
32481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32482 | { | |
32483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32484 | (arg1)->SetAccel(arg2); | |
32485 | ||
32486 | wxPyEndAllowThreads(__tstate); | |
32487 | if (PyErr_Occurred()) SWIG_fail; | |
32488 | } | |
32489 | Py_INCREF(Py_None); resultobj = Py_None; | |
32490 | return resultobj; | |
32491 | fail: | |
32492 | return NULL; | |
32493 | } | |
32494 | ||
32495 | ||
32496 | static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32497 | PyObject *resultobj; | |
32498 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32499 | wxFont *arg2 = 0 ; | |
32500 | PyObject * obj0 = 0 ; | |
32501 | PyObject * obj1 = 0 ; | |
32502 | char *kwnames[] = { | |
32503 | (char *) "self",(char *) "font", NULL | |
32504 | }; | |
32505 | ||
32506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
32507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32509 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
32510 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32511 | SWIG_fail; | |
32512 | if (arg2 == NULL) { | |
32513 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32514 | SWIG_fail; | |
32515 | } | |
32516 | { | |
32517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32518 | (arg1)->SetFont((wxFont const &)*arg2); | |
32519 | ||
32520 | wxPyEndAllowThreads(__tstate); | |
32521 | if (PyErr_Occurred()) SWIG_fail; | |
32522 | } | |
32523 | Py_INCREF(Py_None); resultobj = Py_None; | |
32524 | return resultobj; | |
32525 | fail: | |
32526 | return NULL; | |
32527 | } | |
32528 | ||
32529 | ||
32530 | static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32531 | PyObject *resultobj; | |
32532 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32533 | wxFont result; | |
32534 | PyObject * obj0 = 0 ; | |
32535 | char *kwnames[] = { | |
32536 | (char *) "self", NULL | |
32537 | }; | |
32538 | ||
32539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
32540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32542 | { | |
32543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32544 | result = (arg1)->GetFont(); | |
32545 | ||
32546 | wxPyEndAllowThreads(__tstate); | |
32547 | if (PyErr_Occurred()) SWIG_fail; | |
32548 | } | |
32549 | { | |
32550 | wxFont * resultptr; | |
32551 | resultptr = new wxFont((wxFont &) result); | |
32552 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
32553 | } | |
32554 | return resultobj; | |
32555 | fail: | |
32556 | return NULL; | |
32557 | } | |
32558 | ||
32559 | ||
32560 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32561 | PyObject *resultobj; | |
32562 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32563 | wxColour *arg2 = 0 ; | |
32564 | wxColour temp2 ; | |
32565 | PyObject * obj0 = 0 ; | |
32566 | PyObject * obj1 = 0 ; | |
32567 | char *kwnames[] = { | |
32568 | (char *) "self",(char *) "colText", NULL | |
32569 | }; | |
32570 | ||
32571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
32572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32574 | { | |
32575 | arg2 = &temp2; | |
32576 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32577 | } | |
32578 | { | |
32579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32580 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
32581 | ||
32582 | wxPyEndAllowThreads(__tstate); | |
32583 | if (PyErr_Occurred()) SWIG_fail; | |
32584 | } | |
32585 | Py_INCREF(Py_None); resultobj = Py_None; | |
32586 | return resultobj; | |
32587 | fail: | |
32588 | return NULL; | |
32589 | } | |
32590 | ||
32591 | ||
32592 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32593 | PyObject *resultobj; | |
32594 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32595 | wxColour result; | |
32596 | PyObject * obj0 = 0 ; | |
32597 | char *kwnames[] = { | |
32598 | (char *) "self", NULL | |
32599 | }; | |
32600 | ||
32601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
32602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32604 | { | |
32605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32606 | result = (arg1)->GetTextColour(); | |
32607 | ||
32608 | wxPyEndAllowThreads(__tstate); | |
32609 | if (PyErr_Occurred()) SWIG_fail; | |
32610 | } | |
32611 | { | |
32612 | wxColour * resultptr; | |
32613 | resultptr = new wxColour((wxColour &) result); | |
32614 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
32615 | } | |
32616 | return resultobj; | |
32617 | fail: | |
32618 | return NULL; | |
32619 | } | |
32620 | ||
32621 | ||
32622 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32623 | PyObject *resultobj; | |
32624 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32625 | wxColour *arg2 = 0 ; | |
32626 | wxColour temp2 ; | |
32627 | PyObject * obj0 = 0 ; | |
32628 | PyObject * obj1 = 0 ; | |
32629 | char *kwnames[] = { | |
32630 | (char *) "self",(char *) "colBack", NULL | |
32631 | }; | |
32632 | ||
32633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
32634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32636 | { | |
32637 | arg2 = &temp2; | |
32638 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32639 | } | |
32640 | { | |
32641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32642 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
32643 | ||
32644 | wxPyEndAllowThreads(__tstate); | |
32645 | if (PyErr_Occurred()) SWIG_fail; | |
32646 | } | |
32647 | Py_INCREF(Py_None); resultobj = Py_None; | |
32648 | return resultobj; | |
32649 | fail: | |
32650 | return NULL; | |
32651 | } | |
32652 | ||
32653 | ||
32654 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32655 | PyObject *resultobj; | |
32656 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32657 | wxColour result; | |
32658 | PyObject * obj0 = 0 ; | |
32659 | char *kwnames[] = { | |
32660 | (char *) "self", NULL | |
32661 | }; | |
32662 | ||
32663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
32664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32666 | { | |
32667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32668 | result = (arg1)->GetBackgroundColour(); | |
32669 | ||
32670 | wxPyEndAllowThreads(__tstate); | |
32671 | if (PyErr_Occurred()) SWIG_fail; | |
32672 | } | |
32673 | { | |
32674 | wxColour * resultptr; | |
32675 | resultptr = new wxColour((wxColour &) result); | |
32676 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
32677 | } | |
32678 | return resultobj; | |
32679 | fail: | |
32680 | return NULL; | |
32681 | } | |
32682 | ||
32683 | ||
32684 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32685 | PyObject *resultobj; | |
32686 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32687 | wxBitmap *arg2 = 0 ; | |
32688 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
32689 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
32690 | PyObject * obj0 = 0 ; | |
32691 | PyObject * obj1 = 0 ; | |
32692 | PyObject * obj2 = 0 ; | |
32693 | char *kwnames[] = { | |
32694 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
32695 | }; | |
32696 | ||
32697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32700 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
32701 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32702 | SWIG_fail; | |
32703 | if (arg2 == NULL) { | |
32704 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32705 | SWIG_fail; | |
32706 | } | |
32707 | if (obj2) { | |
32708 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
32709 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32710 | SWIG_fail; | |
32711 | if (arg3 == NULL) { | |
32712 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32713 | SWIG_fail; | |
32714 | } | |
32715 | } | |
32716 | { | |
32717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32718 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
32719 | ||
32720 | wxPyEndAllowThreads(__tstate); | |
32721 | if (PyErr_Occurred()) SWIG_fail; | |
32722 | } | |
32723 | Py_INCREF(Py_None); resultobj = Py_None; | |
32724 | return resultobj; | |
32725 | fail: | |
32726 | return NULL; | |
32727 | } | |
32728 | ||
32729 | ||
32730 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32731 | PyObject *resultobj; | |
32732 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32733 | wxBitmap *arg2 = 0 ; | |
32734 | PyObject * obj0 = 0 ; | |
32735 | PyObject * obj1 = 0 ; | |
32736 | char *kwnames[] = { | |
32737 | (char *) "self",(char *) "bmpDisabled", NULL | |
32738 | }; | |
32739 | ||
32740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
32741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32743 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
32744 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32745 | SWIG_fail; | |
32746 | if (arg2 == NULL) { | |
32747 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32748 | SWIG_fail; | |
32749 | } | |
32750 | { | |
32751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32752 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
32753 | ||
32754 | wxPyEndAllowThreads(__tstate); | |
32755 | if (PyErr_Occurred()) SWIG_fail; | |
32756 | } | |
32757 | Py_INCREF(Py_None); resultobj = Py_None; | |
32758 | return resultobj; | |
32759 | fail: | |
32760 | return NULL; | |
32761 | } | |
32762 | ||
32763 | ||
32764 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32765 | PyObject *resultobj; | |
32766 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32767 | wxBitmap *result; | |
32768 | PyObject * obj0 = 0 ; | |
32769 | char *kwnames[] = { | |
32770 | (char *) "self", NULL | |
32771 | }; | |
32772 | ||
32773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
32774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32776 | { | |
32777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32778 | { | |
32779 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
32780 | result = (wxBitmap *) &_result_ref; | |
32781 | } | |
32782 | ||
32783 | wxPyEndAllowThreads(__tstate); | |
32784 | if (PyErr_Occurred()) SWIG_fail; | |
32785 | } | |
32786 | { | |
32787 | wxBitmap* resultptr = new wxBitmap(*result); | |
32788 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
32789 | } | |
32790 | return resultobj; | |
32791 | fail: | |
32792 | return NULL; | |
32793 | } | |
32794 | ||
32795 | ||
32796 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32797 | PyObject *resultobj; | |
32798 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32799 | int arg2 ; | |
32800 | PyObject * obj0 = 0 ; | |
32801 | PyObject * obj1 = 0 ; | |
32802 | char *kwnames[] = { | |
32803 | (char *) "self",(char *) "nWidth", NULL | |
32804 | }; | |
32805 | ||
32806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; | |
32807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32809 | arg2 = (int) SWIG_AsInt(obj1); | |
32810 | if (PyErr_Occurred()) SWIG_fail; | |
32811 | { | |
32812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32813 | (arg1)->SetMarginWidth(arg2); | |
32814 | ||
32815 | wxPyEndAllowThreads(__tstate); | |
32816 | if (PyErr_Occurred()) SWIG_fail; | |
32817 | } | |
32818 | Py_INCREF(Py_None); resultobj = Py_None; | |
32819 | return resultobj; | |
32820 | fail: | |
32821 | return NULL; | |
32822 | } | |
32823 | ||
32824 | ||
32825 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32826 | PyObject *resultobj; | |
32827 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32828 | int result; | |
32829 | PyObject * obj0 = 0 ; | |
32830 | char *kwnames[] = { | |
32831 | (char *) "self", NULL | |
32832 | }; | |
32833 | ||
32834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
32835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32837 | { | |
32838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32839 | result = (int)(arg1)->GetMarginWidth(); | |
32840 | ||
32841 | wxPyEndAllowThreads(__tstate); | |
32842 | if (PyErr_Occurred()) SWIG_fail; | |
32843 | } | |
32844 | resultobj = SWIG_FromInt((int)result); | |
32845 | return resultobj; | |
32846 | fail: | |
32847 | return NULL; | |
32848 | } | |
32849 | ||
32850 | ||
32851 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32852 | PyObject *resultobj; | |
32853 | int result; | |
32854 | char *kwnames[] = { | |
32855 | NULL | |
32856 | }; | |
32857 | ||
32858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
32859 | { | |
32860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32861 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
32862 | ||
32863 | wxPyEndAllowThreads(__tstate); | |
32864 | if (PyErr_Occurred()) SWIG_fail; | |
32865 | } | |
32866 | resultobj = SWIG_FromInt((int)result); | |
32867 | return resultobj; | |
32868 | fail: | |
32869 | return NULL; | |
32870 | } | |
32871 | ||
32872 | ||
32873 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32874 | PyObject *resultobj; | |
32875 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32876 | bool result; | |
32877 | PyObject * obj0 = 0 ; | |
32878 | char *kwnames[] = { | |
32879 | (char *) "self", NULL | |
32880 | }; | |
32881 | ||
32882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
32883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32885 | { | |
32886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32887 | result = (bool)(arg1)->IsOwnerDrawn(); | |
32888 | ||
32889 | wxPyEndAllowThreads(__tstate); | |
32890 | if (PyErr_Occurred()) SWIG_fail; | |
32891 | } | |
32892 | { | |
32893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32894 | } | |
32895 | return resultobj; | |
32896 | fail: | |
32897 | return NULL; | |
32898 | } | |
32899 | ||
32900 | ||
32901 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32902 | PyObject *resultobj; | |
32903 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32904 | bool arg2 = (bool) True ; | |
32905 | PyObject * obj0 = 0 ; | |
32906 | PyObject * obj1 = 0 ; | |
32907 | char *kwnames[] = { | |
32908 | (char *) "self",(char *) "ownerDrawn", NULL | |
32909 | }; | |
32910 | ||
32911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
32912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32914 | if (obj1) { | |
32915 | arg2 = (bool) SWIG_AsBool(obj1); | |
32916 | if (PyErr_Occurred()) SWIG_fail; | |
32917 | } | |
32918 | { | |
32919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32920 | (arg1)->SetOwnerDrawn(arg2); | |
32921 | ||
32922 | wxPyEndAllowThreads(__tstate); | |
32923 | if (PyErr_Occurred()) SWIG_fail; | |
32924 | } | |
32925 | Py_INCREF(Py_None); resultobj = Py_None; | |
32926 | return resultobj; | |
32927 | fail: | |
32928 | return NULL; | |
32929 | } | |
32930 | ||
32931 | ||
32932 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32933 | PyObject *resultobj; | |
32934 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32935 | PyObject * obj0 = 0 ; | |
32936 | char *kwnames[] = { | |
32937 | (char *) "self", NULL | |
32938 | }; | |
32939 | ||
32940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
32941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32943 | { | |
32944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32945 | (arg1)->ResetOwnerDrawn(); | |
32946 | ||
32947 | wxPyEndAllowThreads(__tstate); | |
32948 | if (PyErr_Occurred()) SWIG_fail; | |
32949 | } | |
32950 | Py_INCREF(Py_None); resultobj = Py_None; | |
32951 | return resultobj; | |
32952 | fail: | |
32953 | return NULL; | |
32954 | } | |
32955 | ||
32956 | ||
32957 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32958 | PyObject *resultobj; | |
32959 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32960 | wxBitmap *arg2 = 0 ; | |
32961 | PyObject * obj0 = 0 ; | |
32962 | PyObject * obj1 = 0 ; | |
32963 | char *kwnames[] = { | |
32964 | (char *) "self",(char *) "bitmap", NULL | |
32965 | }; | |
32966 | ||
32967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
32968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32970 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
32971 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32972 | SWIG_fail; | |
32973 | if (arg2 == NULL) { | |
32974 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32975 | SWIG_fail; | |
32976 | } | |
32977 | { | |
32978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32979 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
32980 | ||
32981 | wxPyEndAllowThreads(__tstate); | |
32982 | if (PyErr_Occurred()) SWIG_fail; | |
32983 | } | |
32984 | Py_INCREF(Py_None); resultobj = Py_None; | |
32985 | return resultobj; | |
32986 | fail: | |
32987 | return NULL; | |
32988 | } | |
32989 | ||
32990 | ||
32991 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32992 | PyObject *resultobj; | |
32993 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32994 | wxBitmap *result; | |
32995 | PyObject * obj0 = 0 ; | |
32996 | char *kwnames[] = { | |
32997 | (char *) "self", NULL | |
32998 | }; | |
32999 | ||
33000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
33001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33003 | { | |
33004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33005 | { | |
33006 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
33007 | result = (wxBitmap *) &_result_ref; | |
33008 | } | |
33009 | ||
33010 | wxPyEndAllowThreads(__tstate); | |
33011 | if (PyErr_Occurred()) SWIG_fail; | |
33012 | } | |
33013 | { | |
33014 | wxBitmap* resultptr = new wxBitmap(*result); | |
33015 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33016 | } | |
33017 | return resultobj; | |
33018 | fail: | |
33019 | return NULL; | |
33020 | } | |
33021 | ||
33022 | ||
33023 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
33024 | PyObject *obj; | |
33025 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33026 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
33027 | Py_INCREF(obj); | |
33028 | return Py_BuildValue((char *)""); | |
33029 | } | |
33030 | static int _wrap_ControlNameStr_set(PyObject *_val) { | |
33031 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); | |
33032 | return 1; | |
33033 | } | |
33034 | ||
33035 | ||
33036 | static PyObject *_wrap_ControlNameStr_get() { | |
33037 | PyObject *pyobj; | |
33038 | ||
33039 | { | |
33040 | #if wxUSE_UNICODE | |
33041 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33042 | #else | |
33043 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33044 | #endif | |
33045 | } | |
33046 | return pyobj; | |
33047 | } | |
33048 | ||
33049 | ||
33050 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33051 | PyObject *resultobj; | |
33052 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33053 | int arg2 ; | |
33054 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
33055 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33056 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33057 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33058 | long arg5 = (long) 0 ; | |
33059 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
33060 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
33061 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
33062 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33063 | wxControl *result; | |
33064 | wxPoint temp3 ; | |
33065 | wxSize temp4 ; | |
33066 | bool temp7 = False ; | |
33067 | PyObject * obj0 = 0 ; | |
33068 | PyObject * obj1 = 0 ; | |
33069 | PyObject * obj2 = 0 ; | |
33070 | PyObject * obj3 = 0 ; | |
33071 | PyObject * obj4 = 0 ; | |
33072 | PyObject * obj5 = 0 ; | |
33073 | PyObject * obj6 = 0 ; | |
33074 | char *kwnames[] = { | |
33075 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33076 | }; | |
33077 | ||
33078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
33079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
33080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33081 | arg2 = (int) SWIG_AsInt(obj1); | |
33082 | if (PyErr_Occurred()) SWIG_fail; | |
33083 | if (obj2) { | |
33084 | { | |
33085 | arg3 = &temp3; | |
33086 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33087 | } | |
33088 | } | |
33089 | if (obj3) { | |
33090 | { | |
33091 | arg4 = &temp4; | |
33092 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33093 | } | |
33094 | } | |
33095 | if (obj4) { | |
33096 | arg5 = (long) SWIG_AsLong(obj4); | |
33097 | if (PyErr_Occurred()) SWIG_fail; | |
33098 | } | |
33099 | if (obj5) { | |
33100 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
33101 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33102 | SWIG_fail; | |
33103 | if (arg6 == NULL) { | |
33104 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33105 | SWIG_fail; | |
33106 | } | |
33107 | } | |
33108 | if (obj6) { | |
33109 | { | |
33110 | arg7 = wxString_in_helper(obj6); | |
33111 | if (arg7 == NULL) SWIG_fail; | |
33112 | temp7 = True; | |
33113 | } | |
33114 | } | |
33115 | { | |
33116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33117 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
33118 | ||
33119 | wxPyEndAllowThreads(__tstate); | |
33120 | if (PyErr_Occurred()) SWIG_fail; | |
33121 | } | |
33122 | { | |
33123 | resultobj = wxPyMake_wxObject(result); | |
33124 | } | |
33125 | { | |
33126 | if (temp7) | |
33127 | delete arg7; | |
33128 | } | |
33129 | return resultobj; | |
33130 | fail: | |
33131 | { | |
33132 | if (temp7) | |
33133 | delete arg7; | |
33134 | } | |
33135 | return NULL; | |
33136 | } | |
33137 | ||
33138 | ||
33139 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33140 | PyObject *resultobj; | |
33141 | wxControl *result; | |
33142 | char *kwnames[] = { | |
33143 | NULL | |
33144 | }; | |
33145 | ||
33146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
33147 | { | |
33148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33149 | result = (wxControl *)new wxControl(); | |
33150 | ||
33151 | wxPyEndAllowThreads(__tstate); | |
33152 | if (PyErr_Occurred()) SWIG_fail; | |
33153 | } | |
33154 | { | |
33155 | resultobj = wxPyMake_wxObject(result); | |
33156 | } | |
33157 | return resultobj; | |
33158 | fail: | |
33159 | return NULL; | |
33160 | } | |
33161 | ||
33162 | ||
33163 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33164 | PyObject *resultobj; | |
33165 | wxControl *arg1 = (wxControl *) 0 ; | |
33166 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33167 | int arg3 ; | |
33168 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
33169 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
33170 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
33171 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
33172 | long arg6 = (long) 0 ; | |
33173 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
33174 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
33175 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
33176 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
33177 | bool result; | |
33178 | wxPoint temp4 ; | |
33179 | wxSize temp5 ; | |
33180 | bool temp8 = False ; | |
33181 | PyObject * obj0 = 0 ; | |
33182 | PyObject * obj1 = 0 ; | |
33183 | PyObject * obj2 = 0 ; | |
33184 | PyObject * obj3 = 0 ; | |
33185 | PyObject * obj4 = 0 ; | |
33186 | PyObject * obj5 = 0 ; | |
33187 | PyObject * obj6 = 0 ; | |
33188 | PyObject * obj7 = 0 ; | |
33189 | char *kwnames[] = { | |
33190 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33191 | }; | |
33192 | ||
33193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
33194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33196 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33198 | arg3 = (int) SWIG_AsInt(obj2); | |
33199 | if (PyErr_Occurred()) SWIG_fail; | |
33200 | if (obj3) { | |
33201 | { | |
33202 | arg4 = &temp4; | |
33203 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
33204 | } | |
33205 | } | |
33206 | if (obj4) { | |
33207 | { | |
33208 | arg5 = &temp5; | |
33209 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
33210 | } | |
33211 | } | |
33212 | if (obj5) { | |
33213 | arg6 = (long) SWIG_AsLong(obj5); | |
33214 | if (PyErr_Occurred()) SWIG_fail; | |
33215 | } | |
33216 | if (obj6) { | |
33217 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
33218 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33219 | SWIG_fail; | |
33220 | if (arg7 == NULL) { | |
33221 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33222 | SWIG_fail; | |
33223 | } | |
33224 | } | |
33225 | if (obj7) { | |
33226 | { | |
33227 | arg8 = wxString_in_helper(obj7); | |
33228 | if (arg8 == NULL) SWIG_fail; | |
33229 | temp8 = True; | |
33230 | } | |
33231 | } | |
33232 | { | |
33233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33234 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
33235 | ||
33236 | wxPyEndAllowThreads(__tstate); | |
33237 | if (PyErr_Occurred()) SWIG_fail; | |
33238 | } | |
33239 | { | |
33240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33241 | } | |
33242 | { | |
33243 | if (temp8) | |
33244 | delete arg8; | |
33245 | } | |
33246 | return resultobj; | |
33247 | fail: | |
33248 | { | |
33249 | if (temp8) | |
33250 | delete arg8; | |
33251 | } | |
33252 | return NULL; | |
33253 | } | |
33254 | ||
33255 | ||
33256 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33257 | PyObject *resultobj; | |
33258 | wxControl *arg1 = (wxControl *) 0 ; | |
33259 | wxCommandEvent *arg2 = 0 ; | |
33260 | PyObject * obj0 = 0 ; | |
33261 | PyObject * obj1 = 0 ; | |
33262 | char *kwnames[] = { | |
33263 | (char *) "self",(char *) "event", NULL | |
33264 | }; | |
33265 | ||
33266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
33267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
33270 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33271 | SWIG_fail; | |
33272 | if (arg2 == NULL) { | |
33273 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33274 | SWIG_fail; | |
33275 | } | |
33276 | { | |
33277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33278 | (arg1)->Command(*arg2); | |
33279 | ||
33280 | wxPyEndAllowThreads(__tstate); | |
33281 | if (PyErr_Occurred()) SWIG_fail; | |
33282 | } | |
33283 | Py_INCREF(Py_None); resultobj = Py_None; | |
33284 | return resultobj; | |
33285 | fail: | |
33286 | return NULL; | |
33287 | } | |
33288 | ||
33289 | ||
33290 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33291 | PyObject *resultobj; | |
33292 | wxControl *arg1 = (wxControl *) 0 ; | |
33293 | wxString result; | |
33294 | PyObject * obj0 = 0 ; | |
33295 | char *kwnames[] = { | |
33296 | (char *) "self", NULL | |
33297 | }; | |
33298 | ||
33299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
33300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33302 | { | |
33303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33304 | result = (arg1)->GetLabel(); | |
33305 | ||
33306 | wxPyEndAllowThreads(__tstate); | |
33307 | if (PyErr_Occurred()) SWIG_fail; | |
33308 | } | |
33309 | { | |
33310 | #if wxUSE_UNICODE | |
33311 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33312 | #else | |
33313 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33314 | #endif | |
33315 | } | |
33316 | return resultobj; | |
33317 | fail: | |
33318 | return NULL; | |
33319 | } | |
33320 | ||
33321 | ||
33322 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33323 | PyObject *resultobj; | |
33324 | wxControl *arg1 = (wxControl *) 0 ; | |
33325 | wxString *arg2 = 0 ; | |
33326 | bool temp2 = False ; | |
33327 | PyObject * obj0 = 0 ; | |
33328 | PyObject * obj1 = 0 ; | |
33329 | char *kwnames[] = { | |
33330 | (char *) "self",(char *) "label", NULL | |
33331 | }; | |
33332 | ||
33333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
33334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33336 | { | |
33337 | arg2 = wxString_in_helper(obj1); | |
33338 | if (arg2 == NULL) SWIG_fail; | |
33339 | temp2 = True; | |
33340 | } | |
33341 | { | |
33342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33343 | (arg1)->SetLabel((wxString const &)*arg2); | |
33344 | ||
33345 | wxPyEndAllowThreads(__tstate); | |
33346 | if (PyErr_Occurred()) SWIG_fail; | |
33347 | } | |
33348 | Py_INCREF(Py_None); resultobj = Py_None; | |
33349 | { | |
33350 | if (temp2) | |
33351 | delete arg2; | |
33352 | } | |
33353 | return resultobj; | |
33354 | fail: | |
33355 | { | |
33356 | if (temp2) | |
33357 | delete arg2; | |
33358 | } | |
33359 | return NULL; | |
33360 | } | |
33361 | ||
33362 | ||
33363 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33364 | PyObject *resultobj; | |
33365 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
33366 | wxVisualAttributes result; | |
33367 | PyObject * obj0 = 0 ; | |
33368 | char *kwnames[] = { | |
33369 | (char *) "variant", NULL | |
33370 | }; | |
33371 | ||
33372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
33373 | if (obj0) { | |
33374 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
33375 | if (PyErr_Occurred()) SWIG_fail; | |
33376 | } | |
33377 | { | |
33378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33379 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
33380 | ||
33381 | wxPyEndAllowThreads(__tstate); | |
33382 | if (PyErr_Occurred()) SWIG_fail; | |
33383 | } | |
33384 | { | |
33385 | wxVisualAttributes * resultptr; | |
33386 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
33387 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
33388 | } | |
33389 | return resultobj; | |
33390 | fail: | |
33391 | return NULL; | |
33392 | } | |
33393 | ||
33394 | ||
33395 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
33396 | PyObject *obj; | |
33397 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33398 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
33399 | Py_INCREF(obj); | |
33400 | return Py_BuildValue((char *)""); | |
33401 | } | |
33402 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33403 | PyObject *resultobj; | |
33404 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33405 | wxString *arg2 = 0 ; | |
33406 | PyObject *arg3 = (PyObject *) NULL ; | |
33407 | int result; | |
33408 | bool temp2 = False ; | |
33409 | PyObject * obj0 = 0 ; | |
33410 | PyObject * obj1 = 0 ; | |
33411 | PyObject * obj2 = 0 ; | |
33412 | char *kwnames[] = { | |
33413 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
33414 | }; | |
33415 | ||
33416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33419 | { | |
33420 | arg2 = wxString_in_helper(obj1); | |
33421 | if (arg2 == NULL) SWIG_fail; | |
33422 | temp2 = True; | |
33423 | } | |
33424 | if (obj2) { | |
33425 | arg3 = obj2; | |
33426 | } | |
33427 | { | |
33428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33429 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
33430 | ||
33431 | wxPyEndAllowThreads(__tstate); | |
33432 | if (PyErr_Occurred()) SWIG_fail; | |
33433 | } | |
33434 | resultobj = SWIG_FromInt((int)result); | |
33435 | { | |
33436 | if (temp2) | |
33437 | delete arg2; | |
33438 | } | |
33439 | return resultobj; | |
33440 | fail: | |
33441 | { | |
33442 | if (temp2) | |
33443 | delete arg2; | |
33444 | } | |
33445 | return NULL; | |
33446 | } | |
33447 | ||
33448 | ||
33449 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33450 | PyObject *resultobj; | |
33451 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33452 | wxArrayString *arg2 = 0 ; | |
33453 | bool temp2 = False ; | |
33454 | PyObject * obj0 = 0 ; | |
33455 | PyObject * obj1 = 0 ; | |
33456 | char *kwnames[] = { | |
33457 | (char *) "self",(char *) "strings", NULL | |
33458 | }; | |
33459 | ||
33460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
33461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33463 | { | |
33464 | if (! PySequence_Check(obj1)) { | |
33465 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
33466 | SWIG_fail; | |
33467 | } | |
33468 | arg2 = new wxArrayString; | |
33469 | temp2 = True; | |
33470 | int i, len=PySequence_Length(obj1); | |
33471 | for (i=0; i<len; i++) { | |
33472 | PyObject* item = PySequence_GetItem(obj1, i); | |
33473 | #if wxUSE_UNICODE | |
33474 | PyObject* str = PyObject_Unicode(item); | |
33475 | #else | |
33476 | PyObject* str = PyObject_Str(item); | |
33477 | #endif | |
33478 | if (PyErr_Occurred()) SWIG_fail; | |
33479 | arg2->Add(Py2wxString(str)); | |
33480 | Py_DECREF(item); | |
33481 | Py_DECREF(str); | |
33482 | } | |
33483 | } | |
33484 | { | |
33485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33486 | (arg1)->Append((wxArrayString const &)*arg2); | |
33487 | ||
33488 | wxPyEndAllowThreads(__tstate); | |
33489 | if (PyErr_Occurred()) SWIG_fail; | |
33490 | } | |
33491 | Py_INCREF(Py_None); resultobj = Py_None; | |
33492 | { | |
33493 | if (temp2) delete arg2; | |
33494 | } | |
33495 | return resultobj; | |
33496 | fail: | |
33497 | { | |
33498 | if (temp2) delete arg2; | |
33499 | } | |
33500 | return NULL; | |
33501 | } | |
33502 | ||
33503 | ||
33504 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33505 | PyObject *resultobj; | |
33506 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33507 | wxString *arg2 = 0 ; | |
33508 | int arg3 ; | |
33509 | PyObject *arg4 = (PyObject *) NULL ; | |
33510 | int result; | |
33511 | bool temp2 = False ; | |
33512 | PyObject * obj0 = 0 ; | |
33513 | PyObject * obj1 = 0 ; | |
33514 | PyObject * obj2 = 0 ; | |
33515 | PyObject * obj3 = 0 ; | |
33516 | char *kwnames[] = { | |
33517 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
33518 | }; | |
33519 | ||
33520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
33521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33523 | { | |
33524 | arg2 = wxString_in_helper(obj1); | |
33525 | if (arg2 == NULL) SWIG_fail; | |
33526 | temp2 = True; | |
33527 | } | |
33528 | arg3 = (int) SWIG_AsInt(obj2); | |
33529 | if (PyErr_Occurred()) SWIG_fail; | |
33530 | if (obj3) { | |
33531 | arg4 = obj3; | |
33532 | } | |
33533 | { | |
33534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33535 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
33536 | ||
33537 | wxPyEndAllowThreads(__tstate); | |
33538 | if (PyErr_Occurred()) SWIG_fail; | |
33539 | } | |
33540 | resultobj = SWIG_FromInt((int)result); | |
33541 | { | |
33542 | if (temp2) | |
33543 | delete arg2; | |
33544 | } | |
33545 | return resultobj; | |
33546 | fail: | |
33547 | { | |
33548 | if (temp2) | |
33549 | delete arg2; | |
33550 | } | |
33551 | return NULL; | |
33552 | } | |
33553 | ||
33554 | ||
33555 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33556 | PyObject *resultobj; | |
33557 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33558 | PyObject * obj0 = 0 ; | |
33559 | char *kwnames[] = { | |
33560 | (char *) "self", NULL | |
33561 | }; | |
33562 | ||
33563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
33564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33566 | { | |
33567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33568 | (arg1)->Clear(); | |
33569 | ||
33570 | wxPyEndAllowThreads(__tstate); | |
33571 | if (PyErr_Occurred()) SWIG_fail; | |
33572 | } | |
33573 | Py_INCREF(Py_None); resultobj = Py_None; | |
33574 | return resultobj; | |
33575 | fail: | |
33576 | return NULL; | |
33577 | } | |
33578 | ||
33579 | ||
33580 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33581 | PyObject *resultobj; | |
33582 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33583 | int arg2 ; | |
33584 | PyObject * obj0 = 0 ; | |
33585 | PyObject * obj1 = 0 ; | |
33586 | char *kwnames[] = { | |
33587 | (char *) "self",(char *) "n", NULL | |
33588 | }; | |
33589 | ||
33590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; | |
33591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33593 | arg2 = (int) SWIG_AsInt(obj1); | |
33594 | if (PyErr_Occurred()) SWIG_fail; | |
33595 | { | |
33596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33597 | (arg1)->Delete(arg2); | |
33598 | ||
33599 | wxPyEndAllowThreads(__tstate); | |
33600 | if (PyErr_Occurred()) SWIG_fail; | |
33601 | } | |
33602 | Py_INCREF(Py_None); resultobj = Py_None; | |
33603 | return resultobj; | |
33604 | fail: | |
33605 | return NULL; | |
33606 | } | |
33607 | ||
33608 | ||
33609 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33610 | PyObject *resultobj; | |
33611 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33612 | int result; | |
33613 | PyObject * obj0 = 0 ; | |
33614 | char *kwnames[] = { | |
33615 | (char *) "self", NULL | |
33616 | }; | |
33617 | ||
33618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
33619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33621 | { | |
33622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33623 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
33624 | ||
33625 | wxPyEndAllowThreads(__tstate); | |
33626 | if (PyErr_Occurred()) SWIG_fail; | |
33627 | } | |
33628 | resultobj = SWIG_FromInt((int)result); | |
33629 | return resultobj; | |
33630 | fail: | |
33631 | return NULL; | |
33632 | } | |
33633 | ||
33634 | ||
33635 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33636 | PyObject *resultobj; | |
33637 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33638 | bool result; | |
33639 | PyObject * obj0 = 0 ; | |
33640 | char *kwnames[] = { | |
33641 | (char *) "self", NULL | |
33642 | }; | |
33643 | ||
33644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
33645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33647 | { | |
33648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33649 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
33650 | ||
33651 | wxPyEndAllowThreads(__tstate); | |
33652 | if (PyErr_Occurred()) SWIG_fail; | |
33653 | } | |
33654 | { | |
33655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33656 | } | |
33657 | return resultobj; | |
33658 | fail: | |
33659 | return NULL; | |
33660 | } | |
33661 | ||
33662 | ||
33663 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33664 | PyObject *resultobj; | |
33665 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33666 | int arg2 ; | |
33667 | wxString result; | |
33668 | PyObject * obj0 = 0 ; | |
33669 | PyObject * obj1 = 0 ; | |
33670 | char *kwnames[] = { | |
33671 | (char *) "self",(char *) "n", NULL | |
33672 | }; | |
33673 | ||
33674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; | |
33675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33677 | arg2 = (int) SWIG_AsInt(obj1); | |
33678 | if (PyErr_Occurred()) SWIG_fail; | |
33679 | { | |
33680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33681 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
33682 | ||
33683 | wxPyEndAllowThreads(__tstate); | |
33684 | if (PyErr_Occurred()) SWIG_fail; | |
33685 | } | |
33686 | { | |
33687 | #if wxUSE_UNICODE | |
33688 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33689 | #else | |
33690 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33691 | #endif | |
33692 | } | |
33693 | return resultobj; | |
33694 | fail: | |
33695 | return NULL; | |
33696 | } | |
33697 | ||
33698 | ||
33699 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33700 | PyObject *resultobj; | |
33701 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33702 | wxArrayString result; | |
33703 | PyObject * obj0 = 0 ; | |
33704 | char *kwnames[] = { | |
33705 | (char *) "self", NULL | |
33706 | }; | |
33707 | ||
33708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
33709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33711 | { | |
33712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33713 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
33714 | ||
33715 | wxPyEndAllowThreads(__tstate); | |
33716 | if (PyErr_Occurred()) SWIG_fail; | |
33717 | } | |
33718 | { | |
33719 | resultobj = wxArrayString2PyList_helper(result); | |
33720 | } | |
33721 | return resultobj; | |
33722 | fail: | |
33723 | return NULL; | |
33724 | } | |
33725 | ||
33726 | ||
33727 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33728 | PyObject *resultobj; | |
33729 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33730 | int arg2 ; | |
33731 | wxString *arg3 = 0 ; | |
33732 | bool temp3 = False ; | |
33733 | PyObject * obj0 = 0 ; | |
33734 | PyObject * obj1 = 0 ; | |
33735 | PyObject * obj2 = 0 ; | |
33736 | char *kwnames[] = { | |
33737 | (char *) "self",(char *) "n",(char *) "s", NULL | |
33738 | }; | |
33739 | ||
33740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33743 | arg2 = (int) SWIG_AsInt(obj1); | |
33744 | if (PyErr_Occurred()) SWIG_fail; | |
33745 | { | |
33746 | arg3 = wxString_in_helper(obj2); | |
33747 | if (arg3 == NULL) SWIG_fail; | |
33748 | temp3 = True; | |
33749 | } | |
33750 | { | |
33751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33752 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
33753 | ||
33754 | wxPyEndAllowThreads(__tstate); | |
33755 | if (PyErr_Occurred()) SWIG_fail; | |
33756 | } | |
33757 | Py_INCREF(Py_None); resultobj = Py_None; | |
33758 | { | |
33759 | if (temp3) | |
33760 | delete arg3; | |
33761 | } | |
33762 | return resultobj; | |
33763 | fail: | |
33764 | { | |
33765 | if (temp3) | |
33766 | delete arg3; | |
33767 | } | |
33768 | return NULL; | |
33769 | } | |
33770 | ||
33771 | ||
33772 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33773 | PyObject *resultobj; | |
33774 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33775 | wxString *arg2 = 0 ; | |
33776 | int result; | |
33777 | bool temp2 = False ; | |
33778 | PyObject * obj0 = 0 ; | |
33779 | PyObject * obj1 = 0 ; | |
33780 | char *kwnames[] = { | |
33781 | (char *) "self",(char *) "s", NULL | |
33782 | }; | |
33783 | ||
33784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
33785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33787 | { | |
33788 | arg2 = wxString_in_helper(obj1); | |
33789 | if (arg2 == NULL) SWIG_fail; | |
33790 | temp2 = True; | |
33791 | } | |
33792 | { | |
33793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33794 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
33795 | ||
33796 | wxPyEndAllowThreads(__tstate); | |
33797 | if (PyErr_Occurred()) SWIG_fail; | |
33798 | } | |
33799 | resultobj = SWIG_FromInt((int)result); | |
33800 | { | |
33801 | if (temp2) | |
33802 | delete arg2; | |
33803 | } | |
33804 | return resultobj; | |
33805 | fail: | |
33806 | { | |
33807 | if (temp2) | |
33808 | delete arg2; | |
33809 | } | |
33810 | return NULL; | |
33811 | } | |
33812 | ||
33813 | ||
33814 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33815 | PyObject *resultobj; | |
33816 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33817 | int arg2 ; | |
33818 | PyObject * obj0 = 0 ; | |
33819 | PyObject * obj1 = 0 ; | |
33820 | char *kwnames[] = { | |
33821 | (char *) "self",(char *) "n", NULL | |
33822 | }; | |
33823 | ||
33824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; | |
33825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33827 | arg2 = (int) SWIG_AsInt(obj1); | |
33828 | if (PyErr_Occurred()) SWIG_fail; | |
33829 | { | |
33830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33831 | (arg1)->Select(arg2); | |
33832 | ||
33833 | wxPyEndAllowThreads(__tstate); | |
33834 | if (PyErr_Occurred()) SWIG_fail; | |
33835 | } | |
33836 | Py_INCREF(Py_None); resultobj = Py_None; | |
33837 | return resultobj; | |
33838 | fail: | |
33839 | return NULL; | |
33840 | } | |
33841 | ||
33842 | ||
33843 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33844 | PyObject *resultobj; | |
33845 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33846 | int result; | |
33847 | PyObject * obj0 = 0 ; | |
33848 | char *kwnames[] = { | |
33849 | (char *) "self", NULL | |
33850 | }; | |
33851 | ||
33852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
33853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33855 | { | |
33856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33857 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
33858 | ||
33859 | wxPyEndAllowThreads(__tstate); | |
33860 | if (PyErr_Occurred()) SWIG_fail; | |
33861 | } | |
33862 | resultobj = SWIG_FromInt((int)result); | |
33863 | return resultobj; | |
33864 | fail: | |
33865 | return NULL; | |
33866 | } | |
33867 | ||
33868 | ||
33869 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33870 | PyObject *resultobj; | |
33871 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33872 | wxString result; | |
33873 | PyObject * obj0 = 0 ; | |
33874 | char *kwnames[] = { | |
33875 | (char *) "self", NULL | |
33876 | }; | |
33877 | ||
33878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
33879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33881 | { | |
33882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33883 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
33884 | ||
33885 | wxPyEndAllowThreads(__tstate); | |
33886 | if (PyErr_Occurred()) SWIG_fail; | |
33887 | } | |
33888 | { | |
33889 | #if wxUSE_UNICODE | |
33890 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33891 | #else | |
33892 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33893 | #endif | |
33894 | } | |
33895 | return resultobj; | |
33896 | fail: | |
33897 | return NULL; | |
33898 | } | |
33899 | ||
33900 | ||
33901 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33902 | PyObject *resultobj; | |
33903 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33904 | int arg2 ; | |
33905 | PyObject *result; | |
33906 | PyObject * obj0 = 0 ; | |
33907 | PyObject * obj1 = 0 ; | |
33908 | char *kwnames[] = { | |
33909 | (char *) "self",(char *) "n", NULL | |
33910 | }; | |
33911 | ||
33912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
33913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33915 | arg2 = (int) SWIG_AsInt(obj1); | |
33916 | if (PyErr_Occurred()) SWIG_fail; | |
33917 | { | |
33918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33919 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
33920 | ||
33921 | wxPyEndAllowThreads(__tstate); | |
33922 | if (PyErr_Occurred()) SWIG_fail; | |
33923 | } | |
33924 | resultobj = result; | |
33925 | return resultobj; | |
33926 | fail: | |
33927 | return NULL; | |
33928 | } | |
33929 | ||
33930 | ||
33931 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33932 | PyObject *resultobj; | |
33933 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33934 | int arg2 ; | |
33935 | PyObject *arg3 = (PyObject *) 0 ; | |
33936 | PyObject * obj0 = 0 ; | |
33937 | PyObject * obj1 = 0 ; | |
33938 | PyObject * obj2 = 0 ; | |
33939 | char *kwnames[] = { | |
33940 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
33941 | }; | |
33942 | ||
33943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33946 | arg2 = (int) SWIG_AsInt(obj1); | |
33947 | if (PyErr_Occurred()) SWIG_fail; | |
33948 | arg3 = obj2; | |
33949 | { | |
33950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33951 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
33952 | ||
33953 | wxPyEndAllowThreads(__tstate); | |
33954 | if (PyErr_Occurred()) SWIG_fail; | |
33955 | } | |
33956 | Py_INCREF(Py_None); resultobj = Py_None; | |
33957 | return resultobj; | |
33958 | fail: | |
33959 | return NULL; | |
33960 | } | |
33961 | ||
33962 | ||
33963 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
33964 | PyObject *obj; | |
33965 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33966 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
33967 | Py_INCREF(obj); | |
33968 | return Py_BuildValue((char *)""); | |
33969 | } | |
33970 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
33971 | PyObject *obj; | |
33972 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33973 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
33974 | Py_INCREF(obj); | |
33975 | return Py_BuildValue((char *)""); | |
33976 | } | |
33977 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33978 | PyObject *resultobj; | |
33979 | wxSizerItem *result; | |
33980 | char *kwnames[] = { | |
33981 | NULL | |
33982 | }; | |
33983 | ||
33984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
33985 | { | |
33986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33987 | result = (wxSizerItem *)new wxSizerItem(); | |
33988 | ||
33989 | wxPyEndAllowThreads(__tstate); | |
33990 | if (PyErr_Occurred()) SWIG_fail; | |
33991 | } | |
33992 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
33993 | return resultobj; | |
33994 | fail: | |
33995 | return NULL; | |
33996 | } | |
33997 | ||
33998 | ||
33999 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34000 | PyObject *resultobj; | |
34001 | int arg1 ; | |
34002 | int arg2 ; | |
34003 | int arg3 ; | |
34004 | int arg4 ; | |
34005 | int arg5 ; | |
34006 | wxObject *arg6 = (wxObject *) 0 ; | |
34007 | wxSizerItem *result; | |
34008 | PyObject * obj0 = 0 ; | |
34009 | PyObject * obj1 = 0 ; | |
34010 | PyObject * obj2 = 0 ; | |
34011 | PyObject * obj3 = 0 ; | |
34012 | PyObject * obj4 = 0 ; | |
34013 | PyObject * obj5 = 0 ; | |
34014 | char *kwnames[] = { | |
34015 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34016 | }; | |
34017 | ||
34018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
34019 | arg1 = (int) SWIG_AsInt(obj0); | |
34020 | if (PyErr_Occurred()) SWIG_fail; | |
34021 | arg2 = (int) SWIG_AsInt(obj1); | |
34022 | if (PyErr_Occurred()) SWIG_fail; | |
34023 | arg3 = (int) SWIG_AsInt(obj2); | |
34024 | if (PyErr_Occurred()) SWIG_fail; | |
34025 | arg4 = (int) SWIG_AsInt(obj3); | |
34026 | if (PyErr_Occurred()) SWIG_fail; | |
34027 | arg5 = (int) SWIG_AsInt(obj4); | |
34028 | if (PyErr_Occurred()) SWIG_fail; | |
34029 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
34030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34031 | { | |
34032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34033 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
34034 | ||
34035 | wxPyEndAllowThreads(__tstate); | |
34036 | if (PyErr_Occurred()) SWIG_fail; | |
34037 | } | |
34038 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34039 | return resultobj; | |
34040 | fail: | |
34041 | return NULL; | |
34042 | } | |
34043 | ||
34044 | ||
34045 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34046 | PyObject *resultobj; | |
34047 | wxWindow *arg1 = (wxWindow *) 0 ; | |
34048 | int arg2 ; | |
34049 | int arg3 ; | |
34050 | int arg4 ; | |
34051 | wxObject *arg5 = (wxObject *) 0 ; | |
34052 | wxSizerItem *result; | |
34053 | PyObject * obj0 = 0 ; | |
34054 | PyObject * obj1 = 0 ; | |
34055 | PyObject * obj2 = 0 ; | |
34056 | PyObject * obj3 = 0 ; | |
34057 | PyObject * obj4 = 0 ; | |
34058 | char *kwnames[] = { | |
34059 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34060 | }; | |
34061 | ||
34062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
34063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
34064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34065 | arg2 = (int) SWIG_AsInt(obj1); | |
34066 | if (PyErr_Occurred()) SWIG_fail; | |
34067 | arg3 = (int) SWIG_AsInt(obj2); | |
34068 | if (PyErr_Occurred()) SWIG_fail; | |
34069 | arg4 = (int) SWIG_AsInt(obj3); | |
34070 | if (PyErr_Occurred()) SWIG_fail; | |
34071 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
34072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34073 | { | |
34074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34075 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
34076 | ||
34077 | wxPyEndAllowThreads(__tstate); | |
34078 | if (PyErr_Occurred()) SWIG_fail; | |
34079 | } | |
34080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34081 | return resultobj; | |
34082 | fail: | |
34083 | return NULL; | |
34084 | } | |
34085 | ||
34086 | ||
34087 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34088 | PyObject *resultobj; | |
34089 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34090 | int arg2 ; | |
34091 | int arg3 ; | |
34092 | int arg4 ; | |
34093 | wxObject *arg5 = (wxObject *) 0 ; | |
34094 | wxSizerItem *result; | |
34095 | PyObject * obj0 = 0 ; | |
34096 | PyObject * obj1 = 0 ; | |
34097 | PyObject * obj2 = 0 ; | |
34098 | PyObject * obj3 = 0 ; | |
34099 | PyObject * obj4 = 0 ; | |
34100 | char *kwnames[] = { | |
34101 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34102 | }; | |
34103 | ||
34104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
34105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34107 | arg2 = (int) SWIG_AsInt(obj1); | |
34108 | if (PyErr_Occurred()) SWIG_fail; | |
34109 | arg3 = (int) SWIG_AsInt(obj2); | |
34110 | if (PyErr_Occurred()) SWIG_fail; | |
34111 | arg4 = (int) SWIG_AsInt(obj3); | |
34112 | if (PyErr_Occurred()) SWIG_fail; | |
34113 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
34114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34115 | { | |
34116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34117 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
34118 | ||
34119 | wxPyEndAllowThreads(__tstate); | |
34120 | if (PyErr_Occurred()) SWIG_fail; | |
34121 | } | |
34122 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34123 | return resultobj; | |
34124 | fail: | |
34125 | return NULL; | |
34126 | } | |
34127 | ||
34128 | ||
34129 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34130 | PyObject *resultobj; | |
34131 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34132 | PyObject * obj0 = 0 ; | |
34133 | char *kwnames[] = { | |
34134 | (char *) "self", NULL | |
34135 | }; | |
34136 | ||
34137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
34138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34140 | { | |
34141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34142 | (arg1)->DeleteWindows(); | |
34143 | ||
34144 | wxPyEndAllowThreads(__tstate); | |
34145 | if (PyErr_Occurred()) SWIG_fail; | |
34146 | } | |
34147 | Py_INCREF(Py_None); resultobj = Py_None; | |
34148 | return resultobj; | |
34149 | fail: | |
34150 | return NULL; | |
34151 | } | |
34152 | ||
34153 | ||
34154 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34155 | PyObject *resultobj; | |
34156 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34157 | PyObject * obj0 = 0 ; | |
34158 | char *kwnames[] = { | |
34159 | (char *) "self", NULL | |
34160 | }; | |
34161 | ||
34162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
34163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34165 | { | |
34166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34167 | (arg1)->DetachSizer(); | |
34168 | ||
34169 | wxPyEndAllowThreads(__tstate); | |
34170 | if (PyErr_Occurred()) SWIG_fail; | |
34171 | } | |
34172 | Py_INCREF(Py_None); resultobj = Py_None; | |
34173 | return resultobj; | |
34174 | fail: | |
34175 | return NULL; | |
34176 | } | |
34177 | ||
34178 | ||
34179 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34180 | PyObject *resultobj; | |
34181 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34182 | wxSize result; | |
34183 | PyObject * obj0 = 0 ; | |
34184 | char *kwnames[] = { | |
34185 | (char *) "self", NULL | |
34186 | }; | |
34187 | ||
34188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
34189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34191 | { | |
34192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34193 | result = (arg1)->GetSize(); | |
34194 | ||
34195 | wxPyEndAllowThreads(__tstate); | |
34196 | if (PyErr_Occurred()) SWIG_fail; | |
34197 | } | |
34198 | { | |
34199 | wxSize * resultptr; | |
34200 | resultptr = new wxSize((wxSize &) result); | |
34201 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34202 | } | |
34203 | return resultobj; | |
34204 | fail: | |
34205 | return NULL; | |
34206 | } | |
34207 | ||
34208 | ||
34209 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34210 | PyObject *resultobj; | |
34211 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34212 | wxSize result; | |
34213 | PyObject * obj0 = 0 ; | |
34214 | char *kwnames[] = { | |
34215 | (char *) "self", NULL | |
34216 | }; | |
34217 | ||
34218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
34219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34221 | { | |
34222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34223 | result = (arg1)->CalcMin(); | |
34224 | ||
34225 | wxPyEndAllowThreads(__tstate); | |
34226 | if (PyErr_Occurred()) SWIG_fail; | |
34227 | } | |
34228 | { | |
34229 | wxSize * resultptr; | |
34230 | resultptr = new wxSize((wxSize &) result); | |
34231 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34232 | } | |
34233 | return resultobj; | |
34234 | fail: | |
34235 | return NULL; | |
34236 | } | |
34237 | ||
34238 | ||
34239 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34240 | PyObject *resultobj; | |
34241 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34242 | wxPoint arg2 ; | |
34243 | wxSize arg3 ; | |
34244 | wxPoint *argp2 ; | |
34245 | wxSize *argp3 ; | |
34246 | PyObject * obj0 = 0 ; | |
34247 | PyObject * obj1 = 0 ; | |
34248 | PyObject * obj2 = 0 ; | |
34249 | char *kwnames[] = { | |
34250 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
34251 | }; | |
34252 | ||
34253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34256 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
34257 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34258 | arg2 = *argp2; | |
34259 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
34260 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34261 | arg3 = *argp3; | |
34262 | { | |
34263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34264 | (arg1)->SetDimension(arg2,arg3); | |
34265 | ||
34266 | wxPyEndAllowThreads(__tstate); | |
34267 | if (PyErr_Occurred()) SWIG_fail; | |
34268 | } | |
34269 | Py_INCREF(Py_None); resultobj = Py_None; | |
34270 | return resultobj; | |
34271 | fail: | |
34272 | return NULL; | |
34273 | } | |
34274 | ||
34275 | ||
34276 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34277 | PyObject *resultobj; | |
34278 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34279 | wxSize result; | |
34280 | PyObject * obj0 = 0 ; | |
34281 | char *kwnames[] = { | |
34282 | (char *) "self", NULL | |
34283 | }; | |
34284 | ||
34285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
34286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34288 | { | |
34289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34290 | result = (arg1)->GetMinSize(); | |
34291 | ||
34292 | wxPyEndAllowThreads(__tstate); | |
34293 | if (PyErr_Occurred()) SWIG_fail; | |
34294 | } | |
34295 | { | |
34296 | wxSize * resultptr; | |
34297 | resultptr = new wxSize((wxSize &) result); | |
34298 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34299 | } | |
34300 | return resultobj; | |
34301 | fail: | |
34302 | return NULL; | |
34303 | } | |
34304 | ||
34305 | ||
34306 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34307 | PyObject *resultobj; | |
34308 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34309 | int arg2 ; | |
34310 | int arg3 ; | |
34311 | PyObject * obj0 = 0 ; | |
34312 | PyObject * obj1 = 0 ; | |
34313 | PyObject * obj2 = 0 ; | |
34314 | char *kwnames[] = { | |
34315 | (char *) "self",(char *) "x",(char *) "y", NULL | |
34316 | }; | |
34317 | ||
34318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34321 | arg2 = (int) SWIG_AsInt(obj1); | |
34322 | if (PyErr_Occurred()) SWIG_fail; | |
34323 | arg3 = (int) SWIG_AsInt(obj2); | |
34324 | if (PyErr_Occurred()) SWIG_fail; | |
34325 | { | |
34326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34327 | (arg1)->SetInitSize(arg2,arg3); | |
34328 | ||
34329 | wxPyEndAllowThreads(__tstate); | |
34330 | if (PyErr_Occurred()) SWIG_fail; | |
34331 | } | |
34332 | Py_INCREF(Py_None); resultobj = Py_None; | |
34333 | return resultobj; | |
34334 | fail: | |
34335 | return NULL; | |
34336 | } | |
34337 | ||
34338 | ||
34339 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34340 | PyObject *resultobj; | |
34341 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34342 | int arg2 ; | |
34343 | int arg3 ; | |
34344 | PyObject * obj0 = 0 ; | |
34345 | PyObject * obj1 = 0 ; | |
34346 | PyObject * obj2 = 0 ; | |
34347 | char *kwnames[] = { | |
34348 | (char *) "self",(char *) "width",(char *) "height", NULL | |
34349 | }; | |
34350 | ||
34351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34354 | arg2 = (int) SWIG_AsInt(obj1); | |
34355 | if (PyErr_Occurred()) SWIG_fail; | |
34356 | arg3 = (int) SWIG_AsInt(obj2); | |
34357 | if (PyErr_Occurred()) SWIG_fail; | |
34358 | { | |
34359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34360 | (arg1)->SetRatio(arg2,arg3); | |
34361 | ||
34362 | wxPyEndAllowThreads(__tstate); | |
34363 | if (PyErr_Occurred()) SWIG_fail; | |
34364 | } | |
34365 | Py_INCREF(Py_None); resultobj = Py_None; | |
34366 | return resultobj; | |
34367 | fail: | |
34368 | return NULL; | |
34369 | } | |
34370 | ||
34371 | ||
34372 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34373 | PyObject *resultobj; | |
34374 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34375 | wxSize arg2 ; | |
34376 | wxSize *argp2 ; | |
34377 | PyObject * obj0 = 0 ; | |
34378 | PyObject * obj1 = 0 ; | |
34379 | char *kwnames[] = { | |
34380 | (char *) "self",(char *) "size", NULL | |
34381 | }; | |
34382 | ||
34383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
34384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34386 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
34387 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34388 | arg2 = *argp2; | |
34389 | { | |
34390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34391 | (arg1)->SetRatio(arg2); | |
34392 | ||
34393 | wxPyEndAllowThreads(__tstate); | |
34394 | if (PyErr_Occurred()) SWIG_fail; | |
34395 | } | |
34396 | Py_INCREF(Py_None); resultobj = Py_None; | |
34397 | return resultobj; | |
34398 | fail: | |
34399 | return NULL; | |
34400 | } | |
34401 | ||
34402 | ||
34403 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34404 | PyObject *resultobj; | |
34405 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34406 | float arg2 ; | |
34407 | PyObject * obj0 = 0 ; | |
34408 | PyObject * obj1 = 0 ; | |
34409 | char *kwnames[] = { | |
34410 | (char *) "self",(char *) "ratio", NULL | |
34411 | }; | |
34412 | ||
34413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; | |
34414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34416 | arg2 = (float) SWIG_AsFloat(obj1); | |
34417 | if (PyErr_Occurred()) SWIG_fail; | |
34418 | { | |
34419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34420 | (arg1)->SetRatio(arg2); | |
34421 | ||
34422 | wxPyEndAllowThreads(__tstate); | |
34423 | if (PyErr_Occurred()) SWIG_fail; | |
34424 | } | |
34425 | Py_INCREF(Py_None); resultobj = Py_None; | |
34426 | return resultobj; | |
34427 | fail: | |
34428 | return NULL; | |
34429 | } | |
34430 | ||
34431 | ||
34432 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34433 | PyObject *resultobj; | |
34434 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34435 | float result; | |
34436 | PyObject * obj0 = 0 ; | |
34437 | char *kwnames[] = { | |
34438 | (char *) "self", NULL | |
34439 | }; | |
34440 | ||
34441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
34442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34444 | { | |
34445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34446 | result = (float)(arg1)->GetRatio(); | |
34447 | ||
34448 | wxPyEndAllowThreads(__tstate); | |
34449 | if (PyErr_Occurred()) SWIG_fail; | |
34450 | } | |
34451 | resultobj = SWIG_FromFloat((float)result); | |
34452 | return resultobj; | |
34453 | fail: | |
34454 | return NULL; | |
34455 | } | |
34456 | ||
34457 | ||
34458 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34459 | PyObject *resultobj; | |
34460 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34461 | bool result; | |
34462 | PyObject * obj0 = 0 ; | |
34463 | char *kwnames[] = { | |
34464 | (char *) "self", NULL | |
34465 | }; | |
34466 | ||
34467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
34468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34470 | { | |
34471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34472 | result = (bool)(arg1)->IsWindow(); | |
34473 | ||
34474 | wxPyEndAllowThreads(__tstate); | |
34475 | if (PyErr_Occurred()) SWIG_fail; | |
34476 | } | |
34477 | { | |
34478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34479 | } | |
34480 | return resultobj; | |
34481 | fail: | |
34482 | return NULL; | |
34483 | } | |
34484 | ||
34485 | ||
34486 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34487 | PyObject *resultobj; | |
34488 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34489 | bool result; | |
34490 | PyObject * obj0 = 0 ; | |
34491 | char *kwnames[] = { | |
34492 | (char *) "self", NULL | |
34493 | }; | |
34494 | ||
34495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
34496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34498 | { | |
34499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34500 | result = (bool)(arg1)->IsSizer(); | |
34501 | ||
34502 | wxPyEndAllowThreads(__tstate); | |
34503 | if (PyErr_Occurred()) SWIG_fail; | |
34504 | } | |
34505 | { | |
34506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34507 | } | |
34508 | return resultobj; | |
34509 | fail: | |
34510 | return NULL; | |
34511 | } | |
34512 | ||
34513 | ||
34514 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34515 | PyObject *resultobj; | |
34516 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34517 | bool result; | |
34518 | PyObject * obj0 = 0 ; | |
34519 | char *kwnames[] = { | |
34520 | (char *) "self", NULL | |
34521 | }; | |
34522 | ||
34523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
34524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34526 | { | |
34527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34528 | result = (bool)(arg1)->IsSpacer(); | |
34529 | ||
34530 | wxPyEndAllowThreads(__tstate); | |
34531 | if (PyErr_Occurred()) SWIG_fail; | |
34532 | } | |
34533 | { | |
34534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34535 | } | |
34536 | return resultobj; | |
34537 | fail: | |
34538 | return NULL; | |
34539 | } | |
34540 | ||
34541 | ||
34542 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34543 | PyObject *resultobj; | |
34544 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34545 | int arg2 ; | |
34546 | PyObject * obj0 = 0 ; | |
34547 | PyObject * obj1 = 0 ; | |
34548 | char *kwnames[] = { | |
34549 | (char *) "self",(char *) "proportion", NULL | |
34550 | }; | |
34551 | ||
34552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; | |
34553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34555 | arg2 = (int) SWIG_AsInt(obj1); | |
34556 | if (PyErr_Occurred()) SWIG_fail; | |
34557 | { | |
34558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34559 | (arg1)->SetProportion(arg2); | |
34560 | ||
34561 | wxPyEndAllowThreads(__tstate); | |
34562 | if (PyErr_Occurred()) SWIG_fail; | |
34563 | } | |
34564 | Py_INCREF(Py_None); resultobj = Py_None; | |
34565 | return resultobj; | |
34566 | fail: | |
34567 | return NULL; | |
34568 | } | |
34569 | ||
34570 | ||
34571 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34572 | PyObject *resultobj; | |
34573 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34574 | int result; | |
34575 | PyObject * obj0 = 0 ; | |
34576 | char *kwnames[] = { | |
34577 | (char *) "self", NULL | |
34578 | }; | |
34579 | ||
34580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
34581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34583 | { | |
34584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34585 | result = (int)(arg1)->GetProportion(); | |
34586 | ||
34587 | wxPyEndAllowThreads(__tstate); | |
34588 | if (PyErr_Occurred()) SWIG_fail; | |
34589 | } | |
34590 | resultobj = SWIG_FromInt((int)result); | |
34591 | return resultobj; | |
34592 | fail: | |
34593 | return NULL; | |
34594 | } | |
34595 | ||
34596 | ||
34597 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34598 | PyObject *resultobj; | |
34599 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34600 | int arg2 ; | |
34601 | PyObject * obj0 = 0 ; | |
34602 | PyObject * obj1 = 0 ; | |
34603 | char *kwnames[] = { | |
34604 | (char *) "self",(char *) "flag", NULL | |
34605 | }; | |
34606 | ||
34607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; | |
34608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34610 | arg2 = (int) SWIG_AsInt(obj1); | |
34611 | if (PyErr_Occurred()) SWIG_fail; | |
34612 | { | |
34613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34614 | (arg1)->SetFlag(arg2); | |
34615 | ||
34616 | wxPyEndAllowThreads(__tstate); | |
34617 | if (PyErr_Occurred()) SWIG_fail; | |
34618 | } | |
34619 | Py_INCREF(Py_None); resultobj = Py_None; | |
34620 | return resultobj; | |
34621 | fail: | |
34622 | return NULL; | |
34623 | } | |
34624 | ||
34625 | ||
34626 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34627 | PyObject *resultobj; | |
34628 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34629 | int result; | |
34630 | PyObject * obj0 = 0 ; | |
34631 | char *kwnames[] = { | |
34632 | (char *) "self", NULL | |
34633 | }; | |
34634 | ||
34635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
34636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34638 | { | |
34639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34640 | result = (int)(arg1)->GetFlag(); | |
34641 | ||
34642 | wxPyEndAllowThreads(__tstate); | |
34643 | if (PyErr_Occurred()) SWIG_fail; | |
34644 | } | |
34645 | resultobj = SWIG_FromInt((int)result); | |
34646 | return resultobj; | |
34647 | fail: | |
34648 | return NULL; | |
34649 | } | |
34650 | ||
34651 | ||
34652 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34653 | PyObject *resultobj; | |
34654 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34655 | int arg2 ; | |
34656 | PyObject * obj0 = 0 ; | |
34657 | PyObject * obj1 = 0 ; | |
34658 | char *kwnames[] = { | |
34659 | (char *) "self",(char *) "border", NULL | |
34660 | }; | |
34661 | ||
34662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; | |
34663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34665 | arg2 = (int) SWIG_AsInt(obj1); | |
34666 | if (PyErr_Occurred()) SWIG_fail; | |
34667 | { | |
34668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34669 | (arg1)->SetBorder(arg2); | |
34670 | ||
34671 | wxPyEndAllowThreads(__tstate); | |
34672 | if (PyErr_Occurred()) SWIG_fail; | |
34673 | } | |
34674 | Py_INCREF(Py_None); resultobj = Py_None; | |
34675 | return resultobj; | |
34676 | fail: | |
34677 | return NULL; | |
34678 | } | |
34679 | ||
34680 | ||
34681 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34682 | PyObject *resultobj; | |
34683 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34684 | int result; | |
34685 | PyObject * obj0 = 0 ; | |
34686 | char *kwnames[] = { | |
34687 | (char *) "self", NULL | |
34688 | }; | |
34689 | ||
34690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
34691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34693 | { | |
34694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34695 | result = (int)(arg1)->GetBorder(); | |
34696 | ||
34697 | wxPyEndAllowThreads(__tstate); | |
34698 | if (PyErr_Occurred()) SWIG_fail; | |
34699 | } | |
34700 | resultobj = SWIG_FromInt((int)result); | |
34701 | return resultobj; | |
34702 | fail: | |
34703 | return NULL; | |
34704 | } | |
34705 | ||
34706 | ||
34707 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34708 | PyObject *resultobj; | |
34709 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34710 | wxWindow *result; | |
34711 | PyObject * obj0 = 0 ; | |
34712 | char *kwnames[] = { | |
34713 | (char *) "self", NULL | |
34714 | }; | |
34715 | ||
34716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
34717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34719 | { | |
34720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34721 | result = (wxWindow *)(arg1)->GetWindow(); | |
34722 | ||
34723 | wxPyEndAllowThreads(__tstate); | |
34724 | if (PyErr_Occurred()) SWIG_fail; | |
34725 | } | |
34726 | { | |
34727 | resultobj = wxPyMake_wxObject(result); | |
34728 | } | |
34729 | return resultobj; | |
34730 | fail: | |
34731 | return NULL; | |
34732 | } | |
34733 | ||
34734 | ||
34735 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34736 | PyObject *resultobj; | |
34737 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34738 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34739 | PyObject * obj0 = 0 ; | |
34740 | PyObject * obj1 = 0 ; | |
34741 | char *kwnames[] = { | |
34742 | (char *) "self",(char *) "window", NULL | |
34743 | }; | |
34744 | ||
34745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
34746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34748 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34750 | { | |
34751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34752 | (arg1)->SetWindow(arg2); | |
34753 | ||
34754 | wxPyEndAllowThreads(__tstate); | |
34755 | if (PyErr_Occurred()) SWIG_fail; | |
34756 | } | |
34757 | Py_INCREF(Py_None); resultobj = Py_None; | |
34758 | return resultobj; | |
34759 | fail: | |
34760 | return NULL; | |
34761 | } | |
34762 | ||
34763 | ||
34764 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34765 | PyObject *resultobj; | |
34766 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34767 | wxSizer *result; | |
34768 | PyObject * obj0 = 0 ; | |
34769 | char *kwnames[] = { | |
34770 | (char *) "self", NULL | |
34771 | }; | |
34772 | ||
34773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
34774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34776 | { | |
34777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34778 | result = (wxSizer *)(arg1)->GetSizer(); | |
34779 | ||
34780 | wxPyEndAllowThreads(__tstate); | |
34781 | if (PyErr_Occurred()) SWIG_fail; | |
34782 | } | |
34783 | { | |
34784 | resultobj = wxPyMake_wxSizer(result); | |
34785 | } | |
34786 | return resultobj; | |
34787 | fail: | |
34788 | return NULL; | |
34789 | } | |
34790 | ||
34791 | ||
34792 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34793 | PyObject *resultobj; | |
34794 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34795 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34796 | PyObject * obj0 = 0 ; | |
34797 | PyObject * obj1 = 0 ; | |
34798 | char *kwnames[] = { | |
34799 | (char *) "self",(char *) "sizer", NULL | |
34800 | }; | |
34801 | ||
34802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
34803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34805 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
34806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34807 | { | |
34808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34809 | (arg1)->SetSizer(arg2); | |
34810 | ||
34811 | wxPyEndAllowThreads(__tstate); | |
34812 | if (PyErr_Occurred()) SWIG_fail; | |
34813 | } | |
34814 | Py_INCREF(Py_None); resultobj = Py_None; | |
34815 | return resultobj; | |
34816 | fail: | |
34817 | return NULL; | |
34818 | } | |
34819 | ||
34820 | ||
34821 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34822 | PyObject *resultobj; | |
34823 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34824 | wxSize *result; | |
34825 | PyObject * obj0 = 0 ; | |
34826 | char *kwnames[] = { | |
34827 | (char *) "self", NULL | |
34828 | }; | |
34829 | ||
34830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
34831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34833 | { | |
34834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34835 | { | |
34836 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
34837 | result = (wxSize *) &_result_ref; | |
34838 | } | |
34839 | ||
34840 | wxPyEndAllowThreads(__tstate); | |
34841 | if (PyErr_Occurred()) SWIG_fail; | |
34842 | } | |
34843 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
34844 | return resultobj; | |
34845 | fail: | |
34846 | return NULL; | |
34847 | } | |
34848 | ||
34849 | ||
34850 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34851 | PyObject *resultobj; | |
34852 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34853 | wxSize *arg2 = 0 ; | |
34854 | wxSize temp2 ; | |
34855 | PyObject * obj0 = 0 ; | |
34856 | PyObject * obj1 = 0 ; | |
34857 | char *kwnames[] = { | |
34858 | (char *) "self",(char *) "size", NULL | |
34859 | }; | |
34860 | ||
34861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
34862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34864 | { | |
34865 | arg2 = &temp2; | |
34866 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
34867 | } | |
34868 | { | |
34869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34870 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
34871 | ||
34872 | wxPyEndAllowThreads(__tstate); | |
34873 | if (PyErr_Occurred()) SWIG_fail; | |
34874 | } | |
34875 | Py_INCREF(Py_None); resultobj = Py_None; | |
34876 | return resultobj; | |
34877 | fail: | |
34878 | return NULL; | |
34879 | } | |
34880 | ||
34881 | ||
34882 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34883 | PyObject *resultobj; | |
34884 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34885 | bool arg2 ; | |
34886 | PyObject * obj0 = 0 ; | |
34887 | PyObject * obj1 = 0 ; | |
34888 | char *kwnames[] = { | |
34889 | (char *) "self",(char *) "show", NULL | |
34890 | }; | |
34891 | ||
34892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
34893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34895 | arg2 = (bool) SWIG_AsBool(obj1); | |
34896 | if (PyErr_Occurred()) SWIG_fail; | |
34897 | { | |
34898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34899 | (arg1)->Show(arg2); | |
34900 | ||
34901 | wxPyEndAllowThreads(__tstate); | |
34902 | if (PyErr_Occurred()) SWIG_fail; | |
34903 | } | |
34904 | Py_INCREF(Py_None); resultobj = Py_None; | |
34905 | return resultobj; | |
34906 | fail: | |
34907 | return NULL; | |
34908 | } | |
34909 | ||
34910 | ||
34911 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34912 | PyObject *resultobj; | |
34913 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34914 | bool result; | |
34915 | PyObject * obj0 = 0 ; | |
34916 | char *kwnames[] = { | |
34917 | (char *) "self", NULL | |
34918 | }; | |
34919 | ||
34920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
34921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34923 | { | |
34924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34925 | result = (bool)(arg1)->IsShown(); | |
34926 | ||
34927 | wxPyEndAllowThreads(__tstate); | |
34928 | if (PyErr_Occurred()) SWIG_fail; | |
34929 | } | |
34930 | { | |
34931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34932 | } | |
34933 | return resultobj; | |
34934 | fail: | |
34935 | return NULL; | |
34936 | } | |
34937 | ||
34938 | ||
34939 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34940 | PyObject *resultobj; | |
34941 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34942 | wxPoint result; | |
34943 | PyObject * obj0 = 0 ; | |
34944 | char *kwnames[] = { | |
34945 | (char *) "self", NULL | |
34946 | }; | |
34947 | ||
34948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
34949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34951 | { | |
34952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34953 | result = (arg1)->GetPosition(); | |
34954 | ||
34955 | wxPyEndAllowThreads(__tstate); | |
34956 | if (PyErr_Occurred()) SWIG_fail; | |
34957 | } | |
34958 | { | |
34959 | wxPoint * resultptr; | |
34960 | resultptr = new wxPoint((wxPoint &) result); | |
34961 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
34962 | } | |
34963 | return resultobj; | |
34964 | fail: | |
34965 | return NULL; | |
34966 | } | |
34967 | ||
34968 | ||
34969 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34970 | PyObject *resultobj; | |
34971 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34972 | PyObject *result; | |
34973 | PyObject * obj0 = 0 ; | |
34974 | char *kwnames[] = { | |
34975 | (char *) "self", NULL | |
34976 | }; | |
34977 | ||
34978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
34979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34981 | { | |
34982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34983 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
34984 | ||
34985 | wxPyEndAllowThreads(__tstate); | |
34986 | if (PyErr_Occurred()) SWIG_fail; | |
34987 | } | |
34988 | resultobj = result; | |
34989 | return resultobj; | |
34990 | fail: | |
34991 | return NULL; | |
34992 | } | |
34993 | ||
34994 | ||
34995 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
34996 | PyObject *obj; | |
34997 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34998 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
34999 | Py_INCREF(obj); | |
35000 | return Py_BuildValue((char *)""); | |
35001 | } | |
35002 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35003 | PyObject *resultobj; | |
35004 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35005 | PyObject *arg2 = (PyObject *) 0 ; | |
35006 | PyObject * obj0 = 0 ; | |
35007 | PyObject * obj1 = 0 ; | |
35008 | char *kwnames[] = { | |
35009 | (char *) "self",(char *) "_self", NULL | |
35010 | }; | |
35011 | ||
35012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
35013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35015 | arg2 = obj1; | |
35016 | { | |
35017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35018 | wxSizer__setOORInfo(arg1,arg2); | |
35019 | ||
35020 | wxPyEndAllowThreads(__tstate); | |
35021 | if (PyErr_Occurred()) SWIG_fail; | |
35022 | } | |
35023 | Py_INCREF(Py_None); resultobj = Py_None; | |
35024 | return resultobj; | |
35025 | fail: | |
35026 | return NULL; | |
35027 | } | |
35028 | ||
35029 | ||
35030 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35031 | PyObject *resultobj; | |
35032 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35033 | PyObject *arg2 = (PyObject *) 0 ; | |
35034 | int arg3 = (int) 0 ; | |
35035 | int arg4 = (int) 0 ; | |
35036 | int arg5 = (int) 0 ; | |
35037 | PyObject *arg6 = (PyObject *) NULL ; | |
35038 | PyObject * obj0 = 0 ; | |
35039 | PyObject * obj1 = 0 ; | |
35040 | PyObject * obj2 = 0 ; | |
35041 | PyObject * obj3 = 0 ; | |
35042 | PyObject * obj4 = 0 ; | |
35043 | PyObject * obj5 = 0 ; | |
35044 | char *kwnames[] = { | |
35045 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35046 | }; | |
35047 | ||
35048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35051 | arg2 = obj1; | |
35052 | if (obj2) { | |
35053 | arg3 = (int) SWIG_AsInt(obj2); | |
35054 | if (PyErr_Occurred()) SWIG_fail; | |
35055 | } | |
35056 | if (obj3) { | |
35057 | arg4 = (int) SWIG_AsInt(obj3); | |
35058 | if (PyErr_Occurred()) SWIG_fail; | |
35059 | } | |
35060 | if (obj4) { | |
35061 | arg5 = (int) SWIG_AsInt(obj4); | |
35062 | if (PyErr_Occurred()) SWIG_fail; | |
35063 | } | |
35064 | if (obj5) { | |
35065 | arg6 = obj5; | |
35066 | } | |
35067 | { | |
35068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35069 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
35070 | ||
35071 | wxPyEndAllowThreads(__tstate); | |
35072 | if (PyErr_Occurred()) SWIG_fail; | |
35073 | } | |
35074 | Py_INCREF(Py_None); resultobj = Py_None; | |
35075 | return resultobj; | |
35076 | fail: | |
35077 | return NULL; | |
35078 | } | |
35079 | ||
35080 | ||
35081 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35082 | PyObject *resultobj; | |
35083 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35084 | int arg2 ; | |
35085 | PyObject *arg3 = (PyObject *) 0 ; | |
35086 | int arg4 = (int) 0 ; | |
35087 | int arg5 = (int) 0 ; | |
35088 | int arg6 = (int) 0 ; | |
35089 | PyObject *arg7 = (PyObject *) NULL ; | |
35090 | PyObject * obj0 = 0 ; | |
35091 | PyObject * obj1 = 0 ; | |
35092 | PyObject * obj2 = 0 ; | |
35093 | PyObject * obj3 = 0 ; | |
35094 | PyObject * obj4 = 0 ; | |
35095 | PyObject * obj5 = 0 ; | |
35096 | PyObject * obj6 = 0 ; | |
35097 | char *kwnames[] = { | |
35098 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35099 | }; | |
35100 | ||
35101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
35102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35104 | arg2 = (int) SWIG_AsInt(obj1); | |
35105 | if (PyErr_Occurred()) SWIG_fail; | |
35106 | arg3 = obj2; | |
35107 | if (obj3) { | |
35108 | arg4 = (int) SWIG_AsInt(obj3); | |
35109 | if (PyErr_Occurred()) SWIG_fail; | |
35110 | } | |
35111 | if (obj4) { | |
35112 | arg5 = (int) SWIG_AsInt(obj4); | |
35113 | if (PyErr_Occurred()) SWIG_fail; | |
35114 | } | |
35115 | if (obj5) { | |
35116 | arg6 = (int) SWIG_AsInt(obj5); | |
35117 | if (PyErr_Occurred()) SWIG_fail; | |
35118 | } | |
35119 | if (obj6) { | |
35120 | arg7 = obj6; | |
35121 | } | |
35122 | { | |
35123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35124 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
35125 | ||
35126 | wxPyEndAllowThreads(__tstate); | |
35127 | if (PyErr_Occurred()) SWIG_fail; | |
35128 | } | |
35129 | Py_INCREF(Py_None); resultobj = Py_None; | |
35130 | return resultobj; | |
35131 | fail: | |
35132 | return NULL; | |
35133 | } | |
35134 | ||
35135 | ||
35136 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35137 | PyObject *resultobj; | |
35138 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35139 | PyObject *arg2 = (PyObject *) 0 ; | |
35140 | int arg3 = (int) 0 ; | |
35141 | int arg4 = (int) 0 ; | |
35142 | int arg5 = (int) 0 ; | |
35143 | PyObject *arg6 = (PyObject *) NULL ; | |
35144 | PyObject * obj0 = 0 ; | |
35145 | PyObject * obj1 = 0 ; | |
35146 | PyObject * obj2 = 0 ; | |
35147 | PyObject * obj3 = 0 ; | |
35148 | PyObject * obj4 = 0 ; | |
35149 | PyObject * obj5 = 0 ; | |
35150 | char *kwnames[] = { | |
35151 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35152 | }; | |
35153 | ||
35154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35157 | arg2 = obj1; | |
35158 | if (obj2) { | |
35159 | arg3 = (int) SWIG_AsInt(obj2); | |
35160 | if (PyErr_Occurred()) SWIG_fail; | |
35161 | } | |
35162 | if (obj3) { | |
35163 | arg4 = (int) SWIG_AsInt(obj3); | |
35164 | if (PyErr_Occurred()) SWIG_fail; | |
35165 | } | |
35166 | if (obj4) { | |
35167 | arg5 = (int) SWIG_AsInt(obj4); | |
35168 | if (PyErr_Occurred()) SWIG_fail; | |
35169 | } | |
35170 | if (obj5) { | |
35171 | arg6 = obj5; | |
35172 | } | |
35173 | { | |
35174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35175 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
35176 | ||
35177 | wxPyEndAllowThreads(__tstate); | |
35178 | if (PyErr_Occurred()) SWIG_fail; | |
35179 | } | |
35180 | Py_INCREF(Py_None); resultobj = Py_None; | |
35181 | return resultobj; | |
35182 | fail: | |
35183 | return NULL; | |
35184 | } | |
35185 | ||
35186 | ||
35187 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35188 | PyObject *resultobj; | |
35189 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35190 | PyObject *arg2 = (PyObject *) 0 ; | |
35191 | bool result; | |
35192 | PyObject * obj0 = 0 ; | |
35193 | PyObject * obj1 = 0 ; | |
35194 | char *kwnames[] = { | |
35195 | (char *) "self",(char *) "item", NULL | |
35196 | }; | |
35197 | ||
35198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
35199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35201 | arg2 = obj1; | |
35202 | { | |
35203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35204 | result = (bool)wxSizer_Remove(arg1,arg2); | |
35205 | ||
35206 | wxPyEndAllowThreads(__tstate); | |
35207 | if (PyErr_Occurred()) SWIG_fail; | |
35208 | } | |
35209 | { | |
35210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35211 | } | |
35212 | return resultobj; | |
35213 | fail: | |
35214 | return NULL; | |
35215 | } | |
35216 | ||
35217 | ||
35218 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35219 | PyObject *resultobj; | |
35220 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35221 | PyObject *arg2 = (PyObject *) 0 ; | |
35222 | wxSize *arg3 = 0 ; | |
35223 | wxSize temp3 ; | |
35224 | PyObject * obj0 = 0 ; | |
35225 | PyObject * obj1 = 0 ; | |
35226 | PyObject * obj2 = 0 ; | |
35227 | char *kwnames[] = { | |
35228 | (char *) "self",(char *) "item",(char *) "size", NULL | |
35229 | }; | |
35230 | ||
35231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35234 | arg2 = obj1; | |
35235 | { | |
35236 | arg3 = &temp3; | |
35237 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
35238 | } | |
35239 | { | |
35240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35241 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); | |
35242 | ||
35243 | wxPyEndAllowThreads(__tstate); | |
35244 | if (PyErr_Occurred()) SWIG_fail; | |
35245 | } | |
35246 | Py_INCREF(Py_None); resultobj = Py_None; | |
35247 | return resultobj; | |
35248 | fail: | |
35249 | return NULL; | |
35250 | } | |
35251 | ||
35252 | ||
35253 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35254 | PyObject *resultobj; | |
35255 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35256 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
35257 | PyObject * obj0 = 0 ; | |
35258 | PyObject * obj1 = 0 ; | |
35259 | char *kwnames[] = { | |
35260 | (char *) "self",(char *) "item", NULL | |
35261 | }; | |
35262 | ||
35263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
35264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35266 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
35267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35268 | { | |
35269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35270 | (arg1)->Add(arg2); | |
35271 | ||
35272 | wxPyEndAllowThreads(__tstate); | |
35273 | if (PyErr_Occurred()) SWIG_fail; | |
35274 | } | |
35275 | Py_INCREF(Py_None); resultobj = Py_None; | |
35276 | return resultobj; | |
35277 | fail: | |
35278 | return NULL; | |
35279 | } | |
35280 | ||
35281 | ||
35282 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35283 | PyObject *resultobj; | |
35284 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35285 | size_t arg2 ; | |
35286 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
35287 | PyObject * obj0 = 0 ; | |
35288 | PyObject * obj1 = 0 ; | |
35289 | PyObject * obj2 = 0 ; | |
35290 | char *kwnames[] = { | |
35291 | (char *) "self",(char *) "index",(char *) "item", NULL | |
35292 | }; | |
35293 | ||
35294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35297 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35298 | if (PyErr_Occurred()) SWIG_fail; | |
35299 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
35300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35301 | { | |
35302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35303 | (arg1)->Insert(arg2,arg3); | |
35304 | ||
35305 | wxPyEndAllowThreads(__tstate); | |
35306 | if (PyErr_Occurred()) SWIG_fail; | |
35307 | } | |
35308 | Py_INCREF(Py_None); resultobj = Py_None; | |
35309 | return resultobj; | |
35310 | fail: | |
35311 | return NULL; | |
35312 | } | |
35313 | ||
35314 | ||
35315 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35316 | PyObject *resultobj; | |
35317 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35318 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
35319 | PyObject * obj0 = 0 ; | |
35320 | PyObject * obj1 = 0 ; | |
35321 | char *kwnames[] = { | |
35322 | (char *) "self",(char *) "item", NULL | |
35323 | }; | |
35324 | ||
35325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
35326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35328 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
35329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35330 | { | |
35331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35332 | (arg1)->Prepend(arg2); | |
35333 | ||
35334 | wxPyEndAllowThreads(__tstate); | |
35335 | if (PyErr_Occurred()) SWIG_fail; | |
35336 | } | |
35337 | Py_INCREF(Py_None); resultobj = Py_None; | |
35338 | return resultobj; | |
35339 | fail: | |
35340 | return NULL; | |
35341 | } | |
35342 | ||
35343 | ||
35344 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35345 | PyObject *resultobj; | |
35346 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35347 | int arg2 ; | |
35348 | int arg3 ; | |
35349 | int arg4 ; | |
35350 | int arg5 ; | |
35351 | PyObject * obj0 = 0 ; | |
35352 | PyObject * obj1 = 0 ; | |
35353 | PyObject * obj2 = 0 ; | |
35354 | PyObject * obj3 = 0 ; | |
35355 | PyObject * obj4 = 0 ; | |
35356 | char *kwnames[] = { | |
35357 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
35358 | }; | |
35359 | ||
35360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
35361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35363 | arg2 = (int) SWIG_AsInt(obj1); | |
35364 | if (PyErr_Occurred()) SWIG_fail; | |
35365 | arg3 = (int) SWIG_AsInt(obj2); | |
35366 | if (PyErr_Occurred()) SWIG_fail; | |
35367 | arg4 = (int) SWIG_AsInt(obj3); | |
35368 | if (PyErr_Occurred()) SWIG_fail; | |
35369 | arg5 = (int) SWIG_AsInt(obj4); | |
35370 | if (PyErr_Occurred()) SWIG_fail; | |
35371 | { | |
35372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35373 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
35374 | ||
35375 | wxPyEndAllowThreads(__tstate); | |
35376 | if (PyErr_Occurred()) SWIG_fail; | |
35377 | } | |
35378 | Py_INCREF(Py_None); resultobj = Py_None; | |
35379 | return resultobj; | |
35380 | fail: | |
35381 | return NULL; | |
35382 | } | |
35383 | ||
35384 | ||
35385 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35386 | PyObject *resultobj; | |
35387 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35388 | wxSize *arg2 = 0 ; | |
35389 | wxSize temp2 ; | |
35390 | PyObject * obj0 = 0 ; | |
35391 | PyObject * obj1 = 0 ; | |
35392 | char *kwnames[] = { | |
35393 | (char *) "self",(char *) "size", NULL | |
35394 | }; | |
35395 | ||
35396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
35397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35399 | { | |
35400 | arg2 = &temp2; | |
35401 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35402 | } | |
35403 | { | |
35404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35405 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
35406 | ||
35407 | wxPyEndAllowThreads(__tstate); | |
35408 | if (PyErr_Occurred()) SWIG_fail; | |
35409 | } | |
35410 | Py_INCREF(Py_None); resultobj = Py_None; | |
35411 | return resultobj; | |
35412 | fail: | |
35413 | return NULL; | |
35414 | } | |
35415 | ||
35416 | ||
35417 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35418 | PyObject *resultobj; | |
35419 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35420 | wxSize result; | |
35421 | PyObject * obj0 = 0 ; | |
35422 | char *kwnames[] = { | |
35423 | (char *) "self", NULL | |
35424 | }; | |
35425 | ||
35426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
35427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35429 | { | |
35430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35431 | result = (arg1)->GetSize(); | |
35432 | ||
35433 | wxPyEndAllowThreads(__tstate); | |
35434 | if (PyErr_Occurred()) SWIG_fail; | |
35435 | } | |
35436 | { | |
35437 | wxSize * resultptr; | |
35438 | resultptr = new wxSize((wxSize &) result); | |
35439 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35440 | } | |
35441 | return resultobj; | |
35442 | fail: | |
35443 | return NULL; | |
35444 | } | |
35445 | ||
35446 | ||
35447 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35448 | PyObject *resultobj; | |
35449 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35450 | wxPoint result; | |
35451 | PyObject * obj0 = 0 ; | |
35452 | char *kwnames[] = { | |
35453 | (char *) "self", NULL | |
35454 | }; | |
35455 | ||
35456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
35457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35459 | { | |
35460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35461 | result = (arg1)->GetPosition(); | |
35462 | ||
35463 | wxPyEndAllowThreads(__tstate); | |
35464 | if (PyErr_Occurred()) SWIG_fail; | |
35465 | } | |
35466 | { | |
35467 | wxPoint * resultptr; | |
35468 | resultptr = new wxPoint((wxPoint &) result); | |
35469 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
35470 | } | |
35471 | return resultobj; | |
35472 | fail: | |
35473 | return NULL; | |
35474 | } | |
35475 | ||
35476 | ||
35477 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35478 | PyObject *resultobj; | |
35479 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35480 | wxSize result; | |
35481 | PyObject * obj0 = 0 ; | |
35482 | char *kwnames[] = { | |
35483 | (char *) "self", NULL | |
35484 | }; | |
35485 | ||
35486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
35487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35489 | { | |
35490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35491 | result = (arg1)->GetMinSize(); | |
35492 | ||
35493 | wxPyEndAllowThreads(__tstate); | |
35494 | if (PyErr_Occurred()) SWIG_fail; | |
35495 | } | |
35496 | { | |
35497 | wxSize * resultptr; | |
35498 | resultptr = new wxSize((wxSize &) result); | |
35499 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35500 | } | |
35501 | return resultobj; | |
35502 | fail: | |
35503 | return NULL; | |
35504 | } | |
35505 | ||
35506 | ||
35507 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35508 | PyObject *resultobj; | |
35509 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35510 | PyObject * obj0 = 0 ; | |
35511 | char *kwnames[] = { | |
35512 | (char *) "self", NULL | |
35513 | }; | |
35514 | ||
35515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
35516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35518 | { | |
35519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35520 | (arg1)->RecalcSizes(); | |
35521 | ||
35522 | wxPyEndAllowThreads(__tstate); | |
35523 | if (PyErr_Occurred()) SWIG_fail; | |
35524 | } | |
35525 | Py_INCREF(Py_None); resultobj = Py_None; | |
35526 | return resultobj; | |
35527 | fail: | |
35528 | return NULL; | |
35529 | } | |
35530 | ||
35531 | ||
35532 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35533 | PyObject *resultobj; | |
35534 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35535 | wxSize result; | |
35536 | PyObject * obj0 = 0 ; | |
35537 | char *kwnames[] = { | |
35538 | (char *) "self", NULL | |
35539 | }; | |
35540 | ||
35541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
35542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35544 | { | |
35545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35546 | result = (arg1)->CalcMin(); | |
35547 | ||
35548 | wxPyEndAllowThreads(__tstate); | |
35549 | if (PyErr_Occurred()) SWIG_fail; | |
35550 | } | |
35551 | { | |
35552 | wxSize * resultptr; | |
35553 | resultptr = new wxSize((wxSize &) result); | |
35554 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35555 | } | |
35556 | return resultobj; | |
35557 | fail: | |
35558 | return NULL; | |
35559 | } | |
35560 | ||
35561 | ||
35562 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35563 | PyObject *resultobj; | |
35564 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35565 | PyObject * obj0 = 0 ; | |
35566 | char *kwnames[] = { | |
35567 | (char *) "self", NULL | |
35568 | }; | |
35569 | ||
35570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
35571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35573 | { | |
35574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35575 | (arg1)->Layout(); | |
35576 | ||
35577 | wxPyEndAllowThreads(__tstate); | |
35578 | if (PyErr_Occurred()) SWIG_fail; | |
35579 | } | |
35580 | Py_INCREF(Py_None); resultobj = Py_None; | |
35581 | return resultobj; | |
35582 | fail: | |
35583 | return NULL; | |
35584 | } | |
35585 | ||
35586 | ||
35587 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35588 | PyObject *resultobj; | |
35589 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35590 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35591 | wxSize result; | |
35592 | PyObject * obj0 = 0 ; | |
35593 | PyObject * obj1 = 0 ; | |
35594 | char *kwnames[] = { | |
35595 | (char *) "self",(char *) "window", NULL | |
35596 | }; | |
35597 | ||
35598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
35599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35601 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35603 | { | |
35604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35605 | result = (arg1)->Fit(arg2); | |
35606 | ||
35607 | wxPyEndAllowThreads(__tstate); | |
35608 | if (PyErr_Occurred()) SWIG_fail; | |
35609 | } | |
35610 | { | |
35611 | wxSize * resultptr; | |
35612 | resultptr = new wxSize((wxSize &) result); | |
35613 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35614 | } | |
35615 | return resultobj; | |
35616 | fail: | |
35617 | return NULL; | |
35618 | } | |
35619 | ||
35620 | ||
35621 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35622 | PyObject *resultobj; | |
35623 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35624 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35625 | PyObject * obj0 = 0 ; | |
35626 | PyObject * obj1 = 0 ; | |
35627 | char *kwnames[] = { | |
35628 | (char *) "self",(char *) "window", NULL | |
35629 | }; | |
35630 | ||
35631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
35632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35634 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35636 | { | |
35637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35638 | (arg1)->FitInside(arg2); | |
35639 | ||
35640 | wxPyEndAllowThreads(__tstate); | |
35641 | if (PyErr_Occurred()) SWIG_fail; | |
35642 | } | |
35643 | Py_INCREF(Py_None); resultobj = Py_None; | |
35644 | return resultobj; | |
35645 | fail: | |
35646 | return NULL; | |
35647 | } | |
35648 | ||
35649 | ||
35650 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35651 | PyObject *resultobj; | |
35652 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35653 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35654 | PyObject * obj0 = 0 ; | |
35655 | PyObject * obj1 = 0 ; | |
35656 | char *kwnames[] = { | |
35657 | (char *) "self",(char *) "window", NULL | |
35658 | }; | |
35659 | ||
35660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
35661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35663 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35665 | { | |
35666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35667 | (arg1)->SetSizeHints(arg2); | |
35668 | ||
35669 | wxPyEndAllowThreads(__tstate); | |
35670 | if (PyErr_Occurred()) SWIG_fail; | |
35671 | } | |
35672 | Py_INCREF(Py_None); resultobj = Py_None; | |
35673 | return resultobj; | |
35674 | fail: | |
35675 | return NULL; | |
35676 | } | |
35677 | ||
35678 | ||
35679 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35680 | PyObject *resultobj; | |
35681 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35682 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35683 | PyObject * obj0 = 0 ; | |
35684 | PyObject * obj1 = 0 ; | |
35685 | char *kwnames[] = { | |
35686 | (char *) "self",(char *) "window", NULL | |
35687 | }; | |
35688 | ||
35689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
35690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35692 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35694 | { | |
35695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35696 | (arg1)->SetVirtualSizeHints(arg2); | |
35697 | ||
35698 | wxPyEndAllowThreads(__tstate); | |
35699 | if (PyErr_Occurred()) SWIG_fail; | |
35700 | } | |
35701 | Py_INCREF(Py_None); resultobj = Py_None; | |
35702 | return resultobj; | |
35703 | fail: | |
35704 | return NULL; | |
35705 | } | |
35706 | ||
35707 | ||
35708 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35709 | PyObject *resultobj; | |
35710 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35711 | bool arg2 = (bool) False ; | |
35712 | PyObject * obj0 = 0 ; | |
35713 | PyObject * obj1 = 0 ; | |
35714 | char *kwnames[] = { | |
35715 | (char *) "self",(char *) "delete_windows", NULL | |
35716 | }; | |
35717 | ||
35718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
35719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35721 | if (obj1) { | |
35722 | arg2 = (bool) SWIG_AsBool(obj1); | |
35723 | if (PyErr_Occurred()) SWIG_fail; | |
35724 | } | |
35725 | { | |
35726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35727 | (arg1)->Clear(arg2); | |
35728 | ||
35729 | wxPyEndAllowThreads(__tstate); | |
35730 | if (PyErr_Occurred()) SWIG_fail; | |
35731 | } | |
35732 | Py_INCREF(Py_None); resultobj = Py_None; | |
35733 | return resultobj; | |
35734 | fail: | |
35735 | return NULL; | |
35736 | } | |
35737 | ||
35738 | ||
35739 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35740 | PyObject *resultobj; | |
35741 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35742 | PyObject * obj0 = 0 ; | |
35743 | char *kwnames[] = { | |
35744 | (char *) "self", NULL | |
35745 | }; | |
35746 | ||
35747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
35748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35750 | { | |
35751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35752 | (arg1)->DeleteWindows(); | |
35753 | ||
35754 | wxPyEndAllowThreads(__tstate); | |
35755 | if (PyErr_Occurred()) SWIG_fail; | |
35756 | } | |
35757 | Py_INCREF(Py_None); resultobj = Py_None; | |
35758 | return resultobj; | |
35759 | fail: | |
35760 | return NULL; | |
35761 | } | |
35762 | ||
35763 | ||
35764 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35765 | PyObject *resultobj; | |
35766 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35767 | PyObject *result; | |
35768 | PyObject * obj0 = 0 ; | |
35769 | char *kwnames[] = { | |
35770 | (char *) "self", NULL | |
35771 | }; | |
35772 | ||
35773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
35774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35776 | { | |
35777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35778 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
35779 | ||
35780 | wxPyEndAllowThreads(__tstate); | |
35781 | if (PyErr_Occurred()) SWIG_fail; | |
35782 | } | |
35783 | resultobj = result; | |
35784 | return resultobj; | |
35785 | fail: | |
35786 | return NULL; | |
35787 | } | |
35788 | ||
35789 | ||
35790 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35791 | PyObject *resultobj; | |
35792 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35793 | PyObject *arg2 = (PyObject *) 0 ; | |
35794 | bool arg3 = (bool) True ; | |
35795 | PyObject * obj0 = 0 ; | |
35796 | PyObject * obj1 = 0 ; | |
35797 | PyObject * obj2 = 0 ; | |
35798 | char *kwnames[] = { | |
35799 | (char *) "self",(char *) "item",(char *) "show", NULL | |
35800 | }; | |
35801 | ||
35802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35805 | arg2 = obj1; | |
35806 | if (obj2) { | |
35807 | arg3 = (bool) SWIG_AsBool(obj2); | |
35808 | if (PyErr_Occurred()) SWIG_fail; | |
35809 | } | |
35810 | { | |
35811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35812 | wxSizer_Show(arg1,arg2,arg3); | |
35813 | ||
35814 | wxPyEndAllowThreads(__tstate); | |
35815 | if (PyErr_Occurred()) SWIG_fail; | |
35816 | } | |
35817 | Py_INCREF(Py_None); resultobj = Py_None; | |
35818 | return resultobj; | |
35819 | fail: | |
35820 | return NULL; | |
35821 | } | |
35822 | ||
35823 | ||
35824 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35825 | PyObject *resultobj; | |
35826 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35827 | PyObject *arg2 = (PyObject *) 0 ; | |
35828 | PyObject * obj0 = 0 ; | |
35829 | PyObject * obj1 = 0 ; | |
35830 | char *kwnames[] = { | |
35831 | (char *) "self",(char *) "item", NULL | |
35832 | }; | |
35833 | ||
35834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
35835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35837 | arg2 = obj1; | |
35838 | { | |
35839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35840 | wxSizer_Hide(arg1,arg2); | |
35841 | ||
35842 | wxPyEndAllowThreads(__tstate); | |
35843 | if (PyErr_Occurred()) SWIG_fail; | |
35844 | } | |
35845 | Py_INCREF(Py_None); resultobj = Py_None; | |
35846 | return resultobj; | |
35847 | fail: | |
35848 | return NULL; | |
35849 | } | |
35850 | ||
35851 | ||
35852 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35853 | PyObject *resultobj; | |
35854 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35855 | PyObject *arg2 = (PyObject *) 0 ; | |
35856 | bool result; | |
35857 | PyObject * obj0 = 0 ; | |
35858 | PyObject * obj1 = 0 ; | |
35859 | char *kwnames[] = { | |
35860 | (char *) "self",(char *) "item", NULL | |
35861 | }; | |
35862 | ||
35863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
35864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35866 | arg2 = obj1; | |
35867 | { | |
35868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35869 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
35870 | ||
35871 | wxPyEndAllowThreads(__tstate); | |
35872 | if (PyErr_Occurred()) SWIG_fail; | |
35873 | } | |
35874 | { | |
35875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35876 | } | |
35877 | return resultobj; | |
35878 | fail: | |
35879 | return NULL; | |
35880 | } | |
35881 | ||
35882 | ||
35883 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35884 | PyObject *resultobj; | |
35885 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35886 | bool arg2 ; | |
35887 | PyObject * obj0 = 0 ; | |
35888 | PyObject * obj1 = 0 ; | |
35889 | char *kwnames[] = { | |
35890 | (char *) "self",(char *) "show", NULL | |
35891 | }; | |
35892 | ||
35893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
35894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35896 | arg2 = (bool) SWIG_AsBool(obj1); | |
35897 | if (PyErr_Occurred()) SWIG_fail; | |
35898 | { | |
35899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35900 | (arg1)->ShowItems(arg2); | |
35901 | ||
35902 | wxPyEndAllowThreads(__tstate); | |
35903 | if (PyErr_Occurred()) SWIG_fail; | |
35904 | } | |
35905 | Py_INCREF(Py_None); resultobj = Py_None; | |
35906 | return resultobj; | |
35907 | fail: | |
35908 | return NULL; | |
35909 | } | |
35910 | ||
35911 | ||
35912 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
35913 | PyObject *obj; | |
35914 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35915 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
35916 | Py_INCREF(obj); | |
35917 | return Py_BuildValue((char *)""); | |
35918 | } | |
35919 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35920 | PyObject *resultobj; | |
35921 | wxPySizer *result; | |
35922 | char *kwnames[] = { | |
35923 | NULL | |
35924 | }; | |
35925 | ||
35926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
35927 | { | |
35928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35929 | result = (wxPySizer *)new wxPySizer(); | |
35930 | ||
35931 | wxPyEndAllowThreads(__tstate); | |
35932 | if (PyErr_Occurred()) SWIG_fail; | |
35933 | } | |
35934 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); | |
35935 | return resultobj; | |
35936 | fail: | |
35937 | return NULL; | |
35938 | } | |
35939 | ||
35940 | ||
35941 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35942 | PyObject *resultobj; | |
35943 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
35944 | PyObject *arg2 = (PyObject *) 0 ; | |
35945 | PyObject *arg3 = (PyObject *) 0 ; | |
35946 | PyObject * obj0 = 0 ; | |
35947 | PyObject * obj1 = 0 ; | |
35948 | PyObject * obj2 = 0 ; | |
35949 | char *kwnames[] = { | |
35950 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
35951 | }; | |
35952 | ||
35953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, | |
35955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35956 | arg2 = obj1; | |
35957 | arg3 = obj2; | |
35958 | { | |
35959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35960 | (arg1)->_setCallbackInfo(arg2,arg3); | |
35961 | ||
35962 | wxPyEndAllowThreads(__tstate); | |
35963 | if (PyErr_Occurred()) SWIG_fail; | |
35964 | } | |
35965 | Py_INCREF(Py_None); resultobj = Py_None; | |
35966 | return resultobj; | |
35967 | fail: | |
35968 | return NULL; | |
35969 | } | |
35970 | ||
35971 | ||
35972 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
35973 | PyObject *obj; | |
35974 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35975 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
35976 | Py_INCREF(obj); | |
35977 | return Py_BuildValue((char *)""); | |
35978 | } | |
35979 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35980 | PyObject *resultobj; | |
35981 | int arg1 = (int) wxHORIZONTAL ; | |
35982 | wxBoxSizer *result; | |
35983 | PyObject * obj0 = 0 ; | |
35984 | char *kwnames[] = { | |
35985 | (char *) "orient", NULL | |
35986 | }; | |
35987 | ||
35988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; | |
35989 | if (obj0) { | |
35990 | arg1 = (int) SWIG_AsInt(obj0); | |
35991 | if (PyErr_Occurred()) SWIG_fail; | |
35992 | } | |
35993 | { | |
35994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35995 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
35996 | ||
35997 | wxPyEndAllowThreads(__tstate); | |
35998 | if (PyErr_Occurred()) SWIG_fail; | |
35999 | } | |
36000 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); | |
36001 | return resultobj; | |
36002 | fail: | |
36003 | return NULL; | |
36004 | } | |
36005 | ||
36006 | ||
36007 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36008 | PyObject *resultobj; | |
36009 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36010 | int result; | |
36011 | PyObject * obj0 = 0 ; | |
36012 | char *kwnames[] = { | |
36013 | (char *) "self", NULL | |
36014 | }; | |
36015 | ||
36016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
36017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36019 | { | |
36020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36021 | result = (int)(arg1)->GetOrientation(); | |
36022 | ||
36023 | wxPyEndAllowThreads(__tstate); | |
36024 | if (PyErr_Occurred()) SWIG_fail; | |
36025 | } | |
36026 | resultobj = SWIG_FromInt((int)result); | |
36027 | return resultobj; | |
36028 | fail: | |
36029 | return NULL; | |
36030 | } | |
36031 | ||
36032 | ||
36033 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36034 | PyObject *resultobj; | |
36035 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36036 | int arg2 ; | |
36037 | PyObject * obj0 = 0 ; | |
36038 | PyObject * obj1 = 0 ; | |
36039 | char *kwnames[] = { | |
36040 | (char *) "self",(char *) "orient", NULL | |
36041 | }; | |
36042 | ||
36043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
36044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36046 | arg2 = (int) SWIG_AsInt(obj1); | |
36047 | if (PyErr_Occurred()) SWIG_fail; | |
36048 | { | |
36049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36050 | (arg1)->SetOrientation(arg2); | |
36051 | ||
36052 | wxPyEndAllowThreads(__tstate); | |
36053 | if (PyErr_Occurred()) SWIG_fail; | |
36054 | } | |
36055 | Py_INCREF(Py_None); resultobj = Py_None; | |
36056 | return resultobj; | |
36057 | fail: | |
36058 | return NULL; | |
36059 | } | |
36060 | ||
36061 | ||
36062 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36063 | PyObject *resultobj; | |
36064 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36065 | PyObject * obj0 = 0 ; | |
36066 | char *kwnames[] = { | |
36067 | (char *) "self", NULL | |
36068 | }; | |
36069 | ||
36070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36073 | { | |
36074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36075 | (arg1)->RecalcSizes(); | |
36076 | ||
36077 | wxPyEndAllowThreads(__tstate); | |
36078 | if (PyErr_Occurred()) SWIG_fail; | |
36079 | } | |
36080 | Py_INCREF(Py_None); resultobj = Py_None; | |
36081 | return resultobj; | |
36082 | fail: | |
36083 | return NULL; | |
36084 | } | |
36085 | ||
36086 | ||
36087 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36088 | PyObject *resultobj; | |
36089 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36090 | wxSize result; | |
36091 | PyObject * obj0 = 0 ; | |
36092 | char *kwnames[] = { | |
36093 | (char *) "self", NULL | |
36094 | }; | |
36095 | ||
36096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
36097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36099 | { | |
36100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36101 | result = (arg1)->CalcMin(); | |
36102 | ||
36103 | wxPyEndAllowThreads(__tstate); | |
36104 | if (PyErr_Occurred()) SWIG_fail; | |
36105 | } | |
36106 | { | |
36107 | wxSize * resultptr; | |
36108 | resultptr = new wxSize((wxSize &) result); | |
36109 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36110 | } | |
36111 | return resultobj; | |
36112 | fail: | |
36113 | return NULL; | |
36114 | } | |
36115 | ||
36116 | ||
36117 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
36118 | PyObject *obj; | |
36119 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36120 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
36121 | Py_INCREF(obj); | |
36122 | return Py_BuildValue((char *)""); | |
36123 | } | |
36124 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36125 | PyObject *resultobj; | |
36126 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
36127 | int arg2 = (int) wxHORIZONTAL ; | |
36128 | wxStaticBoxSizer *result; | |
36129 | PyObject * obj0 = 0 ; | |
36130 | PyObject * obj1 = 0 ; | |
36131 | char *kwnames[] = { | |
36132 | (char *) "box",(char *) "orient", NULL | |
36133 | }; | |
36134 | ||
36135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; | |
36136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, | |
36137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36138 | if (obj1) { | |
36139 | arg2 = (int) SWIG_AsInt(obj1); | |
36140 | if (PyErr_Occurred()) SWIG_fail; | |
36141 | } | |
36142 | { | |
36143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36144 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
36145 | ||
36146 | wxPyEndAllowThreads(__tstate); | |
36147 | if (PyErr_Occurred()) SWIG_fail; | |
36148 | } | |
36149 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); | |
36150 | return resultobj; | |
36151 | fail: | |
36152 | return NULL; | |
36153 | } | |
36154 | ||
36155 | ||
36156 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36157 | PyObject *resultobj; | |
36158 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
36159 | wxStaticBox *result; | |
36160 | PyObject * obj0 = 0 ; | |
36161 | char *kwnames[] = { | |
36162 | (char *) "self", NULL | |
36163 | }; | |
36164 | ||
36165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
36166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
36167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36168 | { | |
36169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36170 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
36171 | ||
36172 | wxPyEndAllowThreads(__tstate); | |
36173 | if (PyErr_Occurred()) SWIG_fail; | |
36174 | } | |
36175 | { | |
36176 | resultobj = wxPyMake_wxObject(result); | |
36177 | } | |
36178 | return resultobj; | |
36179 | fail: | |
36180 | return NULL; | |
36181 | } | |
36182 | ||
36183 | ||
36184 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36185 | PyObject *resultobj; | |
36186 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
36187 | PyObject * obj0 = 0 ; | |
36188 | char *kwnames[] = { | |
36189 | (char *) "self", NULL | |
36190 | }; | |
36191 | ||
36192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
36194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36195 | { | |
36196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36197 | (arg1)->RecalcSizes(); | |
36198 | ||
36199 | wxPyEndAllowThreads(__tstate); | |
36200 | if (PyErr_Occurred()) SWIG_fail; | |
36201 | } | |
36202 | Py_INCREF(Py_None); resultobj = Py_None; | |
36203 | return resultobj; | |
36204 | fail: | |
36205 | return NULL; | |
36206 | } | |
36207 | ||
36208 | ||
36209 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36210 | PyObject *resultobj; | |
36211 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
36212 | wxSize result; | |
36213 | PyObject * obj0 = 0 ; | |
36214 | char *kwnames[] = { | |
36215 | (char *) "self", NULL | |
36216 | }; | |
36217 | ||
36218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
36219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
36220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36221 | { | |
36222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36223 | result = (arg1)->CalcMin(); | |
36224 | ||
36225 | wxPyEndAllowThreads(__tstate); | |
36226 | if (PyErr_Occurred()) SWIG_fail; | |
36227 | } | |
36228 | { | |
36229 | wxSize * resultptr; | |
36230 | resultptr = new wxSize((wxSize &) result); | |
36231 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36232 | } | |
36233 | return resultobj; | |
36234 | fail: | |
36235 | return NULL; | |
36236 | } | |
36237 | ||
36238 | ||
36239 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
36240 | PyObject *obj; | |
36241 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36242 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
36243 | Py_INCREF(obj); | |
36244 | return Py_BuildValue((char *)""); | |
36245 | } | |
36246 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36247 | PyObject *resultobj; | |
36248 | int arg1 = (int) 1 ; | |
36249 | int arg2 = (int) 0 ; | |
36250 | int arg3 = (int) 0 ; | |
36251 | int arg4 = (int) 0 ; | |
36252 | wxGridSizer *result; | |
36253 | PyObject * obj0 = 0 ; | |
36254 | PyObject * obj1 = 0 ; | |
36255 | PyObject * obj2 = 0 ; | |
36256 | PyObject * obj3 = 0 ; | |
36257 | char *kwnames[] = { | |
36258 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36259 | }; | |
36260 | ||
36261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36262 | if (obj0) { | |
36263 | arg1 = (int) SWIG_AsInt(obj0); | |
36264 | if (PyErr_Occurred()) SWIG_fail; | |
36265 | } | |
36266 | if (obj1) { | |
36267 | arg2 = (int) SWIG_AsInt(obj1); | |
36268 | if (PyErr_Occurred()) SWIG_fail; | |
36269 | } | |
36270 | if (obj2) { | |
36271 | arg3 = (int) SWIG_AsInt(obj2); | |
36272 | if (PyErr_Occurred()) SWIG_fail; | |
36273 | } | |
36274 | if (obj3) { | |
36275 | arg4 = (int) SWIG_AsInt(obj3); | |
36276 | if (PyErr_Occurred()) SWIG_fail; | |
36277 | } | |
36278 | { | |
36279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36280 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
36281 | ||
36282 | wxPyEndAllowThreads(__tstate); | |
36283 | if (PyErr_Occurred()) SWIG_fail; | |
36284 | } | |
36285 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); | |
36286 | return resultobj; | |
36287 | fail: | |
36288 | return NULL; | |
36289 | } | |
36290 | ||
36291 | ||
36292 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36293 | PyObject *resultobj; | |
36294 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36295 | PyObject * obj0 = 0 ; | |
36296 | char *kwnames[] = { | |
36297 | (char *) "self", NULL | |
36298 | }; | |
36299 | ||
36300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36303 | { | |
36304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36305 | (arg1)->RecalcSizes(); | |
36306 | ||
36307 | wxPyEndAllowThreads(__tstate); | |
36308 | if (PyErr_Occurred()) SWIG_fail; | |
36309 | } | |
36310 | Py_INCREF(Py_None); resultobj = Py_None; | |
36311 | return resultobj; | |
36312 | fail: | |
36313 | return NULL; | |
36314 | } | |
36315 | ||
36316 | ||
36317 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36318 | PyObject *resultobj; | |
36319 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36320 | wxSize result; | |
36321 | PyObject * obj0 = 0 ; | |
36322 | char *kwnames[] = { | |
36323 | (char *) "self", NULL | |
36324 | }; | |
36325 | ||
36326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
36327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36329 | { | |
36330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36331 | result = (arg1)->CalcMin(); | |
36332 | ||
36333 | wxPyEndAllowThreads(__tstate); | |
36334 | if (PyErr_Occurred()) SWIG_fail; | |
36335 | } | |
36336 | { | |
36337 | wxSize * resultptr; | |
36338 | resultptr = new wxSize((wxSize &) result); | |
36339 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36340 | } | |
36341 | return resultobj; | |
36342 | fail: | |
36343 | return NULL; | |
36344 | } | |
36345 | ||
36346 | ||
36347 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36348 | PyObject *resultobj; | |
36349 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36350 | int arg2 ; | |
36351 | PyObject * obj0 = 0 ; | |
36352 | PyObject * obj1 = 0 ; | |
36353 | char *kwnames[] = { | |
36354 | (char *) "self",(char *) "cols", NULL | |
36355 | }; | |
36356 | ||
36357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; | |
36358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36360 | arg2 = (int) SWIG_AsInt(obj1); | |
36361 | if (PyErr_Occurred()) SWIG_fail; | |
36362 | { | |
36363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36364 | (arg1)->SetCols(arg2); | |
36365 | ||
36366 | wxPyEndAllowThreads(__tstate); | |
36367 | if (PyErr_Occurred()) SWIG_fail; | |
36368 | } | |
36369 | Py_INCREF(Py_None); resultobj = Py_None; | |
36370 | return resultobj; | |
36371 | fail: | |
36372 | return NULL; | |
36373 | } | |
36374 | ||
36375 | ||
36376 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36377 | PyObject *resultobj; | |
36378 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36379 | int arg2 ; | |
36380 | PyObject * obj0 = 0 ; | |
36381 | PyObject * obj1 = 0 ; | |
36382 | char *kwnames[] = { | |
36383 | (char *) "self",(char *) "rows", NULL | |
36384 | }; | |
36385 | ||
36386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
36387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36389 | arg2 = (int) SWIG_AsInt(obj1); | |
36390 | if (PyErr_Occurred()) SWIG_fail; | |
36391 | { | |
36392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36393 | (arg1)->SetRows(arg2); | |
36394 | ||
36395 | wxPyEndAllowThreads(__tstate); | |
36396 | if (PyErr_Occurred()) SWIG_fail; | |
36397 | } | |
36398 | Py_INCREF(Py_None); resultobj = Py_None; | |
36399 | return resultobj; | |
36400 | fail: | |
36401 | return NULL; | |
36402 | } | |
36403 | ||
36404 | ||
36405 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36406 | PyObject *resultobj; | |
36407 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36408 | int arg2 ; | |
36409 | PyObject * obj0 = 0 ; | |
36410 | PyObject * obj1 = 0 ; | |
36411 | char *kwnames[] = { | |
36412 | (char *) "self",(char *) "gap", NULL | |
36413 | }; | |
36414 | ||
36415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; | |
36416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36418 | arg2 = (int) SWIG_AsInt(obj1); | |
36419 | if (PyErr_Occurred()) SWIG_fail; | |
36420 | { | |
36421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36422 | (arg1)->SetVGap(arg2); | |
36423 | ||
36424 | wxPyEndAllowThreads(__tstate); | |
36425 | if (PyErr_Occurred()) SWIG_fail; | |
36426 | } | |
36427 | Py_INCREF(Py_None); resultobj = Py_None; | |
36428 | return resultobj; | |
36429 | fail: | |
36430 | return NULL; | |
36431 | } | |
36432 | ||
36433 | ||
36434 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36435 | PyObject *resultobj; | |
36436 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36437 | int arg2 ; | |
36438 | PyObject * obj0 = 0 ; | |
36439 | PyObject * obj1 = 0 ; | |
36440 | char *kwnames[] = { | |
36441 | (char *) "self",(char *) "gap", NULL | |
36442 | }; | |
36443 | ||
36444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; | |
36445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36447 | arg2 = (int) SWIG_AsInt(obj1); | |
36448 | if (PyErr_Occurred()) SWIG_fail; | |
36449 | { | |
36450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36451 | (arg1)->SetHGap(arg2); | |
36452 | ||
36453 | wxPyEndAllowThreads(__tstate); | |
36454 | if (PyErr_Occurred()) SWIG_fail; | |
36455 | } | |
36456 | Py_INCREF(Py_None); resultobj = Py_None; | |
36457 | return resultobj; | |
36458 | fail: | |
36459 | return NULL; | |
36460 | } | |
36461 | ||
36462 | ||
36463 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36464 | PyObject *resultobj; | |
36465 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36466 | int result; | |
36467 | PyObject * obj0 = 0 ; | |
36468 | char *kwnames[] = { | |
36469 | (char *) "self", NULL | |
36470 | }; | |
36471 | ||
36472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
36473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36475 | { | |
36476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36477 | result = (int)(arg1)->GetCols(); | |
36478 | ||
36479 | wxPyEndAllowThreads(__tstate); | |
36480 | if (PyErr_Occurred()) SWIG_fail; | |
36481 | } | |
36482 | resultobj = SWIG_FromInt((int)result); | |
36483 | return resultobj; | |
36484 | fail: | |
36485 | return NULL; | |
36486 | } | |
36487 | ||
36488 | ||
36489 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36490 | PyObject *resultobj; | |
36491 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36492 | int result; | |
36493 | PyObject * obj0 = 0 ; | |
36494 | char *kwnames[] = { | |
36495 | (char *) "self", NULL | |
36496 | }; | |
36497 | ||
36498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
36499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36501 | { | |
36502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36503 | result = (int)(arg1)->GetRows(); | |
36504 | ||
36505 | wxPyEndAllowThreads(__tstate); | |
36506 | if (PyErr_Occurred()) SWIG_fail; | |
36507 | } | |
36508 | resultobj = SWIG_FromInt((int)result); | |
36509 | return resultobj; | |
36510 | fail: | |
36511 | return NULL; | |
36512 | } | |
36513 | ||
36514 | ||
36515 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36516 | PyObject *resultobj; | |
36517 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36518 | int result; | |
36519 | PyObject * obj0 = 0 ; | |
36520 | char *kwnames[] = { | |
36521 | (char *) "self", NULL | |
36522 | }; | |
36523 | ||
36524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
36525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36527 | { | |
36528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36529 | result = (int)(arg1)->GetVGap(); | |
36530 | ||
36531 | wxPyEndAllowThreads(__tstate); | |
36532 | if (PyErr_Occurred()) SWIG_fail; | |
36533 | } | |
36534 | resultobj = SWIG_FromInt((int)result); | |
36535 | return resultobj; | |
36536 | fail: | |
36537 | return NULL; | |
36538 | } | |
36539 | ||
36540 | ||
36541 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36542 | PyObject *resultobj; | |
36543 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36544 | int result; | |
36545 | PyObject * obj0 = 0 ; | |
36546 | char *kwnames[] = { | |
36547 | (char *) "self", NULL | |
36548 | }; | |
36549 | ||
36550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
36551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36553 | { | |
36554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36555 | result = (int)(arg1)->GetHGap(); | |
36556 | ||
36557 | wxPyEndAllowThreads(__tstate); | |
36558 | if (PyErr_Occurred()) SWIG_fail; | |
36559 | } | |
36560 | resultobj = SWIG_FromInt((int)result); | |
36561 | return resultobj; | |
36562 | fail: | |
36563 | return NULL; | |
36564 | } | |
36565 | ||
36566 | ||
36567 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
36568 | PyObject *obj; | |
36569 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36570 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
36571 | Py_INCREF(obj); | |
36572 | return Py_BuildValue((char *)""); | |
36573 | } | |
36574 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36575 | PyObject *resultobj; | |
36576 | int arg1 = (int) 1 ; | |
36577 | int arg2 = (int) 0 ; | |
36578 | int arg3 = (int) 0 ; | |
36579 | int arg4 = (int) 0 ; | |
36580 | wxFlexGridSizer *result; | |
36581 | PyObject * obj0 = 0 ; | |
36582 | PyObject * obj1 = 0 ; | |
36583 | PyObject * obj2 = 0 ; | |
36584 | PyObject * obj3 = 0 ; | |
36585 | char *kwnames[] = { | |
36586 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36587 | }; | |
36588 | ||
36589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36590 | if (obj0) { | |
36591 | arg1 = (int) SWIG_AsInt(obj0); | |
36592 | if (PyErr_Occurred()) SWIG_fail; | |
36593 | } | |
36594 | if (obj1) { | |
36595 | arg2 = (int) SWIG_AsInt(obj1); | |
36596 | if (PyErr_Occurred()) SWIG_fail; | |
36597 | } | |
36598 | if (obj2) { | |
36599 | arg3 = (int) SWIG_AsInt(obj2); | |
36600 | if (PyErr_Occurred()) SWIG_fail; | |
36601 | } | |
36602 | if (obj3) { | |
36603 | arg4 = (int) SWIG_AsInt(obj3); | |
36604 | if (PyErr_Occurred()) SWIG_fail; | |
36605 | } | |
36606 | { | |
36607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36608 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
36609 | ||
36610 | wxPyEndAllowThreads(__tstate); | |
36611 | if (PyErr_Occurred()) SWIG_fail; | |
36612 | } | |
36613 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); | |
36614 | return resultobj; | |
36615 | fail: | |
36616 | return NULL; | |
36617 | } | |
36618 | ||
36619 | ||
36620 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36621 | PyObject *resultobj; | |
36622 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36623 | PyObject * obj0 = 0 ; | |
36624 | char *kwnames[] = { | |
36625 | (char *) "self", NULL | |
36626 | }; | |
36627 | ||
36628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36631 | { | |
36632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36633 | (arg1)->RecalcSizes(); | |
36634 | ||
36635 | wxPyEndAllowThreads(__tstate); | |
36636 | if (PyErr_Occurred()) SWIG_fail; | |
36637 | } | |
36638 | Py_INCREF(Py_None); resultobj = Py_None; | |
36639 | return resultobj; | |
36640 | fail: | |
36641 | return NULL; | |
36642 | } | |
36643 | ||
36644 | ||
36645 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36646 | PyObject *resultobj; | |
36647 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36648 | wxSize result; | |
36649 | PyObject * obj0 = 0 ; | |
36650 | char *kwnames[] = { | |
36651 | (char *) "self", NULL | |
36652 | }; | |
36653 | ||
36654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
36655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36657 | { | |
36658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36659 | result = (arg1)->CalcMin(); | |
36660 | ||
36661 | wxPyEndAllowThreads(__tstate); | |
36662 | if (PyErr_Occurred()) SWIG_fail; | |
36663 | } | |
36664 | { | |
36665 | wxSize * resultptr; | |
36666 | resultptr = new wxSize((wxSize &) result); | |
36667 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36668 | } | |
36669 | return resultobj; | |
36670 | fail: | |
36671 | return NULL; | |
36672 | } | |
36673 | ||
36674 | ||
36675 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36676 | PyObject *resultobj; | |
36677 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36678 | size_t arg2 ; | |
36679 | int arg3 = (int) 0 ; | |
36680 | PyObject * obj0 = 0 ; | |
36681 | PyObject * obj1 = 0 ; | |
36682 | PyObject * obj2 = 0 ; | |
36683 | char *kwnames[] = { | |
36684 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36685 | }; | |
36686 | ||
36687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36690 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36691 | if (PyErr_Occurred()) SWIG_fail; | |
36692 | if (obj2) { | |
36693 | arg3 = (int) SWIG_AsInt(obj2); | |
36694 | if (PyErr_Occurred()) SWIG_fail; | |
36695 | } | |
36696 | { | |
36697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36698 | (arg1)->AddGrowableRow(arg2,arg3); | |
36699 | ||
36700 | wxPyEndAllowThreads(__tstate); | |
36701 | if (PyErr_Occurred()) SWIG_fail; | |
36702 | } | |
36703 | Py_INCREF(Py_None); resultobj = Py_None; | |
36704 | return resultobj; | |
36705 | fail: | |
36706 | return NULL; | |
36707 | } | |
36708 | ||
36709 | ||
36710 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36711 | PyObject *resultobj; | |
36712 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36713 | size_t arg2 ; | |
36714 | PyObject * obj0 = 0 ; | |
36715 | PyObject * obj1 = 0 ; | |
36716 | char *kwnames[] = { | |
36717 | (char *) "self",(char *) "idx", NULL | |
36718 | }; | |
36719 | ||
36720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
36721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36723 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36724 | if (PyErr_Occurred()) SWIG_fail; | |
36725 | { | |
36726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36727 | (arg1)->RemoveGrowableRow(arg2); | |
36728 | ||
36729 | wxPyEndAllowThreads(__tstate); | |
36730 | if (PyErr_Occurred()) SWIG_fail; | |
36731 | } | |
36732 | Py_INCREF(Py_None); resultobj = Py_None; | |
36733 | return resultobj; | |
36734 | fail: | |
36735 | return NULL; | |
36736 | } | |
36737 | ||
36738 | ||
36739 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36740 | PyObject *resultobj; | |
36741 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36742 | size_t arg2 ; | |
36743 | int arg3 = (int) 0 ; | |
36744 | PyObject * obj0 = 0 ; | |
36745 | PyObject * obj1 = 0 ; | |
36746 | PyObject * obj2 = 0 ; | |
36747 | char *kwnames[] = { | |
36748 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36749 | }; | |
36750 | ||
36751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36754 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36755 | if (PyErr_Occurred()) SWIG_fail; | |
36756 | if (obj2) { | |
36757 | arg3 = (int) SWIG_AsInt(obj2); | |
36758 | if (PyErr_Occurred()) SWIG_fail; | |
36759 | } | |
36760 | { | |
36761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36762 | (arg1)->AddGrowableCol(arg2,arg3); | |
36763 | ||
36764 | wxPyEndAllowThreads(__tstate); | |
36765 | if (PyErr_Occurred()) SWIG_fail; | |
36766 | } | |
36767 | Py_INCREF(Py_None); resultobj = Py_None; | |
36768 | return resultobj; | |
36769 | fail: | |
36770 | return NULL; | |
36771 | } | |
36772 | ||
36773 | ||
36774 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36775 | PyObject *resultobj; | |
36776 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36777 | size_t arg2 ; | |
36778 | PyObject * obj0 = 0 ; | |
36779 | PyObject * obj1 = 0 ; | |
36780 | char *kwnames[] = { | |
36781 | (char *) "self",(char *) "idx", NULL | |
36782 | }; | |
36783 | ||
36784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
36785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36787 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36788 | if (PyErr_Occurred()) SWIG_fail; | |
36789 | { | |
36790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36791 | (arg1)->RemoveGrowableCol(arg2); | |
36792 | ||
36793 | wxPyEndAllowThreads(__tstate); | |
36794 | if (PyErr_Occurred()) SWIG_fail; | |
36795 | } | |
36796 | Py_INCREF(Py_None); resultobj = Py_None; | |
36797 | return resultobj; | |
36798 | fail: | |
36799 | return NULL; | |
36800 | } | |
36801 | ||
36802 | ||
36803 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36804 | PyObject *resultobj; | |
36805 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36806 | int arg2 ; | |
36807 | PyObject * obj0 = 0 ; | |
36808 | PyObject * obj1 = 0 ; | |
36809 | char *kwnames[] = { | |
36810 | (char *) "self",(char *) "direction", NULL | |
36811 | }; | |
36812 | ||
36813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; | |
36814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36816 | arg2 = (int) SWIG_AsInt(obj1); | |
36817 | if (PyErr_Occurred()) SWIG_fail; | |
36818 | { | |
36819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36820 | (arg1)->SetFlexibleDirection(arg2); | |
36821 | ||
36822 | wxPyEndAllowThreads(__tstate); | |
36823 | if (PyErr_Occurred()) SWIG_fail; | |
36824 | } | |
36825 | Py_INCREF(Py_None); resultobj = Py_None; | |
36826 | return resultobj; | |
36827 | fail: | |
36828 | return NULL; | |
36829 | } | |
36830 | ||
36831 | ||
36832 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36833 | PyObject *resultobj; | |
36834 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36835 | int result; | |
36836 | PyObject * obj0 = 0 ; | |
36837 | char *kwnames[] = { | |
36838 | (char *) "self", NULL | |
36839 | }; | |
36840 | ||
36841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
36842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36844 | { | |
36845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36846 | result = (int)(arg1)->GetFlexibleDirection(); | |
36847 | ||
36848 | wxPyEndAllowThreads(__tstate); | |
36849 | if (PyErr_Occurred()) SWIG_fail; | |
36850 | } | |
36851 | resultobj = SWIG_FromInt((int)result); | |
36852 | return resultobj; | |
36853 | fail: | |
36854 | return NULL; | |
36855 | } | |
36856 | ||
36857 | ||
36858 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36859 | PyObject *resultobj; | |
36860 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36861 | int arg2 ; | |
36862 | PyObject * obj0 = 0 ; | |
36863 | PyObject * obj1 = 0 ; | |
36864 | char *kwnames[] = { | |
36865 | (char *) "self",(char *) "mode", NULL | |
36866 | }; | |
36867 | ||
36868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; | |
36869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36871 | arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); | |
36872 | if (PyErr_Occurred()) SWIG_fail; | |
36873 | { | |
36874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36875 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
36876 | ||
36877 | wxPyEndAllowThreads(__tstate); | |
36878 | if (PyErr_Occurred()) SWIG_fail; | |
36879 | } | |
36880 | Py_INCREF(Py_None); resultobj = Py_None; | |
36881 | return resultobj; | |
36882 | fail: | |
36883 | return NULL; | |
36884 | } | |
36885 | ||
36886 | ||
36887 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36888 | PyObject *resultobj; | |
36889 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36890 | int result; | |
36891 | PyObject * obj0 = 0 ; | |
36892 | char *kwnames[] = { | |
36893 | (char *) "self", NULL | |
36894 | }; | |
36895 | ||
36896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
36897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36899 | { | |
36900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36901 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
36902 | ||
36903 | wxPyEndAllowThreads(__tstate); | |
36904 | if (PyErr_Occurred()) SWIG_fail; | |
36905 | } | |
36906 | resultobj = SWIG_FromInt((int)result); | |
36907 | return resultobj; | |
36908 | fail: | |
36909 | return NULL; | |
36910 | } | |
36911 | ||
36912 | ||
36913 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36914 | PyObject *resultobj; | |
36915 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36916 | wxArrayInt *result; | |
36917 | PyObject * obj0 = 0 ; | |
36918 | char *kwnames[] = { | |
36919 | (char *) "self", NULL | |
36920 | }; | |
36921 | ||
36922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
36923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36925 | { | |
36926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36927 | { | |
36928 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
36929 | result = (wxArrayInt *) &_result_ref; | |
36930 | } | |
36931 | ||
36932 | wxPyEndAllowThreads(__tstate); | |
36933 | if (PyErr_Occurred()) SWIG_fail; | |
36934 | } | |
36935 | { | |
36936 | resultobj = PyList_New(0); | |
36937 | size_t idx; | |
36938 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36939 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36940 | PyList_Append(resultobj, val); | |
36941 | Py_DECREF(val); | |
36942 | } | |
36943 | } | |
36944 | return resultobj; | |
36945 | fail: | |
36946 | return NULL; | |
36947 | } | |
36948 | ||
36949 | ||
36950 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36951 | PyObject *resultobj; | |
36952 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36953 | wxArrayInt *result; | |
36954 | PyObject * obj0 = 0 ; | |
36955 | char *kwnames[] = { | |
36956 | (char *) "self", NULL | |
36957 | }; | |
36958 | ||
36959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
36960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36962 | { | |
36963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36964 | { | |
36965 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
36966 | result = (wxArrayInt *) &_result_ref; | |
36967 | } | |
36968 | ||
36969 | wxPyEndAllowThreads(__tstate); | |
36970 | if (PyErr_Occurred()) SWIG_fail; | |
36971 | } | |
36972 | { | |
36973 | resultobj = PyList_New(0); | |
36974 | size_t idx; | |
36975 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36976 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36977 | PyList_Append(resultobj, val); | |
36978 | Py_DECREF(val); | |
36979 | } | |
36980 | } | |
36981 | return resultobj; | |
36982 | fail: | |
36983 | return NULL; | |
36984 | } | |
36985 | ||
36986 | ||
36987 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { | |
36988 | PyObject *obj; | |
36989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36990 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
36991 | Py_INCREF(obj); | |
36992 | return Py_BuildValue((char *)""); | |
36993 | } | |
36994 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36995 | PyObject *resultobj; | |
36996 | int arg1 = (int) 0 ; | |
36997 | int arg2 = (int) 0 ; | |
36998 | wxGBPosition *result; | |
36999 | PyObject * obj0 = 0 ; | |
37000 | PyObject * obj1 = 0 ; | |
37001 | char *kwnames[] = { | |
37002 | (char *) "row",(char *) "col", NULL | |
37003 | }; | |
37004 | ||
37005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; | |
37006 | if (obj0) { | |
37007 | arg1 = (int) SWIG_AsInt(obj0); | |
37008 | if (PyErr_Occurred()) SWIG_fail; | |
37009 | } | |
37010 | if (obj1) { | |
37011 | arg2 = (int) SWIG_AsInt(obj1); | |
37012 | if (PyErr_Occurred()) SWIG_fail; | |
37013 | } | |
37014 | { | |
37015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37016 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
37017 | ||
37018 | wxPyEndAllowThreads(__tstate); | |
37019 | if (PyErr_Occurred()) SWIG_fail; | |
37020 | } | |
37021 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); | |
37022 | return resultobj; | |
37023 | fail: | |
37024 | return NULL; | |
37025 | } | |
37026 | ||
37027 | ||
37028 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37029 | PyObject *resultobj; | |
37030 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37031 | int result; | |
37032 | PyObject * obj0 = 0 ; | |
37033 | char *kwnames[] = { | |
37034 | (char *) "self", NULL | |
37035 | }; | |
37036 | ||
37037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
37038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37040 | { | |
37041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37042 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
37043 | ||
37044 | wxPyEndAllowThreads(__tstate); | |
37045 | if (PyErr_Occurred()) SWIG_fail; | |
37046 | } | |
37047 | resultobj = SWIG_FromInt((int)result); | |
37048 | return resultobj; | |
37049 | fail: | |
37050 | return NULL; | |
37051 | } | |
37052 | ||
37053 | ||
37054 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37055 | PyObject *resultobj; | |
37056 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37057 | int result; | |
37058 | PyObject * obj0 = 0 ; | |
37059 | char *kwnames[] = { | |
37060 | (char *) "self", NULL | |
37061 | }; | |
37062 | ||
37063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
37064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37066 | { | |
37067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37068 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
37069 | ||
37070 | wxPyEndAllowThreads(__tstate); | |
37071 | if (PyErr_Occurred()) SWIG_fail; | |
37072 | } | |
37073 | resultobj = SWIG_FromInt((int)result); | |
37074 | return resultobj; | |
37075 | fail: | |
37076 | return NULL; | |
37077 | } | |
37078 | ||
37079 | ||
37080 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37081 | PyObject *resultobj; | |
37082 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37083 | int arg2 ; | |
37084 | PyObject * obj0 = 0 ; | |
37085 | PyObject * obj1 = 0 ; | |
37086 | char *kwnames[] = { | |
37087 | (char *) "self",(char *) "row", NULL | |
37088 | }; | |
37089 | ||
37090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
37091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37093 | arg2 = (int) SWIG_AsInt(obj1); | |
37094 | if (PyErr_Occurred()) SWIG_fail; | |
37095 | { | |
37096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37097 | (arg1)->SetRow(arg2); | |
37098 | ||
37099 | wxPyEndAllowThreads(__tstate); | |
37100 | if (PyErr_Occurred()) SWIG_fail; | |
37101 | } | |
37102 | Py_INCREF(Py_None); resultobj = Py_None; | |
37103 | return resultobj; | |
37104 | fail: | |
37105 | return NULL; | |
37106 | } | |
37107 | ||
37108 | ||
37109 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37110 | PyObject *resultobj; | |
37111 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37112 | int arg2 ; | |
37113 | PyObject * obj0 = 0 ; | |
37114 | PyObject * obj1 = 0 ; | |
37115 | char *kwnames[] = { | |
37116 | (char *) "self",(char *) "col", NULL | |
37117 | }; | |
37118 | ||
37119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
37120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37122 | arg2 = (int) SWIG_AsInt(obj1); | |
37123 | if (PyErr_Occurred()) SWIG_fail; | |
37124 | { | |
37125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37126 | (arg1)->SetCol(arg2); | |
37127 | ||
37128 | wxPyEndAllowThreads(__tstate); | |
37129 | if (PyErr_Occurred()) SWIG_fail; | |
37130 | } | |
37131 | Py_INCREF(Py_None); resultobj = Py_None; | |
37132 | return resultobj; | |
37133 | fail: | |
37134 | return NULL; | |
37135 | } | |
37136 | ||
37137 | ||
37138 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37139 | PyObject *resultobj; | |
37140 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37141 | wxGBPosition *arg2 = 0 ; | |
37142 | bool result; | |
37143 | wxGBPosition temp2 ; | |
37144 | PyObject * obj0 = 0 ; | |
37145 | PyObject * obj1 = 0 ; | |
37146 | char *kwnames[] = { | |
37147 | (char *) "self",(char *) "other", NULL | |
37148 | }; | |
37149 | ||
37150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
37151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37153 | { | |
37154 | arg2 = &temp2; | |
37155 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37156 | } | |
37157 | { | |
37158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37159 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); | |
37160 | ||
37161 | wxPyEndAllowThreads(__tstate); | |
37162 | if (PyErr_Occurred()) SWIG_fail; | |
37163 | } | |
37164 | { | |
37165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37166 | } | |
37167 | return resultobj; | |
37168 | fail: | |
37169 | return NULL; | |
37170 | } | |
37171 | ||
37172 | ||
37173 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37174 | PyObject *resultobj; | |
37175 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37176 | wxGBPosition *arg2 = 0 ; | |
37177 | bool result; | |
37178 | wxGBPosition temp2 ; | |
37179 | PyObject * obj0 = 0 ; | |
37180 | PyObject * obj1 = 0 ; | |
37181 | char *kwnames[] = { | |
37182 | (char *) "self",(char *) "other", NULL | |
37183 | }; | |
37184 | ||
37185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
37186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37188 | { | |
37189 | arg2 = &temp2; | |
37190 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37191 | } | |
37192 | { | |
37193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37194 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); | |
37195 | ||
37196 | wxPyEndAllowThreads(__tstate); | |
37197 | if (PyErr_Occurred()) SWIG_fail; | |
37198 | } | |
37199 | { | |
37200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37201 | } | |
37202 | return resultobj; | |
37203 | fail: | |
37204 | return NULL; | |
37205 | } | |
37206 | ||
37207 | ||
37208 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37209 | PyObject *resultobj; | |
37210 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37211 | int arg2 = (int) 0 ; | |
37212 | int arg3 = (int) 0 ; | |
37213 | PyObject * obj0 = 0 ; | |
37214 | PyObject * obj1 = 0 ; | |
37215 | PyObject * obj2 = 0 ; | |
37216 | char *kwnames[] = { | |
37217 | (char *) "self",(char *) "row",(char *) "col", NULL | |
37218 | }; | |
37219 | ||
37220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37223 | if (obj1) { | |
37224 | arg2 = (int) SWIG_AsInt(obj1); | |
37225 | if (PyErr_Occurred()) SWIG_fail; | |
37226 | } | |
37227 | if (obj2) { | |
37228 | arg3 = (int) SWIG_AsInt(obj2); | |
37229 | if (PyErr_Occurred()) SWIG_fail; | |
37230 | } | |
37231 | { | |
37232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37233 | wxGBPosition_Set(arg1,arg2,arg3); | |
37234 | ||
37235 | wxPyEndAllowThreads(__tstate); | |
37236 | if (PyErr_Occurred()) SWIG_fail; | |
37237 | } | |
37238 | Py_INCREF(Py_None); resultobj = Py_None; | |
37239 | return resultobj; | |
37240 | fail: | |
37241 | return NULL; | |
37242 | } | |
37243 | ||
37244 | ||
37245 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37246 | PyObject *resultobj; | |
37247 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37248 | PyObject *result; | |
37249 | PyObject * obj0 = 0 ; | |
37250 | char *kwnames[] = { | |
37251 | (char *) "self", NULL | |
37252 | }; | |
37253 | ||
37254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; | |
37255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37257 | { | |
37258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37259 | result = (PyObject *)wxGBPosition_Get(arg1); | |
37260 | ||
37261 | wxPyEndAllowThreads(__tstate); | |
37262 | if (PyErr_Occurred()) SWIG_fail; | |
37263 | } | |
37264 | resultobj = result; | |
37265 | return resultobj; | |
37266 | fail: | |
37267 | return NULL; | |
37268 | } | |
37269 | ||
37270 | ||
37271 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
37272 | PyObject *obj; | |
37273 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37274 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
37275 | Py_INCREF(obj); | |
37276 | return Py_BuildValue((char *)""); | |
37277 | } | |
37278 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37279 | PyObject *resultobj; | |
37280 | int arg1 = (int) 1 ; | |
37281 | int arg2 = (int) 1 ; | |
37282 | wxGBSpan *result; | |
37283 | PyObject * obj0 = 0 ; | |
37284 | PyObject * obj1 = 0 ; | |
37285 | char *kwnames[] = { | |
37286 | (char *) "rowspan",(char *) "colspan", NULL | |
37287 | }; | |
37288 | ||
37289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; | |
37290 | if (obj0) { | |
37291 | arg1 = (int) SWIG_AsInt(obj0); | |
37292 | if (PyErr_Occurred()) SWIG_fail; | |
37293 | } | |
37294 | if (obj1) { | |
37295 | arg2 = (int) SWIG_AsInt(obj1); | |
37296 | if (PyErr_Occurred()) SWIG_fail; | |
37297 | } | |
37298 | { | |
37299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37300 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
37301 | ||
37302 | wxPyEndAllowThreads(__tstate); | |
37303 | if (PyErr_Occurred()) SWIG_fail; | |
37304 | } | |
37305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); | |
37306 | return resultobj; | |
37307 | fail: | |
37308 | return NULL; | |
37309 | } | |
37310 | ||
37311 | ||
37312 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37313 | PyObject *resultobj; | |
37314 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37315 | int result; | |
37316 | PyObject * obj0 = 0 ; | |
37317 | char *kwnames[] = { | |
37318 | (char *) "self", NULL | |
37319 | }; | |
37320 | ||
37321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
37322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37324 | { | |
37325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37326 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
37327 | ||
37328 | wxPyEndAllowThreads(__tstate); | |
37329 | if (PyErr_Occurred()) SWIG_fail; | |
37330 | } | |
37331 | resultobj = SWIG_FromInt((int)result); | |
37332 | return resultobj; | |
37333 | fail: | |
37334 | return NULL; | |
37335 | } | |
37336 | ||
37337 | ||
37338 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37339 | PyObject *resultobj; | |
37340 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37341 | int result; | |
37342 | PyObject * obj0 = 0 ; | |
37343 | char *kwnames[] = { | |
37344 | (char *) "self", NULL | |
37345 | }; | |
37346 | ||
37347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
37348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37350 | { | |
37351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37352 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
37353 | ||
37354 | wxPyEndAllowThreads(__tstate); | |
37355 | if (PyErr_Occurred()) SWIG_fail; | |
37356 | } | |
37357 | resultobj = SWIG_FromInt((int)result); | |
37358 | return resultobj; | |
37359 | fail: | |
37360 | return NULL; | |
37361 | } | |
37362 | ||
37363 | ||
37364 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37365 | PyObject *resultobj; | |
37366 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37367 | int arg2 ; | |
37368 | PyObject * obj0 = 0 ; | |
37369 | PyObject * obj1 = 0 ; | |
37370 | char *kwnames[] = { | |
37371 | (char *) "self",(char *) "rowspan", NULL | |
37372 | }; | |
37373 | ||
37374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; | |
37375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37377 | arg2 = (int) SWIG_AsInt(obj1); | |
37378 | if (PyErr_Occurred()) SWIG_fail; | |
37379 | { | |
37380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37381 | (arg1)->SetRowspan(arg2); | |
37382 | ||
37383 | wxPyEndAllowThreads(__tstate); | |
37384 | if (PyErr_Occurred()) SWIG_fail; | |
37385 | } | |
37386 | Py_INCREF(Py_None); resultobj = Py_None; | |
37387 | return resultobj; | |
37388 | fail: | |
37389 | return NULL; | |
37390 | } | |
37391 | ||
37392 | ||
37393 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37394 | PyObject *resultobj; | |
37395 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37396 | int arg2 ; | |
37397 | PyObject * obj0 = 0 ; | |
37398 | PyObject * obj1 = 0 ; | |
37399 | char *kwnames[] = { | |
37400 | (char *) "self",(char *) "colspan", NULL | |
37401 | }; | |
37402 | ||
37403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; | |
37404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37406 | arg2 = (int) SWIG_AsInt(obj1); | |
37407 | if (PyErr_Occurred()) SWIG_fail; | |
37408 | { | |
37409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37410 | (arg1)->SetColspan(arg2); | |
37411 | ||
37412 | wxPyEndAllowThreads(__tstate); | |
37413 | if (PyErr_Occurred()) SWIG_fail; | |
37414 | } | |
37415 | Py_INCREF(Py_None); resultobj = Py_None; | |
37416 | return resultobj; | |
37417 | fail: | |
37418 | return NULL; | |
37419 | } | |
37420 | ||
37421 | ||
37422 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37423 | PyObject *resultobj; | |
37424 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37425 | wxGBSpan *arg2 = 0 ; | |
37426 | bool result; | |
37427 | wxGBSpan temp2 ; | |
37428 | PyObject * obj0 = 0 ; | |
37429 | PyObject * obj1 = 0 ; | |
37430 | char *kwnames[] = { | |
37431 | (char *) "self",(char *) "other", NULL | |
37432 | }; | |
37433 | ||
37434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
37435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37437 | { | |
37438 | arg2 = &temp2; | |
37439 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37440 | } | |
37441 | { | |
37442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37443 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); | |
37444 | ||
37445 | wxPyEndAllowThreads(__tstate); | |
37446 | if (PyErr_Occurred()) SWIG_fail; | |
37447 | } | |
37448 | { | |
37449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37450 | } | |
37451 | return resultobj; | |
37452 | fail: | |
37453 | return NULL; | |
37454 | } | |
37455 | ||
37456 | ||
37457 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37458 | PyObject *resultobj; | |
37459 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37460 | wxGBSpan *arg2 = 0 ; | |
37461 | bool result; | |
37462 | wxGBSpan temp2 ; | |
37463 | PyObject * obj0 = 0 ; | |
37464 | PyObject * obj1 = 0 ; | |
37465 | char *kwnames[] = { | |
37466 | (char *) "self",(char *) "other", NULL | |
37467 | }; | |
37468 | ||
37469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
37470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37472 | { | |
37473 | arg2 = &temp2; | |
37474 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37475 | } | |
37476 | { | |
37477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37478 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); | |
37479 | ||
37480 | wxPyEndAllowThreads(__tstate); | |
37481 | if (PyErr_Occurred()) SWIG_fail; | |
37482 | } | |
37483 | { | |
37484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37485 | } | |
37486 | return resultobj; | |
37487 | fail: | |
37488 | return NULL; | |
37489 | } | |
37490 | ||
37491 | ||
37492 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37493 | PyObject *resultobj; | |
37494 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37495 | int arg2 = (int) 1 ; | |
37496 | int arg3 = (int) 1 ; | |
37497 | PyObject * obj0 = 0 ; | |
37498 | PyObject * obj1 = 0 ; | |
37499 | PyObject * obj2 = 0 ; | |
37500 | char *kwnames[] = { | |
37501 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
37502 | }; | |
37503 | ||
37504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37507 | if (obj1) { | |
37508 | arg2 = (int) SWIG_AsInt(obj1); | |
37509 | if (PyErr_Occurred()) SWIG_fail; | |
37510 | } | |
37511 | if (obj2) { | |
37512 | arg3 = (int) SWIG_AsInt(obj2); | |
37513 | if (PyErr_Occurred()) SWIG_fail; | |
37514 | } | |
37515 | { | |
37516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37517 | wxGBSpan_Set(arg1,arg2,arg3); | |
37518 | ||
37519 | wxPyEndAllowThreads(__tstate); | |
37520 | if (PyErr_Occurred()) SWIG_fail; | |
37521 | } | |
37522 | Py_INCREF(Py_None); resultobj = Py_None; | |
37523 | return resultobj; | |
37524 | fail: | |
37525 | return NULL; | |
37526 | } | |
37527 | ||
37528 | ||
37529 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37530 | PyObject *resultobj; | |
37531 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37532 | PyObject *result; | |
37533 | PyObject * obj0 = 0 ; | |
37534 | char *kwnames[] = { | |
37535 | (char *) "self", NULL | |
37536 | }; | |
37537 | ||
37538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; | |
37539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37541 | { | |
37542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37543 | result = (PyObject *)wxGBSpan_Get(arg1); | |
37544 | ||
37545 | wxPyEndAllowThreads(__tstate); | |
37546 | if (PyErr_Occurred()) SWIG_fail; | |
37547 | } | |
37548 | resultobj = result; | |
37549 | return resultobj; | |
37550 | fail: | |
37551 | return NULL; | |
37552 | } | |
37553 | ||
37554 | ||
37555 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
37556 | PyObject *obj; | |
37557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37558 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
37559 | Py_INCREF(obj); | |
37560 | return Py_BuildValue((char *)""); | |
37561 | } | |
37562 | static int _wrap_DefaultSpan_set(PyObject *_val) { | |
37563 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); | |
37564 | return 1; | |
37565 | } | |
37566 | ||
37567 | ||
37568 | static PyObject *_wrap_DefaultSpan_get() { | |
37569 | PyObject *pyobj; | |
37570 | ||
37571 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); | |
37572 | return pyobj; | |
37573 | } | |
37574 | ||
37575 | ||
37576 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37577 | PyObject *resultobj; | |
37578 | wxGBSizerItem *result; | |
37579 | char *kwnames[] = { | |
37580 | NULL | |
37581 | }; | |
37582 | ||
37583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
37584 | { | |
37585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37586 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
37587 | ||
37588 | wxPyEndAllowThreads(__tstate); | |
37589 | if (PyErr_Occurred()) SWIG_fail; | |
37590 | } | |
37591 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37592 | return resultobj; | |
37593 | fail: | |
37594 | return NULL; | |
37595 | } | |
37596 | ||
37597 | ||
37598 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37599 | PyObject *resultobj; | |
37600 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37601 | wxGBPosition *arg2 = 0 ; | |
37602 | wxGBSpan *arg3 = 0 ; | |
37603 | int arg4 ; | |
37604 | int arg5 ; | |
37605 | wxObject *arg6 = (wxObject *) 0 ; | |
37606 | wxGBSizerItem *result; | |
37607 | wxGBPosition temp2 ; | |
37608 | wxGBSpan temp3 ; | |
37609 | PyObject * obj0 = 0 ; | |
37610 | PyObject * obj1 = 0 ; | |
37611 | PyObject * obj2 = 0 ; | |
37612 | PyObject * obj3 = 0 ; | |
37613 | PyObject * obj4 = 0 ; | |
37614 | PyObject * obj5 = 0 ; | |
37615 | char *kwnames[] = { | |
37616 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37617 | }; | |
37618 | ||
37619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
37620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
37621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37622 | { | |
37623 | arg2 = &temp2; | |
37624 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37625 | } | |
37626 | { | |
37627 | arg3 = &temp3; | |
37628 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37629 | } | |
37630 | arg4 = (int) SWIG_AsInt(obj3); | |
37631 | if (PyErr_Occurred()) SWIG_fail; | |
37632 | arg5 = (int) SWIG_AsInt(obj4); | |
37633 | if (PyErr_Occurred()) SWIG_fail; | |
37634 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
37635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37636 | { | |
37637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37638 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
37639 | ||
37640 | wxPyEndAllowThreads(__tstate); | |
37641 | if (PyErr_Occurred()) SWIG_fail; | |
37642 | } | |
37643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37644 | return resultobj; | |
37645 | fail: | |
37646 | return NULL; | |
37647 | } | |
37648 | ||
37649 | ||
37650 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37651 | PyObject *resultobj; | |
37652 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37653 | wxGBPosition *arg2 = 0 ; | |
37654 | wxGBSpan *arg3 = 0 ; | |
37655 | int arg4 ; | |
37656 | int arg5 ; | |
37657 | wxObject *arg6 = (wxObject *) 0 ; | |
37658 | wxGBSizerItem *result; | |
37659 | wxGBPosition temp2 ; | |
37660 | wxGBSpan temp3 ; | |
37661 | PyObject * obj0 = 0 ; | |
37662 | PyObject * obj1 = 0 ; | |
37663 | PyObject * obj2 = 0 ; | |
37664 | PyObject * obj3 = 0 ; | |
37665 | PyObject * obj4 = 0 ; | |
37666 | PyObject * obj5 = 0 ; | |
37667 | char *kwnames[] = { | |
37668 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37669 | }; | |
37670 | ||
37671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
37672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
37673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37674 | { | |
37675 | arg2 = &temp2; | |
37676 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37677 | } | |
37678 | { | |
37679 | arg3 = &temp3; | |
37680 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37681 | } | |
37682 | arg4 = (int) SWIG_AsInt(obj3); | |
37683 | if (PyErr_Occurred()) SWIG_fail; | |
37684 | arg5 = (int) SWIG_AsInt(obj4); | |
37685 | if (PyErr_Occurred()) SWIG_fail; | |
37686 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
37687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37688 | { | |
37689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37690 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
37691 | ||
37692 | wxPyEndAllowThreads(__tstate); | |
37693 | if (PyErr_Occurred()) SWIG_fail; | |
37694 | } | |
37695 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37696 | return resultobj; | |
37697 | fail: | |
37698 | return NULL; | |
37699 | } | |
37700 | ||
37701 | ||
37702 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37703 | PyObject *resultobj; | |
37704 | int arg1 ; | |
37705 | int arg2 ; | |
37706 | wxGBPosition *arg3 = 0 ; | |
37707 | wxGBSpan *arg4 = 0 ; | |
37708 | int arg5 ; | |
37709 | int arg6 ; | |
37710 | wxObject *arg7 = (wxObject *) 0 ; | |
37711 | wxGBSizerItem *result; | |
37712 | wxGBPosition temp3 ; | |
37713 | wxGBSpan temp4 ; | |
37714 | PyObject * obj0 = 0 ; | |
37715 | PyObject * obj1 = 0 ; | |
37716 | PyObject * obj2 = 0 ; | |
37717 | PyObject * obj3 = 0 ; | |
37718 | PyObject * obj4 = 0 ; | |
37719 | PyObject * obj5 = 0 ; | |
37720 | PyObject * obj6 = 0 ; | |
37721 | char *kwnames[] = { | |
37722 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37723 | }; | |
37724 | ||
37725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
37726 | arg1 = (int) SWIG_AsInt(obj0); | |
37727 | if (PyErr_Occurred()) SWIG_fail; | |
37728 | arg2 = (int) SWIG_AsInt(obj1); | |
37729 | if (PyErr_Occurred()) SWIG_fail; | |
37730 | { | |
37731 | arg3 = &temp3; | |
37732 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37733 | } | |
37734 | { | |
37735 | arg4 = &temp4; | |
37736 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37737 | } | |
37738 | arg5 = (int) SWIG_AsInt(obj4); | |
37739 | if (PyErr_Occurred()) SWIG_fail; | |
37740 | arg6 = (int) SWIG_AsInt(obj5); | |
37741 | if (PyErr_Occurred()) SWIG_fail; | |
37742 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxObject, | |
37743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37744 | { | |
37745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37746 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
37747 | ||
37748 | wxPyEndAllowThreads(__tstate); | |
37749 | if (PyErr_Occurred()) SWIG_fail; | |
37750 | } | |
37751 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37752 | return resultobj; | |
37753 | fail: | |
37754 | return NULL; | |
37755 | } | |
37756 | ||
37757 | ||
37758 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37759 | PyObject *resultobj; | |
37760 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37761 | wxGBPosition result; | |
37762 | PyObject * obj0 = 0 ; | |
37763 | char *kwnames[] = { | |
37764 | (char *) "self", NULL | |
37765 | }; | |
37766 | ||
37767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
37768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37770 | { | |
37771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37772 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
37773 | ||
37774 | wxPyEndAllowThreads(__tstate); | |
37775 | if (PyErr_Occurred()) SWIG_fail; | |
37776 | } | |
37777 | { | |
37778 | wxGBPosition * resultptr; | |
37779 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
37780 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
37781 | } | |
37782 | return resultobj; | |
37783 | fail: | |
37784 | return NULL; | |
37785 | } | |
37786 | ||
37787 | ||
37788 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37789 | PyObject *resultobj; | |
37790 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37791 | wxGBSpan result; | |
37792 | PyObject * obj0 = 0 ; | |
37793 | char *kwnames[] = { | |
37794 | (char *) "self", NULL | |
37795 | }; | |
37796 | ||
37797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
37798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37800 | { | |
37801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37802 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
37803 | ||
37804 | wxPyEndAllowThreads(__tstate); | |
37805 | if (PyErr_Occurred()) SWIG_fail; | |
37806 | } | |
37807 | { | |
37808 | wxGBSpan * resultptr; | |
37809 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
37810 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
37811 | } | |
37812 | return resultobj; | |
37813 | fail: | |
37814 | return NULL; | |
37815 | } | |
37816 | ||
37817 | ||
37818 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37819 | PyObject *resultobj; | |
37820 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37821 | wxGBPosition *arg2 = 0 ; | |
37822 | bool result; | |
37823 | wxGBPosition temp2 ; | |
37824 | PyObject * obj0 = 0 ; | |
37825 | PyObject * obj1 = 0 ; | |
37826 | char *kwnames[] = { | |
37827 | (char *) "self",(char *) "pos", NULL | |
37828 | }; | |
37829 | ||
37830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
37831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37833 | { | |
37834 | arg2 = &temp2; | |
37835 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37836 | } | |
37837 | { | |
37838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37839 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
37840 | ||
37841 | wxPyEndAllowThreads(__tstate); | |
37842 | if (PyErr_Occurred()) SWIG_fail; | |
37843 | } | |
37844 | { | |
37845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37846 | } | |
37847 | return resultobj; | |
37848 | fail: | |
37849 | return NULL; | |
37850 | } | |
37851 | ||
37852 | ||
37853 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37854 | PyObject *resultobj; | |
37855 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37856 | wxGBSpan *arg2 = 0 ; | |
37857 | bool result; | |
37858 | wxGBSpan temp2 ; | |
37859 | PyObject * obj0 = 0 ; | |
37860 | PyObject * obj1 = 0 ; | |
37861 | char *kwnames[] = { | |
37862 | (char *) "self",(char *) "span", NULL | |
37863 | }; | |
37864 | ||
37865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
37866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37868 | { | |
37869 | arg2 = &temp2; | |
37870 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37871 | } | |
37872 | { | |
37873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37874 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
37875 | ||
37876 | wxPyEndAllowThreads(__tstate); | |
37877 | if (PyErr_Occurred()) SWIG_fail; | |
37878 | } | |
37879 | { | |
37880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37881 | } | |
37882 | return resultobj; | |
37883 | fail: | |
37884 | return NULL; | |
37885 | } | |
37886 | ||
37887 | ||
37888 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
37889 | PyObject *resultobj; | |
37890 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37891 | wxGBSizerItem *arg2 = 0 ; | |
37892 | bool result; | |
37893 | PyObject * obj0 = 0 ; | |
37894 | PyObject * obj1 = 0 ; | |
37895 | ||
37896 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
37897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37899 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37900 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37901 | SWIG_fail; | |
37902 | if (arg2 == NULL) { | |
37903 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
37904 | SWIG_fail; | |
37905 | } | |
37906 | { | |
37907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37908 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
37909 | ||
37910 | wxPyEndAllowThreads(__tstate); | |
37911 | if (PyErr_Occurred()) SWIG_fail; | |
37912 | } | |
37913 | { | |
37914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37915 | } | |
37916 | return resultobj; | |
37917 | fail: | |
37918 | return NULL; | |
37919 | } | |
37920 | ||
37921 | ||
37922 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
37923 | PyObject *resultobj; | |
37924 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37925 | wxGBPosition *arg2 = 0 ; | |
37926 | wxGBSpan *arg3 = 0 ; | |
37927 | bool result; | |
37928 | wxGBPosition temp2 ; | |
37929 | wxGBSpan temp3 ; | |
37930 | PyObject * obj0 = 0 ; | |
37931 | PyObject * obj1 = 0 ; | |
37932 | PyObject * obj2 = 0 ; | |
37933 | ||
37934 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
37935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37937 | { | |
37938 | arg2 = &temp2; | |
37939 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37940 | } | |
37941 | { | |
37942 | arg3 = &temp3; | |
37943 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37944 | } | |
37945 | { | |
37946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37947 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
37948 | ||
37949 | wxPyEndAllowThreads(__tstate); | |
37950 | if (PyErr_Occurred()) SWIG_fail; | |
37951 | } | |
37952 | { | |
37953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37954 | } | |
37955 | return resultobj; | |
37956 | fail: | |
37957 | return NULL; | |
37958 | } | |
37959 | ||
37960 | ||
37961 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
37962 | int argc; | |
37963 | PyObject *argv[4]; | |
37964 | int ii; | |
37965 | ||
37966 | argc = PyObject_Length(args); | |
37967 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37968 | argv[ii] = PyTuple_GetItem(args,ii); | |
37969 | } | |
37970 | if (argc == 2) { | |
37971 | int _v; | |
37972 | { | |
37973 | void *ptr; | |
37974 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37975 | _v = 0; | |
37976 | PyErr_Clear(); | |
37977 | } else { | |
37978 | _v = 1; | |
37979 | } | |
37980 | } | |
37981 | if (_v) { | |
37982 | { | |
37983 | void *ptr; | |
37984 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37985 | _v = 0; | |
37986 | PyErr_Clear(); | |
37987 | } else { | |
37988 | _v = 1; | |
37989 | } | |
37990 | } | |
37991 | if (_v) { | |
37992 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
37993 | } | |
37994 | } | |
37995 | } | |
37996 | if (argc == 3) { | |
37997 | int _v; | |
37998 | { | |
37999 | void *ptr; | |
38000 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
38001 | _v = 0; | |
38002 | PyErr_Clear(); | |
38003 | } else { | |
38004 | _v = 1; | |
38005 | } | |
38006 | } | |
38007 | if (_v) { | |
38008 | { | |
38009 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
38010 | } | |
38011 | if (_v) { | |
38012 | { | |
38013 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38014 | } | |
38015 | if (_v) { | |
38016 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
38017 | } | |
38018 | } | |
38019 | } | |
38020 | } | |
38021 | ||
38022 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
38023 | return NULL; | |
38024 | } | |
38025 | ||
38026 | ||
38027 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38028 | PyObject *resultobj; | |
38029 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38030 | int *arg2 = 0 ; | |
38031 | int *arg3 = 0 ; | |
38032 | PyObject * obj0 = 0 ; | |
38033 | PyObject * obj1 = 0 ; | |
38034 | PyObject * obj2 = 0 ; | |
38035 | char *kwnames[] = { | |
38036 | (char *) "self",(char *) "row",(char *) "col", NULL | |
38037 | }; | |
38038 | ||
38039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38042 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int, | |
38043 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
38044 | SWIG_fail; | |
38045 | if (arg2 == NULL) { | |
38046 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
38047 | SWIG_fail; | |
38048 | } | |
38049 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int, | |
38050 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
38051 | SWIG_fail; | |
38052 | if (arg3 == NULL) { | |
38053 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
38054 | SWIG_fail; | |
38055 | } | |
38056 | { | |
38057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38058 | (arg1)->GetEndPos(*arg2,*arg3); | |
38059 | ||
38060 | wxPyEndAllowThreads(__tstate); | |
38061 | if (PyErr_Occurred()) SWIG_fail; | |
38062 | } | |
38063 | Py_INCREF(Py_None); resultobj = Py_None; | |
38064 | return resultobj; | |
38065 | fail: | |
38066 | return NULL; | |
38067 | } | |
38068 | ||
38069 | ||
38070 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38071 | PyObject *resultobj; | |
38072 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38073 | wxGridBagSizer *result; | |
38074 | PyObject * obj0 = 0 ; | |
38075 | char *kwnames[] = { | |
38076 | (char *) "self", NULL | |
38077 | }; | |
38078 | ||
38079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
38080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38082 | { | |
38083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38084 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
38085 | ||
38086 | wxPyEndAllowThreads(__tstate); | |
38087 | if (PyErr_Occurred()) SWIG_fail; | |
38088 | } | |
38089 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); | |
38090 | return resultobj; | |
38091 | fail: | |
38092 | return NULL; | |
38093 | } | |
38094 | ||
38095 | ||
38096 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38097 | PyObject *resultobj; | |
38098 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38099 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
38100 | PyObject * obj0 = 0 ; | |
38101 | PyObject * obj1 = 0 ; | |
38102 | char *kwnames[] = { | |
38103 | (char *) "self",(char *) "sizer", NULL | |
38104 | }; | |
38105 | ||
38106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
38107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38109 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
38110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38111 | { | |
38112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38113 | (arg1)->SetGBSizer(arg2); | |
38114 | ||
38115 | wxPyEndAllowThreads(__tstate); | |
38116 | if (PyErr_Occurred()) SWIG_fail; | |
38117 | } | |
38118 | Py_INCREF(Py_None); resultobj = Py_None; | |
38119 | return resultobj; | |
38120 | fail: | |
38121 | return NULL; | |
38122 | } | |
38123 | ||
38124 | ||
38125 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
38126 | PyObject *obj; | |
38127 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38128 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
38129 | Py_INCREF(obj); | |
38130 | return Py_BuildValue((char *)""); | |
38131 | } | |
38132 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38133 | PyObject *resultobj; | |
38134 | int arg1 = (int) 0 ; | |
38135 | int arg2 = (int) 0 ; | |
38136 | wxGridBagSizer *result; | |
38137 | PyObject * obj0 = 0 ; | |
38138 | PyObject * obj1 = 0 ; | |
38139 | char *kwnames[] = { | |
38140 | (char *) "vgap",(char *) "hgap", NULL | |
38141 | }; | |
38142 | ||
38143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; | |
38144 | if (obj0) { | |
38145 | arg1 = (int) SWIG_AsInt(obj0); | |
38146 | if (PyErr_Occurred()) SWIG_fail; | |
38147 | } | |
38148 | if (obj1) { | |
38149 | arg2 = (int) SWIG_AsInt(obj1); | |
38150 | if (PyErr_Occurred()) SWIG_fail; | |
38151 | } | |
38152 | { | |
38153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38154 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
38155 | ||
38156 | wxPyEndAllowThreads(__tstate); | |
38157 | if (PyErr_Occurred()) SWIG_fail; | |
38158 | } | |
38159 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); | |
38160 | return resultobj; | |
38161 | fail: | |
38162 | return NULL; | |
38163 | } | |
38164 | ||
38165 | ||
38166 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38167 | PyObject *resultobj; | |
38168 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38169 | PyObject *arg2 = (PyObject *) 0 ; | |
38170 | wxGBPosition *arg3 = 0 ; | |
38171 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
38172 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
38173 | int arg5 = (int) 0 ; | |
38174 | int arg6 = (int) 0 ; | |
38175 | PyObject *arg7 = (PyObject *) NULL ; | |
38176 | bool result; | |
38177 | wxGBPosition temp3 ; | |
38178 | wxGBSpan temp4 ; | |
38179 | PyObject * obj0 = 0 ; | |
38180 | PyObject * obj1 = 0 ; | |
38181 | PyObject * obj2 = 0 ; | |
38182 | PyObject * obj3 = 0 ; | |
38183 | PyObject * obj4 = 0 ; | |
38184 | PyObject * obj5 = 0 ; | |
38185 | PyObject * obj6 = 0 ; | |
38186 | char *kwnames[] = { | |
38187 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38188 | }; | |
38189 | ||
38190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
38191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38193 | arg2 = obj1; | |
38194 | { | |
38195 | arg3 = &temp3; | |
38196 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38197 | } | |
38198 | if (obj3) { | |
38199 | { | |
38200 | arg4 = &temp4; | |
38201 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38202 | } | |
38203 | } | |
38204 | if (obj4) { | |
38205 | arg5 = (int) SWIG_AsInt(obj4); | |
38206 | if (PyErr_Occurred()) SWIG_fail; | |
38207 | } | |
38208 | if (obj5) { | |
38209 | arg6 = (int) SWIG_AsInt(obj5); | |
38210 | if (PyErr_Occurred()) SWIG_fail; | |
38211 | } | |
38212 | if (obj6) { | |
38213 | arg7 = obj6; | |
38214 | } | |
38215 | { | |
38216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38217 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
38218 | ||
38219 | wxPyEndAllowThreads(__tstate); | |
38220 | if (PyErr_Occurred()) SWIG_fail; | |
38221 | } | |
38222 | { | |
38223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38224 | } | |
38225 | return resultobj; | |
38226 | fail: | |
38227 | return NULL; | |
38228 | } | |
38229 | ||
38230 | ||
38231 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38232 | PyObject *resultobj; | |
38233 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38234 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
38235 | bool result; | |
38236 | PyObject * obj0 = 0 ; | |
38237 | PyObject * obj1 = 0 ; | |
38238 | char *kwnames[] = { | |
38239 | (char *) "self",(char *) "item", NULL | |
38240 | }; | |
38241 | ||
38242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
38243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38245 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38247 | { | |
38248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38249 | result = (bool)(arg1)->Add(arg2); | |
38250 | ||
38251 | wxPyEndAllowThreads(__tstate); | |
38252 | if (PyErr_Occurred()) SWIG_fail; | |
38253 | } | |
38254 | { | |
38255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38256 | } | |
38257 | return resultobj; | |
38258 | fail: | |
38259 | return NULL; | |
38260 | } | |
38261 | ||
38262 | ||
38263 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38264 | PyObject *resultobj; | |
38265 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38266 | wxSize result; | |
38267 | PyObject * obj0 = 0 ; | |
38268 | char *kwnames[] = { | |
38269 | (char *) "self", NULL | |
38270 | }; | |
38271 | ||
38272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
38273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38275 | { | |
38276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38277 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
38278 | ||
38279 | wxPyEndAllowThreads(__tstate); | |
38280 | if (PyErr_Occurred()) SWIG_fail; | |
38281 | } | |
38282 | { | |
38283 | wxSize * resultptr; | |
38284 | resultptr = new wxSize((wxSize &) result); | |
38285 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
38286 | } | |
38287 | return resultobj; | |
38288 | fail: | |
38289 | return NULL; | |
38290 | } | |
38291 | ||
38292 | ||
38293 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38294 | PyObject *resultobj; | |
38295 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38296 | wxSize *arg2 = 0 ; | |
38297 | wxSize temp2 ; | |
38298 | PyObject * obj0 = 0 ; | |
38299 | PyObject * obj1 = 0 ; | |
38300 | char *kwnames[] = { | |
38301 | (char *) "self",(char *) "sz", NULL | |
38302 | }; | |
38303 | ||
38304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
38305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38307 | { | |
38308 | arg2 = &temp2; | |
38309 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
38310 | } | |
38311 | { | |
38312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38313 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
38314 | ||
38315 | wxPyEndAllowThreads(__tstate); | |
38316 | if (PyErr_Occurred()) SWIG_fail; | |
38317 | } | |
38318 | Py_INCREF(Py_None); resultobj = Py_None; | |
38319 | return resultobj; | |
38320 | fail: | |
38321 | return NULL; | |
38322 | } | |
38323 | ||
38324 | ||
38325 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
38326 | PyObject *resultobj; | |
38327 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38328 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38329 | wxGBPosition result; | |
38330 | PyObject * obj0 = 0 ; | |
38331 | PyObject * obj1 = 0 ; | |
38332 | ||
38333 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38336 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38338 | { | |
38339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38340 | result = (arg1)->GetItemPosition(arg2); | |
38341 | ||
38342 | wxPyEndAllowThreads(__tstate); | |
38343 | if (PyErr_Occurred()) SWIG_fail; | |
38344 | } | |
38345 | { | |
38346 | wxGBPosition * resultptr; | |
38347 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38348 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38349 | } | |
38350 | return resultobj; | |
38351 | fail: | |
38352 | return NULL; | |
38353 | } | |
38354 | ||
38355 | ||
38356 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
38357 | PyObject *resultobj; | |
38358 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38359 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38360 | wxGBPosition result; | |
38361 | PyObject * obj0 = 0 ; | |
38362 | PyObject * obj1 = 0 ; | |
38363 | ||
38364 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38367 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38369 | { | |
38370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38371 | result = (arg1)->GetItemPosition(arg2); | |
38372 | ||
38373 | wxPyEndAllowThreads(__tstate); | |
38374 | if (PyErr_Occurred()) SWIG_fail; | |
38375 | } | |
38376 | { | |
38377 | wxGBPosition * resultptr; | |
38378 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38379 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38380 | } | |
38381 | return resultobj; | |
38382 | fail: | |
38383 | return NULL; | |
38384 | } | |
38385 | ||
38386 | ||
38387 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
38388 | PyObject *resultobj; | |
38389 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38390 | size_t arg2 ; | |
38391 | wxGBPosition result; | |
38392 | PyObject * obj0 = 0 ; | |
38393 | PyObject * obj1 = 0 ; | |
38394 | ||
38395 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38398 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38399 | if (PyErr_Occurred()) SWIG_fail; | |
38400 | { | |
38401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38402 | result = (arg1)->GetItemPosition(arg2); | |
38403 | ||
38404 | wxPyEndAllowThreads(__tstate); | |
38405 | if (PyErr_Occurred()) SWIG_fail; | |
38406 | } | |
38407 | { | |
38408 | wxGBPosition * resultptr; | |
38409 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38411 | } | |
38412 | return resultobj; | |
38413 | fail: | |
38414 | return NULL; | |
38415 | } | |
38416 | ||
38417 | ||
38418 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
38419 | int argc; | |
38420 | PyObject *argv[3]; | |
38421 | int ii; | |
38422 | ||
38423 | argc = PyObject_Length(args); | |
38424 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38425 | argv[ii] = PyTuple_GetItem(args,ii); | |
38426 | } | |
38427 | if (argc == 2) { | |
38428 | int _v; | |
38429 | { | |
38430 | void *ptr; | |
38431 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38432 | _v = 0; | |
38433 | PyErr_Clear(); | |
38434 | } else { | |
38435 | _v = 1; | |
38436 | } | |
38437 | } | |
38438 | if (_v) { | |
38439 | { | |
38440 | void *ptr; | |
38441 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38442 | _v = 0; | |
38443 | PyErr_Clear(); | |
38444 | } else { | |
38445 | _v = 1; | |
38446 | } | |
38447 | } | |
38448 | if (_v) { | |
38449 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
38450 | } | |
38451 | } | |
38452 | } | |
38453 | if (argc == 2) { | |
38454 | int _v; | |
38455 | { | |
38456 | void *ptr; | |
38457 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38458 | _v = 0; | |
38459 | PyErr_Clear(); | |
38460 | } else { | |
38461 | _v = 1; | |
38462 | } | |
38463 | } | |
38464 | if (_v) { | |
38465 | { | |
38466 | void *ptr; | |
38467 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38468 | _v = 0; | |
38469 | PyErr_Clear(); | |
38470 | } else { | |
38471 | _v = 1; | |
38472 | } | |
38473 | } | |
38474 | if (_v) { | |
38475 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
38476 | } | |
38477 | } | |
38478 | } | |
38479 | if (argc == 2) { | |
38480 | int _v; | |
38481 | { | |
38482 | void *ptr; | |
38483 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38484 | _v = 0; | |
38485 | PyErr_Clear(); | |
38486 | } else { | |
38487 | _v = 1; | |
38488 | } | |
38489 | } | |
38490 | if (_v) { | |
38491 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
38492 | if (_v) { | |
38493 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
38494 | } | |
38495 | } | |
38496 | } | |
38497 | ||
38498 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
38499 | return NULL; | |
38500 | } | |
38501 | ||
38502 | ||
38503 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
38504 | PyObject *resultobj; | |
38505 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38506 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38507 | wxGBPosition *arg3 = 0 ; | |
38508 | bool result; | |
38509 | wxGBPosition temp3 ; | |
38510 | PyObject * obj0 = 0 ; | |
38511 | PyObject * obj1 = 0 ; | |
38512 | PyObject * obj2 = 0 ; | |
38513 | ||
38514 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38517 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38519 | { | |
38520 | arg3 = &temp3; | |
38521 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38522 | } | |
38523 | { | |
38524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38525 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38526 | ||
38527 | wxPyEndAllowThreads(__tstate); | |
38528 | if (PyErr_Occurred()) SWIG_fail; | |
38529 | } | |
38530 | { | |
38531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38532 | } | |
38533 | return resultobj; | |
38534 | fail: | |
38535 | return NULL; | |
38536 | } | |
38537 | ||
38538 | ||
38539 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
38540 | PyObject *resultobj; | |
38541 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38542 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38543 | wxGBPosition *arg3 = 0 ; | |
38544 | bool result; | |
38545 | wxGBPosition temp3 ; | |
38546 | PyObject * obj0 = 0 ; | |
38547 | PyObject * obj1 = 0 ; | |
38548 | PyObject * obj2 = 0 ; | |
38549 | ||
38550 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38553 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38555 | { | |
38556 | arg3 = &temp3; | |
38557 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38558 | } | |
38559 | { | |
38560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38561 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38562 | ||
38563 | wxPyEndAllowThreads(__tstate); | |
38564 | if (PyErr_Occurred()) SWIG_fail; | |
38565 | } | |
38566 | { | |
38567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38568 | } | |
38569 | return resultobj; | |
38570 | fail: | |
38571 | return NULL; | |
38572 | } | |
38573 | ||
38574 | ||
38575 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
38576 | PyObject *resultobj; | |
38577 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38578 | size_t arg2 ; | |
38579 | wxGBPosition *arg3 = 0 ; | |
38580 | bool result; | |
38581 | wxGBPosition temp3 ; | |
38582 | PyObject * obj0 = 0 ; | |
38583 | PyObject * obj1 = 0 ; | |
38584 | PyObject * obj2 = 0 ; | |
38585 | ||
38586 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38589 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38590 | if (PyErr_Occurred()) SWIG_fail; | |
38591 | { | |
38592 | arg3 = &temp3; | |
38593 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38594 | } | |
38595 | { | |
38596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38597 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38598 | ||
38599 | wxPyEndAllowThreads(__tstate); | |
38600 | if (PyErr_Occurred()) SWIG_fail; | |
38601 | } | |
38602 | { | |
38603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38604 | } | |
38605 | return resultobj; | |
38606 | fail: | |
38607 | return NULL; | |
38608 | } | |
38609 | ||
38610 | ||
38611 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
38612 | int argc; | |
38613 | PyObject *argv[4]; | |
38614 | int ii; | |
38615 | ||
38616 | argc = PyObject_Length(args); | |
38617 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38618 | argv[ii] = PyTuple_GetItem(args,ii); | |
38619 | } | |
38620 | if (argc == 3) { | |
38621 | int _v; | |
38622 | { | |
38623 | void *ptr; | |
38624 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38625 | _v = 0; | |
38626 | PyErr_Clear(); | |
38627 | } else { | |
38628 | _v = 1; | |
38629 | } | |
38630 | } | |
38631 | if (_v) { | |
38632 | { | |
38633 | void *ptr; | |
38634 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38635 | _v = 0; | |
38636 | PyErr_Clear(); | |
38637 | } else { | |
38638 | _v = 1; | |
38639 | } | |
38640 | } | |
38641 | if (_v) { | |
38642 | { | |
38643 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38644 | } | |
38645 | if (_v) { | |
38646 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
38647 | } | |
38648 | } | |
38649 | } | |
38650 | } | |
38651 | if (argc == 3) { | |
38652 | int _v; | |
38653 | { | |
38654 | void *ptr; | |
38655 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38656 | _v = 0; | |
38657 | PyErr_Clear(); | |
38658 | } else { | |
38659 | _v = 1; | |
38660 | } | |
38661 | } | |
38662 | if (_v) { | |
38663 | { | |
38664 | void *ptr; | |
38665 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38666 | _v = 0; | |
38667 | PyErr_Clear(); | |
38668 | } else { | |
38669 | _v = 1; | |
38670 | } | |
38671 | } | |
38672 | if (_v) { | |
38673 | { | |
38674 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38675 | } | |
38676 | if (_v) { | |
38677 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
38678 | } | |
38679 | } | |
38680 | } | |
38681 | } | |
38682 | if (argc == 3) { | |
38683 | int _v; | |
38684 | { | |
38685 | void *ptr; | |
38686 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38687 | _v = 0; | |
38688 | PyErr_Clear(); | |
38689 | } else { | |
38690 | _v = 1; | |
38691 | } | |
38692 | } | |
38693 | if (_v) { | |
38694 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
38695 | if (_v) { | |
38696 | { | |
38697 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38698 | } | |
38699 | if (_v) { | |
38700 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
38701 | } | |
38702 | } | |
38703 | } | |
38704 | } | |
38705 | ||
38706 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
38707 | return NULL; | |
38708 | } | |
38709 | ||
38710 | ||
38711 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38712 | PyObject *resultobj; | |
38713 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38714 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38715 | wxGBSpan result; | |
38716 | PyObject * obj0 = 0 ; | |
38717 | PyObject * obj1 = 0 ; | |
38718 | ||
38719 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38724 | { | |
38725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38726 | result = (arg1)->GetItemSpan(arg2); | |
38727 | ||
38728 | wxPyEndAllowThreads(__tstate); | |
38729 | if (PyErr_Occurred()) SWIG_fail; | |
38730 | } | |
38731 | { | |
38732 | wxGBSpan * resultptr; | |
38733 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38734 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38735 | } | |
38736 | return resultobj; | |
38737 | fail: | |
38738 | return NULL; | |
38739 | } | |
38740 | ||
38741 | ||
38742 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38743 | PyObject *resultobj; | |
38744 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38745 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38746 | wxGBSpan result; | |
38747 | PyObject * obj0 = 0 ; | |
38748 | PyObject * obj1 = 0 ; | |
38749 | ||
38750 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38755 | { | |
38756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38757 | result = (arg1)->GetItemSpan(arg2); | |
38758 | ||
38759 | wxPyEndAllowThreads(__tstate); | |
38760 | if (PyErr_Occurred()) SWIG_fail; | |
38761 | } | |
38762 | { | |
38763 | wxGBSpan * resultptr; | |
38764 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38765 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38766 | } | |
38767 | return resultobj; | |
38768 | fail: | |
38769 | return NULL; | |
38770 | } | |
38771 | ||
38772 | ||
38773 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38774 | PyObject *resultobj; | |
38775 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38776 | size_t arg2 ; | |
38777 | wxGBSpan result; | |
38778 | PyObject * obj0 = 0 ; | |
38779 | PyObject * obj1 = 0 ; | |
38780 | ||
38781 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38784 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38785 | if (PyErr_Occurred()) SWIG_fail; | |
38786 | { | |
38787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38788 | result = (arg1)->GetItemSpan(arg2); | |
38789 | ||
38790 | wxPyEndAllowThreads(__tstate); | |
38791 | if (PyErr_Occurred()) SWIG_fail; | |
38792 | } | |
38793 | { | |
38794 | wxGBSpan * resultptr; | |
38795 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38796 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38797 | } | |
38798 | return resultobj; | |
38799 | fail: | |
38800 | return NULL; | |
38801 | } | |
38802 | ||
38803 | ||
38804 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
38805 | int argc; | |
38806 | PyObject *argv[3]; | |
38807 | int ii; | |
38808 | ||
38809 | argc = PyObject_Length(args); | |
38810 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38811 | argv[ii] = PyTuple_GetItem(args,ii); | |
38812 | } | |
38813 | if (argc == 2) { | |
38814 | int _v; | |
38815 | { | |
38816 | void *ptr; | |
38817 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38818 | _v = 0; | |
38819 | PyErr_Clear(); | |
38820 | } else { | |
38821 | _v = 1; | |
38822 | } | |
38823 | } | |
38824 | if (_v) { | |
38825 | { | |
38826 | void *ptr; | |
38827 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38828 | _v = 0; | |
38829 | PyErr_Clear(); | |
38830 | } else { | |
38831 | _v = 1; | |
38832 | } | |
38833 | } | |
38834 | if (_v) { | |
38835 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
38836 | } | |
38837 | } | |
38838 | } | |
38839 | if (argc == 2) { | |
38840 | int _v; | |
38841 | { | |
38842 | void *ptr; | |
38843 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38844 | _v = 0; | |
38845 | PyErr_Clear(); | |
38846 | } else { | |
38847 | _v = 1; | |
38848 | } | |
38849 | } | |
38850 | if (_v) { | |
38851 | { | |
38852 | void *ptr; | |
38853 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38854 | _v = 0; | |
38855 | PyErr_Clear(); | |
38856 | } else { | |
38857 | _v = 1; | |
38858 | } | |
38859 | } | |
38860 | if (_v) { | |
38861 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
38862 | } | |
38863 | } | |
38864 | } | |
38865 | if (argc == 2) { | |
38866 | int _v; | |
38867 | { | |
38868 | void *ptr; | |
38869 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38870 | _v = 0; | |
38871 | PyErr_Clear(); | |
38872 | } else { | |
38873 | _v = 1; | |
38874 | } | |
38875 | } | |
38876 | if (_v) { | |
38877 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
38878 | if (_v) { | |
38879 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
38880 | } | |
38881 | } | |
38882 | } | |
38883 | ||
38884 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
38885 | return NULL; | |
38886 | } | |
38887 | ||
38888 | ||
38889 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38890 | PyObject *resultobj; | |
38891 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38892 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38893 | wxGBSpan *arg3 = 0 ; | |
38894 | bool result; | |
38895 | wxGBSpan temp3 ; | |
38896 | PyObject * obj0 = 0 ; | |
38897 | PyObject * obj1 = 0 ; | |
38898 | PyObject * obj2 = 0 ; | |
38899 | ||
38900 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
38901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38903 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38905 | { | |
38906 | arg3 = &temp3; | |
38907 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38908 | } | |
38909 | { | |
38910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38911 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38912 | ||
38913 | wxPyEndAllowThreads(__tstate); | |
38914 | if (PyErr_Occurred()) SWIG_fail; | |
38915 | } | |
38916 | { | |
38917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38918 | } | |
38919 | return resultobj; | |
38920 | fail: | |
38921 | return NULL; | |
38922 | } | |
38923 | ||
38924 | ||
38925 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38926 | PyObject *resultobj; | |
38927 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38928 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38929 | wxGBSpan *arg3 = 0 ; | |
38930 | bool result; | |
38931 | wxGBSpan temp3 ; | |
38932 | PyObject * obj0 = 0 ; | |
38933 | PyObject * obj1 = 0 ; | |
38934 | PyObject * obj2 = 0 ; | |
38935 | ||
38936 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
38937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38939 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38941 | { | |
38942 | arg3 = &temp3; | |
38943 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38944 | } | |
38945 | { | |
38946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38947 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38948 | ||
38949 | wxPyEndAllowThreads(__tstate); | |
38950 | if (PyErr_Occurred()) SWIG_fail; | |
38951 | } | |
38952 | { | |
38953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38954 | } | |
38955 | return resultobj; | |
38956 | fail: | |
38957 | return NULL; | |
38958 | } | |
38959 | ||
38960 | ||
38961 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38962 | PyObject *resultobj; | |
38963 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38964 | size_t arg2 ; | |
38965 | wxGBSpan *arg3 = 0 ; | |
38966 | bool result; | |
38967 | wxGBSpan temp3 ; | |
38968 | PyObject * obj0 = 0 ; | |
38969 | PyObject * obj1 = 0 ; | |
38970 | PyObject * obj2 = 0 ; | |
38971 | ||
38972 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
38973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38975 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38976 | if (PyErr_Occurred()) SWIG_fail; | |
38977 | { | |
38978 | arg3 = &temp3; | |
38979 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38980 | } | |
38981 | { | |
38982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38983 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38984 | ||
38985 | wxPyEndAllowThreads(__tstate); | |
38986 | if (PyErr_Occurred()) SWIG_fail; | |
38987 | } | |
38988 | { | |
38989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38990 | } | |
38991 | return resultobj; | |
38992 | fail: | |
38993 | return NULL; | |
38994 | } | |
38995 | ||
38996 | ||
38997 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
38998 | int argc; | |
38999 | PyObject *argv[4]; | |
39000 | int ii; | |
39001 | ||
39002 | argc = PyObject_Length(args); | |
39003 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39004 | argv[ii] = PyTuple_GetItem(args,ii); | |
39005 | } | |
39006 | if (argc == 3) { | |
39007 | int _v; | |
39008 | { | |
39009 | void *ptr; | |
39010 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39011 | _v = 0; | |
39012 | PyErr_Clear(); | |
39013 | } else { | |
39014 | _v = 1; | |
39015 | } | |
39016 | } | |
39017 | if (_v) { | |
39018 | { | |
39019 | void *ptr; | |
39020 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39021 | _v = 0; | |
39022 | PyErr_Clear(); | |
39023 | } else { | |
39024 | _v = 1; | |
39025 | } | |
39026 | } | |
39027 | if (_v) { | |
39028 | { | |
39029 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39030 | } | |
39031 | if (_v) { | |
39032 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
39033 | } | |
39034 | } | |
39035 | } | |
39036 | } | |
39037 | if (argc == 3) { | |
39038 | int _v; | |
39039 | { | |
39040 | void *ptr; | |
39041 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39042 | _v = 0; | |
39043 | PyErr_Clear(); | |
39044 | } else { | |
39045 | _v = 1; | |
39046 | } | |
39047 | } | |
39048 | if (_v) { | |
39049 | { | |
39050 | void *ptr; | |
39051 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39052 | _v = 0; | |
39053 | PyErr_Clear(); | |
39054 | } else { | |
39055 | _v = 1; | |
39056 | } | |
39057 | } | |
39058 | if (_v) { | |
39059 | { | |
39060 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39061 | } | |
39062 | if (_v) { | |
39063 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
39064 | } | |
39065 | } | |
39066 | } | |
39067 | } | |
39068 | if (argc == 3) { | |
39069 | int _v; | |
39070 | { | |
39071 | void *ptr; | |
39072 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39073 | _v = 0; | |
39074 | PyErr_Clear(); | |
39075 | } else { | |
39076 | _v = 1; | |
39077 | } | |
39078 | } | |
39079 | if (_v) { | |
39080 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
39081 | if (_v) { | |
39082 | { | |
39083 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39084 | } | |
39085 | if (_v) { | |
39086 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
39087 | } | |
39088 | } | |
39089 | } | |
39090 | } | |
39091 | ||
39092 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
39093 | return NULL; | |
39094 | } | |
39095 | ||
39096 | ||
39097 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
39098 | PyObject *resultobj; | |
39099 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39100 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39101 | wxGBSizerItem *result; | |
39102 | PyObject * obj0 = 0 ; | |
39103 | PyObject * obj1 = 0 ; | |
39104 | ||
39105 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39108 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39110 | { | |
39111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39112 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39113 | ||
39114 | wxPyEndAllowThreads(__tstate); | |
39115 | if (PyErr_Occurred()) SWIG_fail; | |
39116 | } | |
39117 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39118 | return resultobj; | |
39119 | fail: | |
39120 | return NULL; | |
39121 | } | |
39122 | ||
39123 | ||
39124 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
39125 | PyObject *resultobj; | |
39126 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39127 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39128 | wxGBSizerItem *result; | |
39129 | PyObject * obj0 = 0 ; | |
39130 | PyObject * obj1 = 0 ; | |
39131 | ||
39132 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39135 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39137 | { | |
39138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39139 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39140 | ||
39141 | wxPyEndAllowThreads(__tstate); | |
39142 | if (PyErr_Occurred()) SWIG_fail; | |
39143 | } | |
39144 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39145 | return resultobj; | |
39146 | fail: | |
39147 | return NULL; | |
39148 | } | |
39149 | ||
39150 | ||
39151 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
39152 | int argc; | |
39153 | PyObject *argv[3]; | |
39154 | int ii; | |
39155 | ||
39156 | argc = PyObject_Length(args); | |
39157 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39158 | argv[ii] = PyTuple_GetItem(args,ii); | |
39159 | } | |
39160 | if (argc == 2) { | |
39161 | int _v; | |
39162 | { | |
39163 | void *ptr; | |
39164 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39165 | _v = 0; | |
39166 | PyErr_Clear(); | |
39167 | } else { | |
39168 | _v = 1; | |
39169 | } | |
39170 | } | |
39171 | if (_v) { | |
39172 | { | |
39173 | void *ptr; | |
39174 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39175 | _v = 0; | |
39176 | PyErr_Clear(); | |
39177 | } else { | |
39178 | _v = 1; | |
39179 | } | |
39180 | } | |
39181 | if (_v) { | |
39182 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
39183 | } | |
39184 | } | |
39185 | } | |
39186 | if (argc == 2) { | |
39187 | int _v; | |
39188 | { | |
39189 | void *ptr; | |
39190 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39191 | _v = 0; | |
39192 | PyErr_Clear(); | |
39193 | } else { | |
39194 | _v = 1; | |
39195 | } | |
39196 | } | |
39197 | if (_v) { | |
39198 | { | |
39199 | void *ptr; | |
39200 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39201 | _v = 0; | |
39202 | PyErr_Clear(); | |
39203 | } else { | |
39204 | _v = 1; | |
39205 | } | |
39206 | } | |
39207 | if (_v) { | |
39208 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
39209 | } | |
39210 | } | |
39211 | } | |
39212 | ||
39213 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
39214 | return NULL; | |
39215 | } | |
39216 | ||
39217 | ||
39218 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39219 | PyObject *resultobj; | |
39220 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39221 | wxGBPosition *arg2 = 0 ; | |
39222 | wxGBSizerItem *result; | |
39223 | wxGBPosition temp2 ; | |
39224 | PyObject * obj0 = 0 ; | |
39225 | PyObject * obj1 = 0 ; | |
39226 | char *kwnames[] = { | |
39227 | (char *) "self",(char *) "pos", NULL | |
39228 | }; | |
39229 | ||
39230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
39231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39233 | { | |
39234 | arg2 = &temp2; | |
39235 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39236 | } | |
39237 | { | |
39238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39239 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
39240 | ||
39241 | wxPyEndAllowThreads(__tstate); | |
39242 | if (PyErr_Occurred()) SWIG_fail; | |
39243 | } | |
39244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39245 | return resultobj; | |
39246 | fail: | |
39247 | return NULL; | |
39248 | } | |
39249 | ||
39250 | ||
39251 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39252 | PyObject *resultobj; | |
39253 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39254 | wxPoint *arg2 = 0 ; | |
39255 | wxGBSizerItem *result; | |
39256 | wxPoint temp2 ; | |
39257 | PyObject * obj0 = 0 ; | |
39258 | PyObject * obj1 = 0 ; | |
39259 | char *kwnames[] = { | |
39260 | (char *) "self",(char *) "pt", NULL | |
39261 | }; | |
39262 | ||
39263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
39264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39266 | { | |
39267 | arg2 = &temp2; | |
39268 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39269 | } | |
39270 | { | |
39271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39272 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
39273 | ||
39274 | wxPyEndAllowThreads(__tstate); | |
39275 | if (PyErr_Occurred()) SWIG_fail; | |
39276 | } | |
39277 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39278 | return resultobj; | |
39279 | fail: | |
39280 | return NULL; | |
39281 | } | |
39282 | ||
39283 | ||
39284 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39285 | PyObject *resultobj; | |
39286 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39287 | wxObject *arg2 = (wxObject *) 0 ; | |
39288 | wxGBSizerItem *result; | |
39289 | PyObject * obj0 = 0 ; | |
39290 | PyObject * obj1 = 0 ; | |
39291 | char *kwnames[] = { | |
39292 | (char *) "self",(char *) "userData", NULL | |
39293 | }; | |
39294 | ||
39295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
39296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39298 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
39299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39300 | { | |
39301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39302 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
39303 | ||
39304 | wxPyEndAllowThreads(__tstate); | |
39305 | if (PyErr_Occurred()) SWIG_fail; | |
39306 | } | |
39307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39308 | return resultobj; | |
39309 | fail: | |
39310 | return NULL; | |
39311 | } | |
39312 | ||
39313 | ||
39314 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39315 | PyObject *resultobj; | |
39316 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39317 | PyObject * obj0 = 0 ; | |
39318 | char *kwnames[] = { | |
39319 | (char *) "self", NULL | |
39320 | }; | |
39321 | ||
39322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
39323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39325 | { | |
39326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39327 | (arg1)->RecalcSizes(); | |
39328 | ||
39329 | wxPyEndAllowThreads(__tstate); | |
39330 | if (PyErr_Occurred()) SWIG_fail; | |
39331 | } | |
39332 | Py_INCREF(Py_None); resultobj = Py_None; | |
39333 | return resultobj; | |
39334 | fail: | |
39335 | return NULL; | |
39336 | } | |
39337 | ||
39338 | ||
39339 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39340 | PyObject *resultobj; | |
39341 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39342 | wxSize result; | |
39343 | PyObject * obj0 = 0 ; | |
39344 | char *kwnames[] = { | |
39345 | (char *) "self", NULL | |
39346 | }; | |
39347 | ||
39348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
39349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39351 | { | |
39352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39353 | result = (arg1)->CalcMin(); | |
39354 | ||
39355 | wxPyEndAllowThreads(__tstate); | |
39356 | if (PyErr_Occurred()) SWIG_fail; | |
39357 | } | |
39358 | { | |
39359 | wxSize * resultptr; | |
39360 | resultptr = new wxSize((wxSize &) result); | |
39361 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
39362 | } | |
39363 | return resultobj; | |
39364 | fail: | |
39365 | return NULL; | |
39366 | } | |
39367 | ||
39368 | ||
39369 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
39370 | PyObject *resultobj; | |
39371 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39372 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
39373 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
39374 | bool result; | |
39375 | PyObject * obj0 = 0 ; | |
39376 | PyObject * obj1 = 0 ; | |
39377 | PyObject * obj2 = 0 ; | |
39378 | ||
39379 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
39380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39382 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
39383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39384 | if (obj2) { | |
39385 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, | |
39386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39387 | } | |
39388 | { | |
39389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39390 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
39391 | ||
39392 | wxPyEndAllowThreads(__tstate); | |
39393 | if (PyErr_Occurred()) SWIG_fail; | |
39394 | } | |
39395 | { | |
39396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39397 | } | |
39398 | return resultobj; | |
39399 | fail: | |
39400 | return NULL; | |
39401 | } | |
39402 | ||
39403 | ||
39404 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
39405 | PyObject *resultobj; | |
39406 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39407 | wxGBPosition *arg2 = 0 ; | |
39408 | wxGBSpan *arg3 = 0 ; | |
39409 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
39410 | bool result; | |
39411 | wxGBPosition temp2 ; | |
39412 | wxGBSpan temp3 ; | |
39413 | PyObject * obj0 = 0 ; | |
39414 | PyObject * obj1 = 0 ; | |
39415 | PyObject * obj2 = 0 ; | |
39416 | PyObject * obj3 = 0 ; | |
39417 | ||
39418 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39421 | { | |
39422 | arg2 = &temp2; | |
39423 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39424 | } | |
39425 | { | |
39426 | arg3 = &temp3; | |
39427 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39428 | } | |
39429 | if (obj3) { | |
39430 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, | |
39431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39432 | } | |
39433 | { | |
39434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39435 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
39436 | ||
39437 | wxPyEndAllowThreads(__tstate); | |
39438 | if (PyErr_Occurred()) SWIG_fail; | |
39439 | } | |
39440 | { | |
39441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39442 | } | |
39443 | return resultobj; | |
39444 | fail: | |
39445 | return NULL; | |
39446 | } | |
39447 | ||
39448 | ||
39449 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
39450 | int argc; | |
39451 | PyObject *argv[5]; | |
39452 | int ii; | |
39453 | ||
39454 | argc = PyObject_Length(args); | |
39455 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
39456 | argv[ii] = PyTuple_GetItem(args,ii); | |
39457 | } | |
39458 | if ((argc >= 2) && (argc <= 3)) { | |
39459 | int _v; | |
39460 | { | |
39461 | void *ptr; | |
39462 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39463 | _v = 0; | |
39464 | PyErr_Clear(); | |
39465 | } else { | |
39466 | _v = 1; | |
39467 | } | |
39468 | } | |
39469 | if (_v) { | |
39470 | { | |
39471 | void *ptr; | |
39472 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
39473 | _v = 0; | |
39474 | PyErr_Clear(); | |
39475 | } else { | |
39476 | _v = 1; | |
39477 | } | |
39478 | } | |
39479 | if (_v) { | |
39480 | if (argc <= 2) { | |
39481 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
39482 | } | |
39483 | { | |
39484 | void *ptr; | |
39485 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
39486 | _v = 0; | |
39487 | PyErr_Clear(); | |
39488 | } else { | |
39489 | _v = 1; | |
39490 | } | |
39491 | } | |
39492 | if (_v) { | |
39493 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
39494 | } | |
39495 | } | |
39496 | } | |
39497 | } | |
39498 | if ((argc >= 3) && (argc <= 4)) { | |
39499 | int _v; | |
39500 | { | |
39501 | void *ptr; | |
39502 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39503 | _v = 0; | |
39504 | PyErr_Clear(); | |
39505 | } else { | |
39506 | _v = 1; | |
39507 | } | |
39508 | } | |
39509 | if (_v) { | |
39510 | { | |
39511 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
39512 | } | |
39513 | if (_v) { | |
39514 | { | |
39515 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39516 | } | |
39517 | if (_v) { | |
39518 | if (argc <= 3) { | |
39519 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
39520 | } | |
39521 | { | |
39522 | void *ptr; | |
39523 | if (SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
39524 | _v = 0; | |
39525 | PyErr_Clear(); | |
39526 | } else { | |
39527 | _v = 1; | |
39528 | } | |
39529 | } | |
39530 | if (_v) { | |
39531 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
39532 | } | |
39533 | } | |
39534 | } | |
39535 | } | |
39536 | } | |
39537 | ||
39538 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
39539 | return NULL; | |
39540 | } | |
39541 | ||
39542 | ||
39543 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
39544 | PyObject *obj; | |
39545 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39546 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
39547 | Py_INCREF(obj); | |
39548 | return Py_BuildValue((char *)""); | |
39549 | } | |
39550 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39551 | PyObject *resultobj; | |
39552 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39553 | int arg2 ; | |
39554 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39555 | int arg4 ; | |
39556 | int arg5 = (int) 0 ; | |
39557 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
39558 | PyObject * obj0 = 0 ; | |
39559 | PyObject * obj1 = 0 ; | |
39560 | PyObject * obj2 = 0 ; | |
39561 | PyObject * obj3 = 0 ; | |
39562 | PyObject * obj4 = 0 ; | |
39563 | PyObject * obj5 = 0 ; | |
39564 | char *kwnames[] = { | |
39565 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
39566 | }; | |
39567 | ||
39568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
39569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39571 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
39572 | if (PyErr_Occurred()) SWIG_fail; | |
39573 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39575 | arg4 = (wxEdge) SWIG_AsInt(obj3); | |
39576 | if (PyErr_Occurred()) SWIG_fail; | |
39577 | if (obj4) { | |
39578 | arg5 = (int) SWIG_AsInt(obj4); | |
39579 | if (PyErr_Occurred()) SWIG_fail; | |
39580 | } | |
39581 | if (obj5) { | |
39582 | arg6 = (int) SWIG_AsInt(obj5); | |
39583 | if (PyErr_Occurred()) SWIG_fail; | |
39584 | } | |
39585 | { | |
39586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39587 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
39588 | ||
39589 | wxPyEndAllowThreads(__tstate); | |
39590 | if (PyErr_Occurred()) SWIG_fail; | |
39591 | } | |
39592 | Py_INCREF(Py_None); resultobj = Py_None; | |
39593 | return resultobj; | |
39594 | fail: | |
39595 | return NULL; | |
39596 | } | |
39597 | ||
39598 | ||
39599 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39600 | PyObject *resultobj; | |
39601 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39602 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39603 | int arg3 = (int) 0 ; | |
39604 | PyObject * obj0 = 0 ; | |
39605 | PyObject * obj1 = 0 ; | |
39606 | PyObject * obj2 = 0 ; | |
39607 | char *kwnames[] = { | |
39608 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39609 | }; | |
39610 | ||
39611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39614 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39616 | if (obj2) { | |
39617 | arg3 = (int) SWIG_AsInt(obj2); | |
39618 | if (PyErr_Occurred()) SWIG_fail; | |
39619 | } | |
39620 | { | |
39621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39622 | (arg1)->LeftOf(arg2,arg3); | |
39623 | ||
39624 | wxPyEndAllowThreads(__tstate); | |
39625 | if (PyErr_Occurred()) SWIG_fail; | |
39626 | } | |
39627 | Py_INCREF(Py_None); resultobj = Py_None; | |
39628 | return resultobj; | |
39629 | fail: | |
39630 | return NULL; | |
39631 | } | |
39632 | ||
39633 | ||
39634 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39635 | PyObject *resultobj; | |
39636 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39637 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39638 | int arg3 = (int) 0 ; | |
39639 | PyObject * obj0 = 0 ; | |
39640 | PyObject * obj1 = 0 ; | |
39641 | PyObject * obj2 = 0 ; | |
39642 | char *kwnames[] = { | |
39643 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39644 | }; | |
39645 | ||
39646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39649 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39651 | if (obj2) { | |
39652 | arg3 = (int) SWIG_AsInt(obj2); | |
39653 | if (PyErr_Occurred()) SWIG_fail; | |
39654 | } | |
39655 | { | |
39656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39657 | (arg1)->RightOf(arg2,arg3); | |
39658 | ||
39659 | wxPyEndAllowThreads(__tstate); | |
39660 | if (PyErr_Occurred()) SWIG_fail; | |
39661 | } | |
39662 | Py_INCREF(Py_None); resultobj = Py_None; | |
39663 | return resultobj; | |
39664 | fail: | |
39665 | return NULL; | |
39666 | } | |
39667 | ||
39668 | ||
39669 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39670 | PyObject *resultobj; | |
39671 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39672 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39673 | int arg3 = (int) 0 ; | |
39674 | PyObject * obj0 = 0 ; | |
39675 | PyObject * obj1 = 0 ; | |
39676 | PyObject * obj2 = 0 ; | |
39677 | char *kwnames[] = { | |
39678 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39679 | }; | |
39680 | ||
39681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39684 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39686 | if (obj2) { | |
39687 | arg3 = (int) SWIG_AsInt(obj2); | |
39688 | if (PyErr_Occurred()) SWIG_fail; | |
39689 | } | |
39690 | { | |
39691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39692 | (arg1)->Above(arg2,arg3); | |
39693 | ||
39694 | wxPyEndAllowThreads(__tstate); | |
39695 | if (PyErr_Occurred()) SWIG_fail; | |
39696 | } | |
39697 | Py_INCREF(Py_None); resultobj = Py_None; | |
39698 | return resultobj; | |
39699 | fail: | |
39700 | return NULL; | |
39701 | } | |
39702 | ||
39703 | ||
39704 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39705 | PyObject *resultobj; | |
39706 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39707 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39708 | int arg3 = (int) 0 ; | |
39709 | PyObject * obj0 = 0 ; | |
39710 | PyObject * obj1 = 0 ; | |
39711 | PyObject * obj2 = 0 ; | |
39712 | char *kwnames[] = { | |
39713 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39714 | }; | |
39715 | ||
39716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39721 | if (obj2) { | |
39722 | arg3 = (int) SWIG_AsInt(obj2); | |
39723 | if (PyErr_Occurred()) SWIG_fail; | |
39724 | } | |
39725 | { | |
39726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39727 | (arg1)->Below(arg2,arg3); | |
39728 | ||
39729 | wxPyEndAllowThreads(__tstate); | |
39730 | if (PyErr_Occurred()) SWIG_fail; | |
39731 | } | |
39732 | Py_INCREF(Py_None); resultobj = Py_None; | |
39733 | return resultobj; | |
39734 | fail: | |
39735 | return NULL; | |
39736 | } | |
39737 | ||
39738 | ||
39739 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39740 | PyObject *resultobj; | |
39741 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39742 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39743 | int arg3 ; | |
39744 | int arg4 = (int) 0 ; | |
39745 | PyObject * obj0 = 0 ; | |
39746 | PyObject * obj1 = 0 ; | |
39747 | PyObject * obj2 = 0 ; | |
39748 | PyObject * obj3 = 0 ; | |
39749 | char *kwnames[] = { | |
39750 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
39751 | }; | |
39752 | ||
39753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39756 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39758 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39759 | if (PyErr_Occurred()) SWIG_fail; | |
39760 | if (obj3) { | |
39761 | arg4 = (int) SWIG_AsInt(obj3); | |
39762 | if (PyErr_Occurred()) SWIG_fail; | |
39763 | } | |
39764 | { | |
39765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39766 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
39767 | ||
39768 | wxPyEndAllowThreads(__tstate); | |
39769 | if (PyErr_Occurred()) SWIG_fail; | |
39770 | } | |
39771 | Py_INCREF(Py_None); resultobj = Py_None; | |
39772 | return resultobj; | |
39773 | fail: | |
39774 | return NULL; | |
39775 | } | |
39776 | ||
39777 | ||
39778 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39779 | PyObject *resultobj; | |
39780 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39781 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39782 | int arg3 ; | |
39783 | int arg4 ; | |
39784 | PyObject * obj0 = 0 ; | |
39785 | PyObject * obj1 = 0 ; | |
39786 | PyObject * obj2 = 0 ; | |
39787 | PyObject * obj3 = 0 ; | |
39788 | char *kwnames[] = { | |
39789 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
39790 | }; | |
39791 | ||
39792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39795 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39797 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39798 | if (PyErr_Occurred()) SWIG_fail; | |
39799 | arg4 = (int) SWIG_AsInt(obj3); | |
39800 | if (PyErr_Occurred()) SWIG_fail; | |
39801 | { | |
39802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39803 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
39804 | ||
39805 | wxPyEndAllowThreads(__tstate); | |
39806 | if (PyErr_Occurred()) SWIG_fail; | |
39807 | } | |
39808 | Py_INCREF(Py_None); resultobj = Py_None; | |
39809 | return resultobj; | |
39810 | fail: | |
39811 | return NULL; | |
39812 | } | |
39813 | ||
39814 | ||
39815 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39816 | PyObject *resultobj; | |
39817 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39818 | int arg2 ; | |
39819 | PyObject * obj0 = 0 ; | |
39820 | PyObject * obj1 = 0 ; | |
39821 | char *kwnames[] = { | |
39822 | (char *) "self",(char *) "val", NULL | |
39823 | }; | |
39824 | ||
39825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; | |
39826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39828 | arg2 = (int) SWIG_AsInt(obj1); | |
39829 | if (PyErr_Occurred()) SWIG_fail; | |
39830 | { | |
39831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39832 | (arg1)->Absolute(arg2); | |
39833 | ||
39834 | wxPyEndAllowThreads(__tstate); | |
39835 | if (PyErr_Occurred()) SWIG_fail; | |
39836 | } | |
39837 | Py_INCREF(Py_None); resultobj = Py_None; | |
39838 | return resultobj; | |
39839 | fail: | |
39840 | return NULL; | |
39841 | } | |
39842 | ||
39843 | ||
39844 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39845 | PyObject *resultobj; | |
39846 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39847 | PyObject * obj0 = 0 ; | |
39848 | char *kwnames[] = { | |
39849 | (char *) "self", NULL | |
39850 | }; | |
39851 | ||
39852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
39853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39855 | { | |
39856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39857 | (arg1)->Unconstrained(); | |
39858 | ||
39859 | wxPyEndAllowThreads(__tstate); | |
39860 | if (PyErr_Occurred()) SWIG_fail; | |
39861 | } | |
39862 | Py_INCREF(Py_None); resultobj = Py_None; | |
39863 | return resultobj; | |
39864 | fail: | |
39865 | return NULL; | |
39866 | } | |
39867 | ||
39868 | ||
39869 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39870 | PyObject *resultobj; | |
39871 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39872 | PyObject * obj0 = 0 ; | |
39873 | char *kwnames[] = { | |
39874 | (char *) "self", NULL | |
39875 | }; | |
39876 | ||
39877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
39878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39880 | { | |
39881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39882 | (arg1)->AsIs(); | |
39883 | ||
39884 | wxPyEndAllowThreads(__tstate); | |
39885 | if (PyErr_Occurred()) SWIG_fail; | |
39886 | } | |
39887 | Py_INCREF(Py_None); resultobj = Py_None; | |
39888 | return resultobj; | |
39889 | fail: | |
39890 | return NULL; | |
39891 | } | |
39892 | ||
39893 | ||
39894 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39895 | PyObject *resultobj; | |
39896 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39897 | wxWindow *result; | |
39898 | PyObject * obj0 = 0 ; | |
39899 | char *kwnames[] = { | |
39900 | (char *) "self", NULL | |
39901 | }; | |
39902 | ||
39903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
39904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39906 | { | |
39907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39908 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
39909 | ||
39910 | wxPyEndAllowThreads(__tstate); | |
39911 | if (PyErr_Occurred()) SWIG_fail; | |
39912 | } | |
39913 | { | |
39914 | resultobj = wxPyMake_wxObject(result); | |
39915 | } | |
39916 | return resultobj; | |
39917 | fail: | |
39918 | return NULL; | |
39919 | } | |
39920 | ||
39921 | ||
39922 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39923 | PyObject *resultobj; | |
39924 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39925 | int result; | |
39926 | PyObject * obj0 = 0 ; | |
39927 | char *kwnames[] = { | |
39928 | (char *) "self", NULL | |
39929 | }; | |
39930 | ||
39931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
39932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39934 | { | |
39935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39936 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
39937 | ||
39938 | wxPyEndAllowThreads(__tstate); | |
39939 | if (PyErr_Occurred()) SWIG_fail; | |
39940 | } | |
39941 | resultobj = SWIG_FromInt((int)result); | |
39942 | return resultobj; | |
39943 | fail: | |
39944 | return NULL; | |
39945 | } | |
39946 | ||
39947 | ||
39948 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39949 | PyObject *resultobj; | |
39950 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39951 | int arg2 ; | |
39952 | PyObject * obj0 = 0 ; | |
39953 | PyObject * obj1 = 0 ; | |
39954 | char *kwnames[] = { | |
39955 | (char *) "self",(char *) "which", NULL | |
39956 | }; | |
39957 | ||
39958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
39959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39961 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39962 | if (PyErr_Occurred()) SWIG_fail; | |
39963 | { | |
39964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39965 | (arg1)->SetEdge((wxEdge )arg2); | |
39966 | ||
39967 | wxPyEndAllowThreads(__tstate); | |
39968 | if (PyErr_Occurred()) SWIG_fail; | |
39969 | } | |
39970 | Py_INCREF(Py_None); resultobj = Py_None; | |
39971 | return resultobj; | |
39972 | fail: | |
39973 | return NULL; | |
39974 | } | |
39975 | ||
39976 | ||
39977 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39978 | PyObject *resultobj; | |
39979 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39980 | int arg2 ; | |
39981 | PyObject * obj0 = 0 ; | |
39982 | PyObject * obj1 = 0 ; | |
39983 | char *kwnames[] = { | |
39984 | (char *) "self",(char *) "v", NULL | |
39985 | }; | |
39986 | ||
39987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
39988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39990 | arg2 = (int) SWIG_AsInt(obj1); | |
39991 | if (PyErr_Occurred()) SWIG_fail; | |
39992 | { | |
39993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39994 | (arg1)->SetValue(arg2); | |
39995 | ||
39996 | wxPyEndAllowThreads(__tstate); | |
39997 | if (PyErr_Occurred()) SWIG_fail; | |
39998 | } | |
39999 | Py_INCREF(Py_None); resultobj = Py_None; | |
40000 | return resultobj; | |
40001 | fail: | |
40002 | return NULL; | |
40003 | } | |
40004 | ||
40005 | ||
40006 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40007 | PyObject *resultobj; | |
40008 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40009 | int result; | |
40010 | PyObject * obj0 = 0 ; | |
40011 | char *kwnames[] = { | |
40012 | (char *) "self", NULL | |
40013 | }; | |
40014 | ||
40015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
40016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40018 | { | |
40019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40020 | result = (int)(arg1)->GetMargin(); | |
40021 | ||
40022 | wxPyEndAllowThreads(__tstate); | |
40023 | if (PyErr_Occurred()) SWIG_fail; | |
40024 | } | |
40025 | resultobj = SWIG_FromInt((int)result); | |
40026 | return resultobj; | |
40027 | fail: | |
40028 | return NULL; | |
40029 | } | |
40030 | ||
40031 | ||
40032 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40033 | PyObject *resultobj; | |
40034 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40035 | int arg2 ; | |
40036 | PyObject * obj0 = 0 ; | |
40037 | PyObject * obj1 = 0 ; | |
40038 | char *kwnames[] = { | |
40039 | (char *) "self",(char *) "m", NULL | |
40040 | }; | |
40041 | ||
40042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; | |
40043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40045 | arg2 = (int) SWIG_AsInt(obj1); | |
40046 | if (PyErr_Occurred()) SWIG_fail; | |
40047 | { | |
40048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40049 | (arg1)->SetMargin(arg2); | |
40050 | ||
40051 | wxPyEndAllowThreads(__tstate); | |
40052 | if (PyErr_Occurred()) SWIG_fail; | |
40053 | } | |
40054 | Py_INCREF(Py_None); resultobj = Py_None; | |
40055 | return resultobj; | |
40056 | fail: | |
40057 | return NULL; | |
40058 | } | |
40059 | ||
40060 | ||
40061 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40062 | PyObject *resultobj; | |
40063 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40064 | int result; | |
40065 | PyObject * obj0 = 0 ; | |
40066 | char *kwnames[] = { | |
40067 | (char *) "self", NULL | |
40068 | }; | |
40069 | ||
40070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
40071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40073 | { | |
40074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40075 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
40076 | ||
40077 | wxPyEndAllowThreads(__tstate); | |
40078 | if (PyErr_Occurred()) SWIG_fail; | |
40079 | } | |
40080 | resultobj = SWIG_FromInt((int)result); | |
40081 | return resultobj; | |
40082 | fail: | |
40083 | return NULL; | |
40084 | } | |
40085 | ||
40086 | ||
40087 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40088 | PyObject *resultobj; | |
40089 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40090 | int result; | |
40091 | PyObject * obj0 = 0 ; | |
40092 | char *kwnames[] = { | |
40093 | (char *) "self", NULL | |
40094 | }; | |
40095 | ||
40096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
40097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40099 | { | |
40100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40101 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
40102 | ||
40103 | wxPyEndAllowThreads(__tstate); | |
40104 | if (PyErr_Occurred()) SWIG_fail; | |
40105 | } | |
40106 | resultobj = SWIG_FromInt((int)result); | |
40107 | return resultobj; | |
40108 | fail: | |
40109 | return NULL; | |
40110 | } | |
40111 | ||
40112 | ||
40113 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40114 | PyObject *resultobj; | |
40115 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40116 | int result; | |
40117 | PyObject * obj0 = 0 ; | |
40118 | char *kwnames[] = { | |
40119 | (char *) "self", NULL | |
40120 | }; | |
40121 | ||
40122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
40123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40125 | { | |
40126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40127 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
40128 | ||
40129 | wxPyEndAllowThreads(__tstate); | |
40130 | if (PyErr_Occurred()) SWIG_fail; | |
40131 | } | |
40132 | resultobj = SWIG_FromInt((int)result); | |
40133 | return resultobj; | |
40134 | fail: | |
40135 | return NULL; | |
40136 | } | |
40137 | ||
40138 | ||
40139 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40140 | PyObject *resultobj; | |
40141 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40142 | bool result; | |
40143 | PyObject * obj0 = 0 ; | |
40144 | char *kwnames[] = { | |
40145 | (char *) "self", NULL | |
40146 | }; | |
40147 | ||
40148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
40149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40151 | { | |
40152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40153 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
40154 | ||
40155 | wxPyEndAllowThreads(__tstate); | |
40156 | if (PyErr_Occurred()) SWIG_fail; | |
40157 | } | |
40158 | { | |
40159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40160 | } | |
40161 | return resultobj; | |
40162 | fail: | |
40163 | return NULL; | |
40164 | } | |
40165 | ||
40166 | ||
40167 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40168 | PyObject *resultobj; | |
40169 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40170 | bool arg2 ; | |
40171 | PyObject * obj0 = 0 ; | |
40172 | PyObject * obj1 = 0 ; | |
40173 | char *kwnames[] = { | |
40174 | (char *) "self",(char *) "d", NULL | |
40175 | }; | |
40176 | ||
40177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
40178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40180 | arg2 = (bool) SWIG_AsBool(obj1); | |
40181 | if (PyErr_Occurred()) SWIG_fail; | |
40182 | { | |
40183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40184 | (arg1)->SetDone(arg2); | |
40185 | ||
40186 | wxPyEndAllowThreads(__tstate); | |
40187 | if (PyErr_Occurred()) SWIG_fail; | |
40188 | } | |
40189 | Py_INCREF(Py_None); resultobj = Py_None; | |
40190 | return resultobj; | |
40191 | fail: | |
40192 | return NULL; | |
40193 | } | |
40194 | ||
40195 | ||
40196 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40197 | PyObject *resultobj; | |
40198 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40199 | int result; | |
40200 | PyObject * obj0 = 0 ; | |
40201 | char *kwnames[] = { | |
40202 | (char *) "self", NULL | |
40203 | }; | |
40204 | ||
40205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
40206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40208 | { | |
40209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40210 | result = (int)(arg1)->GetRelationship(); | |
40211 | ||
40212 | wxPyEndAllowThreads(__tstate); | |
40213 | if (PyErr_Occurred()) SWIG_fail; | |
40214 | } | |
40215 | resultobj = SWIG_FromInt((int)result); | |
40216 | return resultobj; | |
40217 | fail: | |
40218 | return NULL; | |
40219 | } | |
40220 | ||
40221 | ||
40222 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40223 | PyObject *resultobj; | |
40224 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40225 | int arg2 ; | |
40226 | PyObject * obj0 = 0 ; | |
40227 | PyObject * obj1 = 0 ; | |
40228 | char *kwnames[] = { | |
40229 | (char *) "self",(char *) "r", NULL | |
40230 | }; | |
40231 | ||
40232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; | |
40233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40235 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
40236 | if (PyErr_Occurred()) SWIG_fail; | |
40237 | { | |
40238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40239 | (arg1)->SetRelationship((wxRelationship )arg2); | |
40240 | ||
40241 | wxPyEndAllowThreads(__tstate); | |
40242 | if (PyErr_Occurred()) SWIG_fail; | |
40243 | } | |
40244 | Py_INCREF(Py_None); resultobj = Py_None; | |
40245 | return resultobj; | |
40246 | fail: | |
40247 | return NULL; | |
40248 | } | |
40249 | ||
40250 | ||
40251 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40252 | PyObject *resultobj; | |
40253 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40254 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40255 | bool result; | |
40256 | PyObject * obj0 = 0 ; | |
40257 | PyObject * obj1 = 0 ; | |
40258 | char *kwnames[] = { | |
40259 | (char *) "self",(char *) "otherW", NULL | |
40260 | }; | |
40261 | ||
40262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
40263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40265 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40267 | { | |
40268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40269 | result = (bool)(arg1)->ResetIfWin(arg2); | |
40270 | ||
40271 | wxPyEndAllowThreads(__tstate); | |
40272 | if (PyErr_Occurred()) SWIG_fail; | |
40273 | } | |
40274 | { | |
40275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40276 | } | |
40277 | return resultobj; | |
40278 | fail: | |
40279 | return NULL; | |
40280 | } | |
40281 | ||
40282 | ||
40283 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40284 | PyObject *resultobj; | |
40285 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40286 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
40287 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40288 | bool result; | |
40289 | PyObject * obj0 = 0 ; | |
40290 | PyObject * obj1 = 0 ; | |
40291 | PyObject * obj2 = 0 ; | |
40292 | char *kwnames[] = { | |
40293 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
40294 | }; | |
40295 | ||
40296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40299 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
40300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40301 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40303 | { | |
40304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40305 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
40306 | ||
40307 | wxPyEndAllowThreads(__tstate); | |
40308 | if (PyErr_Occurred()) SWIG_fail; | |
40309 | } | |
40310 | { | |
40311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40312 | } | |
40313 | return resultobj; | |
40314 | fail: | |
40315 | return NULL; | |
40316 | } | |
40317 | ||
40318 | ||
40319 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40320 | PyObject *resultobj; | |
40321 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40322 | int arg2 ; | |
40323 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40324 | wxWindow *arg4 = (wxWindow *) 0 ; | |
40325 | int result; | |
40326 | PyObject * obj0 = 0 ; | |
40327 | PyObject * obj1 = 0 ; | |
40328 | PyObject * obj2 = 0 ; | |
40329 | PyObject * obj3 = 0 ; | |
40330 | char *kwnames[] = { | |
40331 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
40332 | }; | |
40333 | ||
40334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40337 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
40338 | if (PyErr_Occurred()) SWIG_fail; | |
40339 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40341 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
40342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40343 | { | |
40344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40345 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
40346 | ||
40347 | wxPyEndAllowThreads(__tstate); | |
40348 | if (PyErr_Occurred()) SWIG_fail; | |
40349 | } | |
40350 | resultobj = SWIG_FromInt((int)result); | |
40351 | return resultobj; | |
40352 | fail: | |
40353 | return NULL; | |
40354 | } | |
40355 | ||
40356 | ||
40357 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
40358 | PyObject *obj; | |
40359 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40360 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
40361 | Py_INCREF(obj); | |
40362 | return Py_BuildValue((char *)""); | |
40363 | } | |
40364 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40365 | PyObject *resultobj; | |
40366 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40367 | wxIndividualLayoutConstraint *result; | |
40368 | PyObject * obj0 = 0 ; | |
40369 | char *kwnames[] = { | |
40370 | (char *) "self", NULL | |
40371 | }; | |
40372 | ||
40373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
40374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40376 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
40377 | ||
40378 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40379 | return resultobj; | |
40380 | fail: | |
40381 | return NULL; | |
40382 | } | |
40383 | ||
40384 | ||
40385 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40386 | PyObject *resultobj; | |
40387 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40388 | wxIndividualLayoutConstraint *result; | |
40389 | PyObject * obj0 = 0 ; | |
40390 | char *kwnames[] = { | |
40391 | (char *) "self", NULL | |
40392 | }; | |
40393 | ||
40394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
40395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40397 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
40398 | ||
40399 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40400 | return resultobj; | |
40401 | fail: | |
40402 | return NULL; | |
40403 | } | |
40404 | ||
40405 | ||
40406 | static PyObject *_wrap_LayoutConstraints_right_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_right_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)->right); | |
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_bottom_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_bottom_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)->bottom); | |
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_width_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_width_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)->width); | |
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_height_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_height_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)->height); | |
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_centreX_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_centreX_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)->centreX); | |
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_centreY_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_centreY_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)->centreY); | |
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_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40533 | PyObject *resultobj; | |
40534 | wxLayoutConstraints *result; | |
40535 | char *kwnames[] = { | |
40536 | NULL | |
40537 | }; | |
40538 | ||
40539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
40540 | { | |
40541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40542 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
40543 | ||
40544 | wxPyEndAllowThreads(__tstate); | |
40545 | if (PyErr_Occurred()) SWIG_fail; | |
40546 | } | |
40547 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); | |
40548 | return resultobj; | |
40549 | fail: | |
40550 | return NULL; | |
40551 | } | |
40552 | ||
40553 | ||
40554 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40555 | PyObject *resultobj; | |
40556 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40557 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40558 | int *arg3 = (int *) 0 ; | |
40559 | bool result; | |
40560 | int temp3 ; | |
40561 | PyObject * obj0 = 0 ; | |
40562 | PyObject * obj1 = 0 ; | |
40563 | char *kwnames[] = { | |
40564 | (char *) "self",(char *) "win", NULL | |
40565 | }; | |
40566 | ||
40567 | arg3 = &temp3; | |
40568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
40569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40571 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40573 | { | |
40574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40575 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
40576 | ||
40577 | wxPyEndAllowThreads(__tstate); | |
40578 | if (PyErr_Occurred()) SWIG_fail; | |
40579 | } | |
40580 | { | |
40581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40582 | } | |
40583 | { | |
40584 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
40585 | resultobj = t_output_helper(resultobj,o); | |
40586 | } | |
40587 | return resultobj; | |
40588 | fail: | |
40589 | return NULL; | |
40590 | } | |
40591 | ||
40592 | ||
40593 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40594 | PyObject *resultobj; | |
40595 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40596 | bool result; | |
40597 | PyObject * obj0 = 0 ; | |
40598 | char *kwnames[] = { | |
40599 | (char *) "self", NULL | |
40600 | }; | |
40601 | ||
40602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
40603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40605 | { | |
40606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40607 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
40608 | ||
40609 | wxPyEndAllowThreads(__tstate); | |
40610 | if (PyErr_Occurred()) SWIG_fail; | |
40611 | } | |
40612 | { | |
40613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40614 | } | |
40615 | return resultobj; | |
40616 | fail: | |
40617 | return NULL; | |
40618 | } | |
40619 | ||
40620 | ||
40621 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
40622 | PyObject *obj; | |
40623 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40624 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
40625 | Py_INCREF(obj); | |
40626 | return Py_BuildValue((char *)""); | |
40627 | } | |
40628 | static PyMethodDef SwigMethods[] = { | |
40629 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
40630 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, | |
40631 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40632 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40633 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
40634 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
40635 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40636 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
40637 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40638 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
40639 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
40640 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40641 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40642 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
40643 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40644 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
40645 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
40646 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
40647 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40648 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40649 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40650 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40651 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS }, | |
40652 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS }, | |
40653 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, | |
40654 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, | |
40655 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40656 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40657 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40658 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40659 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
40660 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
40661 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40662 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40663 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, | |
40664 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40665 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, | |
40666 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, | |
40667 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, | |
40668 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40669 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40670 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40671 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40672 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
40673 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
40674 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40675 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40676 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
40677 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40678 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40679 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40680 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
40681 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, | |
40682 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, | |
40683 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40684 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
40685 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
40686 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40687 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40688 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
40689 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40690 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
40691 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40692 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40693 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40694 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40695 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40696 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40697 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40698 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40699 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
40700 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
40701 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
40702 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
40703 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, | |
40704 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
40705 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40706 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
40707 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
40708 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
40709 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
40710 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40711 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
40712 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
40713 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
40714 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
40715 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
40716 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
40717 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40718 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40719 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40720 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
40721 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
40722 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
40723 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40724 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40725 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40726 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40727 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
40728 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40729 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
40730 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40731 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
40732 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, | |
40733 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, | |
40734 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
40735 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
40736 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
40737 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
40738 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
40739 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
40740 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40741 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40742 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40743 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40744 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
40745 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
40746 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
40747 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
40748 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
40749 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40750 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40751 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
40752 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
40753 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40754 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40755 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40756 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40757 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40758 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40759 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
40760 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, | |
40761 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, | |
40762 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
40763 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
40764 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
40765 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
40766 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
40767 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
40768 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
40769 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
40770 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
40771 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
40772 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
40773 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
40774 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40775 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
40776 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
40777 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
40778 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
40779 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
40780 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
40781 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
40782 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40783 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40784 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
40785 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40786 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
40787 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40788 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
40789 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
40790 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
40791 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
40792 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40793 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40794 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40795 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40796 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40797 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
40798 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
40799 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40800 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
40801 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
40802 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
40803 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40804 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40805 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
40806 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
40807 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40808 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40809 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40810 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40811 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
40812 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
40813 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
40814 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
40815 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40816 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40817 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40818 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
40819 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40820 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40821 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40822 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40823 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40824 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
40825 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
40826 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40827 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
40828 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40829 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
40830 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40831 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40832 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40833 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40834 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
40835 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
40836 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40837 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
40838 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40839 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40840 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40841 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40842 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
40843 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40844 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
40845 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40846 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
40847 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
40848 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
40849 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
40850 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
40851 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
40852 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
40853 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 40854 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
40855 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
40856 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
40857 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
40858 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40859 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
40860 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
40861 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
40862 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
40863 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
40864 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
40865 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
40866 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40867 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40868 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40869 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
40870 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
40871 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40872 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
40873 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
40874 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40875 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
40876 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40877 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
40878 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
40879 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
40880 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40881 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40882 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40883 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40884 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
40885 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
40886 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
40887 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
40888 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
40889 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40890 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40891 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40892 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40893 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40894 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40895 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
40896 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
40897 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
40898 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
40899 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
40900 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
40901 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
40902 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
40903 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
40904 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40905 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
40906 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
40907 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40908 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
40909 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40910 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
40911 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
40912 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40913 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40914 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
40915 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
40916 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
40917 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40918 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40919 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
40920 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
40921 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
40922 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
40923 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
40924 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
40925 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
40926 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
40927 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
40928 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
40929 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40930 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
40931 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40932 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
40933 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
40934 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
40935 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40936 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
40937 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40938 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
40939 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40940 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
40941 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40942 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
40943 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
40944 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40945 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40946 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40947 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40948 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40949 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40950 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
40951 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
40952 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40953 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
40954 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
40955 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40956 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
40957 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
40958 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
40959 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40960 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40961 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40962 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40963 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40964 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40965 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40966 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40967 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40968 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
40969 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
40970 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
40971 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
40972 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
40973 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40974 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
40975 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40976 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40977 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
40978 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40979 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40980 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
40981 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40982 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
40983 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
40984 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
40985 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40986 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
40987 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40988 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40989 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
40990 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
40991 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40992 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
40993 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40994 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40995 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
40996 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
40997 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
40998 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
40999 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41000 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41001 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41002 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41003 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
41004 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
41005 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41006 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41007 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41008 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41009 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
41010 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
41011 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
41012 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
41013 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
41014 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
41015 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
41016 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
41017 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
41018 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
41019 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
41020 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
41021 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
41022 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
41023 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
41024 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
41025 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
41026 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
41027 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
41028 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
41029 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
41030 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
41031 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
41032 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
41033 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
41034 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
41035 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
41036 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
41037 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
41038 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41039 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
41040 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
41041 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
41042 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
41043 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
41044 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
41045 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
41046 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
41047 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
41048 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
41049 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
41050 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
41051 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41052 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41053 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41054 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41055 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41056 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41057 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41058 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41059 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41060 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41061 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41062 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41063 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41064 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41065 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
41066 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
41067 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
41068 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
41069 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
41070 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
41071 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
41072 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
41073 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
41074 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
41075 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
41076 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
41077 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
41078 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
41079 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41080 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
41081 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
41082 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
41083 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
41084 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
41085 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
41086 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
41087 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
41088 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
41089 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41090 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
41091 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
41092 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
41093 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
41094 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
41095 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
41096 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
41097 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
41098 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
41099 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41100 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41101 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41102 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41103 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41104 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41105 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41106 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41107 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
41108 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
41109 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
41110 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
41111 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
41112 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
41113 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
41114 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
41115 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41116 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
41117 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
41118 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
41119 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
41120 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
41121 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
41122 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
41123 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
41124 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
41125 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41126 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
41127 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
41128 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41129 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
41130 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
41131 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
41132 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
41133 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
41134 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
41135 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
41136 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
41137 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
41138 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
41139 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
41140 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
41141 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
41142 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41143 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41144 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
41145 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
41146 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41147 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
41148 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
41149 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
41150 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
41151 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
41152 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
41153 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
41154 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
41155 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
41156 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41157 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
41158 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
41159 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
41160 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
41161 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
41162 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
41163 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
41164 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
41165 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
41166 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
41167 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
41168 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
41169 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
41170 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
41171 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
41172 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
41173 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
41174 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
41175 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41176 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
41177 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
41178 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
41179 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
41180 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
41181 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41182 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
41183 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
41184 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
41185 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41186 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
41187 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41188 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
41189 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
41190 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
41191 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
41192 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
41193 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
41194 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
41195 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
41196 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
41197 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
41198 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
41199 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
41200 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
41201 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
41202 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
41203 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
41204 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
41205 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
41206 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
41207 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
41208 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
41209 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
41210 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
41211 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41212 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
41213 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
41214 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
41215 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
41216 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
41217 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
41218 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
41219 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
41220 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41221 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
41222 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41223 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41224 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
41225 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
41226 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41227 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41228 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
41229 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
41230 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
41231 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
41232 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
41233 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
41234 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
41235 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
41236 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41237 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41238 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
41239 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
41240 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
41241 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
41242 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
41243 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
41244 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
41245 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
41246 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
41247 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
41248 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41249 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
41250 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
41251 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
41252 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
41253 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
41254 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
41255 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
41256 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
41257 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
41258 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
41259 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
41260 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
41261 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
41262 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
41263 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
41264 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
41265 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
41266 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, | |
41267 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
41268 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
41269 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
41270 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
41271 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
41272 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
41273 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
41274 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
41275 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, | |
41276 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, | |
41277 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
41278 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41279 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41280 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41281 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
41282 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
41283 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41284 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41285 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41286 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
41287 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
41288 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
41289 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
41290 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
41291 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
41292 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
41293 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
41294 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
41295 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
41296 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
41297 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
41298 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
41299 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
41300 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41301 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, |
41302 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
41303 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
41304 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
41305 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
41306 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
41307 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
41308 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
41309 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
41310 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41311 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41312 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS }, | |
41313 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS }, | |
41314 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS }, | |
41315 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS }, | |
41316 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS }, | |
41317 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS }, | |
41318 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS }, | |
41319 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, | |
41320 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
41321 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
41322 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
41323 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
41324 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
41325 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
41326 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41327 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41328 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41329 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41330 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
41331 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
41332 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
41333 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
41334 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, | |
41335 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
41336 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
41337 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
41338 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
41339 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
41340 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
41341 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
41342 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
41343 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
41344 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
41345 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
41346 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
41347 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
41348 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
41349 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
41350 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41351 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
41352 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41353 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41354 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
41355 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
41356 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41357 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
41358 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
41359 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
41360 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41361 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
41362 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
41363 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
41364 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
41365 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
41366 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
41367 | { (char *)"Window_SetSizeHints", _wrap_Window_SetSizeHints, METH_VARARGS }, | |
41368 | { (char *)"Window_SetVirtualSizeHints", _wrap_Window_SetVirtualSizeHints, METH_VARARGS }, | |
41369 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, | |
41370 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
41371 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
41372 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
41373 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
41374 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41375 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
41376 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
41377 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
41378 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41379 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
41380 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
41381 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
41382 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41383 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
41384 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41385 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41386 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
41387 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
41388 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
41389 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
41390 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
41391 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
41392 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
41393 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41394 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41395 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
41396 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
41397 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
41398 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
41399 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
41400 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
41401 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
41402 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
41403 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
41404 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
41405 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
41406 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
41407 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
41408 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
41409 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
41410 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
41411 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
41412 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41413 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41414 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41415 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41416 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41417 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
41418 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
41419 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS }, | |
41420 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
41421 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
41422 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
41423 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
41424 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
41425 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
41426 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
41427 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
41428 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
41429 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
41430 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
41431 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
41432 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
41433 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
41434 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
41435 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
41436 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
41437 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
41438 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
41439 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
41440 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
41441 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
41442 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
41443 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
41444 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
41445 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
41446 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
41447 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
41448 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
41449 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
41450 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41451 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41452 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41453 | { (char *)"Window_SetDefaultBackgroundColour", (PyCFunction) _wrap_Window_SetDefaultBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41454 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41455 | { (char *)"Window_SetDefaultForegroundColour", (PyCFunction) _wrap_Window_SetDefaultForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41456 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41457 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41458 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
41459 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
41460 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
41461 | { (char *)"Window_SetDefaultFont", (PyCFunction) _wrap_Window_SetDefaultFont, METH_VARARGS | METH_KEYWORDS }, | |
41462 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
41463 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
41464 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
41465 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
41466 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
41467 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
41468 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
41469 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
41470 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
41471 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
41472 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
41473 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
41474 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
41475 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS }, | |
41476 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, | |
41477 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
41478 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
41479 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
41480 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS }, | |
41481 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
41482 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
41483 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
41484 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
41485 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
41486 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
41487 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
41488 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
41489 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
41490 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
41491 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
41492 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
41493 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
41494 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
41495 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
41496 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
41497 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
41498 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
41499 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
41500 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
41501 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
41502 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
41503 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41504 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41505 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
41506 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
41507 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
41508 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41509 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
41510 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41511 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
41512 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
41513 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41514 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
41515 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
41516 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
41517 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
41518 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
41519 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
41520 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
41521 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
41522 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
41523 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
41524 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
41525 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41526 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41527 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
41528 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
41529 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
41530 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
41531 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41532 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
41533 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
41534 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
41535 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41536 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41537 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41538 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
41539 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
41540 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
41541 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
41542 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41543 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41544 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41545 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41546 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
41547 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
41548 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
41549 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41550 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41551 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41552 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
41553 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41554 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
41555 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
41556 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
41557 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
41558 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
41559 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
41560 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
41561 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
41562 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
41563 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
41564 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
41565 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41566 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41567 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
41568 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41569 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41570 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41571 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41572 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41573 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41574 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41575 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41576 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41577 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
41578 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
41579 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
41580 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
41581 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
41582 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
41583 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
41584 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
41585 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
41586 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
41587 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
41588 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
41589 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
41590 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41591 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
41592 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41593 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
41594 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41595 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
41596 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
41597 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
41598 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
41599 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
41600 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
41601 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
41602 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41603 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
41604 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41605 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41606 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41607 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41608 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41609 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41610 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
41611 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
41612 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
41613 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
41614 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
41615 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
41616 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41617 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41618 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
41619 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
41620 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41621 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
41622 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41623 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
41624 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
41625 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
41626 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS }, | |
41627 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
41628 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
41629 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41630 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41631 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41632 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41633 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41634 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
41635 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41636 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
41637 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
41638 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
41639 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
41640 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
41641 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
41642 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
41643 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
41644 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
41645 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41646 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41647 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
41648 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41649 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41650 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
41651 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
41652 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
41653 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
41654 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
41655 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
41656 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41657 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41658 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
41659 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
41660 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
41661 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
41662 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
41663 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41664 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41665 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41666 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
41667 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
41668 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
41669 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41670 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
41671 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
41672 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
41673 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
41674 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
41675 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
41676 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
41677 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
41678 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
41679 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
41680 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
41681 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41682 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41683 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
41684 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
41685 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
41686 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41687 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
41688 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
41689 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41690 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
41691 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41692 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41693 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41694 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41695 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
41696 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
41697 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
41698 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41699 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41700 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
41701 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
41702 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41703 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41704 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41705 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41706 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41707 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41708 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41709 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41710 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41711 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41712 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41713 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41714 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41715 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
41716 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41717 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41718 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
41719 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
41720 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
41721 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41722 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41723 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
41724 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41725 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41726 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41727 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
41728 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
41729 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41730 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41731 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41732 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41733 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41734 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41735 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41736 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
41737 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
41738 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
41739 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41740 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41741 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
41742 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41743 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
41744 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
41745 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
41746 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41747 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
41748 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
41749 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
41750 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41751 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
41752 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41753 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41754 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41755 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41756 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41757 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
41758 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41759 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
41760 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41761 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41762 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
41763 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
41764 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41765 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41766 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
41767 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
41768 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41769 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41770 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
41771 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
41772 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41773 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41774 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
41775 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
41776 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41777 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41778 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
41779 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
41780 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41781 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41782 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41783 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41784 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
41785 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
41786 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, | |
41787 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
41788 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, | |
41789 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
41790 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
41791 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
41792 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
41793 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
41794 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41795 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
41796 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, | |
41797 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
41798 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, | |
41799 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
41800 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41801 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41802 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41803 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41804 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41805 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
41806 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, | |
41807 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
41808 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, | |
41809 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
41810 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
41811 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
41812 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41813 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
41814 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
41815 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
41816 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
41817 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
41818 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
41819 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41820 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41821 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
41822 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
41823 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41824 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41825 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41826 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41827 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
41828 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
41829 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
41830 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
41831 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
41832 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
41833 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
41834 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, | |
41835 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41836 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41837 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
41838 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
41839 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
41840 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
41841 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
41842 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
41843 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
41844 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
41845 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
41846 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
41847 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
41848 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
41849 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
41850 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
41851 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41852 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
41853 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41854 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41855 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
41856 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
41857 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
41858 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
41859 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
41860 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41861 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41862 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
41863 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
41864 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41865 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
41866 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
41867 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
41868 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
41869 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
41870 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
41871 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
41872 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
41873 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
41874 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41875 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41876 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
41877 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
41878 | { NULL, NULL } | |
41879 | }; | |
41880 | ||
41881 | ||
41882 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
41883 | ||
41884 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
41885 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
41886 | } | |
41887 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
41888 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
41889 | } | |
41890 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
41891 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41892 | } | |
41893 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
41894 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41895 | } | |
41896 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
41897 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
41898 | } | |
41899 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
41900 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41901 | } | |
41902 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
41903 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
41904 | } | |
41905 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
41906 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41907 | } | |
41908 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
41909 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41910 | } | |
41911 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
41912 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
41913 | } | |
41914 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
41915 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
41916 | } | |
41917 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
41918 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
41919 | } | |
41920 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
41921 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
41922 | } | |
41923 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
41924 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
41925 | } | |
41926 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41927 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41928 | } | |
41929 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41930 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41931 | } | |
41932 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41933 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41934 | } | |
41935 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41936 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41937 | } | |
41938 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41939 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41940 | } | |
41941 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41942 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41943 | } | |
41944 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41945 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41946 | } | |
41947 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41948 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41949 | } | |
41950 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
41951 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
41952 | } | |
41953 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
41954 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
41955 | } | |
41956 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
41957 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
41958 | } | |
41959 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
41960 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
41961 | } | |
41962 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
41963 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
41964 | } | |
41965 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
41966 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
41967 | } | |
41968 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
41969 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41970 | } | |
41971 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
41972 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41973 | } | |
41974 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
41975 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41976 | } | |
41977 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
41978 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41979 | } | |
41980 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
41981 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41982 | } | |
41983 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
41984 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
41985 | } | |
41986 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
41987 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
41988 | } | |
41989 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
41990 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41991 | } | |
41992 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
41993 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
41994 | } | |
41995 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
41996 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
41997 | } | |
41998 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
41999 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42000 | } | |
42001 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
42002 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42003 | } | |
42004 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
42005 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42006 | } | |
42007 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
42008 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
42009 | } | |
42010 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
42011 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
42012 | } | |
42013 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
42014 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42015 | } | |
42016 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
42017 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42018 | } | |
42019 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
42020 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42021 | } | |
42022 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
42023 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
42024 | } | |
42025 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
42026 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
42027 | } | |
42028 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
42029 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
42030 | } | |
42031 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
42032 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
42033 | } | |
42034 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
42035 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42036 | } | |
42037 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
42038 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
42039 | } | |
42040 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
42041 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
42042 | } | |
42043 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
42044 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
42045 | } | |
42046 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
42047 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
42048 | } | |
42049 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
42050 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
42051 | } | |
42052 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
42053 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
42054 | } | |
42055 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
42056 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
42057 | } | |
42058 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
42059 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
42060 | } | |
42061 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
42062 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
42063 | } | |
42064 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
42065 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
42066 | } | |
42067 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
42068 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42069 | } | |
42070 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
42071 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
42072 | } | |
42073 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
42074 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
42075 | } | |
42076 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
42077 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42078 | } | |
42079 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
42080 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42081 | } | |
42082 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
42083 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
42084 | } | |
42085 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
42086 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
42087 | } | |
42088 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
42089 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
42090 | } | |
42091 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
42092 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
42093 | } | |
42094 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
42095 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
42096 | } | |
42097 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
42098 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
42099 | } | |
42100 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
42101 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
42102 | } | |
42103 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
42104 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
42105 | } | |
42106 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42107 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
42108 | } | |
42109 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42110 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
42111 | } | |
42112 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42113 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
42114 | } | |
42115 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
42116 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
42117 | } | |
42118 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
42119 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
42120 | } | |
42121 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
42122 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42123 | } | |
42124 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
42125 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
42126 | } | |
42127 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
42128 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
42129 | } | |
42130 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
42131 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
42132 | } | |
42133 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
42134 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
42135 | } | |
42136 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
42137 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
42138 | } | |
42139 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
42140 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
42141 | } | |
42142 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
42143 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
42144 | } | |
42145 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
42146 | return (void *)((wxObject *) ((wxSizer *) x)); | |
42147 | } | |
42148 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
42149 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
42150 | } | |
42151 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
42152 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42153 | } | |
42154 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
42155 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
42156 | } | |
42157 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
42158 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
42159 | } | |
42160 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
42161 | return (void *)((wxObject *) ((wxImage *) x)); | |
42162 | } | |
42163 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
42164 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
42165 | } | |
42166 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
42167 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42168 | } | |
42169 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
42170 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
42171 | } | |
42172 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
42173 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
42174 | } | |
42175 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
42176 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
42177 | } | |
42178 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
42179 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
42180 | } | |
42181 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
42182 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
42183 | } | |
42184 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
42185 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42186 | } | |
42187 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
42188 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
42189 | } | |
42190 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
42191 | return (void *)((wxObject *) ((wxEvent *) x)); | |
42192 | } | |
42193 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
42194 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
42195 | } | |
42196 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
42197 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
42198 | } | |
42199 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
42200 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
42201 | } | |
42202 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
42203 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
42204 | } | |
42205 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
42206 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
42207 | } | |
42208 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
42209 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42210 | } | |
42211 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
42212 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42213 | } | |
42214 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
42215 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
42216 | } | |
42217 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
42218 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42219 | } | |
42220 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
42221 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
42222 | } | |
42223 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
42224 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
42225 | } | |
42226 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
42227 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
42228 | } | |
42229 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
42230 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
42231 | } | |
42232 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
42233 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
42234 | } | |
42235 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
42236 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42237 | } | |
42238 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
42239 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42240 | } | |
42241 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
42242 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
42243 | } | |
42244 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
42245 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
42246 | } | |
42247 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
42248 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
42249 | } | |
42250 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
42251 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
42252 | } | |
42253 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
42254 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
42255 | } | |
42256 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
42257 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
42258 | } | |
42259 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
42260 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
42261 | } | |
42262 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
42263 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
42264 | } | |
42265 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
42266 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42267 | } | |
42268 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
42269 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42270 | } | |
42271 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
42272 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42273 | } | |
42274 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
42275 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42276 | } | |
42277 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
42278 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42279 | } | |
42280 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
42281 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
42282 | } | |
42283 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
42284 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
42285 | } | |
42286 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
42287 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42288 | } | |
42289 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
42290 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
42291 | } | |
42292 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
42293 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
42294 | } | |
42295 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
42296 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
42297 | } | |
42298 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
42299 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
42300 | } | |
42301 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
42302 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
42303 | } | |
42304 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
42305 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
42306 | } | |
42307 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
42308 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
42309 | } | |
42310 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
42311 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42312 | } | |
42313 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
42314 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
42315 | } | |
42316 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
42317 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42318 | } | |
42319 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
42320 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42321 | } | |
42322 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
42323 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42324 | } | |
42325 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
42326 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
42327 | } | |
42328 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
42329 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
42330 | } | |
42331 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
42332 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
42333 | } | |
42334 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
42335 | return (void *)((wxWindow *) ((wxControl *) x)); | |
42336 | } | |
42337 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
42338 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
42339 | } | |
42340 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
42341 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
42342 | } | |
42343 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
42344 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42345 | } | |
42346 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
42347 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
42348 | } | |
42349 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
42350 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42351 | } | |
42352 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
42353 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42354 | } | |
42355 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
42356 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42357 | } | |
42358 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
42359 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42360 | } | |
42361 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
42362 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42363 | } | |
42364 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
42365 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42366 | } | |
42367 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
42368 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
42369 | } | |
42370 | 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}}; | |
42371 | 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}}; | |
42372 | 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}}; | |
42373 | 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}}; | |
42374 | 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}}; | |
42375 | 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}}; | |
42376 | 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}}; | |
42377 | 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}}; | |
42378 | 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}}; | |
42379 | 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}}; | |
42380 | 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}}; | |
42381 | 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}}; | |
42382 | 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}}; | |
42383 | 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}}; | |
42384 | 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}}; | |
42385 | 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}}; | |
42386 | 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}}; | |
42387 | 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}}; | |
42388 | 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}}; | |
42389 | 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}}; | |
42390 | 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}}; | |
42391 | 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}}; | |
42392 | 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}}; | |
42393 | 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}}; | |
42394 | 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}}; | |
42395 | 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}}; | |
42396 | 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}}; | |
42397 | 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}}; | |
42398 | 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}}; | |
42399 | 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}}; | |
42400 | 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}}; | |
42401 | 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}}; | |
42402 | 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}}; | |
42403 | 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}}; | |
42404 | 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}}; | |
42405 | 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}}; | |
42406 | 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}}; | |
42407 | 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}}; | |
42408 | 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}}; | |
42409 | 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}}; | |
42410 | 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}}; | |
42411 | 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}}; | |
42412 | 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}}; | |
42413 | 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}}; | |
42414 | 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}}; | |
42415 | 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}}; | |
42416 | 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}}; | |
42417 | 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}}; | |
42418 | 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}}; | |
42419 | 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}}; | |
42420 | 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}}; | |
42421 | 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}}; | |
42422 | 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}}; | |
42423 | 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}}; | |
42424 | 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}}; | |
42425 | 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}}; | |
42426 | 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}}; | |
42427 | 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}}; | |
42428 | 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}}; | |
42429 | 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}}; | |
42430 | 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}}; | |
42431 | 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}}; | |
42432 | 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}}; | |
42433 | 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}}; | |
42434 | 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}}; | |
42435 | 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}}; | |
42436 | 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}}; | |
42437 | 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}}; | |
42438 | 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}}; | |
42439 | 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}}; | |
42440 | 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}}; | |
42441 | 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}}; | |
42442 | 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}}; | |
42443 | 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}}; | |
42444 | 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}}; | |
42445 | 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}}; | |
42446 | 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}}; | |
42447 | 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}}; | |
42448 | 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}}; | |
42449 | 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}}; | |
42450 | 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}}; | |
42451 | 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}}; | |
42452 | 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}}; | |
42453 | 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}}; | |
42454 | 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}}; | |
42455 | 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}}; | |
42456 | 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}}; | |
42457 | 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}}; | |
42458 | 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}}; | |
42459 | 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}}; | |
42460 | 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}}; | |
42461 | 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}}; | |
42462 | 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}}; | |
42463 | 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}}; | |
42464 | 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}}; | |
42465 | 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}}; | |
42466 | 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}}; | |
42467 | 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}}; | |
42468 | 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}}; | |
42469 | 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}}; | |
42470 | 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}}; | |
42471 | 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}}; | |
42472 | 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}}; | |
42473 | 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}}; | |
42474 | 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}}; | |
42475 | 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}}; | |
42476 | 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}}; | |
42477 | 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}}; | |
42478 | 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}}; | |
42479 | 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}}; | |
42480 | 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}}; | |
42481 | 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}}; | |
42482 | 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}}; | |
42483 | 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}}; | |
42484 | 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}}; | |
42485 | ||
42486 | static swig_type_info *swig_types_initial[] = { | |
42487 | _swigt__p_wxLayoutConstraints, | |
42488 | _swigt__p_wxRealPoint, | |
42489 | _swigt__p_wxSizerItem, | |
42490 | _swigt__p_wxGBSizerItem, | |
42491 | _swigt__p_wxScrollEvent, | |
42492 | _swigt__p_wxIndividualLayoutConstraint, | |
42493 | _swigt__p_wxSizer, | |
42494 | _swigt__p_wxBoxSizer, | |
42495 | _swigt__p_wxStaticBoxSizer, | |
42496 | _swigt__p_wxGridBagSizer, | |
42497 | _swigt__p_wxAcceleratorEntry, | |
42498 | _swigt__p_wxUpdateUIEvent, | |
42499 | _swigt__p_wxMenu, | |
42500 | _swigt__p_wxEvent, | |
42501 | _swigt__p_wxGridSizer, | |
42502 | _swigt__p_wxFlexGridSizer, | |
42503 | _swigt__p_wxInitDialogEvent, | |
42504 | _swigt__p_wxItemContainer, | |
42505 | _swigt__p_wxNcPaintEvent, | |
42506 | _swigt__p_wxPaintEvent, | |
42507 | _swigt__p_wxSysColourChangedEvent, | |
42508 | _swigt__p_wxMouseCaptureChangedEvent, | |
42509 | _swigt__p_wxDisplayChangedEvent, | |
42510 | _swigt__p_wxPaletteChangedEvent, | |
42511 | _swigt__p_wxControl, | |
42512 | _swigt__p_wxFont, | |
42513 | _swigt__p_wxMenuBarBase, | |
42514 | _swigt__p_wxSetCursorEvent, | |
42515 | _swigt__p_wxFSFile, | |
42516 | _swigt__p_wxCaret, | |
42517 | _swigt__p_wxRegion, | |
42518 | _swigt__p_wxPoint2D, | |
42519 | _swigt__p_int, | |
42520 | _swigt__p_wxSize, | |
42521 | _swigt__p_wxDC, | |
42522 | _swigt__p_wxPySizer, | |
42523 | _swigt__p_wxVisualAttributes, | |
42524 | _swigt__p_wxNotifyEvent, | |
42525 | _swigt__p_wxPyEvent, | |
42526 | _swigt__p_wxPropagationDisabler, | |
42527 | _swigt__p_wxAppTraits, | |
42528 | _swigt__p_wxArrayString, | |
42529 | _swigt__p_wxShowEvent, | |
42530 | _swigt__p_wxToolTip, | |
42531 | _swigt__p_wxMaximizeEvent, | |
42532 | _swigt__p_wxIconizeEvent, | |
42533 | _swigt__p_wxActivateEvent, | |
42534 | _swigt__p_wxMoveEvent, | |
42535 | _swigt__p_wxSizeEvent, | |
42536 | _swigt__p_wxQueryNewPaletteEvent, | |
42537 | _swigt__p_wxWindowCreateEvent, | |
42538 | _swigt__p_wxIdleEvent, | |
42539 | _swigt__p_wxMenuItem, | |
42540 | _swigt__p_wxStaticBox, | |
42541 | _swigt__p_long, | |
42542 | _swigt__p_wxTIFFHandler, | |
42543 | _swigt__p_wxXPMHandler, | |
42544 | _swigt__p_wxPNMHandler, | |
42545 | _swigt__p_wxJPEGHandler, | |
42546 | _swigt__p_wxPCXHandler, | |
42547 | _swigt__p_wxGIFHandler, | |
42548 | _swigt__p_wxPNGHandler, | |
42549 | _swigt__p_wxANIHandler, | |
42550 | _swigt__p_wxMemoryFSHandler, | |
42551 | _swigt__p_wxEvtHandler, | |
42552 | _swigt__p_wxCURHandler, | |
42553 | _swigt__p_wxICOHandler, | |
42554 | _swigt__p_wxBMPHandler, | |
42555 | _swigt__p_wxImageHandler, | |
42556 | _swigt__p_wxFileSystemHandler, | |
42557 | _swigt__p_wxPyFileSystemHandler, | |
42558 | _swigt__p_wxInternetFSHandler, | |
42559 | _swigt__p_wxZipFSHandler, | |
42560 | _swigt__p_wxRect, | |
42561 | _swigt__p_wxGBSpan, | |
42562 | _swigt__p_wxPropagateOnce, | |
42563 | _swigt__p_wxAcceleratorTable, | |
42564 | _swigt__p_char, | |
42565 | _swigt__p_wxGBPosition, | |
42566 | _swigt__p_wxImage, | |
42567 | _swigt__p_wxFrame, | |
42568 | _swigt__p_wxScrollWinEvent, | |
42569 | _swigt__p_wxImageHistogram, | |
42570 | _swigt__p_byte, | |
42571 | _swigt__p_wxPoint, | |
42572 | _swigt__p_wxCursor, | |
42573 | _swigt__p_wxObject, | |
42574 | _swigt__p_wxPyInputStream, | |
42575 | _swigt__p_wxOutputStream, | |
42576 | _swigt__p_wxInputStream, | |
42577 | _swigt__p_wxDateTime, | |
42578 | _swigt__p_wxKeyEvent, | |
42579 | _swigt__p_wxNavigationKeyEvent, | |
42580 | _swigt__p_wxWindowDestroyEvent, | |
42581 | _swigt__p_wxWindow, | |
42582 | _swigt__p_wxMenuBar, | |
42583 | _swigt__p_wxFileSystem, | |
42584 | _swigt__p_wxBitmap, | |
42585 | _swigt__p_wxMenuEvent, | |
42586 | _swigt__p_wxContextMenuEvent, | |
42587 | _swigt__p_unsigned_char, | |
42588 | _swigt__p_wxCloseEvent, | |
42589 | _swigt__p_wxEraseEvent, | |
42590 | _swigt__p_wxMouseEvent, | |
42591 | _swigt__p_wxPyApp, | |
42592 | _swigt__p_wxCommandEvent, | |
42593 | _swigt__p_wxPyCommandEvent, | |
42594 | _swigt__p_wxPyDropTarget, | |
42595 | _swigt__p_wxChildFocusEvent, | |
42596 | _swigt__p_wxFocusEvent, | |
42597 | _swigt__p_wxDropFilesEvent, | |
42598 | _swigt__p_wxControlWithItems, | |
42599 | _swigt__p_wxColour, | |
42600 | _swigt__p_wxValidator, | |
42601 | _swigt__p_wxPyValidator, | |
42602 | 0 | |
42603 | }; | |
42604 | ||
42605 | ||
42606 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
42607 | ||
42608 | static swig_const_info swig_const_table[] = { | |
42609 | {0}}; | |
42610 | ||
42611 | #ifdef __cplusplus | |
42612 | } | |
42613 | #endif | |
42614 | ||
42615 | #ifdef __cplusplus | |
42616 | extern "C" | |
42617 | #endif | |
42618 | SWIGEXPORT(void) SWIG_init(void) { | |
42619 | static PyObject *SWIG_globals = 0; | |
42620 | static int typeinit = 0; | |
42621 | PyObject *m, *d; | |
42622 | int i; | |
42623 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
42624 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
42625 | d = PyModule_GetDict(m); | |
42626 | ||
42627 | if (!typeinit) { | |
42628 | for (i = 0; swig_types_initial[i]; i++) { | |
42629 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
42630 | } | |
42631 | typeinit = 1; | |
42632 | } | |
42633 | SWIG_InstallConstants(d,swig_const_table); | |
42634 | ||
42635 | ||
42636 | #ifndef wxPyUSE_EXPORT | |
42637 | // Make our API structure a CObject so other modules can import it | |
42638 | // from this module. | |
42639 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
42640 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
42641 | Py_XDECREF(cobj); | |
42642 | #endif | |
42643 | ||
42644 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); | |
42645 | PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); | |
42646 | PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); | |
42647 | PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); | |
42648 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); | |
42649 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); | |
42650 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); | |
42651 | PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); | |
42652 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); | |
42653 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); | |
42654 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); | |
42655 | PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); | |
42656 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); | |
42657 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); | |
42658 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); | |
42659 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); | |
42660 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); | |
42661 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); | |
42662 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); | |
42663 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
42664 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); | |
42665 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); | |
42666 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); | |
42667 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); | |
42668 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); | |
42669 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB)); | |
42670 | PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); | |
42671 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); | |
42672 | PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); | |
42673 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); | |
42674 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); | |
42675 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); | |
42676 | PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); | |
42677 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); | |
42678 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); | |
42679 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); | |
42680 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); | |
42681 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); | |
42682 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); | |
42683 | PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); | |
42684 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); | |
42685 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); | |
42686 | PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); | |
42687 | PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); | |
42688 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); | |
42689 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); | |
42690 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); | |
42691 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); | |
42692 | PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); | |
42693 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); | |
42694 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); | |
42695 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); | |
42696 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); | |
42697 | PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); | |
42698 | PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); | |
42699 | PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); | |
42700 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); | |
42701 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); | |
42702 | PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); | |
42703 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); | |
42704 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); | |
42705 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); | |
42706 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); | |
42707 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); | |
42708 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); | |
42709 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); | |
42710 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); | |
42711 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); | |
42712 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); | |
42713 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); | |
42714 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); | |
42715 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); | |
42716 | PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); | |
42717 | PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); | |
42718 | PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); | |
42719 | PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); | |
42720 | PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); | |
42721 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); | |
42722 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); | |
42723 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); | |
42724 | PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); | |
42725 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); | |
42726 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); | |
42727 | PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); | |
42728 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); | |
42729 | PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); | |
42730 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); | |
42731 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); | |
42732 | PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); | |
42733 | PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); | |
42734 | PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); | |
42735 | PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); | |
42736 | PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); | |
42737 | PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); | |
42738 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
42739 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
42740 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); | |
42741 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); | |
42742 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
42743 | PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); | |
42744 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); | |
42745 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
42746 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
42747 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); | |
42748 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
42749 | PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); | |
42750 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); | |
42751 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); | |
42752 | PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); | |
42753 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); | |
42754 | PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); | |
42755 | PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); | |
42756 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); | |
42757 | PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); | |
42758 | PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); | |
42759 | PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); | |
42760 | PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); | |
42761 | PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); | |
42762 | PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); | |
42763 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); | |
42764 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); | |
42765 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); | |
42766 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); | |
42767 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); | |
42768 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); | |
42769 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); | |
42770 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); | |
42771 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); | |
42772 | PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); | |
42773 | PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); | |
42774 | PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); | |
42775 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); | |
42776 | PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); | |
42777 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); | |
42778 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); | |
42779 | PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); | |
42780 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); | |
42781 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); | |
42782 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); | |
42783 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); | |
42784 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); | |
42785 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); | |
42786 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); | |
42787 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); | |
42788 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); | |
42789 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); | |
42790 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); | |
42791 | PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); | |
42792 | PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); | |
42793 | PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); | |
42794 | PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); | |
42795 | PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); | |
42796 | PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); | |
42797 | PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); | |
42798 | PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); | |
42799 | PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); | |
42800 | PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); | |
42801 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); | |
42802 | PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); | |
42803 | PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); | |
42804 | PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); | |
42805 | PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); | |
42806 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); | |
42807 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); | |
42808 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); | |
42809 | PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); | |
42810 | PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); | |
42811 | PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); | |
42812 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); | |
42813 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); | |
42814 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); | |
42815 | PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); | |
42816 | PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); | |
42817 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); | |
42818 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); | |
42819 | PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); | |
42820 | PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); | |
42821 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); | |
42822 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); | |
42823 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); | |
42824 | PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); | |
42825 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); | |
42826 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); | |
42827 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); | |
42828 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); | |
42829 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); | |
42830 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); | |
42831 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); | |
42832 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); | |
42833 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); | |
42834 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); | |
42835 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); | |
42836 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
42837 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); | |
42838 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); | |
42839 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); | |
42840 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
42841 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
42842 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); | |
42843 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); | |
42844 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
42845 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
42846 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); | |
42847 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
42848 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
42849 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
42850 | PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); | |
42851 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); | |
42852 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); | |
42853 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); | |
42854 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); | |
42855 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); | |
42856 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); | |
42857 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); | |
42858 | PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); | |
42859 | PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); | |
42860 | PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); | |
42861 | PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); | |
42862 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); | |
42863 | PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); | |
42864 | PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); | |
42865 | PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); | |
42866 | PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); | |
42867 | PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); | |
42868 | PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); | |
42869 | PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); | |
42870 | PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); | |
42871 | PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); | |
42872 | PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); | |
42873 | PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); | |
42874 | PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); | |
42875 | PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); | |
42876 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); | |
42877 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
42878 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
42879 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); | |
42880 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); | |
42881 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); | |
42882 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); | |
42883 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
42884 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
42885 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); | |
42886 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); | |
42887 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); | |
42888 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); | |
42889 | PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); | |
42890 | PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); | |
42891 | PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); | |
42892 | PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); | |
42893 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE)); | |
42894 | PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); | |
42895 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); | |
42896 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); | |
42897 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); | |
42898 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); | |
42899 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); | |
42900 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); | |
42901 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); | |
42902 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); | |
42903 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); | |
42904 | PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); | |
42905 | PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); | |
42906 | PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); | |
42907 | PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); | |
42908 | PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); | |
42909 | PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); | |
42910 | PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); | |
42911 | PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); | |
42912 | PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); | |
42913 | PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); | |
42914 | PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); | |
42915 | PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); | |
42916 | PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); | |
42917 | PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); | |
42918 | PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); | |
42919 | PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); | |
42920 | PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); | |
42921 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); | |
42922 | PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); | |
42923 | PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); | |
42924 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); | |
42925 | PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); | |
42926 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); | |
42927 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); | |
42928 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); | |
42929 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); | |
42930 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); | |
42931 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); | |
42932 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); | |
42933 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); | |
42934 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); | |
42935 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); | |
42936 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); | |
42937 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); | |
42938 | PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); | |
42939 | PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); | |
42940 | PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); | |
42941 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); | |
42942 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); | |
42943 | PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); | |
42944 | PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); | |
42945 | PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); | |
42946 | PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); | |
42947 | PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); | |
42948 | PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); | |
42949 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); | |
42950 | PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); | |
42951 | PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); | |
42952 | PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); | |
42953 | PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); | |
42954 | PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); | |
42955 | PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); | |
42956 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); | |
42957 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); | |
42958 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); | |
42959 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); | |
42960 | PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); | |
42961 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); | |
42962 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); | |
42963 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); | |
42964 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); | |
42965 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); | |
42966 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); | |
42967 | PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); | |
42968 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); | |
42969 | PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); | |
42970 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); | |
42971 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); | |
42972 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); | |
42973 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); | |
42974 | PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); | |
42975 | PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); | |
42976 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); | |
42977 | PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); | |
42978 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); | |
42979 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); | |
42980 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); | |
42981 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); | |
42982 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); | |
42983 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); | |
42984 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); | |
42985 | PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); | |
42986 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); | |
42987 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); | |
42988 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); | |
42989 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); | |
42990 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); | |
42991 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); | |
42992 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); | |
42993 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); | |
42994 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); | |
42995 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); | |
42996 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); | |
42997 | PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); | |
42998 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); | |
42999 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); | |
43000 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); | |
43001 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); | |
43002 | PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); | |
43003 | PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); | |
43004 | PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); | |
43005 | PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); | |
43006 | PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); | |
43007 | PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); | |
43008 | PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); | |
43009 | PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); | |
43010 | PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); | |
43011 | PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); | |
43012 | PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); | |
43013 | PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); | |
43014 | PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); | |
43015 | PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); | |
43016 | PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); | |
43017 | PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); | |
43018 | PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); | |
43019 | PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); | |
43020 | PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); | |
43021 | PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); | |
43022 | PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); | |
43023 | PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); | |
43024 | PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); | |
43025 | PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); | |
43026 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); | |
43027 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); | |
43028 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); | |
43029 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); | |
43030 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); | |
43031 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); | |
43032 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); | |
43033 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); | |
43034 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); | |
43035 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); | |
43036 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); | |
43037 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); | |
43038 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); | |
43039 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); | |
43040 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); | |
43041 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); | |
43042 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); | |
43043 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
43044 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); | |
43045 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
43046 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); | |
43047 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); | |
43048 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); | |
43049 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); | |
43050 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); | |
43051 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
43052 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); | |
43053 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
43054 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
43055 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
43056 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
43057 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); | |
43058 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); | |
43059 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); | |
43060 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); | |
43061 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); | |
43062 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); | |
43063 | PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); | |
43064 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); | |
43065 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); | |
43066 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); | |
43067 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); | |
43068 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); | |
43069 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); | |
43070 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); | |
43071 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); | |
43072 | PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); | |
43073 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); | |
43074 | PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); | |
43075 | PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); | |
43076 | PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); | |
43077 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); | |
43078 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); | |
43079 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); | |
43080 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); | |
43081 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); | |
43082 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); | |
43083 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); | |
43084 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); | |
43085 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); | |
43086 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); | |
43087 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); | |
43088 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); | |
43089 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); | |
43090 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); | |
43091 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); | |
43092 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); | |
43093 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); | |
43094 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); | |
43095 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); | |
43096 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); | |
43097 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); | |
43098 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
43099 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); | |
43100 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
43101 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
43102 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); | |
43103 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
43104 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); | |
43105 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); | |
43106 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); | |
43107 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); | |
43108 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
43109 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
43110 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
43111 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); | |
43112 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
43113 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
43114 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
43115 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); | |
43116 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); | |
43117 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); | |
43118 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); | |
43119 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
43120 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
43121 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); | |
43122 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); | |
43123 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); | |
43124 | PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); | |
43125 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
43126 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
43127 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); | |
43128 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
43129 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); | |
43130 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); | |
43131 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); | |
43132 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); | |
43133 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); | |
43134 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); | |
43135 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); | |
43136 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
43137 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
43138 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
43139 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
43140 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
43141 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
43142 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
43143 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
43144 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
43145 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
43146 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); | |
43147 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
43148 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
43149 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); | |
43150 | PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); | |
43151 | PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); | |
43152 | PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); | |
43153 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); | |
43154 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); | |
43155 | PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); | |
43156 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); | |
43157 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); | |
43158 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
43159 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
43160 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
43161 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); | |
43162 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); | |
43163 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); | |
43164 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); | |
43165 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); | |
43166 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
43167 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); | |
43168 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
43169 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); | |
43170 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); | |
43171 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); | |
43172 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
43173 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); | |
43174 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); | |
43175 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); | |
43176 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); | |
43177 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); | |
43178 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); | |
43179 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
43180 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); | |
43181 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); | |
43182 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); | |
43183 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
43184 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); | |
43185 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); | |
43186 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); | |
43187 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); | |
43188 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); | |
43189 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
43190 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); | |
43191 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
43192 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); | |
43193 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
43194 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); | |
43195 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); | |
43196 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
43197 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
43198 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
43199 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); | |
43200 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); | |
43201 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); | |
43202 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); | |
43203 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); | |
43204 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); | |
43205 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); | |
43206 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); | |
43207 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); | |
43208 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); | |
43209 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); | |
43210 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); | |
43211 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); | |
43212 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); | |
43213 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
43214 | PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); | |
43215 | PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); | |
43216 | PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); | |
43217 | ||
43218 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
43219 | ||
43220 | ||
43221 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
43222 | ||
43223 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
43224 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
43225 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
43226 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
43227 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
43228 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
43229 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); | |
43230 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
43231 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); | |
43232 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); | |
43233 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); | |
43234 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); | |
43235 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); | |
43236 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); | |
43237 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); | |
43238 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); | |
43239 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); | |
43240 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
43241 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
43242 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); | |
43243 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
43244 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
43245 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
43246 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
43247 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
43248 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
43249 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
43250 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
43251 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
43252 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
43253 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
43254 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
43255 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
43256 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
43257 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
43258 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
43259 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
43260 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
43261 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
43262 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
43263 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
43264 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
43265 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
43266 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
43267 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
43268 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
43269 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
43270 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
43271 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
43272 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
43273 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
43274 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
43275 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
43276 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
43277 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
43278 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
43279 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
43280 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
43281 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
43282 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
43283 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
43284 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
43285 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
43286 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
43287 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
43288 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
43289 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
43290 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
43291 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
43292 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
43293 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
43294 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
43295 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
43296 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
43297 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
43298 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
43299 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
43300 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
43301 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
43302 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
43303 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
43304 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
43305 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
43306 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
43307 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
43308 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
43309 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
43310 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
43311 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
43312 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
43313 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
43314 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
43315 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
43316 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
43317 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
43318 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
43319 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
43320 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
43321 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
43322 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
43323 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
43324 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
43325 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
43326 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
43327 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
43328 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
43329 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
43330 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
43331 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
43332 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
43333 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
43334 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
43335 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
43336 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
43337 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
43338 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
43339 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
43340 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
43341 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
43342 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
43343 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
43344 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
43345 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
43346 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
43347 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
43348 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
43349 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
43350 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
43351 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
43352 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
43353 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
43354 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
43355 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
43356 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); | |
43357 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); | |
43358 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); | |
43359 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
43360 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
43361 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
43362 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
43363 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); | |
43364 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
43365 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
43366 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
43367 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
43368 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
43369 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); | |
43370 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); | |
43371 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); | |
43372 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
43373 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL)); | |
43374 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL)); | |
43375 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI)); | |
43376 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE)); | |
43377 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX)); | |
43378 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); | |
43379 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
43380 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); | |
43381 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
43382 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
43383 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); | |
43384 | PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); | |
43385 | PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); | |
43386 | PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); | |
43387 | PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); | |
43388 | PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); | |
43389 | PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); | |
43390 | PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); | |
43391 | PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); | |
43392 | PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); | |
43393 | PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); | |
43394 | PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); | |
43395 | PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); | |
43396 | PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); | |
43397 | PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); | |
43398 | PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); | |
43399 | PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); | |
43400 | PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); | |
43401 | PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); | |
43402 | PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); | |
43403 | ||
43404 | // Initialize threading, some globals and such | |
43405 | __wxPyPreStart(d); | |
43406 | ||
43407 | ||
43408 | // Although these are defined in __version__ they need to be here too so | |
43409 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
43410 | // versions match. | |
43411 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
43412 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
43413 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
43414 | ||
43415 | } | |
43416 |