]>
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, | |
0439c23b RD |
574 | wxPySwigInstance_Check, |
575 | ||
576 | wxPyCheckForApp | |
d55e5bfc RD |
577 | |
578 | }; | |
579 | ||
580 | #endif | |
581 | ||
582 | ||
583 | #if ! wxUSE_HOTKEY | |
584 | enum wxHotkeyModifier | |
585 | { | |
586 | wxMOD_NONE = 0, | |
587 | wxMOD_ALT = 1, | |
588 | wxMOD_CONTROL = 2, | |
589 | wxMOD_SHIFT = 4, | |
590 | wxMOD_WIN = 8 | |
591 | }; | |
592 | #define wxEVT_HOTKEY 9999 | |
593 | #endif | |
594 | ||
595 | static const wxString wxPyEmptyString(wxEmptyString); | |
596 | wxString wxObject_GetClassName(wxObject *self){ | |
597 | return self->GetClassInfo()->GetClassName(); | |
598 | } | |
599 | void wxObject_Destroy(wxObject *self){ | |
600 | delete self; | |
601 | } | |
602 | ||
603 | #ifndef __WXMAC__ | |
604 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
605 | #endif | |
606 | ||
607 | ||
608 | #include <limits.h> | |
609 | ||
610 | ||
611 | SWIGSTATICINLINE(long) | |
612 | SWIG_CheckLongInRange(long value, const char* type, | |
613 | long min_value, long max_value) | |
614 | { | |
615 | if (!PyErr_Occurred()) { | |
616 | if (value < min_value) { | |
617 | PyObject *err = | |
618 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
619 | value, type, min_value); | |
620 | ||
621 | PyErr_SetObject(PyExc_OverflowError, err); | |
622 | Py_DECREF(err); | |
623 | } else if (value > max_value) { | |
624 | PyObject *err = | |
625 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
626 | value, type, max_value); | |
627 | PyErr_SetObject(PyExc_OverflowError, err); | |
628 | Py_DECREF(err); | |
629 | } | |
630 | } | |
631 | return value; | |
632 | } | |
633 | ||
634 | ||
635 | SWIGSTATICINLINE(long) | |
636 | SWIG_AsLong(PyObject * obj) | |
637 | { | |
638 | if (PyNumber_Check(obj)) | |
639 | return PyInt_AsLong(obj); | |
640 | else { | |
641 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
642 | obj->ob_type->tp_name); | |
643 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
644 | Py_DECREF(errmsg); | |
645 | return 0; | |
646 | } | |
647 | } | |
648 | ||
649 | ||
650 | #if INT_MAX != LONG_MAX | |
651 | SWIGSTATICINLINE(int) | |
652 | SWIG_AsInt(PyObject *obj) | |
653 | { | |
654 | return swig_numeric_cast(int, | |
655 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
656 | "int", INT_MIN, INT_MAX)); | |
657 | } | |
658 | #else | |
659 | #define SWIG_AsInt SWIG_AsLong | |
660 | #endif | |
661 | ||
662 | ||
663 | SWIGSTATICINLINE(int) | |
664 | SWIG_CheckInt(PyObject* obj) | |
665 | { | |
666 | SWIG_AsInt(obj); | |
667 | if (PyErr_Occurred()) { | |
668 | PyErr_Clear(); | |
669 | return 0; | |
670 | } else { | |
671 | return 1; | |
672 | } | |
673 | } | |
674 | ||
675 | PyObject *wxSize_Get(wxSize *self){ | |
676 | bool blocked = wxPyBeginBlockThreads(); | |
677 | PyObject* tup = PyTuple_New(2); | |
678 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
679 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
680 | wxPyEndBlockThreads(blocked); | |
681 | return tup; | |
682 | } | |
683 | ||
684 | SWIGSTATICINLINE(double) | |
685 | SWIG_AsDouble(PyObject *obj) | |
686 | { | |
687 | if (PyNumber_Check(obj)) | |
688 | return PyFloat_AsDouble(obj); | |
689 | else { | |
690 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
691 | obj->ob_type->tp_name); | |
692 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
693 | Py_DECREF(errmsg); | |
694 | return 0; | |
695 | } | |
696 | } | |
697 | ||
698 | ||
699 | SWIGSTATICINLINE(int) | |
700 | SWIG_CheckDouble(PyObject* obj) | |
701 | { | |
702 | SWIG_AsDouble(obj); | |
703 | if (PyErr_Occurred()) { | |
704 | PyErr_Clear(); | |
705 | return 0; | |
706 | } else { | |
707 | return 1; | |
708 | } | |
709 | } | |
710 | ||
711 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ | |
712 | self->x = x; | |
713 | self->y = y; | |
714 | } | |
715 | PyObject *wxRealPoint_Get(wxRealPoint *self){ | |
716 | bool blocked = wxPyBeginBlockThreads(); | |
717 | PyObject* tup = PyTuple_New(2); | |
718 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
719 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
720 | wxPyEndBlockThreads(blocked); | |
721 | return tup; | |
722 | } | |
723 | ||
724 | SWIGSTATICINLINE(int) | |
725 | SWIG_CheckLong(PyObject* obj) | |
726 | { | |
727 | SWIG_AsLong(obj); | |
728 | if (PyErr_Occurred()) { | |
729 | PyErr_Clear(); | |
730 | return 0; | |
731 | } else { | |
732 | return 1; | |
733 | } | |
734 | } | |
735 | ||
736 | void wxPoint_Set(wxPoint *self,long x,long y){ | |
737 | self->x = x; | |
738 | self->y = y; | |
739 | } | |
740 | PyObject *wxPoint_Get(wxPoint *self){ | |
741 | bool blocked = wxPyBeginBlockThreads(); | |
742 | PyObject* tup = PyTuple_New(2); | |
743 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
744 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
745 | wxPyEndBlockThreads(blocked); | |
746 | return tup; | |
747 | } | |
748 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
749 | self->x = x; | |
750 | self->y = y; | |
751 | self->width = width; | |
752 | self->height = height; | |
753 | } | |
754 | PyObject *wxRect_Get(wxRect *self){ | |
755 | bool blocked = wxPyBeginBlockThreads(); | |
756 | PyObject* tup = PyTuple_New(4); | |
757 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
758 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
759 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
760 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
761 | wxPyEndBlockThreads(blocked); | |
762 | return tup; | |
763 | } | |
764 | ||
765 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
766 | wxRegion reg1(*r1); | |
767 | wxRegion reg2(*r2); | |
768 | wxRect dest(0,0,0,0); | |
769 | PyObject* obj; | |
770 | ||
771 | reg1.Intersect(reg2); | |
772 | dest = reg1.GetBox(); | |
773 | ||
774 | if (dest != wxRect(0,0,0,0)) { | |
775 | bool blocked = wxPyBeginBlockThreads(); | |
776 | wxRect* newRect = new wxRect(dest); | |
777 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); | |
778 | wxPyEndBlockThreads(blocked); | |
779 | return obj; | |
780 | } | |
781 | Py_INCREF(Py_None); | |
782 | return Py_None; | |
783 | } | |
784 | ||
785 | ||
786 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
787 | PyObject* o2; | |
788 | PyObject* o3; | |
789 | ||
790 | if (!target) { | |
791 | target = o; | |
792 | } else if (target == Py_None) { | |
793 | Py_DECREF(Py_None); | |
794 | target = o; | |
795 | } else { | |
796 | if (!PyTuple_Check(target)) { | |
797 | o2 = target; | |
798 | target = PyTuple_New(1); | |
799 | PyTuple_SetItem(target, 0, o2); | |
800 | } | |
801 | o3 = PyTuple_New(1); | |
802 | PyTuple_SetItem(o3, 0, o); | |
803 | ||
804 | o2 = target; | |
805 | target = PySequence_Concat(o2, o3); | |
806 | Py_DECREF(o2); | |
807 | Py_DECREF(o3); | |
808 | } | |
809 | return target; | |
810 | } | |
811 | ||
812 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
813 | self->m_x = x; | |
814 | self->m_y = y; | |
815 | } | |
816 | PyObject *wxPoint2D_Get(wxPoint2D *self){ | |
817 | bool blocked = wxPyBeginBlockThreads(); | |
818 | PyObject* tup = PyTuple_New(2); | |
819 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
820 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
821 | wxPyEndBlockThreads(blocked); | |
822 | return tup; | |
823 | } | |
824 | ||
825 | #include "wx/wxPython/pyistream.h" | |
826 | ||
827 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
828 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
829 | if (wxis) | |
830 | return new wxPyInputStream(wxis); | |
831 | else | |
832 | return NULL; | |
833 | } | |
834 | ||
835 | SWIGSTATICINLINE(PyObject*) | |
836 | SWIG_FromChar(char c) | |
837 | { | |
838 | return PyString_FromStringAndSize(&c,1); | |
839 | } | |
840 | ||
841 | ||
842 | SWIGSTATICINLINE(PyObject* ) | |
843 | SWIG_FromUnsignedLong(unsigned long value) | |
844 | { | |
845 | return (value > LONG_MAX) ? | |
846 | PyLong_FromUnsignedLong(value) | |
847 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
848 | } | |
849 | ||
850 | ||
851 | /* returns '1' if the input is a raw char*, '0' if is a PyString */ | |
852 | SWIGSTATIC(int) | |
853 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size) | |
854 | { | |
855 | static swig_type_info* pchar_info = 0; | |
856 | int psize = 0; | |
857 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); | |
858 | ||
859 | if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) { | |
860 | PyErr_Clear(); | |
861 | PyString_AsStringAndSize(obj, cptr, &psize); | |
862 | if (PyErr_Occurred()) { | |
863 | PyErr_Clear(); | |
864 | PyErr_SetString(PyExc_TypeError,"a string is expected"); | |
865 | } | |
866 | if (size) *size = psize; | |
867 | return 0; | |
868 | } else { | |
869 | if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0; | |
870 | return 1; | |
871 | } | |
872 | } | |
873 | ||
874 | ||
875 | SWIGSTATIC(void) | |
876 | SWIG_AsCharArray(PyObject *obj, char* carray, size_t size) | |
877 | { | |
878 | char* cptr; size_t csize; | |
879 | SWIG_AsCharPtrAndSize(obj, &cptr, &csize); | |
880 | if (PyErr_Occurred()) { | |
881 | PyErr_Clear(); | |
882 | PyObject *err = | |
883 | PyString_FromFormat("a char array of size %d is expected", size); | |
884 | PyErr_SetObject(PyExc_TypeError, err); | |
885 | Py_DECREF(err); | |
886 | } else { | |
887 | /* in C (but not in C++) you can do: | |
888 | ||
889 | char x[5] = "hello"; | |
890 | ||
891 | ie, assing the array using an extra '0' char. | |
892 | */ | |
893 | #ifndef __cplusplus | |
894 | if ((csize == size + 1) && !(cptr[csize-1])) --csize; | |
895 | #endif | |
896 | if (csize > size) { | |
897 | PyObject *err = | |
898 | PyString_FromFormat("a char array of maximum size %d is expected", | |
899 | size); | |
900 | PyErr_SetObject(PyExc_TypeError, err); | |
901 | Py_DECREF(err); | |
902 | } else { | |
903 | if (csize) memcpy(carray, cptr, csize); | |
904 | if (csize < size) memset(carray + csize, 0, size - csize); | |
905 | } | |
906 | } | |
907 | } | |
908 | ||
909 | ||
910 | SWIGSTATICINLINE(char) | |
911 | SWIG_AsChar(PyObject *obj) | |
912 | { | |
913 | char c = 0; | |
914 | if (PyInt_Check(obj) || PyLong_Check(obj)) { | |
915 | c = swig_numeric_cast(char, | |
916 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
917 | "char", CHAR_MIN, CHAR_MAX)); | |
918 | } else { | |
919 | SWIG_AsCharArray(obj, &c, 1); | |
920 | if (PyErr_Occurred()) { | |
921 | PyErr_Clear(); | |
922 | PyErr_SetString(PyExc_TypeError, "a char is expected"); | |
923 | } | |
924 | } | |
925 | return c; | |
926 | } | |
927 | ||
928 | ||
929 | SWIGSTATICINLINE(int) | |
930 | SWIG_CheckChar(PyObject* obj) | |
931 | { | |
932 | SWIG_AsChar(obj); | |
933 | if (PyErr_Occurred()) { | |
934 | PyErr_Clear(); | |
935 | return 0; | |
936 | } else { | |
937 | return 1; | |
938 | } | |
939 | } | |
940 | ||
941 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ | |
942 | // We use only strings for the streams, not unicode | |
943 | PyObject* str = PyObject_Str(obj); | |
944 | if (! str) { | |
945 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
946 | return; | |
947 | } | |
948 | self->Write(PyString_AS_STRING(str), | |
949 | PyString_GET_SIZE(str)); | |
950 | Py_DECREF(str); | |
951 | } | |
952 | ||
953 | #include "wx/wxPython/pyistream.h" | |
954 | ||
955 | ||
956 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
957 | { | |
958 | public: | |
959 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
960 | ||
961 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
962 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
963 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
964 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
965 | ||
966 | wxString GetProtocol(const wxString& location) { | |
967 | return wxFileSystemHandler::GetProtocol(location); | |
968 | } | |
969 | ||
970 | wxString GetLeftLocation(const wxString& location) { | |
971 | return wxFileSystemHandler::GetLeftLocation(location); | |
972 | } | |
973 | ||
974 | wxString GetAnchor(const wxString& location) { | |
975 | return wxFileSystemHandler::GetAnchor(location); | |
976 | } | |
977 | ||
978 | wxString GetRightLocation(const wxString& location) { | |
979 | return wxFileSystemHandler::GetRightLocation(location); | |
980 | } | |
981 | ||
982 | wxString GetMimeTypeFromExt(const wxString& location) { | |
983 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
984 | } | |
985 | ||
986 | PYPRIVATE; | |
987 | }; | |
988 | ||
989 | ||
990 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
991 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
992 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
993 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
994 | ||
995 | ||
996 | SWIGSTATICINLINE(bool) | |
997 | SWIG_AsBool(PyObject *obj) | |
998 | { | |
999 | return PyObject_IsTrue(obj) ? true : false; | |
1000 | } | |
1001 | ||
1002 | ||
1003 | SWIGSTATICINLINE(int) | |
1004 | SWIG_CheckBool(PyObject* obj) | |
1005 | { | |
1006 | SWIG_AsBool(obj); | |
1007 | if (PyErr_Occurred()) { | |
1008 | PyErr_Clear(); | |
1009 | return 0; | |
1010 | } else { | |
1011 | return 1; | |
1012 | } | |
1013 | } | |
1014 | ||
1015 | ||
1016 | wxString wxFileSystem_URLToFileName(const wxString& url) { | |
1017 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
1018 | return fname.GetFullPath(); | |
1019 | } | |
1020 | ||
1021 | ||
1022 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
1023 | wxImage& image, | |
1024 | long type) { | |
1025 | wxMemoryFSHandler::AddFile(filename, image, type); | |
1026 | } | |
1027 | ||
1028 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
1029 | const wxBitmap& bitmap, | |
1030 | long type) { | |
1031 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
1032 | } | |
1033 | ||
1034 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
1035 | PyObject* data) { | |
1036 | wxMemoryFSHandler::AddFile(filename, | |
1037 | // TODO: Verify data type | |
1038 | (void*)PyString_AsString(data), | |
1039 | (size_t)PyString_Size(data)); | |
1040 | } | |
1041 | ||
1042 | ||
1043 | #include "wx/wxPython/pyistream.h" | |
1044 | ||
1045 | ||
1046 | SWIGSTATICINLINE(unsigned long) | |
1047 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
1048 | unsigned long max_value) | |
1049 | { | |
1050 | if (!PyErr_Occurred()) { | |
1051 | if (value > max_value) { | |
1052 | PyObject *err = | |
1053 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
1054 | value, type, max_value); | |
1055 | PyErr_SetObject(PyExc_OverflowError, err); | |
1056 | Py_DECREF(err); | |
1057 | } | |
1058 | } | |
1059 | return value; | |
1060 | } | |
1061 | ||
1062 | ||
1063 | SWIGSTATICINLINE(unsigned long) | |
1064 | SWIG_AsUnsignedLong(PyObject * obj) | |
1065 | { | |
1066 | if (PyLong_Check(obj)) { | |
1067 | return PyLong_AsUnsignedLong(obj); | |
1068 | } else { | |
1069 | long i = SWIG_AsLong(obj); | |
1070 | if ( !PyErr_Occurred() && (i < 0)) { | |
1071 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
1072 | } | |
1073 | return i; | |
1074 | } | |
1075 | } | |
1076 | ||
1077 | ||
1078 | SWIGSTATICINLINE(unsigned char) | |
1079 | SWIG_AsUnsignedChar(PyObject *obj) | |
1080 | { | |
1081 | return swig_numeric_cast(unsigned char, | |
1082 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1083 | "unsigned char", UCHAR_MAX)); | |
1084 | } | |
1085 | ||
1086 | ||
1087 | SWIGSTATICINLINE(int) | |
1088 | SWIG_CheckUnsignedChar(PyObject* obj) | |
1089 | { | |
1090 | SWIG_AsUnsignedChar(obj); | |
1091 | if (PyErr_Occurred()) { | |
1092 | PyErr_Clear(); | |
1093 | return 0; | |
1094 | } else { | |
1095 | return 1; | |
1096 | } | |
1097 | } | |
1098 | ||
d6c14a4c | 1099 | wxImage *new_wxImage(int width,int height,bool clear){ |
d55e5bfc RD |
1100 | if (width > 0 && height > 0) |
1101 | return new wxImage(width, height, clear); | |
1102 | else | |
1103 | return new wxImage; | |
1104 | } | |
d55e5bfc RD |
1105 | wxImage *new_wxImage(wxBitmap const &bitmap){ |
1106 | return new wxImage(bitmap.ConvertToImage()); | |
1107 | } | |
1108 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
1109 | // Copy the source data so the wxImage can clean it up later | |
1110 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
1111 | if (copy == NULL) { | |
1112 | PyErr_NoMemory(); | |
1113 | return NULL; | |
1114 | } | |
1115 | memcpy(copy, data, width*height*3); | |
1116 | return new wxImage(width, height, copy, False); | |
1117 | } | |
1118 | wxSize wxImage_GetSize(wxImage *self){ | |
1119 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1120 | return size; | |
1121 | } | |
1122 | PyObject *wxImage_GetData(wxImage *self){ | |
1123 | unsigned char* data = self->GetData(); | |
1124 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1125 | PyObject* rv; | |
1126 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1127 | return rv; | |
1128 | } | |
1129 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1130 | unsigned char* dataPtr; | |
1131 | ||
1132 | if (! PyString_Check(data)) { | |
1133 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1134 | return /* NULL */ ; | |
1135 | } | |
1136 | ||
1137 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1138 | dataPtr = (unsigned char*) malloc(len); | |
1139 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1140 | self->SetData(dataPtr); | |
1141 | // wxImage takes ownership of dataPtr... | |
1142 | } | |
1143 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1144 | unsigned char* data = self->GetData(); | |
1145 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1146 | PyObject* rv; | |
1147 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1148 | return rv; | |
1149 | } | |
1150 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1151 | unsigned char* buffer; | |
1152 | int size; | |
1153 | ||
1154 | bool blocked = wxPyBeginBlockThreads(); | |
1155 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1156 | goto done; | |
1157 | ||
1158 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1159 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1160 | goto done; | |
1161 | } | |
1162 | self->SetData(buffer); | |
1163 | done: | |
1164 | wxPyEndBlockThreads(blocked); | |
1165 | } | |
1166 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1167 | unsigned char* data = self->GetAlpha(); | |
1168 | if (! data) { | |
1169 | RETURN_NONE(); | |
1170 | } else { | |
1171 | int len = self->GetWidth() * self->GetHeight(); | |
1172 | PyObject* rv; | |
1173 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1174 | return rv; | |
1175 | } | |
1176 | } | |
1177 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1178 | unsigned char* dataPtr; | |
1179 | ||
1180 | if (! PyString_Check(data)) { | |
1181 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1182 | return /* NULL */ ; | |
1183 | } | |
1184 | ||
1185 | size_t len = self->GetWidth() * self->GetHeight(); | |
1186 | dataPtr = (unsigned char*) malloc(len); | |
1187 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1188 | self->SetAlpha(dataPtr); | |
1189 | // wxImage takes ownership of dataPtr... | |
1190 | } | |
1191 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1192 | unsigned char* data = self->GetAlpha(); | |
1193 | int len = self->GetWidth() * self->GetHeight(); | |
1194 | PyObject* rv; | |
1195 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1196 | return rv; | |
1197 | } | |
1198 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1199 | unsigned char* buffer; | |
1200 | int size; | |
1201 | ||
1202 | bool blocked = wxPyBeginBlockThreads(); | |
1203 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1204 | goto done; | |
1205 | ||
1206 | if (size != self->GetWidth() * self->GetHeight()) { | |
1207 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1208 | goto done; | |
1209 | } | |
1210 | self->SetAlpha(buffer); | |
1211 | done: | |
1212 | wxPyEndBlockThreads(blocked); | |
1213 | } | |
1214 | ||
1215 | SWIGSTATICINLINE(int) | |
1216 | SWIG_CheckUnsignedLong(PyObject* obj) | |
1217 | { | |
1218 | SWIG_AsUnsignedLong(obj); | |
1219 | if (PyErr_Occurred()) { | |
1220 | PyErr_Clear(); | |
1221 | return 0; | |
1222 | } else { | |
1223 | return 1; | |
1224 | } | |
1225 | } | |
1226 | ||
1227 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ | |
1228 | wxBitmap bitmap(*self); | |
1229 | return bitmap; | |
1230 | } | |
1231 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1232 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1233 | wxBitmap bitmap( mono, 1 ); | |
1234 | return bitmap; | |
1235 | } | |
1236 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1237 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1238 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1239 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1240 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
1241 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
1242 | if (PyCallable_Check(func)) { | |
1243 | self->Connect(id, lastId, eventType, | |
1244 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1245 | new wxPyCallback(func)); | |
1246 | } | |
1247 | else if (func == Py_None) { | |
1248 | self->Disconnect(id, lastId, eventType, | |
1249 | (wxObjectEventFunction) | |
1250 | &wxPyCallback::EventThunker); | |
1251 | } | |
1252 | else { | |
1253 | wxPyBLOCK_THREADS( | |
1254 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
1255 | } | |
1256 | } | |
1257 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1258 | return self->Disconnect(id, lastId, eventType, | |
1259 | (wxObjectEventFunction) | |
1260 | &wxPyCallback::EventThunker); | |
1261 | } | |
1262 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1263 | if (_self && _self != Py_None) { | |
1264 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1265 | } | |
1266 | else { | |
1267 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1268 | if (data) { | |
1269 | self->SetClientObject(NULL); // This will delete it too | |
1270 | } | |
1271 | } | |
1272 | } | |
1273 | int wxKeyEvent_GetUniChar(wxKeyEvent *self){ | |
1274 | #if wxUSE_UNICODE | |
1275 | return self->m_uniChar; | |
1276 | #else | |
1277 | return 0; | |
1278 | #endif | |
1279 | } | |
1280 | ||
1281 | #if UINT_MAX < LONG_MAX | |
1282 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1283 | #else | |
1284 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1285 | #endif | |
1286 | ||
1287 | ||
1288 | #if UINT_MAX != ULONG_MAX | |
1289 | SWIGSTATICINLINE(unsigned int) | |
1290 | SWIG_AsUnsignedInt(PyObject *obj) | |
1291 | { | |
1292 | return swig_numeric_cast(unsigned int, | |
1293 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1294 | "unsigned int", UINT_MAX)); | |
1295 | } | |
1296 | #else | |
1297 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
1298 | #endif | |
1299 | ||
1300 | ||
1301 | SWIGSTATICINLINE(int) | |
1302 | SWIG_CheckUnsignedInt(PyObject* obj) | |
1303 | { | |
1304 | SWIG_AsUnsignedInt(obj); | |
1305 | if (PyErr_Occurred()) { | |
1306 | PyErr_Clear(); | |
1307 | return 0; | |
1308 | } else { | |
1309 | return 1; | |
1310 | } | |
1311 | } | |
1312 | ||
1313 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ | |
1314 | self->m_size = size; | |
1315 | } | |
1316 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1317 | self->m_pos = pos; | |
1318 | } | |
1319 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1320 | int count = self->GetNumberOfFiles(); | |
1321 | wxString* files = self->GetFiles(); | |
1322 | PyObject* list = PyList_New(count); | |
1323 | ||
1324 | if (!list) { | |
1325 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1326 | return NULL; | |
1327 | } | |
1328 | ||
1329 | for (int i=0; i<count; i++) { | |
1330 | PyList_SetItem(list, i, wx2PyString(files[i])); | |
1331 | } | |
1332 | return list; | |
1333 | } | |
1334 | ||
1335 | ||
1336 | wxPyApp *new_wxPyApp(){ | |
1337 | wxPythonApp = new wxPyApp(); | |
1338 | return wxPythonApp; | |
1339 | } | |
1340 | int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; } | |
1341 | ||
1342 | void wxApp_CleanUp() { | |
1343 | __wxPyCleanup(); | |
1344 | } | |
1345 | ||
1346 | ||
a5ee0656 | 1347 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d55e5bfc RD |
1348 | |
1349 | ||
1350 | ||
1351 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1352 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } | |
f20a2e1f | 1353 | void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } |
d55e5bfc RD |
1354 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1355 | wxWindowList& list = self->GetChildren(); | |
1356 | return wxPy_ConvertList(&list); | |
1357 | } | |
1358 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1359 | #if wxUSE_HOTKEY | |
1360 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1361 | #else | |
1362 | return False; | |
1363 | #endif | |
1364 | } | |
1365 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1366 | ||
1367 | ||
1368 | ||
1369 | return False; | |
1370 | ||
1371 | } | |
1372 | long wxWindow_GetHandle(wxWindow *self){ | |
1373 | return wxPyGetWinHandle(self); | |
1374 | } | |
1375 | ||
1376 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1377 | return wxWindow::FindWindowById(id, parent); | |
1378 | } | |
1379 | ||
1380 | wxWindow* wxFindWindowByName( const wxString& name, | |
1381 | const wxWindow *parent = NULL ) { | |
1382 | return wxWindow::FindWindowByName(name, parent); | |
1383 | } | |
1384 | ||
1385 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1386 | const wxWindow *parent = NULL ) { | |
1387 | return wxWindow::FindWindowByLabel(label, parent); | |
1388 | } | |
1389 | ||
1390 | ||
1391 | #ifdef __WXMSW__ | |
1392 | #include <wx/msw/private.h> // to get wxGetWindowId | |
1393 | #endif | |
1394 | ||
1395 | ||
1396 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1397 | #ifdef __WXMSW__ | |
1398 | WXHWND hWnd = (WXHWND)_hWnd; | |
1399 | long id = wxGetWindowId(hWnd); | |
1400 | wxWindow* win = new wxWindow; | |
1401 | parent->AddChild(win); | |
1402 | win->SetEventHandler(win); | |
1403 | win->SetHWND(hWnd); | |
1404 | win->SetId(id); | |
1405 | win->SubclassWin(hWnd); | |
1406 | win->AdoptAttributesFromHWND(); | |
1407 | win->SetupColours(); | |
1408 | return win; | |
1409 | #else | |
1410 | wxPyRaiseNotImplemented(); | |
1411 | return NULL; | |
1412 | #endif | |
1413 | } | |
1414 | ||
1415 | ||
1416 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1417 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1418 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1419 | ||
1420 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1421 | ||
1422 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1423 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1424 | wxMenuItemList& list = self->GetMenuItems(); | |
1425 | return wxPy_ConvertList(&list); | |
1426 | } | |
1427 | int MenuItem_GetDefaultMarginWidth(){ return 0; } | |
1428 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1429 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ | |
1430 | if (clientData) { | |
1431 | wxPyClientData* data = new wxPyClientData(clientData); | |
1432 | return self->Append(item, data); | |
1433 | } else | |
1434 | return self->Append(item); | |
1435 | } | |
1436 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1437 | if (clientData) { | |
1438 | wxPyClientData* data = new wxPyClientData(clientData); | |
1439 | return self->Insert(item, pos, data); | |
1440 | } else | |
1441 | return self->Insert(item, pos); | |
1442 | } | |
1443 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1444 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1445 | if (data) { | |
1446 | Py_INCREF(data->m_obj); | |
1447 | return data->m_obj; | |
1448 | } else { | |
1449 | Py_INCREF(Py_None); | |
1450 | return Py_None; | |
1451 | } | |
1452 | } | |
1453 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1454 | wxPyClientData* data = new wxPyClientData(clientData); | |
1455 | self->SetClientObject(n, data); | |
1456 | } | |
1457 | ||
1458 | ||
1459 | ||
1460 | #include <float.h> | |
1461 | ||
1462 | SWIGSTATIC(float) | |
1463 | SWIG_FloatCast(double value) | |
1464 | { | |
1465 | float f = 0; | |
1466 | if (!PyErr_Occurred()) { | |
1467 | if (value < FLT_MIN) { | |
1468 | PyObject *err = | |
1469 | PyString_FromFormat("value %g is less than float minimum %g", | |
1470 | value, FLT_MIN); | |
1471 | PyErr_SetObject(PyExc_OverflowError, err); | |
1472 | Py_DECREF(err); | |
1473 | } else if (value > FLT_MAX) { | |
1474 | PyObject *err = | |
1475 | PyString_FromFormat("value %g is greater than float maximum %g", | |
1476 | value, FLT_MAX); | |
1477 | PyErr_SetObject(PyExc_OverflowError, err); | |
1478 | Py_DECREF(err); | |
1479 | } else { | |
1480 | f = swig_numeric_cast(float, value); | |
1481 | } | |
1482 | } | |
1483 | return f; | |
1484 | } | |
1485 | ||
1486 | ||
1487 | SWIGSTATICINLINE(float) | |
1488 | SWIG_AsFloat(PyObject *obj) | |
1489 | { | |
1490 | return SWIG_FloatCast(SWIG_AsDouble(obj)); | |
1491 | } | |
1492 | ||
1493 | ||
1494 | SWIGSTATICINLINE(int) | |
1495 | SWIG_CheckFloat(PyObject* obj) | |
1496 | { | |
1497 | SWIG_AsFloat(obj); | |
1498 | if (PyErr_Occurred()) { | |
1499 | PyErr_Clear(); | |
1500 | return 0; | |
1501 | } else { | |
1502 | return 1; | |
1503 | } | |
1504 | } | |
1505 | ||
1506 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
1507 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1508 | if (data) { | |
1509 | Py_INCREF(data->m_obj); | |
1510 | return data->m_obj; | |
1511 | } else { | |
1512 | Py_INCREF(Py_None); | |
1513 | return Py_None; | |
1514 | } | |
1515 | } | |
1516 | ||
1517 | // Figure out the type of the sizer item | |
1518 | ||
1519 | struct wxPySizerItemInfo { | |
1520 | wxPySizerItemInfo() | |
1521 | : window(NULL), sizer(NULL), gotSize(False), | |
1522 | size(wxDefaultSize), gotPos(False), pos(-1) | |
1523 | {} | |
1524 | ||
1525 | wxWindow* window; | |
1526 | wxSizer* sizer; | |
1527 | bool gotSize; | |
1528 | wxSize size; | |
1529 | bool gotPos; | |
1530 | int pos; | |
1531 | }; | |
1532 | ||
1533 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1534 | ||
1535 | wxPySizerItemInfo info; | |
1536 | wxSize size; | |
1537 | wxSize* sizePtr = &size; | |
1538 | ||
1539 | // Find out what the type of the item is | |
1540 | // try wxWindow | |
1541 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1542 | PyErr_Clear(); | |
1543 | info.window = NULL; | |
1544 | ||
1545 | // try wxSizer | |
1546 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1547 | PyErr_Clear(); | |
1548 | info.sizer = NULL; | |
1549 | ||
1550 | // try wxSize or (w,h) | |
1551 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1552 | info.size = *sizePtr; | |
1553 | info.gotSize = True; | |
1554 | } | |
1555 | ||
1556 | // or a single int | |
1557 | if (checkIdx && PyInt_Check(item)) { | |
1558 | info.pos = PyInt_AsLong(item); | |
1559 | info.gotPos = True; | |
1560 | } | |
1561 | } | |
1562 | } | |
1563 | ||
1564 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1565 | // no expected type, figure out what kind of error message to generate | |
1566 | if ( !checkSize && !checkIdx ) | |
1567 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1568 | else if ( checkSize && !checkIdx ) | |
1569 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1570 | else if ( !checkSize && checkIdx) | |
1571 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1572 | else | |
1573 | // can this one happen? | |
1574 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1575 | } | |
1576 | ||
1577 | return info; | |
1578 | } | |
1579 | ||
1580 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1581 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1582 | } | |
1583 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1584 | ||
1585 | wxPyUserData* data = NULL; | |
1586 | bool blocked = wxPyBeginBlockThreads(); | |
1587 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1588 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1589 | data = new wxPyUserData(userData); | |
1590 | wxPyEndBlockThreads(blocked); | |
1591 | ||
1592 | // Now call the real Add method if a valid item type was found | |
1593 | if ( info.window ) | |
1594 | self->Add(info.window, proportion, flag, border, data); | |
1595 | else if ( info.sizer ) | |
1596 | self->Add(info.sizer, proportion, flag, border, data); | |
1597 | else if (info.gotSize) | |
1598 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1599 | proportion, flag, border, data); | |
1600 | } | |
1601 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1602 | ||
1603 | wxPyUserData* data = NULL; | |
1604 | bool blocked = wxPyBeginBlockThreads(); | |
1605 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1606 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1607 | data = new wxPyUserData(userData); | |
1608 | wxPyEndBlockThreads(blocked); | |
1609 | ||
1610 | // Now call the real Insert method if a valid item type was found | |
1611 | if ( info.window ) | |
1612 | self->Insert(before, info.window, proportion, flag, border, data); | |
1613 | else if ( info.sizer ) | |
1614 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1615 | else if (info.gotSize) | |
1616 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1617 | proportion, flag, border, data); | |
1618 | } | |
1619 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1620 | ||
1621 | wxPyUserData* data = NULL; | |
1622 | bool blocked = wxPyBeginBlockThreads(); | |
1623 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1624 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1625 | data = new wxPyUserData(userData); | |
1626 | wxPyEndBlockThreads(blocked); | |
1627 | ||
1628 | // Now call the real Prepend method if a valid item type was found | |
1629 | if ( info.window ) | |
1630 | self->Prepend(info.window, proportion, flag, border, data); | |
1631 | else if ( info.sizer ) | |
1632 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1633 | else if (info.gotSize) | |
1634 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1635 | proportion, flag, border, data); | |
1636 | } | |
1637 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1638 | bool blocked = wxPyBeginBlockThreads(); | |
1639 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); | |
1640 | wxPyEndBlockThreads(blocked); | |
1641 | if ( info.window ) | |
1642 | return self->Remove(info.window); | |
1643 | else if ( info.sizer ) | |
1644 | return self->Remove(info.sizer); | |
1645 | else if ( info.gotPos ) | |
1646 | return self->Remove(info.pos); | |
1647 | else | |
1648 | return False; | |
1649 | } | |
1a6bba1e RD |
1650 | bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
1651 | bool blocked = wxPyBeginBlockThreads(); | |
1652 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); | |
1653 | wxPyEndBlockThreads(blocked); | |
1654 | if ( info.window ) | |
1655 | return self->Detach(info.window); | |
1656 | else if ( info.sizer ) | |
1657 | return self->Detach(info.sizer); | |
1658 | else if ( info.gotPos ) | |
1659 | return self->Detach(info.pos); | |
1660 | else | |
1661 | return False; | |
1662 | } | |
d55e5bfc RD |
1663 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
1664 | bool blocked = wxPyBeginBlockThreads(); | |
1665 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); | |
1666 | wxPyEndBlockThreads(blocked); | |
1667 | if ( info.window ) | |
1668 | self->SetItemMinSize(info.window, size); | |
1669 | else if ( info.sizer ) | |
1670 | self->SetItemMinSize(info.sizer, size); | |
1671 | else if ( info.gotPos ) | |
1672 | self->SetItemMinSize(info.pos, size); | |
1673 | } | |
1674 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1675 | wxSizerItemList& list = self->GetChildren(); | |
1676 | return wxPy_ConvertList(&list); | |
1677 | } | |
1678 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
d6c14a4c | 1679 | bool blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 1680 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d6c14a4c | 1681 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1682 | if ( info.window ) |
1683 | self->Show(info.window, show); | |
1684 | else if ( info.sizer ) | |
1685 | self->Show(info.sizer, show); | |
1686 | } | |
1687 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
d6c14a4c | 1688 | bool blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 1689 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d6c14a4c | 1690 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1691 | if ( info.window ) |
1692 | self->Hide(info.window); | |
1693 | else if ( info.sizer ) | |
1694 | self->Hide(info.sizer); | |
1695 | } | |
1696 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
d6c14a4c | 1697 | bool blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 1698 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d6c14a4c | 1699 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1700 | if ( info.window ) |
1701 | return self->IsShown(info.window); | |
1702 | else if ( info.sizer ) | |
1703 | return self->IsShown(info.sizer); | |
1704 | else | |
1705 | return False; | |
1706 | } | |
1707 | ||
1708 | // See pyclasses.h | |
1709 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1710 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1711 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1712 | ||
1713 | ||
1714 | ||
1715 | ||
1716 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1717 | { | |
1718 | if (source == Py_None) { | |
1719 | **obj = wxGBPosition(-1,-1); | |
1720 | return True; | |
1721 | } | |
1722 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1723 | } | |
1724 | ||
1725 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1726 | { | |
1727 | if (source == Py_None) { | |
1728 | **obj = wxGBSpan(-1,-1); | |
1729 | return True; | |
1730 | } | |
1731 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1732 | } | |
1733 | ||
1734 | ||
1735 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ | |
1736 | self->SetRow(row); | |
1737 | self->SetCol(col); | |
1738 | } | |
1739 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
1740 | bool blocked = wxPyBeginBlockThreads(); | |
1741 | PyObject* tup = PyTuple_New(2); | |
1742 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1743 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1744 | wxPyEndBlockThreads(blocked); | |
1745 | return tup; | |
1746 | } | |
1747 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ | |
1748 | self->SetRowspan(rowspan); | |
1749 | self->SetColspan(colspan); | |
1750 | } | |
1751 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
1752 | bool blocked = wxPyBeginBlockThreads(); | |
1753 | PyObject* tup = PyTuple_New(2); | |
1754 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1755 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
1756 | wxPyEndBlockThreads(blocked); | |
1757 | return tup; | |
1758 | } | |
1759 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1760 | ||
1761 | wxPyUserData* data = NULL; | |
1762 | bool blocked = wxPyBeginBlockThreads(); | |
1763 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1764 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1765 | data = new wxPyUserData(userData); | |
1766 | wxPyEndBlockThreads(blocked); | |
1767 | ||
1768 | // Now call the real Add method if a valid item type was found | |
1769 | if ( info.window ) | |
1770 | return self->Add(info.window, pos, span, flag, border, data); | |
1771 | else if ( info.sizer ) | |
1772 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1773 | else if (info.gotSize) | |
1774 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1775 | pos, span, flag, border, data); | |
1776 | return False; | |
1777 | } | |
1778 | ||
1779 | ||
1780 | #ifdef __cplusplus | |
1781 | extern "C" { | |
1782 | #endif | |
1783 | static int _wrap_EmptyString_set(PyObject *_val) { | |
1784 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); | |
1785 | return 1; | |
1786 | } | |
1787 | ||
1788 | ||
1789 | static PyObject *_wrap_EmptyString_get() { | |
1790 | PyObject *pyobj; | |
1791 | ||
1792 | { | |
1793 | #if wxUSE_UNICODE | |
1794 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1795 | #else | |
1796 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1797 | #endif | |
1798 | } | |
1799 | return pyobj; | |
1800 | } | |
1801 | ||
1802 | ||
1803 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1804 | PyObject *resultobj; | |
1805 | wxObject *arg1 = (wxObject *) 0 ; | |
1806 | wxString result; | |
1807 | PyObject * obj0 = 0 ; | |
1808 | char *kwnames[] = { | |
1809 | (char *) "self", NULL | |
1810 | }; | |
1811 | ||
1812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
1813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
1814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1815 | { | |
1816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1817 | result = wxObject_GetClassName(arg1); | |
1818 | ||
1819 | wxPyEndAllowThreads(__tstate); | |
1820 | if (PyErr_Occurred()) SWIG_fail; | |
1821 | } | |
1822 | { | |
1823 | #if wxUSE_UNICODE | |
1824 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1825 | #else | |
1826 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1827 | #endif | |
1828 | } | |
1829 | return resultobj; | |
1830 | fail: | |
1831 | return NULL; | |
1832 | } | |
1833 | ||
1834 | ||
1835 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1836 | PyObject *resultobj; | |
1837 | wxObject *arg1 = (wxObject *) 0 ; | |
1838 | PyObject * obj0 = 0 ; | |
1839 | char *kwnames[] = { | |
1840 | (char *) "self", NULL | |
1841 | }; | |
1842 | ||
1843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
1844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
1845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1846 | { | |
1847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1848 | wxObject_Destroy(arg1); | |
1849 | ||
1850 | wxPyEndAllowThreads(__tstate); | |
1851 | if (PyErr_Occurred()) SWIG_fail; | |
1852 | } | |
1853 | Py_INCREF(Py_None); resultobj = Py_None; | |
1854 | return resultobj; | |
1855 | fail: | |
1856 | return NULL; | |
1857 | } | |
1858 | ||
1859 | ||
1860 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1861 | PyObject *obj; | |
1862 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1863 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1864 | Py_INCREF(obj); | |
1865 | return Py_BuildValue((char *)""); | |
1866 | } | |
1867 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1868 | PyObject *resultobj; | |
1869 | wxSize *arg1 = (wxSize *) 0 ; | |
1870 | int arg2 ; | |
1871 | PyObject * obj0 = 0 ; | |
1872 | PyObject * obj1 = 0 ; | |
1873 | char *kwnames[] = { | |
1874 | (char *) "self",(char *) "x", NULL | |
1875 | }; | |
1876 | ||
1877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; | |
1878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1880 | arg2 = (int) SWIG_AsInt(obj1); | |
1881 | if (PyErr_Occurred()) SWIG_fail; | |
1882 | if (arg1) (arg1)->x = arg2; | |
1883 | ||
1884 | Py_INCREF(Py_None); resultobj = Py_None; | |
1885 | return resultobj; | |
1886 | fail: | |
1887 | return NULL; | |
1888 | } | |
1889 | ||
1890 | ||
1891 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1892 | PyObject *resultobj; | |
1893 | wxSize *arg1 = (wxSize *) 0 ; | |
1894 | int result; | |
1895 | PyObject * obj0 = 0 ; | |
1896 | char *kwnames[] = { | |
1897 | (char *) "self", NULL | |
1898 | }; | |
1899 | ||
1900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
1901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1903 | result = (int) ((arg1)->x); | |
1904 | ||
1905 | resultobj = SWIG_FromInt((int)result); | |
1906 | return resultobj; | |
1907 | fail: | |
1908 | return NULL; | |
1909 | } | |
1910 | ||
1911 | ||
1912 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1913 | PyObject *resultobj; | |
1914 | wxSize *arg1 = (wxSize *) 0 ; | |
1915 | int arg2 ; | |
1916 | PyObject * obj0 = 0 ; | |
1917 | PyObject * obj1 = 0 ; | |
1918 | char *kwnames[] = { | |
1919 | (char *) "self",(char *) "y", NULL | |
1920 | }; | |
1921 | ||
1922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; | |
1923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1925 | arg2 = (int) SWIG_AsInt(obj1); | |
1926 | if (PyErr_Occurred()) SWIG_fail; | |
1927 | if (arg1) (arg1)->y = arg2; | |
1928 | ||
1929 | Py_INCREF(Py_None); resultobj = Py_None; | |
1930 | return resultobj; | |
1931 | fail: | |
1932 | return NULL; | |
1933 | } | |
1934 | ||
1935 | ||
1936 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1937 | PyObject *resultobj; | |
1938 | wxSize *arg1 = (wxSize *) 0 ; | |
1939 | int result; | |
1940 | PyObject * obj0 = 0 ; | |
1941 | char *kwnames[] = { | |
1942 | (char *) "self", NULL | |
1943 | }; | |
1944 | ||
1945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
1946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1948 | result = (int) ((arg1)->y); | |
1949 | ||
1950 | resultobj = SWIG_FromInt((int)result); | |
1951 | return resultobj; | |
1952 | fail: | |
1953 | return NULL; | |
1954 | } | |
1955 | ||
1956 | ||
1957 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1958 | PyObject *resultobj; | |
1959 | int arg1 = (int) 0 ; | |
1960 | int arg2 = (int) 0 ; | |
1961 | wxSize *result; | |
1962 | PyObject * obj0 = 0 ; | |
1963 | PyObject * obj1 = 0 ; | |
1964 | char *kwnames[] = { | |
1965 | (char *) "w",(char *) "h", NULL | |
1966 | }; | |
1967 | ||
1968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; | |
1969 | if (obj0) { | |
1970 | arg1 = (int) SWIG_AsInt(obj0); | |
1971 | if (PyErr_Occurred()) SWIG_fail; | |
1972 | } | |
1973 | if (obj1) { | |
1974 | arg2 = (int) SWIG_AsInt(obj1); | |
1975 | if (PyErr_Occurred()) SWIG_fail; | |
1976 | } | |
1977 | { | |
1978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1979 | result = (wxSize *)new wxSize(arg1,arg2); | |
1980 | ||
1981 | wxPyEndAllowThreads(__tstate); | |
1982 | if (PyErr_Occurred()) SWIG_fail; | |
1983 | } | |
1984 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); | |
1985 | return resultobj; | |
1986 | fail: | |
1987 | return NULL; | |
1988 | } | |
1989 | ||
1990 | ||
1991 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1992 | PyObject *resultobj; | |
1993 | wxSize *arg1 = (wxSize *) 0 ; | |
1994 | PyObject * obj0 = 0 ; | |
1995 | char *kwnames[] = { | |
1996 | (char *) "self", NULL | |
1997 | }; | |
1998 | ||
1999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
2000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2002 | { | |
2003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2004 | delete arg1; | |
2005 | ||
2006 | wxPyEndAllowThreads(__tstate); | |
2007 | if (PyErr_Occurred()) SWIG_fail; | |
2008 | } | |
2009 | Py_INCREF(Py_None); resultobj = Py_None; | |
2010 | return resultobj; | |
2011 | fail: | |
2012 | return NULL; | |
2013 | } | |
2014 | ||
2015 | ||
2016 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2017 | PyObject *resultobj; | |
2018 | wxSize *arg1 = (wxSize *) 0 ; | |
2019 | wxSize *arg2 = 0 ; | |
2020 | bool result; | |
2021 | wxSize temp2 ; | |
2022 | PyObject * obj0 = 0 ; | |
2023 | PyObject * obj1 = 0 ; | |
2024 | char *kwnames[] = { | |
2025 | (char *) "self",(char *) "sz", NULL | |
2026 | }; | |
2027 | ||
2028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2031 | { | |
2032 | arg2 = &temp2; | |
2033 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2034 | } | |
2035 | { | |
2036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2037 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); | |
2038 | ||
2039 | wxPyEndAllowThreads(__tstate); | |
2040 | if (PyErr_Occurred()) SWIG_fail; | |
2041 | } | |
2042 | { | |
2043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2044 | } | |
2045 | return resultobj; | |
2046 | fail: | |
2047 | return NULL; | |
2048 | } | |
2049 | ||
2050 | ||
2051 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2052 | PyObject *resultobj; | |
2053 | wxSize *arg1 = (wxSize *) 0 ; | |
2054 | wxSize *arg2 = 0 ; | |
2055 | bool result; | |
2056 | wxSize temp2 ; | |
2057 | PyObject * obj0 = 0 ; | |
2058 | PyObject * obj1 = 0 ; | |
2059 | char *kwnames[] = { | |
2060 | (char *) "self",(char *) "sz", NULL | |
2061 | }; | |
2062 | ||
2063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2066 | { | |
2067 | arg2 = &temp2; | |
2068 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2069 | } | |
2070 | { | |
2071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2072 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); | |
2073 | ||
2074 | wxPyEndAllowThreads(__tstate); | |
2075 | if (PyErr_Occurred()) SWIG_fail; | |
2076 | } | |
2077 | { | |
2078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2079 | } | |
2080 | return resultobj; | |
2081 | fail: | |
2082 | return NULL; | |
2083 | } | |
2084 | ||
2085 | ||
2086 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2087 | PyObject *resultobj; | |
2088 | wxSize *arg1 = (wxSize *) 0 ; | |
2089 | wxSize *arg2 = 0 ; | |
2090 | wxSize result; | |
2091 | wxSize temp2 ; | |
2092 | PyObject * obj0 = 0 ; | |
2093 | PyObject * obj1 = 0 ; | |
2094 | char *kwnames[] = { | |
2095 | (char *) "self",(char *) "sz", NULL | |
2096 | }; | |
2097 | ||
2098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2101 | { | |
2102 | arg2 = &temp2; | |
2103 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2104 | } | |
2105 | { | |
2106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2107 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2108 | ||
2109 | wxPyEndAllowThreads(__tstate); | |
2110 | if (PyErr_Occurred()) SWIG_fail; | |
2111 | } | |
2112 | { | |
2113 | wxSize * resultptr; | |
2114 | resultptr = new wxSize((wxSize &) result); | |
2115 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2116 | } | |
2117 | return resultobj; | |
2118 | fail: | |
2119 | return NULL; | |
2120 | } | |
2121 | ||
2122 | ||
2123 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2124 | PyObject *resultobj; | |
2125 | wxSize *arg1 = (wxSize *) 0 ; | |
2126 | wxSize *arg2 = 0 ; | |
2127 | wxSize result; | |
2128 | wxSize temp2 ; | |
2129 | PyObject * obj0 = 0 ; | |
2130 | PyObject * obj1 = 0 ; | |
2131 | char *kwnames[] = { | |
2132 | (char *) "self",(char *) "sz", NULL | |
2133 | }; | |
2134 | ||
2135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2138 | { | |
2139 | arg2 = &temp2; | |
2140 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2141 | } | |
2142 | { | |
2143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2144 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2145 | ||
2146 | wxPyEndAllowThreads(__tstate); | |
2147 | if (PyErr_Occurred()) SWIG_fail; | |
2148 | } | |
2149 | { | |
2150 | wxSize * resultptr; | |
2151 | resultptr = new wxSize((wxSize &) result); | |
2152 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2153 | } | |
2154 | return resultobj; | |
2155 | fail: | |
2156 | return NULL; | |
2157 | } | |
2158 | ||
2159 | ||
2160 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2161 | PyObject *resultobj; | |
2162 | wxSize *arg1 = (wxSize *) 0 ; | |
2163 | wxSize *arg2 = 0 ; | |
2164 | wxSize temp2 ; | |
2165 | PyObject * obj0 = 0 ; | |
2166 | PyObject * obj1 = 0 ; | |
2167 | char *kwnames[] = { | |
2168 | (char *) "self",(char *) "sz", NULL | |
2169 | }; | |
2170 | ||
2171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2174 | { | |
2175 | arg2 = &temp2; | |
2176 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2177 | } | |
2178 | { | |
2179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2180 | (arg1)->IncTo((wxSize const &)*arg2); | |
2181 | ||
2182 | wxPyEndAllowThreads(__tstate); | |
2183 | if (PyErr_Occurred()) SWIG_fail; | |
2184 | } | |
2185 | Py_INCREF(Py_None); resultobj = Py_None; | |
2186 | return resultobj; | |
2187 | fail: | |
2188 | return NULL; | |
2189 | } | |
2190 | ||
2191 | ||
2192 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2193 | PyObject *resultobj; | |
2194 | wxSize *arg1 = (wxSize *) 0 ; | |
2195 | wxSize *arg2 = 0 ; | |
2196 | wxSize temp2 ; | |
2197 | PyObject * obj0 = 0 ; | |
2198 | PyObject * obj1 = 0 ; | |
2199 | char *kwnames[] = { | |
2200 | (char *) "self",(char *) "sz", NULL | |
2201 | }; | |
2202 | ||
2203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2206 | { | |
2207 | arg2 = &temp2; | |
2208 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2209 | } | |
2210 | { | |
2211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2212 | (arg1)->DecTo((wxSize const &)*arg2); | |
2213 | ||
2214 | wxPyEndAllowThreads(__tstate); | |
2215 | if (PyErr_Occurred()) SWIG_fail; | |
2216 | } | |
2217 | Py_INCREF(Py_None); resultobj = Py_None; | |
2218 | return resultobj; | |
2219 | fail: | |
2220 | return NULL; | |
2221 | } | |
2222 | ||
2223 | ||
2224 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2225 | PyObject *resultobj; | |
2226 | wxSize *arg1 = (wxSize *) 0 ; | |
2227 | int arg2 ; | |
2228 | int arg3 ; | |
2229 | PyObject * obj0 = 0 ; | |
2230 | PyObject * obj1 = 0 ; | |
2231 | PyObject * obj2 = 0 ; | |
2232 | char *kwnames[] = { | |
2233 | (char *) "self",(char *) "w",(char *) "h", NULL | |
2234 | }; | |
2235 | ||
2236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2239 | arg2 = (int) SWIG_AsInt(obj1); | |
2240 | if (PyErr_Occurred()) SWIG_fail; | |
2241 | arg3 = (int) SWIG_AsInt(obj2); | |
2242 | if (PyErr_Occurred()) SWIG_fail; | |
2243 | { | |
2244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2245 | (arg1)->Set(arg2,arg3); | |
2246 | ||
2247 | wxPyEndAllowThreads(__tstate); | |
2248 | if (PyErr_Occurred()) SWIG_fail; | |
2249 | } | |
2250 | Py_INCREF(Py_None); resultobj = Py_None; | |
2251 | return resultobj; | |
2252 | fail: | |
2253 | return NULL; | |
2254 | } | |
2255 | ||
2256 | ||
2257 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2258 | PyObject *resultobj; | |
2259 | wxSize *arg1 = (wxSize *) 0 ; | |
2260 | int arg2 ; | |
2261 | PyObject * obj0 = 0 ; | |
2262 | PyObject * obj1 = 0 ; | |
2263 | char *kwnames[] = { | |
2264 | (char *) "self",(char *) "w", NULL | |
2265 | }; | |
2266 | ||
2267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2270 | arg2 = (int) SWIG_AsInt(obj1); | |
2271 | if (PyErr_Occurred()) SWIG_fail; | |
2272 | { | |
2273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2274 | (arg1)->SetWidth(arg2); | |
2275 | ||
2276 | wxPyEndAllowThreads(__tstate); | |
2277 | if (PyErr_Occurred()) SWIG_fail; | |
2278 | } | |
2279 | Py_INCREF(Py_None); resultobj = Py_None; | |
2280 | return resultobj; | |
2281 | fail: | |
2282 | return NULL; | |
2283 | } | |
2284 | ||
2285 | ||
2286 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2287 | PyObject *resultobj; | |
2288 | wxSize *arg1 = (wxSize *) 0 ; | |
2289 | int arg2 ; | |
2290 | PyObject * obj0 = 0 ; | |
2291 | PyObject * obj1 = 0 ; | |
2292 | char *kwnames[] = { | |
2293 | (char *) "self",(char *) "h", NULL | |
2294 | }; | |
2295 | ||
2296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
2297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2299 | arg2 = (int) SWIG_AsInt(obj1); | |
2300 | if (PyErr_Occurred()) SWIG_fail; | |
2301 | { | |
2302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2303 | (arg1)->SetHeight(arg2); | |
2304 | ||
2305 | wxPyEndAllowThreads(__tstate); | |
2306 | if (PyErr_Occurred()) SWIG_fail; | |
2307 | } | |
2308 | Py_INCREF(Py_None); resultobj = Py_None; | |
2309 | return resultobj; | |
2310 | fail: | |
2311 | return NULL; | |
2312 | } | |
2313 | ||
2314 | ||
2315 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2316 | PyObject *resultobj; | |
2317 | wxSize *arg1 = (wxSize *) 0 ; | |
2318 | int result; | |
2319 | PyObject * obj0 = 0 ; | |
2320 | char *kwnames[] = { | |
2321 | (char *) "self", NULL | |
2322 | }; | |
2323 | ||
2324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2327 | { | |
2328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2329 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2330 | ||
2331 | wxPyEndAllowThreads(__tstate); | |
2332 | if (PyErr_Occurred()) SWIG_fail; | |
2333 | } | |
2334 | resultobj = SWIG_FromInt((int)result); | |
2335 | return resultobj; | |
2336 | fail: | |
2337 | return NULL; | |
2338 | } | |
2339 | ||
2340 | ||
2341 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2342 | PyObject *resultobj; | |
2343 | wxSize *arg1 = (wxSize *) 0 ; | |
2344 | int result; | |
2345 | PyObject * obj0 = 0 ; | |
2346 | char *kwnames[] = { | |
2347 | (char *) "self", NULL | |
2348 | }; | |
2349 | ||
2350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2353 | { | |
2354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2355 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2356 | ||
2357 | wxPyEndAllowThreads(__tstate); | |
2358 | if (PyErr_Occurred()) SWIG_fail; | |
2359 | } | |
2360 | resultobj = SWIG_FromInt((int)result); | |
2361 | return resultobj; | |
2362 | fail: | |
2363 | return NULL; | |
2364 | } | |
2365 | ||
2366 | ||
2367 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2368 | PyObject *resultobj; | |
2369 | wxSize *arg1 = (wxSize *) 0 ; | |
2370 | bool result; | |
2371 | PyObject * obj0 = 0 ; | |
2372 | char *kwnames[] = { | |
2373 | (char *) "self", NULL | |
2374 | }; | |
2375 | ||
2376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2379 | { | |
2380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2381 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2382 | ||
2383 | wxPyEndAllowThreads(__tstate); | |
2384 | if (PyErr_Occurred()) SWIG_fail; | |
2385 | } | |
2386 | { | |
2387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2388 | } | |
2389 | return resultobj; | |
2390 | fail: | |
2391 | return NULL; | |
2392 | } | |
2393 | ||
2394 | ||
2395 | static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2396 | PyObject *resultobj; | |
2397 | wxSize *arg1 = (wxSize *) 0 ; | |
2398 | wxSize *arg2 = 0 ; | |
2399 | wxSize temp2 ; | |
2400 | PyObject * obj0 = 0 ; | |
2401 | PyObject * obj1 = 0 ; | |
2402 | char *kwnames[] = { | |
2403 | (char *) "self",(char *) "size", NULL | |
2404 | }; | |
2405 | ||
2406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2409 | { | |
2410 | arg2 = &temp2; | |
2411 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2412 | } | |
2413 | { | |
2414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2415 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2416 | ||
2417 | wxPyEndAllowThreads(__tstate); | |
2418 | if (PyErr_Occurred()) SWIG_fail; | |
2419 | } | |
2420 | Py_INCREF(Py_None); resultobj = Py_None; | |
2421 | return resultobj; | |
2422 | fail: | |
2423 | return NULL; | |
2424 | } | |
2425 | ||
2426 | ||
2427 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2428 | PyObject *resultobj; | |
2429 | wxSize *arg1 = (wxSize *) 0 ; | |
2430 | PyObject *result; | |
2431 | PyObject * obj0 = 0 ; | |
2432 | char *kwnames[] = { | |
2433 | (char *) "self", NULL | |
2434 | }; | |
2435 | ||
2436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; | |
2437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2439 | { | |
2440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2441 | result = (PyObject *)wxSize_Get(arg1); | |
2442 | ||
2443 | wxPyEndAllowThreads(__tstate); | |
2444 | if (PyErr_Occurred()) SWIG_fail; | |
2445 | } | |
2446 | resultobj = result; | |
2447 | return resultobj; | |
2448 | fail: | |
2449 | return NULL; | |
2450 | } | |
2451 | ||
2452 | ||
2453 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2454 | PyObject *obj; | |
2455 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2456 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2457 | Py_INCREF(obj); | |
2458 | return Py_BuildValue((char *)""); | |
2459 | } | |
2460 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2461 | PyObject *resultobj; | |
2462 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2463 | double arg2 ; | |
2464 | PyObject * obj0 = 0 ; | |
2465 | PyObject * obj1 = 0 ; | |
2466 | char *kwnames[] = { | |
2467 | (char *) "self",(char *) "x", NULL | |
2468 | }; | |
2469 | ||
2470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2473 | arg2 = (double) SWIG_AsDouble(obj1); | |
2474 | if (PyErr_Occurred()) SWIG_fail; | |
2475 | if (arg1) (arg1)->x = arg2; | |
2476 | ||
2477 | Py_INCREF(Py_None); resultobj = Py_None; | |
2478 | return resultobj; | |
2479 | fail: | |
2480 | return NULL; | |
2481 | } | |
2482 | ||
2483 | ||
2484 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2485 | PyObject *resultobj; | |
2486 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2487 | double result; | |
2488 | PyObject * obj0 = 0 ; | |
2489 | char *kwnames[] = { | |
2490 | (char *) "self", NULL | |
2491 | }; | |
2492 | ||
2493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2496 | result = (double) ((arg1)->x); | |
2497 | ||
2498 | resultobj = SWIG_FromDouble((double)result); | |
2499 | return resultobj; | |
2500 | fail: | |
2501 | return NULL; | |
2502 | } | |
2503 | ||
2504 | ||
2505 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2506 | PyObject *resultobj; | |
2507 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2508 | double arg2 ; | |
2509 | PyObject * obj0 = 0 ; | |
2510 | PyObject * obj1 = 0 ; | |
2511 | char *kwnames[] = { | |
2512 | (char *) "self",(char *) "y", NULL | |
2513 | }; | |
2514 | ||
2515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2518 | arg2 = (double) SWIG_AsDouble(obj1); | |
2519 | if (PyErr_Occurred()) SWIG_fail; | |
2520 | if (arg1) (arg1)->y = arg2; | |
2521 | ||
2522 | Py_INCREF(Py_None); resultobj = Py_None; | |
2523 | return resultobj; | |
2524 | fail: | |
2525 | return NULL; | |
2526 | } | |
2527 | ||
2528 | ||
2529 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2530 | PyObject *resultobj; | |
2531 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2532 | double result; | |
2533 | PyObject * obj0 = 0 ; | |
2534 | char *kwnames[] = { | |
2535 | (char *) "self", NULL | |
2536 | }; | |
2537 | ||
2538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2541 | result = (double) ((arg1)->y); | |
2542 | ||
2543 | resultobj = SWIG_FromDouble((double)result); | |
2544 | return resultobj; | |
2545 | fail: | |
2546 | return NULL; | |
2547 | } | |
2548 | ||
2549 | ||
2550 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2551 | PyObject *resultobj; | |
2552 | double arg1 = (double) 0.0 ; | |
2553 | double arg2 = (double) 0.0 ; | |
2554 | wxRealPoint *result; | |
2555 | PyObject * obj0 = 0 ; | |
2556 | PyObject * obj1 = 0 ; | |
2557 | char *kwnames[] = { | |
2558 | (char *) "x",(char *) "y", NULL | |
2559 | }; | |
2560 | ||
2561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; | |
2562 | if (obj0) { | |
2563 | arg1 = (double) SWIG_AsDouble(obj0); | |
2564 | if (PyErr_Occurred()) SWIG_fail; | |
2565 | } | |
2566 | if (obj1) { | |
2567 | arg2 = (double) SWIG_AsDouble(obj1); | |
2568 | if (PyErr_Occurred()) SWIG_fail; | |
2569 | } | |
2570 | { | |
2571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2572 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2573 | ||
2574 | wxPyEndAllowThreads(__tstate); | |
2575 | if (PyErr_Occurred()) SWIG_fail; | |
2576 | } | |
2577 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); | |
2578 | return resultobj; | |
2579 | fail: | |
2580 | return NULL; | |
2581 | } | |
2582 | ||
2583 | ||
2584 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2585 | PyObject *resultobj; | |
2586 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2587 | PyObject * obj0 = 0 ; | |
2588 | char *kwnames[] = { | |
2589 | (char *) "self", NULL | |
2590 | }; | |
2591 | ||
2592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2595 | { | |
2596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2597 | delete arg1; | |
2598 | ||
2599 | wxPyEndAllowThreads(__tstate); | |
2600 | if (PyErr_Occurred()) SWIG_fail; | |
2601 | } | |
2602 | Py_INCREF(Py_None); resultobj = Py_None; | |
2603 | return resultobj; | |
2604 | fail: | |
2605 | return NULL; | |
2606 | } | |
2607 | ||
2608 | ||
2609 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2610 | PyObject *resultobj; | |
2611 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2612 | wxRealPoint *arg2 = 0 ; | |
2613 | bool result; | |
2614 | wxRealPoint temp2 ; | |
2615 | PyObject * obj0 = 0 ; | |
2616 | PyObject * obj1 = 0 ; | |
2617 | char *kwnames[] = { | |
2618 | (char *) "self",(char *) "pt", NULL | |
2619 | }; | |
2620 | ||
2621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2624 | { | |
2625 | arg2 = &temp2; | |
2626 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2627 | } | |
2628 | { | |
2629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2630 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); | |
2631 | ||
2632 | wxPyEndAllowThreads(__tstate); | |
2633 | if (PyErr_Occurred()) SWIG_fail; | |
2634 | } | |
2635 | { | |
2636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2637 | } | |
2638 | return resultobj; | |
2639 | fail: | |
2640 | return NULL; | |
2641 | } | |
2642 | ||
2643 | ||
2644 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2645 | PyObject *resultobj; | |
2646 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2647 | wxRealPoint *arg2 = 0 ; | |
2648 | bool result; | |
2649 | wxRealPoint temp2 ; | |
2650 | PyObject * obj0 = 0 ; | |
2651 | PyObject * obj1 = 0 ; | |
2652 | char *kwnames[] = { | |
2653 | (char *) "self",(char *) "pt", NULL | |
2654 | }; | |
2655 | ||
2656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2659 | { | |
2660 | arg2 = &temp2; | |
2661 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2662 | } | |
2663 | { | |
2664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2665 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); | |
2666 | ||
2667 | wxPyEndAllowThreads(__tstate); | |
2668 | if (PyErr_Occurred()) SWIG_fail; | |
2669 | } | |
2670 | { | |
2671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2672 | } | |
2673 | return resultobj; | |
2674 | fail: | |
2675 | return NULL; | |
2676 | } | |
2677 | ||
2678 | ||
2679 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2680 | PyObject *resultobj; | |
2681 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2682 | wxRealPoint *arg2 = 0 ; | |
2683 | wxRealPoint result; | |
2684 | wxRealPoint temp2 ; | |
2685 | PyObject * obj0 = 0 ; | |
2686 | PyObject * obj1 = 0 ; | |
2687 | char *kwnames[] = { | |
2688 | (char *) "self",(char *) "pt", NULL | |
2689 | }; | |
2690 | ||
2691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; | |
2692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2694 | { | |
2695 | arg2 = &temp2; | |
2696 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2697 | } | |
2698 | { | |
2699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2700 | result = (arg1)->operator +((wxRealPoint const &)*arg2); | |
2701 | ||
2702 | wxPyEndAllowThreads(__tstate); | |
2703 | if (PyErr_Occurred()) SWIG_fail; | |
2704 | } | |
2705 | { | |
2706 | wxRealPoint * resultptr; | |
2707 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2708 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
2709 | } | |
2710 | return resultobj; | |
2711 | fail: | |
2712 | return NULL; | |
2713 | } | |
2714 | ||
2715 | ||
2716 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2717 | PyObject *resultobj; | |
2718 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2719 | wxRealPoint *arg2 = 0 ; | |
2720 | wxRealPoint result; | |
2721 | wxRealPoint temp2 ; | |
2722 | PyObject * obj0 = 0 ; | |
2723 | PyObject * obj1 = 0 ; | |
2724 | char *kwnames[] = { | |
2725 | (char *) "self",(char *) "pt", NULL | |
2726 | }; | |
2727 | ||
2728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2731 | { | |
2732 | arg2 = &temp2; | |
2733 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2734 | } | |
2735 | { | |
2736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2737 | result = (arg1)->operator -((wxRealPoint const &)*arg2); | |
2738 | ||
2739 | wxPyEndAllowThreads(__tstate); | |
2740 | if (PyErr_Occurred()) SWIG_fail; | |
2741 | } | |
2742 | { | |
2743 | wxRealPoint * resultptr; | |
2744 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2745 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
2746 | } | |
2747 | return resultobj; | |
2748 | fail: | |
2749 | return NULL; | |
2750 | } | |
2751 | ||
2752 | ||
2753 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2754 | PyObject *resultobj; | |
2755 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2756 | double arg2 ; | |
2757 | double arg3 ; | |
2758 | PyObject * obj0 = 0 ; | |
2759 | PyObject * obj1 = 0 ; | |
2760 | PyObject * obj2 = 0 ; | |
2761 | char *kwnames[] = { | |
2762 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2763 | }; | |
2764 | ||
2765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2768 | arg2 = (double) SWIG_AsDouble(obj1); | |
2769 | if (PyErr_Occurred()) SWIG_fail; | |
2770 | arg3 = (double) SWIG_AsDouble(obj2); | |
2771 | if (PyErr_Occurred()) SWIG_fail; | |
2772 | { | |
2773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2774 | wxRealPoint_Set(arg1,arg2,arg3); | |
2775 | ||
2776 | wxPyEndAllowThreads(__tstate); | |
2777 | if (PyErr_Occurred()) SWIG_fail; | |
2778 | } | |
2779 | Py_INCREF(Py_None); resultobj = Py_None; | |
2780 | return resultobj; | |
2781 | fail: | |
2782 | return NULL; | |
2783 | } | |
2784 | ||
2785 | ||
2786 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2787 | PyObject *resultobj; | |
2788 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2789 | PyObject *result; | |
2790 | PyObject * obj0 = 0 ; | |
2791 | char *kwnames[] = { | |
2792 | (char *) "self", NULL | |
2793 | }; | |
2794 | ||
2795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; | |
2796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2798 | { | |
2799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2800 | result = (PyObject *)wxRealPoint_Get(arg1); | |
2801 | ||
2802 | wxPyEndAllowThreads(__tstate); | |
2803 | if (PyErr_Occurred()) SWIG_fail; | |
2804 | } | |
2805 | resultobj = result; | |
2806 | return resultobj; | |
2807 | fail: | |
2808 | return NULL; | |
2809 | } | |
2810 | ||
2811 | ||
2812 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2813 | PyObject *obj; | |
2814 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2815 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2816 | Py_INCREF(obj); | |
2817 | return Py_BuildValue((char *)""); | |
2818 | } | |
2819 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2820 | PyObject *resultobj; | |
2821 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2822 | int arg2 ; | |
2823 | PyObject * obj0 = 0 ; | |
2824 | PyObject * obj1 = 0 ; | |
2825 | char *kwnames[] = { | |
2826 | (char *) "self",(char *) "x", NULL | |
2827 | }; | |
2828 | ||
2829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2832 | arg2 = (int) SWIG_AsInt(obj1); | |
2833 | if (PyErr_Occurred()) SWIG_fail; | |
2834 | if (arg1) (arg1)->x = arg2; | |
2835 | ||
2836 | Py_INCREF(Py_None); resultobj = Py_None; | |
2837 | return resultobj; | |
2838 | fail: | |
2839 | return NULL; | |
2840 | } | |
2841 | ||
2842 | ||
2843 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2844 | PyObject *resultobj; | |
2845 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2846 | int result; | |
2847 | PyObject * obj0 = 0 ; | |
2848 | char *kwnames[] = { | |
2849 | (char *) "self", NULL | |
2850 | }; | |
2851 | ||
2852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2855 | result = (int) ((arg1)->x); | |
2856 | ||
2857 | resultobj = SWIG_FromInt((int)result); | |
2858 | return resultobj; | |
2859 | fail: | |
2860 | return NULL; | |
2861 | } | |
2862 | ||
2863 | ||
2864 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2865 | PyObject *resultobj; | |
2866 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2867 | int arg2 ; | |
2868 | PyObject * obj0 = 0 ; | |
2869 | PyObject * obj1 = 0 ; | |
2870 | char *kwnames[] = { | |
2871 | (char *) "self",(char *) "y", NULL | |
2872 | }; | |
2873 | ||
2874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2877 | arg2 = (int) SWIG_AsInt(obj1); | |
2878 | if (PyErr_Occurred()) SWIG_fail; | |
2879 | if (arg1) (arg1)->y = arg2; | |
2880 | ||
2881 | Py_INCREF(Py_None); resultobj = Py_None; | |
2882 | return resultobj; | |
2883 | fail: | |
2884 | return NULL; | |
2885 | } | |
2886 | ||
2887 | ||
2888 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2889 | PyObject *resultobj; | |
2890 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2891 | int result; | |
2892 | PyObject * obj0 = 0 ; | |
2893 | char *kwnames[] = { | |
2894 | (char *) "self", NULL | |
2895 | }; | |
2896 | ||
2897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2900 | result = (int) ((arg1)->y); | |
2901 | ||
2902 | resultobj = SWIG_FromInt((int)result); | |
2903 | return resultobj; | |
2904 | fail: | |
2905 | return NULL; | |
2906 | } | |
2907 | ||
2908 | ||
2909 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2910 | PyObject *resultobj; | |
2911 | int arg1 = (int) 0 ; | |
2912 | int arg2 = (int) 0 ; | |
2913 | wxPoint *result; | |
2914 | PyObject * obj0 = 0 ; | |
2915 | PyObject * obj1 = 0 ; | |
2916 | char *kwnames[] = { | |
2917 | (char *) "x",(char *) "y", NULL | |
2918 | }; | |
2919 | ||
2920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; | |
2921 | if (obj0) { | |
2922 | arg1 = (int) SWIG_AsInt(obj0); | |
2923 | if (PyErr_Occurred()) SWIG_fail; | |
2924 | } | |
2925 | if (obj1) { | |
2926 | arg2 = (int) SWIG_AsInt(obj1); | |
2927 | if (PyErr_Occurred()) SWIG_fail; | |
2928 | } | |
2929 | { | |
2930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2931 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2932 | ||
2933 | wxPyEndAllowThreads(__tstate); | |
2934 | if (PyErr_Occurred()) SWIG_fail; | |
2935 | } | |
2936 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); | |
2937 | return resultobj; | |
2938 | fail: | |
2939 | return NULL; | |
2940 | } | |
2941 | ||
2942 | ||
2943 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2944 | PyObject *resultobj; | |
2945 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2946 | PyObject * obj0 = 0 ; | |
2947 | char *kwnames[] = { | |
2948 | (char *) "self", NULL | |
2949 | }; | |
2950 | ||
2951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2954 | { | |
2955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2956 | delete arg1; | |
2957 | ||
2958 | wxPyEndAllowThreads(__tstate); | |
2959 | if (PyErr_Occurred()) SWIG_fail; | |
2960 | } | |
2961 | Py_INCREF(Py_None); resultobj = Py_None; | |
2962 | return resultobj; | |
2963 | fail: | |
2964 | return NULL; | |
2965 | } | |
2966 | ||
2967 | ||
2968 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2969 | PyObject *resultobj; | |
2970 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2971 | wxPoint *arg2 = 0 ; | |
2972 | bool result; | |
2973 | wxPoint temp2 ; | |
2974 | PyObject * obj0 = 0 ; | |
2975 | PyObject * obj1 = 0 ; | |
2976 | char *kwnames[] = { | |
2977 | (char *) "self",(char *) "pt", NULL | |
2978 | }; | |
2979 | ||
2980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2983 | { | |
2984 | arg2 = &temp2; | |
2985 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2986 | } | |
2987 | { | |
2988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2989 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); | |
2990 | ||
2991 | wxPyEndAllowThreads(__tstate); | |
2992 | if (PyErr_Occurred()) SWIG_fail; | |
2993 | } | |
2994 | { | |
2995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2996 | } | |
2997 | return resultobj; | |
2998 | fail: | |
2999 | return NULL; | |
3000 | } | |
3001 | ||
3002 | ||
3003 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3004 | PyObject *resultobj; | |
3005 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3006 | wxPoint *arg2 = 0 ; | |
3007 | bool result; | |
3008 | wxPoint temp2 ; | |
3009 | PyObject * obj0 = 0 ; | |
3010 | PyObject * obj1 = 0 ; | |
3011 | char *kwnames[] = { | |
3012 | (char *) "self",(char *) "pt", NULL | |
3013 | }; | |
3014 | ||
3015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3018 | { | |
3019 | arg2 = &temp2; | |
3020 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3021 | } | |
3022 | { | |
3023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3024 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); | |
3025 | ||
3026 | wxPyEndAllowThreads(__tstate); | |
3027 | if (PyErr_Occurred()) SWIG_fail; | |
3028 | } | |
3029 | { | |
3030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3031 | } | |
3032 | return resultobj; | |
3033 | fail: | |
3034 | return NULL; | |
3035 | } | |
3036 | ||
3037 | ||
3038 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3039 | PyObject *resultobj; | |
3040 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3041 | wxPoint *arg2 = 0 ; | |
3042 | wxPoint result; | |
3043 | wxPoint temp2 ; | |
3044 | PyObject * obj0 = 0 ; | |
3045 | PyObject * obj1 = 0 ; | |
3046 | char *kwnames[] = { | |
3047 | (char *) "self",(char *) "pt", NULL | |
3048 | }; | |
3049 | ||
3050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
3051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3053 | { | |
3054 | arg2 = &temp2; | |
3055 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3056 | } | |
3057 | { | |
3058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3059 | result = (arg1)->operator +((wxPoint const &)*arg2); | |
3060 | ||
3061 | wxPyEndAllowThreads(__tstate); | |
3062 | if (PyErr_Occurred()) SWIG_fail; | |
3063 | } | |
3064 | { | |
3065 | wxPoint * resultptr; | |
3066 | resultptr = new wxPoint((wxPoint &) result); | |
3067 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3068 | } | |
3069 | return resultobj; | |
3070 | fail: | |
3071 | return NULL; | |
3072 | } | |
3073 | ||
3074 | ||
3075 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3076 | PyObject *resultobj; | |
3077 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3078 | wxPoint *arg2 = 0 ; | |
3079 | wxPoint result; | |
3080 | wxPoint temp2 ; | |
3081 | PyObject * obj0 = 0 ; | |
3082 | PyObject * obj1 = 0 ; | |
3083 | char *kwnames[] = { | |
3084 | (char *) "self",(char *) "pt", NULL | |
3085 | }; | |
3086 | ||
3087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3090 | { | |
3091 | arg2 = &temp2; | |
3092 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3093 | } | |
3094 | { | |
3095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3096 | result = (arg1)->operator -((wxPoint const &)*arg2); | |
3097 | ||
3098 | wxPyEndAllowThreads(__tstate); | |
3099 | if (PyErr_Occurred()) SWIG_fail; | |
3100 | } | |
3101 | { | |
3102 | wxPoint * resultptr; | |
3103 | resultptr = new wxPoint((wxPoint &) result); | |
3104 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3105 | } | |
3106 | return resultobj; | |
3107 | fail: | |
3108 | return NULL; | |
3109 | } | |
3110 | ||
3111 | ||
3112 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3113 | PyObject *resultobj; | |
3114 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3115 | wxPoint *arg2 = 0 ; | |
3116 | wxPoint *result; | |
3117 | wxPoint temp2 ; | |
3118 | PyObject * obj0 = 0 ; | |
3119 | PyObject * obj1 = 0 ; | |
3120 | char *kwnames[] = { | |
3121 | (char *) "self",(char *) "pt", NULL | |
3122 | }; | |
3123 | ||
3124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3127 | { | |
3128 | arg2 = &temp2; | |
3129 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3130 | } | |
3131 | { | |
3132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3133 | { | |
3134 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3135 | result = (wxPoint *) &_result_ref; | |
3136 | } | |
3137 | ||
3138 | wxPyEndAllowThreads(__tstate); | |
3139 | if (PyErr_Occurred()) SWIG_fail; | |
3140 | } | |
3141 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
3142 | return resultobj; | |
3143 | fail: | |
3144 | return NULL; | |
3145 | } | |
3146 | ||
3147 | ||
3148 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3149 | PyObject *resultobj; | |
3150 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3151 | wxPoint *arg2 = 0 ; | |
3152 | wxPoint *result; | |
3153 | wxPoint temp2 ; | |
3154 | PyObject * obj0 = 0 ; | |
3155 | PyObject * obj1 = 0 ; | |
3156 | char *kwnames[] = { | |
3157 | (char *) "self",(char *) "pt", NULL | |
3158 | }; | |
3159 | ||
3160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
3161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3163 | { | |
3164 | arg2 = &temp2; | |
3165 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3166 | } | |
3167 | { | |
3168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3169 | { | |
3170 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3171 | result = (wxPoint *) &_result_ref; | |
3172 | } | |
3173 | ||
3174 | wxPyEndAllowThreads(__tstate); | |
3175 | if (PyErr_Occurred()) SWIG_fail; | |
3176 | } | |
3177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
3178 | return resultobj; | |
3179 | fail: | |
3180 | return NULL; | |
3181 | } | |
3182 | ||
3183 | ||
3184 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3185 | PyObject *resultobj; | |
3186 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3187 | long arg2 ; | |
3188 | long arg3 ; | |
3189 | PyObject * obj0 = 0 ; | |
3190 | PyObject * obj1 = 0 ; | |
3191 | PyObject * obj2 = 0 ; | |
3192 | char *kwnames[] = { | |
3193 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3194 | }; | |
3195 | ||
3196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3199 | arg2 = (long) SWIG_AsLong(obj1); | |
3200 | if (PyErr_Occurred()) SWIG_fail; | |
3201 | arg3 = (long) SWIG_AsLong(obj2); | |
3202 | if (PyErr_Occurred()) SWIG_fail; | |
3203 | { | |
3204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3205 | wxPoint_Set(arg1,arg2,arg3); | |
3206 | ||
3207 | wxPyEndAllowThreads(__tstate); | |
3208 | if (PyErr_Occurred()) SWIG_fail; | |
3209 | } | |
3210 | Py_INCREF(Py_None); resultobj = Py_None; | |
3211 | return resultobj; | |
3212 | fail: | |
3213 | return NULL; | |
3214 | } | |
3215 | ||
3216 | ||
3217 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3218 | PyObject *resultobj; | |
3219 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3220 | PyObject *result; | |
3221 | PyObject * obj0 = 0 ; | |
3222 | char *kwnames[] = { | |
3223 | (char *) "self", NULL | |
3224 | }; | |
3225 | ||
3226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; | |
3227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3229 | { | |
3230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3231 | result = (PyObject *)wxPoint_Get(arg1); | |
3232 | ||
3233 | wxPyEndAllowThreads(__tstate); | |
3234 | if (PyErr_Occurred()) SWIG_fail; | |
3235 | } | |
3236 | resultobj = result; | |
3237 | return resultobj; | |
3238 | fail: | |
3239 | return NULL; | |
3240 | } | |
3241 | ||
3242 | ||
3243 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
3244 | PyObject *obj; | |
3245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3246 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3247 | Py_INCREF(obj); | |
3248 | return Py_BuildValue((char *)""); | |
3249 | } | |
3250 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3251 | PyObject *resultobj; | |
3252 | int arg1 = (int) 0 ; | |
3253 | int arg2 = (int) 0 ; | |
3254 | int arg3 = (int) 0 ; | |
3255 | int arg4 = (int) 0 ; | |
3256 | wxRect *result; | |
3257 | PyObject * obj0 = 0 ; | |
3258 | PyObject * obj1 = 0 ; | |
3259 | PyObject * obj2 = 0 ; | |
3260 | PyObject * obj3 = 0 ; | |
3261 | char *kwnames[] = { | |
3262 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3263 | }; | |
3264 | ||
3265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3266 | if (obj0) { | |
3267 | arg1 = (int) SWIG_AsInt(obj0); | |
3268 | if (PyErr_Occurred()) SWIG_fail; | |
3269 | } | |
3270 | if (obj1) { | |
3271 | arg2 = (int) SWIG_AsInt(obj1); | |
3272 | if (PyErr_Occurred()) SWIG_fail; | |
3273 | } | |
3274 | if (obj2) { | |
3275 | arg3 = (int) SWIG_AsInt(obj2); | |
3276 | if (PyErr_Occurred()) SWIG_fail; | |
3277 | } | |
3278 | if (obj3) { | |
3279 | arg4 = (int) SWIG_AsInt(obj3); | |
3280 | if (PyErr_Occurred()) SWIG_fail; | |
3281 | } | |
3282 | { | |
3283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3284 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3285 | ||
3286 | wxPyEndAllowThreads(__tstate); | |
3287 | if (PyErr_Occurred()) SWIG_fail; | |
3288 | } | |
3289 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3290 | return resultobj; | |
3291 | fail: | |
3292 | return NULL; | |
3293 | } | |
3294 | ||
3295 | ||
3296 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3297 | PyObject *resultobj; | |
3298 | wxPoint *arg1 = 0 ; | |
3299 | wxPoint *arg2 = 0 ; | |
3300 | wxRect *result; | |
3301 | wxPoint temp1 ; | |
3302 | wxPoint temp2 ; | |
3303 | PyObject * obj0 = 0 ; | |
3304 | PyObject * obj1 = 0 ; | |
3305 | char *kwnames[] = { | |
3306 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3307 | }; | |
3308 | ||
3309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3310 | { | |
3311 | arg1 = &temp1; | |
3312 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3313 | } | |
3314 | { | |
3315 | arg2 = &temp2; | |
3316 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3317 | } | |
3318 | { | |
3319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3320 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3321 | ||
3322 | wxPyEndAllowThreads(__tstate); | |
3323 | if (PyErr_Occurred()) SWIG_fail; | |
3324 | } | |
3325 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3326 | return resultobj; | |
3327 | fail: | |
3328 | return NULL; | |
3329 | } | |
3330 | ||
3331 | ||
3332 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3333 | PyObject *resultobj; | |
3334 | wxPoint *arg1 = 0 ; | |
3335 | wxSize *arg2 = 0 ; | |
3336 | wxRect *result; | |
3337 | wxPoint temp1 ; | |
3338 | wxSize temp2 ; | |
3339 | PyObject * obj0 = 0 ; | |
3340 | PyObject * obj1 = 0 ; | |
3341 | char *kwnames[] = { | |
3342 | (char *) "pos",(char *) "size", NULL | |
3343 | }; | |
3344 | ||
3345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3346 | { | |
3347 | arg1 = &temp1; | |
3348 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3349 | } | |
3350 | { | |
3351 | arg2 = &temp2; | |
3352 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3353 | } | |
3354 | { | |
3355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3356 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3357 | ||
3358 | wxPyEndAllowThreads(__tstate); | |
3359 | if (PyErr_Occurred()) SWIG_fail; | |
3360 | } | |
3361 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3362 | return resultobj; | |
3363 | fail: | |
3364 | return NULL; | |
3365 | } | |
3366 | ||
3367 | ||
3368 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3369 | PyObject *resultobj; | |
3370 | wxRect *arg1 = (wxRect *) 0 ; | |
3371 | PyObject * obj0 = 0 ; | |
3372 | char *kwnames[] = { | |
3373 | (char *) "self", NULL | |
3374 | }; | |
3375 | ||
3376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
3377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3379 | { | |
3380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3381 | delete arg1; | |
3382 | ||
3383 | wxPyEndAllowThreads(__tstate); | |
3384 | if (PyErr_Occurred()) SWIG_fail; | |
3385 | } | |
3386 | Py_INCREF(Py_None); resultobj = Py_None; | |
3387 | return resultobj; | |
3388 | fail: | |
3389 | return NULL; | |
3390 | } | |
3391 | ||
3392 | ||
3393 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3394 | PyObject *resultobj; | |
3395 | wxRect *arg1 = (wxRect *) 0 ; | |
3396 | int result; | |
3397 | PyObject * obj0 = 0 ; | |
3398 | char *kwnames[] = { | |
3399 | (char *) "self", NULL | |
3400 | }; | |
3401 | ||
3402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
3403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3405 | { | |
3406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3407 | result = (int)((wxRect const *)arg1)->GetX(); | |
3408 | ||
3409 | wxPyEndAllowThreads(__tstate); | |
3410 | if (PyErr_Occurred()) SWIG_fail; | |
3411 | } | |
3412 | resultobj = SWIG_FromInt((int)result); | |
3413 | return resultobj; | |
3414 | fail: | |
3415 | return NULL; | |
3416 | } | |
3417 | ||
3418 | ||
3419 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3420 | PyObject *resultobj; | |
3421 | wxRect *arg1 = (wxRect *) 0 ; | |
3422 | int arg2 ; | |
3423 | PyObject * obj0 = 0 ; | |
3424 | PyObject * obj1 = 0 ; | |
3425 | char *kwnames[] = { | |
3426 | (char *) "self",(char *) "x", NULL | |
3427 | }; | |
3428 | ||
3429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; | |
3430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3432 | arg2 = (int) SWIG_AsInt(obj1); | |
3433 | if (PyErr_Occurred()) SWIG_fail; | |
3434 | { | |
3435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3436 | (arg1)->SetX(arg2); | |
3437 | ||
3438 | wxPyEndAllowThreads(__tstate); | |
3439 | if (PyErr_Occurred()) SWIG_fail; | |
3440 | } | |
3441 | Py_INCREF(Py_None); resultobj = Py_None; | |
3442 | return resultobj; | |
3443 | fail: | |
3444 | return NULL; | |
3445 | } | |
3446 | ||
3447 | ||
3448 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3449 | PyObject *resultobj; | |
3450 | wxRect *arg1 = (wxRect *) 0 ; | |
3451 | int result; | |
3452 | PyObject * obj0 = 0 ; | |
3453 | char *kwnames[] = { | |
3454 | (char *) "self", NULL | |
3455 | }; | |
3456 | ||
3457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
3458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3460 | { | |
3461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3462 | result = (int)(arg1)->GetY(); | |
3463 | ||
3464 | wxPyEndAllowThreads(__tstate); | |
3465 | if (PyErr_Occurred()) SWIG_fail; | |
3466 | } | |
3467 | resultobj = SWIG_FromInt((int)result); | |
3468 | return resultobj; | |
3469 | fail: | |
3470 | return NULL; | |
3471 | } | |
3472 | ||
3473 | ||
3474 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3475 | PyObject *resultobj; | |
3476 | wxRect *arg1 = (wxRect *) 0 ; | |
3477 | int arg2 ; | |
3478 | PyObject * obj0 = 0 ; | |
3479 | PyObject * obj1 = 0 ; | |
3480 | char *kwnames[] = { | |
3481 | (char *) "self",(char *) "y", NULL | |
3482 | }; | |
3483 | ||
3484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; | |
3485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3487 | arg2 = (int) SWIG_AsInt(obj1); | |
3488 | if (PyErr_Occurred()) SWIG_fail; | |
3489 | { | |
3490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3491 | (arg1)->SetY(arg2); | |
3492 | ||
3493 | wxPyEndAllowThreads(__tstate); | |
3494 | if (PyErr_Occurred()) SWIG_fail; | |
3495 | } | |
3496 | Py_INCREF(Py_None); resultobj = Py_None; | |
3497 | return resultobj; | |
3498 | fail: | |
3499 | return NULL; | |
3500 | } | |
3501 | ||
3502 | ||
3503 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3504 | PyObject *resultobj; | |
3505 | wxRect *arg1 = (wxRect *) 0 ; | |
3506 | int result; | |
3507 | PyObject * obj0 = 0 ; | |
3508 | char *kwnames[] = { | |
3509 | (char *) "self", NULL | |
3510 | }; | |
3511 | ||
3512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
3513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3515 | { | |
3516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3517 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3518 | ||
3519 | wxPyEndAllowThreads(__tstate); | |
3520 | if (PyErr_Occurred()) SWIG_fail; | |
3521 | } | |
3522 | resultobj = SWIG_FromInt((int)result); | |
3523 | return resultobj; | |
3524 | fail: | |
3525 | return NULL; | |
3526 | } | |
3527 | ||
3528 | ||
3529 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3530 | PyObject *resultobj; | |
3531 | wxRect *arg1 = (wxRect *) 0 ; | |
3532 | int arg2 ; | |
3533 | PyObject * obj0 = 0 ; | |
3534 | PyObject * obj1 = 0 ; | |
3535 | char *kwnames[] = { | |
3536 | (char *) "self",(char *) "w", NULL | |
3537 | }; | |
3538 | ||
3539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3542 | arg2 = (int) SWIG_AsInt(obj1); | |
3543 | if (PyErr_Occurred()) SWIG_fail; | |
3544 | { | |
3545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3546 | (arg1)->SetWidth(arg2); | |
3547 | ||
3548 | wxPyEndAllowThreads(__tstate); | |
3549 | if (PyErr_Occurred()) SWIG_fail; | |
3550 | } | |
3551 | Py_INCREF(Py_None); resultobj = Py_None; | |
3552 | return resultobj; | |
3553 | fail: | |
3554 | return NULL; | |
3555 | } | |
3556 | ||
3557 | ||
3558 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3559 | PyObject *resultobj; | |
3560 | wxRect *arg1 = (wxRect *) 0 ; | |
3561 | int result; | |
3562 | PyObject * obj0 = 0 ; | |
3563 | char *kwnames[] = { | |
3564 | (char *) "self", NULL | |
3565 | }; | |
3566 | ||
3567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3570 | { | |
3571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3572 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3573 | ||
3574 | wxPyEndAllowThreads(__tstate); | |
3575 | if (PyErr_Occurred()) SWIG_fail; | |
3576 | } | |
3577 | resultobj = SWIG_FromInt((int)result); | |
3578 | return resultobj; | |
3579 | fail: | |
3580 | return NULL; | |
3581 | } | |
3582 | ||
3583 | ||
3584 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3585 | PyObject *resultobj; | |
3586 | wxRect *arg1 = (wxRect *) 0 ; | |
3587 | int arg2 ; | |
3588 | PyObject * obj0 = 0 ; | |
3589 | PyObject * obj1 = 0 ; | |
3590 | char *kwnames[] = { | |
3591 | (char *) "self",(char *) "h", NULL | |
3592 | }; | |
3593 | ||
3594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3597 | arg2 = (int) SWIG_AsInt(obj1); | |
3598 | if (PyErr_Occurred()) SWIG_fail; | |
3599 | { | |
3600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3601 | (arg1)->SetHeight(arg2); | |
3602 | ||
3603 | wxPyEndAllowThreads(__tstate); | |
3604 | if (PyErr_Occurred()) SWIG_fail; | |
3605 | } | |
3606 | Py_INCREF(Py_None); resultobj = Py_None; | |
3607 | return resultobj; | |
3608 | fail: | |
3609 | return NULL; | |
3610 | } | |
3611 | ||
3612 | ||
3613 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3614 | PyObject *resultobj; | |
3615 | wxRect *arg1 = (wxRect *) 0 ; | |
3616 | wxPoint result; | |
3617 | PyObject * obj0 = 0 ; | |
3618 | char *kwnames[] = { | |
3619 | (char *) "self", NULL | |
3620 | }; | |
3621 | ||
3622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
3623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3625 | { | |
3626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3627 | result = ((wxRect const *)arg1)->GetPosition(); | |
3628 | ||
3629 | wxPyEndAllowThreads(__tstate); | |
3630 | if (PyErr_Occurred()) SWIG_fail; | |
3631 | } | |
3632 | { | |
3633 | wxPoint * resultptr; | |
3634 | resultptr = new wxPoint((wxPoint &) result); | |
3635 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3636 | } | |
3637 | return resultobj; | |
3638 | fail: | |
3639 | return NULL; | |
3640 | } | |
3641 | ||
3642 | ||
3643 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3644 | PyObject *resultobj; | |
3645 | wxRect *arg1 = (wxRect *) 0 ; | |
3646 | wxPoint *arg2 = 0 ; | |
3647 | wxPoint temp2 ; | |
3648 | PyObject * obj0 = 0 ; | |
3649 | PyObject * obj1 = 0 ; | |
3650 | char *kwnames[] = { | |
3651 | (char *) "self",(char *) "p", NULL | |
3652 | }; | |
3653 | ||
3654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
3655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3657 | { | |
3658 | arg2 = &temp2; | |
3659 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3660 | } | |
3661 | { | |
3662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3663 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3664 | ||
3665 | wxPyEndAllowThreads(__tstate); | |
3666 | if (PyErr_Occurred()) SWIG_fail; | |
3667 | } | |
3668 | Py_INCREF(Py_None); resultobj = Py_None; | |
3669 | return resultobj; | |
3670 | fail: | |
3671 | return NULL; | |
3672 | } | |
3673 | ||
3674 | ||
3675 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3676 | PyObject *resultobj; | |
3677 | wxRect *arg1 = (wxRect *) 0 ; | |
3678 | wxSize result; | |
3679 | PyObject * obj0 = 0 ; | |
3680 | char *kwnames[] = { | |
3681 | (char *) "self", NULL | |
3682 | }; | |
3683 | ||
3684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
3685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3687 | { | |
3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3689 | result = ((wxRect const *)arg1)->GetSize(); | |
3690 | ||
3691 | wxPyEndAllowThreads(__tstate); | |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
3693 | } | |
3694 | { | |
3695 | wxSize * resultptr; | |
3696 | resultptr = new wxSize((wxSize &) result); | |
3697 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3698 | } | |
3699 | return resultobj; | |
3700 | fail: | |
3701 | return NULL; | |
3702 | } | |
3703 | ||
3704 | ||
3705 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3706 | PyObject *resultobj; | |
3707 | wxRect *arg1 = (wxRect *) 0 ; | |
3708 | wxSize *arg2 = 0 ; | |
3709 | wxSize temp2 ; | |
3710 | PyObject * obj0 = 0 ; | |
3711 | PyObject * obj1 = 0 ; | |
3712 | char *kwnames[] = { | |
3713 | (char *) "self",(char *) "s", NULL | |
3714 | }; | |
3715 | ||
3716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3719 | { | |
3720 | arg2 = &temp2; | |
3721 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3722 | } | |
3723 | { | |
3724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3725 | (arg1)->SetSize((wxSize const &)*arg2); | |
3726 | ||
3727 | wxPyEndAllowThreads(__tstate); | |
3728 | if (PyErr_Occurred()) SWIG_fail; | |
3729 | } | |
3730 | Py_INCREF(Py_None); resultobj = Py_None; | |
3731 | return resultobj; | |
3732 | fail: | |
3733 | return NULL; | |
3734 | } | |
3735 | ||
3736 | ||
3737 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3738 | PyObject *resultobj; | |
3739 | wxRect *arg1 = (wxRect *) 0 ; | |
3740 | wxPoint result; | |
3741 | PyObject * obj0 = 0 ; | |
3742 | char *kwnames[] = { | |
3743 | (char *) "self", NULL | |
3744 | }; | |
3745 | ||
3746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
3747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3749 | { | |
3750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3751 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3752 | ||
3753 | wxPyEndAllowThreads(__tstate); | |
3754 | if (PyErr_Occurred()) SWIG_fail; | |
3755 | } | |
3756 | { | |
3757 | wxPoint * resultptr; | |
3758 | resultptr = new wxPoint((wxPoint &) result); | |
3759 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3760 | } | |
3761 | return resultobj; | |
3762 | fail: | |
3763 | return NULL; | |
3764 | } | |
3765 | ||
3766 | ||
3767 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3768 | PyObject *resultobj; | |
3769 | wxRect *arg1 = (wxRect *) 0 ; | |
3770 | wxPoint *arg2 = 0 ; | |
3771 | wxPoint temp2 ; | |
3772 | PyObject * obj0 = 0 ; | |
3773 | PyObject * obj1 = 0 ; | |
3774 | char *kwnames[] = { | |
3775 | (char *) "self",(char *) "p", NULL | |
3776 | }; | |
3777 | ||
3778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
3779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3781 | { | |
3782 | arg2 = &temp2; | |
3783 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3784 | } | |
3785 | { | |
3786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3787 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3788 | ||
3789 | wxPyEndAllowThreads(__tstate); | |
3790 | if (PyErr_Occurred()) SWIG_fail; | |
3791 | } | |
3792 | Py_INCREF(Py_None); resultobj = Py_None; | |
3793 | return resultobj; | |
3794 | fail: | |
3795 | return NULL; | |
3796 | } | |
3797 | ||
3798 | ||
3799 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3800 | PyObject *resultobj; | |
3801 | wxRect *arg1 = (wxRect *) 0 ; | |
3802 | wxPoint result; | |
3803 | PyObject * obj0 = 0 ; | |
3804 | char *kwnames[] = { | |
3805 | (char *) "self", NULL | |
3806 | }; | |
3807 | ||
3808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
3809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3811 | { | |
3812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3813 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3814 | ||
3815 | wxPyEndAllowThreads(__tstate); | |
3816 | if (PyErr_Occurred()) SWIG_fail; | |
3817 | } | |
3818 | { | |
3819 | wxPoint * resultptr; | |
3820 | resultptr = new wxPoint((wxPoint &) result); | |
3821 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3822 | } | |
3823 | return resultobj; | |
3824 | fail: | |
3825 | return NULL; | |
3826 | } | |
3827 | ||
3828 | ||
3829 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3830 | PyObject *resultobj; | |
3831 | wxRect *arg1 = (wxRect *) 0 ; | |
3832 | wxPoint *arg2 = 0 ; | |
3833 | wxPoint temp2 ; | |
3834 | PyObject * obj0 = 0 ; | |
3835 | PyObject * obj1 = 0 ; | |
3836 | char *kwnames[] = { | |
3837 | (char *) "self",(char *) "p", NULL | |
3838 | }; | |
3839 | ||
3840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
3841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3843 | { | |
3844 | arg2 = &temp2; | |
3845 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3846 | } | |
3847 | { | |
3848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3849 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3850 | ||
3851 | wxPyEndAllowThreads(__tstate); | |
3852 | if (PyErr_Occurred()) SWIG_fail; | |
3853 | } | |
3854 | Py_INCREF(Py_None); resultobj = Py_None; | |
3855 | return resultobj; | |
3856 | fail: | |
3857 | return NULL; | |
3858 | } | |
3859 | ||
3860 | ||
3861 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3862 | PyObject *resultobj; | |
3863 | wxRect *arg1 = (wxRect *) 0 ; | |
3864 | int result; | |
3865 | PyObject * obj0 = 0 ; | |
3866 | char *kwnames[] = { | |
3867 | (char *) "self", NULL | |
3868 | }; | |
3869 | ||
3870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
3871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3873 | { | |
3874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3875 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3876 | ||
3877 | wxPyEndAllowThreads(__tstate); | |
3878 | if (PyErr_Occurred()) SWIG_fail; | |
3879 | } | |
3880 | resultobj = SWIG_FromInt((int)result); | |
3881 | return resultobj; | |
3882 | fail: | |
3883 | return NULL; | |
3884 | } | |
3885 | ||
3886 | ||
3887 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3888 | PyObject *resultobj; | |
3889 | wxRect *arg1 = (wxRect *) 0 ; | |
3890 | int result; | |
3891 | PyObject * obj0 = 0 ; | |
3892 | char *kwnames[] = { | |
3893 | (char *) "self", NULL | |
3894 | }; | |
3895 | ||
3896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
3897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3899 | { | |
3900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3901 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3902 | ||
3903 | wxPyEndAllowThreads(__tstate); | |
3904 | if (PyErr_Occurred()) SWIG_fail; | |
3905 | } | |
3906 | resultobj = SWIG_FromInt((int)result); | |
3907 | return resultobj; | |
3908 | fail: | |
3909 | return NULL; | |
3910 | } | |
3911 | ||
3912 | ||
3913 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3914 | PyObject *resultobj; | |
3915 | wxRect *arg1 = (wxRect *) 0 ; | |
3916 | int result; | |
3917 | PyObject * obj0 = 0 ; | |
3918 | char *kwnames[] = { | |
3919 | (char *) "self", NULL | |
3920 | }; | |
3921 | ||
3922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
3923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3925 | { | |
3926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3927 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3928 | ||
3929 | wxPyEndAllowThreads(__tstate); | |
3930 | if (PyErr_Occurred()) SWIG_fail; | |
3931 | } | |
3932 | resultobj = SWIG_FromInt((int)result); | |
3933 | return resultobj; | |
3934 | fail: | |
3935 | return NULL; | |
3936 | } | |
3937 | ||
3938 | ||
3939 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3940 | PyObject *resultobj; | |
3941 | wxRect *arg1 = (wxRect *) 0 ; | |
3942 | int result; | |
3943 | PyObject * obj0 = 0 ; | |
3944 | char *kwnames[] = { | |
3945 | (char *) "self", NULL | |
3946 | }; | |
3947 | ||
3948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
3949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3951 | { | |
3952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3953 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3954 | ||
3955 | wxPyEndAllowThreads(__tstate); | |
3956 | if (PyErr_Occurred()) SWIG_fail; | |
3957 | } | |
3958 | resultobj = SWIG_FromInt((int)result); | |
3959 | return resultobj; | |
3960 | fail: | |
3961 | return NULL; | |
3962 | } | |
3963 | ||
3964 | ||
3965 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3966 | PyObject *resultobj; | |
3967 | wxRect *arg1 = (wxRect *) 0 ; | |
3968 | int arg2 ; | |
3969 | PyObject * obj0 = 0 ; | |
3970 | PyObject * obj1 = 0 ; | |
3971 | char *kwnames[] = { | |
3972 | (char *) "self",(char *) "left", NULL | |
3973 | }; | |
3974 | ||
3975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; | |
3976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3978 | arg2 = (int) SWIG_AsInt(obj1); | |
3979 | if (PyErr_Occurred()) SWIG_fail; | |
3980 | { | |
3981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3982 | (arg1)->SetLeft(arg2); | |
3983 | ||
3984 | wxPyEndAllowThreads(__tstate); | |
3985 | if (PyErr_Occurred()) SWIG_fail; | |
3986 | } | |
3987 | Py_INCREF(Py_None); resultobj = Py_None; | |
3988 | return resultobj; | |
3989 | fail: | |
3990 | return NULL; | |
3991 | } | |
3992 | ||
3993 | ||
3994 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3995 | PyObject *resultobj; | |
3996 | wxRect *arg1 = (wxRect *) 0 ; | |
3997 | int arg2 ; | |
3998 | PyObject * obj0 = 0 ; | |
3999 | PyObject * obj1 = 0 ; | |
4000 | char *kwnames[] = { | |
4001 | (char *) "self",(char *) "right", NULL | |
4002 | }; | |
4003 | ||
4004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; | |
4005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4007 | arg2 = (int) SWIG_AsInt(obj1); | |
4008 | if (PyErr_Occurred()) SWIG_fail; | |
4009 | { | |
4010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4011 | (arg1)->SetRight(arg2); | |
4012 | ||
4013 | wxPyEndAllowThreads(__tstate); | |
4014 | if (PyErr_Occurred()) SWIG_fail; | |
4015 | } | |
4016 | Py_INCREF(Py_None); resultobj = Py_None; | |
4017 | return resultobj; | |
4018 | fail: | |
4019 | return NULL; | |
4020 | } | |
4021 | ||
4022 | ||
4023 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4024 | PyObject *resultobj; | |
4025 | wxRect *arg1 = (wxRect *) 0 ; | |
4026 | int arg2 ; | |
4027 | PyObject * obj0 = 0 ; | |
4028 | PyObject * obj1 = 0 ; | |
4029 | char *kwnames[] = { | |
4030 | (char *) "self",(char *) "top", NULL | |
4031 | }; | |
4032 | ||
4033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; | |
4034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4036 | arg2 = (int) SWIG_AsInt(obj1); | |
4037 | if (PyErr_Occurred()) SWIG_fail; | |
4038 | { | |
4039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4040 | (arg1)->SetTop(arg2); | |
4041 | ||
4042 | wxPyEndAllowThreads(__tstate); | |
4043 | if (PyErr_Occurred()) SWIG_fail; | |
4044 | } | |
4045 | Py_INCREF(Py_None); resultobj = Py_None; | |
4046 | return resultobj; | |
4047 | fail: | |
4048 | return NULL; | |
4049 | } | |
4050 | ||
4051 | ||
4052 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4053 | PyObject *resultobj; | |
4054 | wxRect *arg1 = (wxRect *) 0 ; | |
4055 | int arg2 ; | |
4056 | PyObject * obj0 = 0 ; | |
4057 | PyObject * obj1 = 0 ; | |
4058 | char *kwnames[] = { | |
4059 | (char *) "self",(char *) "bottom", NULL | |
4060 | }; | |
4061 | ||
4062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; | |
4063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4065 | arg2 = (int) SWIG_AsInt(obj1); | |
4066 | if (PyErr_Occurred()) SWIG_fail; | |
4067 | { | |
4068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4069 | (arg1)->SetBottom(arg2); | |
4070 | ||
4071 | wxPyEndAllowThreads(__tstate); | |
4072 | if (PyErr_Occurred()) SWIG_fail; | |
4073 | } | |
4074 | Py_INCREF(Py_None); resultobj = Py_None; | |
4075 | return resultobj; | |
4076 | fail: | |
4077 | return NULL; | |
4078 | } | |
4079 | ||
4080 | ||
4081 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4082 | PyObject *resultobj; | |
4083 | wxRect *arg1 = (wxRect *) 0 ; | |
4084 | int arg2 ; | |
4085 | int arg3 ; | |
4086 | wxRect *result; | |
4087 | PyObject * obj0 = 0 ; | |
4088 | PyObject * obj1 = 0 ; | |
4089 | PyObject * obj2 = 0 ; | |
4090 | char *kwnames[] = { | |
4091 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4092 | }; | |
4093 | ||
4094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4097 | arg2 = (int) SWIG_AsInt(obj1); | |
4098 | if (PyErr_Occurred()) SWIG_fail; | |
4099 | arg3 = (int) SWIG_AsInt(obj2); | |
4100 | if (PyErr_Occurred()) SWIG_fail; | |
4101 | { | |
4102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4103 | { | |
4104 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4105 | result = (wxRect *) &_result_ref; | |
4106 | } | |
4107 | ||
4108 | wxPyEndAllowThreads(__tstate); | |
4109 | if (PyErr_Occurred()) SWIG_fail; | |
4110 | } | |
4111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4112 | return resultobj; | |
4113 | fail: | |
4114 | return NULL; | |
4115 | } | |
4116 | ||
4117 | ||
4118 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4119 | PyObject *resultobj; | |
4120 | wxRect *arg1 = (wxRect *) 0 ; | |
4121 | int arg2 ; | |
4122 | int arg3 ; | |
4123 | wxRect *result; | |
4124 | PyObject * obj0 = 0 ; | |
4125 | PyObject * obj1 = 0 ; | |
4126 | PyObject * obj2 = 0 ; | |
4127 | char *kwnames[] = { | |
4128 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4129 | }; | |
4130 | ||
4131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4134 | arg2 = (int) SWIG_AsInt(obj1); | |
4135 | if (PyErr_Occurred()) SWIG_fail; | |
4136 | arg3 = (int) SWIG_AsInt(obj2); | |
4137 | if (PyErr_Occurred()) SWIG_fail; | |
4138 | { | |
4139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4140 | { | |
4141 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4142 | result = (wxRect *) &_result_ref; | |
4143 | } | |
4144 | ||
4145 | wxPyEndAllowThreads(__tstate); | |
4146 | if (PyErr_Occurred()) SWIG_fail; | |
4147 | } | |
4148 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4149 | return resultobj; | |
4150 | fail: | |
4151 | return NULL; | |
4152 | } | |
4153 | ||
4154 | ||
4155 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4156 | PyObject *resultobj; | |
4157 | wxRect *arg1 = (wxRect *) 0 ; | |
4158 | int arg2 ; | |
4159 | int arg3 ; | |
4160 | PyObject * obj0 = 0 ; | |
4161 | PyObject * obj1 = 0 ; | |
4162 | PyObject * obj2 = 0 ; | |
4163 | char *kwnames[] = { | |
4164 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4165 | }; | |
4166 | ||
4167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4170 | arg2 = (int) SWIG_AsInt(obj1); | |
4171 | if (PyErr_Occurred()) SWIG_fail; | |
4172 | arg3 = (int) SWIG_AsInt(obj2); | |
4173 | if (PyErr_Occurred()) SWIG_fail; | |
4174 | { | |
4175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4176 | (arg1)->Offset(arg2,arg3); | |
4177 | ||
4178 | wxPyEndAllowThreads(__tstate); | |
4179 | if (PyErr_Occurred()) SWIG_fail; | |
4180 | } | |
4181 | Py_INCREF(Py_None); resultobj = Py_None; | |
4182 | return resultobj; | |
4183 | fail: | |
4184 | return NULL; | |
4185 | } | |
4186 | ||
4187 | ||
4188 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4189 | PyObject *resultobj; | |
4190 | wxRect *arg1 = (wxRect *) 0 ; | |
4191 | wxPoint *arg2 = 0 ; | |
4192 | wxPoint temp2 ; | |
4193 | PyObject * obj0 = 0 ; | |
4194 | PyObject * obj1 = 0 ; | |
4195 | char *kwnames[] = { | |
4196 | (char *) "self",(char *) "pt", NULL | |
4197 | }; | |
4198 | ||
4199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
4200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4202 | { | |
4203 | arg2 = &temp2; | |
4204 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4205 | } | |
4206 | { | |
4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4208 | (arg1)->Offset((wxPoint const &)*arg2); | |
4209 | ||
4210 | wxPyEndAllowThreads(__tstate); | |
4211 | if (PyErr_Occurred()) SWIG_fail; | |
4212 | } | |
4213 | Py_INCREF(Py_None); resultobj = Py_None; | |
4214 | return resultobj; | |
4215 | fail: | |
4216 | return NULL; | |
4217 | } | |
4218 | ||
4219 | ||
4220 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4221 | PyObject *resultobj; | |
4222 | wxRect *arg1 = (wxRect *) 0 ; | |
4223 | wxRect *arg2 = 0 ; | |
4224 | wxRect *result; | |
4225 | wxRect temp2 ; | |
4226 | PyObject * obj0 = 0 ; | |
4227 | PyObject * obj1 = 0 ; | |
4228 | char *kwnames[] = { | |
4229 | (char *) "self",(char *) "rect", NULL | |
4230 | }; | |
4231 | ||
4232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
4233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4235 | { | |
4236 | arg2 = &temp2; | |
4237 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4238 | } | |
4239 | { | |
4240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4241 | { | |
4242 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4243 | result = (wxRect *) &_result_ref; | |
4244 | } | |
4245 | ||
4246 | wxPyEndAllowThreads(__tstate); | |
4247 | if (PyErr_Occurred()) SWIG_fail; | |
4248 | } | |
4249 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4250 | return resultobj; | |
4251 | fail: | |
4252 | return NULL; | |
4253 | } | |
4254 | ||
4255 | ||
4256 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4257 | PyObject *resultobj; | |
4258 | wxRect *arg1 = (wxRect *) 0 ; | |
4259 | wxRect *arg2 = 0 ; | |
4260 | wxRect result; | |
4261 | wxRect temp2 ; | |
4262 | PyObject * obj0 = 0 ; | |
4263 | PyObject * obj1 = 0 ; | |
4264 | char *kwnames[] = { | |
4265 | (char *) "self",(char *) "rect", NULL | |
4266 | }; | |
4267 | ||
4268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
4269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4271 | { | |
4272 | arg2 = &temp2; | |
4273 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4274 | } | |
4275 | { | |
4276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4277 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4278 | ||
4279 | wxPyEndAllowThreads(__tstate); | |
4280 | if (PyErr_Occurred()) SWIG_fail; | |
4281 | } | |
4282 | { | |
4283 | wxRect * resultptr; | |
4284 | resultptr = new wxRect((wxRect &) result); | |
4285 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4286 | } | |
4287 | return resultobj; | |
4288 | fail: | |
4289 | return NULL; | |
4290 | } | |
4291 | ||
4292 | ||
4293 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4294 | PyObject *resultobj; | |
4295 | wxRect *arg1 = (wxRect *) 0 ; | |
4296 | wxRect *arg2 = 0 ; | |
4297 | wxRect *result; | |
4298 | wxRect temp2 ; | |
4299 | PyObject * obj0 = 0 ; | |
4300 | PyObject * obj1 = 0 ; | |
4301 | char *kwnames[] = { | |
4302 | (char *) "self",(char *) "rect", NULL | |
4303 | }; | |
4304 | ||
4305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4308 | { | |
4309 | arg2 = &temp2; | |
4310 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4311 | } | |
4312 | { | |
4313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4314 | { | |
4315 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4316 | result = (wxRect *) &_result_ref; | |
4317 | } | |
4318 | ||
4319 | wxPyEndAllowThreads(__tstate); | |
4320 | if (PyErr_Occurred()) SWIG_fail; | |
4321 | } | |
4322 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4323 | return resultobj; | |
4324 | fail: | |
4325 | return NULL; | |
4326 | } | |
4327 | ||
4328 | ||
4329 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4330 | PyObject *resultobj; | |
4331 | wxRect *arg1 = (wxRect *) 0 ; | |
4332 | wxRect *arg2 = 0 ; | |
4333 | bool result; | |
4334 | wxRect temp2 ; | |
4335 | PyObject * obj0 = 0 ; | |
4336 | PyObject * obj1 = 0 ; | |
4337 | char *kwnames[] = { | |
4338 | (char *) "self",(char *) "rect", NULL | |
4339 | }; | |
4340 | ||
4341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4344 | { | |
4345 | arg2 = &temp2; | |
4346 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4347 | } | |
4348 | { | |
4349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4350 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4351 | ||
4352 | wxPyEndAllowThreads(__tstate); | |
4353 | if (PyErr_Occurred()) SWIG_fail; | |
4354 | } | |
4355 | { | |
4356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4357 | } | |
4358 | return resultobj; | |
4359 | fail: | |
4360 | return NULL; | |
4361 | } | |
4362 | ||
4363 | ||
4364 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4365 | PyObject *resultobj; | |
4366 | wxRect *arg1 = (wxRect *) 0 ; | |
4367 | wxRect *arg2 = 0 ; | |
4368 | bool result; | |
4369 | wxRect temp2 ; | |
4370 | PyObject * obj0 = 0 ; | |
4371 | PyObject * obj1 = 0 ; | |
4372 | char *kwnames[] = { | |
4373 | (char *) "self",(char *) "rect", NULL | |
4374 | }; | |
4375 | ||
4376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4379 | { | |
4380 | arg2 = &temp2; | |
4381 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4382 | } | |
4383 | { | |
4384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4385 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4386 | ||
4387 | wxPyEndAllowThreads(__tstate); | |
4388 | if (PyErr_Occurred()) SWIG_fail; | |
4389 | } | |
4390 | { | |
4391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4392 | } | |
4393 | return resultobj; | |
4394 | fail: | |
4395 | return NULL; | |
4396 | } | |
4397 | ||
4398 | ||
4399 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4400 | PyObject *resultobj; | |
4401 | wxRect *arg1 = (wxRect *) 0 ; | |
4402 | int arg2 ; | |
4403 | int arg3 ; | |
4404 | bool result; | |
4405 | PyObject * obj0 = 0 ; | |
4406 | PyObject * obj1 = 0 ; | |
4407 | PyObject * obj2 = 0 ; | |
4408 | char *kwnames[] = { | |
4409 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4410 | }; | |
4411 | ||
4412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4415 | arg2 = (int) SWIG_AsInt(obj1); | |
4416 | if (PyErr_Occurred()) SWIG_fail; | |
4417 | arg3 = (int) SWIG_AsInt(obj2); | |
4418 | if (PyErr_Occurred()) SWIG_fail; | |
4419 | { | |
4420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4421 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4422 | ||
4423 | wxPyEndAllowThreads(__tstate); | |
4424 | if (PyErr_Occurred()) SWIG_fail; | |
4425 | } | |
4426 | { | |
4427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4428 | } | |
4429 | return resultobj; | |
4430 | fail: | |
4431 | return NULL; | |
4432 | } | |
4433 | ||
4434 | ||
4435 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4436 | PyObject *resultobj; | |
4437 | wxRect *arg1 = (wxRect *) 0 ; | |
4438 | wxPoint *arg2 = 0 ; | |
4439 | bool result; | |
4440 | wxPoint temp2 ; | |
4441 | PyObject * obj0 = 0 ; | |
4442 | PyObject * obj1 = 0 ; | |
4443 | char *kwnames[] = { | |
4444 | (char *) "self",(char *) "pt", NULL | |
4445 | }; | |
4446 | ||
4447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
4448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4450 | { | |
4451 | arg2 = &temp2; | |
4452 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4453 | } | |
4454 | { | |
4455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4456 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4457 | ||
4458 | wxPyEndAllowThreads(__tstate); | |
4459 | if (PyErr_Occurred()) SWIG_fail; | |
4460 | } | |
4461 | { | |
4462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4463 | } | |
4464 | return resultobj; | |
4465 | fail: | |
4466 | return NULL; | |
4467 | } | |
4468 | ||
4469 | ||
4470 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4471 | PyObject *resultobj; | |
4472 | wxRect *arg1 = (wxRect *) 0 ; | |
4473 | wxRect *arg2 = 0 ; | |
4474 | bool result; | |
4475 | wxRect temp2 ; | |
4476 | PyObject * obj0 = 0 ; | |
4477 | PyObject * obj1 = 0 ; | |
4478 | char *kwnames[] = { | |
4479 | (char *) "self",(char *) "rect", NULL | |
4480 | }; | |
4481 | ||
4482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
4483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4485 | { | |
4486 | arg2 = &temp2; | |
4487 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4488 | } | |
4489 | { | |
4490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4491 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4492 | ||
4493 | wxPyEndAllowThreads(__tstate); | |
4494 | if (PyErr_Occurred()) SWIG_fail; | |
4495 | } | |
4496 | { | |
4497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4498 | } | |
4499 | return resultobj; | |
4500 | fail: | |
4501 | return NULL; | |
4502 | } | |
4503 | ||
4504 | ||
4505 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4506 | PyObject *resultobj; | |
4507 | wxRect *arg1 = (wxRect *) 0 ; | |
4508 | int arg2 ; | |
4509 | PyObject * obj0 = 0 ; | |
4510 | PyObject * obj1 = 0 ; | |
4511 | char *kwnames[] = { | |
4512 | (char *) "self",(char *) "x", NULL | |
4513 | }; | |
4514 | ||
4515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; | |
4516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4518 | arg2 = (int) SWIG_AsInt(obj1); | |
4519 | if (PyErr_Occurred()) SWIG_fail; | |
4520 | if (arg1) (arg1)->x = arg2; | |
4521 | ||
4522 | Py_INCREF(Py_None); resultobj = Py_None; | |
4523 | return resultobj; | |
4524 | fail: | |
4525 | return NULL; | |
4526 | } | |
4527 | ||
4528 | ||
4529 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4530 | PyObject *resultobj; | |
4531 | wxRect *arg1 = (wxRect *) 0 ; | |
4532 | int result; | |
4533 | PyObject * obj0 = 0 ; | |
4534 | char *kwnames[] = { | |
4535 | (char *) "self", NULL | |
4536 | }; | |
4537 | ||
4538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
4539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4541 | result = (int) ((arg1)->x); | |
4542 | ||
4543 | resultobj = SWIG_FromInt((int)result); | |
4544 | return resultobj; | |
4545 | fail: | |
4546 | return NULL; | |
4547 | } | |
4548 | ||
4549 | ||
4550 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4551 | PyObject *resultobj; | |
4552 | wxRect *arg1 = (wxRect *) 0 ; | |
4553 | int arg2 ; | |
4554 | PyObject * obj0 = 0 ; | |
4555 | PyObject * obj1 = 0 ; | |
4556 | char *kwnames[] = { | |
4557 | (char *) "self",(char *) "y", NULL | |
4558 | }; | |
4559 | ||
4560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; | |
4561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4563 | arg2 = (int) SWIG_AsInt(obj1); | |
4564 | if (PyErr_Occurred()) SWIG_fail; | |
4565 | if (arg1) (arg1)->y = arg2; | |
4566 | ||
4567 | Py_INCREF(Py_None); resultobj = Py_None; | |
4568 | return resultobj; | |
4569 | fail: | |
4570 | return NULL; | |
4571 | } | |
4572 | ||
4573 | ||
4574 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4575 | PyObject *resultobj; | |
4576 | wxRect *arg1 = (wxRect *) 0 ; | |
4577 | int result; | |
4578 | PyObject * obj0 = 0 ; | |
4579 | char *kwnames[] = { | |
4580 | (char *) "self", NULL | |
4581 | }; | |
4582 | ||
4583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
4584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4586 | result = (int) ((arg1)->y); | |
4587 | ||
4588 | resultobj = SWIG_FromInt((int)result); | |
4589 | return resultobj; | |
4590 | fail: | |
4591 | return NULL; | |
4592 | } | |
4593 | ||
4594 | ||
4595 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4596 | PyObject *resultobj; | |
4597 | wxRect *arg1 = (wxRect *) 0 ; | |
4598 | int arg2 ; | |
4599 | PyObject * obj0 = 0 ; | |
4600 | PyObject * obj1 = 0 ; | |
4601 | char *kwnames[] = { | |
4602 | (char *) "self",(char *) "width", NULL | |
4603 | }; | |
4604 | ||
4605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; | |
4606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4608 | arg2 = (int) SWIG_AsInt(obj1); | |
4609 | if (PyErr_Occurred()) SWIG_fail; | |
4610 | if (arg1) (arg1)->width = arg2; | |
4611 | ||
4612 | Py_INCREF(Py_None); resultobj = Py_None; | |
4613 | return resultobj; | |
4614 | fail: | |
4615 | return NULL; | |
4616 | } | |
4617 | ||
4618 | ||
4619 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4620 | PyObject *resultobj; | |
4621 | wxRect *arg1 = (wxRect *) 0 ; | |
4622 | int result; | |
4623 | PyObject * obj0 = 0 ; | |
4624 | char *kwnames[] = { | |
4625 | (char *) "self", NULL | |
4626 | }; | |
4627 | ||
4628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
4629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4631 | result = (int) ((arg1)->width); | |
4632 | ||
4633 | resultobj = SWIG_FromInt((int)result); | |
4634 | return resultobj; | |
4635 | fail: | |
4636 | return NULL; | |
4637 | } | |
4638 | ||
4639 | ||
4640 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4641 | PyObject *resultobj; | |
4642 | wxRect *arg1 = (wxRect *) 0 ; | |
4643 | int arg2 ; | |
4644 | PyObject * obj0 = 0 ; | |
4645 | PyObject * obj1 = 0 ; | |
4646 | char *kwnames[] = { | |
4647 | (char *) "self",(char *) "height", NULL | |
4648 | }; | |
4649 | ||
4650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; | |
4651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4653 | arg2 = (int) SWIG_AsInt(obj1); | |
4654 | if (PyErr_Occurred()) SWIG_fail; | |
4655 | if (arg1) (arg1)->height = arg2; | |
4656 | ||
4657 | Py_INCREF(Py_None); resultobj = Py_None; | |
4658 | return resultobj; | |
4659 | fail: | |
4660 | return NULL; | |
4661 | } | |
4662 | ||
4663 | ||
4664 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4665 | PyObject *resultobj; | |
4666 | wxRect *arg1 = (wxRect *) 0 ; | |
4667 | int result; | |
4668 | PyObject * obj0 = 0 ; | |
4669 | char *kwnames[] = { | |
4670 | (char *) "self", NULL | |
4671 | }; | |
4672 | ||
4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
4674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4676 | result = (int) ((arg1)->height); | |
4677 | ||
4678 | resultobj = SWIG_FromInt((int)result); | |
4679 | return resultobj; | |
4680 | fail: | |
4681 | return NULL; | |
4682 | } | |
4683 | ||
4684 | ||
4685 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4686 | PyObject *resultobj; | |
4687 | wxRect *arg1 = (wxRect *) 0 ; | |
4688 | int arg2 = (int) 0 ; | |
4689 | int arg3 = (int) 0 ; | |
4690 | int arg4 = (int) 0 ; | |
4691 | int arg5 = (int) 0 ; | |
4692 | PyObject * obj0 = 0 ; | |
4693 | PyObject * obj1 = 0 ; | |
4694 | PyObject * obj2 = 0 ; | |
4695 | PyObject * obj3 = 0 ; | |
4696 | PyObject * obj4 = 0 ; | |
4697 | char *kwnames[] = { | |
4698 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4699 | }; | |
4700 | ||
4701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
4702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4704 | if (obj1) { | |
4705 | arg2 = (int) SWIG_AsInt(obj1); | |
4706 | if (PyErr_Occurred()) SWIG_fail; | |
4707 | } | |
4708 | if (obj2) { | |
4709 | arg3 = (int) SWIG_AsInt(obj2); | |
4710 | if (PyErr_Occurred()) SWIG_fail; | |
4711 | } | |
4712 | if (obj3) { | |
4713 | arg4 = (int) SWIG_AsInt(obj3); | |
4714 | if (PyErr_Occurred()) SWIG_fail; | |
4715 | } | |
4716 | if (obj4) { | |
4717 | arg5 = (int) SWIG_AsInt(obj4); | |
4718 | if (PyErr_Occurred()) SWIG_fail; | |
4719 | } | |
4720 | { | |
4721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4722 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4723 | ||
4724 | wxPyEndAllowThreads(__tstate); | |
4725 | if (PyErr_Occurred()) SWIG_fail; | |
4726 | } | |
4727 | Py_INCREF(Py_None); resultobj = Py_None; | |
4728 | return resultobj; | |
4729 | fail: | |
4730 | return NULL; | |
4731 | } | |
4732 | ||
4733 | ||
4734 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4735 | PyObject *resultobj; | |
4736 | wxRect *arg1 = (wxRect *) 0 ; | |
4737 | PyObject *result; | |
4738 | PyObject * obj0 = 0 ; | |
4739 | char *kwnames[] = { | |
4740 | (char *) "self", NULL | |
4741 | }; | |
4742 | ||
4743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; | |
4744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4746 | { | |
4747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4748 | result = (PyObject *)wxRect_Get(arg1); | |
4749 | ||
4750 | wxPyEndAllowThreads(__tstate); | |
4751 | if (PyErr_Occurred()) SWIG_fail; | |
4752 | } | |
4753 | resultobj = result; | |
4754 | return resultobj; | |
4755 | fail: | |
4756 | return NULL; | |
4757 | } | |
4758 | ||
4759 | ||
4760 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4761 | PyObject *obj; | |
4762 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4763 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4764 | Py_INCREF(obj); | |
4765 | return Py_BuildValue((char *)""); | |
4766 | } | |
4767 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4768 | PyObject *resultobj; | |
4769 | wxRect *arg1 = (wxRect *) 0 ; | |
4770 | wxRect *arg2 = (wxRect *) 0 ; | |
4771 | PyObject *result; | |
4772 | PyObject * obj0 = 0 ; | |
4773 | PyObject * obj1 = 0 ; | |
4774 | char *kwnames[] = { | |
4775 | (char *) "r1",(char *) "r2", NULL | |
4776 | }; | |
4777 | ||
4778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4781 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
4782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4783 | { | |
0439c23b | 4784 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4786 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4787 | ||
4788 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4789 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4790 | } |
4791 | resultobj = result; | |
4792 | return resultobj; | |
4793 | fail: | |
4794 | return NULL; | |
4795 | } | |
4796 | ||
4797 | ||
4798 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4799 | PyObject *resultobj; | |
4800 | double arg1 = (double) 0.0 ; | |
4801 | double arg2 = (double) 0.0 ; | |
4802 | wxPoint2D *result; | |
4803 | PyObject * obj0 = 0 ; | |
4804 | PyObject * obj1 = 0 ; | |
4805 | char *kwnames[] = { | |
4806 | (char *) "x",(char *) "y", NULL | |
4807 | }; | |
4808 | ||
4809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; | |
4810 | if (obj0) { | |
4811 | arg1 = (double) SWIG_AsDouble(obj0); | |
4812 | if (PyErr_Occurred()) SWIG_fail; | |
4813 | } | |
4814 | if (obj1) { | |
4815 | arg2 = (double) SWIG_AsDouble(obj1); | |
4816 | if (PyErr_Occurred()) SWIG_fail; | |
4817 | } | |
4818 | { | |
4819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4820 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4821 | ||
4822 | wxPyEndAllowThreads(__tstate); | |
4823 | if (PyErr_Occurred()) SWIG_fail; | |
4824 | } | |
4825 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
4826 | return resultobj; | |
4827 | fail: | |
4828 | return NULL; | |
4829 | } | |
4830 | ||
4831 | ||
4832 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4833 | PyObject *resultobj; | |
4834 | wxPoint2D *arg1 = 0 ; | |
4835 | wxPoint2D *result; | |
4836 | wxPoint2D temp1 ; | |
4837 | PyObject * obj0 = 0 ; | |
4838 | char *kwnames[] = { | |
4839 | (char *) "pt", NULL | |
4840 | }; | |
4841 | ||
4842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4843 | { | |
4844 | arg1 = &temp1; | |
4845 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4846 | } | |
4847 | { | |
4848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4849 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4850 | ||
4851 | wxPyEndAllowThreads(__tstate); | |
4852 | if (PyErr_Occurred()) SWIG_fail; | |
4853 | } | |
4854 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
4855 | return resultobj; | |
4856 | fail: | |
4857 | return NULL; | |
4858 | } | |
4859 | ||
4860 | ||
4861 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4862 | PyObject *resultobj; | |
4863 | wxPoint *arg1 = 0 ; | |
4864 | wxPoint2D *result; | |
4865 | wxPoint temp1 ; | |
4866 | PyObject * obj0 = 0 ; | |
4867 | char *kwnames[] = { | |
4868 | (char *) "pt", NULL | |
4869 | }; | |
4870 | ||
4871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4872 | { | |
4873 | arg1 = &temp1; | |
4874 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4875 | } | |
4876 | { | |
4877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4878 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4879 | ||
4880 | wxPyEndAllowThreads(__tstate); | |
4881 | if (PyErr_Occurred()) SWIG_fail; | |
4882 | } | |
4883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
4884 | return resultobj; | |
4885 | fail: | |
4886 | return NULL; | |
4887 | } | |
4888 | ||
4889 | ||
4890 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4891 | PyObject *resultobj; | |
4892 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4893 | int *arg2 = (int *) 0 ; | |
4894 | int *arg3 = (int *) 0 ; | |
4895 | int temp2 ; | |
4896 | int temp3 ; | |
4897 | PyObject * obj0 = 0 ; | |
4898 | char *kwnames[] = { | |
4899 | (char *) "self", NULL | |
4900 | }; | |
4901 | ||
4902 | arg2 = &temp2; | |
4903 | arg3 = &temp3; | |
4904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
4905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
4906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4907 | { | |
4908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4909 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4910 | ||
4911 | wxPyEndAllowThreads(__tstate); | |
4912 | if (PyErr_Occurred()) SWIG_fail; | |
4913 | } | |
4914 | Py_INCREF(Py_None); resultobj = Py_None; | |
4915 | { | |
4916 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4917 | resultobj = t_output_helper(resultobj,o); | |
4918 | } | |
4919 | { | |
4920 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4921 | resultobj = t_output_helper(resultobj,o); | |
4922 | } | |
4923 | return resultobj; | |
4924 | fail: | |
4925 | return NULL; | |
4926 | } | |
4927 | ||
4928 | ||
4929 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4930 | PyObject *resultobj; | |
4931 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4932 | int *arg2 = (int *) 0 ; | |
4933 | int *arg3 = (int *) 0 ; | |
4934 | int temp2 ; | |
4935 | int temp3 ; | |
4936 | PyObject * obj0 = 0 ; | |
4937 | char *kwnames[] = { | |
4938 | (char *) "self", NULL | |
4939 | }; | |
4940 | ||
4941 | arg2 = &temp2; | |
4942 | arg3 = &temp3; | |
4943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
4944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
4945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4946 | { | |
4947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4948 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4949 | ||
4950 | wxPyEndAllowThreads(__tstate); | |
4951 | if (PyErr_Occurred()) SWIG_fail; | |
4952 | } | |
4953 | Py_INCREF(Py_None); resultobj = Py_None; | |
4954 | { | |
4955 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4956 | resultobj = t_output_helper(resultobj,o); | |
4957 | } | |
4958 | { | |
4959 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4960 | resultobj = t_output_helper(resultobj,o); | |
4961 | } | |
4962 | return resultobj; | |
4963 | fail: | |
4964 | return NULL; | |
4965 | } | |
4966 | ||
4967 | ||
4968 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4969 | PyObject *resultobj; | |
4970 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4971 | double result; | |
4972 | PyObject * obj0 = 0 ; | |
4973 | char *kwnames[] = { | |
4974 | (char *) "self", NULL | |
4975 | }; | |
4976 | ||
4977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
4978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
4979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4980 | { | |
4981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4982 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4983 | ||
4984 | wxPyEndAllowThreads(__tstate); | |
4985 | if (PyErr_Occurred()) SWIG_fail; | |
4986 | } | |
4987 | resultobj = SWIG_FromDouble((double)result); | |
4988 | return resultobj; | |
4989 | fail: | |
4990 | return NULL; | |
4991 | } | |
4992 | ||
4993 | ||
4994 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4995 | PyObject *resultobj; | |
4996 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4997 | double result; | |
4998 | PyObject * obj0 = 0 ; | |
4999 | char *kwnames[] = { | |
5000 | (char *) "self", NULL | |
5001 | }; | |
5002 | ||
5003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
5004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5006 | { | |
5007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5008 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
5009 | ||
5010 | wxPyEndAllowThreads(__tstate); | |
5011 | if (PyErr_Occurred()) SWIG_fail; | |
5012 | } | |
5013 | resultobj = SWIG_FromDouble((double)result); | |
5014 | return resultobj; | |
5015 | fail: | |
5016 | return NULL; | |
5017 | } | |
5018 | ||
5019 | ||
5020 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5021 | PyObject *resultobj; | |
5022 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5023 | double arg2 ; | |
5024 | PyObject * obj0 = 0 ; | |
5025 | PyObject * obj1 = 0 ; | |
5026 | char *kwnames[] = { | |
5027 | (char *) "self",(char *) "length", NULL | |
5028 | }; | |
5029 | ||
5030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; | |
5031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5033 | arg2 = (double) SWIG_AsDouble(obj1); | |
5034 | if (PyErr_Occurred()) SWIG_fail; | |
5035 | { | |
5036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5037 | (arg1)->SetVectorLength(arg2); | |
5038 | ||
5039 | wxPyEndAllowThreads(__tstate); | |
5040 | if (PyErr_Occurred()) SWIG_fail; | |
5041 | } | |
5042 | Py_INCREF(Py_None); resultobj = Py_None; | |
5043 | return resultobj; | |
5044 | fail: | |
5045 | return NULL; | |
5046 | } | |
5047 | ||
5048 | ||
5049 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5050 | PyObject *resultobj; | |
5051 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5052 | double arg2 ; | |
5053 | PyObject * obj0 = 0 ; | |
5054 | PyObject * obj1 = 0 ; | |
5055 | char *kwnames[] = { | |
5056 | (char *) "self",(char *) "degrees", NULL | |
5057 | }; | |
5058 | ||
5059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; | |
5060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5062 | arg2 = (double) SWIG_AsDouble(obj1); | |
5063 | if (PyErr_Occurred()) SWIG_fail; | |
5064 | { | |
5065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5066 | (arg1)->SetVectorAngle(arg2); | |
5067 | ||
5068 | wxPyEndAllowThreads(__tstate); | |
5069 | if (PyErr_Occurred()) SWIG_fail; | |
5070 | } | |
5071 | Py_INCREF(Py_None); resultobj = Py_None; | |
5072 | return resultobj; | |
5073 | fail: | |
5074 | return NULL; | |
5075 | } | |
5076 | ||
5077 | ||
5078 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5079 | PyObject *resultobj; | |
5080 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5081 | wxPoint2D *arg2 = 0 ; | |
5082 | double result; | |
5083 | wxPoint2D temp2 ; | |
5084 | PyObject * obj0 = 0 ; | |
5085 | PyObject * obj1 = 0 ; | |
5086 | char *kwnames[] = { | |
5087 | (char *) "self",(char *) "pt", NULL | |
5088 | }; | |
5089 | ||
5090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
5091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5093 | { | |
5094 | arg2 = &temp2; | |
5095 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5096 | } | |
5097 | { | |
5098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5099 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5100 | ||
5101 | wxPyEndAllowThreads(__tstate); | |
5102 | if (PyErr_Occurred()) SWIG_fail; | |
5103 | } | |
5104 | resultobj = SWIG_FromDouble((double)result); | |
5105 | return resultobj; | |
5106 | fail: | |
5107 | return NULL; | |
5108 | } | |
5109 | ||
5110 | ||
5111 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5112 | PyObject *resultobj; | |
5113 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5114 | wxPoint2D *arg2 = 0 ; | |
5115 | double result; | |
5116 | wxPoint2D temp2 ; | |
5117 | PyObject * obj0 = 0 ; | |
5118 | PyObject * obj1 = 0 ; | |
5119 | char *kwnames[] = { | |
5120 | (char *) "self",(char *) "pt", NULL | |
5121 | }; | |
5122 | ||
5123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
5124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5126 | { | |
5127 | arg2 = &temp2; | |
5128 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5129 | } | |
5130 | { | |
5131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5132 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5133 | ||
5134 | wxPyEndAllowThreads(__tstate); | |
5135 | if (PyErr_Occurred()) SWIG_fail; | |
5136 | } | |
5137 | resultobj = SWIG_FromDouble((double)result); | |
5138 | return resultobj; | |
5139 | fail: | |
5140 | return NULL; | |
5141 | } | |
5142 | ||
5143 | ||
5144 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5145 | PyObject *resultobj; | |
5146 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5147 | wxPoint2D *arg2 = 0 ; | |
5148 | double result; | |
5149 | wxPoint2D temp2 ; | |
5150 | PyObject * obj0 = 0 ; | |
5151 | PyObject * obj1 = 0 ; | |
5152 | char *kwnames[] = { | |
5153 | (char *) "self",(char *) "vec", NULL | |
5154 | }; | |
5155 | ||
5156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
5157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5159 | { | |
5160 | arg2 = &temp2; | |
5161 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5162 | } | |
5163 | { | |
5164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5165 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5166 | ||
5167 | wxPyEndAllowThreads(__tstate); | |
5168 | if (PyErr_Occurred()) SWIG_fail; | |
5169 | } | |
5170 | resultobj = SWIG_FromDouble((double)result); | |
5171 | return resultobj; | |
5172 | fail: | |
5173 | return NULL; | |
5174 | } | |
5175 | ||
5176 | ||
5177 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5178 | PyObject *resultobj; | |
5179 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5180 | wxPoint2D *arg2 = 0 ; | |
5181 | double result; | |
5182 | wxPoint2D temp2 ; | |
5183 | PyObject * obj0 = 0 ; | |
5184 | PyObject * obj1 = 0 ; | |
5185 | char *kwnames[] = { | |
5186 | (char *) "self",(char *) "vec", NULL | |
5187 | }; | |
5188 | ||
5189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
5190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5192 | { | |
5193 | arg2 = &temp2; | |
5194 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5195 | } | |
5196 | { | |
5197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5198 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5199 | ||
5200 | wxPyEndAllowThreads(__tstate); | |
5201 | if (PyErr_Occurred()) SWIG_fail; | |
5202 | } | |
5203 | resultobj = SWIG_FromDouble((double)result); | |
5204 | return resultobj; | |
5205 | fail: | |
5206 | return NULL; | |
5207 | } | |
5208 | ||
5209 | ||
5210 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5211 | PyObject *resultobj; | |
5212 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5213 | wxPoint2D result; | |
5214 | PyObject * obj0 = 0 ; | |
5215 | char *kwnames[] = { | |
5216 | (char *) "self", NULL | |
5217 | }; | |
5218 | ||
5219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
5220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5222 | { | |
5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5224 | result = (arg1)->operator -(); | |
5225 | ||
5226 | wxPyEndAllowThreads(__tstate); | |
5227 | if (PyErr_Occurred()) SWIG_fail; | |
5228 | } | |
5229 | { | |
5230 | wxPoint2D * resultptr; | |
5231 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
5232 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); | |
5233 | } | |
5234 | return resultobj; | |
5235 | fail: | |
5236 | return NULL; | |
5237 | } | |
5238 | ||
5239 | ||
5240 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5241 | PyObject *resultobj; | |
5242 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5243 | wxPoint2D *arg2 = 0 ; | |
5244 | wxPoint2D *result; | |
5245 | wxPoint2D temp2 ; | |
5246 | PyObject * obj0 = 0 ; | |
5247 | PyObject * obj1 = 0 ; | |
5248 | char *kwnames[] = { | |
5249 | (char *) "self",(char *) "pt", NULL | |
5250 | }; | |
5251 | ||
5252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
5253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5255 | { | |
5256 | arg2 = &temp2; | |
5257 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5258 | } | |
5259 | { | |
5260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5261 | { | |
5262 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5263 | result = (wxPoint2D *) &_result_ref; | |
5264 | } | |
5265 | ||
5266 | wxPyEndAllowThreads(__tstate); | |
5267 | if (PyErr_Occurred()) SWIG_fail; | |
5268 | } | |
5269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5270 | return resultobj; | |
5271 | fail: | |
5272 | return NULL; | |
5273 | } | |
5274 | ||
5275 | ||
5276 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5277 | PyObject *resultobj; | |
5278 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5279 | wxPoint2D *arg2 = 0 ; | |
5280 | wxPoint2D *result; | |
5281 | wxPoint2D temp2 ; | |
5282 | PyObject * obj0 = 0 ; | |
5283 | PyObject * obj1 = 0 ; | |
5284 | char *kwnames[] = { | |
5285 | (char *) "self",(char *) "pt", NULL | |
5286 | }; | |
5287 | ||
5288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
5289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5291 | { | |
5292 | arg2 = &temp2; | |
5293 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5294 | } | |
5295 | { | |
5296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5297 | { | |
5298 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5299 | result = (wxPoint2D *) &_result_ref; | |
5300 | } | |
5301 | ||
5302 | wxPyEndAllowThreads(__tstate); | |
5303 | if (PyErr_Occurred()) SWIG_fail; | |
5304 | } | |
5305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5306 | return resultobj; | |
5307 | fail: | |
5308 | return NULL; | |
5309 | } | |
5310 | ||
5311 | ||
5312 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5313 | PyObject *resultobj; | |
5314 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5315 | wxPoint2D *arg2 = 0 ; | |
5316 | wxPoint2D *result; | |
5317 | wxPoint2D temp2 ; | |
5318 | PyObject * obj0 = 0 ; | |
5319 | PyObject * obj1 = 0 ; | |
5320 | char *kwnames[] = { | |
5321 | (char *) "self",(char *) "pt", NULL | |
5322 | }; | |
5323 | ||
5324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
5325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5327 | { | |
5328 | arg2 = &temp2; | |
5329 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5330 | } | |
5331 | { | |
5332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5333 | { | |
5334 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5335 | result = (wxPoint2D *) &_result_ref; | |
5336 | } | |
5337 | ||
5338 | wxPyEndAllowThreads(__tstate); | |
5339 | if (PyErr_Occurred()) SWIG_fail; | |
5340 | } | |
5341 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5342 | return resultobj; | |
5343 | fail: | |
5344 | return NULL; | |
5345 | } | |
5346 | ||
5347 | ||
5348 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5349 | PyObject *resultobj; | |
5350 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5351 | wxPoint2D *arg2 = 0 ; | |
5352 | wxPoint2D *result; | |
5353 | wxPoint2D temp2 ; | |
5354 | PyObject * obj0 = 0 ; | |
5355 | PyObject * obj1 = 0 ; | |
5356 | char *kwnames[] = { | |
5357 | (char *) "self",(char *) "pt", NULL | |
5358 | }; | |
5359 | ||
5360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
5361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5363 | { | |
5364 | arg2 = &temp2; | |
5365 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5366 | } | |
5367 | { | |
5368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5369 | { | |
5370 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5371 | result = (wxPoint2D *) &_result_ref; | |
5372 | } | |
5373 | ||
5374 | wxPyEndAllowThreads(__tstate); | |
5375 | if (PyErr_Occurred()) SWIG_fail; | |
5376 | } | |
5377 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5378 | return resultobj; | |
5379 | fail: | |
5380 | return NULL; | |
5381 | } | |
5382 | ||
5383 | ||
5384 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject *resultobj; | |
5386 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5387 | wxPoint2D *arg2 = 0 ; | |
5388 | bool result; | |
5389 | wxPoint2D temp2 ; | |
5390 | PyObject * obj0 = 0 ; | |
5391 | PyObject * obj1 = 0 ; | |
5392 | char *kwnames[] = { | |
5393 | (char *) "self",(char *) "pt", NULL | |
5394 | }; | |
5395 | ||
5396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
5397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5399 | { | |
5400 | arg2 = &temp2; | |
5401 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5402 | } | |
5403 | { | |
5404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5405 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5406 | ||
5407 | wxPyEndAllowThreads(__tstate); | |
5408 | if (PyErr_Occurred()) SWIG_fail; | |
5409 | } | |
5410 | { | |
5411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5412 | } | |
5413 | return resultobj; | |
5414 | fail: | |
5415 | return NULL; | |
5416 | } | |
5417 | ||
5418 | ||
5419 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5420 | PyObject *resultobj; | |
5421 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5422 | wxPoint2D *arg2 = 0 ; | |
5423 | bool result; | |
5424 | wxPoint2D temp2 ; | |
5425 | PyObject * obj0 = 0 ; | |
5426 | PyObject * obj1 = 0 ; | |
5427 | char *kwnames[] = { | |
5428 | (char *) "self",(char *) "pt", NULL | |
5429 | }; | |
5430 | ||
5431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
5432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5434 | { | |
5435 | arg2 = &temp2; | |
5436 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5437 | } | |
5438 | { | |
5439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5440 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5441 | ||
5442 | wxPyEndAllowThreads(__tstate); | |
5443 | if (PyErr_Occurred()) SWIG_fail; | |
5444 | } | |
5445 | { | |
5446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5447 | } | |
5448 | return resultobj; | |
5449 | fail: | |
5450 | return NULL; | |
5451 | } | |
5452 | ||
5453 | ||
5454 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5455 | PyObject *resultobj; | |
5456 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5457 | double arg2 ; | |
5458 | PyObject * obj0 = 0 ; | |
5459 | PyObject * obj1 = 0 ; | |
5460 | char *kwnames[] = { | |
5461 | (char *) "self",(char *) "m_x", NULL | |
5462 | }; | |
5463 | ||
5464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; | |
5465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5467 | arg2 = (double) SWIG_AsDouble(obj1); | |
5468 | if (PyErr_Occurred()) SWIG_fail; | |
5469 | if (arg1) (arg1)->m_x = arg2; | |
5470 | ||
5471 | Py_INCREF(Py_None); resultobj = Py_None; | |
5472 | return resultobj; | |
5473 | fail: | |
5474 | return NULL; | |
5475 | } | |
5476 | ||
5477 | ||
5478 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5479 | PyObject *resultobj; | |
5480 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5481 | double result; | |
5482 | PyObject * obj0 = 0 ; | |
5483 | char *kwnames[] = { | |
5484 | (char *) "self", NULL | |
5485 | }; | |
5486 | ||
5487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
5488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5490 | result = (double) ((arg1)->m_x); | |
5491 | ||
5492 | resultobj = SWIG_FromDouble((double)result); | |
5493 | return resultobj; | |
5494 | fail: | |
5495 | return NULL; | |
5496 | } | |
5497 | ||
5498 | ||
5499 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5500 | PyObject *resultobj; | |
5501 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5502 | double arg2 ; | |
5503 | PyObject * obj0 = 0 ; | |
5504 | PyObject * obj1 = 0 ; | |
5505 | char *kwnames[] = { | |
5506 | (char *) "self",(char *) "m_y", NULL | |
5507 | }; | |
5508 | ||
5509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; | |
5510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5512 | arg2 = (double) SWIG_AsDouble(obj1); | |
5513 | if (PyErr_Occurred()) SWIG_fail; | |
5514 | if (arg1) (arg1)->m_y = arg2; | |
5515 | ||
5516 | Py_INCREF(Py_None); resultobj = Py_None; | |
5517 | return resultobj; | |
5518 | fail: | |
5519 | return NULL; | |
5520 | } | |
5521 | ||
5522 | ||
5523 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5524 | PyObject *resultobj; | |
5525 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5526 | double result; | |
5527 | PyObject * obj0 = 0 ; | |
5528 | char *kwnames[] = { | |
5529 | (char *) "self", NULL | |
5530 | }; | |
5531 | ||
5532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
5533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5535 | result = (double) ((arg1)->m_y); | |
5536 | ||
5537 | resultobj = SWIG_FromDouble((double)result); | |
5538 | return resultobj; | |
5539 | fail: | |
5540 | return NULL; | |
5541 | } | |
5542 | ||
5543 | ||
5544 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5545 | PyObject *resultobj; | |
5546 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5547 | double arg2 = (double) 0 ; | |
5548 | double arg3 = (double) 0 ; | |
5549 | PyObject * obj0 = 0 ; | |
5550 | PyObject * obj1 = 0 ; | |
5551 | PyObject * obj2 = 0 ; | |
5552 | char *kwnames[] = { | |
5553 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5554 | }; | |
5555 | ||
5556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5559 | if (obj1) { | |
5560 | arg2 = (double) SWIG_AsDouble(obj1); | |
5561 | if (PyErr_Occurred()) SWIG_fail; | |
5562 | } | |
5563 | if (obj2) { | |
5564 | arg3 = (double) SWIG_AsDouble(obj2); | |
5565 | if (PyErr_Occurred()) SWIG_fail; | |
5566 | } | |
5567 | { | |
5568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5569 | wxPoint2D_Set(arg1,arg2,arg3); | |
5570 | ||
5571 | wxPyEndAllowThreads(__tstate); | |
5572 | if (PyErr_Occurred()) SWIG_fail; | |
5573 | } | |
5574 | Py_INCREF(Py_None); resultobj = Py_None; | |
5575 | return resultobj; | |
5576 | fail: | |
5577 | return NULL; | |
5578 | } | |
5579 | ||
5580 | ||
5581 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5582 | PyObject *resultobj; | |
5583 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5584 | PyObject *result; | |
5585 | PyObject * obj0 = 0 ; | |
5586 | char *kwnames[] = { | |
5587 | (char *) "self", NULL | |
5588 | }; | |
5589 | ||
5590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; | |
5591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5593 | { | |
5594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5595 | result = (PyObject *)wxPoint2D_Get(arg1); | |
5596 | ||
5597 | wxPyEndAllowThreads(__tstate); | |
5598 | if (PyErr_Occurred()) SWIG_fail; | |
5599 | } | |
5600 | resultobj = result; | |
5601 | return resultobj; | |
5602 | fail: | |
5603 | return NULL; | |
5604 | } | |
5605 | ||
5606 | ||
5607 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5608 | PyObject *obj; | |
5609 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5610 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5611 | Py_INCREF(obj); | |
5612 | return Py_BuildValue((char *)""); | |
5613 | } | |
5614 | static int _wrap_DefaultPosition_set(PyObject *_val) { | |
5615 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); | |
5616 | return 1; | |
5617 | } | |
5618 | ||
5619 | ||
5620 | static PyObject *_wrap_DefaultPosition_get() { | |
5621 | PyObject *pyobj; | |
5622 | ||
5623 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); | |
5624 | return pyobj; | |
5625 | } | |
5626 | ||
5627 | ||
5628 | static int _wrap_DefaultSize_set(PyObject *_val) { | |
5629 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); | |
5630 | return 1; | |
5631 | } | |
5632 | ||
5633 | ||
5634 | static PyObject *_wrap_DefaultSize_get() { | |
5635 | PyObject *pyobj; | |
5636 | ||
5637 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); | |
5638 | return pyobj; | |
5639 | } | |
5640 | ||
5641 | ||
5642 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5643 | PyObject *resultobj; | |
5644 | PyObject *arg1 = (PyObject *) 0 ; | |
5645 | wxPyInputStream *result; | |
5646 | PyObject * obj0 = 0 ; | |
5647 | char *kwnames[] = { | |
5648 | (char *) "p", NULL | |
5649 | }; | |
5650 | ||
5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5652 | arg1 = obj0; | |
5653 | { | |
5654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5655 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5656 | ||
5657 | wxPyEndAllowThreads(__tstate); | |
5658 | if (PyErr_Occurred()) SWIG_fail; | |
5659 | } | |
5660 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); | |
5661 | return resultobj; | |
5662 | fail: | |
5663 | return NULL; | |
5664 | } | |
5665 | ||
5666 | ||
5667 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5668 | PyObject *resultobj; | |
5669 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5670 | PyObject * obj0 = 0 ; | |
5671 | char *kwnames[] = { | |
5672 | (char *) "self", NULL | |
5673 | }; | |
5674 | ||
5675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
5676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5678 | { | |
5679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5680 | (arg1)->close(); | |
5681 | ||
5682 | wxPyEndAllowThreads(__tstate); | |
5683 | if (PyErr_Occurred()) SWIG_fail; | |
5684 | } | |
5685 | Py_INCREF(Py_None); resultobj = Py_None; | |
5686 | return resultobj; | |
5687 | fail: | |
5688 | return NULL; | |
5689 | } | |
5690 | ||
5691 | ||
5692 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5693 | PyObject *resultobj; | |
5694 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5695 | PyObject * obj0 = 0 ; | |
5696 | char *kwnames[] = { | |
5697 | (char *) "self", NULL | |
5698 | }; | |
5699 | ||
5700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
5701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5703 | { | |
5704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5705 | (arg1)->flush(); | |
5706 | ||
5707 | wxPyEndAllowThreads(__tstate); | |
5708 | if (PyErr_Occurred()) SWIG_fail; | |
5709 | } | |
5710 | Py_INCREF(Py_None); resultobj = Py_None; | |
5711 | return resultobj; | |
5712 | fail: | |
5713 | return NULL; | |
5714 | } | |
5715 | ||
5716 | ||
5717 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5718 | PyObject *resultobj; | |
5719 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5720 | bool result; | |
5721 | PyObject * obj0 = 0 ; | |
5722 | char *kwnames[] = { | |
5723 | (char *) "self", NULL | |
5724 | }; | |
5725 | ||
5726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
5727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5729 | { | |
5730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5731 | result = (bool)(arg1)->eof(); | |
5732 | ||
5733 | wxPyEndAllowThreads(__tstate); | |
5734 | if (PyErr_Occurred()) SWIG_fail; | |
5735 | } | |
5736 | { | |
5737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5738 | } | |
5739 | return resultobj; | |
5740 | fail: | |
5741 | return NULL; | |
5742 | } | |
5743 | ||
5744 | ||
5745 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5746 | PyObject *resultobj; | |
5747 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5748 | int arg2 = (int) -1 ; | |
5749 | PyObject *result; | |
5750 | PyObject * obj0 = 0 ; | |
5751 | PyObject * obj1 = 0 ; | |
5752 | char *kwnames[] = { | |
5753 | (char *) "self",(char *) "size", NULL | |
5754 | }; | |
5755 | ||
5756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; | |
5757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5759 | if (obj1) { | |
5760 | arg2 = (int) SWIG_AsInt(obj1); | |
5761 | if (PyErr_Occurred()) SWIG_fail; | |
5762 | } | |
5763 | { | |
5764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5765 | result = (PyObject *)(arg1)->read(arg2); | |
5766 | ||
5767 | wxPyEndAllowThreads(__tstate); | |
5768 | if (PyErr_Occurred()) SWIG_fail; | |
5769 | } | |
5770 | resultobj = result; | |
5771 | return resultobj; | |
5772 | fail: | |
5773 | return NULL; | |
5774 | } | |
5775 | ||
5776 | ||
5777 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5778 | PyObject *resultobj; | |
5779 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5780 | int arg2 = (int) -1 ; | |
5781 | PyObject *result; | |
5782 | PyObject * obj0 = 0 ; | |
5783 | PyObject * obj1 = 0 ; | |
5784 | char *kwnames[] = { | |
5785 | (char *) "self",(char *) "size", NULL | |
5786 | }; | |
5787 | ||
5788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; | |
5789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5791 | if (obj1) { | |
5792 | arg2 = (int) SWIG_AsInt(obj1); | |
5793 | if (PyErr_Occurred()) SWIG_fail; | |
5794 | } | |
5795 | { | |
5796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5797 | result = (PyObject *)(arg1)->readline(arg2); | |
5798 | ||
5799 | wxPyEndAllowThreads(__tstate); | |
5800 | if (PyErr_Occurred()) SWIG_fail; | |
5801 | } | |
5802 | resultobj = result; | |
5803 | return resultobj; | |
5804 | fail: | |
5805 | return NULL; | |
5806 | } | |
5807 | ||
5808 | ||
5809 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5810 | PyObject *resultobj; | |
5811 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5812 | int arg2 = (int) -1 ; | |
5813 | PyObject *result; | |
5814 | PyObject * obj0 = 0 ; | |
5815 | PyObject * obj1 = 0 ; | |
5816 | char *kwnames[] = { | |
5817 | (char *) "self",(char *) "sizehint", NULL | |
5818 | }; | |
5819 | ||
5820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; | |
5821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5823 | if (obj1) { | |
5824 | arg2 = (int) SWIG_AsInt(obj1); | |
5825 | if (PyErr_Occurred()) SWIG_fail; | |
5826 | } | |
5827 | { | |
5828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5829 | result = (PyObject *)(arg1)->readlines(arg2); | |
5830 | ||
5831 | wxPyEndAllowThreads(__tstate); | |
5832 | if (PyErr_Occurred()) SWIG_fail; | |
5833 | } | |
5834 | resultobj = result; | |
5835 | return resultobj; | |
5836 | fail: | |
5837 | return NULL; | |
5838 | } | |
5839 | ||
5840 | ||
5841 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5842 | PyObject *resultobj; | |
5843 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5844 | int arg2 ; | |
5845 | int arg3 = (int) 0 ; | |
5846 | PyObject * obj0 = 0 ; | |
5847 | PyObject * obj1 = 0 ; | |
5848 | PyObject * obj2 = 0 ; | |
5849 | char *kwnames[] = { | |
5850 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5851 | }; | |
5852 | ||
5853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5856 | arg2 = (int) SWIG_AsInt(obj1); | |
5857 | if (PyErr_Occurred()) SWIG_fail; | |
5858 | if (obj2) { | |
5859 | arg3 = (int) SWIG_AsInt(obj2); | |
5860 | if (PyErr_Occurred()) SWIG_fail; | |
5861 | } | |
5862 | { | |
5863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5864 | (arg1)->seek(arg2,arg3); | |
5865 | ||
5866 | wxPyEndAllowThreads(__tstate); | |
5867 | if (PyErr_Occurred()) SWIG_fail; | |
5868 | } | |
5869 | Py_INCREF(Py_None); resultobj = Py_None; | |
5870 | return resultobj; | |
5871 | fail: | |
5872 | return NULL; | |
5873 | } | |
5874 | ||
5875 | ||
5876 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5877 | PyObject *resultobj; | |
5878 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5879 | int result; | |
5880 | PyObject * obj0 = 0 ; | |
5881 | char *kwnames[] = { | |
5882 | (char *) "self", NULL | |
5883 | }; | |
5884 | ||
5885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
5886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5888 | { | |
5889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5890 | result = (int)(arg1)->tell(); | |
5891 | ||
5892 | wxPyEndAllowThreads(__tstate); | |
5893 | if (PyErr_Occurred()) SWIG_fail; | |
5894 | } | |
5895 | resultobj = SWIG_FromInt((int)result); | |
5896 | return resultobj; | |
5897 | fail: | |
5898 | return NULL; | |
5899 | } | |
5900 | ||
5901 | ||
5902 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5903 | PyObject *resultobj; | |
5904 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5905 | char result; | |
5906 | PyObject * obj0 = 0 ; | |
5907 | char *kwnames[] = { | |
5908 | (char *) "self", NULL | |
5909 | }; | |
5910 | ||
5911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
5912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5914 | { | |
5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5916 | result = (char)(arg1)->Peek(); | |
5917 | ||
5918 | wxPyEndAllowThreads(__tstate); | |
5919 | if (PyErr_Occurred()) SWIG_fail; | |
5920 | } | |
5921 | resultobj = SWIG_FromChar((char)result); | |
5922 | return resultobj; | |
5923 | fail: | |
5924 | return NULL; | |
5925 | } | |
5926 | ||
5927 | ||
5928 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5929 | PyObject *resultobj; | |
5930 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5931 | char result; | |
5932 | PyObject * obj0 = 0 ; | |
5933 | char *kwnames[] = { | |
5934 | (char *) "self", NULL | |
5935 | }; | |
5936 | ||
5937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
5938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5940 | { | |
5941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5942 | result = (char)(arg1)->GetC(); | |
5943 | ||
5944 | wxPyEndAllowThreads(__tstate); | |
5945 | if (PyErr_Occurred()) SWIG_fail; | |
5946 | } | |
5947 | resultobj = SWIG_FromChar((char)result); | |
5948 | return resultobj; | |
5949 | fail: | |
5950 | return NULL; | |
5951 | } | |
5952 | ||
5953 | ||
5954 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5955 | PyObject *resultobj; | |
5956 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5957 | size_t result; | |
5958 | PyObject * obj0 = 0 ; | |
5959 | char *kwnames[] = { | |
5960 | (char *) "self", NULL | |
5961 | }; | |
5962 | ||
5963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
5964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5966 | { | |
5967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5968 | result = (size_t)(arg1)->LastRead(); | |
5969 | ||
5970 | wxPyEndAllowThreads(__tstate); | |
5971 | if (PyErr_Occurred()) SWIG_fail; | |
5972 | } | |
5973 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
5974 | return resultobj; | |
5975 | fail: | |
5976 | return NULL; | |
5977 | } | |
5978 | ||
5979 | ||
5980 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5981 | PyObject *resultobj; | |
5982 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5983 | bool result; | |
5984 | PyObject * obj0 = 0 ; | |
5985 | char *kwnames[] = { | |
5986 | (char *) "self", NULL | |
5987 | }; | |
5988 | ||
5989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
5990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5992 | { | |
5993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5994 | result = (bool)(arg1)->CanRead(); | |
5995 | ||
5996 | wxPyEndAllowThreads(__tstate); | |
5997 | if (PyErr_Occurred()) SWIG_fail; | |
5998 | } | |
5999 | { | |
6000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6001 | } | |
6002 | return resultobj; | |
6003 | fail: | |
6004 | return NULL; | |
6005 | } | |
6006 | ||
6007 | ||
6008 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6009 | PyObject *resultobj; | |
6010 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6011 | bool result; | |
6012 | PyObject * obj0 = 0 ; | |
6013 | char *kwnames[] = { | |
6014 | (char *) "self", NULL | |
6015 | }; | |
6016 | ||
6017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
6018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6020 | { | |
6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6022 | result = (bool)(arg1)->Eof(); | |
6023 | ||
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
6027 | { | |
6028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6029 | } | |
6030 | return resultobj; | |
6031 | fail: | |
6032 | return NULL; | |
6033 | } | |
6034 | ||
6035 | ||
6036 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6037 | PyObject *resultobj; | |
6038 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6039 | char arg2 ; | |
6040 | bool result; | |
6041 | PyObject * obj0 = 0 ; | |
6042 | PyObject * obj1 = 0 ; | |
6043 | char *kwnames[] = { | |
6044 | (char *) "self",(char *) "c", NULL | |
6045 | }; | |
6046 | ||
6047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; | |
6048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6050 | arg2 = (char) SWIG_AsChar(obj1); | |
6051 | if (PyErr_Occurred()) SWIG_fail; | |
6052 | { | |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6054 | result = (bool)(arg1)->Ungetch(arg2); | |
6055 | ||
6056 | wxPyEndAllowThreads(__tstate); | |
6057 | if (PyErr_Occurred()) SWIG_fail; | |
6058 | } | |
6059 | { | |
6060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6061 | } | |
6062 | return resultobj; | |
6063 | fail: | |
6064 | return NULL; | |
6065 | } | |
6066 | ||
6067 | ||
6068 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6069 | PyObject *resultobj; | |
6070 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6071 | long arg2 ; | |
6072 | int arg3 = (int) wxFromStart ; | |
6073 | long result; | |
6074 | PyObject * obj0 = 0 ; | |
6075 | PyObject * obj1 = 0 ; | |
6076 | PyObject * obj2 = 0 ; | |
6077 | char *kwnames[] = { | |
6078 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6079 | }; | |
6080 | ||
6081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6084 | arg2 = (long) SWIG_AsLong(obj1); | |
6085 | if (PyErr_Occurred()) SWIG_fail; | |
6086 | if (obj2) { | |
6087 | arg3 = (wxSeekMode) SWIG_AsInt(obj2); | |
6088 | if (PyErr_Occurred()) SWIG_fail; | |
6089 | } | |
6090 | { | |
6091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6092 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6093 | ||
6094 | wxPyEndAllowThreads(__tstate); | |
6095 | if (PyErr_Occurred()) SWIG_fail; | |
6096 | } | |
6097 | resultobj = SWIG_FromLong((long)result); | |
6098 | return resultobj; | |
6099 | fail: | |
6100 | return NULL; | |
6101 | } | |
6102 | ||
6103 | ||
6104 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6105 | PyObject *resultobj; | |
6106 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6107 | long result; | |
6108 | PyObject * obj0 = 0 ; | |
6109 | char *kwnames[] = { | |
6110 | (char *) "self", NULL | |
6111 | }; | |
6112 | ||
6113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
6114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6116 | { | |
6117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6118 | result = (long)(arg1)->TellI(); | |
6119 | ||
6120 | wxPyEndAllowThreads(__tstate); | |
6121 | if (PyErr_Occurred()) SWIG_fail; | |
6122 | } | |
6123 | resultobj = SWIG_FromLong((long)result); | |
6124 | return resultobj; | |
6125 | fail: | |
6126 | return NULL; | |
6127 | } | |
6128 | ||
6129 | ||
6130 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
6131 | PyObject *obj; | |
6132 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6133 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6134 | Py_INCREF(obj); | |
6135 | return Py_BuildValue((char *)""); | |
6136 | } | |
6137 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6138 | PyObject *resultobj; | |
6139 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6140 | PyObject *arg2 = (PyObject *) 0 ; | |
6141 | PyObject * obj0 = 0 ; | |
6142 | PyObject * obj1 = 0 ; | |
6143 | char *kwnames[] = { | |
6144 | (char *) "self",(char *) "obj", NULL | |
6145 | }; | |
6146 | ||
6147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
6148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, | |
6149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6150 | arg2 = obj1; | |
6151 | { | |
6152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6153 | wxOutputStream_write(arg1,arg2); | |
6154 | ||
6155 | wxPyEndAllowThreads(__tstate); | |
6156 | if (PyErr_Occurred()) SWIG_fail; | |
6157 | } | |
6158 | Py_INCREF(Py_None); resultobj = Py_None; | |
6159 | return resultobj; | |
6160 | fail: | |
6161 | return NULL; | |
6162 | } | |
6163 | ||
6164 | ||
6165 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
6166 | PyObject *obj; | |
6167 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6168 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6169 | Py_INCREF(obj); | |
6170 | return Py_BuildValue((char *)""); | |
6171 | } | |
6172 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6173 | PyObject *resultobj; | |
6174 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6175 | wxString *arg2 = 0 ; | |
6176 | wxString *arg3 = 0 ; | |
6177 | wxString *arg4 = 0 ; | |
6178 | wxDateTime arg5 ; | |
6179 | wxFSFile *result; | |
6180 | wxPyInputStream *temp1 ; | |
6181 | bool created1 ; | |
6182 | bool temp2 = False ; | |
6183 | bool temp3 = False ; | |
6184 | bool temp4 = False ; | |
6185 | wxDateTime *argp5 ; | |
6186 | PyObject * obj0 = 0 ; | |
6187 | PyObject * obj1 = 0 ; | |
6188 | PyObject * obj2 = 0 ; | |
6189 | PyObject * obj3 = 0 ; | |
6190 | PyObject * obj4 = 0 ; | |
6191 | char *kwnames[] = { | |
6192 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6193 | }; | |
6194 | ||
6195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6196 | { | |
6197 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6198 | arg1 = temp1->m_wxis; | |
6199 | created1 = False; | |
6200 | } else { | |
6201 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
6202 | arg1 = wxPyCBInputStream_create(obj0, False); | |
6203 | if (arg1 == NULL) { | |
6204 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6205 | SWIG_fail; | |
6206 | } | |
6207 | created1 = True; | |
6208 | } | |
6209 | } | |
6210 | { | |
6211 | arg2 = wxString_in_helper(obj1); | |
6212 | if (arg2 == NULL) SWIG_fail; | |
6213 | temp2 = True; | |
6214 | } | |
6215 | { | |
6216 | arg3 = wxString_in_helper(obj2); | |
6217 | if (arg3 == NULL) SWIG_fail; | |
6218 | temp3 = True; | |
6219 | } | |
6220 | { | |
6221 | arg4 = wxString_in_helper(obj3); | |
6222 | if (arg4 == NULL) SWIG_fail; | |
6223 | temp4 = True; | |
6224 | } | |
6225 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, | |
6226 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6227 | arg5 = *argp5; | |
6228 | { | |
6229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6230 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6231 | ||
6232 | wxPyEndAllowThreads(__tstate); | |
6233 | if (PyErr_Occurred()) SWIG_fail; | |
6234 | } | |
6235 | { | |
6236 | resultobj = wxPyMake_wxObject(result); | |
6237 | } | |
6238 | { | |
6239 | if (created1) | |
6240 | delete arg1; | |
6241 | } | |
6242 | { | |
6243 | if (temp2) | |
6244 | delete arg2; | |
6245 | } | |
6246 | { | |
6247 | if (temp3) | |
6248 | delete arg3; | |
6249 | } | |
6250 | { | |
6251 | if (temp4) | |
6252 | delete arg4; | |
6253 | } | |
6254 | return resultobj; | |
6255 | fail: | |
6256 | { | |
6257 | if (created1) | |
6258 | delete arg1; | |
6259 | } | |
6260 | { | |
6261 | if (temp2) | |
6262 | delete arg2; | |
6263 | } | |
6264 | { | |
6265 | if (temp3) | |
6266 | delete arg3; | |
6267 | } | |
6268 | { | |
6269 | if (temp4) | |
6270 | delete arg4; | |
6271 | } | |
6272 | return NULL; | |
6273 | } | |
6274 | ||
6275 | ||
6276 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6277 | PyObject *resultobj; | |
6278 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6279 | PyObject * obj0 = 0 ; | |
6280 | char *kwnames[] = { | |
6281 | (char *) "self", NULL | |
6282 | }; | |
6283 | ||
6284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
6285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6287 | { | |
6288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6289 | delete arg1; | |
6290 | ||
6291 | wxPyEndAllowThreads(__tstate); | |
6292 | if (PyErr_Occurred()) SWIG_fail; | |
6293 | } | |
6294 | Py_INCREF(Py_None); resultobj = Py_None; | |
6295 | return resultobj; | |
6296 | fail: | |
6297 | return NULL; | |
6298 | } | |
6299 | ||
6300 | ||
6301 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6302 | PyObject *resultobj; | |
6303 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6304 | wxInputStream *result; | |
6305 | PyObject * obj0 = 0 ; | |
6306 | char *kwnames[] = { | |
6307 | (char *) "self", NULL | |
6308 | }; | |
6309 | ||
6310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
6311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6313 | { | |
6314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6315 | result = (wxInputStream *)(arg1)->GetStream(); | |
6316 | ||
6317 | wxPyEndAllowThreads(__tstate); | |
6318 | if (PyErr_Occurred()) SWIG_fail; | |
6319 | } | |
6320 | { | |
6321 | wxPyInputStream * _ptr = NULL; | |
6322 | ||
6323 | if (result) { | |
6324 | _ptr = new wxPyInputStream(result); | |
6325 | } | |
6326 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
6327 | } | |
6328 | return resultobj; | |
6329 | fail: | |
6330 | return NULL; | |
6331 | } | |
6332 | ||
6333 | ||
6334 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6335 | PyObject *resultobj; | |
6336 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6337 | wxString *result; | |
6338 | PyObject * obj0 = 0 ; | |
6339 | char *kwnames[] = { | |
6340 | (char *) "self", NULL | |
6341 | }; | |
6342 | ||
6343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
6344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6346 | { | |
6347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6348 | { | |
6349 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6350 | result = (wxString *) &_result_ref; | |
6351 | } | |
6352 | ||
6353 | wxPyEndAllowThreads(__tstate); | |
6354 | if (PyErr_Occurred()) SWIG_fail; | |
6355 | } | |
6356 | { | |
6357 | #if wxUSE_UNICODE | |
6358 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6359 | #else | |
6360 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6361 | #endif | |
6362 | } | |
6363 | return resultobj; | |
6364 | fail: | |
6365 | return NULL; | |
6366 | } | |
6367 | ||
6368 | ||
6369 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6370 | PyObject *resultobj; | |
6371 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6372 | wxString *result; | |
6373 | PyObject * obj0 = 0 ; | |
6374 | char *kwnames[] = { | |
6375 | (char *) "self", NULL | |
6376 | }; | |
6377 | ||
6378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
6379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6381 | { | |
6382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6383 | { | |
6384 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6385 | result = (wxString *) &_result_ref; | |
6386 | } | |
6387 | ||
6388 | wxPyEndAllowThreads(__tstate); | |
6389 | if (PyErr_Occurred()) SWIG_fail; | |
6390 | } | |
6391 | { | |
6392 | #if wxUSE_UNICODE | |
6393 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6394 | #else | |
6395 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6396 | #endif | |
6397 | } | |
6398 | return resultobj; | |
6399 | fail: | |
6400 | return NULL; | |
6401 | } | |
6402 | ||
6403 | ||
6404 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6405 | PyObject *resultobj; | |
6406 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6407 | wxString *result; | |
6408 | PyObject * obj0 = 0 ; | |
6409 | char *kwnames[] = { | |
6410 | (char *) "self", NULL | |
6411 | }; | |
6412 | ||
6413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
6414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6416 | { | |
6417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6418 | { | |
6419 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6420 | result = (wxString *) &_result_ref; | |
6421 | } | |
6422 | ||
6423 | wxPyEndAllowThreads(__tstate); | |
6424 | if (PyErr_Occurred()) SWIG_fail; | |
6425 | } | |
6426 | { | |
6427 | #if wxUSE_UNICODE | |
6428 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6429 | #else | |
6430 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6431 | #endif | |
6432 | } | |
6433 | return resultobj; | |
6434 | fail: | |
6435 | return NULL; | |
6436 | } | |
6437 | ||
6438 | ||
6439 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6440 | PyObject *resultobj; | |
6441 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6442 | wxDateTime result; | |
6443 | PyObject * obj0 = 0 ; | |
6444 | char *kwnames[] = { | |
6445 | (char *) "self", NULL | |
6446 | }; | |
6447 | ||
6448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
6449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6451 | { | |
6452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6453 | result = (arg1)->GetModificationTime(); | |
6454 | ||
6455 | wxPyEndAllowThreads(__tstate); | |
6456 | if (PyErr_Occurred()) SWIG_fail; | |
6457 | } | |
6458 | { | |
6459 | wxDateTime * resultptr; | |
6460 | resultptr = new wxDateTime((wxDateTime &) result); | |
6461 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
6462 | } | |
6463 | return resultobj; | |
6464 | fail: | |
6465 | return NULL; | |
6466 | } | |
6467 | ||
6468 | ||
6469 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6470 | PyObject *obj; | |
6471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6472 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6473 | Py_INCREF(obj); | |
6474 | return Py_BuildValue((char *)""); | |
6475 | } | |
6476 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6477 | PyObject *obj; | |
6478 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6479 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6480 | Py_INCREF(obj); | |
6481 | return Py_BuildValue((char *)""); | |
6482 | } | |
6483 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6484 | PyObject *resultobj; | |
6485 | wxPyFileSystemHandler *result; | |
6486 | char *kwnames[] = { | |
6487 | NULL | |
6488 | }; | |
6489 | ||
6490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6491 | { | |
6492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6493 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6494 | ||
6495 | wxPyEndAllowThreads(__tstate); | |
6496 | if (PyErr_Occurred()) SWIG_fail; | |
6497 | } | |
6498 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
6499 | return resultobj; | |
6500 | fail: | |
6501 | return NULL; | |
6502 | } | |
6503 | ||
6504 | ||
6505 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6506 | PyObject *resultobj; | |
6507 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6508 | PyObject *arg2 = (PyObject *) 0 ; | |
6509 | PyObject *arg3 = (PyObject *) 0 ; | |
6510 | PyObject * obj0 = 0 ; | |
6511 | PyObject * obj1 = 0 ; | |
6512 | PyObject * obj2 = 0 ; | |
6513 | char *kwnames[] = { | |
6514 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6515 | }; | |
6516 | ||
6517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6520 | arg2 = obj1; | |
6521 | arg3 = obj2; | |
6522 | { | |
6523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6524 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6525 | ||
6526 | wxPyEndAllowThreads(__tstate); | |
6527 | if (PyErr_Occurred()) SWIG_fail; | |
6528 | } | |
6529 | Py_INCREF(Py_None); resultobj = Py_None; | |
6530 | return resultobj; | |
6531 | fail: | |
6532 | return NULL; | |
6533 | } | |
6534 | ||
6535 | ||
6536 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6537 | PyObject *resultobj; | |
6538 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6539 | wxString *arg2 = 0 ; | |
6540 | bool result; | |
6541 | bool temp2 = False ; | |
6542 | PyObject * obj0 = 0 ; | |
6543 | PyObject * obj1 = 0 ; | |
6544 | char *kwnames[] = { | |
6545 | (char *) "self",(char *) "location", NULL | |
6546 | }; | |
6547 | ||
6548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6551 | { | |
6552 | arg2 = wxString_in_helper(obj1); | |
6553 | if (arg2 == NULL) SWIG_fail; | |
6554 | temp2 = True; | |
6555 | } | |
6556 | { | |
6557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6558 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6559 | ||
6560 | wxPyEndAllowThreads(__tstate); | |
6561 | if (PyErr_Occurred()) SWIG_fail; | |
6562 | } | |
6563 | { | |
6564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6565 | } | |
6566 | { | |
6567 | if (temp2) | |
6568 | delete arg2; | |
6569 | } | |
6570 | return resultobj; | |
6571 | fail: | |
6572 | { | |
6573 | if (temp2) | |
6574 | delete arg2; | |
6575 | } | |
6576 | return NULL; | |
6577 | } | |
6578 | ||
6579 | ||
6580 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6581 | PyObject *resultobj; | |
6582 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6583 | wxFileSystem *arg2 = 0 ; | |
6584 | wxString *arg3 = 0 ; | |
6585 | wxFSFile *result; | |
6586 | bool temp3 = False ; | |
6587 | PyObject * obj0 = 0 ; | |
6588 | PyObject * obj1 = 0 ; | |
6589 | PyObject * obj2 = 0 ; | |
6590 | char *kwnames[] = { | |
6591 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6592 | }; | |
6593 | ||
6594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6597 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6598 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6599 | SWIG_fail; | |
6600 | if (arg2 == NULL) { | |
6601 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6602 | SWIG_fail; | |
6603 | } | |
6604 | { | |
6605 | arg3 = wxString_in_helper(obj2); | |
6606 | if (arg3 == NULL) SWIG_fail; | |
6607 | temp3 = True; | |
6608 | } | |
6609 | { | |
6610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6611 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6612 | ||
6613 | wxPyEndAllowThreads(__tstate); | |
6614 | if (PyErr_Occurred()) SWIG_fail; | |
6615 | } | |
6616 | { | |
6617 | resultobj = wxPyMake_wxObject(result); | |
6618 | } | |
6619 | { | |
6620 | if (temp3) | |
6621 | delete arg3; | |
6622 | } | |
6623 | return resultobj; | |
6624 | fail: | |
6625 | { | |
6626 | if (temp3) | |
6627 | delete arg3; | |
6628 | } | |
6629 | return NULL; | |
6630 | } | |
6631 | ||
6632 | ||
6633 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6634 | PyObject *resultobj; | |
6635 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6636 | wxString *arg2 = 0 ; | |
6637 | int arg3 = (int) 0 ; | |
6638 | wxString result; | |
6639 | bool temp2 = False ; | |
6640 | PyObject * obj0 = 0 ; | |
6641 | PyObject * obj1 = 0 ; | |
6642 | PyObject * obj2 = 0 ; | |
6643 | char *kwnames[] = { | |
6644 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6645 | }; | |
6646 | ||
6647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6650 | { | |
6651 | arg2 = wxString_in_helper(obj1); | |
6652 | if (arg2 == NULL) SWIG_fail; | |
6653 | temp2 = True; | |
6654 | } | |
6655 | if (obj2) { | |
6656 | arg3 = (int) SWIG_AsInt(obj2); | |
6657 | if (PyErr_Occurred()) SWIG_fail; | |
6658 | } | |
6659 | { | |
6660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6661 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6662 | ||
6663 | wxPyEndAllowThreads(__tstate); | |
6664 | if (PyErr_Occurred()) SWIG_fail; | |
6665 | } | |
6666 | { | |
6667 | #if wxUSE_UNICODE | |
6668 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6669 | #else | |
6670 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6671 | #endif | |
6672 | } | |
6673 | { | |
6674 | if (temp2) | |
6675 | delete arg2; | |
6676 | } | |
6677 | return resultobj; | |
6678 | fail: | |
6679 | { | |
6680 | if (temp2) | |
6681 | delete arg2; | |
6682 | } | |
6683 | return NULL; | |
6684 | } | |
6685 | ||
6686 | ||
6687 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject *resultobj; | |
6689 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6690 | wxString result; | |
6691 | PyObject * obj0 = 0 ; | |
6692 | char *kwnames[] = { | |
6693 | (char *) "self", NULL | |
6694 | }; | |
6695 | ||
6696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
6697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6699 | { | |
6700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6701 | result = (arg1)->FindNext(); | |
6702 | ||
6703 | wxPyEndAllowThreads(__tstate); | |
6704 | if (PyErr_Occurred()) SWIG_fail; | |
6705 | } | |
6706 | { | |
6707 | #if wxUSE_UNICODE | |
6708 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6709 | #else | |
6710 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6711 | #endif | |
6712 | } | |
6713 | return resultobj; | |
6714 | fail: | |
6715 | return NULL; | |
6716 | } | |
6717 | ||
6718 | ||
6719 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6720 | PyObject *resultobj; | |
6721 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6722 | wxString *arg2 = 0 ; | |
6723 | wxString result; | |
6724 | bool temp2 = False ; | |
6725 | PyObject * obj0 = 0 ; | |
6726 | PyObject * obj1 = 0 ; | |
6727 | char *kwnames[] = { | |
6728 | (char *) "self",(char *) "location", NULL | |
6729 | }; | |
6730 | ||
6731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
6732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6734 | { | |
6735 | arg2 = wxString_in_helper(obj1); | |
6736 | if (arg2 == NULL) SWIG_fail; | |
6737 | temp2 = True; | |
6738 | } | |
6739 | { | |
6740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6741 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6742 | ||
6743 | wxPyEndAllowThreads(__tstate); | |
6744 | if (PyErr_Occurred()) SWIG_fail; | |
6745 | } | |
6746 | { | |
6747 | #if wxUSE_UNICODE | |
6748 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6749 | #else | |
6750 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6751 | #endif | |
6752 | } | |
6753 | { | |
6754 | if (temp2) | |
6755 | delete arg2; | |
6756 | } | |
6757 | return resultobj; | |
6758 | fail: | |
6759 | { | |
6760 | if (temp2) | |
6761 | delete arg2; | |
6762 | } | |
6763 | return NULL; | |
6764 | } | |
6765 | ||
6766 | ||
6767 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6768 | PyObject *resultobj; | |
6769 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6770 | wxString *arg2 = 0 ; | |
6771 | wxString result; | |
6772 | bool temp2 = False ; | |
6773 | PyObject * obj0 = 0 ; | |
6774 | PyObject * obj1 = 0 ; | |
6775 | char *kwnames[] = { | |
6776 | (char *) "self",(char *) "location", NULL | |
6777 | }; | |
6778 | ||
6779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
6780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6782 | { | |
6783 | arg2 = wxString_in_helper(obj1); | |
6784 | if (arg2 == NULL) SWIG_fail; | |
6785 | temp2 = True; | |
6786 | } | |
6787 | { | |
6788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6789 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6790 | ||
6791 | wxPyEndAllowThreads(__tstate); | |
6792 | if (PyErr_Occurred()) SWIG_fail; | |
6793 | } | |
6794 | { | |
6795 | #if wxUSE_UNICODE | |
6796 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6797 | #else | |
6798 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6799 | #endif | |
6800 | } | |
6801 | { | |
6802 | if (temp2) | |
6803 | delete arg2; | |
6804 | } | |
6805 | return resultobj; | |
6806 | fail: | |
6807 | { | |
6808 | if (temp2) | |
6809 | delete arg2; | |
6810 | } | |
6811 | return NULL; | |
6812 | } | |
6813 | ||
6814 | ||
6815 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6816 | PyObject *resultobj; | |
6817 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6818 | wxString *arg2 = 0 ; | |
6819 | wxString result; | |
6820 | bool temp2 = False ; | |
6821 | PyObject * obj0 = 0 ; | |
6822 | PyObject * obj1 = 0 ; | |
6823 | char *kwnames[] = { | |
6824 | (char *) "self",(char *) "location", NULL | |
6825 | }; | |
6826 | ||
6827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
6828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6830 | { | |
6831 | arg2 = wxString_in_helper(obj1); | |
6832 | if (arg2 == NULL) SWIG_fail; | |
6833 | temp2 = True; | |
6834 | } | |
6835 | { | |
6836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6837 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6838 | ||
6839 | wxPyEndAllowThreads(__tstate); | |
6840 | if (PyErr_Occurred()) SWIG_fail; | |
6841 | } | |
6842 | { | |
6843 | #if wxUSE_UNICODE | |
6844 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6845 | #else | |
6846 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6847 | #endif | |
6848 | } | |
6849 | { | |
6850 | if (temp2) | |
6851 | delete arg2; | |
6852 | } | |
6853 | return resultobj; | |
6854 | fail: | |
6855 | { | |
6856 | if (temp2) | |
6857 | delete arg2; | |
6858 | } | |
6859 | return NULL; | |
6860 | } | |
6861 | ||
6862 | ||
6863 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6864 | PyObject *resultobj; | |
6865 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6866 | wxString *arg2 = 0 ; | |
6867 | wxString result; | |
6868 | bool temp2 = False ; | |
6869 | PyObject * obj0 = 0 ; | |
6870 | PyObject * obj1 = 0 ; | |
6871 | char *kwnames[] = { | |
6872 | (char *) "self",(char *) "location", NULL | |
6873 | }; | |
6874 | ||
6875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
6876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6878 | { | |
6879 | arg2 = wxString_in_helper(obj1); | |
6880 | if (arg2 == NULL) SWIG_fail; | |
6881 | temp2 = True; | |
6882 | } | |
6883 | { | |
6884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6885 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6886 | ||
6887 | wxPyEndAllowThreads(__tstate); | |
6888 | if (PyErr_Occurred()) SWIG_fail; | |
6889 | } | |
6890 | { | |
6891 | #if wxUSE_UNICODE | |
6892 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6893 | #else | |
6894 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6895 | #endif | |
6896 | } | |
6897 | { | |
6898 | if (temp2) | |
6899 | delete arg2; | |
6900 | } | |
6901 | return resultobj; | |
6902 | fail: | |
6903 | { | |
6904 | if (temp2) | |
6905 | delete arg2; | |
6906 | } | |
6907 | return NULL; | |
6908 | } | |
6909 | ||
6910 | ||
6911 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6912 | PyObject *resultobj; | |
6913 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6914 | wxString *arg2 = 0 ; | |
6915 | wxString result; | |
6916 | bool temp2 = False ; | |
6917 | PyObject * obj0 = 0 ; | |
6918 | PyObject * obj1 = 0 ; | |
6919 | char *kwnames[] = { | |
6920 | (char *) "self",(char *) "location", NULL | |
6921 | }; | |
6922 | ||
6923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
6924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6926 | { | |
6927 | arg2 = wxString_in_helper(obj1); | |
6928 | if (arg2 == NULL) SWIG_fail; | |
6929 | temp2 = True; | |
6930 | } | |
6931 | { | |
6932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6933 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6934 | ||
6935 | wxPyEndAllowThreads(__tstate); | |
6936 | if (PyErr_Occurred()) SWIG_fail; | |
6937 | } | |
6938 | { | |
6939 | #if wxUSE_UNICODE | |
6940 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6941 | #else | |
6942 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6943 | #endif | |
6944 | } | |
6945 | { | |
6946 | if (temp2) | |
6947 | delete arg2; | |
6948 | } | |
6949 | return resultobj; | |
6950 | fail: | |
6951 | { | |
6952 | if (temp2) | |
6953 | delete arg2; | |
6954 | } | |
6955 | return NULL; | |
6956 | } | |
6957 | ||
6958 | ||
6959 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6960 | PyObject *obj; | |
6961 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6962 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
6963 | Py_INCREF(obj); | |
6964 | return Py_BuildValue((char *)""); | |
6965 | } | |
6966 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6967 | PyObject *resultobj; | |
6968 | wxFileSystem *result; | |
6969 | char *kwnames[] = { | |
6970 | NULL | |
6971 | }; | |
6972 | ||
6973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6974 | { | |
6975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6976 | result = (wxFileSystem *)new wxFileSystem(); | |
6977 | ||
6978 | wxPyEndAllowThreads(__tstate); | |
6979 | if (PyErr_Occurred()) SWIG_fail; | |
6980 | } | |
6981 | { | |
6982 | resultobj = wxPyMake_wxObject(result); | |
6983 | } | |
6984 | return resultobj; | |
6985 | fail: | |
6986 | return NULL; | |
6987 | } | |
6988 | ||
6989 | ||
6990 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6991 | PyObject *resultobj; | |
6992 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6993 | PyObject * obj0 = 0 ; | |
6994 | char *kwnames[] = { | |
6995 | (char *) "self", NULL | |
6996 | }; | |
6997 | ||
6998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
6999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7001 | { | |
7002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7003 | delete arg1; | |
7004 | ||
7005 | wxPyEndAllowThreads(__tstate); | |
7006 | if (PyErr_Occurred()) SWIG_fail; | |
7007 | } | |
7008 | Py_INCREF(Py_None); resultobj = Py_None; | |
7009 | return resultobj; | |
7010 | fail: | |
7011 | return NULL; | |
7012 | } | |
7013 | ||
7014 | ||
7015 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7016 | PyObject *resultobj; | |
7017 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7018 | wxString *arg2 = 0 ; | |
7019 | bool arg3 = (bool) False ; | |
7020 | bool temp2 = False ; | |
7021 | PyObject * obj0 = 0 ; | |
7022 | PyObject * obj1 = 0 ; | |
7023 | PyObject * obj2 = 0 ; | |
7024 | char *kwnames[] = { | |
7025 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7026 | }; | |
7027 | ||
7028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7031 | { | |
7032 | arg2 = wxString_in_helper(obj1); | |
7033 | if (arg2 == NULL) SWIG_fail; | |
7034 | temp2 = True; | |
7035 | } | |
7036 | if (obj2) { | |
7037 | arg3 = (bool) SWIG_AsBool(obj2); | |
7038 | if (PyErr_Occurred()) SWIG_fail; | |
7039 | } | |
7040 | { | |
7041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7042 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7043 | ||
7044 | wxPyEndAllowThreads(__tstate); | |
7045 | if (PyErr_Occurred()) SWIG_fail; | |
7046 | } | |
7047 | Py_INCREF(Py_None); resultobj = Py_None; | |
7048 | { | |
7049 | if (temp2) | |
7050 | delete arg2; | |
7051 | } | |
7052 | return resultobj; | |
7053 | fail: | |
7054 | { | |
7055 | if (temp2) | |
7056 | delete arg2; | |
7057 | } | |
7058 | return NULL; | |
7059 | } | |
7060 | ||
7061 | ||
7062 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7063 | PyObject *resultobj; | |
7064 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7065 | wxString result; | |
7066 | PyObject * obj0 = 0 ; | |
7067 | char *kwnames[] = { | |
7068 | (char *) "self", NULL | |
7069 | }; | |
7070 | ||
7071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
7072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7074 | { | |
7075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7076 | result = (arg1)->GetPath(); | |
7077 | ||
7078 | wxPyEndAllowThreads(__tstate); | |
7079 | if (PyErr_Occurred()) SWIG_fail; | |
7080 | } | |
7081 | { | |
7082 | #if wxUSE_UNICODE | |
7083 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7084 | #else | |
7085 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7086 | #endif | |
7087 | } | |
7088 | return resultobj; | |
7089 | fail: | |
7090 | return NULL; | |
7091 | } | |
7092 | ||
7093 | ||
7094 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7095 | PyObject *resultobj; | |
7096 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7097 | wxString *arg2 = 0 ; | |
7098 | wxFSFile *result; | |
7099 | bool temp2 = False ; | |
7100 | PyObject * obj0 = 0 ; | |
7101 | PyObject * obj1 = 0 ; | |
7102 | char *kwnames[] = { | |
7103 | (char *) "self",(char *) "location", NULL | |
7104 | }; | |
7105 | ||
7106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
7107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7109 | { | |
7110 | arg2 = wxString_in_helper(obj1); | |
7111 | if (arg2 == NULL) SWIG_fail; | |
7112 | temp2 = True; | |
7113 | } | |
7114 | { | |
7115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7116 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7117 | ||
7118 | wxPyEndAllowThreads(__tstate); | |
7119 | if (PyErr_Occurred()) SWIG_fail; | |
7120 | } | |
7121 | { | |
7122 | resultobj = wxPyMake_wxObject(result); | |
7123 | } | |
7124 | { | |
7125 | if (temp2) | |
7126 | delete arg2; | |
7127 | } | |
7128 | return resultobj; | |
7129 | fail: | |
7130 | { | |
7131 | if (temp2) | |
7132 | delete arg2; | |
7133 | } | |
7134 | return NULL; | |
7135 | } | |
7136 | ||
7137 | ||
7138 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7139 | PyObject *resultobj; | |
7140 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7141 | wxString *arg2 = 0 ; | |
7142 | int arg3 = (int) 0 ; | |
7143 | wxString result; | |
7144 | bool temp2 = False ; | |
7145 | PyObject * obj0 = 0 ; | |
7146 | PyObject * obj1 = 0 ; | |
7147 | PyObject * obj2 = 0 ; | |
7148 | char *kwnames[] = { | |
7149 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7150 | }; | |
7151 | ||
7152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7155 | { | |
7156 | arg2 = wxString_in_helper(obj1); | |
7157 | if (arg2 == NULL) SWIG_fail; | |
7158 | temp2 = True; | |
7159 | } | |
7160 | if (obj2) { | |
7161 | arg3 = (int) SWIG_AsInt(obj2); | |
7162 | if (PyErr_Occurred()) SWIG_fail; | |
7163 | } | |
7164 | { | |
7165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7166 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7167 | ||
7168 | wxPyEndAllowThreads(__tstate); | |
7169 | if (PyErr_Occurred()) SWIG_fail; | |
7170 | } | |
7171 | { | |
7172 | #if wxUSE_UNICODE | |
7173 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7174 | #else | |
7175 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7176 | #endif | |
7177 | } | |
7178 | { | |
7179 | if (temp2) | |
7180 | delete arg2; | |
7181 | } | |
7182 | return resultobj; | |
7183 | fail: | |
7184 | { | |
7185 | if (temp2) | |
7186 | delete arg2; | |
7187 | } | |
7188 | return NULL; | |
7189 | } | |
7190 | ||
7191 | ||
7192 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7193 | PyObject *resultobj; | |
7194 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7195 | wxString result; | |
7196 | PyObject * obj0 = 0 ; | |
7197 | char *kwnames[] = { | |
7198 | (char *) "self", NULL | |
7199 | }; | |
7200 | ||
7201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
7202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7204 | { | |
7205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7206 | result = (arg1)->FindNext(); | |
7207 | ||
7208 | wxPyEndAllowThreads(__tstate); | |
7209 | if (PyErr_Occurred()) SWIG_fail; | |
7210 | } | |
7211 | { | |
7212 | #if wxUSE_UNICODE | |
7213 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7214 | #else | |
7215 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7216 | #endif | |
7217 | } | |
7218 | return resultobj; | |
7219 | fail: | |
7220 | return NULL; | |
7221 | } | |
7222 | ||
7223 | ||
7224 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7225 | PyObject *resultobj; | |
7226 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7227 | PyObject * obj0 = 0 ; | |
7228 | char *kwnames[] = { | |
7229 | (char *) "handler", NULL | |
7230 | }; | |
7231 | ||
7232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
7233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, | |
7234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7235 | { | |
7236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7237 | wxFileSystem::AddHandler(arg1); | |
7238 | ||
7239 | wxPyEndAllowThreads(__tstate); | |
7240 | if (PyErr_Occurred()) SWIG_fail; | |
7241 | } | |
7242 | Py_INCREF(Py_None); resultobj = Py_None; | |
7243 | return resultobj; | |
7244 | fail: | |
7245 | return NULL; | |
7246 | } | |
7247 | ||
7248 | ||
7249 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7250 | PyObject *resultobj; | |
7251 | char *kwnames[] = { | |
7252 | NULL | |
7253 | }; | |
7254 | ||
7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7256 | { | |
7257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7258 | wxFileSystem::CleanUpHandlers(); | |
7259 | ||
7260 | wxPyEndAllowThreads(__tstate); | |
7261 | if (PyErr_Occurred()) SWIG_fail; | |
7262 | } | |
7263 | Py_INCREF(Py_None); resultobj = Py_None; | |
7264 | return resultobj; | |
7265 | fail: | |
7266 | return NULL; | |
7267 | } | |
7268 | ||
7269 | ||
7270 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7271 | PyObject *resultobj; | |
7272 | wxString *arg1 = 0 ; | |
7273 | wxString result; | |
7274 | bool temp1 = False ; | |
7275 | PyObject * obj0 = 0 ; | |
7276 | char *kwnames[] = { | |
7277 | (char *) "filename", NULL | |
7278 | }; | |
7279 | ||
7280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7281 | { | |
7282 | arg1 = wxString_in_helper(obj0); | |
7283 | if (arg1 == NULL) SWIG_fail; | |
7284 | temp1 = True; | |
7285 | } | |
7286 | { | |
7287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7288 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7289 | ||
7290 | wxPyEndAllowThreads(__tstate); | |
7291 | if (PyErr_Occurred()) SWIG_fail; | |
7292 | } | |
7293 | { | |
7294 | #if wxUSE_UNICODE | |
7295 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7296 | #else | |
7297 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7298 | #endif | |
7299 | } | |
7300 | { | |
7301 | if (temp1) | |
7302 | delete arg1; | |
7303 | } | |
7304 | return resultobj; | |
7305 | fail: | |
7306 | { | |
7307 | if (temp1) | |
7308 | delete arg1; | |
7309 | } | |
7310 | return NULL; | |
7311 | } | |
7312 | ||
7313 | ||
7314 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
7315 | PyObject *obj; | |
7316 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7317 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7318 | Py_INCREF(obj); | |
7319 | return Py_BuildValue((char *)""); | |
7320 | } | |
7321 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7322 | PyObject *resultobj; | |
7323 | wxString *arg1 = 0 ; | |
7324 | wxString result; | |
7325 | bool temp1 = False ; | |
7326 | PyObject * obj0 = 0 ; | |
7327 | char *kwnames[] = { | |
7328 | (char *) "url", NULL | |
7329 | }; | |
7330 | ||
7331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7332 | { | |
7333 | arg1 = wxString_in_helper(obj0); | |
7334 | if (arg1 == NULL) SWIG_fail; | |
7335 | temp1 = True; | |
7336 | } | |
7337 | { | |
7338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7339 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
7340 | ||
7341 | wxPyEndAllowThreads(__tstate); | |
7342 | if (PyErr_Occurred()) SWIG_fail; | |
7343 | } | |
7344 | { | |
7345 | #if wxUSE_UNICODE | |
7346 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7347 | #else | |
7348 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7349 | #endif | |
7350 | } | |
7351 | { | |
7352 | if (temp1) | |
7353 | delete arg1; | |
7354 | } | |
7355 | return resultobj; | |
7356 | fail: | |
7357 | { | |
7358 | if (temp1) | |
7359 | delete arg1; | |
7360 | } | |
7361 | return NULL; | |
7362 | } | |
7363 | ||
7364 | ||
7365 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7366 | PyObject *resultobj; | |
7367 | wxInternetFSHandler *result; | |
7368 | char *kwnames[] = { | |
7369 | NULL | |
7370 | }; | |
7371 | ||
7372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7373 | { | |
7374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7375 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7376 | ||
7377 | wxPyEndAllowThreads(__tstate); | |
7378 | if (PyErr_Occurred()) SWIG_fail; | |
7379 | } | |
7380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); | |
7381 | return resultobj; | |
7382 | fail: | |
7383 | return NULL; | |
7384 | } | |
7385 | ||
7386 | ||
7387 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7388 | PyObject *resultobj; | |
7389 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7390 | wxString *arg2 = 0 ; | |
7391 | bool result; | |
7392 | bool temp2 = False ; | |
7393 | PyObject * obj0 = 0 ; | |
7394 | PyObject * obj1 = 0 ; | |
7395 | char *kwnames[] = { | |
7396 | (char *) "self",(char *) "location", NULL | |
7397 | }; | |
7398 | ||
7399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7402 | { | |
7403 | arg2 = wxString_in_helper(obj1); | |
7404 | if (arg2 == NULL) SWIG_fail; | |
7405 | temp2 = True; | |
7406 | } | |
7407 | { | |
7408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7409 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7410 | ||
7411 | wxPyEndAllowThreads(__tstate); | |
7412 | if (PyErr_Occurred()) SWIG_fail; | |
7413 | } | |
7414 | { | |
7415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7416 | } | |
7417 | { | |
7418 | if (temp2) | |
7419 | delete arg2; | |
7420 | } | |
7421 | return resultobj; | |
7422 | fail: | |
7423 | { | |
7424 | if (temp2) | |
7425 | delete arg2; | |
7426 | } | |
7427 | return NULL; | |
7428 | } | |
7429 | ||
7430 | ||
7431 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7432 | PyObject *resultobj; | |
7433 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7434 | wxFileSystem *arg2 = 0 ; | |
7435 | wxString *arg3 = 0 ; | |
7436 | wxFSFile *result; | |
7437 | bool temp3 = False ; | |
7438 | PyObject * obj0 = 0 ; | |
7439 | PyObject * obj1 = 0 ; | |
7440 | PyObject * obj2 = 0 ; | |
7441 | char *kwnames[] = { | |
7442 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7443 | }; | |
7444 | ||
7445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7448 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7449 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7450 | SWIG_fail; | |
7451 | if (arg2 == NULL) { | |
7452 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7453 | SWIG_fail; | |
7454 | } | |
7455 | { | |
7456 | arg3 = wxString_in_helper(obj2); | |
7457 | if (arg3 == NULL) SWIG_fail; | |
7458 | temp3 = True; | |
7459 | } | |
7460 | { | |
7461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7462 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7463 | ||
7464 | wxPyEndAllowThreads(__tstate); | |
7465 | if (PyErr_Occurred()) SWIG_fail; | |
7466 | } | |
7467 | { | |
7468 | resultobj = wxPyMake_wxObject(result); | |
7469 | } | |
7470 | { | |
7471 | if (temp3) | |
7472 | delete arg3; | |
7473 | } | |
7474 | return resultobj; | |
7475 | fail: | |
7476 | { | |
7477 | if (temp3) | |
7478 | delete arg3; | |
7479 | } | |
7480 | return NULL; | |
7481 | } | |
7482 | ||
7483 | ||
7484 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7485 | PyObject *obj; | |
7486 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7487 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7488 | Py_INCREF(obj); | |
7489 | return Py_BuildValue((char *)""); | |
7490 | } | |
7491 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7492 | PyObject *resultobj; | |
7493 | wxZipFSHandler *result; | |
7494 | char *kwnames[] = { | |
7495 | NULL | |
7496 | }; | |
7497 | ||
7498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7499 | { | |
7500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7501 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7502 | ||
7503 | wxPyEndAllowThreads(__tstate); | |
7504 | if (PyErr_Occurred()) SWIG_fail; | |
7505 | } | |
7506 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); | |
7507 | return resultobj; | |
7508 | fail: | |
7509 | return NULL; | |
7510 | } | |
7511 | ||
7512 | ||
7513 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7514 | PyObject *resultobj; | |
7515 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7516 | wxString *arg2 = 0 ; | |
7517 | bool result; | |
7518 | bool temp2 = False ; | |
7519 | PyObject * obj0 = 0 ; | |
7520 | PyObject * obj1 = 0 ; | |
7521 | char *kwnames[] = { | |
7522 | (char *) "self",(char *) "location", NULL | |
7523 | }; | |
7524 | ||
7525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7528 | { | |
7529 | arg2 = wxString_in_helper(obj1); | |
7530 | if (arg2 == NULL) SWIG_fail; | |
7531 | temp2 = True; | |
7532 | } | |
7533 | { | |
7534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7535 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7536 | ||
7537 | wxPyEndAllowThreads(__tstate); | |
7538 | if (PyErr_Occurred()) SWIG_fail; | |
7539 | } | |
7540 | { | |
7541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7542 | } | |
7543 | { | |
7544 | if (temp2) | |
7545 | delete arg2; | |
7546 | } | |
7547 | return resultobj; | |
7548 | fail: | |
7549 | { | |
7550 | if (temp2) | |
7551 | delete arg2; | |
7552 | } | |
7553 | return NULL; | |
7554 | } | |
7555 | ||
7556 | ||
7557 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7558 | PyObject *resultobj; | |
7559 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7560 | wxFileSystem *arg2 = 0 ; | |
7561 | wxString *arg3 = 0 ; | |
7562 | wxFSFile *result; | |
7563 | bool temp3 = False ; | |
7564 | PyObject * obj0 = 0 ; | |
7565 | PyObject * obj1 = 0 ; | |
7566 | PyObject * obj2 = 0 ; | |
7567 | char *kwnames[] = { | |
7568 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7569 | }; | |
7570 | ||
7571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7574 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7575 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7576 | SWIG_fail; | |
7577 | if (arg2 == NULL) { | |
7578 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7579 | SWIG_fail; | |
7580 | } | |
7581 | { | |
7582 | arg3 = wxString_in_helper(obj2); | |
7583 | if (arg3 == NULL) SWIG_fail; | |
7584 | temp3 = True; | |
7585 | } | |
7586 | { | |
7587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7588 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7589 | ||
7590 | wxPyEndAllowThreads(__tstate); | |
7591 | if (PyErr_Occurred()) SWIG_fail; | |
7592 | } | |
7593 | { | |
7594 | resultobj = wxPyMake_wxObject(result); | |
7595 | } | |
7596 | { | |
7597 | if (temp3) | |
7598 | delete arg3; | |
7599 | } | |
7600 | return resultobj; | |
7601 | fail: | |
7602 | { | |
7603 | if (temp3) | |
7604 | delete arg3; | |
7605 | } | |
7606 | return NULL; | |
7607 | } | |
7608 | ||
7609 | ||
7610 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7611 | PyObject *resultobj; | |
7612 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7613 | wxString *arg2 = 0 ; | |
7614 | int arg3 = (int) 0 ; | |
7615 | wxString result; | |
7616 | bool temp2 = False ; | |
7617 | PyObject * obj0 = 0 ; | |
7618 | PyObject * obj1 = 0 ; | |
7619 | PyObject * obj2 = 0 ; | |
7620 | char *kwnames[] = { | |
7621 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7622 | }; | |
7623 | ||
7624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7627 | { | |
7628 | arg2 = wxString_in_helper(obj1); | |
7629 | if (arg2 == NULL) SWIG_fail; | |
7630 | temp2 = True; | |
7631 | } | |
7632 | if (obj2) { | |
7633 | arg3 = (int) SWIG_AsInt(obj2); | |
7634 | if (PyErr_Occurred()) SWIG_fail; | |
7635 | } | |
7636 | { | |
7637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7638 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7639 | ||
7640 | wxPyEndAllowThreads(__tstate); | |
7641 | if (PyErr_Occurred()) SWIG_fail; | |
7642 | } | |
7643 | { | |
7644 | #if wxUSE_UNICODE | |
7645 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7646 | #else | |
7647 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7648 | #endif | |
7649 | } | |
7650 | { | |
7651 | if (temp2) | |
7652 | delete arg2; | |
7653 | } | |
7654 | return resultobj; | |
7655 | fail: | |
7656 | { | |
7657 | if (temp2) | |
7658 | delete arg2; | |
7659 | } | |
7660 | return NULL; | |
7661 | } | |
7662 | ||
7663 | ||
7664 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7665 | PyObject *resultobj; | |
7666 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7667 | wxString result; | |
7668 | PyObject * obj0 = 0 ; | |
7669 | char *kwnames[] = { | |
7670 | (char *) "self", NULL | |
7671 | }; | |
7672 | ||
7673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7676 | { | |
7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7678 | result = (arg1)->FindNext(); | |
7679 | ||
7680 | wxPyEndAllowThreads(__tstate); | |
7681 | if (PyErr_Occurred()) SWIG_fail; | |
7682 | } | |
7683 | { | |
7684 | #if wxUSE_UNICODE | |
7685 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7686 | #else | |
7687 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7688 | #endif | |
7689 | } | |
7690 | return resultobj; | |
7691 | fail: | |
7692 | return NULL; | |
7693 | } | |
7694 | ||
7695 | ||
7696 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7697 | PyObject *obj; | |
7698 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7699 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7700 | Py_INCREF(obj); | |
7701 | return Py_BuildValue((char *)""); | |
7702 | } | |
7703 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7704 | PyObject *resultobj; | |
7705 | wxString *arg1 = 0 ; | |
7706 | wxImage *arg2 = 0 ; | |
7707 | long arg3 ; | |
7708 | bool temp1 = False ; | |
7709 | PyObject * obj0 = 0 ; | |
7710 | PyObject * obj1 = 0 ; | |
7711 | PyObject * obj2 = 0 ; | |
7712 | char *kwnames[] = { | |
7713 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7714 | }; | |
7715 | ||
7716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7717 | { | |
7718 | arg1 = wxString_in_helper(obj0); | |
7719 | if (arg1 == NULL) SWIG_fail; | |
7720 | temp1 = True; | |
7721 | } | |
7722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
7723 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7724 | SWIG_fail; | |
7725 | if (arg2 == NULL) { | |
7726 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7727 | SWIG_fail; | |
7728 | } | |
7729 | arg3 = (long) SWIG_AsLong(obj2); | |
7730 | if (PyErr_Occurred()) SWIG_fail; | |
7731 | { | |
7732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7733 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7734 | ||
7735 | wxPyEndAllowThreads(__tstate); | |
7736 | if (PyErr_Occurred()) SWIG_fail; | |
7737 | } | |
7738 | Py_INCREF(Py_None); resultobj = Py_None; | |
7739 | { | |
7740 | if (temp1) | |
7741 | delete arg1; | |
7742 | } | |
7743 | return resultobj; | |
7744 | fail: | |
7745 | { | |
7746 | if (temp1) | |
7747 | delete arg1; | |
7748 | } | |
7749 | return NULL; | |
7750 | } | |
7751 | ||
7752 | ||
7753 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7754 | PyObject *resultobj; | |
7755 | wxString *arg1 = 0 ; | |
7756 | wxBitmap *arg2 = 0 ; | |
7757 | long arg3 ; | |
7758 | bool temp1 = False ; | |
7759 | PyObject * obj0 = 0 ; | |
7760 | PyObject * obj1 = 0 ; | |
7761 | PyObject * obj2 = 0 ; | |
7762 | char *kwnames[] = { | |
7763 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7764 | }; | |
7765 | ||
7766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7767 | { | |
7768 | arg1 = wxString_in_helper(obj0); | |
7769 | if (arg1 == NULL) SWIG_fail; | |
7770 | temp1 = True; | |
7771 | } | |
7772 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
7773 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7774 | SWIG_fail; | |
7775 | if (arg2 == NULL) { | |
7776 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7777 | SWIG_fail; | |
7778 | } | |
7779 | arg3 = (long) SWIG_AsLong(obj2); | |
7780 | if (PyErr_Occurred()) SWIG_fail; | |
7781 | { | |
7782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7783 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7784 | ||
7785 | wxPyEndAllowThreads(__tstate); | |
7786 | if (PyErr_Occurred()) SWIG_fail; | |
7787 | } | |
7788 | Py_INCREF(Py_None); resultobj = Py_None; | |
7789 | { | |
7790 | if (temp1) | |
7791 | delete arg1; | |
7792 | } | |
7793 | return resultobj; | |
7794 | fail: | |
7795 | { | |
7796 | if (temp1) | |
7797 | delete arg1; | |
7798 | } | |
7799 | return NULL; | |
7800 | } | |
7801 | ||
7802 | ||
7803 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7804 | PyObject *resultobj; | |
7805 | wxString *arg1 = 0 ; | |
7806 | PyObject *arg2 = (PyObject *) 0 ; | |
7807 | bool temp1 = False ; | |
7808 | PyObject * obj0 = 0 ; | |
7809 | PyObject * obj1 = 0 ; | |
7810 | char *kwnames[] = { | |
7811 | (char *) "filename",(char *) "data", NULL | |
7812 | }; | |
7813 | ||
7814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7815 | { | |
7816 | arg1 = wxString_in_helper(obj0); | |
7817 | if (arg1 == NULL) SWIG_fail; | |
7818 | temp1 = True; | |
7819 | } | |
7820 | arg2 = obj1; | |
7821 | { | |
7822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7823 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7824 | ||
7825 | wxPyEndAllowThreads(__tstate); | |
7826 | if (PyErr_Occurred()) SWIG_fail; | |
7827 | } | |
7828 | Py_INCREF(Py_None); resultobj = Py_None; | |
7829 | { | |
7830 | if (temp1) | |
7831 | delete arg1; | |
7832 | } | |
7833 | return resultobj; | |
7834 | fail: | |
7835 | { | |
7836 | if (temp1) | |
7837 | delete arg1; | |
7838 | } | |
7839 | return NULL; | |
7840 | } | |
7841 | ||
7842 | ||
7843 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7844 | PyObject *resultobj; | |
7845 | wxMemoryFSHandler *result; | |
7846 | char *kwnames[] = { | |
7847 | NULL | |
7848 | }; | |
7849 | ||
7850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7851 | { | |
7852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7853 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7854 | ||
7855 | wxPyEndAllowThreads(__tstate); | |
7856 | if (PyErr_Occurred()) SWIG_fail; | |
7857 | } | |
7858 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); | |
7859 | return resultobj; | |
7860 | fail: | |
7861 | return NULL; | |
7862 | } | |
7863 | ||
7864 | ||
7865 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7866 | PyObject *resultobj; | |
7867 | wxString *arg1 = 0 ; | |
7868 | bool temp1 = False ; | |
7869 | PyObject * obj0 = 0 ; | |
7870 | char *kwnames[] = { | |
7871 | (char *) "filename", NULL | |
7872 | }; | |
7873 | ||
7874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7875 | { | |
7876 | arg1 = wxString_in_helper(obj0); | |
7877 | if (arg1 == NULL) SWIG_fail; | |
7878 | temp1 = True; | |
7879 | } | |
7880 | { | |
7881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7882 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7883 | ||
7884 | wxPyEndAllowThreads(__tstate); | |
7885 | if (PyErr_Occurred()) SWIG_fail; | |
7886 | } | |
7887 | Py_INCREF(Py_None); resultobj = Py_None; | |
7888 | { | |
7889 | if (temp1) | |
7890 | delete arg1; | |
7891 | } | |
7892 | return resultobj; | |
7893 | fail: | |
7894 | { | |
7895 | if (temp1) | |
7896 | delete arg1; | |
7897 | } | |
7898 | return NULL; | |
7899 | } | |
7900 | ||
7901 | ||
7902 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7903 | PyObject *resultobj; | |
7904 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7905 | wxString *arg2 = 0 ; | |
7906 | bool result; | |
7907 | bool temp2 = False ; | |
7908 | PyObject * obj0 = 0 ; | |
7909 | PyObject * obj1 = 0 ; | |
7910 | char *kwnames[] = { | |
7911 | (char *) "self",(char *) "location", NULL | |
7912 | }; | |
7913 | ||
7914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
7916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7917 | { | |
7918 | arg2 = wxString_in_helper(obj1); | |
7919 | if (arg2 == NULL) SWIG_fail; | |
7920 | temp2 = True; | |
7921 | } | |
7922 | { | |
7923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7924 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7925 | ||
7926 | wxPyEndAllowThreads(__tstate); | |
7927 | if (PyErr_Occurred()) SWIG_fail; | |
7928 | } | |
7929 | { | |
7930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7931 | } | |
7932 | { | |
7933 | if (temp2) | |
7934 | delete arg2; | |
7935 | } | |
7936 | return resultobj; | |
7937 | fail: | |
7938 | { | |
7939 | if (temp2) | |
7940 | delete arg2; | |
7941 | } | |
7942 | return NULL; | |
7943 | } | |
7944 | ||
7945 | ||
7946 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7947 | PyObject *resultobj; | |
7948 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7949 | wxFileSystem *arg2 = 0 ; | |
7950 | wxString *arg3 = 0 ; | |
7951 | wxFSFile *result; | |
7952 | bool temp3 = False ; | |
7953 | PyObject * obj0 = 0 ; | |
7954 | PyObject * obj1 = 0 ; | |
7955 | PyObject * obj2 = 0 ; | |
7956 | char *kwnames[] = { | |
7957 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7958 | }; | |
7959 | ||
7960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
7962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7963 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7964 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7965 | SWIG_fail; | |
7966 | if (arg2 == NULL) { | |
7967 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7968 | SWIG_fail; | |
7969 | } | |
7970 | { | |
7971 | arg3 = wxString_in_helper(obj2); | |
7972 | if (arg3 == NULL) SWIG_fail; | |
7973 | temp3 = True; | |
7974 | } | |
7975 | { | |
7976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7977 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7978 | ||
7979 | wxPyEndAllowThreads(__tstate); | |
7980 | if (PyErr_Occurred()) SWIG_fail; | |
7981 | } | |
7982 | { | |
7983 | resultobj = wxPyMake_wxObject(result); | |
7984 | } | |
7985 | { | |
7986 | if (temp3) | |
7987 | delete arg3; | |
7988 | } | |
7989 | return resultobj; | |
7990 | fail: | |
7991 | { | |
7992 | if (temp3) | |
7993 | delete arg3; | |
7994 | } | |
7995 | return NULL; | |
7996 | } | |
7997 | ||
7998 | ||
7999 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8000 | PyObject *resultobj; | |
8001 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8002 | wxString *arg2 = 0 ; | |
8003 | int arg3 = (int) 0 ; | |
8004 | wxString result; | |
8005 | bool temp2 = False ; | |
8006 | PyObject * obj0 = 0 ; | |
8007 | PyObject * obj1 = 0 ; | |
8008 | PyObject * obj2 = 0 ; | |
8009 | char *kwnames[] = { | |
8010 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8011 | }; | |
8012 | ||
8013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8016 | { | |
8017 | arg2 = wxString_in_helper(obj1); | |
8018 | if (arg2 == NULL) SWIG_fail; | |
8019 | temp2 = True; | |
8020 | } | |
8021 | if (obj2) { | |
8022 | arg3 = (int) SWIG_AsInt(obj2); | |
8023 | if (PyErr_Occurred()) SWIG_fail; | |
8024 | } | |
8025 | { | |
8026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8027 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8028 | ||
8029 | wxPyEndAllowThreads(__tstate); | |
8030 | if (PyErr_Occurred()) SWIG_fail; | |
8031 | } | |
8032 | { | |
8033 | #if wxUSE_UNICODE | |
8034 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8035 | #else | |
8036 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8037 | #endif | |
8038 | } | |
8039 | { | |
8040 | if (temp2) | |
8041 | delete arg2; | |
8042 | } | |
8043 | return resultobj; | |
8044 | fail: | |
8045 | { | |
8046 | if (temp2) | |
8047 | delete arg2; | |
8048 | } | |
8049 | return NULL; | |
8050 | } | |
8051 | ||
8052 | ||
8053 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8054 | PyObject *resultobj; | |
8055 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8056 | wxString result; | |
8057 | PyObject * obj0 = 0 ; | |
8058 | char *kwnames[] = { | |
8059 | (char *) "self", NULL | |
8060 | }; | |
8061 | ||
8062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8065 | { | |
8066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8067 | result = (arg1)->FindNext(); | |
8068 | ||
8069 | wxPyEndAllowThreads(__tstate); | |
8070 | if (PyErr_Occurred()) SWIG_fail; | |
8071 | } | |
8072 | { | |
8073 | #if wxUSE_UNICODE | |
8074 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8075 | #else | |
8076 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8077 | #endif | |
8078 | } | |
8079 | return resultobj; | |
8080 | fail: | |
8081 | return NULL; | |
8082 | } | |
8083 | ||
8084 | ||
8085 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
8086 | PyObject *obj; | |
8087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8088 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8089 | Py_INCREF(obj); | |
8090 | return Py_BuildValue((char *)""); | |
8091 | } | |
8092 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8093 | PyObject *resultobj; | |
8094 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8095 | wxString result; | |
8096 | PyObject * obj0 = 0 ; | |
8097 | char *kwnames[] = { | |
8098 | (char *) "self", NULL | |
8099 | }; | |
8100 | ||
8101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
8102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8104 | { | |
8105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8106 | result = (arg1)->GetName(); | |
8107 | ||
8108 | wxPyEndAllowThreads(__tstate); | |
8109 | if (PyErr_Occurred()) SWIG_fail; | |
8110 | } | |
8111 | { | |
8112 | #if wxUSE_UNICODE | |
8113 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8114 | #else | |
8115 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8116 | #endif | |
8117 | } | |
8118 | return resultobj; | |
8119 | fail: | |
8120 | return NULL; | |
8121 | } | |
8122 | ||
8123 | ||
8124 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8125 | PyObject *resultobj; | |
8126 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8127 | wxString result; | |
8128 | PyObject * obj0 = 0 ; | |
8129 | char *kwnames[] = { | |
8130 | (char *) "self", NULL | |
8131 | }; | |
8132 | ||
8133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
8134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8136 | { | |
8137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8138 | result = (arg1)->GetExtension(); | |
8139 | ||
8140 | wxPyEndAllowThreads(__tstate); | |
8141 | if (PyErr_Occurred()) SWIG_fail; | |
8142 | } | |
8143 | { | |
8144 | #if wxUSE_UNICODE | |
8145 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8146 | #else | |
8147 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8148 | #endif | |
8149 | } | |
8150 | return resultobj; | |
8151 | fail: | |
8152 | return NULL; | |
8153 | } | |
8154 | ||
8155 | ||
8156 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8157 | PyObject *resultobj; | |
8158 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8159 | long result; | |
8160 | PyObject * obj0 = 0 ; | |
8161 | char *kwnames[] = { | |
8162 | (char *) "self", NULL | |
8163 | }; | |
8164 | ||
8165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
8166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8168 | { | |
8169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8170 | result = (long)(arg1)->GetType(); | |
8171 | ||
8172 | wxPyEndAllowThreads(__tstate); | |
8173 | if (PyErr_Occurred()) SWIG_fail; | |
8174 | } | |
8175 | resultobj = SWIG_FromLong((long)result); | |
8176 | return resultobj; | |
8177 | fail: | |
8178 | return NULL; | |
8179 | } | |
8180 | ||
8181 | ||
8182 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8183 | PyObject *resultobj; | |
8184 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8185 | wxString result; | |
8186 | PyObject * obj0 = 0 ; | |
8187 | char *kwnames[] = { | |
8188 | (char *) "self", NULL | |
8189 | }; | |
8190 | ||
8191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
8192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8194 | { | |
8195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8196 | result = (arg1)->GetMimeType(); | |
8197 | ||
8198 | wxPyEndAllowThreads(__tstate); | |
8199 | if (PyErr_Occurred()) SWIG_fail; | |
8200 | } | |
8201 | { | |
8202 | #if wxUSE_UNICODE | |
8203 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8204 | #else | |
8205 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8206 | #endif | |
8207 | } | |
8208 | return resultobj; | |
8209 | fail: | |
8210 | return NULL; | |
8211 | } | |
8212 | ||
8213 | ||
8214 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8215 | PyObject *resultobj; | |
8216 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8217 | wxString *arg2 = 0 ; | |
8218 | bool result; | |
8219 | bool temp2 = False ; | |
8220 | PyObject * obj0 = 0 ; | |
8221 | PyObject * obj1 = 0 ; | |
8222 | char *kwnames[] = { | |
8223 | (char *) "self",(char *) "name", NULL | |
8224 | }; | |
8225 | ||
8226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
8227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8229 | { | |
8230 | arg2 = wxString_in_helper(obj1); | |
8231 | if (arg2 == NULL) SWIG_fail; | |
8232 | temp2 = True; | |
8233 | } | |
8234 | { | |
8235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8236 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8237 | ||
8238 | wxPyEndAllowThreads(__tstate); | |
8239 | if (PyErr_Occurred()) SWIG_fail; | |
8240 | } | |
8241 | { | |
8242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8243 | } | |
8244 | { | |
8245 | if (temp2) | |
8246 | delete arg2; | |
8247 | } | |
8248 | return resultobj; | |
8249 | fail: | |
8250 | { | |
8251 | if (temp2) | |
8252 | delete arg2; | |
8253 | } | |
8254 | return NULL; | |
8255 | } | |
8256 | ||
8257 | ||
8258 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8259 | PyObject *resultobj; | |
8260 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8261 | wxString *arg2 = 0 ; | |
8262 | bool temp2 = False ; | |
8263 | PyObject * obj0 = 0 ; | |
8264 | PyObject * obj1 = 0 ; | |
8265 | char *kwnames[] = { | |
8266 | (char *) "self",(char *) "name", NULL | |
8267 | }; | |
8268 | ||
8269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
8270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8272 | { | |
8273 | arg2 = wxString_in_helper(obj1); | |
8274 | if (arg2 == NULL) SWIG_fail; | |
8275 | temp2 = True; | |
8276 | } | |
8277 | { | |
8278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8279 | (arg1)->SetName((wxString const &)*arg2); | |
8280 | ||
8281 | wxPyEndAllowThreads(__tstate); | |
8282 | if (PyErr_Occurred()) SWIG_fail; | |
8283 | } | |
8284 | Py_INCREF(Py_None); resultobj = Py_None; | |
8285 | { | |
8286 | if (temp2) | |
8287 | delete arg2; | |
8288 | } | |
8289 | return resultobj; | |
8290 | fail: | |
8291 | { | |
8292 | if (temp2) | |
8293 | delete arg2; | |
8294 | } | |
8295 | return NULL; | |
8296 | } | |
8297 | ||
8298 | ||
8299 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8300 | PyObject *resultobj; | |
8301 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8302 | wxString *arg2 = 0 ; | |
8303 | bool temp2 = False ; | |
8304 | PyObject * obj0 = 0 ; | |
8305 | PyObject * obj1 = 0 ; | |
8306 | char *kwnames[] = { | |
8307 | (char *) "self",(char *) "extension", NULL | |
8308 | }; | |
8309 | ||
8310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
8311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8313 | { | |
8314 | arg2 = wxString_in_helper(obj1); | |
8315 | if (arg2 == NULL) SWIG_fail; | |
8316 | temp2 = True; | |
8317 | } | |
8318 | { | |
8319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8320 | (arg1)->SetExtension((wxString const &)*arg2); | |
8321 | ||
8322 | wxPyEndAllowThreads(__tstate); | |
8323 | if (PyErr_Occurred()) SWIG_fail; | |
8324 | } | |
8325 | Py_INCREF(Py_None); resultobj = Py_None; | |
8326 | { | |
8327 | if (temp2) | |
8328 | delete arg2; | |
8329 | } | |
8330 | return resultobj; | |
8331 | fail: | |
8332 | { | |
8333 | if (temp2) | |
8334 | delete arg2; | |
8335 | } | |
8336 | return NULL; | |
8337 | } | |
8338 | ||
8339 | ||
8340 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8341 | PyObject *resultobj; | |
8342 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8343 | long arg2 ; | |
8344 | PyObject * obj0 = 0 ; | |
8345 | PyObject * obj1 = 0 ; | |
8346 | char *kwnames[] = { | |
8347 | (char *) "self",(char *) "type", NULL | |
8348 | }; | |
8349 | ||
8350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; | |
8351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8353 | arg2 = (long) SWIG_AsLong(obj1); | |
8354 | if (PyErr_Occurred()) SWIG_fail; | |
8355 | { | |
8356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8357 | (arg1)->SetType(arg2); | |
8358 | ||
8359 | wxPyEndAllowThreads(__tstate); | |
8360 | if (PyErr_Occurred()) SWIG_fail; | |
8361 | } | |
8362 | Py_INCREF(Py_None); resultobj = Py_None; | |
8363 | return resultobj; | |
8364 | fail: | |
8365 | return NULL; | |
8366 | } | |
8367 | ||
8368 | ||
8369 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8370 | PyObject *resultobj; | |
8371 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8372 | wxString *arg2 = 0 ; | |
8373 | bool temp2 = False ; | |
8374 | PyObject * obj0 = 0 ; | |
8375 | PyObject * obj1 = 0 ; | |
8376 | char *kwnames[] = { | |
8377 | (char *) "self",(char *) "mimetype", NULL | |
8378 | }; | |
8379 | ||
8380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
8381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8383 | { | |
8384 | arg2 = wxString_in_helper(obj1); | |
8385 | if (arg2 == NULL) SWIG_fail; | |
8386 | temp2 = True; | |
8387 | } | |
8388 | { | |
8389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8390 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8391 | ||
8392 | wxPyEndAllowThreads(__tstate); | |
8393 | if (PyErr_Occurred()) SWIG_fail; | |
8394 | } | |
8395 | Py_INCREF(Py_None); resultobj = Py_None; | |
8396 | { | |
8397 | if (temp2) | |
8398 | delete arg2; | |
8399 | } | |
8400 | return resultobj; | |
8401 | fail: | |
8402 | { | |
8403 | if (temp2) | |
8404 | delete arg2; | |
8405 | } | |
8406 | return NULL; | |
8407 | } | |
8408 | ||
8409 | ||
8410 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
8411 | PyObject *obj; | |
8412 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8413 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8414 | Py_INCREF(obj); | |
8415 | return Py_BuildValue((char *)""); | |
8416 | } | |
8417 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8418 | PyObject *resultobj; | |
8419 | wxImageHistogram *result; | |
8420 | char *kwnames[] = { | |
8421 | NULL | |
8422 | }; | |
8423 | ||
8424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8425 | { | |
8426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8427 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8428 | ||
8429 | wxPyEndAllowThreads(__tstate); | |
8430 | if (PyErr_Occurred()) SWIG_fail; | |
8431 | } | |
8432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); | |
8433 | return resultobj; | |
8434 | fail: | |
8435 | return NULL; | |
8436 | } | |
8437 | ||
8438 | ||
8439 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8440 | PyObject *resultobj; | |
8441 | unsigned char arg1 ; | |
8442 | unsigned char arg2 ; | |
8443 | unsigned char arg3 ; | |
8444 | unsigned long result; | |
8445 | PyObject * obj0 = 0 ; | |
8446 | PyObject * obj1 = 0 ; | |
8447 | PyObject * obj2 = 0 ; | |
8448 | char *kwnames[] = { | |
8449 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8450 | }; | |
8451 | ||
8452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8453 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); | |
8454 | if (PyErr_Occurred()) SWIG_fail; | |
8455 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8456 | if (PyErr_Occurred()) SWIG_fail; | |
8457 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8458 | if (PyErr_Occurred()) SWIG_fail; | |
8459 | { | |
8460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8461 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8462 | ||
8463 | wxPyEndAllowThreads(__tstate); | |
8464 | if (PyErr_Occurred()) SWIG_fail; | |
8465 | } | |
8466 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
8467 | return resultobj; | |
8468 | fail: | |
8469 | return NULL; | |
8470 | } | |
8471 | ||
8472 | ||
8473 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8474 | PyObject *resultobj; | |
8475 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8476 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8477 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8478 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8479 | unsigned char arg5 = (unsigned char) 1 ; | |
8480 | unsigned char arg6 = (unsigned char) 0 ; | |
8481 | unsigned char arg7 = (unsigned char) 0 ; | |
8482 | bool result; | |
8483 | unsigned char temp2 ; | |
8484 | unsigned char temp3 ; | |
8485 | unsigned char temp4 ; | |
8486 | PyObject * obj0 = 0 ; | |
8487 | PyObject * obj1 = 0 ; | |
8488 | PyObject * obj2 = 0 ; | |
8489 | PyObject * obj3 = 0 ; | |
8490 | char *kwnames[] = { | |
8491 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8492 | }; | |
8493 | ||
8494 | arg2 = &temp2; | |
8495 | arg3 = &temp3; | |
8496 | arg4 = &temp4; | |
8497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, | |
8499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8500 | if (obj1) { | |
8501 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8502 | if (PyErr_Occurred()) SWIG_fail; | |
8503 | } | |
8504 | if (obj2) { | |
8505 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8506 | if (PyErr_Occurred()) SWIG_fail; | |
8507 | } | |
8508 | if (obj3) { | |
8509 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
8510 | if (PyErr_Occurred()) SWIG_fail; | |
8511 | } | |
8512 | { | |
8513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8514 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8515 | ||
8516 | wxPyEndAllowThreads(__tstate); | |
8517 | if (PyErr_Occurred()) SWIG_fail; | |
8518 | } | |
8519 | { | |
8520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8521 | } | |
8522 | { | |
8523 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8524 | resultobj = t_output_helper(resultobj,o); | |
8525 | } | |
8526 | { | |
8527 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8528 | resultobj = t_output_helper(resultobj,o); | |
8529 | } | |
8530 | { | |
8531 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8532 | resultobj = t_output_helper(resultobj,o); | |
8533 | } | |
8534 | return resultobj; | |
8535 | fail: | |
8536 | return NULL; | |
8537 | } | |
8538 | ||
8539 | ||
8540 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8541 | PyObject *obj; | |
8542 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8543 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8544 | Py_INCREF(obj); | |
8545 | return Py_BuildValue((char *)""); | |
8546 | } | |
8547 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8548 | PyObject *resultobj; | |
8549 | wxString *arg1 = 0 ; | |
8550 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8551 | int arg3 = (int) -1 ; | |
8552 | wxImage *result; | |
8553 | bool temp1 = False ; | |
8554 | PyObject * obj0 = 0 ; | |
8555 | PyObject * obj1 = 0 ; | |
8556 | PyObject * obj2 = 0 ; | |
8557 | char *kwnames[] = { | |
8558 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8559 | }; | |
8560 | ||
8561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8562 | { | |
8563 | arg1 = wxString_in_helper(obj0); | |
8564 | if (arg1 == NULL) SWIG_fail; | |
8565 | temp1 = True; | |
8566 | } | |
8567 | if (obj1) { | |
8568 | arg2 = (long) SWIG_AsLong(obj1); | |
8569 | if (PyErr_Occurred()) SWIG_fail; | |
8570 | } | |
8571 | if (obj2) { | |
8572 | arg3 = (int) SWIG_AsInt(obj2); | |
8573 | if (PyErr_Occurred()) SWIG_fail; | |
8574 | } | |
8575 | { | |
8576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8577 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8578 | ||
8579 | wxPyEndAllowThreads(__tstate); | |
8580 | if (PyErr_Occurred()) SWIG_fail; | |
8581 | } | |
8582 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8583 | { | |
8584 | if (temp1) | |
8585 | delete arg1; | |
8586 | } | |
8587 | return resultobj; | |
8588 | fail: | |
8589 | { | |
8590 | if (temp1) | |
8591 | delete arg1; | |
8592 | } | |
8593 | return NULL; | |
8594 | } | |
8595 | ||
8596 | ||
8597 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8598 | PyObject *resultobj; | |
8599 | wxImage *arg1 = (wxImage *) 0 ; | |
8600 | PyObject * obj0 = 0 ; | |
8601 | char *kwnames[] = { | |
8602 | (char *) "self", NULL | |
8603 | }; | |
8604 | ||
8605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
8606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8608 | { | |
8609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8610 | delete arg1; | |
8611 | ||
8612 | wxPyEndAllowThreads(__tstate); | |
8613 | if (PyErr_Occurred()) SWIG_fail; | |
8614 | } | |
8615 | Py_INCREF(Py_None); resultobj = Py_None; | |
8616 | return resultobj; | |
8617 | fail: | |
8618 | return NULL; | |
8619 | } | |
8620 | ||
8621 | ||
8622 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8623 | PyObject *resultobj; | |
8624 | wxString *arg1 = 0 ; | |
8625 | wxString *arg2 = 0 ; | |
8626 | int arg3 = (int) -1 ; | |
8627 | wxImage *result; | |
8628 | bool temp1 = False ; | |
8629 | bool temp2 = False ; | |
8630 | PyObject * obj0 = 0 ; | |
8631 | PyObject * obj1 = 0 ; | |
8632 | PyObject * obj2 = 0 ; | |
8633 | char *kwnames[] = { | |
8634 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8635 | }; | |
8636 | ||
8637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8638 | { | |
8639 | arg1 = wxString_in_helper(obj0); | |
8640 | if (arg1 == NULL) SWIG_fail; | |
8641 | temp1 = True; | |
8642 | } | |
8643 | { | |
8644 | arg2 = wxString_in_helper(obj1); | |
8645 | if (arg2 == NULL) SWIG_fail; | |
8646 | temp2 = True; | |
8647 | } | |
8648 | if (obj2) { | |
8649 | arg3 = (int) SWIG_AsInt(obj2); | |
8650 | if (PyErr_Occurred()) SWIG_fail; | |
8651 | } | |
8652 | { | |
8653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8654 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8655 | ||
8656 | wxPyEndAllowThreads(__tstate); | |
8657 | if (PyErr_Occurred()) SWIG_fail; | |
8658 | } | |
8659 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8660 | { | |
8661 | if (temp1) | |
8662 | delete arg1; | |
8663 | } | |
8664 | { | |
8665 | if (temp2) | |
8666 | delete arg2; | |
8667 | } | |
8668 | return resultobj; | |
8669 | fail: | |
8670 | { | |
8671 | if (temp1) | |
8672 | delete arg1; | |
8673 | } | |
8674 | { | |
8675 | if (temp2) | |
8676 | delete arg2; | |
8677 | } | |
8678 | return NULL; | |
8679 | } | |
8680 | ||
8681 | ||
8682 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8683 | PyObject *resultobj; | |
8684 | wxInputStream *arg1 = 0 ; | |
8685 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8686 | int arg3 = (int) -1 ; | |
8687 | wxImage *result; | |
8688 | wxPyInputStream *temp1 ; | |
8689 | bool created1 ; | |
8690 | PyObject * obj0 = 0 ; | |
8691 | PyObject * obj1 = 0 ; | |
8692 | PyObject * obj2 = 0 ; | |
8693 | char *kwnames[] = { | |
8694 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8695 | }; | |
8696 | ||
8697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8698 | { | |
8699 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8700 | arg1 = temp1->m_wxis; | |
8701 | created1 = False; | |
8702 | } else { | |
8703 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
8704 | arg1 = wxPyCBInputStream_create(obj0, False); | |
8705 | if (arg1 == NULL) { | |
8706 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8707 | SWIG_fail; | |
8708 | } | |
8709 | created1 = True; | |
8710 | } | |
8711 | } | |
8712 | if (obj1) { | |
8713 | arg2 = (long) SWIG_AsLong(obj1); | |
8714 | if (PyErr_Occurred()) SWIG_fail; | |
8715 | } | |
8716 | if (obj2) { | |
8717 | arg3 = (int) SWIG_AsInt(obj2); | |
8718 | if (PyErr_Occurred()) SWIG_fail; | |
8719 | } | |
8720 | { | |
8721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8722 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8723 | ||
8724 | wxPyEndAllowThreads(__tstate); | |
8725 | if (PyErr_Occurred()) SWIG_fail; | |
8726 | } | |
8727 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8728 | { | |
8729 | if (created1) | |
8730 | delete arg1; | |
8731 | } | |
8732 | return resultobj; | |
8733 | fail: | |
8734 | { | |
8735 | if (created1) | |
8736 | delete arg1; | |
8737 | } | |
8738 | return NULL; | |
8739 | } | |
8740 | ||
8741 | ||
8742 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8743 | PyObject *resultobj; | |
8744 | wxInputStream *arg1 = 0 ; | |
8745 | wxString *arg2 = 0 ; | |
8746 | int arg3 = (int) -1 ; | |
8747 | wxImage *result; | |
8748 | wxPyInputStream *temp1 ; | |
8749 | bool created1 ; | |
8750 | bool temp2 = False ; | |
8751 | PyObject * obj0 = 0 ; | |
8752 | PyObject * obj1 = 0 ; | |
8753 | PyObject * obj2 = 0 ; | |
8754 | char *kwnames[] = { | |
8755 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8756 | }; | |
8757 | ||
8758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8759 | { | |
8760 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8761 | arg1 = temp1->m_wxis; | |
8762 | created1 = False; | |
8763 | } else { | |
8764 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
8765 | arg1 = wxPyCBInputStream_create(obj0, False); | |
8766 | if (arg1 == NULL) { | |
8767 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8768 | SWIG_fail; | |
8769 | } | |
8770 | created1 = True; | |
8771 | } | |
8772 | } | |
8773 | { | |
8774 | arg2 = wxString_in_helper(obj1); | |
8775 | if (arg2 == NULL) SWIG_fail; | |
8776 | temp2 = True; | |
8777 | } | |
8778 | if (obj2) { | |
8779 | arg3 = (int) SWIG_AsInt(obj2); | |
8780 | if (PyErr_Occurred()) SWIG_fail; | |
8781 | } | |
8782 | { | |
8783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8784 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8785 | ||
8786 | wxPyEndAllowThreads(__tstate); | |
8787 | if (PyErr_Occurred()) SWIG_fail; | |
8788 | } | |
8789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8790 | { | |
8791 | if (created1) | |
8792 | delete arg1; | |
8793 | } | |
8794 | { | |
8795 | if (temp2) | |
8796 | delete arg2; | |
8797 | } | |
8798 | return resultobj; | |
8799 | fail: | |
8800 | { | |
8801 | if (created1) | |
8802 | delete arg1; | |
8803 | } | |
8804 | { | |
8805 | if (temp2) | |
8806 | delete arg2; | |
8807 | } | |
8808 | return NULL; | |
8809 | } | |
8810 | ||
8811 | ||
d6c14a4c | 8812 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8813 | PyObject *resultobj; |
8814 | int arg1 = (int) 0 ; | |
8815 | int arg2 = (int) 0 ; | |
8816 | bool arg3 = (bool) True ; | |
8817 | wxImage *result; | |
8818 | PyObject * obj0 = 0 ; | |
8819 | PyObject * obj1 = 0 ; | |
8820 | PyObject * obj2 = 0 ; | |
d6c14a4c RD |
8821 | char *kwnames[] = { |
8822 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8823 | }; | |
d55e5bfc | 8824 | |
d6c14a4c | 8825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
8826 | if (obj0) { |
8827 | arg1 = (int) SWIG_AsInt(obj0); | |
8828 | if (PyErr_Occurred()) SWIG_fail; | |
8829 | } | |
8830 | if (obj1) { | |
8831 | arg2 = (int) SWIG_AsInt(obj1); | |
8832 | if (PyErr_Occurred()) SWIG_fail; | |
8833 | } | |
8834 | if (obj2) { | |
8835 | arg3 = (bool) SWIG_AsBool(obj2); | |
8836 | if (PyErr_Occurred()) SWIG_fail; | |
8837 | } | |
8838 | { | |
8839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 8840 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d55e5bfc RD |
8841 | |
8842 | wxPyEndAllowThreads(__tstate); | |
8843 | if (PyErr_Occurred()) SWIG_fail; | |
8844 | } | |
8845 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8846 | return resultobj; | |
8847 | fail: | |
8848 | return NULL; | |
8849 | } | |
8850 | ||
8851 | ||
d55e5bfc RD |
8852 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8853 | PyObject *resultobj; | |
8854 | wxBitmap *arg1 = 0 ; | |
8855 | wxImage *result; | |
8856 | PyObject * obj0 = 0 ; | |
8857 | char *kwnames[] = { | |
8858 | (char *) "bitmap", NULL | |
8859 | }; | |
8860 | ||
8861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
8862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
8863 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8864 | SWIG_fail; | |
8865 | if (arg1 == NULL) { | |
8866 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8867 | SWIG_fail; | |
8868 | } | |
8869 | { | |
0439c23b | 8870 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8872 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8873 | ||
8874 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 8875 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8876 | } |
8877 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8878 | return resultobj; | |
8879 | fail: | |
8880 | return NULL; | |
8881 | } | |
8882 | ||
8883 | ||
8884 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8885 | PyObject *resultobj; | |
8886 | int arg1 ; | |
8887 | int arg2 ; | |
8888 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8889 | wxImage *result; | |
8890 | PyObject * obj0 = 0 ; | |
8891 | PyObject * obj1 = 0 ; | |
8892 | PyObject * obj2 = 0 ; | |
8893 | char *kwnames[] = { | |
8894 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8895 | }; | |
8896 | ||
8897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8898 | arg1 = (int) SWIG_AsInt(obj0); | |
8899 | if (PyErr_Occurred()) SWIG_fail; | |
8900 | arg2 = (int) SWIG_AsInt(obj1); | |
8901 | if (PyErr_Occurred()) SWIG_fail; | |
8902 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
8903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8904 | { | |
8905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8906 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8907 | ||
8908 | wxPyEndAllowThreads(__tstate); | |
8909 | if (PyErr_Occurred()) SWIG_fail; | |
8910 | } | |
8911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8912 | return resultobj; | |
8913 | fail: | |
8914 | return NULL; | |
8915 | } | |
8916 | ||
8917 | ||
8918 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8919 | PyObject *resultobj; | |
8920 | wxImage *arg1 = (wxImage *) 0 ; | |
8921 | int arg2 ; | |
8922 | int arg3 ; | |
8923 | PyObject * obj0 = 0 ; | |
8924 | PyObject * obj1 = 0 ; | |
8925 | PyObject * obj2 = 0 ; | |
8926 | char *kwnames[] = { | |
8927 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8928 | }; | |
8929 | ||
8930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8933 | arg2 = (int) SWIG_AsInt(obj1); | |
8934 | if (PyErr_Occurred()) SWIG_fail; | |
8935 | arg3 = (int) SWIG_AsInt(obj2); | |
8936 | if (PyErr_Occurred()) SWIG_fail; | |
8937 | { | |
8938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8939 | (arg1)->Create(arg2,arg3); | |
8940 | ||
8941 | wxPyEndAllowThreads(__tstate); | |
8942 | if (PyErr_Occurred()) SWIG_fail; | |
8943 | } | |
8944 | Py_INCREF(Py_None); resultobj = Py_None; | |
8945 | return resultobj; | |
8946 | fail: | |
8947 | return NULL; | |
8948 | } | |
8949 | ||
8950 | ||
8951 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8952 | PyObject *resultobj; | |
8953 | wxImage *arg1 = (wxImage *) 0 ; | |
8954 | PyObject * obj0 = 0 ; | |
8955 | char *kwnames[] = { | |
8956 | (char *) "self", NULL | |
8957 | }; | |
8958 | ||
8959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
8960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8962 | { | |
8963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8964 | (arg1)->Destroy(); | |
8965 | ||
8966 | wxPyEndAllowThreads(__tstate); | |
8967 | if (PyErr_Occurred()) SWIG_fail; | |
8968 | } | |
8969 | Py_INCREF(Py_None); resultobj = Py_None; | |
8970 | return resultobj; | |
8971 | fail: | |
8972 | return NULL; | |
8973 | } | |
8974 | ||
8975 | ||
8976 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8977 | PyObject *resultobj; | |
8978 | wxImage *arg1 = (wxImage *) 0 ; | |
8979 | int arg2 ; | |
8980 | int arg3 ; | |
8981 | SwigValueWrapper< wxImage > result; | |
8982 | PyObject * obj0 = 0 ; | |
8983 | PyObject * obj1 = 0 ; | |
8984 | PyObject * obj2 = 0 ; | |
8985 | char *kwnames[] = { | |
8986 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8987 | }; | |
8988 | ||
8989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8992 | arg2 = (int) SWIG_AsInt(obj1); | |
8993 | if (PyErr_Occurred()) SWIG_fail; | |
8994 | arg3 = (int) SWIG_AsInt(obj2); | |
8995 | if (PyErr_Occurred()) SWIG_fail; | |
8996 | { | |
8997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8998 | result = (arg1)->Scale(arg2,arg3); | |
8999 | ||
9000 | wxPyEndAllowThreads(__tstate); | |
9001 | if (PyErr_Occurred()) SWIG_fail; | |
9002 | } | |
9003 | { | |
9004 | wxImage * resultptr; | |
9005 | resultptr = new wxImage((wxImage &) result); | |
9006 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9007 | } | |
9008 | return resultobj; | |
9009 | fail: | |
9010 | return NULL; | |
9011 | } | |
9012 | ||
9013 | ||
9014 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9015 | PyObject *resultobj; | |
9016 | wxImage *arg1 = (wxImage *) 0 ; | |
9017 | int arg2 ; | |
9018 | int arg3 ; | |
9019 | SwigValueWrapper< wxImage > result; | |
9020 | PyObject * obj0 = 0 ; | |
9021 | PyObject * obj1 = 0 ; | |
9022 | PyObject * obj2 = 0 ; | |
9023 | char *kwnames[] = { | |
9024 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9025 | }; | |
9026 | ||
9027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9030 | arg2 = (int) SWIG_AsInt(obj1); | |
9031 | if (PyErr_Occurred()) SWIG_fail; | |
9032 | arg3 = (int) SWIG_AsInt(obj2); | |
9033 | if (PyErr_Occurred()) SWIG_fail; | |
9034 | { | |
9035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9036 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9037 | ||
9038 | wxPyEndAllowThreads(__tstate); | |
9039 | if (PyErr_Occurred()) SWIG_fail; | |
9040 | } | |
9041 | { | |
9042 | wxImage * resultptr; | |
9043 | resultptr = new wxImage((wxImage &) result); | |
9044 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9045 | } | |
9046 | return resultobj; | |
9047 | fail: | |
9048 | return NULL; | |
9049 | } | |
9050 | ||
9051 | ||
9052 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9053 | PyObject *resultobj; | |
9054 | wxImage *arg1 = (wxImage *) 0 ; | |
9055 | int arg2 ; | |
9056 | int arg3 ; | |
9057 | wxImage *result; | |
9058 | PyObject * obj0 = 0 ; | |
9059 | PyObject * obj1 = 0 ; | |
9060 | PyObject * obj2 = 0 ; | |
9061 | char *kwnames[] = { | |
9062 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9063 | }; | |
9064 | ||
9065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9068 | arg2 = (int) SWIG_AsInt(obj1); | |
9069 | if (PyErr_Occurred()) SWIG_fail; | |
9070 | arg3 = (int) SWIG_AsInt(obj2); | |
9071 | if (PyErr_Occurred()) SWIG_fail; | |
9072 | { | |
9073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9074 | { | |
9075 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9076 | result = (wxImage *) &_result_ref; | |
9077 | } | |
9078 | ||
9079 | wxPyEndAllowThreads(__tstate); | |
9080 | if (PyErr_Occurred()) SWIG_fail; | |
9081 | } | |
9082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
9083 | return resultobj; | |
9084 | fail: | |
9085 | return NULL; | |
9086 | } | |
9087 | ||
9088 | ||
9089 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9090 | PyObject *resultobj; | |
9091 | wxImage *arg1 = (wxImage *) 0 ; | |
9092 | int arg2 ; | |
9093 | int arg3 ; | |
9094 | unsigned char arg4 ; | |
9095 | unsigned char arg5 ; | |
9096 | unsigned char arg6 ; | |
9097 | PyObject * obj0 = 0 ; | |
9098 | PyObject * obj1 = 0 ; | |
9099 | PyObject * obj2 = 0 ; | |
9100 | PyObject * obj3 = 0 ; | |
9101 | PyObject * obj4 = 0 ; | |
9102 | PyObject * obj5 = 0 ; | |
9103 | char *kwnames[] = { | |
9104 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9105 | }; | |
9106 | ||
9107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9110 | arg2 = (int) SWIG_AsInt(obj1); | |
9111 | if (PyErr_Occurred()) SWIG_fail; | |
9112 | arg3 = (int) SWIG_AsInt(obj2); | |
9113 | if (PyErr_Occurred()) SWIG_fail; | |
9114 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9115 | if (PyErr_Occurred()) SWIG_fail; | |
9116 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
9117 | if (PyErr_Occurred()) SWIG_fail; | |
9118 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
9119 | if (PyErr_Occurred()) SWIG_fail; | |
9120 | { | |
9121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9122 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9123 | ||
9124 | wxPyEndAllowThreads(__tstate); | |
9125 | if (PyErr_Occurred()) SWIG_fail; | |
9126 | } | |
9127 | Py_INCREF(Py_None); resultobj = Py_None; | |
9128 | return resultobj; | |
9129 | fail: | |
9130 | return NULL; | |
9131 | } | |
9132 | ||
9133 | ||
9134 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9135 | PyObject *resultobj; | |
9136 | wxImage *arg1 = (wxImage *) 0 ; | |
9137 | int arg2 ; | |
9138 | int arg3 ; | |
9139 | unsigned char result; | |
9140 | PyObject * obj0 = 0 ; | |
9141 | PyObject * obj1 = 0 ; | |
9142 | PyObject * obj2 = 0 ; | |
9143 | char *kwnames[] = { | |
9144 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9145 | }; | |
9146 | ||
9147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9150 | arg2 = (int) SWIG_AsInt(obj1); | |
9151 | if (PyErr_Occurred()) SWIG_fail; | |
9152 | arg3 = (int) SWIG_AsInt(obj2); | |
9153 | if (PyErr_Occurred()) SWIG_fail; | |
9154 | { | |
9155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9156 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9157 | ||
9158 | wxPyEndAllowThreads(__tstate); | |
9159 | if (PyErr_Occurred()) SWIG_fail; | |
9160 | } | |
9161 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9162 | return resultobj; | |
9163 | fail: | |
9164 | return NULL; | |
9165 | } | |
9166 | ||
9167 | ||
9168 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9169 | PyObject *resultobj; | |
9170 | wxImage *arg1 = (wxImage *) 0 ; | |
9171 | int arg2 ; | |
9172 | int arg3 ; | |
9173 | unsigned char result; | |
9174 | PyObject * obj0 = 0 ; | |
9175 | PyObject * obj1 = 0 ; | |
9176 | PyObject * obj2 = 0 ; | |
9177 | char *kwnames[] = { | |
9178 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9179 | }; | |
9180 | ||
9181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9184 | arg2 = (int) SWIG_AsInt(obj1); | |
9185 | if (PyErr_Occurred()) SWIG_fail; | |
9186 | arg3 = (int) SWIG_AsInt(obj2); | |
9187 | if (PyErr_Occurred()) SWIG_fail; | |
9188 | { | |
9189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9190 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9191 | ||
9192 | wxPyEndAllowThreads(__tstate); | |
9193 | if (PyErr_Occurred()) SWIG_fail; | |
9194 | } | |
9195 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9196 | return resultobj; | |
9197 | fail: | |
9198 | return NULL; | |
9199 | } | |
9200 | ||
9201 | ||
9202 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9203 | PyObject *resultobj; | |
9204 | wxImage *arg1 = (wxImage *) 0 ; | |
9205 | int arg2 ; | |
9206 | int arg3 ; | |
9207 | unsigned char result; | |
9208 | PyObject * obj0 = 0 ; | |
9209 | PyObject * obj1 = 0 ; | |
9210 | PyObject * obj2 = 0 ; | |
9211 | char *kwnames[] = { | |
9212 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9213 | }; | |
9214 | ||
9215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9218 | arg2 = (int) SWIG_AsInt(obj1); | |
9219 | if (PyErr_Occurred()) SWIG_fail; | |
9220 | arg3 = (int) SWIG_AsInt(obj2); | |
9221 | if (PyErr_Occurred()) SWIG_fail; | |
9222 | { | |
9223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9224 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9225 | ||
9226 | wxPyEndAllowThreads(__tstate); | |
9227 | if (PyErr_Occurred()) SWIG_fail; | |
9228 | } | |
9229 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9230 | return resultobj; | |
9231 | fail: | |
9232 | return NULL; | |
9233 | } | |
9234 | ||
9235 | ||
9236 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9237 | PyObject *resultobj; | |
9238 | wxImage *arg1 = (wxImage *) 0 ; | |
9239 | int arg2 ; | |
9240 | int arg3 ; | |
9241 | unsigned char arg4 ; | |
9242 | PyObject * obj0 = 0 ; | |
9243 | PyObject * obj1 = 0 ; | |
9244 | PyObject * obj2 = 0 ; | |
9245 | PyObject * obj3 = 0 ; | |
9246 | char *kwnames[] = { | |
9247 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9248 | }; | |
9249 | ||
9250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9253 | arg2 = (int) SWIG_AsInt(obj1); | |
9254 | if (PyErr_Occurred()) SWIG_fail; | |
9255 | arg3 = (int) SWIG_AsInt(obj2); | |
9256 | if (PyErr_Occurred()) SWIG_fail; | |
9257 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9258 | if (PyErr_Occurred()) SWIG_fail; | |
9259 | { | |
9260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9261 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9262 | ||
9263 | wxPyEndAllowThreads(__tstate); | |
9264 | if (PyErr_Occurred()) SWIG_fail; | |
9265 | } | |
9266 | Py_INCREF(Py_None); resultobj = Py_None; | |
9267 | return resultobj; | |
9268 | fail: | |
9269 | return NULL; | |
9270 | } | |
9271 | ||
9272 | ||
9273 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9274 | PyObject *resultobj; | |
9275 | wxImage *arg1 = (wxImage *) 0 ; | |
9276 | int arg2 ; | |
9277 | int arg3 ; | |
9278 | unsigned char result; | |
9279 | PyObject * obj0 = 0 ; | |
9280 | PyObject * obj1 = 0 ; | |
9281 | PyObject * obj2 = 0 ; | |
9282 | char *kwnames[] = { | |
9283 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9284 | }; | |
9285 | ||
9286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9289 | arg2 = (int) SWIG_AsInt(obj1); | |
9290 | if (PyErr_Occurred()) SWIG_fail; | |
9291 | arg3 = (int) SWIG_AsInt(obj2); | |
9292 | if (PyErr_Occurred()) SWIG_fail; | |
9293 | { | |
9294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9295 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9296 | ||
9297 | wxPyEndAllowThreads(__tstate); | |
9298 | if (PyErr_Occurred()) SWIG_fail; | |
9299 | } | |
9300 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9301 | return resultobj; | |
9302 | fail: | |
9303 | return NULL; | |
9304 | } | |
9305 | ||
9306 | ||
9307 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9308 | PyObject *resultobj; | |
9309 | wxImage *arg1 = (wxImage *) 0 ; | |
9310 | bool result; | |
9311 | PyObject * obj0 = 0 ; | |
9312 | char *kwnames[] = { | |
9313 | (char *) "self", NULL | |
9314 | }; | |
9315 | ||
9316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
9317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9319 | { | |
9320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9321 | result = (bool)(arg1)->HasAlpha(); | |
9322 | ||
9323 | wxPyEndAllowThreads(__tstate); | |
9324 | if (PyErr_Occurred()) SWIG_fail; | |
9325 | } | |
9326 | { | |
9327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9328 | } | |
9329 | return resultobj; | |
9330 | fail: | |
9331 | return NULL; | |
9332 | } | |
9333 | ||
9334 | ||
9335 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9336 | PyObject *resultobj; | |
9337 | wxImage *arg1 = (wxImage *) 0 ; | |
9338 | byte *arg2 = (byte *) 0 ; | |
9339 | byte *arg3 = (byte *) 0 ; | |
9340 | byte *arg4 = (byte *) 0 ; | |
9341 | byte arg5 = (byte) 0 ; | |
9342 | byte arg6 = (byte) 0 ; | |
9343 | byte arg7 = (byte) 0 ; | |
9344 | bool result; | |
9345 | byte temp2 ; | |
9346 | byte temp3 ; | |
9347 | byte temp4 ; | |
9348 | PyObject * obj0 = 0 ; | |
9349 | PyObject * obj1 = 0 ; | |
9350 | PyObject * obj2 = 0 ; | |
9351 | PyObject * obj3 = 0 ; | |
9352 | char *kwnames[] = { | |
9353 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9354 | }; | |
9355 | ||
9356 | arg2 = &temp2; | |
9357 | arg3 = &temp3; | |
9358 | arg4 = &temp4; | |
9359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9362 | if (obj1) { | |
9363 | arg5 = (byte) SWIG_AsUnsignedChar(obj1); | |
9364 | if (PyErr_Occurred()) SWIG_fail; | |
9365 | } | |
9366 | if (obj2) { | |
9367 | arg6 = (byte) SWIG_AsUnsignedChar(obj2); | |
9368 | if (PyErr_Occurred()) SWIG_fail; | |
9369 | } | |
9370 | if (obj3) { | |
9371 | arg7 = (byte) SWIG_AsUnsignedChar(obj3); | |
9372 | if (PyErr_Occurred()) SWIG_fail; | |
9373 | } | |
9374 | { | |
9375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9376 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9377 | ||
9378 | wxPyEndAllowThreads(__tstate); | |
9379 | if (PyErr_Occurred()) SWIG_fail; | |
9380 | } | |
9381 | { | |
9382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9383 | } | |
9384 | { | |
9385 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9386 | resultobj = t_output_helper(resultobj,o); | |
9387 | } | |
9388 | { | |
9389 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9390 | resultobj = t_output_helper(resultobj,o); | |
9391 | } | |
9392 | { | |
9393 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9394 | resultobj = t_output_helper(resultobj,o); | |
9395 | } | |
9396 | return resultobj; | |
9397 | fail: | |
9398 | return NULL; | |
9399 | } | |
9400 | ||
9401 | ||
9402 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9403 | PyObject *resultobj; | |
9404 | wxImage *arg1 = (wxImage *) 0 ; | |
9405 | wxImage *arg2 = 0 ; | |
9406 | byte arg3 ; | |
9407 | byte arg4 ; | |
9408 | byte arg5 ; | |
9409 | bool result; | |
9410 | PyObject * obj0 = 0 ; | |
9411 | PyObject * obj1 = 0 ; | |
9412 | PyObject * obj2 = 0 ; | |
9413 | PyObject * obj3 = 0 ; | |
9414 | PyObject * obj4 = 0 ; | |
9415 | char *kwnames[] = { | |
9416 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9417 | }; | |
9418 | ||
9419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9422 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9423 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9424 | SWIG_fail; | |
9425 | if (arg2 == NULL) { | |
9426 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9427 | SWIG_fail; | |
9428 | } | |
9429 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); | |
9430 | if (PyErr_Occurred()) SWIG_fail; | |
9431 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
9432 | if (PyErr_Occurred()) SWIG_fail; | |
9433 | arg5 = (byte) SWIG_AsUnsignedChar(obj4); | |
9434 | if (PyErr_Occurred()) SWIG_fail; | |
9435 | { | |
9436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9437 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9438 | ||
9439 | wxPyEndAllowThreads(__tstate); | |
9440 | if (PyErr_Occurred()) SWIG_fail; | |
9441 | } | |
9442 | { | |
9443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9444 | } | |
9445 | return resultobj; | |
9446 | fail: | |
9447 | return NULL; | |
9448 | } | |
9449 | ||
9450 | ||
9451 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9452 | PyObject *resultobj; | |
9453 | wxString *arg1 = 0 ; | |
9454 | bool result; | |
9455 | bool temp1 = False ; | |
9456 | PyObject * obj0 = 0 ; | |
9457 | char *kwnames[] = { | |
9458 | (char *) "name", NULL | |
9459 | }; | |
9460 | ||
9461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9462 | { | |
9463 | arg1 = wxString_in_helper(obj0); | |
9464 | if (arg1 == NULL) SWIG_fail; | |
9465 | temp1 = True; | |
9466 | } | |
9467 | { | |
9468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9469 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9470 | ||
9471 | wxPyEndAllowThreads(__tstate); | |
9472 | if (PyErr_Occurred()) SWIG_fail; | |
9473 | } | |
9474 | { | |
9475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9476 | } | |
9477 | { | |
9478 | if (temp1) | |
9479 | delete arg1; | |
9480 | } | |
9481 | return resultobj; | |
9482 | fail: | |
9483 | { | |
9484 | if (temp1) | |
9485 | delete arg1; | |
9486 | } | |
9487 | return NULL; | |
9488 | } | |
9489 | ||
9490 | ||
9491 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9492 | PyObject *resultobj; | |
9493 | wxString *arg1 = 0 ; | |
9494 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9495 | int result; | |
9496 | bool temp1 = False ; | |
9497 | PyObject * obj0 = 0 ; | |
9498 | PyObject * obj1 = 0 ; | |
9499 | char *kwnames[] = { | |
9500 | (char *) "name",(char *) "type", NULL | |
9501 | }; | |
9502 | ||
9503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; | |
9504 | { | |
9505 | arg1 = wxString_in_helper(obj0); | |
9506 | if (arg1 == NULL) SWIG_fail; | |
9507 | temp1 = True; | |
9508 | } | |
9509 | if (obj1) { | |
9510 | arg2 = (long) SWIG_AsLong(obj1); | |
9511 | if (PyErr_Occurred()) SWIG_fail; | |
9512 | } | |
9513 | { | |
9514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9515 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9516 | ||
9517 | wxPyEndAllowThreads(__tstate); | |
9518 | if (PyErr_Occurred()) SWIG_fail; | |
9519 | } | |
9520 | resultobj = SWIG_FromInt((int)result); | |
9521 | { | |
9522 | if (temp1) | |
9523 | delete arg1; | |
9524 | } | |
9525 | return resultobj; | |
9526 | fail: | |
9527 | { | |
9528 | if (temp1) | |
9529 | delete arg1; | |
9530 | } | |
9531 | return NULL; | |
9532 | } | |
9533 | ||
9534 | ||
9535 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9536 | PyObject *resultobj; | |
9537 | wxImage *arg1 = (wxImage *) 0 ; | |
9538 | wxString *arg2 = 0 ; | |
9539 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9540 | int arg4 = (int) -1 ; | |
9541 | bool result; | |
9542 | bool temp2 = False ; | |
9543 | PyObject * obj0 = 0 ; | |
9544 | PyObject * obj1 = 0 ; | |
9545 | PyObject * obj2 = 0 ; | |
9546 | PyObject * obj3 = 0 ; | |
9547 | char *kwnames[] = { | |
9548 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9549 | }; | |
9550 | ||
9551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9554 | { | |
9555 | arg2 = wxString_in_helper(obj1); | |
9556 | if (arg2 == NULL) SWIG_fail; | |
9557 | temp2 = True; | |
9558 | } | |
9559 | if (obj2) { | |
9560 | arg3 = (long) SWIG_AsLong(obj2); | |
9561 | if (PyErr_Occurred()) SWIG_fail; | |
9562 | } | |
9563 | if (obj3) { | |
9564 | arg4 = (int) SWIG_AsInt(obj3); | |
9565 | if (PyErr_Occurred()) SWIG_fail; | |
9566 | } | |
9567 | { | |
9568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9569 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9570 | ||
9571 | wxPyEndAllowThreads(__tstate); | |
9572 | if (PyErr_Occurred()) SWIG_fail; | |
9573 | } | |
9574 | { | |
9575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9576 | } | |
9577 | { | |
9578 | if (temp2) | |
9579 | delete arg2; | |
9580 | } | |
9581 | return resultobj; | |
9582 | fail: | |
9583 | { | |
9584 | if (temp2) | |
9585 | delete arg2; | |
9586 | } | |
9587 | return NULL; | |
9588 | } | |
9589 | ||
9590 | ||
9591 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9592 | PyObject *resultobj; | |
9593 | wxImage *arg1 = (wxImage *) 0 ; | |
9594 | wxString *arg2 = 0 ; | |
9595 | wxString *arg3 = 0 ; | |
9596 | int arg4 = (int) -1 ; | |
9597 | bool result; | |
9598 | bool temp2 = False ; | |
9599 | bool temp3 = False ; | |
9600 | PyObject * obj0 = 0 ; | |
9601 | PyObject * obj1 = 0 ; | |
9602 | PyObject * obj2 = 0 ; | |
9603 | PyObject * obj3 = 0 ; | |
9604 | char *kwnames[] = { | |
9605 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9606 | }; | |
9607 | ||
9608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9611 | { | |
9612 | arg2 = wxString_in_helper(obj1); | |
9613 | if (arg2 == NULL) SWIG_fail; | |
9614 | temp2 = True; | |
9615 | } | |
9616 | { | |
9617 | arg3 = wxString_in_helper(obj2); | |
9618 | if (arg3 == NULL) SWIG_fail; | |
9619 | temp3 = True; | |
9620 | } | |
9621 | if (obj3) { | |
9622 | arg4 = (int) SWIG_AsInt(obj3); | |
9623 | if (PyErr_Occurred()) SWIG_fail; | |
9624 | } | |
9625 | { | |
9626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9627 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9628 | ||
9629 | wxPyEndAllowThreads(__tstate); | |
9630 | if (PyErr_Occurred()) SWIG_fail; | |
9631 | } | |
9632 | { | |
9633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9634 | } | |
9635 | { | |
9636 | if (temp2) | |
9637 | delete arg2; | |
9638 | } | |
9639 | { | |
9640 | if (temp3) | |
9641 | delete arg3; | |
9642 | } | |
9643 | return resultobj; | |
9644 | fail: | |
9645 | { | |
9646 | if (temp2) | |
9647 | delete arg2; | |
9648 | } | |
9649 | { | |
9650 | if (temp3) | |
9651 | delete arg3; | |
9652 | } | |
9653 | return NULL; | |
9654 | } | |
9655 | ||
9656 | ||
9657 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9658 | PyObject *resultobj; | |
9659 | wxImage *arg1 = (wxImage *) 0 ; | |
9660 | wxString *arg2 = 0 ; | |
9661 | int arg3 ; | |
9662 | bool result; | |
9663 | bool temp2 = False ; | |
9664 | PyObject * obj0 = 0 ; | |
9665 | PyObject * obj1 = 0 ; | |
9666 | PyObject * obj2 = 0 ; | |
9667 | char *kwnames[] = { | |
9668 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9669 | }; | |
9670 | ||
9671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9674 | { | |
9675 | arg2 = wxString_in_helper(obj1); | |
9676 | if (arg2 == NULL) SWIG_fail; | |
9677 | temp2 = True; | |
9678 | } | |
9679 | arg3 = (int) SWIG_AsInt(obj2); | |
9680 | if (PyErr_Occurred()) SWIG_fail; | |
9681 | { | |
9682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9683 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9684 | ||
9685 | wxPyEndAllowThreads(__tstate); | |
9686 | if (PyErr_Occurred()) SWIG_fail; | |
9687 | } | |
9688 | { | |
9689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9690 | } | |
9691 | { | |
9692 | if (temp2) | |
9693 | delete arg2; | |
9694 | } | |
9695 | return resultobj; | |
9696 | fail: | |
9697 | { | |
9698 | if (temp2) | |
9699 | delete arg2; | |
9700 | } | |
9701 | return NULL; | |
9702 | } | |
9703 | ||
9704 | ||
9705 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9706 | PyObject *resultobj; | |
9707 | wxImage *arg1 = (wxImage *) 0 ; | |
9708 | wxString *arg2 = 0 ; | |
9709 | wxString *arg3 = 0 ; | |
9710 | bool result; | |
9711 | bool temp2 = False ; | |
9712 | bool temp3 = False ; | |
9713 | PyObject * obj0 = 0 ; | |
9714 | PyObject * obj1 = 0 ; | |
9715 | PyObject * obj2 = 0 ; | |
9716 | char *kwnames[] = { | |
9717 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9718 | }; | |
9719 | ||
9720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9723 | { | |
9724 | arg2 = wxString_in_helper(obj1); | |
9725 | if (arg2 == NULL) SWIG_fail; | |
9726 | temp2 = True; | |
9727 | } | |
9728 | { | |
9729 | arg3 = wxString_in_helper(obj2); | |
9730 | if (arg3 == NULL) SWIG_fail; | |
9731 | temp3 = True; | |
9732 | } | |
9733 | { | |
9734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9735 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9736 | ||
9737 | wxPyEndAllowThreads(__tstate); | |
9738 | if (PyErr_Occurred()) SWIG_fail; | |
9739 | } | |
9740 | { | |
9741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9742 | } | |
9743 | { | |
9744 | if (temp2) | |
9745 | delete arg2; | |
9746 | } | |
9747 | { | |
9748 | if (temp3) | |
9749 | delete arg3; | |
9750 | } | |
9751 | return resultobj; | |
9752 | fail: | |
9753 | { | |
9754 | if (temp2) | |
9755 | delete arg2; | |
9756 | } | |
9757 | { | |
9758 | if (temp3) | |
9759 | delete arg3; | |
9760 | } | |
9761 | return NULL; | |
9762 | } | |
9763 | ||
9764 | ||
9765 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9766 | PyObject *resultobj; | |
9767 | wxInputStream *arg1 = 0 ; | |
9768 | bool result; | |
9769 | wxPyInputStream *temp1 ; | |
9770 | bool created1 ; | |
9771 | PyObject * obj0 = 0 ; | |
9772 | char *kwnames[] = { | |
9773 | (char *) "stream", NULL | |
9774 | }; | |
9775 | ||
9776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9777 | { | |
9778 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9779 | arg1 = temp1->m_wxis; | |
9780 | created1 = False; | |
9781 | } else { | |
9782 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
9783 | arg1 = wxPyCBInputStream_create(obj0, False); | |
9784 | if (arg1 == NULL) { | |
9785 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9786 | SWIG_fail; | |
9787 | } | |
9788 | created1 = True; | |
9789 | } | |
9790 | } | |
9791 | { | |
9792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9793 | result = (bool)wxImage::CanRead(*arg1); | |
9794 | ||
9795 | wxPyEndAllowThreads(__tstate); | |
9796 | if (PyErr_Occurred()) SWIG_fail; | |
9797 | } | |
9798 | { | |
9799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9800 | } | |
9801 | { | |
9802 | if (created1) | |
9803 | delete arg1; | |
9804 | } | |
9805 | return resultobj; | |
9806 | fail: | |
9807 | { | |
9808 | if (created1) | |
9809 | delete arg1; | |
9810 | } | |
9811 | return NULL; | |
9812 | } | |
9813 | ||
9814 | ||
9815 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9816 | PyObject *resultobj; | |
9817 | wxImage *arg1 = (wxImage *) 0 ; | |
9818 | wxInputStream *arg2 = 0 ; | |
9819 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9820 | int arg4 = (int) -1 ; | |
9821 | bool result; | |
9822 | wxPyInputStream *temp2 ; | |
9823 | bool created2 ; | |
9824 | PyObject * obj0 = 0 ; | |
9825 | PyObject * obj1 = 0 ; | |
9826 | PyObject * obj2 = 0 ; | |
9827 | PyObject * obj3 = 0 ; | |
9828 | char *kwnames[] = { | |
9829 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9830 | }; | |
9831 | ||
9832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9835 | { | |
9836 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9837 | arg2 = temp2->m_wxis; | |
9838 | created2 = False; | |
9839 | } else { | |
9840 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
9841 | arg2 = wxPyCBInputStream_create(obj1, False); | |
9842 | if (arg2 == NULL) { | |
9843 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9844 | SWIG_fail; | |
9845 | } | |
9846 | created2 = True; | |
9847 | } | |
9848 | } | |
9849 | if (obj2) { | |
9850 | arg3 = (long) SWIG_AsLong(obj2); | |
9851 | if (PyErr_Occurred()) SWIG_fail; | |
9852 | } | |
9853 | if (obj3) { | |
9854 | arg4 = (int) SWIG_AsInt(obj3); | |
9855 | if (PyErr_Occurred()) SWIG_fail; | |
9856 | } | |
9857 | { | |
9858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9859 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9860 | ||
9861 | wxPyEndAllowThreads(__tstate); | |
9862 | if (PyErr_Occurred()) SWIG_fail; | |
9863 | } | |
9864 | { | |
9865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9866 | } | |
9867 | { | |
9868 | if (created2) | |
9869 | delete arg2; | |
9870 | } | |
9871 | return resultobj; | |
9872 | fail: | |
9873 | { | |
9874 | if (created2) | |
9875 | delete arg2; | |
9876 | } | |
9877 | return NULL; | |
9878 | } | |
9879 | ||
9880 | ||
9881 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9882 | PyObject *resultobj; | |
9883 | wxImage *arg1 = (wxImage *) 0 ; | |
9884 | wxInputStream *arg2 = 0 ; | |
9885 | wxString *arg3 = 0 ; | |
9886 | int arg4 = (int) -1 ; | |
9887 | bool result; | |
9888 | wxPyInputStream *temp2 ; | |
9889 | bool created2 ; | |
9890 | bool temp3 = False ; | |
9891 | PyObject * obj0 = 0 ; | |
9892 | PyObject * obj1 = 0 ; | |
9893 | PyObject * obj2 = 0 ; | |
9894 | PyObject * obj3 = 0 ; | |
9895 | char *kwnames[] = { | |
9896 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9897 | }; | |
9898 | ||
9899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9902 | { | |
9903 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9904 | arg2 = temp2->m_wxis; | |
9905 | created2 = False; | |
9906 | } else { | |
9907 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
9908 | arg2 = wxPyCBInputStream_create(obj1, False); | |
9909 | if (arg2 == NULL) { | |
9910 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9911 | SWIG_fail; | |
9912 | } | |
9913 | created2 = True; | |
9914 | } | |
9915 | } | |
9916 | { | |
9917 | arg3 = wxString_in_helper(obj2); | |
9918 | if (arg3 == NULL) SWIG_fail; | |
9919 | temp3 = True; | |
9920 | } | |
9921 | if (obj3) { | |
9922 | arg4 = (int) SWIG_AsInt(obj3); | |
9923 | if (PyErr_Occurred()) SWIG_fail; | |
9924 | } | |
9925 | { | |
9926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9927 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9928 | ||
9929 | wxPyEndAllowThreads(__tstate); | |
9930 | if (PyErr_Occurred()) SWIG_fail; | |
9931 | } | |
9932 | { | |
9933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9934 | } | |
9935 | { | |
9936 | if (created2) | |
9937 | delete arg2; | |
9938 | } | |
9939 | { | |
9940 | if (temp3) | |
9941 | delete arg3; | |
9942 | } | |
9943 | return resultobj; | |
9944 | fail: | |
9945 | { | |
9946 | if (created2) | |
9947 | delete arg2; | |
9948 | } | |
9949 | { | |
9950 | if (temp3) | |
9951 | delete arg3; | |
9952 | } | |
9953 | return NULL; | |
9954 | } | |
9955 | ||
9956 | ||
9957 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9958 | PyObject *resultobj; | |
9959 | wxImage *arg1 = (wxImage *) 0 ; | |
9960 | bool result; | |
9961 | PyObject * obj0 = 0 ; | |
9962 | char *kwnames[] = { | |
9963 | (char *) "self", NULL | |
9964 | }; | |
9965 | ||
9966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
9967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9969 | { | |
9970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9971 | result = (bool)(arg1)->Ok(); | |
9972 | ||
9973 | wxPyEndAllowThreads(__tstate); | |
9974 | if (PyErr_Occurred()) SWIG_fail; | |
9975 | } | |
9976 | { | |
9977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9978 | } | |
9979 | return resultobj; | |
9980 | fail: | |
9981 | return NULL; | |
9982 | } | |
9983 | ||
9984 | ||
9985 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9986 | PyObject *resultobj; | |
9987 | wxImage *arg1 = (wxImage *) 0 ; | |
9988 | int result; | |
9989 | PyObject * obj0 = 0 ; | |
9990 | char *kwnames[] = { | |
9991 | (char *) "self", NULL | |
9992 | }; | |
9993 | ||
9994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
9995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9997 | { | |
9998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9999 | result = (int)(arg1)->GetWidth(); | |
10000 | ||
10001 | wxPyEndAllowThreads(__tstate); | |
10002 | if (PyErr_Occurred()) SWIG_fail; | |
10003 | } | |
10004 | resultobj = SWIG_FromInt((int)result); | |
10005 | return resultobj; | |
10006 | fail: | |
10007 | return NULL; | |
10008 | } | |
10009 | ||
10010 | ||
10011 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10012 | PyObject *resultobj; | |
10013 | wxImage *arg1 = (wxImage *) 0 ; | |
10014 | int result; | |
10015 | PyObject * obj0 = 0 ; | |
10016 | char *kwnames[] = { | |
10017 | (char *) "self", NULL | |
10018 | }; | |
10019 | ||
10020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
10021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10023 | { | |
10024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10025 | result = (int)(arg1)->GetHeight(); | |
10026 | ||
10027 | wxPyEndAllowThreads(__tstate); | |
10028 | if (PyErr_Occurred()) SWIG_fail; | |
10029 | } | |
10030 | resultobj = SWIG_FromInt((int)result); | |
10031 | return resultobj; | |
10032 | fail: | |
10033 | return NULL; | |
10034 | } | |
10035 | ||
10036 | ||
10037 | static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10038 | PyObject *resultobj; | |
10039 | wxImage *arg1 = (wxImage *) 0 ; | |
10040 | wxSize result; | |
10041 | PyObject * obj0 = 0 ; | |
10042 | char *kwnames[] = { | |
10043 | (char *) "self", NULL | |
10044 | }; | |
10045 | ||
10046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10049 | { | |
10050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10051 | result = wxImage_GetSize(arg1); | |
10052 | ||
10053 | wxPyEndAllowThreads(__tstate); | |
10054 | if (PyErr_Occurred()) SWIG_fail; | |
10055 | } | |
10056 | { | |
10057 | wxSize * resultptr; | |
10058 | resultptr = new wxSize((wxSize &) result); | |
10059 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10060 | } | |
10061 | return resultobj; | |
10062 | fail: | |
10063 | return NULL; | |
10064 | } | |
10065 | ||
10066 | ||
10067 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10068 | PyObject *resultobj; | |
10069 | wxImage *arg1 = (wxImage *) 0 ; | |
10070 | wxRect *arg2 = 0 ; | |
10071 | SwigValueWrapper< wxImage > result; | |
10072 | wxRect temp2 ; | |
10073 | PyObject * obj0 = 0 ; | |
10074 | PyObject * obj1 = 0 ; | |
10075 | char *kwnames[] = { | |
10076 | (char *) "self",(char *) "rect", NULL | |
10077 | }; | |
10078 | ||
10079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
10080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10082 | { | |
10083 | arg2 = &temp2; | |
10084 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10085 | } | |
10086 | { | |
10087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10088 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10089 | ||
10090 | wxPyEndAllowThreads(__tstate); | |
10091 | if (PyErr_Occurred()) SWIG_fail; | |
10092 | } | |
10093 | { | |
10094 | wxImage * resultptr; | |
10095 | resultptr = new wxImage((wxImage &) result); | |
10096 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10097 | } | |
10098 | return resultobj; | |
10099 | fail: | |
10100 | return NULL; | |
10101 | } | |
10102 | ||
10103 | ||
10104 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10105 | PyObject *resultobj; | |
10106 | wxImage *arg1 = (wxImage *) 0 ; | |
10107 | SwigValueWrapper< wxImage > result; | |
10108 | PyObject * obj0 = 0 ; | |
10109 | char *kwnames[] = { | |
10110 | (char *) "self", NULL | |
10111 | }; | |
10112 | ||
10113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
10114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10116 | { | |
10117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10118 | result = (arg1)->Copy(); | |
10119 | ||
10120 | wxPyEndAllowThreads(__tstate); | |
10121 | if (PyErr_Occurred()) SWIG_fail; | |
10122 | } | |
10123 | { | |
10124 | wxImage * resultptr; | |
10125 | resultptr = new wxImage((wxImage &) result); | |
10126 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10127 | } | |
10128 | return resultobj; | |
10129 | fail: | |
10130 | return NULL; | |
10131 | } | |
10132 | ||
10133 | ||
10134 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10135 | PyObject *resultobj; | |
10136 | wxImage *arg1 = (wxImage *) 0 ; | |
10137 | wxImage *arg2 = 0 ; | |
10138 | int arg3 ; | |
10139 | int arg4 ; | |
10140 | PyObject * obj0 = 0 ; | |
10141 | PyObject * obj1 = 0 ; | |
10142 | PyObject * obj2 = 0 ; | |
10143 | PyObject * obj3 = 0 ; | |
10144 | char *kwnames[] = { | |
10145 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10146 | }; | |
10147 | ||
10148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10151 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10152 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10153 | SWIG_fail; | |
10154 | if (arg2 == NULL) { | |
10155 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10156 | SWIG_fail; | |
10157 | } | |
10158 | arg3 = (int) SWIG_AsInt(obj2); | |
10159 | if (PyErr_Occurred()) SWIG_fail; | |
10160 | arg4 = (int) SWIG_AsInt(obj3); | |
10161 | if (PyErr_Occurred()) SWIG_fail; | |
10162 | { | |
10163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10164 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10165 | ||
10166 | wxPyEndAllowThreads(__tstate); | |
10167 | if (PyErr_Occurred()) SWIG_fail; | |
10168 | } | |
10169 | Py_INCREF(Py_None); resultobj = Py_None; | |
10170 | return resultobj; | |
10171 | fail: | |
10172 | return NULL; | |
10173 | } | |
10174 | ||
10175 | ||
10176 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10177 | PyObject *resultobj; | |
10178 | wxImage *arg1 = (wxImage *) 0 ; | |
10179 | PyObject *result; | |
10180 | PyObject * obj0 = 0 ; | |
10181 | char *kwnames[] = { | |
10182 | (char *) "self", NULL | |
10183 | }; | |
10184 | ||
10185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
10186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10188 | { | |
10189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10190 | result = (PyObject *)wxImage_GetData(arg1); | |
10191 | ||
10192 | wxPyEndAllowThreads(__tstate); | |
10193 | if (PyErr_Occurred()) SWIG_fail; | |
10194 | } | |
10195 | resultobj = result; | |
10196 | return resultobj; | |
10197 | fail: | |
10198 | return NULL; | |
10199 | } | |
10200 | ||
10201 | ||
10202 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10203 | PyObject *resultobj; | |
10204 | wxImage *arg1 = (wxImage *) 0 ; | |
10205 | PyObject *arg2 = (PyObject *) 0 ; | |
10206 | PyObject * obj0 = 0 ; | |
10207 | PyObject * obj1 = 0 ; | |
10208 | char *kwnames[] = { | |
10209 | (char *) "self",(char *) "data", NULL | |
10210 | }; | |
10211 | ||
10212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
10213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10215 | arg2 = obj1; | |
10216 | { | |
10217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10218 | wxImage_SetData(arg1,arg2); | |
10219 | ||
10220 | wxPyEndAllowThreads(__tstate); | |
10221 | if (PyErr_Occurred()) SWIG_fail; | |
10222 | } | |
10223 | Py_INCREF(Py_None); resultobj = Py_None; | |
10224 | return resultobj; | |
10225 | fail: | |
10226 | return NULL; | |
10227 | } | |
10228 | ||
10229 | ||
10230 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10231 | PyObject *resultobj; | |
10232 | wxImage *arg1 = (wxImage *) 0 ; | |
10233 | PyObject *result; | |
10234 | PyObject * obj0 = 0 ; | |
10235 | char *kwnames[] = { | |
10236 | (char *) "self", NULL | |
10237 | }; | |
10238 | ||
10239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
10240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10242 | { | |
10243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10244 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10245 | ||
10246 | wxPyEndAllowThreads(__tstate); | |
10247 | if (PyErr_Occurred()) SWIG_fail; | |
10248 | } | |
10249 | resultobj = result; | |
10250 | return resultobj; | |
10251 | fail: | |
10252 | return NULL; | |
10253 | } | |
10254 | ||
10255 | ||
10256 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10257 | PyObject *resultobj; | |
10258 | wxImage *arg1 = (wxImage *) 0 ; | |
10259 | PyObject *arg2 = (PyObject *) 0 ; | |
10260 | PyObject * obj0 = 0 ; | |
10261 | PyObject * obj1 = 0 ; | |
10262 | char *kwnames[] = { | |
10263 | (char *) "self",(char *) "data", NULL | |
10264 | }; | |
10265 | ||
10266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10269 | arg2 = obj1; | |
10270 | { | |
10271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10272 | wxImage_SetDataBuffer(arg1,arg2); | |
10273 | ||
10274 | wxPyEndAllowThreads(__tstate); | |
10275 | if (PyErr_Occurred()) SWIG_fail; | |
10276 | } | |
10277 | Py_INCREF(Py_None); resultobj = Py_None; | |
10278 | return resultobj; | |
10279 | fail: | |
10280 | return NULL; | |
10281 | } | |
10282 | ||
10283 | ||
10284 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10285 | PyObject *resultobj; | |
10286 | wxImage *arg1 = (wxImage *) 0 ; | |
10287 | PyObject *result; | |
10288 | PyObject * obj0 = 0 ; | |
10289 | char *kwnames[] = { | |
10290 | (char *) "self", NULL | |
10291 | }; | |
10292 | ||
10293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
10294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10296 | { | |
10297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10298 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10299 | ||
10300 | wxPyEndAllowThreads(__tstate); | |
10301 | if (PyErr_Occurred()) SWIG_fail; | |
10302 | } | |
10303 | resultobj = result; | |
10304 | return resultobj; | |
10305 | fail: | |
10306 | return NULL; | |
10307 | } | |
10308 | ||
10309 | ||
10310 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10311 | PyObject *resultobj; | |
10312 | wxImage *arg1 = (wxImage *) 0 ; | |
10313 | PyObject *arg2 = (PyObject *) 0 ; | |
10314 | PyObject * obj0 = 0 ; | |
10315 | PyObject * obj1 = 0 ; | |
10316 | char *kwnames[] = { | |
10317 | (char *) "self",(char *) "data", NULL | |
10318 | }; | |
10319 | ||
10320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
10321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10323 | arg2 = obj1; | |
10324 | { | |
10325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10326 | wxImage_SetAlphaData(arg1,arg2); | |
10327 | ||
10328 | wxPyEndAllowThreads(__tstate); | |
10329 | if (PyErr_Occurred()) SWIG_fail; | |
10330 | } | |
10331 | Py_INCREF(Py_None); resultobj = Py_None; | |
10332 | return resultobj; | |
10333 | fail: | |
10334 | return NULL; | |
10335 | } | |
10336 | ||
10337 | ||
10338 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10339 | PyObject *resultobj; | |
10340 | wxImage *arg1 = (wxImage *) 0 ; | |
10341 | PyObject *result; | |
10342 | PyObject * obj0 = 0 ; | |
10343 | char *kwnames[] = { | |
10344 | (char *) "self", NULL | |
10345 | }; | |
10346 | ||
10347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
10348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10350 | { | |
10351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10352 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10353 | ||
10354 | wxPyEndAllowThreads(__tstate); | |
10355 | if (PyErr_Occurred()) SWIG_fail; | |
10356 | } | |
10357 | resultobj = result; | |
10358 | return resultobj; | |
10359 | fail: | |
10360 | return NULL; | |
10361 | } | |
10362 | ||
10363 | ||
10364 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10365 | PyObject *resultobj; | |
10366 | wxImage *arg1 = (wxImage *) 0 ; | |
10367 | PyObject *arg2 = (PyObject *) 0 ; | |
10368 | PyObject * obj0 = 0 ; | |
10369 | PyObject * obj1 = 0 ; | |
10370 | char *kwnames[] = { | |
10371 | (char *) "self",(char *) "data", NULL | |
10372 | }; | |
10373 | ||
10374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10377 | arg2 = obj1; | |
10378 | { | |
10379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10380 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10381 | ||
10382 | wxPyEndAllowThreads(__tstate); | |
10383 | if (PyErr_Occurred()) SWIG_fail; | |
10384 | } | |
10385 | Py_INCREF(Py_None); resultobj = Py_None; | |
10386 | return resultobj; | |
10387 | fail: | |
10388 | return NULL; | |
10389 | } | |
10390 | ||
10391 | ||
10392 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10393 | PyObject *resultobj; | |
10394 | wxImage *arg1 = (wxImage *) 0 ; | |
10395 | unsigned char arg2 ; | |
10396 | unsigned char arg3 ; | |
10397 | unsigned char arg4 ; | |
10398 | PyObject * obj0 = 0 ; | |
10399 | PyObject * obj1 = 0 ; | |
10400 | PyObject * obj2 = 0 ; | |
10401 | PyObject * obj3 = 0 ; | |
10402 | char *kwnames[] = { | |
10403 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10404 | }; | |
10405 | ||
10406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10409 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10410 | if (PyErr_Occurred()) SWIG_fail; | |
10411 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10412 | if (PyErr_Occurred()) SWIG_fail; | |
10413 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10414 | if (PyErr_Occurred()) SWIG_fail; | |
10415 | { | |
10416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10417 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10418 | ||
10419 | wxPyEndAllowThreads(__tstate); | |
10420 | if (PyErr_Occurred()) SWIG_fail; | |
10421 | } | |
10422 | Py_INCREF(Py_None); resultobj = Py_None; | |
10423 | return resultobj; | |
10424 | fail: | |
10425 | return NULL; | |
10426 | } | |
10427 | ||
10428 | ||
10429 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10430 | PyObject *resultobj; | |
10431 | wxImage *arg1 = (wxImage *) 0 ; | |
10432 | unsigned char result; | |
10433 | PyObject * obj0 = 0 ; | |
10434 | char *kwnames[] = { | |
10435 | (char *) "self", NULL | |
10436 | }; | |
10437 | ||
10438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
10439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10441 | { | |
10442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10443 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10444 | ||
10445 | wxPyEndAllowThreads(__tstate); | |
10446 | if (PyErr_Occurred()) SWIG_fail; | |
10447 | } | |
10448 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
10449 | return resultobj; | |
10450 | fail: | |
10451 | return NULL; | |
10452 | } | |
10453 | ||
10454 | ||
10455 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10456 | PyObject *resultobj; | |
10457 | wxImage *arg1 = (wxImage *) 0 ; | |
10458 | unsigned char result; | |
10459 | PyObject * obj0 = 0 ; | |
10460 | char *kwnames[] = { | |
10461 | (char *) "self", NULL | |
10462 | }; | |
10463 | ||
10464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
10465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10467 | { | |
10468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10469 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10470 | ||
10471 | wxPyEndAllowThreads(__tstate); | |
10472 | if (PyErr_Occurred()) SWIG_fail; | |
10473 | } | |
10474 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
10475 | return resultobj; | |
10476 | fail: | |
10477 | return NULL; | |
10478 | } | |
10479 | ||
10480 | ||
10481 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10482 | PyObject *resultobj; | |
10483 | wxImage *arg1 = (wxImage *) 0 ; | |
10484 | unsigned char result; | |
10485 | PyObject * obj0 = 0 ; | |
10486 | char *kwnames[] = { | |
10487 | (char *) "self", NULL | |
10488 | }; | |
10489 | ||
10490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
10491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10493 | { | |
10494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10495 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10496 | ||
10497 | wxPyEndAllowThreads(__tstate); | |
10498 | if (PyErr_Occurred()) SWIG_fail; | |
10499 | } | |
10500 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
10501 | return resultobj; | |
10502 | fail: | |
10503 | return NULL; | |
10504 | } | |
10505 | ||
10506 | ||
10507 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10508 | PyObject *resultobj; | |
10509 | wxImage *arg1 = (wxImage *) 0 ; | |
10510 | bool arg2 = (bool) True ; | |
10511 | PyObject * obj0 = 0 ; | |
10512 | PyObject * obj1 = 0 ; | |
10513 | char *kwnames[] = { | |
10514 | (char *) "self",(char *) "mask", NULL | |
10515 | }; | |
10516 | ||
10517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
10518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10520 | if (obj1) { | |
10521 | arg2 = (bool) SWIG_AsBool(obj1); | |
10522 | if (PyErr_Occurred()) SWIG_fail; | |
10523 | } | |
10524 | { | |
10525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10526 | (arg1)->SetMask(arg2); | |
10527 | ||
10528 | wxPyEndAllowThreads(__tstate); | |
10529 | if (PyErr_Occurred()) SWIG_fail; | |
10530 | } | |
10531 | Py_INCREF(Py_None); resultobj = Py_None; | |
10532 | return resultobj; | |
10533 | fail: | |
10534 | return NULL; | |
10535 | } | |
10536 | ||
10537 | ||
10538 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10539 | PyObject *resultobj; | |
10540 | wxImage *arg1 = (wxImage *) 0 ; | |
10541 | bool result; | |
10542 | PyObject * obj0 = 0 ; | |
10543 | char *kwnames[] = { | |
10544 | (char *) "self", NULL | |
10545 | }; | |
10546 | ||
10547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
10548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10550 | { | |
10551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10552 | result = (bool)(arg1)->HasMask(); | |
10553 | ||
10554 | wxPyEndAllowThreads(__tstate); | |
10555 | if (PyErr_Occurred()) SWIG_fail; | |
10556 | } | |
10557 | { | |
10558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10559 | } | |
10560 | return resultobj; | |
10561 | fail: | |
10562 | return NULL; | |
10563 | } | |
10564 | ||
10565 | ||
10566 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10567 | PyObject *resultobj; | |
10568 | wxImage *arg1 = (wxImage *) 0 ; | |
10569 | double arg2 ; | |
10570 | wxPoint *arg3 = 0 ; | |
10571 | bool arg4 = (bool) True ; | |
10572 | wxPoint *arg5 = (wxPoint *) NULL ; | |
10573 | SwigValueWrapper< wxImage > result; | |
10574 | wxPoint temp3 ; | |
10575 | PyObject * obj0 = 0 ; | |
10576 | PyObject * obj1 = 0 ; | |
10577 | PyObject * obj2 = 0 ; | |
10578 | PyObject * obj3 = 0 ; | |
10579 | PyObject * obj4 = 0 ; | |
10580 | char *kwnames[] = { | |
10581 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10582 | }; | |
10583 | ||
10584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
10585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10587 | arg2 = (double) SWIG_AsDouble(obj1); | |
10588 | if (PyErr_Occurred()) SWIG_fail; | |
10589 | { | |
10590 | arg3 = &temp3; | |
10591 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10592 | } | |
10593 | if (obj3) { | |
10594 | arg4 = (bool) SWIG_AsBool(obj3); | |
10595 | if (PyErr_Occurred()) SWIG_fail; | |
10596 | } | |
10597 | if (obj4) { | |
10598 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, | |
10599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10600 | } | |
10601 | { | |
10602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10603 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10604 | ||
10605 | wxPyEndAllowThreads(__tstate); | |
10606 | if (PyErr_Occurred()) SWIG_fail; | |
10607 | } | |
10608 | { | |
10609 | wxImage * resultptr; | |
10610 | resultptr = new wxImage((wxImage &) result); | |
10611 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10612 | } | |
10613 | return resultobj; | |
10614 | fail: | |
10615 | return NULL; | |
10616 | } | |
10617 | ||
10618 | ||
10619 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10620 | PyObject *resultobj; | |
10621 | wxImage *arg1 = (wxImage *) 0 ; | |
10622 | bool arg2 = (bool) True ; | |
10623 | SwigValueWrapper< wxImage > result; | |
10624 | PyObject * obj0 = 0 ; | |
10625 | PyObject * obj1 = 0 ; | |
10626 | char *kwnames[] = { | |
10627 | (char *) "self",(char *) "clockwise", NULL | |
10628 | }; | |
10629 | ||
10630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
10631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10633 | if (obj1) { | |
10634 | arg2 = (bool) SWIG_AsBool(obj1); | |
10635 | if (PyErr_Occurred()) SWIG_fail; | |
10636 | } | |
10637 | { | |
10638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10639 | result = (arg1)->Rotate90(arg2); | |
10640 | ||
10641 | wxPyEndAllowThreads(__tstate); | |
10642 | if (PyErr_Occurred()) SWIG_fail; | |
10643 | } | |
10644 | { | |
10645 | wxImage * resultptr; | |
10646 | resultptr = new wxImage((wxImage &) result); | |
10647 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10648 | } | |
10649 | return resultobj; | |
10650 | fail: | |
10651 | return NULL; | |
10652 | } | |
10653 | ||
10654 | ||
10655 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10656 | PyObject *resultobj; | |
10657 | wxImage *arg1 = (wxImage *) 0 ; | |
10658 | bool arg2 = (bool) True ; | |
10659 | SwigValueWrapper< wxImage > result; | |
10660 | PyObject * obj0 = 0 ; | |
10661 | PyObject * obj1 = 0 ; | |
10662 | char *kwnames[] = { | |
10663 | (char *) "self",(char *) "horizontally", NULL | |
10664 | }; | |
10665 | ||
10666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
10667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10669 | if (obj1) { | |
10670 | arg2 = (bool) SWIG_AsBool(obj1); | |
10671 | if (PyErr_Occurred()) SWIG_fail; | |
10672 | } | |
10673 | { | |
10674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10675 | result = (arg1)->Mirror(arg2); | |
10676 | ||
10677 | wxPyEndAllowThreads(__tstate); | |
10678 | if (PyErr_Occurred()) SWIG_fail; | |
10679 | } | |
10680 | { | |
10681 | wxImage * resultptr; | |
10682 | resultptr = new wxImage((wxImage &) result); | |
10683 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10684 | } | |
10685 | return resultobj; | |
10686 | fail: | |
10687 | return NULL; | |
10688 | } | |
10689 | ||
10690 | ||
10691 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10692 | PyObject *resultobj; | |
10693 | wxImage *arg1 = (wxImage *) 0 ; | |
10694 | unsigned char arg2 ; | |
10695 | unsigned char arg3 ; | |
10696 | unsigned char arg4 ; | |
10697 | unsigned char arg5 ; | |
10698 | unsigned char arg6 ; | |
10699 | unsigned char arg7 ; | |
10700 | PyObject * obj0 = 0 ; | |
10701 | PyObject * obj1 = 0 ; | |
10702 | PyObject * obj2 = 0 ; | |
10703 | PyObject * obj3 = 0 ; | |
10704 | PyObject * obj4 = 0 ; | |
10705 | PyObject * obj5 = 0 ; | |
10706 | PyObject * obj6 = 0 ; | |
10707 | char *kwnames[] = { | |
10708 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10709 | }; | |
10710 | ||
10711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10714 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10715 | if (PyErr_Occurred()) SWIG_fail; | |
10716 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10717 | if (PyErr_Occurred()) SWIG_fail; | |
10718 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10719 | if (PyErr_Occurred()) SWIG_fail; | |
10720 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
10721 | if (PyErr_Occurred()) SWIG_fail; | |
10722 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
10723 | if (PyErr_Occurred()) SWIG_fail; | |
10724 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); | |
10725 | if (PyErr_Occurred()) SWIG_fail; | |
10726 | { | |
10727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10728 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10729 | ||
10730 | wxPyEndAllowThreads(__tstate); | |
10731 | if (PyErr_Occurred()) SWIG_fail; | |
10732 | } | |
10733 | Py_INCREF(Py_None); resultobj = Py_None; | |
10734 | return resultobj; | |
10735 | fail: | |
10736 | return NULL; | |
10737 | } | |
10738 | ||
10739 | ||
10740 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10741 | PyObject *resultobj; | |
10742 | wxImage *arg1 = (wxImage *) 0 ; | |
10743 | unsigned char arg2 ; | |
10744 | unsigned char arg3 ; | |
10745 | unsigned char arg4 ; | |
10746 | SwigValueWrapper< wxImage > result; | |
10747 | PyObject * obj0 = 0 ; | |
10748 | PyObject * obj1 = 0 ; | |
10749 | PyObject * obj2 = 0 ; | |
10750 | PyObject * obj3 = 0 ; | |
10751 | char *kwnames[] = { | |
10752 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10753 | }; | |
10754 | ||
10755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10758 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10759 | if (PyErr_Occurred()) SWIG_fail; | |
10760 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10761 | if (PyErr_Occurred()) SWIG_fail; | |
10762 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10763 | if (PyErr_Occurred()) SWIG_fail; | |
10764 | { | |
10765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10766 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10767 | ||
10768 | wxPyEndAllowThreads(__tstate); | |
10769 | if (PyErr_Occurred()) SWIG_fail; | |
10770 | } | |
10771 | { | |
10772 | wxImage * resultptr; | |
10773 | resultptr = new wxImage((wxImage &) result); | |
10774 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10775 | } | |
10776 | return resultobj; | |
10777 | fail: | |
10778 | return NULL; | |
10779 | } | |
10780 | ||
10781 | ||
10782 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10783 | PyObject *resultobj; | |
10784 | wxImage *arg1 = (wxImage *) 0 ; | |
10785 | wxString *arg2 = 0 ; | |
10786 | wxString *arg3 = 0 ; | |
10787 | bool temp2 = False ; | |
10788 | bool temp3 = False ; | |
10789 | PyObject * obj0 = 0 ; | |
10790 | PyObject * obj1 = 0 ; | |
10791 | PyObject * obj2 = 0 ; | |
10792 | char *kwnames[] = { | |
10793 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10794 | }; | |
10795 | ||
10796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10799 | { | |
10800 | arg2 = wxString_in_helper(obj1); | |
10801 | if (arg2 == NULL) SWIG_fail; | |
10802 | temp2 = True; | |
10803 | } | |
10804 | { | |
10805 | arg3 = wxString_in_helper(obj2); | |
10806 | if (arg3 == NULL) SWIG_fail; | |
10807 | temp3 = True; | |
10808 | } | |
10809 | { | |
10810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10811 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10812 | ||
10813 | wxPyEndAllowThreads(__tstate); | |
10814 | if (PyErr_Occurred()) SWIG_fail; | |
10815 | } | |
10816 | Py_INCREF(Py_None); resultobj = Py_None; | |
10817 | { | |
10818 | if (temp2) | |
10819 | delete arg2; | |
10820 | } | |
10821 | { | |
10822 | if (temp3) | |
10823 | delete arg3; | |
10824 | } | |
10825 | return resultobj; | |
10826 | fail: | |
10827 | { | |
10828 | if (temp2) | |
10829 | delete arg2; | |
10830 | } | |
10831 | { | |
10832 | if (temp3) | |
10833 | delete arg3; | |
10834 | } | |
10835 | return NULL; | |
10836 | } | |
10837 | ||
10838 | ||
10839 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10840 | PyObject *resultobj; | |
10841 | wxImage *arg1 = (wxImage *) 0 ; | |
10842 | wxString *arg2 = 0 ; | |
10843 | int arg3 ; | |
10844 | bool temp2 = False ; | |
10845 | PyObject * obj0 = 0 ; | |
10846 | PyObject * obj1 = 0 ; | |
10847 | PyObject * obj2 = 0 ; | |
10848 | char *kwnames[] = { | |
10849 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10850 | }; | |
10851 | ||
10852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10855 | { | |
10856 | arg2 = wxString_in_helper(obj1); | |
10857 | if (arg2 == NULL) SWIG_fail; | |
10858 | temp2 = True; | |
10859 | } | |
10860 | arg3 = (int) SWIG_AsInt(obj2); | |
10861 | if (PyErr_Occurred()) SWIG_fail; | |
10862 | { | |
10863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10864 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10865 | ||
10866 | wxPyEndAllowThreads(__tstate); | |
10867 | if (PyErr_Occurred()) SWIG_fail; | |
10868 | } | |
10869 | Py_INCREF(Py_None); resultobj = Py_None; | |
10870 | { | |
10871 | if (temp2) | |
10872 | delete arg2; | |
10873 | } | |
10874 | return resultobj; | |
10875 | fail: | |
10876 | { | |
10877 | if (temp2) | |
10878 | delete arg2; | |
10879 | } | |
10880 | return NULL; | |
10881 | } | |
10882 | ||
10883 | ||
10884 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10885 | PyObject *resultobj; | |
10886 | wxImage *arg1 = (wxImage *) 0 ; | |
10887 | wxString *arg2 = 0 ; | |
10888 | wxString result; | |
10889 | bool temp2 = False ; | |
10890 | PyObject * obj0 = 0 ; | |
10891 | PyObject * obj1 = 0 ; | |
10892 | char *kwnames[] = { | |
10893 | (char *) "self",(char *) "name", NULL | |
10894 | }; | |
10895 | ||
10896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
10897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10899 | { | |
10900 | arg2 = wxString_in_helper(obj1); | |
10901 | if (arg2 == NULL) SWIG_fail; | |
10902 | temp2 = True; | |
10903 | } | |
10904 | { | |
10905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10906 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10907 | ||
10908 | wxPyEndAllowThreads(__tstate); | |
10909 | if (PyErr_Occurred()) SWIG_fail; | |
10910 | } | |
10911 | { | |
10912 | #if wxUSE_UNICODE | |
10913 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10914 | #else | |
10915 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10916 | #endif | |
10917 | } | |
10918 | { | |
10919 | if (temp2) | |
10920 | delete arg2; | |
10921 | } | |
10922 | return resultobj; | |
10923 | fail: | |
10924 | { | |
10925 | if (temp2) | |
10926 | delete arg2; | |
10927 | } | |
10928 | return NULL; | |
10929 | } | |
10930 | ||
10931 | ||
10932 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10933 | PyObject *resultobj; | |
10934 | wxImage *arg1 = (wxImage *) 0 ; | |
10935 | wxString *arg2 = 0 ; | |
10936 | int result; | |
10937 | bool temp2 = False ; | |
10938 | PyObject * obj0 = 0 ; | |
10939 | PyObject * obj1 = 0 ; | |
10940 | char *kwnames[] = { | |
10941 | (char *) "self",(char *) "name", NULL | |
10942 | }; | |
10943 | ||
10944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
10945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10947 | { | |
10948 | arg2 = wxString_in_helper(obj1); | |
10949 | if (arg2 == NULL) SWIG_fail; | |
10950 | temp2 = True; | |
10951 | } | |
10952 | { | |
10953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10954 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
10955 | ||
10956 | wxPyEndAllowThreads(__tstate); | |
10957 | if (PyErr_Occurred()) SWIG_fail; | |
10958 | } | |
10959 | resultobj = SWIG_FromInt((int)result); | |
10960 | { | |
10961 | if (temp2) | |
10962 | delete arg2; | |
10963 | } | |
10964 | return resultobj; | |
10965 | fail: | |
10966 | { | |
10967 | if (temp2) | |
10968 | delete arg2; | |
10969 | } | |
10970 | return NULL; | |
10971 | } | |
10972 | ||
10973 | ||
10974 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10975 | PyObject *resultobj; | |
10976 | wxImage *arg1 = (wxImage *) 0 ; | |
10977 | wxString *arg2 = 0 ; | |
10978 | bool result; | |
10979 | bool temp2 = False ; | |
10980 | PyObject * obj0 = 0 ; | |
10981 | PyObject * obj1 = 0 ; | |
10982 | char *kwnames[] = { | |
10983 | (char *) "self",(char *) "name", NULL | |
10984 | }; | |
10985 | ||
10986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
10987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10989 | { | |
10990 | arg2 = wxString_in_helper(obj1); | |
10991 | if (arg2 == NULL) SWIG_fail; | |
10992 | temp2 = True; | |
10993 | } | |
10994 | { | |
10995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10996 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
10997 | ||
10998 | wxPyEndAllowThreads(__tstate); | |
10999 | if (PyErr_Occurred()) SWIG_fail; | |
11000 | } | |
11001 | { | |
11002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11003 | } | |
11004 | { | |
11005 | if (temp2) | |
11006 | delete arg2; | |
11007 | } | |
11008 | return resultobj; | |
11009 | fail: | |
11010 | { | |
11011 | if (temp2) | |
11012 | delete arg2; | |
11013 | } | |
11014 | return NULL; | |
11015 | } | |
11016 | ||
11017 | ||
11018 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11019 | PyObject *resultobj; | |
11020 | wxImage *arg1 = (wxImage *) 0 ; | |
11021 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11022 | unsigned long result; | |
11023 | PyObject * obj0 = 0 ; | |
11024 | PyObject * obj1 = 0 ; | |
11025 | char *kwnames[] = { | |
11026 | (char *) "self",(char *) "stopafter", NULL | |
11027 | }; | |
11028 | ||
11029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
11030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11032 | if (obj1) { | |
11033 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
11034 | if (PyErr_Occurred()) SWIG_fail; | |
11035 | } | |
11036 | { | |
11037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11038 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11039 | ||
11040 | wxPyEndAllowThreads(__tstate); | |
11041 | if (PyErr_Occurred()) SWIG_fail; | |
11042 | } | |
11043 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
11044 | return resultobj; | |
11045 | fail: | |
11046 | return NULL; | |
11047 | } | |
11048 | ||
11049 | ||
11050 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11051 | PyObject *resultobj; | |
11052 | wxImage *arg1 = (wxImage *) 0 ; | |
11053 | wxImageHistogram *arg2 = 0 ; | |
11054 | unsigned long result; | |
11055 | PyObject * obj0 = 0 ; | |
11056 | PyObject * obj1 = 0 ; | |
11057 | char *kwnames[] = { | |
11058 | (char *) "self",(char *) "h", NULL | |
11059 | }; | |
11060 | ||
11061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
11062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11064 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11065 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11066 | SWIG_fail; | |
11067 | if (arg2 == NULL) { | |
11068 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11069 | SWIG_fail; | |
11070 | } | |
11071 | { | |
11072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11073 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11074 | ||
11075 | wxPyEndAllowThreads(__tstate); | |
11076 | if (PyErr_Occurred()) SWIG_fail; | |
11077 | } | |
11078 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
11079 | return resultobj; | |
11080 | fail: | |
11081 | return NULL; | |
11082 | } | |
11083 | ||
11084 | ||
11085 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11086 | PyObject *resultobj; | |
11087 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11088 | PyObject * obj0 = 0 ; | |
11089 | char *kwnames[] = { | |
11090 | (char *) "handler", NULL | |
11091 | }; | |
11092 | ||
11093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
11094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11096 | { | |
11097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11098 | wxImage::AddHandler(arg1); | |
11099 | ||
11100 | wxPyEndAllowThreads(__tstate); | |
11101 | if (PyErr_Occurred()) SWIG_fail; | |
11102 | } | |
11103 | Py_INCREF(Py_None); resultobj = Py_None; | |
11104 | return resultobj; | |
11105 | fail: | |
11106 | return NULL; | |
11107 | } | |
11108 | ||
11109 | ||
11110 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11111 | PyObject *resultobj; | |
11112 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11113 | PyObject * obj0 = 0 ; | |
11114 | char *kwnames[] = { | |
11115 | (char *) "handler", NULL | |
11116 | }; | |
11117 | ||
11118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
11119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11121 | { | |
11122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11123 | wxImage::InsertHandler(arg1); | |
11124 | ||
11125 | wxPyEndAllowThreads(__tstate); | |
11126 | if (PyErr_Occurred()) SWIG_fail; | |
11127 | } | |
11128 | Py_INCREF(Py_None); resultobj = Py_None; | |
11129 | return resultobj; | |
11130 | fail: | |
11131 | return NULL; | |
11132 | } | |
11133 | ||
11134 | ||
11135 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11136 | PyObject *resultobj; | |
11137 | wxString *arg1 = 0 ; | |
11138 | bool result; | |
11139 | bool temp1 = False ; | |
11140 | PyObject * obj0 = 0 ; | |
11141 | char *kwnames[] = { | |
11142 | (char *) "name", NULL | |
11143 | }; | |
11144 | ||
11145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11146 | { | |
11147 | arg1 = wxString_in_helper(obj0); | |
11148 | if (arg1 == NULL) SWIG_fail; | |
11149 | temp1 = True; | |
11150 | } | |
11151 | { | |
11152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11153 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11154 | ||
11155 | wxPyEndAllowThreads(__tstate); | |
11156 | if (PyErr_Occurred()) SWIG_fail; | |
11157 | } | |
11158 | { | |
11159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11160 | } | |
11161 | { | |
11162 | if (temp1) | |
11163 | delete arg1; | |
11164 | } | |
11165 | return resultobj; | |
11166 | fail: | |
11167 | { | |
11168 | if (temp1) | |
11169 | delete arg1; | |
11170 | } | |
11171 | return NULL; | |
11172 | } | |
11173 | ||
11174 | ||
11175 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11176 | PyObject *resultobj; | |
11177 | wxString result; | |
11178 | char *kwnames[] = { | |
11179 | NULL | |
11180 | }; | |
11181 | ||
11182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11183 | { | |
11184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11185 | result = wxImage::GetImageExtWildcard(); | |
11186 | ||
11187 | wxPyEndAllowThreads(__tstate); | |
11188 | if (PyErr_Occurred()) SWIG_fail; | |
11189 | } | |
11190 | { | |
11191 | #if wxUSE_UNICODE | |
11192 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11193 | #else | |
11194 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11195 | #endif | |
11196 | } | |
11197 | return resultobj; | |
11198 | fail: | |
11199 | return NULL; | |
11200 | } | |
11201 | ||
11202 | ||
11203 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11204 | PyObject *resultobj; | |
11205 | wxImage *arg1 = (wxImage *) 0 ; | |
11206 | wxBitmap result; | |
11207 | PyObject * obj0 = 0 ; | |
11208 | char *kwnames[] = { | |
11209 | (char *) "self", NULL | |
11210 | }; | |
11211 | ||
11212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
11213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11215 | { | |
0439c23b | 11216 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11218 | result = wxImage_ConvertToBitmap(arg1); | |
11219 | ||
11220 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11221 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11222 | } |
11223 | { | |
11224 | wxBitmap * resultptr; | |
11225 | resultptr = new wxBitmap((wxBitmap &) result); | |
11226 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11227 | } | |
11228 | return resultobj; | |
11229 | fail: | |
11230 | return NULL; | |
11231 | } | |
11232 | ||
11233 | ||
11234 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11235 | PyObject *resultobj; | |
11236 | wxImage *arg1 = (wxImage *) 0 ; | |
11237 | unsigned char arg2 ; | |
11238 | unsigned char arg3 ; | |
11239 | unsigned char arg4 ; | |
11240 | wxBitmap result; | |
11241 | PyObject * obj0 = 0 ; | |
11242 | PyObject * obj1 = 0 ; | |
11243 | PyObject * obj2 = 0 ; | |
11244 | PyObject * obj3 = 0 ; | |
11245 | char *kwnames[] = { | |
11246 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11247 | }; | |
11248 | ||
11249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11252 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
11253 | if (PyErr_Occurred()) SWIG_fail; | |
11254 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
11255 | if (PyErr_Occurred()) SWIG_fail; | |
11256 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
11257 | if (PyErr_Occurred()) SWIG_fail; | |
11258 | { | |
0439c23b | 11259 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11261 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11262 | ||
11263 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11264 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11265 | } |
11266 | { | |
11267 | wxBitmap * resultptr; | |
11268 | resultptr = new wxBitmap((wxBitmap &) result); | |
11269 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11270 | } | |
11271 | return resultobj; | |
11272 | fail: | |
11273 | return NULL; | |
11274 | } | |
11275 | ||
11276 | ||
11277 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
11278 | PyObject *obj; | |
11279 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11280 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11281 | Py_INCREF(obj); | |
11282 | return Py_BuildValue((char *)""); | |
11283 | } | |
d55e5bfc RD |
11284 | static int _wrap_NullImage_set(PyObject *_val) { |
11285 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); | |
11286 | return 1; | |
11287 | } | |
11288 | ||
11289 | ||
11290 | static PyObject *_wrap_NullImage_get() { | |
11291 | PyObject *pyobj; | |
11292 | ||
11293 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); | |
11294 | return pyobj; | |
11295 | } | |
11296 | ||
11297 | ||
11298 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { | |
11299 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); | |
11300 | return 1; | |
11301 | } | |
11302 | ||
11303 | ||
11304 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11305 | PyObject *pyobj; | |
11306 | ||
11307 | { | |
11308 | #if wxUSE_UNICODE | |
11309 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11310 | #else | |
11311 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11312 | #endif | |
11313 | } | |
11314 | return pyobj; | |
11315 | } | |
11316 | ||
11317 | ||
11318 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { | |
11319 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); | |
11320 | return 1; | |
11321 | } | |
11322 | ||
11323 | ||
11324 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11325 | PyObject *pyobj; | |
11326 | ||
11327 | { | |
11328 | #if wxUSE_UNICODE | |
11329 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11330 | #else | |
11331 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11332 | #endif | |
11333 | } | |
11334 | return pyobj; | |
11335 | } | |
11336 | ||
11337 | ||
11338 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { | |
11339 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); | |
11340 | return 1; | |
11341 | } | |
11342 | ||
11343 | ||
11344 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11345 | PyObject *pyobj; | |
11346 | ||
11347 | { | |
11348 | #if wxUSE_UNICODE | |
11349 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11350 | #else | |
11351 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11352 | #endif | |
11353 | } | |
11354 | return pyobj; | |
11355 | } | |
11356 | ||
11357 | ||
11358 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { | |
11359 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); | |
11360 | return 1; | |
11361 | } | |
11362 | ||
11363 | ||
11364 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11365 | PyObject *pyobj; | |
11366 | ||
11367 | { | |
11368 | #if wxUSE_UNICODE | |
11369 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11370 | #else | |
11371 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11372 | #endif | |
11373 | } | |
11374 | return pyobj; | |
11375 | } | |
11376 | ||
11377 | ||
11378 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { | |
11379 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); | |
11380 | return 1; | |
11381 | } | |
11382 | ||
11383 | ||
11384 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11385 | PyObject *pyobj; | |
11386 | ||
11387 | { | |
11388 | #if wxUSE_UNICODE | |
11389 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11390 | #else | |
11391 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11392 | #endif | |
11393 | } | |
11394 | return pyobj; | |
11395 | } | |
11396 | ||
11397 | ||
11398 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11399 | PyObject *resultobj; | |
11400 | wxBMPHandler *result; | |
11401 | char *kwnames[] = { | |
11402 | NULL | |
11403 | }; | |
11404 | ||
11405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11406 | { | |
11407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11408 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11409 | ||
11410 | wxPyEndAllowThreads(__tstate); | |
11411 | if (PyErr_Occurred()) SWIG_fail; | |
11412 | } | |
11413 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); | |
11414 | return resultobj; | |
11415 | fail: | |
11416 | return NULL; | |
11417 | } | |
11418 | ||
11419 | ||
11420 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11421 | PyObject *obj; | |
11422 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11423 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11424 | Py_INCREF(obj); | |
11425 | return Py_BuildValue((char *)""); | |
11426 | } | |
11427 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11428 | PyObject *resultobj; | |
11429 | wxICOHandler *result; | |
11430 | char *kwnames[] = { | |
11431 | NULL | |
11432 | }; | |
11433 | ||
11434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11435 | { | |
11436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11437 | result = (wxICOHandler *)new wxICOHandler(); | |
11438 | ||
11439 | wxPyEndAllowThreads(__tstate); | |
11440 | if (PyErr_Occurred()) SWIG_fail; | |
11441 | } | |
11442 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); | |
11443 | return resultobj; | |
11444 | fail: | |
11445 | return NULL; | |
11446 | } | |
11447 | ||
11448 | ||
11449 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11450 | PyObject *obj; | |
11451 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11452 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11453 | Py_INCREF(obj); | |
11454 | return Py_BuildValue((char *)""); | |
11455 | } | |
11456 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11457 | PyObject *resultobj; | |
11458 | wxCURHandler *result; | |
11459 | char *kwnames[] = { | |
11460 | NULL | |
11461 | }; | |
11462 | ||
11463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11464 | { | |
11465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11466 | result = (wxCURHandler *)new wxCURHandler(); | |
11467 | ||
11468 | wxPyEndAllowThreads(__tstate); | |
11469 | if (PyErr_Occurred()) SWIG_fail; | |
11470 | } | |
11471 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); | |
11472 | return resultobj; | |
11473 | fail: | |
11474 | return NULL; | |
11475 | } | |
11476 | ||
11477 | ||
11478 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11479 | PyObject *obj; | |
11480 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11481 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11482 | Py_INCREF(obj); | |
11483 | return Py_BuildValue((char *)""); | |
11484 | } | |
11485 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11486 | PyObject *resultobj; | |
11487 | wxANIHandler *result; | |
11488 | char *kwnames[] = { | |
11489 | NULL | |
11490 | }; | |
11491 | ||
11492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11493 | { | |
11494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11495 | result = (wxANIHandler *)new wxANIHandler(); | |
11496 | ||
11497 | wxPyEndAllowThreads(__tstate); | |
11498 | if (PyErr_Occurred()) SWIG_fail; | |
11499 | } | |
11500 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); | |
11501 | return resultobj; | |
11502 | fail: | |
11503 | return NULL; | |
11504 | } | |
11505 | ||
11506 | ||
11507 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11508 | PyObject *obj; | |
11509 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11510 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11511 | Py_INCREF(obj); | |
11512 | return Py_BuildValue((char *)""); | |
11513 | } | |
11514 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11515 | PyObject *resultobj; | |
11516 | wxPNGHandler *result; | |
11517 | char *kwnames[] = { | |
11518 | NULL | |
11519 | }; | |
11520 | ||
11521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11522 | { | |
11523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11524 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11525 | ||
11526 | wxPyEndAllowThreads(__tstate); | |
11527 | if (PyErr_Occurred()) SWIG_fail; | |
11528 | } | |
11529 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); | |
11530 | return resultobj; | |
11531 | fail: | |
11532 | return NULL; | |
11533 | } | |
11534 | ||
11535 | ||
11536 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11537 | PyObject *obj; | |
11538 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11539 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11540 | Py_INCREF(obj); | |
11541 | return Py_BuildValue((char *)""); | |
11542 | } | |
11543 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11544 | PyObject *resultobj; | |
11545 | wxGIFHandler *result; | |
11546 | char *kwnames[] = { | |
11547 | NULL | |
11548 | }; | |
11549 | ||
11550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11551 | { | |
11552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11553 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11554 | ||
11555 | wxPyEndAllowThreads(__tstate); | |
11556 | if (PyErr_Occurred()) SWIG_fail; | |
11557 | } | |
11558 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); | |
11559 | return resultobj; | |
11560 | fail: | |
11561 | return NULL; | |
11562 | } | |
11563 | ||
11564 | ||
11565 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11566 | PyObject *obj; | |
11567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11568 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11569 | Py_INCREF(obj); | |
11570 | return Py_BuildValue((char *)""); | |
11571 | } | |
11572 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11573 | PyObject *resultobj; | |
11574 | wxPCXHandler *result; | |
11575 | char *kwnames[] = { | |
11576 | NULL | |
11577 | }; | |
11578 | ||
11579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11580 | { | |
11581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11582 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11583 | ||
11584 | wxPyEndAllowThreads(__tstate); | |
11585 | if (PyErr_Occurred()) SWIG_fail; | |
11586 | } | |
11587 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); | |
11588 | return resultobj; | |
11589 | fail: | |
11590 | return NULL; | |
11591 | } | |
11592 | ||
11593 | ||
11594 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11595 | PyObject *obj; | |
11596 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11597 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11598 | Py_INCREF(obj); | |
11599 | return Py_BuildValue((char *)""); | |
11600 | } | |
11601 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11602 | PyObject *resultobj; | |
11603 | wxJPEGHandler *result; | |
11604 | char *kwnames[] = { | |
11605 | NULL | |
11606 | }; | |
11607 | ||
11608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11609 | { | |
11610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11611 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11612 | ||
11613 | wxPyEndAllowThreads(__tstate); | |
11614 | if (PyErr_Occurred()) SWIG_fail; | |
11615 | } | |
11616 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); | |
11617 | return resultobj; | |
11618 | fail: | |
11619 | return NULL; | |
11620 | } | |
11621 | ||
11622 | ||
11623 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11624 | PyObject *obj; | |
11625 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11626 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11627 | Py_INCREF(obj); | |
11628 | return Py_BuildValue((char *)""); | |
11629 | } | |
11630 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11631 | PyObject *resultobj; | |
11632 | wxPNMHandler *result; | |
11633 | char *kwnames[] = { | |
11634 | NULL | |
11635 | }; | |
11636 | ||
11637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11638 | { | |
11639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11640 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11641 | ||
11642 | wxPyEndAllowThreads(__tstate); | |
11643 | if (PyErr_Occurred()) SWIG_fail; | |
11644 | } | |
11645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); | |
11646 | return resultobj; | |
11647 | fail: | |
11648 | return NULL; | |
11649 | } | |
11650 | ||
11651 | ||
11652 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11653 | PyObject *obj; | |
11654 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11655 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11656 | Py_INCREF(obj); | |
11657 | return Py_BuildValue((char *)""); | |
11658 | } | |
11659 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11660 | PyObject *resultobj; | |
11661 | wxXPMHandler *result; | |
11662 | char *kwnames[] = { | |
11663 | NULL | |
11664 | }; | |
11665 | ||
11666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11667 | { | |
11668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11669 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11670 | ||
11671 | wxPyEndAllowThreads(__tstate); | |
11672 | if (PyErr_Occurred()) SWIG_fail; | |
11673 | } | |
11674 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); | |
11675 | return resultobj; | |
11676 | fail: | |
11677 | return NULL; | |
11678 | } | |
11679 | ||
11680 | ||
11681 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11682 | PyObject *obj; | |
11683 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11684 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11685 | Py_INCREF(obj); | |
11686 | return Py_BuildValue((char *)""); | |
11687 | } | |
11688 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11689 | PyObject *resultobj; | |
11690 | wxTIFFHandler *result; | |
11691 | char *kwnames[] = { | |
11692 | NULL | |
11693 | }; | |
11694 | ||
11695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11696 | { | |
11697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11698 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11699 | ||
11700 | wxPyEndAllowThreads(__tstate); | |
11701 | if (PyErr_Occurred()) SWIG_fail; | |
11702 | } | |
11703 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); | |
11704 | return resultobj; | |
11705 | fail: | |
11706 | return NULL; | |
11707 | } | |
11708 | ||
11709 | ||
11710 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11711 | PyObject *obj; | |
11712 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11713 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11714 | Py_INCREF(obj); | |
11715 | return Py_BuildValue((char *)""); | |
11716 | } | |
11717 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11718 | PyObject *resultobj; | |
11719 | wxEvtHandler *result; | |
11720 | char *kwnames[] = { | |
11721 | NULL | |
11722 | }; | |
11723 | ||
11724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11725 | { | |
11726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11727 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11728 | ||
11729 | wxPyEndAllowThreads(__tstate); | |
11730 | if (PyErr_Occurred()) SWIG_fail; | |
11731 | } | |
11732 | { | |
11733 | resultobj = wxPyMake_wxObject(result); | |
11734 | } | |
11735 | return resultobj; | |
11736 | fail: | |
11737 | return NULL; | |
11738 | } | |
11739 | ||
11740 | ||
11741 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11742 | PyObject *resultobj; | |
11743 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11744 | wxEvtHandler *result; | |
11745 | PyObject * obj0 = 0 ; | |
11746 | char *kwnames[] = { | |
11747 | (char *) "self", NULL | |
11748 | }; | |
11749 | ||
11750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
11751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11753 | { | |
11754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11755 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11756 | ||
11757 | wxPyEndAllowThreads(__tstate); | |
11758 | if (PyErr_Occurred()) SWIG_fail; | |
11759 | } | |
11760 | { | |
11761 | resultobj = wxPyMake_wxObject(result); | |
11762 | } | |
11763 | return resultobj; | |
11764 | fail: | |
11765 | return NULL; | |
11766 | } | |
11767 | ||
11768 | ||
11769 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11770 | PyObject *resultobj; | |
11771 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11772 | wxEvtHandler *result; | |
11773 | PyObject * obj0 = 0 ; | |
11774 | char *kwnames[] = { | |
11775 | (char *) "self", NULL | |
11776 | }; | |
11777 | ||
11778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
11779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11781 | { | |
11782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11783 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11784 | ||
11785 | wxPyEndAllowThreads(__tstate); | |
11786 | if (PyErr_Occurred()) SWIG_fail; | |
11787 | } | |
11788 | { | |
11789 | resultobj = wxPyMake_wxObject(result); | |
11790 | } | |
11791 | return resultobj; | |
11792 | fail: | |
11793 | return NULL; | |
11794 | } | |
11795 | ||
11796 | ||
11797 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11798 | PyObject *resultobj; | |
11799 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11800 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11801 | PyObject * obj0 = 0 ; | |
11802 | PyObject * obj1 = 0 ; | |
11803 | char *kwnames[] = { | |
11804 | (char *) "self",(char *) "handler", NULL | |
11805 | }; | |
11806 | ||
11807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
11808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11810 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11812 | { | |
11813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11814 | (arg1)->SetNextHandler(arg2); | |
11815 | ||
11816 | wxPyEndAllowThreads(__tstate); | |
11817 | if (PyErr_Occurred()) SWIG_fail; | |
11818 | } | |
11819 | Py_INCREF(Py_None); resultobj = Py_None; | |
11820 | return resultobj; | |
11821 | fail: | |
11822 | return NULL; | |
11823 | } | |
11824 | ||
11825 | ||
11826 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11827 | PyObject *resultobj; | |
11828 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11829 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11830 | PyObject * obj0 = 0 ; | |
11831 | PyObject * obj1 = 0 ; | |
11832 | char *kwnames[] = { | |
11833 | (char *) "self",(char *) "handler", NULL | |
11834 | }; | |
11835 | ||
11836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
11837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11839 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11841 | { | |
11842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11843 | (arg1)->SetPreviousHandler(arg2); | |
11844 | ||
11845 | wxPyEndAllowThreads(__tstate); | |
11846 | if (PyErr_Occurred()) SWIG_fail; | |
11847 | } | |
11848 | Py_INCREF(Py_None); resultobj = Py_None; | |
11849 | return resultobj; | |
11850 | fail: | |
11851 | return NULL; | |
11852 | } | |
11853 | ||
11854 | ||
11855 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11856 | PyObject *resultobj; | |
11857 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11858 | bool result; | |
11859 | PyObject * obj0 = 0 ; | |
11860 | char *kwnames[] = { | |
11861 | (char *) "self", NULL | |
11862 | }; | |
11863 | ||
11864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
11865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11867 | { | |
11868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11869 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11870 | ||
11871 | wxPyEndAllowThreads(__tstate); | |
11872 | if (PyErr_Occurred()) SWIG_fail; | |
11873 | } | |
11874 | { | |
11875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11876 | } | |
11877 | return resultobj; | |
11878 | fail: | |
11879 | return NULL; | |
11880 | } | |
11881 | ||
11882 | ||
11883 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11884 | PyObject *resultobj; | |
11885 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11886 | bool arg2 ; | |
11887 | PyObject * obj0 = 0 ; | |
11888 | PyObject * obj1 = 0 ; | |
11889 | char *kwnames[] = { | |
11890 | (char *) "self",(char *) "enabled", NULL | |
11891 | }; | |
11892 | ||
11893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
11894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11896 | arg2 = (bool) SWIG_AsBool(obj1); | |
11897 | if (PyErr_Occurred()) SWIG_fail; | |
11898 | { | |
11899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11900 | (arg1)->SetEvtHandlerEnabled(arg2); | |
11901 | ||
11902 | wxPyEndAllowThreads(__tstate); | |
11903 | if (PyErr_Occurred()) SWIG_fail; | |
11904 | } | |
11905 | Py_INCREF(Py_None); resultobj = Py_None; | |
11906 | return resultobj; | |
11907 | fail: | |
11908 | return NULL; | |
11909 | } | |
11910 | ||
11911 | ||
11912 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11913 | PyObject *resultobj; | |
11914 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11915 | wxEvent *arg2 = 0 ; | |
11916 | bool result; | |
11917 | PyObject * obj0 = 0 ; | |
11918 | PyObject * obj1 = 0 ; | |
11919 | char *kwnames[] = { | |
11920 | (char *) "self",(char *) "event", NULL | |
11921 | }; | |
11922 | ||
11923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
11924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11926 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11927 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11928 | SWIG_fail; | |
11929 | if (arg2 == NULL) { | |
11930 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11931 | SWIG_fail; | |
11932 | } | |
11933 | { | |
11934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11935 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
11936 | ||
11937 | wxPyEndAllowThreads(__tstate); | |
11938 | if (PyErr_Occurred()) SWIG_fail; | |
11939 | } | |
11940 | { | |
11941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11942 | } | |
11943 | return resultobj; | |
11944 | fail: | |
11945 | return NULL; | |
11946 | } | |
11947 | ||
11948 | ||
11949 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11950 | PyObject *resultobj; | |
11951 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11952 | wxEvent *arg2 = 0 ; | |
11953 | PyObject * obj0 = 0 ; | |
11954 | PyObject * obj1 = 0 ; | |
11955 | char *kwnames[] = { | |
11956 | (char *) "self",(char *) "event", NULL | |
11957 | }; | |
11958 | ||
11959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
11960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11962 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11963 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11964 | SWIG_fail; | |
11965 | if (arg2 == NULL) { | |
11966 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11967 | SWIG_fail; | |
11968 | } | |
11969 | { | |
11970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11971 | (arg1)->AddPendingEvent(*arg2); | |
11972 | ||
11973 | wxPyEndAllowThreads(__tstate); | |
11974 | if (PyErr_Occurred()) SWIG_fail; | |
11975 | } | |
11976 | Py_INCREF(Py_None); resultobj = Py_None; | |
11977 | return resultobj; | |
11978 | fail: | |
11979 | return NULL; | |
11980 | } | |
11981 | ||
11982 | ||
11983 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11984 | PyObject *resultobj; | |
11985 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11986 | PyObject * obj0 = 0 ; | |
11987 | char *kwnames[] = { | |
11988 | (char *) "self", NULL | |
11989 | }; | |
11990 | ||
11991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
11992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11994 | { | |
11995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11996 | (arg1)->ProcessPendingEvents(); | |
11997 | ||
11998 | wxPyEndAllowThreads(__tstate); | |
11999 | if (PyErr_Occurred()) SWIG_fail; | |
12000 | } | |
12001 | Py_INCREF(Py_None); resultobj = Py_None; | |
12002 | return resultobj; | |
12003 | fail: | |
12004 | return NULL; | |
12005 | } | |
12006 | ||
12007 | ||
12008 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12009 | PyObject *resultobj; | |
12010 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12011 | int arg2 ; | |
12012 | int arg3 ; | |
12013 | int arg4 ; | |
12014 | PyObject *arg5 = (PyObject *) 0 ; | |
12015 | PyObject * obj0 = 0 ; | |
12016 | PyObject * obj1 = 0 ; | |
12017 | PyObject * obj2 = 0 ; | |
12018 | PyObject * obj3 = 0 ; | |
12019 | PyObject * obj4 = 0 ; | |
12020 | char *kwnames[] = { | |
12021 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12022 | }; | |
12023 | ||
12024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12027 | arg2 = (int) SWIG_AsInt(obj1); | |
12028 | if (PyErr_Occurred()) SWIG_fail; | |
12029 | arg3 = (int) SWIG_AsInt(obj2); | |
12030 | if (PyErr_Occurred()) SWIG_fail; | |
12031 | arg4 = (int) SWIG_AsInt(obj3); | |
12032 | if (PyErr_Occurred()) SWIG_fail; | |
12033 | arg5 = obj4; | |
12034 | { | |
12035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12036 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12037 | ||
12038 | wxPyEndAllowThreads(__tstate); | |
12039 | if (PyErr_Occurred()) SWIG_fail; | |
12040 | } | |
12041 | Py_INCREF(Py_None); resultobj = Py_None; | |
12042 | return resultobj; | |
12043 | fail: | |
12044 | return NULL; | |
12045 | } | |
12046 | ||
12047 | ||
12048 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12049 | PyObject *resultobj; | |
12050 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12051 | int arg2 ; | |
12052 | int arg3 = (int) -1 ; | |
12053 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12054 | bool result; | |
12055 | PyObject * obj0 = 0 ; | |
12056 | PyObject * obj1 = 0 ; | |
12057 | PyObject * obj2 = 0 ; | |
12058 | PyObject * obj3 = 0 ; | |
12059 | char *kwnames[] = { | |
12060 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12061 | }; | |
12062 | ||
12063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12066 | arg2 = (int) SWIG_AsInt(obj1); | |
12067 | if (PyErr_Occurred()) SWIG_fail; | |
12068 | if (obj2) { | |
12069 | arg3 = (int) SWIG_AsInt(obj2); | |
12070 | if (PyErr_Occurred()) SWIG_fail; | |
12071 | } | |
12072 | if (obj3) { | |
12073 | arg4 = (wxEventType) SWIG_AsInt(obj3); | |
12074 | if (PyErr_Occurred()) SWIG_fail; | |
12075 | } | |
12076 | { | |
12077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12078 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12079 | ||
12080 | wxPyEndAllowThreads(__tstate); | |
12081 | if (PyErr_Occurred()) SWIG_fail; | |
12082 | } | |
12083 | { | |
12084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12085 | } | |
12086 | return resultobj; | |
12087 | fail: | |
12088 | return NULL; | |
12089 | } | |
12090 | ||
12091 | ||
12092 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12093 | PyObject *resultobj; | |
12094 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12095 | PyObject *arg2 = (PyObject *) 0 ; | |
12096 | PyObject * obj0 = 0 ; | |
12097 | PyObject * obj1 = 0 ; | |
12098 | char *kwnames[] = { | |
12099 | (char *) "self",(char *) "_self", NULL | |
12100 | }; | |
12101 | ||
12102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
12103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12105 | arg2 = obj1; | |
12106 | { | |
12107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12108 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12109 | ||
12110 | wxPyEndAllowThreads(__tstate); | |
12111 | if (PyErr_Occurred()) SWIG_fail; | |
12112 | } | |
12113 | Py_INCREF(Py_None); resultobj = Py_None; | |
12114 | return resultobj; | |
12115 | fail: | |
12116 | return NULL; | |
12117 | } | |
12118 | ||
12119 | ||
12120 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
12121 | PyObject *obj; | |
12122 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12123 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12124 | Py_INCREF(obj); | |
12125 | return Py_BuildValue((char *)""); | |
12126 | } | |
12127 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12128 | PyObject *resultobj; | |
12129 | wxEventType result; | |
12130 | char *kwnames[] = { | |
12131 | NULL | |
12132 | }; | |
12133 | ||
12134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12135 | { | |
12136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12137 | result = (wxEventType)wxNewEventType(); | |
12138 | ||
12139 | wxPyEndAllowThreads(__tstate); | |
12140 | if (PyErr_Occurred()) SWIG_fail; | |
12141 | } | |
12142 | resultobj = SWIG_FromInt((int)result); | |
12143 | return resultobj; | |
12144 | fail: | |
12145 | return NULL; | |
12146 | } | |
12147 | ||
12148 | ||
12149 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12150 | PyObject *resultobj; | |
12151 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12152 | PyObject * obj0 = 0 ; | |
12153 | char *kwnames[] = { | |
12154 | (char *) "self", NULL | |
12155 | }; | |
12156 | ||
12157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
12158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12160 | { | |
12161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12162 | delete arg1; | |
12163 | ||
12164 | wxPyEndAllowThreads(__tstate); | |
12165 | if (PyErr_Occurred()) SWIG_fail; | |
12166 | } | |
12167 | Py_INCREF(Py_None); resultobj = Py_None; | |
12168 | return resultobj; | |
12169 | fail: | |
12170 | return NULL; | |
12171 | } | |
12172 | ||
12173 | ||
12174 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12175 | PyObject *resultobj; | |
12176 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12177 | wxEventType arg2 ; | |
12178 | PyObject * obj0 = 0 ; | |
12179 | PyObject * obj1 = 0 ; | |
12180 | char *kwnames[] = { | |
12181 | (char *) "self",(char *) "typ", NULL | |
12182 | }; | |
12183 | ||
12184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; | |
12185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12187 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
12188 | if (PyErr_Occurred()) SWIG_fail; | |
12189 | { | |
12190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12191 | (arg1)->SetEventType(arg2); | |
12192 | ||
12193 | wxPyEndAllowThreads(__tstate); | |
12194 | if (PyErr_Occurred()) SWIG_fail; | |
12195 | } | |
12196 | Py_INCREF(Py_None); resultobj = Py_None; | |
12197 | return resultobj; | |
12198 | fail: | |
12199 | return NULL; | |
12200 | } | |
12201 | ||
12202 | ||
12203 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12204 | PyObject *resultobj; | |
12205 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12206 | wxEventType result; | |
12207 | PyObject * obj0 = 0 ; | |
12208 | char *kwnames[] = { | |
12209 | (char *) "self", NULL | |
12210 | }; | |
12211 | ||
12212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
12213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12215 | { | |
12216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12217 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12218 | ||
12219 | wxPyEndAllowThreads(__tstate); | |
12220 | if (PyErr_Occurred()) SWIG_fail; | |
12221 | } | |
12222 | resultobj = SWIG_FromInt((int)result); | |
12223 | return resultobj; | |
12224 | fail: | |
12225 | return NULL; | |
12226 | } | |
12227 | ||
12228 | ||
12229 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12230 | PyObject *resultobj; | |
12231 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12232 | wxObject *result; | |
12233 | PyObject * obj0 = 0 ; | |
12234 | char *kwnames[] = { | |
12235 | (char *) "self", NULL | |
12236 | }; | |
12237 | ||
12238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
12239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12241 | { | |
12242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12243 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12244 | ||
12245 | wxPyEndAllowThreads(__tstate); | |
12246 | if (PyErr_Occurred()) SWIG_fail; | |
12247 | } | |
12248 | { | |
12249 | resultobj = wxPyMake_wxObject(result); | |
12250 | } | |
12251 | return resultobj; | |
12252 | fail: | |
12253 | return NULL; | |
12254 | } | |
12255 | ||
12256 | ||
12257 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12258 | PyObject *resultobj; | |
12259 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12260 | wxObject *arg2 = (wxObject *) 0 ; | |
12261 | PyObject * obj0 = 0 ; | |
12262 | PyObject * obj1 = 0 ; | |
12263 | char *kwnames[] = { | |
12264 | (char *) "self",(char *) "obj", NULL | |
12265 | }; | |
12266 | ||
12267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
12268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12270 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12272 | { | |
12273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12274 | (arg1)->SetEventObject(arg2); | |
12275 | ||
12276 | wxPyEndAllowThreads(__tstate); | |
12277 | if (PyErr_Occurred()) SWIG_fail; | |
12278 | } | |
12279 | Py_INCREF(Py_None); resultobj = Py_None; | |
12280 | return resultobj; | |
12281 | fail: | |
12282 | return NULL; | |
12283 | } | |
12284 | ||
12285 | ||
12286 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12287 | PyObject *resultobj; | |
12288 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12289 | long result; | |
12290 | PyObject * obj0 = 0 ; | |
12291 | char *kwnames[] = { | |
12292 | (char *) "self", NULL | |
12293 | }; | |
12294 | ||
12295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
12296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12298 | { | |
12299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12300 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12301 | ||
12302 | wxPyEndAllowThreads(__tstate); | |
12303 | if (PyErr_Occurred()) SWIG_fail; | |
12304 | } | |
12305 | resultobj = SWIG_FromLong((long)result); | |
12306 | return resultobj; | |
12307 | fail: | |
12308 | return NULL; | |
12309 | } | |
12310 | ||
12311 | ||
12312 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12313 | PyObject *resultobj; | |
12314 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12315 | long arg2 = (long) 0 ; | |
12316 | PyObject * obj0 = 0 ; | |
12317 | PyObject * obj1 = 0 ; | |
12318 | char *kwnames[] = { | |
12319 | (char *) "self",(char *) "ts", NULL | |
12320 | }; | |
12321 | ||
12322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; | |
12323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12325 | if (obj1) { | |
12326 | arg2 = (long) SWIG_AsLong(obj1); | |
12327 | if (PyErr_Occurred()) SWIG_fail; | |
12328 | } | |
12329 | { | |
12330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12331 | (arg1)->SetTimestamp(arg2); | |
12332 | ||
12333 | wxPyEndAllowThreads(__tstate); | |
12334 | if (PyErr_Occurred()) SWIG_fail; | |
12335 | } | |
12336 | Py_INCREF(Py_None); resultobj = Py_None; | |
12337 | return resultobj; | |
12338 | fail: | |
12339 | return NULL; | |
12340 | } | |
12341 | ||
12342 | ||
12343 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12344 | PyObject *resultobj; | |
12345 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12346 | int result; | |
12347 | PyObject * obj0 = 0 ; | |
12348 | char *kwnames[] = { | |
12349 | (char *) "self", NULL | |
12350 | }; | |
12351 | ||
12352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
12353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12355 | { | |
12356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12357 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12358 | ||
12359 | wxPyEndAllowThreads(__tstate); | |
12360 | if (PyErr_Occurred()) SWIG_fail; | |
12361 | } | |
12362 | resultobj = SWIG_FromInt((int)result); | |
12363 | return resultobj; | |
12364 | fail: | |
12365 | return NULL; | |
12366 | } | |
12367 | ||
12368 | ||
12369 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12370 | PyObject *resultobj; | |
12371 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12372 | int arg2 ; | |
12373 | PyObject * obj0 = 0 ; | |
12374 | PyObject * obj1 = 0 ; | |
12375 | char *kwnames[] = { | |
12376 | (char *) "self",(char *) "Id", NULL | |
12377 | }; | |
12378 | ||
12379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; | |
12380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12382 | arg2 = (int) SWIG_AsInt(obj1); | |
12383 | if (PyErr_Occurred()) SWIG_fail; | |
12384 | { | |
12385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12386 | (arg1)->SetId(arg2); | |
12387 | ||
12388 | wxPyEndAllowThreads(__tstate); | |
12389 | if (PyErr_Occurred()) SWIG_fail; | |
12390 | } | |
12391 | Py_INCREF(Py_None); resultobj = Py_None; | |
12392 | return resultobj; | |
12393 | fail: | |
12394 | return NULL; | |
12395 | } | |
12396 | ||
12397 | ||
12398 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12399 | PyObject *resultobj; | |
12400 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12401 | bool result; | |
12402 | PyObject * obj0 = 0 ; | |
12403 | char *kwnames[] = { | |
12404 | (char *) "self", NULL | |
12405 | }; | |
12406 | ||
12407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
12408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12410 | { | |
12411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12412 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12413 | ||
12414 | wxPyEndAllowThreads(__tstate); | |
12415 | if (PyErr_Occurred()) SWIG_fail; | |
12416 | } | |
12417 | { | |
12418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12419 | } | |
12420 | return resultobj; | |
12421 | fail: | |
12422 | return NULL; | |
12423 | } | |
12424 | ||
12425 | ||
12426 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12427 | PyObject *resultobj; | |
12428 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12429 | bool arg2 = (bool) True ; | |
12430 | PyObject * obj0 = 0 ; | |
12431 | PyObject * obj1 = 0 ; | |
12432 | char *kwnames[] = { | |
12433 | (char *) "self",(char *) "skip", NULL | |
12434 | }; | |
12435 | ||
12436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
12437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12439 | if (obj1) { | |
12440 | arg2 = (bool) SWIG_AsBool(obj1); | |
12441 | if (PyErr_Occurred()) SWIG_fail; | |
12442 | } | |
12443 | { | |
12444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12445 | (arg1)->Skip(arg2); | |
12446 | ||
12447 | wxPyEndAllowThreads(__tstate); | |
12448 | if (PyErr_Occurred()) SWIG_fail; | |
12449 | } | |
12450 | Py_INCREF(Py_None); resultobj = Py_None; | |
12451 | return resultobj; | |
12452 | fail: | |
12453 | return NULL; | |
12454 | } | |
12455 | ||
12456 | ||
12457 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12458 | PyObject *resultobj; | |
12459 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12460 | bool result; | |
12461 | PyObject * obj0 = 0 ; | |
12462 | char *kwnames[] = { | |
12463 | (char *) "self", NULL | |
12464 | }; | |
12465 | ||
12466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
12467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12469 | { | |
12470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12471 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12472 | ||
12473 | wxPyEndAllowThreads(__tstate); | |
12474 | if (PyErr_Occurred()) SWIG_fail; | |
12475 | } | |
12476 | { | |
12477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12478 | } | |
12479 | return resultobj; | |
12480 | fail: | |
12481 | return NULL; | |
12482 | } | |
12483 | ||
12484 | ||
12485 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12486 | PyObject *resultobj; | |
12487 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12488 | bool result; | |
12489 | PyObject * obj0 = 0 ; | |
12490 | char *kwnames[] = { | |
12491 | (char *) "self", NULL | |
12492 | }; | |
12493 | ||
12494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
12495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12497 | { | |
12498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12499 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12500 | ||
12501 | wxPyEndAllowThreads(__tstate); | |
12502 | if (PyErr_Occurred()) SWIG_fail; | |
12503 | } | |
12504 | { | |
12505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12506 | } | |
12507 | return resultobj; | |
12508 | fail: | |
12509 | return NULL; | |
12510 | } | |
12511 | ||
12512 | ||
12513 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12514 | PyObject *resultobj; | |
12515 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12516 | int result; | |
12517 | PyObject * obj0 = 0 ; | |
12518 | char *kwnames[] = { | |
12519 | (char *) "self", NULL | |
12520 | }; | |
12521 | ||
12522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
12523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12525 | { | |
12526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12527 | result = (int)(arg1)->StopPropagation(); | |
12528 | ||
12529 | wxPyEndAllowThreads(__tstate); | |
12530 | if (PyErr_Occurred()) SWIG_fail; | |
12531 | } | |
12532 | resultobj = SWIG_FromInt((int)result); | |
12533 | return resultobj; | |
12534 | fail: | |
12535 | return NULL; | |
12536 | } | |
12537 | ||
12538 | ||
12539 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12540 | PyObject *resultobj; | |
12541 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12542 | int arg2 ; | |
12543 | PyObject * obj0 = 0 ; | |
12544 | PyObject * obj1 = 0 ; | |
12545 | char *kwnames[] = { | |
12546 | (char *) "self",(char *) "propagationLevel", NULL | |
12547 | }; | |
12548 | ||
12549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; | |
12550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12552 | arg2 = (int) SWIG_AsInt(obj1); | |
12553 | if (PyErr_Occurred()) SWIG_fail; | |
12554 | { | |
12555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12556 | (arg1)->ResumePropagation(arg2); | |
12557 | ||
12558 | wxPyEndAllowThreads(__tstate); | |
12559 | if (PyErr_Occurred()) SWIG_fail; | |
12560 | } | |
12561 | Py_INCREF(Py_None); resultobj = Py_None; | |
12562 | return resultobj; | |
12563 | fail: | |
12564 | return NULL; | |
12565 | } | |
12566 | ||
12567 | ||
12568 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12569 | PyObject *resultobj; | |
12570 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12571 | wxEvent *result; | |
12572 | PyObject * obj0 = 0 ; | |
12573 | char *kwnames[] = { | |
12574 | (char *) "self", NULL | |
12575 | }; | |
12576 | ||
12577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
12578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12580 | { | |
12581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12582 | result = (wxEvent *)(arg1)->Clone(); | |
12583 | ||
12584 | wxPyEndAllowThreads(__tstate); | |
12585 | if (PyErr_Occurred()) SWIG_fail; | |
12586 | } | |
12587 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
12588 | return resultobj; | |
12589 | fail: | |
12590 | return NULL; | |
12591 | } | |
12592 | ||
12593 | ||
12594 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12595 | PyObject *obj; | |
12596 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12597 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12598 | Py_INCREF(obj); | |
12599 | return Py_BuildValue((char *)""); | |
12600 | } | |
12601 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12602 | PyObject *resultobj; | |
12603 | wxEvent *arg1 = 0 ; | |
12604 | wxPropagationDisabler *result; | |
12605 | PyObject * obj0 = 0 ; | |
12606 | char *kwnames[] = { | |
12607 | (char *) "event", NULL | |
12608 | }; | |
12609 | ||
12610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12612 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12613 | SWIG_fail; | |
12614 | if (arg1 == NULL) { | |
12615 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12616 | SWIG_fail; | |
12617 | } | |
12618 | { | |
12619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12620 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12621 | ||
12622 | wxPyEndAllowThreads(__tstate); | |
12623 | if (PyErr_Occurred()) SWIG_fail; | |
12624 | } | |
12625 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); | |
12626 | return resultobj; | |
12627 | fail: | |
12628 | return NULL; | |
12629 | } | |
12630 | ||
12631 | ||
12632 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12633 | PyObject *resultobj; | |
12634 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12635 | PyObject * obj0 = 0 ; | |
12636 | char *kwnames[] = { | |
12637 | (char *) "self", NULL | |
12638 | }; | |
12639 | ||
12640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, | |
12642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12643 | { | |
12644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12645 | delete arg1; | |
12646 | ||
12647 | wxPyEndAllowThreads(__tstate); | |
12648 | if (PyErr_Occurred()) SWIG_fail; | |
12649 | } | |
12650 | Py_INCREF(Py_None); resultobj = Py_None; | |
12651 | return resultobj; | |
12652 | fail: | |
12653 | return NULL; | |
12654 | } | |
12655 | ||
12656 | ||
12657 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12658 | PyObject *obj; | |
12659 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12660 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12661 | Py_INCREF(obj); | |
12662 | return Py_BuildValue((char *)""); | |
12663 | } | |
12664 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12665 | PyObject *resultobj; | |
12666 | wxEvent *arg1 = 0 ; | |
12667 | wxPropagateOnce *result; | |
12668 | PyObject * obj0 = 0 ; | |
12669 | char *kwnames[] = { | |
12670 | (char *) "event", NULL | |
12671 | }; | |
12672 | ||
12673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
12674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12675 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12676 | SWIG_fail; | |
12677 | if (arg1 == NULL) { | |
12678 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12679 | SWIG_fail; | |
12680 | } | |
12681 | { | |
12682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12683 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12684 | ||
12685 | wxPyEndAllowThreads(__tstate); | |
12686 | if (PyErr_Occurred()) SWIG_fail; | |
12687 | } | |
12688 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); | |
12689 | return resultobj; | |
12690 | fail: | |
12691 | return NULL; | |
12692 | } | |
12693 | ||
12694 | ||
12695 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12696 | PyObject *resultobj; | |
12697 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12698 | PyObject * obj0 = 0 ; | |
12699 | char *kwnames[] = { | |
12700 | (char *) "self", NULL | |
12701 | }; | |
12702 | ||
12703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
12704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, | |
12705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12706 | { | |
12707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12708 | delete arg1; | |
12709 | ||
12710 | wxPyEndAllowThreads(__tstate); | |
12711 | if (PyErr_Occurred()) SWIG_fail; | |
12712 | } | |
12713 | Py_INCREF(Py_None); resultobj = Py_None; | |
12714 | return resultobj; | |
12715 | fail: | |
12716 | return NULL; | |
12717 | } | |
12718 | ||
12719 | ||
12720 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12721 | PyObject *obj; | |
12722 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12723 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12724 | Py_INCREF(obj); | |
12725 | return Py_BuildValue((char *)""); | |
12726 | } | |
12727 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12728 | PyObject *resultobj; | |
12729 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12730 | int arg2 = (int) 0 ; | |
12731 | wxCommandEvent *result; | |
12732 | PyObject * obj0 = 0 ; | |
12733 | PyObject * obj1 = 0 ; | |
12734 | char *kwnames[] = { | |
12735 | (char *) "commandType",(char *) "winid", NULL | |
12736 | }; | |
12737 | ||
12738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
12739 | if (obj0) { | |
12740 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
12741 | if (PyErr_Occurred()) SWIG_fail; | |
12742 | } | |
12743 | if (obj1) { | |
12744 | arg2 = (int) SWIG_AsInt(obj1); | |
12745 | if (PyErr_Occurred()) SWIG_fail; | |
12746 | } | |
12747 | { | |
12748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12749 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12750 | ||
12751 | wxPyEndAllowThreads(__tstate); | |
12752 | if (PyErr_Occurred()) SWIG_fail; | |
12753 | } | |
12754 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); | |
12755 | return resultobj; | |
12756 | fail: | |
12757 | return NULL; | |
12758 | } | |
12759 | ||
12760 | ||
12761 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12762 | PyObject *resultobj; | |
12763 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12764 | int result; | |
12765 | PyObject * obj0 = 0 ; | |
12766 | char *kwnames[] = { | |
12767 | (char *) "self", NULL | |
12768 | }; | |
12769 | ||
12770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
12771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12773 | { | |
12774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12775 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12776 | ||
12777 | wxPyEndAllowThreads(__tstate); | |
12778 | if (PyErr_Occurred()) SWIG_fail; | |
12779 | } | |
12780 | resultobj = SWIG_FromInt((int)result); | |
12781 | return resultobj; | |
12782 | fail: | |
12783 | return NULL; | |
12784 | } | |
12785 | ||
12786 | ||
12787 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12788 | PyObject *resultobj; | |
12789 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12790 | wxString *arg2 = 0 ; | |
12791 | bool temp2 = False ; | |
12792 | PyObject * obj0 = 0 ; | |
12793 | PyObject * obj1 = 0 ; | |
12794 | char *kwnames[] = { | |
12795 | (char *) "self",(char *) "s", NULL | |
12796 | }; | |
12797 | ||
12798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
12799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12801 | { | |
12802 | arg2 = wxString_in_helper(obj1); | |
12803 | if (arg2 == NULL) SWIG_fail; | |
12804 | temp2 = True; | |
12805 | } | |
12806 | { | |
12807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12808 | (arg1)->SetString((wxString const &)*arg2); | |
12809 | ||
12810 | wxPyEndAllowThreads(__tstate); | |
12811 | if (PyErr_Occurred()) SWIG_fail; | |
12812 | } | |
12813 | Py_INCREF(Py_None); resultobj = Py_None; | |
12814 | { | |
12815 | if (temp2) | |
12816 | delete arg2; | |
12817 | } | |
12818 | return resultobj; | |
12819 | fail: | |
12820 | { | |
12821 | if (temp2) | |
12822 | delete arg2; | |
12823 | } | |
12824 | return NULL; | |
12825 | } | |
12826 | ||
12827 | ||
12828 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12829 | PyObject *resultobj; | |
12830 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12831 | wxString result; | |
12832 | PyObject * obj0 = 0 ; | |
12833 | char *kwnames[] = { | |
12834 | (char *) "self", NULL | |
12835 | }; | |
12836 | ||
12837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
12838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12840 | { | |
12841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12842 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12843 | ||
12844 | wxPyEndAllowThreads(__tstate); | |
12845 | if (PyErr_Occurred()) SWIG_fail; | |
12846 | } | |
12847 | { | |
12848 | #if wxUSE_UNICODE | |
12849 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12850 | #else | |
12851 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12852 | #endif | |
12853 | } | |
12854 | return resultobj; | |
12855 | fail: | |
12856 | return NULL; | |
12857 | } | |
12858 | ||
12859 | ||
12860 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12861 | PyObject *resultobj; | |
12862 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12863 | bool result; | |
12864 | PyObject * obj0 = 0 ; | |
12865 | char *kwnames[] = { | |
12866 | (char *) "self", NULL | |
12867 | }; | |
12868 | ||
12869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
12870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12872 | { | |
12873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12874 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12875 | ||
12876 | wxPyEndAllowThreads(__tstate); | |
12877 | if (PyErr_Occurred()) SWIG_fail; | |
12878 | } | |
12879 | { | |
12880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12881 | } | |
12882 | return resultobj; | |
12883 | fail: | |
12884 | return NULL; | |
12885 | } | |
12886 | ||
12887 | ||
12888 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12889 | PyObject *resultobj; | |
12890 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12891 | bool result; | |
12892 | PyObject * obj0 = 0 ; | |
12893 | char *kwnames[] = { | |
12894 | (char *) "self", NULL | |
12895 | }; | |
12896 | ||
12897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
12898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12900 | { | |
12901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12902 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12903 | ||
12904 | wxPyEndAllowThreads(__tstate); | |
12905 | if (PyErr_Occurred()) SWIG_fail; | |
12906 | } | |
12907 | { | |
12908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12909 | } | |
12910 | return resultobj; | |
12911 | fail: | |
12912 | return NULL; | |
12913 | } | |
12914 | ||
12915 | ||
12916 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12917 | PyObject *resultobj; | |
12918 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12919 | long arg2 ; | |
12920 | PyObject * obj0 = 0 ; | |
12921 | PyObject * obj1 = 0 ; | |
12922 | char *kwnames[] = { | |
12923 | (char *) "self",(char *) "extraLong", NULL | |
12924 | }; | |
12925 | ||
12926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; | |
12927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12929 | arg2 = (long) SWIG_AsLong(obj1); | |
12930 | if (PyErr_Occurred()) SWIG_fail; | |
12931 | { | |
12932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12933 | (arg1)->SetExtraLong(arg2); | |
12934 | ||
12935 | wxPyEndAllowThreads(__tstate); | |
12936 | if (PyErr_Occurred()) SWIG_fail; | |
12937 | } | |
12938 | Py_INCREF(Py_None); resultobj = Py_None; | |
12939 | return resultobj; | |
12940 | fail: | |
12941 | return NULL; | |
12942 | } | |
12943 | ||
12944 | ||
12945 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12946 | PyObject *resultobj; | |
12947 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12948 | long result; | |
12949 | PyObject * obj0 = 0 ; | |
12950 | char *kwnames[] = { | |
12951 | (char *) "self", NULL | |
12952 | }; | |
12953 | ||
12954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
12955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12957 | { | |
12958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12959 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
12960 | ||
12961 | wxPyEndAllowThreads(__tstate); | |
12962 | if (PyErr_Occurred()) SWIG_fail; | |
12963 | } | |
12964 | resultobj = SWIG_FromLong((long)result); | |
12965 | return resultobj; | |
12966 | fail: | |
12967 | return NULL; | |
12968 | } | |
12969 | ||
12970 | ||
12971 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12972 | PyObject *resultobj; | |
12973 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12974 | int arg2 ; | |
12975 | PyObject * obj0 = 0 ; | |
12976 | PyObject * obj1 = 0 ; | |
12977 | char *kwnames[] = { | |
12978 | (char *) "self",(char *) "i", NULL | |
12979 | }; | |
12980 | ||
12981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; | |
12982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12984 | arg2 = (int) SWIG_AsInt(obj1); | |
12985 | if (PyErr_Occurred()) SWIG_fail; | |
12986 | { | |
12987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12988 | (arg1)->SetInt(arg2); | |
12989 | ||
12990 | wxPyEndAllowThreads(__tstate); | |
12991 | if (PyErr_Occurred()) SWIG_fail; | |
12992 | } | |
12993 | Py_INCREF(Py_None); resultobj = Py_None; | |
12994 | return resultobj; | |
12995 | fail: | |
12996 | return NULL; | |
12997 | } | |
12998 | ||
12999 | ||
13000 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13001 | PyObject *resultobj; | |
13002 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13003 | long result; | |
13004 | PyObject * obj0 = 0 ; | |
13005 | char *kwnames[] = { | |
13006 | (char *) "self", NULL | |
13007 | }; | |
13008 | ||
13009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
13010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13012 | { | |
13013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13014 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13015 | ||
13016 | wxPyEndAllowThreads(__tstate); | |
13017 | if (PyErr_Occurred()) SWIG_fail; | |
13018 | } | |
13019 | resultobj = SWIG_FromLong((long)result); | |
13020 | return resultobj; | |
13021 | fail: | |
13022 | return NULL; | |
13023 | } | |
13024 | ||
13025 | ||
13026 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13027 | PyObject *resultobj; | |
13028 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13029 | wxEvent *result; | |
13030 | PyObject * obj0 = 0 ; | |
13031 | char *kwnames[] = { | |
13032 | (char *) "self", NULL | |
13033 | }; | |
13034 | ||
13035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
13036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13038 | { | |
13039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13040 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13041 | ||
13042 | wxPyEndAllowThreads(__tstate); | |
13043 | if (PyErr_Occurred()) SWIG_fail; | |
13044 | } | |
13045 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13046 | return resultobj; | |
13047 | fail: | |
13048 | return NULL; | |
13049 | } | |
13050 | ||
13051 | ||
13052 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
13053 | PyObject *obj; | |
13054 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13055 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13056 | Py_INCREF(obj); | |
13057 | return Py_BuildValue((char *)""); | |
13058 | } | |
13059 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13060 | PyObject *resultobj; | |
13061 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13062 | int arg2 = (int) 0 ; | |
13063 | wxNotifyEvent *result; | |
13064 | PyObject * obj0 = 0 ; | |
13065 | PyObject * obj1 = 0 ; | |
13066 | char *kwnames[] = { | |
13067 | (char *) "commandType",(char *) "winid", NULL | |
13068 | }; | |
13069 | ||
13070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; | |
13071 | if (obj0) { | |
13072 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13073 | if (PyErr_Occurred()) SWIG_fail; | |
13074 | } | |
13075 | if (obj1) { | |
13076 | arg2 = (int) SWIG_AsInt(obj1); | |
13077 | if (PyErr_Occurred()) SWIG_fail; | |
13078 | } | |
13079 | { | |
13080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13081 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13082 | ||
13083 | wxPyEndAllowThreads(__tstate); | |
13084 | if (PyErr_Occurred()) SWIG_fail; | |
13085 | } | |
13086 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); | |
13087 | return resultobj; | |
13088 | fail: | |
13089 | return NULL; | |
13090 | } | |
13091 | ||
13092 | ||
13093 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13094 | PyObject *resultobj; | |
13095 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13096 | PyObject * obj0 = 0 ; | |
13097 | char *kwnames[] = { | |
13098 | (char *) "self", NULL | |
13099 | }; | |
13100 | ||
13101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
13102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13104 | { | |
13105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13106 | (arg1)->Veto(); | |
13107 | ||
13108 | wxPyEndAllowThreads(__tstate); | |
13109 | if (PyErr_Occurred()) SWIG_fail; | |
13110 | } | |
13111 | Py_INCREF(Py_None); resultobj = Py_None; | |
13112 | return resultobj; | |
13113 | fail: | |
13114 | return NULL; | |
13115 | } | |
13116 | ||
13117 | ||
13118 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13119 | PyObject *resultobj; | |
13120 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13121 | PyObject * obj0 = 0 ; | |
13122 | char *kwnames[] = { | |
13123 | (char *) "self", NULL | |
13124 | }; | |
13125 | ||
13126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
13127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13129 | { | |
13130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13131 | (arg1)->Allow(); | |
13132 | ||
13133 | wxPyEndAllowThreads(__tstate); | |
13134 | if (PyErr_Occurred()) SWIG_fail; | |
13135 | } | |
13136 | Py_INCREF(Py_None); resultobj = Py_None; | |
13137 | return resultobj; | |
13138 | fail: | |
13139 | return NULL; | |
13140 | } | |
13141 | ||
13142 | ||
13143 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13144 | PyObject *resultobj; | |
13145 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13146 | bool result; | |
13147 | PyObject * obj0 = 0 ; | |
13148 | char *kwnames[] = { | |
13149 | (char *) "self", NULL | |
13150 | }; | |
13151 | ||
13152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
13153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13155 | { | |
13156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13157 | result = (bool)(arg1)->IsAllowed(); | |
13158 | ||
13159 | wxPyEndAllowThreads(__tstate); | |
13160 | if (PyErr_Occurred()) SWIG_fail; | |
13161 | } | |
13162 | { | |
13163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13164 | } | |
13165 | return resultobj; | |
13166 | fail: | |
13167 | return NULL; | |
13168 | } | |
13169 | ||
13170 | ||
13171 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
13172 | PyObject *obj; | |
13173 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13174 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13175 | Py_INCREF(obj); | |
13176 | return Py_BuildValue((char *)""); | |
13177 | } | |
13178 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13179 | PyObject *resultobj; | |
13180 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13181 | int arg2 = (int) 0 ; | |
13182 | int arg3 = (int) 0 ; | |
13183 | int arg4 = (int) 0 ; | |
13184 | wxScrollEvent *result; | |
13185 | PyObject * obj0 = 0 ; | |
13186 | PyObject * obj1 = 0 ; | |
13187 | PyObject * obj2 = 0 ; | |
13188 | PyObject * obj3 = 0 ; | |
13189 | char *kwnames[] = { | |
13190 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13191 | }; | |
13192 | ||
13193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13194 | if (obj0) { | |
13195 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13196 | if (PyErr_Occurred()) SWIG_fail; | |
13197 | } | |
13198 | if (obj1) { | |
13199 | arg2 = (int) SWIG_AsInt(obj1); | |
13200 | if (PyErr_Occurred()) SWIG_fail; | |
13201 | } | |
13202 | if (obj2) { | |
13203 | arg3 = (int) SWIG_AsInt(obj2); | |
13204 | if (PyErr_Occurred()) SWIG_fail; | |
13205 | } | |
13206 | if (obj3) { | |
13207 | arg4 = (int) SWIG_AsInt(obj3); | |
13208 | if (PyErr_Occurred()) SWIG_fail; | |
13209 | } | |
13210 | { | |
13211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13212 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13213 | ||
13214 | wxPyEndAllowThreads(__tstate); | |
13215 | if (PyErr_Occurred()) SWIG_fail; | |
13216 | } | |
13217 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); | |
13218 | return resultobj; | |
13219 | fail: | |
13220 | return NULL; | |
13221 | } | |
13222 | ||
13223 | ||
13224 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13225 | PyObject *resultobj; | |
13226 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13227 | int result; | |
13228 | PyObject * obj0 = 0 ; | |
13229 | char *kwnames[] = { | |
13230 | (char *) "self", NULL | |
13231 | }; | |
13232 | ||
13233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13236 | { | |
13237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13238 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13239 | ||
13240 | wxPyEndAllowThreads(__tstate); | |
13241 | if (PyErr_Occurred()) SWIG_fail; | |
13242 | } | |
13243 | resultobj = SWIG_FromInt((int)result); | |
13244 | return resultobj; | |
13245 | fail: | |
13246 | return NULL; | |
13247 | } | |
13248 | ||
13249 | ||
13250 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13251 | PyObject *resultobj; | |
13252 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13253 | int result; | |
13254 | PyObject * obj0 = 0 ; | |
13255 | char *kwnames[] = { | |
13256 | (char *) "self", NULL | |
13257 | }; | |
13258 | ||
13259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13262 | { | |
13263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13264 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13265 | ||
13266 | wxPyEndAllowThreads(__tstate); | |
13267 | if (PyErr_Occurred()) SWIG_fail; | |
13268 | } | |
13269 | resultobj = SWIG_FromInt((int)result); | |
13270 | return resultobj; | |
13271 | fail: | |
13272 | return NULL; | |
13273 | } | |
13274 | ||
13275 | ||
13276 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13277 | PyObject *resultobj; | |
13278 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13279 | int arg2 ; | |
13280 | PyObject * obj0 = 0 ; | |
13281 | PyObject * obj1 = 0 ; | |
13282 | char *kwnames[] = { | |
13283 | (char *) "self",(char *) "orient", NULL | |
13284 | }; | |
13285 | ||
13286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13289 | arg2 = (int) SWIG_AsInt(obj1); | |
13290 | if (PyErr_Occurred()) SWIG_fail; | |
13291 | { | |
13292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13293 | (arg1)->SetOrientation(arg2); | |
13294 | ||
13295 | wxPyEndAllowThreads(__tstate); | |
13296 | if (PyErr_Occurred()) SWIG_fail; | |
13297 | } | |
13298 | Py_INCREF(Py_None); resultobj = Py_None; | |
13299 | return resultobj; | |
13300 | fail: | |
13301 | return NULL; | |
13302 | } | |
13303 | ||
13304 | ||
13305 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13306 | PyObject *resultobj; | |
13307 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13308 | int arg2 ; | |
13309 | PyObject * obj0 = 0 ; | |
13310 | PyObject * obj1 = 0 ; | |
13311 | char *kwnames[] = { | |
13312 | (char *) "self",(char *) "pos", NULL | |
13313 | }; | |
13314 | ||
13315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13318 | arg2 = (int) SWIG_AsInt(obj1); | |
13319 | if (PyErr_Occurred()) SWIG_fail; | |
13320 | { | |
13321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13322 | (arg1)->SetPosition(arg2); | |
13323 | ||
13324 | wxPyEndAllowThreads(__tstate); | |
13325 | if (PyErr_Occurred()) SWIG_fail; | |
13326 | } | |
13327 | Py_INCREF(Py_None); resultobj = Py_None; | |
13328 | return resultobj; | |
13329 | fail: | |
13330 | return NULL; | |
13331 | } | |
13332 | ||
13333 | ||
13334 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
13335 | PyObject *obj; | |
13336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13337 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13338 | Py_INCREF(obj); | |
13339 | return Py_BuildValue((char *)""); | |
13340 | } | |
13341 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13342 | PyObject *resultobj; | |
13343 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13344 | int arg2 = (int) 0 ; | |
13345 | int arg3 = (int) 0 ; | |
13346 | wxScrollWinEvent *result; | |
13347 | PyObject * obj0 = 0 ; | |
13348 | PyObject * obj1 = 0 ; | |
13349 | PyObject * obj2 = 0 ; | |
13350 | char *kwnames[] = { | |
13351 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13352 | }; | |
13353 | ||
13354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13355 | if (obj0) { | |
13356 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13357 | if (PyErr_Occurred()) SWIG_fail; | |
13358 | } | |
13359 | if (obj1) { | |
13360 | arg2 = (int) SWIG_AsInt(obj1); | |
13361 | if (PyErr_Occurred()) SWIG_fail; | |
13362 | } | |
13363 | if (obj2) { | |
13364 | arg3 = (int) SWIG_AsInt(obj2); | |
13365 | if (PyErr_Occurred()) SWIG_fail; | |
13366 | } | |
13367 | { | |
13368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13369 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13370 | ||
13371 | wxPyEndAllowThreads(__tstate); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | } | |
13374 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); | |
13375 | return resultobj; | |
13376 | fail: | |
13377 | return NULL; | |
13378 | } | |
13379 | ||
13380 | ||
13381 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13382 | PyObject *resultobj; | |
13383 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13384 | int result; | |
13385 | PyObject * obj0 = 0 ; | |
13386 | char *kwnames[] = { | |
13387 | (char *) "self", NULL | |
13388 | }; | |
13389 | ||
13390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13393 | { | |
13394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13395 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13396 | ||
13397 | wxPyEndAllowThreads(__tstate); | |
13398 | if (PyErr_Occurred()) SWIG_fail; | |
13399 | } | |
13400 | resultobj = SWIG_FromInt((int)result); | |
13401 | return resultobj; | |
13402 | fail: | |
13403 | return NULL; | |
13404 | } | |
13405 | ||
13406 | ||
13407 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13408 | PyObject *resultobj; | |
13409 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13410 | int result; | |
13411 | PyObject * obj0 = 0 ; | |
13412 | char *kwnames[] = { | |
13413 | (char *) "self", NULL | |
13414 | }; | |
13415 | ||
13416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13419 | { | |
13420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13421 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13422 | ||
13423 | wxPyEndAllowThreads(__tstate); | |
13424 | if (PyErr_Occurred()) SWIG_fail; | |
13425 | } | |
13426 | resultobj = SWIG_FromInt((int)result); | |
13427 | return resultobj; | |
13428 | fail: | |
13429 | return NULL; | |
13430 | } | |
13431 | ||
13432 | ||
13433 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13434 | PyObject *resultobj; | |
13435 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13436 | int arg2 ; | |
13437 | PyObject * obj0 = 0 ; | |
13438 | PyObject * obj1 = 0 ; | |
13439 | char *kwnames[] = { | |
13440 | (char *) "self",(char *) "orient", NULL | |
13441 | }; | |
13442 | ||
13443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13446 | arg2 = (int) SWIG_AsInt(obj1); | |
13447 | if (PyErr_Occurred()) SWIG_fail; | |
13448 | { | |
13449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13450 | (arg1)->SetOrientation(arg2); | |
13451 | ||
13452 | wxPyEndAllowThreads(__tstate); | |
13453 | if (PyErr_Occurred()) SWIG_fail; | |
13454 | } | |
13455 | Py_INCREF(Py_None); resultobj = Py_None; | |
13456 | return resultobj; | |
13457 | fail: | |
13458 | return NULL; | |
13459 | } | |
13460 | ||
13461 | ||
13462 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13463 | PyObject *resultobj; | |
13464 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13465 | int arg2 ; | |
13466 | PyObject * obj0 = 0 ; | |
13467 | PyObject * obj1 = 0 ; | |
13468 | char *kwnames[] = { | |
13469 | (char *) "self",(char *) "pos", NULL | |
13470 | }; | |
13471 | ||
13472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13475 | arg2 = (int) SWIG_AsInt(obj1); | |
13476 | if (PyErr_Occurred()) SWIG_fail; | |
13477 | { | |
13478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13479 | (arg1)->SetPosition(arg2); | |
13480 | ||
13481 | wxPyEndAllowThreads(__tstate); | |
13482 | if (PyErr_Occurred()) SWIG_fail; | |
13483 | } | |
13484 | Py_INCREF(Py_None); resultobj = Py_None; | |
13485 | return resultobj; | |
13486 | fail: | |
13487 | return NULL; | |
13488 | } | |
13489 | ||
13490 | ||
13491 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13492 | PyObject *obj; | |
13493 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13494 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13495 | Py_INCREF(obj); | |
13496 | return Py_BuildValue((char *)""); | |
13497 | } | |
13498 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13499 | PyObject *resultobj; | |
13500 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13501 | wxMouseEvent *result; | |
13502 | PyObject * obj0 = 0 ; | |
13503 | char *kwnames[] = { | |
13504 | (char *) "mouseType", NULL | |
13505 | }; | |
13506 | ||
13507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; | |
13508 | if (obj0) { | |
13509 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13510 | if (PyErr_Occurred()) SWIG_fail; | |
13511 | } | |
13512 | { | |
13513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13514 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13515 | ||
13516 | wxPyEndAllowThreads(__tstate); | |
13517 | if (PyErr_Occurred()) SWIG_fail; | |
13518 | } | |
13519 | { | |
13520 | resultobj = wxPyMake_wxObject(result); | |
13521 | } | |
13522 | return resultobj; | |
13523 | fail: | |
13524 | return NULL; | |
13525 | } | |
13526 | ||
13527 | ||
13528 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13529 | PyObject *resultobj; | |
13530 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13531 | bool result; | |
13532 | PyObject * obj0 = 0 ; | |
13533 | char *kwnames[] = { | |
13534 | (char *) "self", NULL | |
13535 | }; | |
13536 | ||
13537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
13538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13540 | { | |
13541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13542 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13543 | ||
13544 | wxPyEndAllowThreads(__tstate); | |
13545 | if (PyErr_Occurred()) SWIG_fail; | |
13546 | } | |
13547 | { | |
13548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13549 | } | |
13550 | return resultobj; | |
13551 | fail: | |
13552 | return NULL; | |
13553 | } | |
13554 | ||
13555 | ||
13556 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13557 | PyObject *resultobj; | |
13558 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13559 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13560 | bool result; | |
13561 | PyObject * obj0 = 0 ; | |
13562 | PyObject * obj1 = 0 ; | |
13563 | char *kwnames[] = { | |
13564 | (char *) "self",(char *) "but", NULL | |
13565 | }; | |
13566 | ||
13567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
13568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13570 | if (obj1) { | |
13571 | arg2 = (int) SWIG_AsInt(obj1); | |
13572 | if (PyErr_Occurred()) SWIG_fail; | |
13573 | } | |
13574 | { | |
13575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13576 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13577 | ||
13578 | wxPyEndAllowThreads(__tstate); | |
13579 | if (PyErr_Occurred()) SWIG_fail; | |
13580 | } | |
13581 | { | |
13582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13583 | } | |
13584 | return resultobj; | |
13585 | fail: | |
13586 | return NULL; | |
13587 | } | |
13588 | ||
13589 | ||
13590 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13591 | PyObject *resultobj; | |
13592 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13593 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13594 | bool result; | |
13595 | PyObject * obj0 = 0 ; | |
13596 | PyObject * obj1 = 0 ; | |
13597 | char *kwnames[] = { | |
13598 | (char *) "self",(char *) "but", NULL | |
13599 | }; | |
13600 | ||
13601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; | |
13602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13604 | if (obj1) { | |
13605 | arg2 = (int) SWIG_AsInt(obj1); | |
13606 | if (PyErr_Occurred()) SWIG_fail; | |
13607 | } | |
13608 | { | |
13609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13610 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13611 | ||
13612 | wxPyEndAllowThreads(__tstate); | |
13613 | if (PyErr_Occurred()) SWIG_fail; | |
13614 | } | |
13615 | { | |
13616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13617 | } | |
13618 | return resultobj; | |
13619 | fail: | |
13620 | return NULL; | |
13621 | } | |
13622 | ||
13623 | ||
13624 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13625 | PyObject *resultobj; | |
13626 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13627 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13628 | bool result; | |
13629 | PyObject * obj0 = 0 ; | |
13630 | PyObject * obj1 = 0 ; | |
13631 | char *kwnames[] = { | |
13632 | (char *) "self",(char *) "but", NULL | |
13633 | }; | |
13634 | ||
13635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
13636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13638 | if (obj1) { | |
13639 | arg2 = (int) SWIG_AsInt(obj1); | |
13640 | if (PyErr_Occurred()) SWIG_fail; | |
13641 | } | |
13642 | { | |
13643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13644 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13645 | ||
13646 | wxPyEndAllowThreads(__tstate); | |
13647 | if (PyErr_Occurred()) SWIG_fail; | |
13648 | } | |
13649 | { | |
13650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13651 | } | |
13652 | return resultobj; | |
13653 | fail: | |
13654 | return NULL; | |
13655 | } | |
13656 | ||
13657 | ||
13658 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13659 | PyObject *resultobj; | |
13660 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13661 | int arg2 ; | |
13662 | bool result; | |
13663 | PyObject * obj0 = 0 ; | |
13664 | PyObject * obj1 = 0 ; | |
13665 | char *kwnames[] = { | |
13666 | (char *) "self",(char *) "but", NULL | |
13667 | }; | |
13668 | ||
13669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; | |
13670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13672 | arg2 = (int) SWIG_AsInt(obj1); | |
13673 | if (PyErr_Occurred()) SWIG_fail; | |
13674 | { | |
13675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13676 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13677 | ||
13678 | wxPyEndAllowThreads(__tstate); | |
13679 | if (PyErr_Occurred()) SWIG_fail; | |
13680 | } | |
13681 | { | |
13682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13683 | } | |
13684 | return resultobj; | |
13685 | fail: | |
13686 | return NULL; | |
13687 | } | |
13688 | ||
13689 | ||
13690 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13691 | PyObject *resultobj; | |
13692 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13693 | int arg2 ; | |
13694 | bool result; | |
13695 | PyObject * obj0 = 0 ; | |
13696 | PyObject * obj1 = 0 ; | |
13697 | char *kwnames[] = { | |
13698 | (char *) "self",(char *) "but", NULL | |
13699 | }; | |
13700 | ||
13701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
13702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13704 | arg2 = (int) SWIG_AsInt(obj1); | |
13705 | if (PyErr_Occurred()) SWIG_fail; | |
13706 | { | |
13707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13708 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13709 | ||
13710 | wxPyEndAllowThreads(__tstate); | |
13711 | if (PyErr_Occurred()) SWIG_fail; | |
13712 | } | |
13713 | { | |
13714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13715 | } | |
13716 | return resultobj; | |
13717 | fail: | |
13718 | return NULL; | |
13719 | } | |
13720 | ||
13721 | ||
13722 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13723 | PyObject *resultobj; | |
13724 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13725 | int result; | |
13726 | PyObject * obj0 = 0 ; | |
13727 | char *kwnames[] = { | |
13728 | (char *) "self", NULL | |
13729 | }; | |
13730 | ||
13731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
13732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13734 | { | |
13735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13736 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13737 | ||
13738 | wxPyEndAllowThreads(__tstate); | |
13739 | if (PyErr_Occurred()) SWIG_fail; | |
13740 | } | |
13741 | resultobj = SWIG_FromInt((int)result); | |
13742 | return resultobj; | |
13743 | fail: | |
13744 | return NULL; | |
13745 | } | |
13746 | ||
13747 | ||
13748 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13749 | PyObject *resultobj; | |
13750 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13751 | bool result; | |
13752 | PyObject * obj0 = 0 ; | |
13753 | char *kwnames[] = { | |
13754 | (char *) "self", NULL | |
13755 | }; | |
13756 | ||
13757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
13758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13760 | { | |
13761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13762 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13763 | ||
13764 | wxPyEndAllowThreads(__tstate); | |
13765 | if (PyErr_Occurred()) SWIG_fail; | |
13766 | } | |
13767 | { | |
13768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13769 | } | |
13770 | return resultobj; | |
13771 | fail: | |
13772 | return NULL; | |
13773 | } | |
13774 | ||
13775 | ||
13776 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13777 | PyObject *resultobj; | |
13778 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13779 | bool result; | |
13780 | PyObject * obj0 = 0 ; | |
13781 | char *kwnames[] = { | |
13782 | (char *) "self", NULL | |
13783 | }; | |
13784 | ||
13785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
13786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13788 | { | |
13789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13790 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13791 | ||
13792 | wxPyEndAllowThreads(__tstate); | |
13793 | if (PyErr_Occurred()) SWIG_fail; | |
13794 | } | |
13795 | { | |
13796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13797 | } | |
13798 | return resultobj; | |
13799 | fail: | |
13800 | return NULL; | |
13801 | } | |
13802 | ||
13803 | ||
13804 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13805 | PyObject *resultobj; | |
13806 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13807 | bool result; | |
13808 | PyObject * obj0 = 0 ; | |
13809 | char *kwnames[] = { | |
13810 | (char *) "self", NULL | |
13811 | }; | |
13812 | ||
13813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
13814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13816 | { | |
13817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13818 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13819 | ||
13820 | wxPyEndAllowThreads(__tstate); | |
13821 | if (PyErr_Occurred()) SWIG_fail; | |
13822 | } | |
13823 | { | |
13824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13825 | } | |
13826 | return resultobj; | |
13827 | fail: | |
13828 | return NULL; | |
13829 | } | |
13830 | ||
13831 | ||
13832 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13833 | PyObject *resultobj; | |
13834 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13835 | bool result; | |
13836 | PyObject * obj0 = 0 ; | |
13837 | char *kwnames[] = { | |
13838 | (char *) "self", NULL | |
13839 | }; | |
13840 | ||
13841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
13842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13844 | { | |
13845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13846 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13847 | ||
13848 | wxPyEndAllowThreads(__tstate); | |
13849 | if (PyErr_Occurred()) SWIG_fail; | |
13850 | } | |
13851 | { | |
13852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13853 | } | |
13854 | return resultobj; | |
13855 | fail: | |
13856 | return NULL; | |
13857 | } | |
13858 | ||
13859 | ||
13860 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13861 | PyObject *resultobj; | |
13862 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13863 | bool result; | |
13864 | PyObject * obj0 = 0 ; | |
13865 | char *kwnames[] = { | |
13866 | (char *) "self", NULL | |
13867 | }; | |
13868 | ||
13869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
13870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13872 | { | |
13873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13874 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
13875 | ||
13876 | wxPyEndAllowThreads(__tstate); | |
13877 | if (PyErr_Occurred()) SWIG_fail; | |
13878 | } | |
13879 | { | |
13880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13881 | } | |
13882 | return resultobj; | |
13883 | fail: | |
13884 | return NULL; | |
13885 | } | |
13886 | ||
13887 | ||
13888 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13889 | PyObject *resultobj; | |
13890 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13891 | bool result; | |
13892 | PyObject * obj0 = 0 ; | |
13893 | char *kwnames[] = { | |
13894 | (char *) "self", NULL | |
13895 | }; | |
13896 | ||
13897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
13898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13900 | { | |
13901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13902 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13903 | ||
13904 | wxPyEndAllowThreads(__tstate); | |
13905 | if (PyErr_Occurred()) SWIG_fail; | |
13906 | } | |
13907 | { | |
13908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13909 | } | |
13910 | return resultobj; | |
13911 | fail: | |
13912 | return NULL; | |
13913 | } | |
13914 | ||
13915 | ||
13916 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13917 | PyObject *resultobj; | |
13918 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13919 | bool result; | |
13920 | PyObject * obj0 = 0 ; | |
13921 | char *kwnames[] = { | |
13922 | (char *) "self", NULL | |
13923 | }; | |
13924 | ||
13925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
13926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13928 | { | |
13929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13930 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
13931 | ||
13932 | wxPyEndAllowThreads(__tstate); | |
13933 | if (PyErr_Occurred()) SWIG_fail; | |
13934 | } | |
13935 | { | |
13936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13937 | } | |
13938 | return resultobj; | |
13939 | fail: | |
13940 | return NULL; | |
13941 | } | |
13942 | ||
13943 | ||
13944 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13945 | PyObject *resultobj; | |
13946 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13947 | bool result; | |
13948 | PyObject * obj0 = 0 ; | |
13949 | char *kwnames[] = { | |
13950 | (char *) "self", NULL | |
13951 | }; | |
13952 | ||
13953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
13954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13956 | { | |
13957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13958 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
13959 | ||
13960 | wxPyEndAllowThreads(__tstate); | |
13961 | if (PyErr_Occurred()) SWIG_fail; | |
13962 | } | |
13963 | { | |
13964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13965 | } | |
13966 | return resultobj; | |
13967 | fail: | |
13968 | return NULL; | |
13969 | } | |
13970 | ||
13971 | ||
13972 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13973 | PyObject *resultobj; | |
13974 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13975 | bool result; | |
13976 | PyObject * obj0 = 0 ; | |
13977 | char *kwnames[] = { | |
13978 | (char *) "self", NULL | |
13979 | }; | |
13980 | ||
13981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
13982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13984 | { | |
13985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13986 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
13987 | ||
13988 | wxPyEndAllowThreads(__tstate); | |
13989 | if (PyErr_Occurred()) SWIG_fail; | |
13990 | } | |
13991 | { | |
13992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13993 | } | |
13994 | return resultobj; | |
13995 | fail: | |
13996 | return NULL; | |
13997 | } | |
13998 | ||
13999 | ||
14000 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14001 | PyObject *resultobj; | |
14002 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14003 | bool result; | |
14004 | PyObject * obj0 = 0 ; | |
14005 | char *kwnames[] = { | |
14006 | (char *) "self", NULL | |
14007 | }; | |
14008 | ||
14009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
14010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14012 | { | |
14013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14014 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14015 | ||
14016 | wxPyEndAllowThreads(__tstate); | |
14017 | if (PyErr_Occurred()) SWIG_fail; | |
14018 | } | |
14019 | { | |
14020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14021 | } | |
14022 | return resultobj; | |
14023 | fail: | |
14024 | return NULL; | |
14025 | } | |
14026 | ||
14027 | ||
14028 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14029 | PyObject *resultobj; | |
14030 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14031 | bool result; | |
14032 | PyObject * obj0 = 0 ; | |
14033 | char *kwnames[] = { | |
14034 | (char *) "self", NULL | |
14035 | }; | |
14036 | ||
14037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
14038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14040 | { | |
14041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14042 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14043 | ||
14044 | wxPyEndAllowThreads(__tstate); | |
14045 | if (PyErr_Occurred()) SWIG_fail; | |
14046 | } | |
14047 | { | |
14048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14049 | } | |
14050 | return resultobj; | |
14051 | fail: | |
14052 | return NULL; | |
14053 | } | |
14054 | ||
14055 | ||
14056 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14057 | PyObject *resultobj; | |
14058 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14059 | bool result; | |
14060 | PyObject * obj0 = 0 ; | |
14061 | char *kwnames[] = { | |
14062 | (char *) "self", NULL | |
14063 | }; | |
14064 | ||
14065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
14066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14068 | { | |
14069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14070 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14071 | ||
14072 | wxPyEndAllowThreads(__tstate); | |
14073 | if (PyErr_Occurred()) SWIG_fail; | |
14074 | } | |
14075 | { | |
14076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14077 | } | |
14078 | return resultobj; | |
14079 | fail: | |
14080 | return NULL; | |
14081 | } | |
14082 | ||
14083 | ||
14084 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14085 | PyObject *resultobj; | |
14086 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14087 | bool result; | |
14088 | PyObject * obj0 = 0 ; | |
14089 | char *kwnames[] = { | |
14090 | (char *) "self", NULL | |
14091 | }; | |
14092 | ||
14093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
14094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14096 | { | |
14097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14098 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14099 | ||
14100 | wxPyEndAllowThreads(__tstate); | |
14101 | if (PyErr_Occurred()) SWIG_fail; | |
14102 | } | |
14103 | { | |
14104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14105 | } | |
14106 | return resultobj; | |
14107 | fail: | |
14108 | return NULL; | |
14109 | } | |
14110 | ||
14111 | ||
14112 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14113 | PyObject *resultobj; | |
14114 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14115 | bool result; | |
14116 | PyObject * obj0 = 0 ; | |
14117 | char *kwnames[] = { | |
14118 | (char *) "self", NULL | |
14119 | }; | |
14120 | ||
14121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
14122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14124 | { | |
14125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14126 | result = (bool)(arg1)->LeftIsDown(); | |
14127 | ||
14128 | wxPyEndAllowThreads(__tstate); | |
14129 | if (PyErr_Occurred()) SWIG_fail; | |
14130 | } | |
14131 | { | |
14132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14133 | } | |
14134 | return resultobj; | |
14135 | fail: | |
14136 | return NULL; | |
14137 | } | |
14138 | ||
14139 | ||
14140 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14141 | PyObject *resultobj; | |
14142 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14143 | bool result; | |
14144 | PyObject * obj0 = 0 ; | |
14145 | char *kwnames[] = { | |
14146 | (char *) "self", NULL | |
14147 | }; | |
14148 | ||
14149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
14150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14152 | { | |
14153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14154 | result = (bool)(arg1)->MiddleIsDown(); | |
14155 | ||
14156 | wxPyEndAllowThreads(__tstate); | |
14157 | if (PyErr_Occurred()) SWIG_fail; | |
14158 | } | |
14159 | { | |
14160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14161 | } | |
14162 | return resultobj; | |
14163 | fail: | |
14164 | return NULL; | |
14165 | } | |
14166 | ||
14167 | ||
14168 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14169 | PyObject *resultobj; | |
14170 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14171 | bool result; | |
14172 | PyObject * obj0 = 0 ; | |
14173 | char *kwnames[] = { | |
14174 | (char *) "self", NULL | |
14175 | }; | |
14176 | ||
14177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
14178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14180 | { | |
14181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14182 | result = (bool)(arg1)->RightIsDown(); | |
14183 | ||
14184 | wxPyEndAllowThreads(__tstate); | |
14185 | if (PyErr_Occurred()) SWIG_fail; | |
14186 | } | |
14187 | { | |
14188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14189 | } | |
14190 | return resultobj; | |
14191 | fail: | |
14192 | return NULL; | |
14193 | } | |
14194 | ||
14195 | ||
14196 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14197 | PyObject *resultobj; | |
14198 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14199 | bool result; | |
14200 | PyObject * obj0 = 0 ; | |
14201 | char *kwnames[] = { | |
14202 | (char *) "self", NULL | |
14203 | }; | |
14204 | ||
14205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
14206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14208 | { | |
14209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14210 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14211 | ||
14212 | wxPyEndAllowThreads(__tstate); | |
14213 | if (PyErr_Occurred()) SWIG_fail; | |
14214 | } | |
14215 | { | |
14216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14217 | } | |
14218 | return resultobj; | |
14219 | fail: | |
14220 | return NULL; | |
14221 | } | |
14222 | ||
14223 | ||
14224 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14225 | PyObject *resultobj; | |
14226 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14227 | bool result; | |
14228 | PyObject * obj0 = 0 ; | |
14229 | char *kwnames[] = { | |
14230 | (char *) "self", NULL | |
14231 | }; | |
14232 | ||
14233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
14234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14236 | { | |
14237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14238 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14239 | ||
14240 | wxPyEndAllowThreads(__tstate); | |
14241 | if (PyErr_Occurred()) SWIG_fail; | |
14242 | } | |
14243 | { | |
14244 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14245 | } | |
14246 | return resultobj; | |
14247 | fail: | |
14248 | return NULL; | |
14249 | } | |
14250 | ||
14251 | ||
14252 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14253 | PyObject *resultobj; | |
14254 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14255 | bool result; | |
14256 | PyObject * obj0 = 0 ; | |
14257 | char *kwnames[] = { | |
14258 | (char *) "self", NULL | |
14259 | }; | |
14260 | ||
14261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
14262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14264 | { | |
14265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14266 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14267 | ||
14268 | wxPyEndAllowThreads(__tstate); | |
14269 | if (PyErr_Occurred()) SWIG_fail; | |
14270 | } | |
14271 | { | |
14272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14273 | } | |
14274 | return resultobj; | |
14275 | fail: | |
14276 | return NULL; | |
14277 | } | |
14278 | ||
14279 | ||
14280 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14281 | PyObject *resultobj; | |
14282 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14283 | bool result; | |
14284 | PyObject * obj0 = 0 ; | |
14285 | char *kwnames[] = { | |
14286 | (char *) "self", NULL | |
14287 | }; | |
14288 | ||
14289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
14290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14292 | { | |
14293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14294 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14295 | ||
14296 | wxPyEndAllowThreads(__tstate); | |
14297 | if (PyErr_Occurred()) SWIG_fail; | |
14298 | } | |
14299 | { | |
14300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14301 | } | |
14302 | return resultobj; | |
14303 | fail: | |
14304 | return NULL; | |
14305 | } | |
14306 | ||
14307 | ||
14308 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14309 | PyObject *resultobj; | |
14310 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14311 | wxPoint result; | |
14312 | PyObject * obj0 = 0 ; | |
14313 | char *kwnames[] = { | |
14314 | (char *) "self", NULL | |
14315 | }; | |
14316 | ||
14317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14320 | { | |
14321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14322 | result = (arg1)->GetPosition(); | |
14323 | ||
14324 | wxPyEndAllowThreads(__tstate); | |
14325 | if (PyErr_Occurred()) SWIG_fail; | |
14326 | } | |
14327 | { | |
14328 | wxPoint * resultptr; | |
14329 | resultptr = new wxPoint((wxPoint &) result); | |
14330 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14331 | } | |
14332 | return resultobj; | |
14333 | fail: | |
14334 | return NULL; | |
14335 | } | |
14336 | ||
14337 | ||
14338 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14339 | PyObject *resultobj; | |
14340 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14341 | long *arg2 = (long *) 0 ; | |
14342 | long *arg3 = (long *) 0 ; | |
14343 | long temp2 ; | |
14344 | long temp3 ; | |
14345 | PyObject * obj0 = 0 ; | |
14346 | char *kwnames[] = { | |
14347 | (char *) "self", NULL | |
14348 | }; | |
14349 | ||
14350 | arg2 = &temp2; | |
14351 | arg3 = &temp3; | |
14352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
14353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14355 | { | |
14356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14357 | (arg1)->GetPosition(arg2,arg3); | |
14358 | ||
14359 | wxPyEndAllowThreads(__tstate); | |
14360 | if (PyErr_Occurred()) SWIG_fail; | |
14361 | } | |
14362 | Py_INCREF(Py_None); resultobj = Py_None; | |
14363 | { | |
14364 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14365 | resultobj = t_output_helper(resultobj,o); | |
14366 | } | |
14367 | { | |
14368 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14369 | resultobj = t_output_helper(resultobj,o); | |
14370 | } | |
14371 | return resultobj; | |
14372 | fail: | |
14373 | return NULL; | |
14374 | } | |
14375 | ||
14376 | ||
14377 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14378 | PyObject *resultobj; | |
14379 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14380 | wxDC *arg2 = 0 ; | |
14381 | wxPoint result; | |
14382 | PyObject * obj0 = 0 ; | |
14383 | PyObject * obj1 = 0 ; | |
14384 | char *kwnames[] = { | |
14385 | (char *) "self",(char *) "dc", NULL | |
14386 | }; | |
14387 | ||
14388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
14389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14391 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14392 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14393 | SWIG_fail; | |
14394 | if (arg2 == NULL) { | |
14395 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14396 | SWIG_fail; | |
14397 | } | |
14398 | { | |
14399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14400 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14401 | ||
14402 | wxPyEndAllowThreads(__tstate); | |
14403 | if (PyErr_Occurred()) SWIG_fail; | |
14404 | } | |
14405 | { | |
14406 | wxPoint * resultptr; | |
14407 | resultptr = new wxPoint((wxPoint &) result); | |
14408 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14409 | } | |
14410 | return resultobj; | |
14411 | fail: | |
14412 | return NULL; | |
14413 | } | |
14414 | ||
14415 | ||
14416 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14417 | PyObject *resultobj; | |
14418 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14419 | int result; | |
14420 | PyObject * obj0 = 0 ; | |
14421 | char *kwnames[] = { | |
14422 | (char *) "self", NULL | |
14423 | }; | |
14424 | ||
14425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
14426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14428 | { | |
14429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14430 | result = (int)((wxMouseEvent const *)arg1)->GetX(); | |
14431 | ||
14432 | wxPyEndAllowThreads(__tstate); | |
14433 | if (PyErr_Occurred()) SWIG_fail; | |
14434 | } | |
14435 | resultobj = SWIG_FromInt((int)result); | |
14436 | return resultobj; | |
14437 | fail: | |
14438 | return NULL; | |
14439 | } | |
14440 | ||
14441 | ||
14442 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14443 | PyObject *resultobj; | |
14444 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14445 | int result; | |
14446 | PyObject * obj0 = 0 ; | |
14447 | char *kwnames[] = { | |
14448 | (char *) "self", NULL | |
14449 | }; | |
14450 | ||
14451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
14452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14454 | { | |
14455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14456 | result = (int)((wxMouseEvent const *)arg1)->GetY(); | |
14457 | ||
14458 | wxPyEndAllowThreads(__tstate); | |
14459 | if (PyErr_Occurred()) SWIG_fail; | |
14460 | } | |
14461 | resultobj = SWIG_FromInt((int)result); | |
14462 | return resultobj; | |
14463 | fail: | |
14464 | return NULL; | |
14465 | } | |
14466 | ||
14467 | ||
14468 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14469 | PyObject *resultobj; | |
14470 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14471 | int result; | |
14472 | PyObject * obj0 = 0 ; | |
14473 | char *kwnames[] = { | |
14474 | (char *) "self", NULL | |
14475 | }; | |
14476 | ||
14477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
14478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14480 | { | |
14481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14482 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14483 | ||
14484 | wxPyEndAllowThreads(__tstate); | |
14485 | if (PyErr_Occurred()) SWIG_fail; | |
14486 | } | |
14487 | resultobj = SWIG_FromInt((int)result); | |
14488 | return resultobj; | |
14489 | fail: | |
14490 | return NULL; | |
14491 | } | |
14492 | ||
14493 | ||
14494 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14495 | PyObject *resultobj; | |
14496 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14497 | int result; | |
14498 | PyObject * obj0 = 0 ; | |
14499 | char *kwnames[] = { | |
14500 | (char *) "self", NULL | |
14501 | }; | |
14502 | ||
14503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
14504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14506 | { | |
14507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14508 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14509 | ||
14510 | wxPyEndAllowThreads(__tstate); | |
14511 | if (PyErr_Occurred()) SWIG_fail; | |
14512 | } | |
14513 | resultobj = SWIG_FromInt((int)result); | |
14514 | return resultobj; | |
14515 | fail: | |
14516 | return NULL; | |
14517 | } | |
14518 | ||
14519 | ||
14520 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14521 | PyObject *resultobj; | |
14522 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14523 | int result; | |
14524 | PyObject * obj0 = 0 ; | |
14525 | char *kwnames[] = { | |
14526 | (char *) "self", NULL | |
14527 | }; | |
14528 | ||
14529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
14530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14532 | { | |
14533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14534 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14535 | ||
14536 | wxPyEndAllowThreads(__tstate); | |
14537 | if (PyErr_Occurred()) SWIG_fail; | |
14538 | } | |
14539 | resultobj = SWIG_FromInt((int)result); | |
14540 | return resultobj; | |
14541 | fail: | |
14542 | return NULL; | |
14543 | } | |
14544 | ||
14545 | ||
14546 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14547 | PyObject *resultobj; | |
14548 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14549 | bool result; | |
14550 | PyObject * obj0 = 0 ; | |
14551 | char *kwnames[] = { | |
14552 | (char *) "self", NULL | |
14553 | }; | |
14554 | ||
14555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
14556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14558 | { | |
14559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14560 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14561 | ||
14562 | wxPyEndAllowThreads(__tstate); | |
14563 | if (PyErr_Occurred()) SWIG_fail; | |
14564 | } | |
14565 | { | |
14566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14567 | } | |
14568 | return resultobj; | |
14569 | fail: | |
14570 | return NULL; | |
14571 | } | |
14572 | ||
14573 | ||
14574 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14575 | PyObject *resultobj; | |
14576 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14577 | int arg2 ; | |
14578 | PyObject * obj0 = 0 ; | |
14579 | PyObject * obj1 = 0 ; | |
14580 | char *kwnames[] = { | |
14581 | (char *) "self",(char *) "m_x", NULL | |
14582 | }; | |
14583 | ||
14584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
14585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14587 | arg2 = (int) SWIG_AsInt(obj1); | |
14588 | if (PyErr_Occurred()) SWIG_fail; | |
14589 | if (arg1) (arg1)->m_x = arg2; | |
14590 | ||
14591 | Py_INCREF(Py_None); resultobj = Py_None; | |
14592 | return resultobj; | |
14593 | fail: | |
14594 | return NULL; | |
14595 | } | |
14596 | ||
14597 | ||
14598 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14599 | PyObject *resultobj; | |
14600 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14601 | int result; | |
14602 | PyObject * obj0 = 0 ; | |
14603 | char *kwnames[] = { | |
14604 | (char *) "self", NULL | |
14605 | }; | |
14606 | ||
14607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
14608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14610 | result = (int) ((arg1)->m_x); | |
14611 | ||
14612 | resultobj = SWIG_FromInt((int)result); | |
14613 | return resultobj; | |
14614 | fail: | |
14615 | return NULL; | |
14616 | } | |
14617 | ||
14618 | ||
14619 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14620 | PyObject *resultobj; | |
14621 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14622 | int arg2 ; | |
14623 | PyObject * obj0 = 0 ; | |
14624 | PyObject * obj1 = 0 ; | |
14625 | char *kwnames[] = { | |
14626 | (char *) "self",(char *) "m_y", NULL | |
14627 | }; | |
14628 | ||
14629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
14630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14632 | arg2 = (int) SWIG_AsInt(obj1); | |
14633 | if (PyErr_Occurred()) SWIG_fail; | |
14634 | if (arg1) (arg1)->m_y = arg2; | |
14635 | ||
14636 | Py_INCREF(Py_None); resultobj = Py_None; | |
14637 | return resultobj; | |
14638 | fail: | |
14639 | return NULL; | |
14640 | } | |
14641 | ||
14642 | ||
14643 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14644 | PyObject *resultobj; | |
14645 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14646 | int result; | |
14647 | PyObject * obj0 = 0 ; | |
14648 | char *kwnames[] = { | |
14649 | (char *) "self", NULL | |
14650 | }; | |
14651 | ||
14652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
14653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14655 | result = (int) ((arg1)->m_y); | |
14656 | ||
14657 | resultobj = SWIG_FromInt((int)result); | |
14658 | return resultobj; | |
14659 | fail: | |
14660 | return NULL; | |
14661 | } | |
14662 | ||
14663 | ||
14664 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14665 | PyObject *resultobj; | |
14666 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14667 | bool arg2 ; | |
14668 | PyObject * obj0 = 0 ; | |
14669 | PyObject * obj1 = 0 ; | |
14670 | char *kwnames[] = { | |
14671 | (char *) "self",(char *) "m_leftDown", NULL | |
14672 | }; | |
14673 | ||
14674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14677 | arg2 = (bool) SWIG_AsBool(obj1); | |
14678 | if (PyErr_Occurred()) SWIG_fail; | |
14679 | if (arg1) (arg1)->m_leftDown = arg2; | |
14680 | ||
14681 | Py_INCREF(Py_None); resultobj = Py_None; | |
14682 | return resultobj; | |
14683 | fail: | |
14684 | return NULL; | |
14685 | } | |
14686 | ||
14687 | ||
14688 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14689 | PyObject *resultobj; | |
14690 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14691 | bool result; | |
14692 | PyObject * obj0 = 0 ; | |
14693 | char *kwnames[] = { | |
14694 | (char *) "self", NULL | |
14695 | }; | |
14696 | ||
14697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
14698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14700 | result = (bool) ((arg1)->m_leftDown); | |
14701 | ||
14702 | { | |
14703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14704 | } | |
14705 | return resultobj; | |
14706 | fail: | |
14707 | return NULL; | |
14708 | } | |
14709 | ||
14710 | ||
14711 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14712 | PyObject *resultobj; | |
14713 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14714 | bool arg2 ; | |
14715 | PyObject * obj0 = 0 ; | |
14716 | PyObject * obj1 = 0 ; | |
14717 | char *kwnames[] = { | |
14718 | (char *) "self",(char *) "m_middleDown", NULL | |
14719 | }; | |
14720 | ||
14721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14724 | arg2 = (bool) SWIG_AsBool(obj1); | |
14725 | if (PyErr_Occurred()) SWIG_fail; | |
14726 | if (arg1) (arg1)->m_middleDown = arg2; | |
14727 | ||
14728 | Py_INCREF(Py_None); resultobj = Py_None; | |
14729 | return resultobj; | |
14730 | fail: | |
14731 | return NULL; | |
14732 | } | |
14733 | ||
14734 | ||
14735 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14736 | PyObject *resultobj; | |
14737 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14738 | bool result; | |
14739 | PyObject * obj0 = 0 ; | |
14740 | char *kwnames[] = { | |
14741 | (char *) "self", NULL | |
14742 | }; | |
14743 | ||
14744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
14745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14747 | result = (bool) ((arg1)->m_middleDown); | |
14748 | ||
14749 | { | |
14750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14751 | } | |
14752 | return resultobj; | |
14753 | fail: | |
14754 | return NULL; | |
14755 | } | |
14756 | ||
14757 | ||
14758 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14759 | PyObject *resultobj; | |
14760 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14761 | bool arg2 ; | |
14762 | PyObject * obj0 = 0 ; | |
14763 | PyObject * obj1 = 0 ; | |
14764 | char *kwnames[] = { | |
14765 | (char *) "self",(char *) "m_rightDown", NULL | |
14766 | }; | |
14767 | ||
14768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14771 | arg2 = (bool) SWIG_AsBool(obj1); | |
14772 | if (PyErr_Occurred()) SWIG_fail; | |
14773 | if (arg1) (arg1)->m_rightDown = arg2; | |
14774 | ||
14775 | Py_INCREF(Py_None); resultobj = Py_None; | |
14776 | return resultobj; | |
14777 | fail: | |
14778 | return NULL; | |
14779 | } | |
14780 | ||
14781 | ||
14782 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14783 | PyObject *resultobj; | |
14784 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14785 | bool result; | |
14786 | PyObject * obj0 = 0 ; | |
14787 | char *kwnames[] = { | |
14788 | (char *) "self", NULL | |
14789 | }; | |
14790 | ||
14791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
14792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14794 | result = (bool) ((arg1)->m_rightDown); | |
14795 | ||
14796 | { | |
14797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14798 | } | |
14799 | return resultobj; | |
14800 | fail: | |
14801 | return NULL; | |
14802 | } | |
14803 | ||
14804 | ||
14805 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14806 | PyObject *resultobj; | |
14807 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14808 | bool arg2 ; | |
14809 | PyObject * obj0 = 0 ; | |
14810 | PyObject * obj1 = 0 ; | |
14811 | char *kwnames[] = { | |
14812 | (char *) "self",(char *) "m_controlDown", NULL | |
14813 | }; | |
14814 | ||
14815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14818 | arg2 = (bool) SWIG_AsBool(obj1); | |
14819 | if (PyErr_Occurred()) SWIG_fail; | |
14820 | if (arg1) (arg1)->m_controlDown = arg2; | |
14821 | ||
14822 | Py_INCREF(Py_None); resultobj = Py_None; | |
14823 | return resultobj; | |
14824 | fail: | |
14825 | return NULL; | |
14826 | } | |
14827 | ||
14828 | ||
14829 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14830 | PyObject *resultobj; | |
14831 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14832 | bool result; | |
14833 | PyObject * obj0 = 0 ; | |
14834 | char *kwnames[] = { | |
14835 | (char *) "self", NULL | |
14836 | }; | |
14837 | ||
14838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
14839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14841 | result = (bool) ((arg1)->m_controlDown); | |
14842 | ||
14843 | { | |
14844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14845 | } | |
14846 | return resultobj; | |
14847 | fail: | |
14848 | return NULL; | |
14849 | } | |
14850 | ||
14851 | ||
14852 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14853 | PyObject *resultobj; | |
14854 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14855 | bool arg2 ; | |
14856 | PyObject * obj0 = 0 ; | |
14857 | PyObject * obj1 = 0 ; | |
14858 | char *kwnames[] = { | |
14859 | (char *) "self",(char *) "m_shiftDown", NULL | |
14860 | }; | |
14861 | ||
14862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14865 | arg2 = (bool) SWIG_AsBool(obj1); | |
14866 | if (PyErr_Occurred()) SWIG_fail; | |
14867 | if (arg1) (arg1)->m_shiftDown = arg2; | |
14868 | ||
14869 | Py_INCREF(Py_None); resultobj = Py_None; | |
14870 | return resultobj; | |
14871 | fail: | |
14872 | return NULL; | |
14873 | } | |
14874 | ||
14875 | ||
14876 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14877 | PyObject *resultobj; | |
14878 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14879 | bool result; | |
14880 | PyObject * obj0 = 0 ; | |
14881 | char *kwnames[] = { | |
14882 | (char *) "self", NULL | |
14883 | }; | |
14884 | ||
14885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
14886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14888 | result = (bool) ((arg1)->m_shiftDown); | |
14889 | ||
14890 | { | |
14891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14892 | } | |
14893 | return resultobj; | |
14894 | fail: | |
14895 | return NULL; | |
14896 | } | |
14897 | ||
14898 | ||
14899 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14900 | PyObject *resultobj; | |
14901 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14902 | bool arg2 ; | |
14903 | PyObject * obj0 = 0 ; | |
14904 | PyObject * obj1 = 0 ; | |
14905 | char *kwnames[] = { | |
14906 | (char *) "self",(char *) "m_altDown", NULL | |
14907 | }; | |
14908 | ||
14909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14912 | arg2 = (bool) SWIG_AsBool(obj1); | |
14913 | if (PyErr_Occurred()) SWIG_fail; | |
14914 | if (arg1) (arg1)->m_altDown = arg2; | |
14915 | ||
14916 | Py_INCREF(Py_None); resultobj = Py_None; | |
14917 | return resultobj; | |
14918 | fail: | |
14919 | return NULL; | |
14920 | } | |
14921 | ||
14922 | ||
14923 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14924 | PyObject *resultobj; | |
14925 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14926 | bool result; | |
14927 | PyObject * obj0 = 0 ; | |
14928 | char *kwnames[] = { | |
14929 | (char *) "self", NULL | |
14930 | }; | |
14931 | ||
14932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
14933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14935 | result = (bool) ((arg1)->m_altDown); | |
14936 | ||
14937 | { | |
14938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14939 | } | |
14940 | return resultobj; | |
14941 | fail: | |
14942 | return NULL; | |
14943 | } | |
14944 | ||
14945 | ||
14946 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14947 | PyObject *resultobj; | |
14948 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14949 | bool arg2 ; | |
14950 | PyObject * obj0 = 0 ; | |
14951 | PyObject * obj1 = 0 ; | |
14952 | char *kwnames[] = { | |
14953 | (char *) "self",(char *) "m_metaDown", NULL | |
14954 | }; | |
14955 | ||
14956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14959 | arg2 = (bool) SWIG_AsBool(obj1); | |
14960 | if (PyErr_Occurred()) SWIG_fail; | |
14961 | if (arg1) (arg1)->m_metaDown = arg2; | |
14962 | ||
14963 | Py_INCREF(Py_None); resultobj = Py_None; | |
14964 | return resultobj; | |
14965 | fail: | |
14966 | return NULL; | |
14967 | } | |
14968 | ||
14969 | ||
14970 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14971 | PyObject *resultobj; | |
14972 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14973 | bool result; | |
14974 | PyObject * obj0 = 0 ; | |
14975 | char *kwnames[] = { | |
14976 | (char *) "self", NULL | |
14977 | }; | |
14978 | ||
14979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
14980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14982 | result = (bool) ((arg1)->m_metaDown); | |
14983 | ||
14984 | { | |
14985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14986 | } | |
14987 | return resultobj; | |
14988 | fail: | |
14989 | return NULL; | |
14990 | } | |
14991 | ||
14992 | ||
14993 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14994 | PyObject *resultobj; | |
14995 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14996 | int arg2 ; | |
14997 | PyObject * obj0 = 0 ; | |
14998 | PyObject * obj1 = 0 ; | |
14999 | char *kwnames[] = { | |
15000 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15001 | }; | |
15002 | ||
15003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; | |
15004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15006 | arg2 = (int) SWIG_AsInt(obj1); | |
15007 | if (PyErr_Occurred()) SWIG_fail; | |
15008 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
15009 | ||
15010 | Py_INCREF(Py_None); resultobj = Py_None; | |
15011 | return resultobj; | |
15012 | fail: | |
15013 | return NULL; | |
15014 | } | |
15015 | ||
15016 | ||
15017 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15018 | PyObject *resultobj; | |
15019 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15020 | int result; | |
15021 | PyObject * obj0 = 0 ; | |
15022 | char *kwnames[] = { | |
15023 | (char *) "self", NULL | |
15024 | }; | |
15025 | ||
15026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15029 | result = (int) ((arg1)->m_wheelRotation); | |
15030 | ||
15031 | resultobj = SWIG_FromInt((int)result); | |
15032 | return resultobj; | |
15033 | fail: | |
15034 | return NULL; | |
15035 | } | |
15036 | ||
15037 | ||
15038 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15039 | PyObject *resultobj; | |
15040 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15041 | int arg2 ; | |
15042 | PyObject * obj0 = 0 ; | |
15043 | PyObject * obj1 = 0 ; | |
15044 | char *kwnames[] = { | |
15045 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15046 | }; | |
15047 | ||
15048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; | |
15049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15051 | arg2 = (int) SWIG_AsInt(obj1); | |
15052 | if (PyErr_Occurred()) SWIG_fail; | |
15053 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
15054 | ||
15055 | Py_INCREF(Py_None); resultobj = Py_None; | |
15056 | return resultobj; | |
15057 | fail: | |
15058 | return NULL; | |
15059 | } | |
15060 | ||
15061 | ||
15062 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15063 | PyObject *resultobj; | |
15064 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15065 | int result; | |
15066 | PyObject * obj0 = 0 ; | |
15067 | char *kwnames[] = { | |
15068 | (char *) "self", NULL | |
15069 | }; | |
15070 | ||
15071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15074 | result = (int) ((arg1)->m_wheelDelta); | |
15075 | ||
15076 | resultobj = SWIG_FromInt((int)result); | |
15077 | return resultobj; | |
15078 | fail: | |
15079 | return NULL; | |
15080 | } | |
15081 | ||
15082 | ||
15083 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15084 | PyObject *resultobj; | |
15085 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15086 | int arg2 ; | |
15087 | PyObject * obj0 = 0 ; | |
15088 | PyObject * obj1 = 0 ; | |
15089 | char *kwnames[] = { | |
15090 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15091 | }; | |
15092 | ||
15093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; | |
15094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15096 | arg2 = (int) SWIG_AsInt(obj1); | |
15097 | if (PyErr_Occurred()) SWIG_fail; | |
15098 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
15099 | ||
15100 | Py_INCREF(Py_None); resultobj = Py_None; | |
15101 | return resultobj; | |
15102 | fail: | |
15103 | return NULL; | |
15104 | } | |
15105 | ||
15106 | ||
15107 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15108 | PyObject *resultobj; | |
15109 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15110 | int result; | |
15111 | PyObject * obj0 = 0 ; | |
15112 | char *kwnames[] = { | |
15113 | (char *) "self", NULL | |
15114 | }; | |
15115 | ||
15116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15119 | result = (int) ((arg1)->m_linesPerAction); | |
15120 | ||
15121 | resultobj = SWIG_FromInt((int)result); | |
15122 | return resultobj; | |
15123 | fail: | |
15124 | return NULL; | |
15125 | } | |
15126 | ||
15127 | ||
15128 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
15129 | PyObject *obj; | |
15130 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15131 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15132 | Py_INCREF(obj); | |
15133 | return Py_BuildValue((char *)""); | |
15134 | } | |
15135 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15136 | PyObject *resultobj; | |
15137 | int arg1 = (int) 0 ; | |
15138 | int arg2 = (int) 0 ; | |
15139 | wxSetCursorEvent *result; | |
15140 | PyObject * obj0 = 0 ; | |
15141 | PyObject * obj1 = 0 ; | |
15142 | char *kwnames[] = { | |
15143 | (char *) "x",(char *) "y", NULL | |
15144 | }; | |
15145 | ||
15146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; | |
15147 | if (obj0) { | |
15148 | arg1 = (int) SWIG_AsInt(obj0); | |
15149 | if (PyErr_Occurred()) SWIG_fail; | |
15150 | } | |
15151 | if (obj1) { | |
15152 | arg2 = (int) SWIG_AsInt(obj1); | |
15153 | if (PyErr_Occurred()) SWIG_fail; | |
15154 | } | |
15155 | { | |
15156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15157 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15158 | ||
15159 | wxPyEndAllowThreads(__tstate); | |
15160 | if (PyErr_Occurred()) SWIG_fail; | |
15161 | } | |
15162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); | |
15163 | return resultobj; | |
15164 | fail: | |
15165 | return NULL; | |
15166 | } | |
15167 | ||
15168 | ||
15169 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15170 | PyObject *resultobj; | |
15171 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15172 | int result; | |
15173 | PyObject * obj0 = 0 ; | |
15174 | char *kwnames[] = { | |
15175 | (char *) "self", NULL | |
15176 | }; | |
15177 | ||
15178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15181 | { | |
15182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15183 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); | |
15184 | ||
15185 | wxPyEndAllowThreads(__tstate); | |
15186 | if (PyErr_Occurred()) SWIG_fail; | |
15187 | } | |
15188 | resultobj = SWIG_FromInt((int)result); | |
15189 | return resultobj; | |
15190 | fail: | |
15191 | return NULL; | |
15192 | } | |
15193 | ||
15194 | ||
15195 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15196 | PyObject *resultobj; | |
15197 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15198 | int result; | |
15199 | PyObject * obj0 = 0 ; | |
15200 | char *kwnames[] = { | |
15201 | (char *) "self", NULL | |
15202 | }; | |
15203 | ||
15204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15207 | { | |
15208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15209 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); | |
15210 | ||
15211 | wxPyEndAllowThreads(__tstate); | |
15212 | if (PyErr_Occurred()) SWIG_fail; | |
15213 | } | |
15214 | resultobj = SWIG_FromInt((int)result); | |
15215 | return resultobj; | |
15216 | fail: | |
15217 | return NULL; | |
15218 | } | |
15219 | ||
15220 | ||
15221 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15222 | PyObject *resultobj; | |
15223 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15224 | wxCursor *arg2 = 0 ; | |
15225 | PyObject * obj0 = 0 ; | |
15226 | PyObject * obj1 = 0 ; | |
15227 | char *kwnames[] = { | |
15228 | (char *) "self",(char *) "cursor", NULL | |
15229 | }; | |
15230 | ||
15231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15234 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15235 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15236 | SWIG_fail; | |
15237 | if (arg2 == NULL) { | |
15238 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15239 | SWIG_fail; | |
15240 | } | |
15241 | { | |
15242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15243 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15244 | ||
15245 | wxPyEndAllowThreads(__tstate); | |
15246 | if (PyErr_Occurred()) SWIG_fail; | |
15247 | } | |
15248 | Py_INCREF(Py_None); resultobj = Py_None; | |
15249 | return resultobj; | |
15250 | fail: | |
15251 | return NULL; | |
15252 | } | |
15253 | ||
15254 | ||
15255 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15256 | PyObject *resultobj; | |
15257 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15258 | wxCursor *result; | |
15259 | PyObject * obj0 = 0 ; | |
15260 | char *kwnames[] = { | |
15261 | (char *) "self", NULL | |
15262 | }; | |
15263 | ||
15264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15267 | { | |
15268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15269 | { | |
15270 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15271 | result = (wxCursor *) &_result_ref; | |
15272 | } | |
15273 | ||
15274 | wxPyEndAllowThreads(__tstate); | |
15275 | if (PyErr_Occurred()) SWIG_fail; | |
15276 | } | |
15277 | { | |
15278 | wxCursor* resultptr = new wxCursor(*result); | |
15279 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15280 | } | |
15281 | return resultobj; | |
15282 | fail: | |
15283 | return NULL; | |
15284 | } | |
15285 | ||
15286 | ||
15287 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15288 | PyObject *resultobj; | |
15289 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15290 | bool result; | |
15291 | PyObject * obj0 = 0 ; | |
15292 | char *kwnames[] = { | |
15293 | (char *) "self", NULL | |
15294 | }; | |
15295 | ||
15296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15299 | { | |
15300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15301 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15302 | ||
15303 | wxPyEndAllowThreads(__tstate); | |
15304 | if (PyErr_Occurred()) SWIG_fail; | |
15305 | } | |
15306 | { | |
15307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15308 | } | |
15309 | return resultobj; | |
15310 | fail: | |
15311 | return NULL; | |
15312 | } | |
15313 | ||
15314 | ||
15315 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
15316 | PyObject *obj; | |
15317 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15318 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15319 | Py_INCREF(obj); | |
15320 | return Py_BuildValue((char *)""); | |
15321 | } | |
15322 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15323 | PyObject *resultobj; | |
15324 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15325 | wxKeyEvent *result; | |
15326 | PyObject * obj0 = 0 ; | |
15327 | char *kwnames[] = { | |
15328 | (char *) "keyType", NULL | |
15329 | }; | |
15330 | ||
15331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; | |
15332 | if (obj0) { | |
15333 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
15334 | if (PyErr_Occurred()) SWIG_fail; | |
15335 | } | |
15336 | { | |
15337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15338 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15339 | ||
15340 | wxPyEndAllowThreads(__tstate); | |
15341 | if (PyErr_Occurred()) SWIG_fail; | |
15342 | } | |
15343 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); | |
15344 | return resultobj; | |
15345 | fail: | |
15346 | return NULL; | |
15347 | } | |
15348 | ||
15349 | ||
15350 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15351 | PyObject *resultobj; | |
15352 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15353 | bool result; | |
15354 | PyObject * obj0 = 0 ; | |
15355 | char *kwnames[] = { | |
15356 | (char *) "self", NULL | |
15357 | }; | |
15358 | ||
15359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15362 | { | |
15363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15364 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15365 | ||
15366 | wxPyEndAllowThreads(__tstate); | |
15367 | if (PyErr_Occurred()) SWIG_fail; | |
15368 | } | |
15369 | { | |
15370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15371 | } | |
15372 | return resultobj; | |
15373 | fail: | |
15374 | return NULL; | |
15375 | } | |
15376 | ||
15377 | ||
15378 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15379 | PyObject *resultobj; | |
15380 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15381 | bool result; | |
15382 | PyObject * obj0 = 0 ; | |
15383 | char *kwnames[] = { | |
15384 | (char *) "self", NULL | |
15385 | }; | |
15386 | ||
15387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15390 | { | |
15391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15392 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15393 | ||
15394 | wxPyEndAllowThreads(__tstate); | |
15395 | if (PyErr_Occurred()) SWIG_fail; | |
15396 | } | |
15397 | { | |
15398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15399 | } | |
15400 | return resultobj; | |
15401 | fail: | |
15402 | return NULL; | |
15403 | } | |
15404 | ||
15405 | ||
15406 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15407 | PyObject *resultobj; | |
15408 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15409 | bool result; | |
15410 | PyObject * obj0 = 0 ; | |
15411 | char *kwnames[] = { | |
15412 | (char *) "self", NULL | |
15413 | }; | |
15414 | ||
15415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
15416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15418 | { | |
15419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15420 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15421 | ||
15422 | wxPyEndAllowThreads(__tstate); | |
15423 | if (PyErr_Occurred()) SWIG_fail; | |
15424 | } | |
15425 | { | |
15426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15427 | } | |
15428 | return resultobj; | |
15429 | fail: | |
15430 | return NULL; | |
15431 | } | |
15432 | ||
15433 | ||
15434 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15435 | PyObject *resultobj; | |
15436 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15437 | bool result; | |
15438 | PyObject * obj0 = 0 ; | |
15439 | char *kwnames[] = { | |
15440 | (char *) "self", NULL | |
15441 | }; | |
15442 | ||
15443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15446 | { | |
15447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15448 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15449 | ||
15450 | wxPyEndAllowThreads(__tstate); | |
15451 | if (PyErr_Occurred()) SWIG_fail; | |
15452 | } | |
15453 | { | |
15454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15455 | } | |
15456 | return resultobj; | |
15457 | fail: | |
15458 | return NULL; | |
15459 | } | |
15460 | ||
15461 | ||
15462 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15463 | PyObject *resultobj; | |
15464 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15465 | bool result; | |
15466 | PyObject * obj0 = 0 ; | |
15467 | char *kwnames[] = { | |
15468 | (char *) "self", NULL | |
15469 | }; | |
15470 | ||
15471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
15472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15474 | { | |
15475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15476 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15477 | ||
15478 | wxPyEndAllowThreads(__tstate); | |
15479 | if (PyErr_Occurred()) SWIG_fail; | |
15480 | } | |
15481 | { | |
15482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15483 | } | |
15484 | return resultobj; | |
15485 | fail: | |
15486 | return NULL; | |
15487 | } | |
15488 | ||
15489 | ||
15490 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15491 | PyObject *resultobj; | |
15492 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15493 | int result; | |
15494 | PyObject * obj0 = 0 ; | |
15495 | char *kwnames[] = { | |
15496 | (char *) "self", NULL | |
15497 | }; | |
15498 | ||
15499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15502 | { | |
15503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15504 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15505 | ||
15506 | wxPyEndAllowThreads(__tstate); | |
15507 | if (PyErr_Occurred()) SWIG_fail; | |
15508 | } | |
15509 | resultobj = SWIG_FromInt((int)result); | |
15510 | return resultobj; | |
15511 | fail: | |
15512 | return NULL; | |
15513 | } | |
15514 | ||
15515 | ||
15516 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15517 | PyObject *resultobj; | |
15518 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15519 | int result; | |
15520 | PyObject * obj0 = 0 ; | |
15521 | char *kwnames[] = { | |
15522 | (char *) "self", NULL | |
15523 | }; | |
15524 | ||
15525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
15526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15528 | { | |
15529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15530 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
15531 | ||
15532 | wxPyEndAllowThreads(__tstate); | |
15533 | if (PyErr_Occurred()) SWIG_fail; | |
15534 | } | |
15535 | resultobj = SWIG_FromInt((int)result); | |
15536 | return resultobj; | |
15537 | fail: | |
15538 | return NULL; | |
15539 | } | |
15540 | ||
15541 | ||
15542 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15543 | PyObject *resultobj; | |
15544 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15545 | unsigned int result; | |
15546 | PyObject * obj0 = 0 ; | |
15547 | char *kwnames[] = { | |
15548 | (char *) "self", NULL | |
15549 | }; | |
15550 | ||
15551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
15552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15554 | { | |
15555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15556 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); | |
15557 | ||
15558 | wxPyEndAllowThreads(__tstate); | |
15559 | if (PyErr_Occurred()) SWIG_fail; | |
15560 | } | |
15561 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
15562 | return resultobj; | |
15563 | fail: | |
15564 | return NULL; | |
15565 | } | |
15566 | ||
15567 | ||
15568 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15569 | PyObject *resultobj; | |
15570 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15571 | unsigned int result; | |
15572 | PyObject * obj0 = 0 ; | |
15573 | char *kwnames[] = { | |
15574 | (char *) "self", NULL | |
15575 | }; | |
15576 | ||
15577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
15578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15580 | { | |
15581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15582 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); | |
15583 | ||
15584 | wxPyEndAllowThreads(__tstate); | |
15585 | if (PyErr_Occurred()) SWIG_fail; | |
15586 | } | |
15587 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
15588 | return resultobj; | |
15589 | fail: | |
15590 | return NULL; | |
15591 | } | |
15592 | ||
15593 | ||
15594 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15595 | PyObject *resultobj; | |
15596 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15597 | wxPoint result; | |
15598 | PyObject * obj0 = 0 ; | |
15599 | char *kwnames[] = { | |
15600 | (char *) "self", NULL | |
15601 | }; | |
15602 | ||
15603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15606 | { | |
15607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15608 | result = (arg1)->GetPosition(); | |
15609 | ||
15610 | wxPyEndAllowThreads(__tstate); | |
15611 | if (PyErr_Occurred()) SWIG_fail; | |
15612 | } | |
15613 | { | |
15614 | wxPoint * resultptr; | |
15615 | resultptr = new wxPoint((wxPoint &) result); | |
15616 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
15617 | } | |
15618 | return resultobj; | |
15619 | fail: | |
15620 | return NULL; | |
15621 | } | |
15622 | ||
15623 | ||
15624 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15625 | PyObject *resultobj; | |
15626 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15627 | long *arg2 = (long *) 0 ; | |
15628 | long *arg3 = (long *) 0 ; | |
15629 | long temp2 ; | |
15630 | long temp3 ; | |
15631 | PyObject * obj0 = 0 ; | |
15632 | char *kwnames[] = { | |
15633 | (char *) "self", NULL | |
15634 | }; | |
15635 | ||
15636 | arg2 = &temp2; | |
15637 | arg3 = &temp3; | |
15638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15641 | { | |
15642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15643 | (arg1)->GetPosition(arg2,arg3); | |
15644 | ||
15645 | wxPyEndAllowThreads(__tstate); | |
15646 | if (PyErr_Occurred()) SWIG_fail; | |
15647 | } | |
15648 | Py_INCREF(Py_None); resultobj = Py_None; | |
15649 | { | |
15650 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15651 | resultobj = t_output_helper(resultobj,o); | |
15652 | } | |
15653 | { | |
15654 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15655 | resultobj = t_output_helper(resultobj,o); | |
15656 | } | |
15657 | return resultobj; | |
15658 | fail: | |
15659 | return NULL; | |
15660 | } | |
15661 | ||
15662 | ||
15663 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15664 | PyObject *resultobj; | |
15665 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15666 | int result; | |
15667 | PyObject * obj0 = 0 ; | |
15668 | char *kwnames[] = { | |
15669 | (char *) "self", NULL | |
15670 | }; | |
15671 | ||
15672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
15673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15675 | { | |
15676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15677 | result = (int)((wxKeyEvent const *)arg1)->GetX(); | |
15678 | ||
15679 | wxPyEndAllowThreads(__tstate); | |
15680 | if (PyErr_Occurred()) SWIG_fail; | |
15681 | } | |
15682 | resultobj = SWIG_FromInt((int)result); | |
15683 | return resultobj; | |
15684 | fail: | |
15685 | return NULL; | |
15686 | } | |
15687 | ||
15688 | ||
15689 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15690 | PyObject *resultobj; | |
15691 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15692 | int result; | |
15693 | PyObject * obj0 = 0 ; | |
15694 | char *kwnames[] = { | |
15695 | (char *) "self", NULL | |
15696 | }; | |
15697 | ||
15698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
15699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15701 | { | |
15702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15703 | result = (int)((wxKeyEvent const *)arg1)->GetY(); | |
15704 | ||
15705 | wxPyEndAllowThreads(__tstate); | |
15706 | if (PyErr_Occurred()) SWIG_fail; | |
15707 | } | |
15708 | resultobj = SWIG_FromInt((int)result); | |
15709 | return resultobj; | |
15710 | fail: | |
15711 | return NULL; | |
15712 | } | |
15713 | ||
15714 | ||
15715 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15716 | PyObject *resultobj; | |
15717 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15718 | int arg2 ; | |
15719 | PyObject * obj0 = 0 ; | |
15720 | PyObject * obj1 = 0 ; | |
15721 | char *kwnames[] = { | |
15722 | (char *) "self",(char *) "m_x", NULL | |
15723 | }; | |
15724 | ||
15725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
15726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15728 | arg2 = (int) SWIG_AsInt(obj1); | |
15729 | if (PyErr_Occurred()) SWIG_fail; | |
15730 | if (arg1) (arg1)->m_x = arg2; | |
15731 | ||
15732 | Py_INCREF(Py_None); resultobj = Py_None; | |
15733 | return resultobj; | |
15734 | fail: | |
15735 | return NULL; | |
15736 | } | |
15737 | ||
15738 | ||
15739 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15740 | PyObject *resultobj; | |
15741 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15742 | int result; | |
15743 | PyObject * obj0 = 0 ; | |
15744 | char *kwnames[] = { | |
15745 | (char *) "self", NULL | |
15746 | }; | |
15747 | ||
15748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15751 | result = (int) ((arg1)->m_x); | |
15752 | ||
15753 | resultobj = SWIG_FromInt((int)result); | |
15754 | return resultobj; | |
15755 | fail: | |
15756 | return NULL; | |
15757 | } | |
15758 | ||
15759 | ||
15760 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15761 | PyObject *resultobj; | |
15762 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15763 | int arg2 ; | |
15764 | PyObject * obj0 = 0 ; | |
15765 | PyObject * obj1 = 0 ; | |
15766 | char *kwnames[] = { | |
15767 | (char *) "self",(char *) "m_y", NULL | |
15768 | }; | |
15769 | ||
15770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
15771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15773 | arg2 = (int) SWIG_AsInt(obj1); | |
15774 | if (PyErr_Occurred()) SWIG_fail; | |
15775 | if (arg1) (arg1)->m_y = arg2; | |
15776 | ||
15777 | Py_INCREF(Py_None); resultobj = Py_None; | |
15778 | return resultobj; | |
15779 | fail: | |
15780 | return NULL; | |
15781 | } | |
15782 | ||
15783 | ||
15784 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15785 | PyObject *resultobj; | |
15786 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15787 | int result; | |
15788 | PyObject * obj0 = 0 ; | |
15789 | char *kwnames[] = { | |
15790 | (char *) "self", NULL | |
15791 | }; | |
15792 | ||
15793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15796 | result = (int) ((arg1)->m_y); | |
15797 | ||
15798 | resultobj = SWIG_FromInt((int)result); | |
15799 | return resultobj; | |
15800 | fail: | |
15801 | return NULL; | |
15802 | } | |
15803 | ||
15804 | ||
15805 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15806 | PyObject *resultobj; | |
15807 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15808 | long arg2 ; | |
15809 | PyObject * obj0 = 0 ; | |
15810 | PyObject * obj1 = 0 ; | |
15811 | char *kwnames[] = { | |
15812 | (char *) "self",(char *) "m_keyCode", NULL | |
15813 | }; | |
15814 | ||
15815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15818 | arg2 = (long) SWIG_AsLong(obj1); | |
15819 | if (PyErr_Occurred()) SWIG_fail; | |
15820 | if (arg1) (arg1)->m_keyCode = arg2; | |
15821 | ||
15822 | Py_INCREF(Py_None); resultobj = Py_None; | |
15823 | return resultobj; | |
15824 | fail: | |
15825 | return NULL; | |
15826 | } | |
15827 | ||
15828 | ||
15829 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15830 | PyObject *resultobj; | |
15831 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15832 | long result; | |
15833 | PyObject * obj0 = 0 ; | |
15834 | char *kwnames[] = { | |
15835 | (char *) "self", NULL | |
15836 | }; | |
15837 | ||
15838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
15839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15841 | result = (long) ((arg1)->m_keyCode); | |
15842 | ||
15843 | resultobj = SWIG_FromLong((long)result); | |
15844 | return resultobj; | |
15845 | fail: | |
15846 | return NULL; | |
15847 | } | |
15848 | ||
15849 | ||
15850 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15851 | PyObject *resultobj; | |
15852 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15853 | bool arg2 ; | |
15854 | PyObject * obj0 = 0 ; | |
15855 | PyObject * obj1 = 0 ; | |
15856 | char *kwnames[] = { | |
15857 | (char *) "self",(char *) "m_controlDown", NULL | |
15858 | }; | |
15859 | ||
15860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15863 | arg2 = (bool) SWIG_AsBool(obj1); | |
15864 | if (PyErr_Occurred()) SWIG_fail; | |
15865 | if (arg1) (arg1)->m_controlDown = arg2; | |
15866 | ||
15867 | Py_INCREF(Py_None); resultobj = Py_None; | |
15868 | return resultobj; | |
15869 | fail: | |
15870 | return NULL; | |
15871 | } | |
15872 | ||
15873 | ||
15874 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15875 | PyObject *resultobj; | |
15876 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15877 | bool result; | |
15878 | PyObject * obj0 = 0 ; | |
15879 | char *kwnames[] = { | |
15880 | (char *) "self", NULL | |
15881 | }; | |
15882 | ||
15883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15886 | result = (bool) ((arg1)->m_controlDown); | |
15887 | ||
15888 | { | |
15889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15890 | } | |
15891 | return resultobj; | |
15892 | fail: | |
15893 | return NULL; | |
15894 | } | |
15895 | ||
15896 | ||
15897 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15898 | PyObject *resultobj; | |
15899 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15900 | bool arg2 ; | |
15901 | PyObject * obj0 = 0 ; | |
15902 | PyObject * obj1 = 0 ; | |
15903 | char *kwnames[] = { | |
15904 | (char *) "self",(char *) "m_shiftDown", NULL | |
15905 | }; | |
15906 | ||
15907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15910 | arg2 = (bool) SWIG_AsBool(obj1); | |
15911 | if (PyErr_Occurred()) SWIG_fail; | |
15912 | if (arg1) (arg1)->m_shiftDown = arg2; | |
15913 | ||
15914 | Py_INCREF(Py_None); resultobj = Py_None; | |
15915 | return resultobj; | |
15916 | fail: | |
15917 | return NULL; | |
15918 | } | |
15919 | ||
15920 | ||
15921 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15922 | PyObject *resultobj; | |
15923 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15924 | bool result; | |
15925 | PyObject * obj0 = 0 ; | |
15926 | char *kwnames[] = { | |
15927 | (char *) "self", NULL | |
15928 | }; | |
15929 | ||
15930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15933 | result = (bool) ((arg1)->m_shiftDown); | |
15934 | ||
15935 | { | |
15936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15937 | } | |
15938 | return resultobj; | |
15939 | fail: | |
15940 | return NULL; | |
15941 | } | |
15942 | ||
15943 | ||
15944 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15945 | PyObject *resultobj; | |
15946 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15947 | bool arg2 ; | |
15948 | PyObject * obj0 = 0 ; | |
15949 | PyObject * obj1 = 0 ; | |
15950 | char *kwnames[] = { | |
15951 | (char *) "self",(char *) "m_altDown", NULL | |
15952 | }; | |
15953 | ||
15954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15957 | arg2 = (bool) SWIG_AsBool(obj1); | |
15958 | if (PyErr_Occurred()) SWIG_fail; | |
15959 | if (arg1) (arg1)->m_altDown = arg2; | |
15960 | ||
15961 | Py_INCREF(Py_None); resultobj = Py_None; | |
15962 | return resultobj; | |
15963 | fail: | |
15964 | return NULL; | |
15965 | } | |
15966 | ||
15967 | ||
15968 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15969 | PyObject *resultobj; | |
15970 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15971 | bool result; | |
15972 | PyObject * obj0 = 0 ; | |
15973 | char *kwnames[] = { | |
15974 | (char *) "self", NULL | |
15975 | }; | |
15976 | ||
15977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15980 | result = (bool) ((arg1)->m_altDown); | |
15981 | ||
15982 | { | |
15983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15984 | } | |
15985 | return resultobj; | |
15986 | fail: | |
15987 | return NULL; | |
15988 | } | |
15989 | ||
15990 | ||
15991 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15992 | PyObject *resultobj; | |
15993 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15994 | bool arg2 ; | |
15995 | PyObject * obj0 = 0 ; | |
15996 | PyObject * obj1 = 0 ; | |
15997 | char *kwnames[] = { | |
15998 | (char *) "self",(char *) "m_metaDown", NULL | |
15999 | }; | |
16000 | ||
16001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16004 | arg2 = (bool) SWIG_AsBool(obj1); | |
16005 | if (PyErr_Occurred()) SWIG_fail; | |
16006 | if (arg1) (arg1)->m_metaDown = arg2; | |
16007 | ||
16008 | Py_INCREF(Py_None); resultobj = Py_None; | |
16009 | return resultobj; | |
16010 | fail: | |
16011 | return NULL; | |
16012 | } | |
16013 | ||
16014 | ||
16015 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16016 | PyObject *resultobj; | |
16017 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16018 | bool result; | |
16019 | PyObject * obj0 = 0 ; | |
16020 | char *kwnames[] = { | |
16021 | (char *) "self", NULL | |
16022 | }; | |
16023 | ||
16024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
16025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16027 | result = (bool) ((arg1)->m_metaDown); | |
16028 | ||
16029 | { | |
16030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16031 | } | |
16032 | return resultobj; | |
16033 | fail: | |
16034 | return NULL; | |
16035 | } | |
16036 | ||
16037 | ||
16038 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16039 | PyObject *resultobj; | |
16040 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16041 | bool arg2 ; | |
16042 | PyObject * obj0 = 0 ; | |
16043 | PyObject * obj1 = 0 ; | |
16044 | char *kwnames[] = { | |
16045 | (char *) "self",(char *) "m_scanCode", NULL | |
16046 | }; | |
16047 | ||
16048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16051 | arg2 = (bool) SWIG_AsBool(obj1); | |
16052 | if (PyErr_Occurred()) SWIG_fail; | |
16053 | if (arg1) (arg1)->m_scanCode = arg2; | |
16054 | ||
16055 | Py_INCREF(Py_None); resultobj = Py_None; | |
16056 | return resultobj; | |
16057 | fail: | |
16058 | return NULL; | |
16059 | } | |
16060 | ||
16061 | ||
16062 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16063 | PyObject *resultobj; | |
16064 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16065 | bool result; | |
16066 | PyObject * obj0 = 0 ; | |
16067 | char *kwnames[] = { | |
16068 | (char *) "self", NULL | |
16069 | }; | |
16070 | ||
16071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
16072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16074 | result = (bool) ((arg1)->m_scanCode); | |
16075 | ||
16076 | { | |
16077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16078 | } | |
16079 | return resultobj; | |
16080 | fail: | |
16081 | return NULL; | |
16082 | } | |
16083 | ||
16084 | ||
16085 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16086 | PyObject *resultobj; | |
16087 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16088 | unsigned int arg2 ; | |
16089 | PyObject * obj0 = 0 ; | |
16090 | PyObject * obj1 = 0 ; | |
16091 | char *kwnames[] = { | |
16092 | (char *) "self",(char *) "m_rawCode", NULL | |
16093 | }; | |
16094 | ||
16095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16098 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16099 | if (PyErr_Occurred()) SWIG_fail; | |
16100 | if (arg1) (arg1)->m_rawCode = arg2; | |
16101 | ||
16102 | Py_INCREF(Py_None); resultobj = Py_None; | |
16103 | return resultobj; | |
16104 | fail: | |
16105 | return NULL; | |
16106 | } | |
16107 | ||
16108 | ||
16109 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16110 | PyObject *resultobj; | |
16111 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16112 | unsigned int result; | |
16113 | PyObject * obj0 = 0 ; | |
16114 | char *kwnames[] = { | |
16115 | (char *) "self", NULL | |
16116 | }; | |
16117 | ||
16118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
16119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16121 | result = (unsigned int) ((arg1)->m_rawCode); | |
16122 | ||
16123 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
16124 | return resultobj; | |
16125 | fail: | |
16126 | return NULL; | |
16127 | } | |
16128 | ||
16129 | ||
16130 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16131 | PyObject *resultobj; | |
16132 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16133 | unsigned int arg2 ; | |
16134 | PyObject * obj0 = 0 ; | |
16135 | PyObject * obj1 = 0 ; | |
16136 | char *kwnames[] = { | |
16137 | (char *) "self",(char *) "m_rawFlags", NULL | |
16138 | }; | |
16139 | ||
16140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
16141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16143 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16144 | if (PyErr_Occurred()) SWIG_fail; | |
16145 | if (arg1) (arg1)->m_rawFlags = arg2; | |
16146 | ||
16147 | Py_INCREF(Py_None); resultobj = Py_None; | |
16148 | return resultobj; | |
16149 | fail: | |
16150 | return NULL; | |
16151 | } | |
16152 | ||
16153 | ||
16154 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16155 | PyObject *resultobj; | |
16156 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16157 | unsigned int result; | |
16158 | PyObject * obj0 = 0 ; | |
16159 | char *kwnames[] = { | |
16160 | (char *) "self", NULL | |
16161 | }; | |
16162 | ||
16163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
16164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16166 | result = (unsigned int) ((arg1)->m_rawFlags); | |
16167 | ||
16168 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
16169 | return resultobj; | |
16170 | fail: | |
16171 | return NULL; | |
16172 | } | |
16173 | ||
16174 | ||
16175 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
16176 | PyObject *obj; | |
16177 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16178 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16179 | Py_INCREF(obj); | |
16180 | return Py_BuildValue((char *)""); | |
16181 | } | |
16182 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16183 | PyObject *resultobj; | |
16184 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16185 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16186 | int arg2 = (int) 0 ; | |
16187 | wxSizeEvent *result; | |
16188 | wxSize temp1 ; | |
16189 | PyObject * obj0 = 0 ; | |
16190 | PyObject * obj1 = 0 ; | |
16191 | char *kwnames[] = { | |
16192 | (char *) "sz",(char *) "winid", NULL | |
16193 | }; | |
16194 | ||
16195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
16196 | if (obj0) { | |
16197 | { | |
16198 | arg1 = &temp1; | |
16199 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16200 | } | |
16201 | } | |
16202 | if (obj1) { | |
16203 | arg2 = (int) SWIG_AsInt(obj1); | |
16204 | if (PyErr_Occurred()) SWIG_fail; | |
16205 | } | |
16206 | { | |
16207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16208 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16209 | ||
16210 | wxPyEndAllowThreads(__tstate); | |
16211 | if (PyErr_Occurred()) SWIG_fail; | |
16212 | } | |
16213 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); | |
16214 | return resultobj; | |
16215 | fail: | |
16216 | return NULL; | |
16217 | } | |
16218 | ||
16219 | ||
16220 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16221 | PyObject *resultobj; | |
16222 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16223 | wxSize result; | |
16224 | PyObject * obj0 = 0 ; | |
16225 | char *kwnames[] = { | |
16226 | (char *) "self", NULL | |
16227 | }; | |
16228 | ||
16229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
16230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16232 | { | |
16233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16234 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16235 | ||
16236 | wxPyEndAllowThreads(__tstate); | |
16237 | if (PyErr_Occurred()) SWIG_fail; | |
16238 | } | |
16239 | { | |
16240 | wxSize * resultptr; | |
16241 | resultptr = new wxSize((wxSize &) result); | |
16242 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16243 | } | |
16244 | return resultobj; | |
16245 | fail: | |
16246 | return NULL; | |
16247 | } | |
16248 | ||
16249 | ||
16250 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16251 | PyObject *resultobj; | |
16252 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16253 | wxRect result; | |
16254 | PyObject * obj0 = 0 ; | |
16255 | char *kwnames[] = { | |
16256 | (char *) "self", NULL | |
16257 | }; | |
16258 | ||
16259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
16260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16262 | { | |
16263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16264 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16265 | ||
16266 | wxPyEndAllowThreads(__tstate); | |
16267 | if (PyErr_Occurred()) SWIG_fail; | |
16268 | } | |
16269 | { | |
16270 | wxRect * resultptr; | |
16271 | resultptr = new wxRect((wxRect &) result); | |
16272 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16273 | } | |
16274 | return resultobj; | |
16275 | fail: | |
16276 | return NULL; | |
16277 | } | |
16278 | ||
16279 | ||
16280 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16281 | PyObject *resultobj; | |
16282 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16283 | wxRect arg2 ; | |
16284 | wxRect *argp2 ; | |
16285 | PyObject * obj0 = 0 ; | |
16286 | PyObject * obj1 = 0 ; | |
16287 | char *kwnames[] = { | |
16288 | (char *) "self",(char *) "rect", NULL | |
16289 | }; | |
16290 | ||
16291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16294 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16295 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16296 | arg2 = *argp2; | |
16297 | { | |
16298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16299 | (arg1)->SetRect(arg2); | |
16300 | ||
16301 | wxPyEndAllowThreads(__tstate); | |
16302 | if (PyErr_Occurred()) SWIG_fail; | |
16303 | } | |
16304 | Py_INCREF(Py_None); resultobj = Py_None; | |
16305 | return resultobj; | |
16306 | fail: | |
16307 | return NULL; | |
16308 | } | |
16309 | ||
16310 | ||
16311 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16312 | PyObject *resultobj; | |
16313 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16314 | wxSize arg2 ; | |
16315 | wxSize *argp2 ; | |
16316 | PyObject * obj0 = 0 ; | |
16317 | PyObject * obj1 = 0 ; | |
16318 | char *kwnames[] = { | |
16319 | (char *) "self",(char *) "size", NULL | |
16320 | }; | |
16321 | ||
16322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
16323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16325 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16326 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16327 | arg2 = *argp2; | |
16328 | { | |
16329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16330 | wxSizeEvent_SetSize(arg1,arg2); | |
16331 | ||
16332 | wxPyEndAllowThreads(__tstate); | |
16333 | if (PyErr_Occurred()) SWIG_fail; | |
16334 | } | |
16335 | Py_INCREF(Py_None); resultobj = Py_None; | |
16336 | return resultobj; | |
16337 | fail: | |
16338 | return NULL; | |
16339 | } | |
16340 | ||
16341 | ||
16342 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16343 | PyObject *resultobj; | |
16344 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16345 | wxSize *arg2 = (wxSize *) 0 ; | |
16346 | PyObject * obj0 = 0 ; | |
16347 | PyObject * obj1 = 0 ; | |
16348 | char *kwnames[] = { | |
16349 | (char *) "self",(char *) "m_size", NULL | |
16350 | }; | |
16351 | ||
16352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
16353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16355 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16357 | if (arg1) (arg1)->m_size = *arg2; | |
16358 | ||
16359 | Py_INCREF(Py_None); resultobj = Py_None; | |
16360 | return resultobj; | |
16361 | fail: | |
16362 | return NULL; | |
16363 | } | |
16364 | ||
16365 | ||
16366 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16367 | PyObject *resultobj; | |
16368 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16369 | wxSize *result; | |
16370 | PyObject * obj0 = 0 ; | |
16371 | char *kwnames[] = { | |
16372 | (char *) "self", NULL | |
16373 | }; | |
16374 | ||
16375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
16376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16378 | result = (wxSize *)& ((arg1)->m_size); | |
16379 | ||
16380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
16381 | return resultobj; | |
16382 | fail: | |
16383 | return NULL; | |
16384 | } | |
16385 | ||
16386 | ||
16387 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16388 | PyObject *resultobj; | |
16389 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16390 | wxRect *arg2 = (wxRect *) 0 ; | |
16391 | PyObject * obj0 = 0 ; | |
16392 | PyObject * obj1 = 0 ; | |
16393 | char *kwnames[] = { | |
16394 | (char *) "self",(char *) "m_rect", NULL | |
16395 | }; | |
16396 | ||
16397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16400 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16402 | if (arg1) (arg1)->m_rect = *arg2; | |
16403 | ||
16404 | Py_INCREF(Py_None); resultobj = Py_None; | |
16405 | return resultobj; | |
16406 | fail: | |
16407 | return NULL; | |
16408 | } | |
16409 | ||
16410 | ||
16411 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16412 | PyObject *resultobj; | |
16413 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16414 | wxRect *result; | |
16415 | PyObject * obj0 = 0 ; | |
16416 | char *kwnames[] = { | |
16417 | (char *) "self", NULL | |
16418 | }; | |
16419 | ||
16420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16423 | result = (wxRect *)& ((arg1)->m_rect); | |
16424 | ||
16425 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
16426 | return resultobj; | |
16427 | fail: | |
16428 | return NULL; | |
16429 | } | |
16430 | ||
16431 | ||
16432 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
16433 | PyObject *obj; | |
16434 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16435 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16436 | Py_INCREF(obj); | |
16437 | return Py_BuildValue((char *)""); | |
16438 | } | |
16439 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16440 | PyObject *resultobj; | |
16441 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16442 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16443 | int arg2 = (int) 0 ; | |
16444 | wxMoveEvent *result; | |
16445 | wxPoint temp1 ; | |
16446 | PyObject * obj0 = 0 ; | |
16447 | PyObject * obj1 = 0 ; | |
16448 | char *kwnames[] = { | |
16449 | (char *) "pos",(char *) "winid", NULL | |
16450 | }; | |
16451 | ||
16452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; | |
16453 | if (obj0) { | |
16454 | { | |
16455 | arg1 = &temp1; | |
16456 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16457 | } | |
16458 | } | |
16459 | if (obj1) { | |
16460 | arg2 = (int) SWIG_AsInt(obj1); | |
16461 | if (PyErr_Occurred()) SWIG_fail; | |
16462 | } | |
16463 | { | |
16464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16465 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16466 | ||
16467 | wxPyEndAllowThreads(__tstate); | |
16468 | if (PyErr_Occurred()) SWIG_fail; | |
16469 | } | |
16470 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); | |
16471 | return resultobj; | |
16472 | fail: | |
16473 | return NULL; | |
16474 | } | |
16475 | ||
16476 | ||
16477 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16478 | PyObject *resultobj; | |
16479 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16480 | wxPoint result; | |
16481 | PyObject * obj0 = 0 ; | |
16482 | char *kwnames[] = { | |
16483 | (char *) "self", NULL | |
16484 | }; | |
16485 | ||
16486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16489 | { | |
16490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16491 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16492 | ||
16493 | wxPyEndAllowThreads(__tstate); | |
16494 | if (PyErr_Occurred()) SWIG_fail; | |
16495 | } | |
16496 | { | |
16497 | wxPoint * resultptr; | |
16498 | resultptr = new wxPoint((wxPoint &) result); | |
16499 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16500 | } | |
16501 | return resultobj; | |
16502 | fail: | |
16503 | return NULL; | |
16504 | } | |
16505 | ||
16506 | ||
16507 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16508 | PyObject *resultobj; | |
16509 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16510 | wxRect result; | |
16511 | PyObject * obj0 = 0 ; | |
16512 | char *kwnames[] = { | |
16513 | (char *) "self", NULL | |
16514 | }; | |
16515 | ||
16516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
16517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16519 | { | |
16520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16521 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16522 | ||
16523 | wxPyEndAllowThreads(__tstate); | |
16524 | if (PyErr_Occurred()) SWIG_fail; | |
16525 | } | |
16526 | { | |
16527 | wxRect * resultptr; | |
16528 | resultptr = new wxRect((wxRect &) result); | |
16529 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16530 | } | |
16531 | return resultobj; | |
16532 | fail: | |
16533 | return NULL; | |
16534 | } | |
16535 | ||
16536 | ||
16537 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16538 | PyObject *resultobj; | |
16539 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16540 | wxRect arg2 ; | |
16541 | wxRect *argp2 ; | |
16542 | PyObject * obj0 = 0 ; | |
16543 | PyObject * obj1 = 0 ; | |
16544 | char *kwnames[] = { | |
16545 | (char *) "self",(char *) "rect", NULL | |
16546 | }; | |
16547 | ||
16548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16551 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16552 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16553 | arg2 = *argp2; | |
16554 | { | |
16555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16556 | (arg1)->SetRect(arg2); | |
16557 | ||
16558 | wxPyEndAllowThreads(__tstate); | |
16559 | if (PyErr_Occurred()) SWIG_fail; | |
16560 | } | |
16561 | Py_INCREF(Py_None); resultobj = Py_None; | |
16562 | return resultobj; | |
16563 | fail: | |
16564 | return NULL; | |
16565 | } | |
16566 | ||
16567 | ||
16568 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16569 | PyObject *resultobj; | |
16570 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16571 | wxPoint arg2 ; | |
16572 | wxPoint *argp2 ; | |
16573 | PyObject * obj0 = 0 ; | |
16574 | PyObject * obj1 = 0 ; | |
16575 | char *kwnames[] = { | |
16576 | (char *) "self",(char *) "pos", NULL | |
16577 | }; | |
16578 | ||
16579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
16580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16582 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
16583 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16584 | arg2 = *argp2; | |
16585 | { | |
16586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16587 | wxMoveEvent_SetPosition(arg1,arg2); | |
16588 | ||
16589 | wxPyEndAllowThreads(__tstate); | |
16590 | if (PyErr_Occurred()) SWIG_fail; | |
16591 | } | |
16592 | Py_INCREF(Py_None); resultobj = Py_None; | |
16593 | return resultobj; | |
16594 | fail: | |
16595 | return NULL; | |
16596 | } | |
16597 | ||
16598 | ||
16599 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16600 | PyObject *resultobj; | |
16601 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16602 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16603 | PyObject * obj0 = 0 ; | |
16604 | PyObject * obj1 = 0 ; | |
16605 | char *kwnames[] = { | |
16606 | (char *) "self",(char *) "m_pos", NULL | |
16607 | }; | |
16608 | ||
16609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
16610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16612 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
16613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16614 | if (arg1) (arg1)->m_pos = *arg2; | |
16615 | ||
16616 | Py_INCREF(Py_None); resultobj = Py_None; | |
16617 | return resultobj; | |
16618 | fail: | |
16619 | return NULL; | |
16620 | } | |
16621 | ||
16622 | ||
16623 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16624 | PyObject *resultobj; | |
16625 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16626 | wxPoint *result; | |
16627 | PyObject * obj0 = 0 ; | |
16628 | char *kwnames[] = { | |
16629 | (char *) "self", NULL | |
16630 | }; | |
16631 | ||
16632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
16633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16635 | result = (wxPoint *)& ((arg1)->m_pos); | |
16636 | ||
16637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
16638 | return resultobj; | |
16639 | fail: | |
16640 | return NULL; | |
16641 | } | |
16642 | ||
16643 | ||
16644 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16645 | PyObject *resultobj; | |
16646 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16647 | wxRect *arg2 = (wxRect *) 0 ; | |
16648 | PyObject * obj0 = 0 ; | |
16649 | PyObject * obj1 = 0 ; | |
16650 | char *kwnames[] = { | |
16651 | (char *) "self",(char *) "m_rect", NULL | |
16652 | }; | |
16653 | ||
16654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16659 | if (arg1) (arg1)->m_rect = *arg2; | |
16660 | ||
16661 | Py_INCREF(Py_None); resultobj = Py_None; | |
16662 | return resultobj; | |
16663 | fail: | |
16664 | return NULL; | |
16665 | } | |
16666 | ||
16667 | ||
16668 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16669 | PyObject *resultobj; | |
16670 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16671 | wxRect *result; | |
16672 | PyObject * obj0 = 0 ; | |
16673 | char *kwnames[] = { | |
16674 | (char *) "self", NULL | |
16675 | }; | |
16676 | ||
16677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16680 | result = (wxRect *)& ((arg1)->m_rect); | |
16681 | ||
16682 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
16683 | return resultobj; | |
16684 | fail: | |
16685 | return NULL; | |
16686 | } | |
16687 | ||
16688 | ||
16689 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16690 | PyObject *obj; | |
16691 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16692 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16693 | Py_INCREF(obj); | |
16694 | return Py_BuildValue((char *)""); | |
16695 | } | |
16696 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16697 | PyObject *resultobj; | |
16698 | int arg1 = (int) 0 ; | |
16699 | wxPaintEvent *result; | |
16700 | PyObject * obj0 = 0 ; | |
16701 | char *kwnames[] = { | |
16702 | (char *) "Id", NULL | |
16703 | }; | |
16704 | ||
16705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; | |
16706 | if (obj0) { | |
16707 | arg1 = (int) SWIG_AsInt(obj0); | |
16708 | if (PyErr_Occurred()) SWIG_fail; | |
16709 | } | |
16710 | { | |
16711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16712 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16713 | ||
16714 | wxPyEndAllowThreads(__tstate); | |
16715 | if (PyErr_Occurred()) SWIG_fail; | |
16716 | } | |
16717 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); | |
16718 | return resultobj; | |
16719 | fail: | |
16720 | return NULL; | |
16721 | } | |
16722 | ||
16723 | ||
16724 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16725 | PyObject *obj; | |
16726 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16727 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16728 | Py_INCREF(obj); | |
16729 | return Py_BuildValue((char *)""); | |
16730 | } | |
16731 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16732 | PyObject *resultobj; | |
16733 | int arg1 = (int) 0 ; | |
16734 | wxNcPaintEvent *result; | |
16735 | PyObject * obj0 = 0 ; | |
16736 | char *kwnames[] = { | |
16737 | (char *) "winid", NULL | |
16738 | }; | |
16739 | ||
16740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; | |
16741 | if (obj0) { | |
16742 | arg1 = (int) SWIG_AsInt(obj0); | |
16743 | if (PyErr_Occurred()) SWIG_fail; | |
16744 | } | |
16745 | { | |
16746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16747 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16748 | ||
16749 | wxPyEndAllowThreads(__tstate); | |
16750 | if (PyErr_Occurred()) SWIG_fail; | |
16751 | } | |
16752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); | |
16753 | return resultobj; | |
16754 | fail: | |
16755 | return NULL; | |
16756 | } | |
16757 | ||
16758 | ||
16759 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16760 | PyObject *obj; | |
16761 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16762 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16763 | Py_INCREF(obj); | |
16764 | return Py_BuildValue((char *)""); | |
16765 | } | |
16766 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16767 | PyObject *resultobj; | |
16768 | int arg1 = (int) 0 ; | |
16769 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16770 | wxEraseEvent *result; | |
16771 | PyObject * obj0 = 0 ; | |
16772 | PyObject * obj1 = 0 ; | |
16773 | char *kwnames[] = { | |
16774 | (char *) "Id",(char *) "dc", NULL | |
16775 | }; | |
16776 | ||
16777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; | |
16778 | if (obj0) { | |
16779 | arg1 = (int) SWIG_AsInt(obj0); | |
16780 | if (PyErr_Occurred()) SWIG_fail; | |
16781 | } | |
16782 | if (obj1) { | |
16783 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16785 | } | |
16786 | { | |
16787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16788 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16789 | ||
16790 | wxPyEndAllowThreads(__tstate); | |
16791 | if (PyErr_Occurred()) SWIG_fail; | |
16792 | } | |
16793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); | |
16794 | return resultobj; | |
16795 | fail: | |
16796 | return NULL; | |
16797 | } | |
16798 | ||
16799 | ||
16800 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16801 | PyObject *resultobj; | |
16802 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16803 | wxDC *result; | |
16804 | PyObject * obj0 = 0 ; | |
16805 | char *kwnames[] = { | |
16806 | (char *) "self", NULL | |
16807 | }; | |
16808 | ||
16809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
16810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, | |
16811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16812 | { | |
16813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16814 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16815 | ||
16816 | wxPyEndAllowThreads(__tstate); | |
16817 | if (PyErr_Occurred()) SWIG_fail; | |
16818 | } | |
16819 | { | |
16820 | resultobj = wxPyMake_wxObject(result); | |
16821 | } | |
16822 | return resultobj; | |
16823 | fail: | |
16824 | return NULL; | |
16825 | } | |
16826 | ||
16827 | ||
16828 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
16829 | PyObject *obj; | |
16830 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16831 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16832 | Py_INCREF(obj); | |
16833 | return Py_BuildValue((char *)""); | |
16834 | } | |
16835 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16836 | PyObject *resultobj; | |
16837 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16838 | int arg2 = (int) 0 ; | |
16839 | wxFocusEvent *result; | |
16840 | PyObject * obj0 = 0 ; | |
16841 | PyObject * obj1 = 0 ; | |
16842 | char *kwnames[] = { | |
16843 | (char *) "type",(char *) "winid", NULL | |
16844 | }; | |
16845 | ||
16846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; | |
16847 | if (obj0) { | |
16848 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
16849 | if (PyErr_Occurred()) SWIG_fail; | |
16850 | } | |
16851 | if (obj1) { | |
16852 | arg2 = (int) SWIG_AsInt(obj1); | |
16853 | if (PyErr_Occurred()) SWIG_fail; | |
16854 | } | |
16855 | { | |
16856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16857 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16858 | ||
16859 | wxPyEndAllowThreads(__tstate); | |
16860 | if (PyErr_Occurred()) SWIG_fail; | |
16861 | } | |
16862 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); | |
16863 | return resultobj; | |
16864 | fail: | |
16865 | return NULL; | |
16866 | } | |
16867 | ||
16868 | ||
16869 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16870 | PyObject *resultobj; | |
16871 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16872 | wxWindow *result; | |
16873 | PyObject * obj0 = 0 ; | |
16874 | char *kwnames[] = { | |
16875 | (char *) "self", NULL | |
16876 | }; | |
16877 | ||
16878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
16880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16881 | { | |
16882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16883 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
16884 | ||
16885 | wxPyEndAllowThreads(__tstate); | |
16886 | if (PyErr_Occurred()) SWIG_fail; | |
16887 | } | |
16888 | { | |
16889 | resultobj = wxPyMake_wxObject(result); | |
16890 | } | |
16891 | return resultobj; | |
16892 | fail: | |
16893 | return NULL; | |
16894 | } | |
16895 | ||
16896 | ||
16897 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16898 | PyObject *resultobj; | |
16899 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16900 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16901 | PyObject * obj0 = 0 ; | |
16902 | PyObject * obj1 = 0 ; | |
16903 | char *kwnames[] = { | |
16904 | (char *) "self",(char *) "win", NULL | |
16905 | }; | |
16906 | ||
16907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
16908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
16909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16910 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16912 | { | |
16913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16914 | (arg1)->SetWindow(arg2); | |
16915 | ||
16916 | wxPyEndAllowThreads(__tstate); | |
16917 | if (PyErr_Occurred()) SWIG_fail; | |
16918 | } | |
16919 | Py_INCREF(Py_None); resultobj = Py_None; | |
16920 | return resultobj; | |
16921 | fail: | |
16922 | return NULL; | |
16923 | } | |
16924 | ||
16925 | ||
16926 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16927 | PyObject *obj; | |
16928 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16929 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
16930 | Py_INCREF(obj); | |
16931 | return Py_BuildValue((char *)""); | |
16932 | } | |
16933 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16934 | PyObject *resultobj; | |
16935 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16936 | wxChildFocusEvent *result; | |
16937 | PyObject * obj0 = 0 ; | |
16938 | char *kwnames[] = { | |
16939 | (char *) "win", NULL | |
16940 | }; | |
16941 | ||
16942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
16943 | if (obj0) { | |
16944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16946 | } | |
16947 | { | |
16948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16949 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
16950 | ||
16951 | wxPyEndAllowThreads(__tstate); | |
16952 | if (PyErr_Occurred()) SWIG_fail; | |
16953 | } | |
16954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); | |
16955 | return resultobj; | |
16956 | fail: | |
16957 | return NULL; | |
16958 | } | |
16959 | ||
16960 | ||
16961 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16962 | PyObject *resultobj; | |
16963 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
16964 | wxWindow *result; | |
16965 | PyObject * obj0 = 0 ; | |
16966 | char *kwnames[] = { | |
16967 | (char *) "self", NULL | |
16968 | }; | |
16969 | ||
16970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, | |
16972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16973 | { | |
16974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16975 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
16976 | ||
16977 | wxPyEndAllowThreads(__tstate); | |
16978 | if (PyErr_Occurred()) SWIG_fail; | |
16979 | } | |
16980 | { | |
16981 | resultobj = wxPyMake_wxObject(result); | |
16982 | } | |
16983 | return resultobj; | |
16984 | fail: | |
16985 | return NULL; | |
16986 | } | |
16987 | ||
16988 | ||
16989 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16990 | PyObject *obj; | |
16991 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16992 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
16993 | Py_INCREF(obj); | |
16994 | return Py_BuildValue((char *)""); | |
16995 | } | |
16996 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16997 | PyObject *resultobj; | |
16998 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16999 | bool arg2 = (bool) True ; | |
17000 | int arg3 = (int) 0 ; | |
17001 | wxActivateEvent *result; | |
17002 | PyObject * obj0 = 0 ; | |
17003 | PyObject * obj1 = 0 ; | |
17004 | PyObject * obj2 = 0 ; | |
17005 | char *kwnames[] = { | |
17006 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17007 | }; | |
17008 | ||
17009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17010 | if (obj0) { | |
17011 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
17012 | if (PyErr_Occurred()) SWIG_fail; | |
17013 | } | |
17014 | if (obj1) { | |
17015 | arg2 = (bool) SWIG_AsBool(obj1); | |
17016 | if (PyErr_Occurred()) SWIG_fail; | |
17017 | } | |
17018 | if (obj2) { | |
17019 | arg3 = (int) SWIG_AsInt(obj2); | |
17020 | if (PyErr_Occurred()) SWIG_fail; | |
17021 | } | |
17022 | { | |
17023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17024 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17025 | ||
17026 | wxPyEndAllowThreads(__tstate); | |
17027 | if (PyErr_Occurred()) SWIG_fail; | |
17028 | } | |
17029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); | |
17030 | return resultobj; | |
17031 | fail: | |
17032 | return NULL; | |
17033 | } | |
17034 | ||
17035 | ||
17036 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17037 | PyObject *resultobj; | |
17038 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17039 | bool result; | |
17040 | PyObject * obj0 = 0 ; | |
17041 | char *kwnames[] = { | |
17042 | (char *) "self", NULL | |
17043 | }; | |
17044 | ||
17045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
17046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, | |
17047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17048 | { | |
17049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17050 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17051 | ||
17052 | wxPyEndAllowThreads(__tstate); | |
17053 | if (PyErr_Occurred()) SWIG_fail; | |
17054 | } | |
17055 | { | |
17056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17057 | } | |
17058 | return resultobj; | |
17059 | fail: | |
17060 | return NULL; | |
17061 | } | |
17062 | ||
17063 | ||
17064 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
17065 | PyObject *obj; | |
17066 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17067 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17068 | Py_INCREF(obj); | |
17069 | return Py_BuildValue((char *)""); | |
17070 | } | |
17071 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17072 | PyObject *resultobj; | |
17073 | int arg1 = (int) 0 ; | |
17074 | wxInitDialogEvent *result; | |
17075 | PyObject * obj0 = 0 ; | |
17076 | char *kwnames[] = { | |
17077 | (char *) "Id", NULL | |
17078 | }; | |
17079 | ||
17080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; | |
17081 | if (obj0) { | |
17082 | arg1 = (int) SWIG_AsInt(obj0); | |
17083 | if (PyErr_Occurred()) SWIG_fail; | |
17084 | } | |
17085 | { | |
17086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17087 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17088 | ||
17089 | wxPyEndAllowThreads(__tstate); | |
17090 | if (PyErr_Occurred()) SWIG_fail; | |
17091 | } | |
17092 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); | |
17093 | return resultobj; | |
17094 | fail: | |
17095 | return NULL; | |
17096 | } | |
17097 | ||
17098 | ||
17099 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
17100 | PyObject *obj; | |
17101 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17102 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17103 | Py_INCREF(obj); | |
17104 | return Py_BuildValue((char *)""); | |
17105 | } | |
17106 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17107 | PyObject *resultobj; | |
17108 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17109 | int arg2 = (int) 0 ; | |
17110 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17111 | wxMenuEvent *result; | |
17112 | PyObject * obj0 = 0 ; | |
17113 | PyObject * obj1 = 0 ; | |
17114 | PyObject * obj2 = 0 ; | |
17115 | char *kwnames[] = { | |
17116 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17117 | }; | |
17118 | ||
17119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17120 | if (obj0) { | |
17121 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
17122 | if (PyErr_Occurred()) SWIG_fail; | |
17123 | } | |
17124 | if (obj1) { | |
17125 | arg2 = (int) SWIG_AsInt(obj1); | |
17126 | if (PyErr_Occurred()) SWIG_fail; | |
17127 | } | |
17128 | if (obj2) { | |
17129 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
17130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17131 | } | |
17132 | { | |
17133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17134 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17135 | ||
17136 | wxPyEndAllowThreads(__tstate); | |
17137 | if (PyErr_Occurred()) SWIG_fail; | |
17138 | } | |
17139 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); | |
17140 | return resultobj; | |
17141 | fail: | |
17142 | return NULL; | |
17143 | } | |
17144 | ||
17145 | ||
17146 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17147 | PyObject *resultobj; | |
17148 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17149 | int result; | |
17150 | PyObject * obj0 = 0 ; | |
17151 | char *kwnames[] = { | |
17152 | (char *) "self", NULL | |
17153 | }; | |
17154 | ||
17155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
17156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17158 | { | |
17159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17160 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17161 | ||
17162 | wxPyEndAllowThreads(__tstate); | |
17163 | if (PyErr_Occurred()) SWIG_fail; | |
17164 | } | |
17165 | resultobj = SWIG_FromInt((int)result); | |
17166 | return resultobj; | |
17167 | fail: | |
17168 | return NULL; | |
17169 | } | |
17170 | ||
17171 | ||
17172 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17173 | PyObject *resultobj; | |
17174 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17175 | bool result; | |
17176 | PyObject * obj0 = 0 ; | |
17177 | char *kwnames[] = { | |
17178 | (char *) "self", NULL | |
17179 | }; | |
17180 | ||
17181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
17182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17184 | { | |
17185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17186 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17187 | ||
17188 | wxPyEndAllowThreads(__tstate); | |
17189 | if (PyErr_Occurred()) SWIG_fail; | |
17190 | } | |
17191 | { | |
17192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17193 | } | |
17194 | return resultobj; | |
17195 | fail: | |
17196 | return NULL; | |
17197 | } | |
17198 | ||
17199 | ||
17200 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17201 | PyObject *resultobj; | |
17202 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17203 | wxMenu *result; | |
17204 | PyObject * obj0 = 0 ; | |
17205 | char *kwnames[] = { | |
17206 | (char *) "self", NULL | |
17207 | }; | |
17208 | ||
17209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
17210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17212 | { | |
17213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17214 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17215 | ||
17216 | wxPyEndAllowThreads(__tstate); | |
17217 | if (PyErr_Occurred()) SWIG_fail; | |
17218 | } | |
17219 | { | |
17220 | resultobj = wxPyMake_wxObject(result); | |
17221 | } | |
17222 | return resultobj; | |
17223 | fail: | |
17224 | return NULL; | |
17225 | } | |
17226 | ||
17227 | ||
17228 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
17229 | PyObject *obj; | |
17230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17231 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17232 | Py_INCREF(obj); | |
17233 | return Py_BuildValue((char *)""); | |
17234 | } | |
17235 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17236 | PyObject *resultobj; | |
17237 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17238 | int arg2 = (int) 0 ; | |
17239 | wxCloseEvent *result; | |
17240 | PyObject * obj0 = 0 ; | |
17241 | PyObject * obj1 = 0 ; | |
17242 | char *kwnames[] = { | |
17243 | (char *) "type",(char *) "winid", NULL | |
17244 | }; | |
17245 | ||
17246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17247 | if (obj0) { | |
17248 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
17249 | if (PyErr_Occurred()) SWIG_fail; | |
17250 | } | |
17251 | if (obj1) { | |
17252 | arg2 = (int) SWIG_AsInt(obj1); | |
17253 | if (PyErr_Occurred()) SWIG_fail; | |
17254 | } | |
17255 | { | |
17256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17257 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17258 | ||
17259 | wxPyEndAllowThreads(__tstate); | |
17260 | if (PyErr_Occurred()) SWIG_fail; | |
17261 | } | |
17262 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); | |
17263 | return resultobj; | |
17264 | fail: | |
17265 | return NULL; | |
17266 | } | |
17267 | ||
17268 | ||
17269 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17270 | PyObject *resultobj; | |
17271 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17272 | bool arg2 ; | |
17273 | PyObject * obj0 = 0 ; | |
17274 | PyObject * obj1 = 0 ; | |
17275 | char *kwnames[] = { | |
17276 | (char *) "self",(char *) "logOff", NULL | |
17277 | }; | |
17278 | ||
17279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
17280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17282 | arg2 = (bool) SWIG_AsBool(obj1); | |
17283 | if (PyErr_Occurred()) SWIG_fail; | |
17284 | { | |
17285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17286 | (arg1)->SetLoggingOff(arg2); | |
17287 | ||
17288 | wxPyEndAllowThreads(__tstate); | |
17289 | if (PyErr_Occurred()) SWIG_fail; | |
17290 | } | |
17291 | Py_INCREF(Py_None); resultobj = Py_None; | |
17292 | return resultobj; | |
17293 | fail: | |
17294 | return NULL; | |
17295 | } | |
17296 | ||
17297 | ||
17298 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17299 | PyObject *resultobj; | |
17300 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17301 | bool result; | |
17302 | PyObject * obj0 = 0 ; | |
17303 | char *kwnames[] = { | |
17304 | (char *) "self", NULL | |
17305 | }; | |
17306 | ||
17307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
17308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17310 | { | |
17311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17312 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17313 | ||
17314 | wxPyEndAllowThreads(__tstate); | |
17315 | if (PyErr_Occurred()) SWIG_fail; | |
17316 | } | |
17317 | { | |
17318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17319 | } | |
17320 | return resultobj; | |
17321 | fail: | |
17322 | return NULL; | |
17323 | } | |
17324 | ||
17325 | ||
17326 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17327 | PyObject *resultobj; | |
17328 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17329 | bool arg2 = (bool) True ; | |
17330 | PyObject * obj0 = 0 ; | |
17331 | PyObject * obj1 = 0 ; | |
17332 | char *kwnames[] = { | |
17333 | (char *) "self",(char *) "veto", NULL | |
17334 | }; | |
17335 | ||
17336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
17337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17339 | if (obj1) { | |
17340 | arg2 = (bool) SWIG_AsBool(obj1); | |
17341 | if (PyErr_Occurred()) SWIG_fail; | |
17342 | } | |
17343 | { | |
17344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17345 | (arg1)->Veto(arg2); | |
17346 | ||
17347 | wxPyEndAllowThreads(__tstate); | |
17348 | if (PyErr_Occurred()) SWIG_fail; | |
17349 | } | |
17350 | Py_INCREF(Py_None); resultobj = Py_None; | |
17351 | return resultobj; | |
17352 | fail: | |
17353 | return NULL; | |
17354 | } | |
17355 | ||
17356 | ||
17357 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17358 | PyObject *resultobj; | |
17359 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17360 | bool arg2 ; | |
17361 | PyObject * obj0 = 0 ; | |
17362 | PyObject * obj1 = 0 ; | |
17363 | char *kwnames[] = { | |
17364 | (char *) "self",(char *) "canVeto", NULL | |
17365 | }; | |
17366 | ||
17367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
17368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17370 | arg2 = (bool) SWIG_AsBool(obj1); | |
17371 | if (PyErr_Occurred()) SWIG_fail; | |
17372 | { | |
17373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17374 | (arg1)->SetCanVeto(arg2); | |
17375 | ||
17376 | wxPyEndAllowThreads(__tstate); | |
17377 | if (PyErr_Occurred()) SWIG_fail; | |
17378 | } | |
17379 | Py_INCREF(Py_None); resultobj = Py_None; | |
17380 | return resultobj; | |
17381 | fail: | |
17382 | return NULL; | |
17383 | } | |
17384 | ||
17385 | ||
17386 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17387 | PyObject *resultobj; | |
17388 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17389 | bool result; | |
17390 | PyObject * obj0 = 0 ; | |
17391 | char *kwnames[] = { | |
17392 | (char *) "self", NULL | |
17393 | }; | |
17394 | ||
17395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
17396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17398 | { | |
17399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17400 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17401 | ||
17402 | wxPyEndAllowThreads(__tstate); | |
17403 | if (PyErr_Occurred()) SWIG_fail; | |
17404 | } | |
17405 | { | |
17406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17407 | } | |
17408 | return resultobj; | |
17409 | fail: | |
17410 | return NULL; | |
17411 | } | |
17412 | ||
17413 | ||
17414 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17415 | PyObject *resultobj; | |
17416 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17417 | bool result; | |
17418 | PyObject * obj0 = 0 ; | |
17419 | char *kwnames[] = { | |
17420 | (char *) "self", NULL | |
17421 | }; | |
17422 | ||
17423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
17424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17426 | { | |
17427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17428 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17429 | ||
17430 | wxPyEndAllowThreads(__tstate); | |
17431 | if (PyErr_Occurred()) SWIG_fail; | |
17432 | } | |
17433 | { | |
17434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17435 | } | |
17436 | return resultobj; | |
17437 | fail: | |
17438 | return NULL; | |
17439 | } | |
17440 | ||
17441 | ||
17442 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
17443 | PyObject *obj; | |
17444 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17445 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17446 | Py_INCREF(obj); | |
17447 | return Py_BuildValue((char *)""); | |
17448 | } | |
17449 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17450 | PyObject *resultobj; | |
17451 | int arg1 = (int) 0 ; | |
17452 | bool arg2 = (bool) False ; | |
17453 | wxShowEvent *result; | |
17454 | PyObject * obj0 = 0 ; | |
17455 | PyObject * obj1 = 0 ; | |
17456 | char *kwnames[] = { | |
17457 | (char *) "winid",(char *) "show", NULL | |
17458 | }; | |
17459 | ||
17460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; | |
17461 | if (obj0) { | |
17462 | arg1 = (int) SWIG_AsInt(obj0); | |
17463 | if (PyErr_Occurred()) SWIG_fail; | |
17464 | } | |
17465 | if (obj1) { | |
17466 | arg2 = (bool) SWIG_AsBool(obj1); | |
17467 | if (PyErr_Occurred()) SWIG_fail; | |
17468 | } | |
17469 | { | |
17470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17471 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17472 | ||
17473 | wxPyEndAllowThreads(__tstate); | |
17474 | if (PyErr_Occurred()) SWIG_fail; | |
17475 | } | |
17476 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); | |
17477 | return resultobj; | |
17478 | fail: | |
17479 | return NULL; | |
17480 | } | |
17481 | ||
17482 | ||
17483 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17484 | PyObject *resultobj; | |
17485 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17486 | bool arg2 ; | |
17487 | PyObject * obj0 = 0 ; | |
17488 | PyObject * obj1 = 0 ; | |
17489 | char *kwnames[] = { | |
17490 | (char *) "self",(char *) "show", NULL | |
17491 | }; | |
17492 | ||
17493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
17494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
17495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17496 | arg2 = (bool) SWIG_AsBool(obj1); | |
17497 | if (PyErr_Occurred()) SWIG_fail; | |
17498 | { | |
17499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17500 | (arg1)->SetShow(arg2); | |
17501 | ||
17502 | wxPyEndAllowThreads(__tstate); | |
17503 | if (PyErr_Occurred()) SWIG_fail; | |
17504 | } | |
17505 | Py_INCREF(Py_None); resultobj = Py_None; | |
17506 | return resultobj; | |
17507 | fail: | |
17508 | return NULL; | |
17509 | } | |
17510 | ||
17511 | ||
17512 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17513 | PyObject *resultobj; | |
17514 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17515 | bool result; | |
17516 | PyObject * obj0 = 0 ; | |
17517 | char *kwnames[] = { | |
17518 | (char *) "self", NULL | |
17519 | }; | |
17520 | ||
17521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
17522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
17523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17524 | { | |
17525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17526 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17527 | ||
17528 | wxPyEndAllowThreads(__tstate); | |
17529 | if (PyErr_Occurred()) SWIG_fail; | |
17530 | } | |
17531 | { | |
17532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17533 | } | |
17534 | return resultobj; | |
17535 | fail: | |
17536 | return NULL; | |
17537 | } | |
17538 | ||
17539 | ||
17540 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
17541 | PyObject *obj; | |
17542 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17543 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17544 | Py_INCREF(obj); | |
17545 | return Py_BuildValue((char *)""); | |
17546 | } | |
17547 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17548 | PyObject *resultobj; | |
17549 | int arg1 = (int) 0 ; | |
17550 | bool arg2 = (bool) True ; | |
17551 | wxIconizeEvent *result; | |
17552 | PyObject * obj0 = 0 ; | |
17553 | PyObject * obj1 = 0 ; | |
17554 | char *kwnames[] = { | |
17555 | (char *) "id",(char *) "iconized", NULL | |
17556 | }; | |
17557 | ||
17558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
17559 | if (obj0) { | |
17560 | arg1 = (int) SWIG_AsInt(obj0); | |
17561 | if (PyErr_Occurred()) SWIG_fail; | |
17562 | } | |
17563 | if (obj1) { | |
17564 | arg2 = (bool) SWIG_AsBool(obj1); | |
17565 | if (PyErr_Occurred()) SWIG_fail; | |
17566 | } | |
17567 | { | |
17568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17569 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
17570 | ||
17571 | wxPyEndAllowThreads(__tstate); | |
17572 | if (PyErr_Occurred()) SWIG_fail; | |
17573 | } | |
17574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); | |
17575 | return resultobj; | |
17576 | fail: | |
17577 | return NULL; | |
17578 | } | |
17579 | ||
17580 | ||
17581 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17582 | PyObject *resultobj; | |
17583 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17584 | bool result; | |
17585 | PyObject * obj0 = 0 ; | |
17586 | char *kwnames[] = { | |
17587 | (char *) "self", NULL | |
17588 | }; | |
17589 | ||
17590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
17591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, | |
17592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17593 | { | |
17594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17595 | result = (bool)(arg1)->Iconized(); | |
17596 | ||
17597 | wxPyEndAllowThreads(__tstate); | |
17598 | if (PyErr_Occurred()) SWIG_fail; | |
17599 | } | |
17600 | { | |
17601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17602 | } | |
17603 | return resultobj; | |
17604 | fail: | |
17605 | return NULL; | |
17606 | } | |
17607 | ||
17608 | ||
17609 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17610 | PyObject *obj; | |
17611 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17612 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17613 | Py_INCREF(obj); | |
17614 | return Py_BuildValue((char *)""); | |
17615 | } | |
17616 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17617 | PyObject *resultobj; | |
17618 | int arg1 = (int) 0 ; | |
17619 | wxMaximizeEvent *result; | |
17620 | PyObject * obj0 = 0 ; | |
17621 | char *kwnames[] = { | |
17622 | (char *) "id", NULL | |
17623 | }; | |
17624 | ||
17625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; | |
17626 | if (obj0) { | |
17627 | arg1 = (int) SWIG_AsInt(obj0); | |
17628 | if (PyErr_Occurred()) SWIG_fail; | |
17629 | } | |
17630 | { | |
17631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17632 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17633 | ||
17634 | wxPyEndAllowThreads(__tstate); | |
17635 | if (PyErr_Occurred()) SWIG_fail; | |
17636 | } | |
17637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); | |
17638 | return resultobj; | |
17639 | fail: | |
17640 | return NULL; | |
17641 | } | |
17642 | ||
17643 | ||
17644 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17645 | PyObject *obj; | |
17646 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17647 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17648 | Py_INCREF(obj); | |
17649 | return Py_BuildValue((char *)""); | |
17650 | } | |
17651 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17652 | PyObject *resultobj; | |
17653 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17654 | wxPoint result; | |
17655 | PyObject * obj0 = 0 ; | |
17656 | char *kwnames[] = { | |
17657 | (char *) "self", NULL | |
17658 | }; | |
17659 | ||
17660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
17661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
17662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17663 | { | |
17664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17665 | result = (arg1)->GetPosition(); | |
17666 | ||
17667 | wxPyEndAllowThreads(__tstate); | |
17668 | if (PyErr_Occurred()) SWIG_fail; | |
17669 | } | |
17670 | { | |
17671 | wxPoint * resultptr; | |
17672 | resultptr = new wxPoint((wxPoint &) result); | |
17673 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
17674 | } | |
17675 | return resultobj; | |
17676 | fail: | |
17677 | return NULL; | |
17678 | } | |
17679 | ||
17680 | ||
17681 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17682 | PyObject *resultobj; | |
17683 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17684 | int result; | |
17685 | PyObject * obj0 = 0 ; | |
17686 | char *kwnames[] = { | |
17687 | (char *) "self", NULL | |
17688 | }; | |
17689 | ||
17690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
17691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
17692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17693 | { | |
17694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17695 | result = (int)(arg1)->GetNumberOfFiles(); | |
17696 | ||
17697 | wxPyEndAllowThreads(__tstate); | |
17698 | if (PyErr_Occurred()) SWIG_fail; | |
17699 | } | |
17700 | resultobj = SWIG_FromInt((int)result); | |
17701 | return resultobj; | |
17702 | fail: | |
17703 | return NULL; | |
17704 | } | |
17705 | ||
17706 | ||
17707 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17708 | PyObject *resultobj; | |
17709 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17710 | PyObject *result; | |
17711 | PyObject * obj0 = 0 ; | |
17712 | char *kwnames[] = { | |
17713 | (char *) "self", NULL | |
17714 | }; | |
17715 | ||
17716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
17717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
17718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17719 | { | |
17720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17721 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17722 | ||
17723 | wxPyEndAllowThreads(__tstate); | |
17724 | if (PyErr_Occurred()) SWIG_fail; | |
17725 | } | |
17726 | resultobj = result; | |
17727 | return resultobj; | |
17728 | fail: | |
17729 | return NULL; | |
17730 | } | |
17731 | ||
17732 | ||
17733 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17734 | PyObject *obj; | |
17735 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17736 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17737 | Py_INCREF(obj); | |
17738 | return Py_BuildValue((char *)""); | |
17739 | } | |
17740 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17741 | PyObject *resultobj; | |
17742 | int arg1 = (int) 0 ; | |
17743 | wxUpdateUIEvent *result; | |
17744 | PyObject * obj0 = 0 ; | |
17745 | char *kwnames[] = { | |
17746 | (char *) "commandId", NULL | |
17747 | }; | |
17748 | ||
17749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; | |
17750 | if (obj0) { | |
17751 | arg1 = (int) SWIG_AsInt(obj0); | |
17752 | if (PyErr_Occurred()) SWIG_fail; | |
17753 | } | |
17754 | { | |
17755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17756 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17757 | ||
17758 | wxPyEndAllowThreads(__tstate); | |
17759 | if (PyErr_Occurred()) SWIG_fail; | |
17760 | } | |
17761 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); | |
17762 | return resultobj; | |
17763 | fail: | |
17764 | return NULL; | |
17765 | } | |
17766 | ||
17767 | ||
17768 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17769 | PyObject *resultobj; | |
17770 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17771 | bool result; | |
17772 | PyObject * obj0 = 0 ; | |
17773 | char *kwnames[] = { | |
17774 | (char *) "self", NULL | |
17775 | }; | |
17776 | ||
17777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
17778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17780 | { | |
17781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17782 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17783 | ||
17784 | wxPyEndAllowThreads(__tstate); | |
17785 | if (PyErr_Occurred()) SWIG_fail; | |
17786 | } | |
17787 | { | |
17788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17789 | } | |
17790 | return resultobj; | |
17791 | fail: | |
17792 | return NULL; | |
17793 | } | |
17794 | ||
17795 | ||
17796 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17797 | PyObject *resultobj; | |
17798 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17799 | bool result; | |
17800 | PyObject * obj0 = 0 ; | |
17801 | char *kwnames[] = { | |
17802 | (char *) "self", NULL | |
17803 | }; | |
17804 | ||
17805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
17806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17808 | { | |
17809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17810 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17811 | ||
17812 | wxPyEndAllowThreads(__tstate); | |
17813 | if (PyErr_Occurred()) SWIG_fail; | |
17814 | } | |
17815 | { | |
17816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17817 | } | |
17818 | return resultobj; | |
17819 | fail: | |
17820 | return NULL; | |
17821 | } | |
17822 | ||
17823 | ||
17824 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17825 | PyObject *resultobj; | |
17826 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17827 | wxString result; | |
17828 | PyObject * obj0 = 0 ; | |
17829 | char *kwnames[] = { | |
17830 | (char *) "self", NULL | |
17831 | }; | |
17832 | ||
17833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
17834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17836 | { | |
17837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17838 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17839 | ||
17840 | wxPyEndAllowThreads(__tstate); | |
17841 | if (PyErr_Occurred()) SWIG_fail; | |
17842 | } | |
17843 | { | |
17844 | #if wxUSE_UNICODE | |
17845 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17846 | #else | |
17847 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17848 | #endif | |
17849 | } | |
17850 | return resultobj; | |
17851 | fail: | |
17852 | return NULL; | |
17853 | } | |
17854 | ||
17855 | ||
17856 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17857 | PyObject *resultobj; | |
17858 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17859 | bool result; | |
17860 | PyObject * obj0 = 0 ; | |
17861 | char *kwnames[] = { | |
17862 | (char *) "self", NULL | |
17863 | }; | |
17864 | ||
17865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
17866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17868 | { | |
17869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17870 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17871 | ||
17872 | wxPyEndAllowThreads(__tstate); | |
17873 | if (PyErr_Occurred()) SWIG_fail; | |
17874 | } | |
17875 | { | |
17876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17877 | } | |
17878 | return resultobj; | |
17879 | fail: | |
17880 | return NULL; | |
17881 | } | |
17882 | ||
17883 | ||
17884 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17885 | PyObject *resultobj; | |
17886 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17887 | bool result; | |
17888 | PyObject * obj0 = 0 ; | |
17889 | char *kwnames[] = { | |
17890 | (char *) "self", NULL | |
17891 | }; | |
17892 | ||
17893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
17894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17896 | { | |
17897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17898 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
17899 | ||
17900 | wxPyEndAllowThreads(__tstate); | |
17901 | if (PyErr_Occurred()) SWIG_fail; | |
17902 | } | |
17903 | { | |
17904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17905 | } | |
17906 | return resultobj; | |
17907 | fail: | |
17908 | return NULL; | |
17909 | } | |
17910 | ||
17911 | ||
17912 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17913 | PyObject *resultobj; | |
17914 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17915 | bool result; | |
17916 | PyObject * obj0 = 0 ; | |
17917 | char *kwnames[] = { | |
17918 | (char *) "self", NULL | |
17919 | }; | |
17920 | ||
17921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
17922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17924 | { | |
17925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17926 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
17927 | ||
17928 | wxPyEndAllowThreads(__tstate); | |
17929 | if (PyErr_Occurred()) SWIG_fail; | |
17930 | } | |
17931 | { | |
17932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17933 | } | |
17934 | return resultobj; | |
17935 | fail: | |
17936 | return NULL; | |
17937 | } | |
17938 | ||
17939 | ||
17940 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17941 | PyObject *resultobj; | |
17942 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17943 | bool arg2 ; | |
17944 | PyObject * obj0 = 0 ; | |
17945 | PyObject * obj1 = 0 ; | |
17946 | char *kwnames[] = { | |
17947 | (char *) "self",(char *) "check", NULL | |
17948 | }; | |
17949 | ||
17950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
17951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17953 | arg2 = (bool) SWIG_AsBool(obj1); | |
17954 | if (PyErr_Occurred()) SWIG_fail; | |
17955 | { | |
17956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17957 | (arg1)->Check(arg2); | |
17958 | ||
17959 | wxPyEndAllowThreads(__tstate); | |
17960 | if (PyErr_Occurred()) SWIG_fail; | |
17961 | } | |
17962 | Py_INCREF(Py_None); resultobj = Py_None; | |
17963 | return resultobj; | |
17964 | fail: | |
17965 | return NULL; | |
17966 | } | |
17967 | ||
17968 | ||
17969 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17970 | PyObject *resultobj; | |
17971 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17972 | bool arg2 ; | |
17973 | PyObject * obj0 = 0 ; | |
17974 | PyObject * obj1 = 0 ; | |
17975 | char *kwnames[] = { | |
17976 | (char *) "self",(char *) "enable", NULL | |
17977 | }; | |
17978 | ||
17979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
17980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17982 | arg2 = (bool) SWIG_AsBool(obj1); | |
17983 | if (PyErr_Occurred()) SWIG_fail; | |
17984 | { | |
17985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17986 | (arg1)->Enable(arg2); | |
17987 | ||
17988 | wxPyEndAllowThreads(__tstate); | |
17989 | if (PyErr_Occurred()) SWIG_fail; | |
17990 | } | |
17991 | Py_INCREF(Py_None); resultobj = Py_None; | |
17992 | return resultobj; | |
17993 | fail: | |
17994 | return NULL; | |
17995 | } | |
17996 | ||
17997 | ||
17998 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17999 | PyObject *resultobj; | |
18000 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18001 | wxString *arg2 = 0 ; | |
18002 | bool temp2 = False ; | |
18003 | PyObject * obj0 = 0 ; | |
18004 | PyObject * obj1 = 0 ; | |
18005 | char *kwnames[] = { | |
18006 | (char *) "self",(char *) "text", NULL | |
18007 | }; | |
18008 | ||
18009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18012 | { | |
18013 | arg2 = wxString_in_helper(obj1); | |
18014 | if (arg2 == NULL) SWIG_fail; | |
18015 | temp2 = True; | |
18016 | } | |
18017 | { | |
18018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18019 | (arg1)->SetText((wxString const &)*arg2); | |
18020 | ||
18021 | wxPyEndAllowThreads(__tstate); | |
18022 | if (PyErr_Occurred()) SWIG_fail; | |
18023 | } | |
18024 | Py_INCREF(Py_None); resultobj = Py_None; | |
18025 | { | |
18026 | if (temp2) | |
18027 | delete arg2; | |
18028 | } | |
18029 | return resultobj; | |
18030 | fail: | |
18031 | { | |
18032 | if (temp2) | |
18033 | delete arg2; | |
18034 | } | |
18035 | return NULL; | |
18036 | } | |
18037 | ||
18038 | ||
18039 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18040 | PyObject *resultobj; | |
18041 | long arg1 ; | |
18042 | PyObject * obj0 = 0 ; | |
18043 | char *kwnames[] = { | |
18044 | (char *) "updateInterval", NULL | |
18045 | }; | |
18046 | ||
18047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; | |
18048 | arg1 = (long) SWIG_AsLong(obj0); | |
18049 | if (PyErr_Occurred()) SWIG_fail; | |
18050 | { | |
18051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18052 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18053 | ||
18054 | wxPyEndAllowThreads(__tstate); | |
18055 | if (PyErr_Occurred()) SWIG_fail; | |
18056 | } | |
18057 | Py_INCREF(Py_None); resultobj = Py_None; | |
18058 | return resultobj; | |
18059 | fail: | |
18060 | return NULL; | |
18061 | } | |
18062 | ||
18063 | ||
18064 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18065 | PyObject *resultobj; | |
18066 | long result; | |
18067 | char *kwnames[] = { | |
18068 | NULL | |
18069 | }; | |
18070 | ||
18071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18072 | { | |
18073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18074 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18075 | ||
18076 | wxPyEndAllowThreads(__tstate); | |
18077 | if (PyErr_Occurred()) SWIG_fail; | |
18078 | } | |
18079 | resultobj = SWIG_FromLong((long)result); | |
18080 | return resultobj; | |
18081 | fail: | |
18082 | return NULL; | |
18083 | } | |
18084 | ||
18085 | ||
18086 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18087 | PyObject *resultobj; | |
18088 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18089 | bool result; | |
18090 | PyObject * obj0 = 0 ; | |
18091 | char *kwnames[] = { | |
18092 | (char *) "win", NULL | |
18093 | }; | |
18094 | ||
18095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
18096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18098 | { | |
18099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18100 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18101 | ||
18102 | wxPyEndAllowThreads(__tstate); | |
18103 | if (PyErr_Occurred()) SWIG_fail; | |
18104 | } | |
18105 | { | |
18106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18107 | } | |
18108 | return resultobj; | |
18109 | fail: | |
18110 | return NULL; | |
18111 | } | |
18112 | ||
18113 | ||
18114 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18115 | PyObject *resultobj; | |
18116 | char *kwnames[] = { | |
18117 | NULL | |
18118 | }; | |
18119 | ||
18120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18121 | { | |
18122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18123 | wxUpdateUIEvent::ResetUpdateTime(); | |
18124 | ||
18125 | wxPyEndAllowThreads(__tstate); | |
18126 | if (PyErr_Occurred()) SWIG_fail; | |
18127 | } | |
18128 | Py_INCREF(Py_None); resultobj = Py_None; | |
18129 | return resultobj; | |
18130 | fail: | |
18131 | return NULL; | |
18132 | } | |
18133 | ||
18134 | ||
18135 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18136 | PyObject *resultobj; | |
18137 | int arg1 ; | |
18138 | PyObject * obj0 = 0 ; | |
18139 | char *kwnames[] = { | |
18140 | (char *) "mode", NULL | |
18141 | }; | |
18142 | ||
18143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; | |
18144 | arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); | |
18145 | if (PyErr_Occurred()) SWIG_fail; | |
18146 | { | |
18147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18148 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18149 | ||
18150 | wxPyEndAllowThreads(__tstate); | |
18151 | if (PyErr_Occurred()) SWIG_fail; | |
18152 | } | |
18153 | Py_INCREF(Py_None); resultobj = Py_None; | |
18154 | return resultobj; | |
18155 | fail: | |
18156 | return NULL; | |
18157 | } | |
18158 | ||
18159 | ||
18160 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18161 | PyObject *resultobj; | |
18162 | int result; | |
18163 | char *kwnames[] = { | |
18164 | NULL | |
18165 | }; | |
18166 | ||
18167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18168 | { | |
18169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18170 | result = (int)wxUpdateUIEvent::GetMode(); | |
18171 | ||
18172 | wxPyEndAllowThreads(__tstate); | |
18173 | if (PyErr_Occurred()) SWIG_fail; | |
18174 | } | |
18175 | resultobj = SWIG_FromInt((int)result); | |
18176 | return resultobj; | |
18177 | fail: | |
18178 | return NULL; | |
18179 | } | |
18180 | ||
18181 | ||
18182 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
18183 | PyObject *obj; | |
18184 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18185 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18186 | Py_INCREF(obj); | |
18187 | return Py_BuildValue((char *)""); | |
18188 | } | |
18189 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18190 | PyObject *resultobj; | |
18191 | wxSysColourChangedEvent *result; | |
18192 | char *kwnames[] = { | |
18193 | NULL | |
18194 | }; | |
18195 | ||
18196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18197 | { | |
18198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18199 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18200 | ||
18201 | wxPyEndAllowThreads(__tstate); | |
18202 | if (PyErr_Occurred()) SWIG_fail; | |
18203 | } | |
18204 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
18205 | return resultobj; | |
18206 | fail: | |
18207 | return NULL; | |
18208 | } | |
18209 | ||
18210 | ||
18211 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18212 | PyObject *obj; | |
18213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18214 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18215 | Py_INCREF(obj); | |
18216 | return Py_BuildValue((char *)""); | |
18217 | } | |
18218 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18219 | PyObject *resultobj; | |
18220 | int arg1 = (int) 0 ; | |
18221 | wxWindow *arg2 = (wxWindow *) NULL ; | |
18222 | wxMouseCaptureChangedEvent *result; | |
18223 | PyObject * obj0 = 0 ; | |
18224 | PyObject * obj1 = 0 ; | |
18225 | char *kwnames[] = { | |
18226 | (char *) "winid",(char *) "gainedCapture", NULL | |
18227 | }; | |
18228 | ||
18229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; | |
18230 | if (obj0) { | |
18231 | arg1 = (int) SWIG_AsInt(obj0); | |
18232 | if (PyErr_Occurred()) SWIG_fail; | |
18233 | } | |
18234 | if (obj1) { | |
18235 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18237 | } | |
18238 | { | |
18239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18240 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18241 | ||
18242 | wxPyEndAllowThreads(__tstate); | |
18243 | if (PyErr_Occurred()) SWIG_fail; | |
18244 | } | |
18245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
18246 | return resultobj; | |
18247 | fail: | |
18248 | return NULL; | |
18249 | } | |
18250 | ||
18251 | ||
18252 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18253 | PyObject *resultobj; | |
18254 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18255 | wxWindow *result; | |
18256 | PyObject * obj0 = 0 ; | |
18257 | char *kwnames[] = { | |
18258 | (char *) "self", NULL | |
18259 | }; | |
18260 | ||
18261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
18262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, | |
18263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18264 | { | |
18265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18266 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18267 | ||
18268 | wxPyEndAllowThreads(__tstate); | |
18269 | if (PyErr_Occurred()) SWIG_fail; | |
18270 | } | |
18271 | { | |
18272 | resultobj = wxPyMake_wxObject(result); | |
18273 | } | |
18274 | return resultobj; | |
18275 | fail: | |
18276 | return NULL; | |
18277 | } | |
18278 | ||
18279 | ||
18280 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18281 | PyObject *obj; | |
18282 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18283 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18284 | Py_INCREF(obj); | |
18285 | return Py_BuildValue((char *)""); | |
18286 | } | |
18287 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18288 | PyObject *resultobj; | |
18289 | wxDisplayChangedEvent *result; | |
18290 | char *kwnames[] = { | |
18291 | NULL | |
18292 | }; | |
18293 | ||
18294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18295 | { | |
18296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18297 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18298 | ||
18299 | wxPyEndAllowThreads(__tstate); | |
18300 | if (PyErr_Occurred()) SWIG_fail; | |
18301 | } | |
18302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
18303 | return resultobj; | |
18304 | fail: | |
18305 | return NULL; | |
18306 | } | |
18307 | ||
18308 | ||
18309 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18310 | PyObject *obj; | |
18311 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18312 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18313 | Py_INCREF(obj); | |
18314 | return Py_BuildValue((char *)""); | |
18315 | } | |
18316 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18317 | PyObject *resultobj; | |
18318 | int arg1 = (int) 0 ; | |
18319 | wxPaletteChangedEvent *result; | |
18320 | PyObject * obj0 = 0 ; | |
18321 | char *kwnames[] = { | |
18322 | (char *) "id", NULL | |
18323 | }; | |
18324 | ||
18325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; | |
18326 | if (obj0) { | |
18327 | arg1 = (int) SWIG_AsInt(obj0); | |
18328 | if (PyErr_Occurred()) SWIG_fail; | |
18329 | } | |
18330 | { | |
18331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18332 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18333 | ||
18334 | wxPyEndAllowThreads(__tstate); | |
18335 | if (PyErr_Occurred()) SWIG_fail; | |
18336 | } | |
18337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
18338 | return resultobj; | |
18339 | fail: | |
18340 | return NULL; | |
18341 | } | |
18342 | ||
18343 | ||
18344 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18345 | PyObject *resultobj; | |
18346 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18347 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18348 | PyObject * obj0 = 0 ; | |
18349 | PyObject * obj1 = 0 ; | |
18350 | char *kwnames[] = { | |
18351 | (char *) "self",(char *) "win", NULL | |
18352 | }; | |
18353 | ||
18354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
18355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18357 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18359 | { | |
18360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18361 | (arg1)->SetChangedWindow(arg2); | |
18362 | ||
18363 | wxPyEndAllowThreads(__tstate); | |
18364 | if (PyErr_Occurred()) SWIG_fail; | |
18365 | } | |
18366 | Py_INCREF(Py_None); resultobj = Py_None; | |
18367 | return resultobj; | |
18368 | fail: | |
18369 | return NULL; | |
18370 | } | |
18371 | ||
18372 | ||
18373 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18374 | PyObject *resultobj; | |
18375 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18376 | wxWindow *result; | |
18377 | PyObject * obj0 = 0 ; | |
18378 | char *kwnames[] = { | |
18379 | (char *) "self", NULL | |
18380 | }; | |
18381 | ||
18382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
18383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18385 | { | |
18386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18387 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18388 | ||
18389 | wxPyEndAllowThreads(__tstate); | |
18390 | if (PyErr_Occurred()) SWIG_fail; | |
18391 | } | |
18392 | { | |
18393 | resultobj = wxPyMake_wxObject(result); | |
18394 | } | |
18395 | return resultobj; | |
18396 | fail: | |
18397 | return NULL; | |
18398 | } | |
18399 | ||
18400 | ||
18401 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18402 | PyObject *obj; | |
18403 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18404 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18405 | Py_INCREF(obj); | |
18406 | return Py_BuildValue((char *)""); | |
18407 | } | |
18408 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18409 | PyObject *resultobj; | |
18410 | int arg1 = (int) 0 ; | |
18411 | wxQueryNewPaletteEvent *result; | |
18412 | PyObject * obj0 = 0 ; | |
18413 | char *kwnames[] = { | |
18414 | (char *) "winid", NULL | |
18415 | }; | |
18416 | ||
18417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; | |
18418 | if (obj0) { | |
18419 | arg1 = (int) SWIG_AsInt(obj0); | |
18420 | if (PyErr_Occurred()) SWIG_fail; | |
18421 | } | |
18422 | { | |
18423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18424 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18425 | ||
18426 | wxPyEndAllowThreads(__tstate); | |
18427 | if (PyErr_Occurred()) SWIG_fail; | |
18428 | } | |
18429 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
18430 | return resultobj; | |
18431 | fail: | |
18432 | return NULL; | |
18433 | } | |
18434 | ||
18435 | ||
18436 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18437 | PyObject *resultobj; | |
18438 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18439 | bool arg2 ; | |
18440 | PyObject * obj0 = 0 ; | |
18441 | PyObject * obj1 = 0 ; | |
18442 | char *kwnames[] = { | |
18443 | (char *) "self",(char *) "realized", NULL | |
18444 | }; | |
18445 | ||
18446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
18447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18449 | arg2 = (bool) SWIG_AsBool(obj1); | |
18450 | if (PyErr_Occurred()) SWIG_fail; | |
18451 | { | |
18452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18453 | (arg1)->SetPaletteRealized(arg2); | |
18454 | ||
18455 | wxPyEndAllowThreads(__tstate); | |
18456 | if (PyErr_Occurred()) SWIG_fail; | |
18457 | } | |
18458 | Py_INCREF(Py_None); resultobj = Py_None; | |
18459 | return resultobj; | |
18460 | fail: | |
18461 | return NULL; | |
18462 | } | |
18463 | ||
18464 | ||
18465 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18466 | PyObject *resultobj; | |
18467 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18468 | bool result; | |
18469 | PyObject * obj0 = 0 ; | |
18470 | char *kwnames[] = { | |
18471 | (char *) "self", NULL | |
18472 | }; | |
18473 | ||
18474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
18475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18477 | { | |
18478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18479 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18480 | ||
18481 | wxPyEndAllowThreads(__tstate); | |
18482 | if (PyErr_Occurred()) SWIG_fail; | |
18483 | } | |
18484 | { | |
18485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18486 | } | |
18487 | return resultobj; | |
18488 | fail: | |
18489 | return NULL; | |
18490 | } | |
18491 | ||
18492 | ||
18493 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
18494 | PyObject *obj; | |
18495 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18496 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18497 | Py_INCREF(obj); | |
18498 | return Py_BuildValue((char *)""); | |
18499 | } | |
18500 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18501 | PyObject *resultobj; | |
18502 | wxNavigationKeyEvent *result; | |
18503 | char *kwnames[] = { | |
18504 | NULL | |
18505 | }; | |
18506 | ||
18507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18508 | { | |
18509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18510 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18511 | ||
18512 | wxPyEndAllowThreads(__tstate); | |
18513 | if (PyErr_Occurred()) SWIG_fail; | |
18514 | } | |
18515 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
18516 | return resultobj; | |
18517 | fail: | |
18518 | return NULL; | |
18519 | } | |
18520 | ||
18521 | ||
18522 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18523 | PyObject *resultobj; | |
18524 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18525 | bool result; | |
18526 | PyObject * obj0 = 0 ; | |
18527 | char *kwnames[] = { | |
18528 | (char *) "self", NULL | |
18529 | }; | |
18530 | ||
18531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
18532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18534 | { | |
18535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18536 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18537 | ||
18538 | wxPyEndAllowThreads(__tstate); | |
18539 | if (PyErr_Occurred()) SWIG_fail; | |
18540 | } | |
18541 | { | |
18542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18543 | } | |
18544 | return resultobj; | |
18545 | fail: | |
18546 | return NULL; | |
18547 | } | |
18548 | ||
18549 | ||
18550 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18551 | PyObject *resultobj; | |
18552 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18553 | bool arg2 ; | |
18554 | PyObject * obj0 = 0 ; | |
18555 | PyObject * obj1 = 0 ; | |
18556 | char *kwnames[] = { | |
18557 | (char *) "self",(char *) "bForward", NULL | |
18558 | }; | |
18559 | ||
18560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
18561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18563 | arg2 = (bool) SWIG_AsBool(obj1); | |
18564 | if (PyErr_Occurred()) SWIG_fail; | |
18565 | { | |
18566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18567 | (arg1)->SetDirection(arg2); | |
18568 | ||
18569 | wxPyEndAllowThreads(__tstate); | |
18570 | if (PyErr_Occurred()) SWIG_fail; | |
18571 | } | |
18572 | Py_INCREF(Py_None); resultobj = Py_None; | |
18573 | return resultobj; | |
18574 | fail: | |
18575 | return NULL; | |
18576 | } | |
18577 | ||
18578 | ||
18579 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18580 | PyObject *resultobj; | |
18581 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18582 | bool result; | |
18583 | PyObject * obj0 = 0 ; | |
18584 | char *kwnames[] = { | |
18585 | (char *) "self", NULL | |
18586 | }; | |
18587 | ||
18588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
18589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18591 | { | |
18592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18593 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
18594 | ||
18595 | wxPyEndAllowThreads(__tstate); | |
18596 | if (PyErr_Occurred()) SWIG_fail; | |
18597 | } | |
18598 | { | |
18599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18600 | } | |
18601 | return resultobj; | |
18602 | fail: | |
18603 | return NULL; | |
18604 | } | |
18605 | ||
18606 | ||
18607 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18608 | PyObject *resultobj; | |
18609 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18610 | bool arg2 ; | |
18611 | PyObject * obj0 = 0 ; | |
18612 | PyObject * obj1 = 0 ; | |
18613 | char *kwnames[] = { | |
18614 | (char *) "self",(char *) "bIs", NULL | |
18615 | }; | |
18616 | ||
18617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
18618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18620 | arg2 = (bool) SWIG_AsBool(obj1); | |
18621 | if (PyErr_Occurred()) SWIG_fail; | |
18622 | { | |
18623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18624 | (arg1)->SetWindowChange(arg2); | |
18625 | ||
18626 | wxPyEndAllowThreads(__tstate); | |
18627 | if (PyErr_Occurred()) SWIG_fail; | |
18628 | } | |
18629 | Py_INCREF(Py_None); resultobj = Py_None; | |
18630 | return resultobj; | |
18631 | fail: | |
18632 | return NULL; | |
18633 | } | |
18634 | ||
18635 | ||
18636 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18637 | PyObject *resultobj; | |
18638 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18639 | wxWindow *result; | |
18640 | PyObject * obj0 = 0 ; | |
18641 | char *kwnames[] = { | |
18642 | (char *) "self", NULL | |
18643 | }; | |
18644 | ||
18645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
18646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18648 | { | |
18649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18650 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18651 | ||
18652 | wxPyEndAllowThreads(__tstate); | |
18653 | if (PyErr_Occurred()) SWIG_fail; | |
18654 | } | |
18655 | { | |
18656 | resultobj = wxPyMake_wxObject(result); | |
18657 | } | |
18658 | return resultobj; | |
18659 | fail: | |
18660 | return NULL; | |
18661 | } | |
18662 | ||
18663 | ||
18664 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18665 | PyObject *resultobj; | |
18666 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18667 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18668 | PyObject * obj0 = 0 ; | |
18669 | PyObject * obj1 = 0 ; | |
18670 | char *kwnames[] = { | |
18671 | (char *) "self",(char *) "win", NULL | |
18672 | }; | |
18673 | ||
18674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
18675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18677 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18679 | { | |
18680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18681 | (arg1)->SetCurrentFocus(arg2); | |
18682 | ||
18683 | wxPyEndAllowThreads(__tstate); | |
18684 | if (PyErr_Occurred()) SWIG_fail; | |
18685 | } | |
18686 | Py_INCREF(Py_None); resultobj = Py_None; | |
18687 | return resultobj; | |
18688 | fail: | |
18689 | return NULL; | |
18690 | } | |
18691 | ||
18692 | ||
18693 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18694 | PyObject *obj; | |
18695 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18696 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18697 | Py_INCREF(obj); | |
18698 | return Py_BuildValue((char *)""); | |
18699 | } | |
18700 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18701 | PyObject *resultobj; | |
18702 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18703 | wxWindowCreateEvent *result; | |
18704 | PyObject * obj0 = 0 ; | |
18705 | char *kwnames[] = { | |
18706 | (char *) "win", NULL | |
18707 | }; | |
18708 | ||
18709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18710 | if (obj0) { | |
18711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18713 | } | |
18714 | { | |
18715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18716 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18717 | ||
18718 | wxPyEndAllowThreads(__tstate); | |
18719 | if (PyErr_Occurred()) SWIG_fail; | |
18720 | } | |
18721 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); | |
18722 | return resultobj; | |
18723 | fail: | |
18724 | return NULL; | |
18725 | } | |
18726 | ||
18727 | ||
18728 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18729 | PyObject *resultobj; | |
18730 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18731 | wxWindow *result; | |
18732 | PyObject * obj0 = 0 ; | |
18733 | char *kwnames[] = { | |
18734 | (char *) "self", NULL | |
18735 | }; | |
18736 | ||
18737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
18738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, | |
18739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18740 | { | |
18741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18742 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18743 | ||
18744 | wxPyEndAllowThreads(__tstate); | |
18745 | if (PyErr_Occurred()) SWIG_fail; | |
18746 | } | |
18747 | { | |
18748 | resultobj = wxPyMake_wxObject(result); | |
18749 | } | |
18750 | return resultobj; | |
18751 | fail: | |
18752 | return NULL; | |
18753 | } | |
18754 | ||
18755 | ||
18756 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18757 | PyObject *obj; | |
18758 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18759 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18760 | Py_INCREF(obj); | |
18761 | return Py_BuildValue((char *)""); | |
18762 | } | |
18763 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18764 | PyObject *resultobj; | |
18765 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18766 | wxWindowDestroyEvent *result; | |
18767 | PyObject * obj0 = 0 ; | |
18768 | char *kwnames[] = { | |
18769 | (char *) "win", NULL | |
18770 | }; | |
18771 | ||
18772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18773 | if (obj0) { | |
18774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18776 | } | |
18777 | { | |
18778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18779 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18780 | ||
18781 | wxPyEndAllowThreads(__tstate); | |
18782 | if (PyErr_Occurred()) SWIG_fail; | |
18783 | } | |
18784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
18785 | return resultobj; | |
18786 | fail: | |
18787 | return NULL; | |
18788 | } | |
18789 | ||
18790 | ||
18791 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18792 | PyObject *resultobj; | |
18793 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18794 | wxWindow *result; | |
18795 | PyObject * obj0 = 0 ; | |
18796 | char *kwnames[] = { | |
18797 | (char *) "self", NULL | |
18798 | }; | |
18799 | ||
18800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
18801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, | |
18802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18803 | { | |
18804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18805 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18806 | ||
18807 | wxPyEndAllowThreads(__tstate); | |
18808 | if (PyErr_Occurred()) SWIG_fail; | |
18809 | } | |
18810 | { | |
18811 | resultobj = wxPyMake_wxObject(result); | |
18812 | } | |
18813 | return resultobj; | |
18814 | fail: | |
18815 | return NULL; | |
18816 | } | |
18817 | ||
18818 | ||
18819 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
18820 | PyObject *obj; | |
18821 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18822 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18823 | Py_INCREF(obj); | |
18824 | return Py_BuildValue((char *)""); | |
18825 | } | |
18826 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18827 | PyObject *resultobj; | |
18828 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18829 | int arg2 = (int) 0 ; | |
18830 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
18831 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18832 | wxContextMenuEvent *result; | |
18833 | wxPoint temp3 ; | |
18834 | PyObject * obj0 = 0 ; | |
18835 | PyObject * obj1 = 0 ; | |
18836 | PyObject * obj2 = 0 ; | |
18837 | char *kwnames[] = { | |
18838 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18839 | }; | |
18840 | ||
18841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18842 | if (obj0) { | |
18843 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
18844 | if (PyErr_Occurred()) SWIG_fail; | |
18845 | } | |
18846 | if (obj1) { | |
18847 | arg2 = (int) SWIG_AsInt(obj1); | |
18848 | if (PyErr_Occurred()) SWIG_fail; | |
18849 | } | |
18850 | if (obj2) { | |
18851 | { | |
18852 | arg3 = &temp3; | |
18853 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18854 | } | |
18855 | } | |
18856 | { | |
18857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18858 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18859 | ||
18860 | wxPyEndAllowThreads(__tstate); | |
18861 | if (PyErr_Occurred()) SWIG_fail; | |
18862 | } | |
18863 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); | |
18864 | return resultobj; | |
18865 | fail: | |
18866 | return NULL; | |
18867 | } | |
18868 | ||
18869 | ||
18870 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18871 | PyObject *resultobj; | |
18872 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18873 | wxPoint *result; | |
18874 | PyObject * obj0 = 0 ; | |
18875 | char *kwnames[] = { | |
18876 | (char *) "self", NULL | |
18877 | }; | |
18878 | ||
18879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
18880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
18881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18882 | { | |
18883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18884 | { | |
18885 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
18886 | result = (wxPoint *) &_result_ref; | |
18887 | } | |
18888 | ||
18889 | wxPyEndAllowThreads(__tstate); | |
18890 | if (PyErr_Occurred()) SWIG_fail; | |
18891 | } | |
18892 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
18893 | return resultobj; | |
18894 | fail: | |
18895 | return NULL; | |
18896 | } | |
18897 | ||
18898 | ||
18899 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18900 | PyObject *resultobj; | |
18901 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18902 | wxPoint *arg2 = 0 ; | |
18903 | wxPoint temp2 ; | |
18904 | PyObject * obj0 = 0 ; | |
18905 | PyObject * obj1 = 0 ; | |
18906 | char *kwnames[] = { | |
18907 | (char *) "self",(char *) "pos", NULL | |
18908 | }; | |
18909 | ||
18910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
18911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
18912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18913 | { | |
18914 | arg2 = &temp2; | |
18915 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18916 | } | |
18917 | { | |
18918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18919 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
18920 | ||
18921 | wxPyEndAllowThreads(__tstate); | |
18922 | if (PyErr_Occurred()) SWIG_fail; | |
18923 | } | |
18924 | Py_INCREF(Py_None); resultobj = Py_None; | |
18925 | return resultobj; | |
18926 | fail: | |
18927 | return NULL; | |
18928 | } | |
18929 | ||
18930 | ||
18931 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
18932 | PyObject *obj; | |
18933 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18934 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
18935 | Py_INCREF(obj); | |
18936 | return Py_BuildValue((char *)""); | |
18937 | } | |
18938 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18939 | PyObject *resultobj; | |
18940 | wxIdleEvent *result; | |
18941 | char *kwnames[] = { | |
18942 | NULL | |
18943 | }; | |
18944 | ||
18945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
18946 | { | |
18947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18948 | result = (wxIdleEvent *)new wxIdleEvent(); | |
18949 | ||
18950 | wxPyEndAllowThreads(__tstate); | |
18951 | if (PyErr_Occurred()) SWIG_fail; | |
18952 | } | |
18953 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); | |
18954 | return resultobj; | |
18955 | fail: | |
18956 | return NULL; | |
18957 | } | |
18958 | ||
18959 | ||
18960 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18961 | PyObject *resultobj; | |
18962 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
18963 | bool arg2 = (bool) True ; | |
18964 | PyObject * obj0 = 0 ; | |
18965 | PyObject * obj1 = 0 ; | |
18966 | char *kwnames[] = { | |
18967 | (char *) "self",(char *) "needMore", NULL | |
18968 | }; | |
18969 | ||
18970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
18971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
18972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18973 | if (obj1) { | |
18974 | arg2 = (bool) SWIG_AsBool(obj1); | |
18975 | if (PyErr_Occurred()) SWIG_fail; | |
18976 | } | |
18977 | { | |
18978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18979 | (arg1)->RequestMore(arg2); | |
18980 | ||
18981 | wxPyEndAllowThreads(__tstate); | |
18982 | if (PyErr_Occurred()) SWIG_fail; | |
18983 | } | |
18984 | Py_INCREF(Py_None); resultobj = Py_None; | |
18985 | return resultobj; | |
18986 | fail: | |
18987 | return NULL; | |
18988 | } | |
18989 | ||
18990 | ||
18991 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18992 | PyObject *resultobj; | |
18993 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
18994 | bool result; | |
18995 | PyObject * obj0 = 0 ; | |
18996 | char *kwnames[] = { | |
18997 | (char *) "self", NULL | |
18998 | }; | |
18999 | ||
19000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
19001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19003 | { | |
19004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19005 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19006 | ||
19007 | wxPyEndAllowThreads(__tstate); | |
19008 | if (PyErr_Occurred()) SWIG_fail; | |
19009 | } | |
19010 | { | |
19011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19012 | } | |
19013 | return resultobj; | |
19014 | fail: | |
19015 | return NULL; | |
19016 | } | |
19017 | ||
19018 | ||
19019 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19020 | PyObject *resultobj; | |
19021 | int arg1 ; | |
19022 | PyObject * obj0 = 0 ; | |
19023 | char *kwnames[] = { | |
19024 | (char *) "mode", NULL | |
19025 | }; | |
19026 | ||
19027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; | |
19028 | arg1 = (wxIdleMode) SWIG_AsInt(obj0); | |
19029 | if (PyErr_Occurred()) SWIG_fail; | |
19030 | { | |
19031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19032 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19033 | ||
19034 | wxPyEndAllowThreads(__tstate); | |
19035 | if (PyErr_Occurred()) SWIG_fail; | |
19036 | } | |
19037 | Py_INCREF(Py_None); resultobj = Py_None; | |
19038 | return resultobj; | |
19039 | fail: | |
19040 | return NULL; | |
19041 | } | |
19042 | ||
19043 | ||
19044 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19045 | PyObject *resultobj; | |
19046 | int result; | |
19047 | char *kwnames[] = { | |
19048 | NULL | |
19049 | }; | |
19050 | ||
19051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19052 | { | |
19053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19054 | result = (int)wxIdleEvent::GetMode(); | |
19055 | ||
19056 | wxPyEndAllowThreads(__tstate); | |
19057 | if (PyErr_Occurred()) SWIG_fail; | |
19058 | } | |
19059 | resultobj = SWIG_FromInt((int)result); | |
19060 | return resultobj; | |
19061 | fail: | |
19062 | return NULL; | |
19063 | } | |
19064 | ||
19065 | ||
19066 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19067 | PyObject *resultobj; | |
19068 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19069 | bool result; | |
19070 | PyObject * obj0 = 0 ; | |
19071 | char *kwnames[] = { | |
19072 | (char *) "win", NULL | |
19073 | }; | |
19074 | ||
19075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
19076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19078 | { | |
19079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19080 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19081 | ||
19082 | wxPyEndAllowThreads(__tstate); | |
19083 | if (PyErr_Occurred()) SWIG_fail; | |
19084 | } | |
19085 | { | |
19086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19087 | } | |
19088 | return resultobj; | |
19089 | fail: | |
19090 | return NULL; | |
19091 | } | |
19092 | ||
19093 | ||
19094 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
19095 | PyObject *obj; | |
19096 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19097 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19098 | Py_INCREF(obj); | |
19099 | return Py_BuildValue((char *)""); | |
19100 | } | |
19101 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19102 | PyObject *resultobj; | |
19103 | int arg1 = (int) 0 ; | |
19104 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19105 | wxPyEvent *result; | |
19106 | PyObject * obj0 = 0 ; | |
19107 | PyObject * obj1 = 0 ; | |
19108 | char *kwnames[] = { | |
19109 | (char *) "winid",(char *) "commandType", NULL | |
19110 | }; | |
19111 | ||
19112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; | |
19113 | if (obj0) { | |
19114 | arg1 = (int) SWIG_AsInt(obj0); | |
19115 | if (PyErr_Occurred()) SWIG_fail; | |
19116 | } | |
19117 | if (obj1) { | |
19118 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
19119 | if (PyErr_Occurred()) SWIG_fail; | |
19120 | } | |
19121 | { | |
19122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19123 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19124 | ||
19125 | wxPyEndAllowThreads(__tstate); | |
19126 | if (PyErr_Occurred()) SWIG_fail; | |
19127 | } | |
19128 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); | |
19129 | return resultobj; | |
19130 | fail: | |
19131 | return NULL; | |
19132 | } | |
19133 | ||
19134 | ||
19135 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19136 | PyObject *resultobj; | |
19137 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19138 | PyObject * obj0 = 0 ; | |
19139 | char *kwnames[] = { | |
19140 | (char *) "self", NULL | |
19141 | }; | |
19142 | ||
19143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
19144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19146 | { | |
19147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19148 | delete arg1; | |
19149 | ||
19150 | wxPyEndAllowThreads(__tstate); | |
19151 | if (PyErr_Occurred()) SWIG_fail; | |
19152 | } | |
19153 | Py_INCREF(Py_None); resultobj = Py_None; | |
19154 | return resultobj; | |
19155 | fail: | |
19156 | return NULL; | |
19157 | } | |
19158 | ||
19159 | ||
19160 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19161 | PyObject *resultobj; | |
19162 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19163 | PyObject *arg2 = (PyObject *) 0 ; | |
19164 | PyObject * obj0 = 0 ; | |
19165 | PyObject * obj1 = 0 ; | |
19166 | char *kwnames[] = { | |
19167 | (char *) "self",(char *) "self", NULL | |
19168 | }; | |
19169 | ||
19170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19173 | arg2 = obj1; | |
19174 | { | |
19175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19176 | (arg1)->SetSelf(arg2); | |
19177 | ||
19178 | wxPyEndAllowThreads(__tstate); | |
19179 | if (PyErr_Occurred()) SWIG_fail; | |
19180 | } | |
19181 | Py_INCREF(Py_None); resultobj = Py_None; | |
19182 | return resultobj; | |
19183 | fail: | |
19184 | return NULL; | |
19185 | } | |
19186 | ||
19187 | ||
19188 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19189 | PyObject *resultobj; | |
19190 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19191 | PyObject *result; | |
19192 | PyObject * obj0 = 0 ; | |
19193 | char *kwnames[] = { | |
19194 | (char *) "self", NULL | |
19195 | }; | |
19196 | ||
19197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19200 | { | |
19201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19202 | result = (PyObject *)(arg1)->GetSelf(); | |
19203 | ||
19204 | wxPyEndAllowThreads(__tstate); | |
19205 | if (PyErr_Occurred()) SWIG_fail; | |
19206 | } | |
19207 | resultobj = result; | |
19208 | return resultobj; | |
19209 | fail: | |
19210 | return NULL; | |
19211 | } | |
19212 | ||
19213 | ||
19214 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
19215 | PyObject *obj; | |
19216 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19217 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19218 | Py_INCREF(obj); | |
19219 | return Py_BuildValue((char *)""); | |
19220 | } | |
19221 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19222 | PyObject *resultobj; | |
19223 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19224 | int arg2 = (int) 0 ; | |
19225 | wxPyCommandEvent *result; | |
19226 | PyObject * obj0 = 0 ; | |
19227 | PyObject * obj1 = 0 ; | |
19228 | char *kwnames[] = { | |
19229 | (char *) "commandType",(char *) "id", NULL | |
19230 | }; | |
19231 | ||
19232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
19233 | if (obj0) { | |
19234 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
19235 | if (PyErr_Occurred()) SWIG_fail; | |
19236 | } | |
19237 | if (obj1) { | |
19238 | arg2 = (int) SWIG_AsInt(obj1); | |
19239 | if (PyErr_Occurred()) SWIG_fail; | |
19240 | } | |
19241 | { | |
19242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19243 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19244 | ||
19245 | wxPyEndAllowThreads(__tstate); | |
19246 | if (PyErr_Occurred()) SWIG_fail; | |
19247 | } | |
19248 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); | |
19249 | return resultobj; | |
19250 | fail: | |
19251 | return NULL; | |
19252 | } | |
19253 | ||
19254 | ||
19255 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19256 | PyObject *resultobj; | |
19257 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19258 | PyObject * obj0 = 0 ; | |
19259 | char *kwnames[] = { | |
19260 | (char *) "self", NULL | |
19261 | }; | |
19262 | ||
19263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
19264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19266 | { | |
19267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19268 | delete arg1; | |
19269 | ||
19270 | wxPyEndAllowThreads(__tstate); | |
19271 | if (PyErr_Occurred()) SWIG_fail; | |
19272 | } | |
19273 | Py_INCREF(Py_None); resultobj = Py_None; | |
19274 | return resultobj; | |
19275 | fail: | |
19276 | return NULL; | |
19277 | } | |
19278 | ||
19279 | ||
19280 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19281 | PyObject *resultobj; | |
19282 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19283 | PyObject *arg2 = (PyObject *) 0 ; | |
19284 | PyObject * obj0 = 0 ; | |
19285 | PyObject * obj1 = 0 ; | |
19286 | char *kwnames[] = { | |
19287 | (char *) "self",(char *) "self", NULL | |
19288 | }; | |
19289 | ||
19290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19293 | arg2 = obj1; | |
19294 | { | |
19295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19296 | (arg1)->SetSelf(arg2); | |
19297 | ||
19298 | wxPyEndAllowThreads(__tstate); | |
19299 | if (PyErr_Occurred()) SWIG_fail; | |
19300 | } | |
19301 | Py_INCREF(Py_None); resultobj = Py_None; | |
19302 | return resultobj; | |
19303 | fail: | |
19304 | return NULL; | |
19305 | } | |
19306 | ||
19307 | ||
19308 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19309 | PyObject *resultobj; | |
19310 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19311 | PyObject *result; | |
19312 | PyObject * obj0 = 0 ; | |
19313 | char *kwnames[] = { | |
19314 | (char *) "self", NULL | |
19315 | }; | |
19316 | ||
19317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19320 | { | |
19321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19322 | result = (PyObject *)(arg1)->GetSelf(); | |
19323 | ||
19324 | wxPyEndAllowThreads(__tstate); | |
19325 | if (PyErr_Occurred()) SWIG_fail; | |
19326 | } | |
19327 | resultobj = result; | |
19328 | return resultobj; | |
19329 | fail: | |
19330 | return NULL; | |
19331 | } | |
19332 | ||
19333 | ||
19334 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
19335 | PyObject *obj; | |
19336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19337 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19338 | Py_INCREF(obj); | |
19339 | return Py_BuildValue((char *)""); | |
19340 | } | |
19341 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19342 | PyObject *resultobj; | |
19343 | wxPyApp *result; | |
19344 | char *kwnames[] = { | |
19345 | NULL | |
19346 | }; | |
19347 | ||
19348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19349 | { | |
19350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19351 | result = (wxPyApp *)new_wxPyApp(); | |
19352 | ||
19353 | wxPyEndAllowThreads(__tstate); | |
19354 | if (PyErr_Occurred()) SWIG_fail; | |
19355 | } | |
19356 | { | |
19357 | resultobj = wxPyMake_wxObject(result); | |
19358 | } | |
19359 | return resultobj; | |
19360 | fail: | |
19361 | return NULL; | |
19362 | } | |
19363 | ||
19364 | ||
19365 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19366 | PyObject *resultobj; | |
19367 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19368 | PyObject * obj0 = 0 ; | |
19369 | char *kwnames[] = { | |
19370 | (char *) "self", NULL | |
19371 | }; | |
19372 | ||
19373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
19374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19376 | { | |
19377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19378 | delete arg1; | |
19379 | ||
19380 | wxPyEndAllowThreads(__tstate); | |
19381 | if (PyErr_Occurred()) SWIG_fail; | |
19382 | } | |
19383 | Py_INCREF(Py_None); resultobj = Py_None; | |
19384 | return resultobj; | |
19385 | fail: | |
19386 | return NULL; | |
19387 | } | |
19388 | ||
19389 | ||
19390 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19391 | PyObject *resultobj; | |
19392 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19393 | PyObject *arg2 = (PyObject *) 0 ; | |
19394 | PyObject *arg3 = (PyObject *) 0 ; | |
19395 | PyObject * obj0 = 0 ; | |
19396 | PyObject * obj1 = 0 ; | |
19397 | PyObject * obj2 = 0 ; | |
19398 | char *kwnames[] = { | |
19399 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19400 | }; | |
19401 | ||
19402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19405 | arg2 = obj1; | |
19406 | arg3 = obj2; | |
19407 | { | |
19408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19409 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19410 | ||
19411 | wxPyEndAllowThreads(__tstate); | |
19412 | if (PyErr_Occurred()) SWIG_fail; | |
19413 | } | |
19414 | Py_INCREF(Py_None); resultobj = Py_None; | |
19415 | return resultobj; | |
19416 | fail: | |
19417 | return NULL; | |
19418 | } | |
19419 | ||
19420 | ||
19421 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19422 | PyObject *resultobj; | |
19423 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19424 | wxString result; | |
19425 | PyObject * obj0 = 0 ; | |
19426 | char *kwnames[] = { | |
19427 | (char *) "self", NULL | |
19428 | }; | |
19429 | ||
19430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
19431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19433 | { | |
19434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19435 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19436 | ||
19437 | wxPyEndAllowThreads(__tstate); | |
19438 | if (PyErr_Occurred()) SWIG_fail; | |
19439 | } | |
19440 | { | |
19441 | #if wxUSE_UNICODE | |
19442 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19443 | #else | |
19444 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19445 | #endif | |
19446 | } | |
19447 | return resultobj; | |
19448 | fail: | |
19449 | return NULL; | |
19450 | } | |
19451 | ||
19452 | ||
19453 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19454 | PyObject *resultobj; | |
19455 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19456 | wxString *arg2 = 0 ; | |
19457 | bool temp2 = False ; | |
19458 | PyObject * obj0 = 0 ; | |
19459 | PyObject * obj1 = 0 ; | |
19460 | char *kwnames[] = { | |
19461 | (char *) "self",(char *) "name", NULL | |
19462 | }; | |
19463 | ||
19464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
19465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19467 | { | |
19468 | arg2 = wxString_in_helper(obj1); | |
19469 | if (arg2 == NULL) SWIG_fail; | |
19470 | temp2 = True; | |
19471 | } | |
19472 | { | |
19473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19474 | (arg1)->SetAppName((wxString const &)*arg2); | |
19475 | ||
19476 | wxPyEndAllowThreads(__tstate); | |
19477 | if (PyErr_Occurred()) SWIG_fail; | |
19478 | } | |
19479 | Py_INCREF(Py_None); resultobj = Py_None; | |
19480 | { | |
19481 | if (temp2) | |
19482 | delete arg2; | |
19483 | } | |
19484 | return resultobj; | |
19485 | fail: | |
19486 | { | |
19487 | if (temp2) | |
19488 | delete arg2; | |
19489 | } | |
19490 | return NULL; | |
19491 | } | |
19492 | ||
19493 | ||
19494 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19495 | PyObject *resultobj; | |
19496 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19497 | wxString result; | |
19498 | PyObject * obj0 = 0 ; | |
19499 | char *kwnames[] = { | |
19500 | (char *) "self", NULL | |
19501 | }; | |
19502 | ||
19503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
19504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19506 | { | |
19507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19508 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19509 | ||
19510 | wxPyEndAllowThreads(__tstate); | |
19511 | if (PyErr_Occurred()) SWIG_fail; | |
19512 | } | |
19513 | { | |
19514 | #if wxUSE_UNICODE | |
19515 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19516 | #else | |
19517 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19518 | #endif | |
19519 | } | |
19520 | return resultobj; | |
19521 | fail: | |
19522 | return NULL; | |
19523 | } | |
19524 | ||
19525 | ||
19526 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19527 | PyObject *resultobj; | |
19528 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19529 | wxString *arg2 = 0 ; | |
19530 | bool temp2 = False ; | |
19531 | PyObject * obj0 = 0 ; | |
19532 | PyObject * obj1 = 0 ; | |
19533 | char *kwnames[] = { | |
19534 | (char *) "self",(char *) "name", NULL | |
19535 | }; | |
19536 | ||
19537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
19538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19540 | { | |
19541 | arg2 = wxString_in_helper(obj1); | |
19542 | if (arg2 == NULL) SWIG_fail; | |
19543 | temp2 = True; | |
19544 | } | |
19545 | { | |
19546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19547 | (arg1)->SetClassName((wxString const &)*arg2); | |
19548 | ||
19549 | wxPyEndAllowThreads(__tstate); | |
19550 | if (PyErr_Occurred()) SWIG_fail; | |
19551 | } | |
19552 | Py_INCREF(Py_None); resultobj = Py_None; | |
19553 | { | |
19554 | if (temp2) | |
19555 | delete arg2; | |
19556 | } | |
19557 | return resultobj; | |
19558 | fail: | |
19559 | { | |
19560 | if (temp2) | |
19561 | delete arg2; | |
19562 | } | |
19563 | return NULL; | |
19564 | } | |
19565 | ||
19566 | ||
19567 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19568 | PyObject *resultobj; | |
19569 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19570 | wxString *result; | |
19571 | PyObject * obj0 = 0 ; | |
19572 | char *kwnames[] = { | |
19573 | (char *) "self", NULL | |
19574 | }; | |
19575 | ||
19576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
19577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19579 | { | |
19580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19581 | { | |
19582 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
19583 | result = (wxString *) &_result_ref; | |
19584 | } | |
19585 | ||
19586 | wxPyEndAllowThreads(__tstate); | |
19587 | if (PyErr_Occurred()) SWIG_fail; | |
19588 | } | |
19589 | { | |
19590 | #if wxUSE_UNICODE | |
19591 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19592 | #else | |
19593 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19594 | #endif | |
19595 | } | |
19596 | return resultobj; | |
19597 | fail: | |
19598 | return NULL; | |
19599 | } | |
19600 | ||
19601 | ||
19602 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19603 | PyObject *resultobj; | |
19604 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19605 | wxString *arg2 = 0 ; | |
19606 | bool temp2 = False ; | |
19607 | PyObject * obj0 = 0 ; | |
19608 | PyObject * obj1 = 0 ; | |
19609 | char *kwnames[] = { | |
19610 | (char *) "self",(char *) "name", NULL | |
19611 | }; | |
19612 | ||
19613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
19614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19616 | { | |
19617 | arg2 = wxString_in_helper(obj1); | |
19618 | if (arg2 == NULL) SWIG_fail; | |
19619 | temp2 = True; | |
19620 | } | |
19621 | { | |
19622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19623 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19624 | ||
19625 | wxPyEndAllowThreads(__tstate); | |
19626 | if (PyErr_Occurred()) SWIG_fail; | |
19627 | } | |
19628 | Py_INCREF(Py_None); resultobj = Py_None; | |
19629 | { | |
19630 | if (temp2) | |
19631 | delete arg2; | |
19632 | } | |
19633 | return resultobj; | |
19634 | fail: | |
19635 | { | |
19636 | if (temp2) | |
19637 | delete arg2; | |
19638 | } | |
19639 | return NULL; | |
19640 | } | |
19641 | ||
19642 | ||
19643 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19644 | PyObject *resultobj; | |
19645 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19646 | wxAppTraits *result; | |
19647 | PyObject * obj0 = 0 ; | |
19648 | char *kwnames[] = { | |
19649 | (char *) "self", NULL | |
19650 | }; | |
19651 | ||
19652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
19653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19655 | { | |
19656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19657 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19658 | ||
19659 | wxPyEndAllowThreads(__tstate); | |
19660 | if (PyErr_Occurred()) SWIG_fail; | |
19661 | } | |
19662 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); | |
19663 | return resultobj; | |
19664 | fail: | |
19665 | return NULL; | |
19666 | } | |
19667 | ||
19668 | ||
19669 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19670 | PyObject *resultobj; | |
19671 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19672 | PyObject * obj0 = 0 ; | |
19673 | char *kwnames[] = { | |
19674 | (char *) "self", NULL | |
19675 | }; | |
19676 | ||
19677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
19678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19680 | { | |
19681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19682 | (arg1)->ProcessPendingEvents(); | |
19683 | ||
19684 | wxPyEndAllowThreads(__tstate); | |
19685 | if (PyErr_Occurred()) SWIG_fail; | |
19686 | } | |
19687 | Py_INCREF(Py_None); resultobj = Py_None; | |
19688 | return resultobj; | |
19689 | fail: | |
19690 | return NULL; | |
19691 | } | |
19692 | ||
19693 | ||
19694 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19695 | PyObject *resultobj; | |
19696 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19697 | bool arg2 = (bool) False ; | |
19698 | bool result; | |
19699 | PyObject * obj0 = 0 ; | |
19700 | PyObject * obj1 = 0 ; | |
19701 | char *kwnames[] = { | |
19702 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19703 | }; | |
19704 | ||
19705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
19706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19708 | if (obj1) { | |
19709 | arg2 = (bool) SWIG_AsBool(obj1); | |
19710 | if (PyErr_Occurred()) SWIG_fail; | |
19711 | } | |
19712 | { | |
19713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19714 | result = (bool)(arg1)->Yield(arg2); | |
19715 | ||
19716 | wxPyEndAllowThreads(__tstate); | |
19717 | if (PyErr_Occurred()) SWIG_fail; | |
19718 | } | |
19719 | { | |
19720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19721 | } | |
19722 | return resultobj; | |
19723 | fail: | |
19724 | return NULL; | |
19725 | } | |
19726 | ||
19727 | ||
19728 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19729 | PyObject *resultobj; | |
19730 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19731 | PyObject * obj0 = 0 ; | |
19732 | char *kwnames[] = { | |
19733 | (char *) "self", NULL | |
19734 | }; | |
19735 | ||
19736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
19737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19739 | { | |
19740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19741 | (arg1)->WakeUpIdle(); | |
19742 | ||
19743 | wxPyEndAllowThreads(__tstate); | |
19744 | if (PyErr_Occurred()) SWIG_fail; | |
19745 | } | |
19746 | Py_INCREF(Py_None); resultobj = Py_None; | |
19747 | return resultobj; | |
19748 | fail: | |
19749 | return NULL; | |
19750 | } | |
19751 | ||
19752 | ||
19753 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19754 | PyObject *resultobj; | |
19755 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19756 | int result; | |
19757 | PyObject * obj0 = 0 ; | |
19758 | char *kwnames[] = { | |
19759 | (char *) "self", NULL | |
19760 | }; | |
19761 | ||
19762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
19763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19765 | { | |
19766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19767 | result = (int)(arg1)->MainLoop(); | |
19768 | ||
19769 | wxPyEndAllowThreads(__tstate); | |
19770 | if (PyErr_Occurred()) SWIG_fail; | |
19771 | } | |
19772 | resultobj = SWIG_FromInt((int)result); | |
19773 | return resultobj; | |
19774 | fail: | |
19775 | return NULL; | |
19776 | } | |
19777 | ||
19778 | ||
19779 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19780 | PyObject *resultobj; | |
19781 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19782 | PyObject * obj0 = 0 ; | |
19783 | char *kwnames[] = { | |
19784 | (char *) "self", NULL | |
19785 | }; | |
19786 | ||
19787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
19788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19790 | { | |
19791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19792 | (arg1)->Exit(); | |
19793 | ||
19794 | wxPyEndAllowThreads(__tstate); | |
19795 | if (PyErr_Occurred()) SWIG_fail; | |
19796 | } | |
19797 | Py_INCREF(Py_None); resultobj = Py_None; | |
19798 | return resultobj; | |
19799 | fail: | |
19800 | return NULL; | |
19801 | } | |
19802 | ||
19803 | ||
19804 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19805 | PyObject *resultobj; | |
19806 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19807 | PyObject * obj0 = 0 ; | |
19808 | char *kwnames[] = { | |
19809 | (char *) "self", NULL | |
19810 | }; | |
19811 | ||
19812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
19813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19815 | { | |
19816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19817 | (arg1)->ExitMainLoop(); | |
19818 | ||
19819 | wxPyEndAllowThreads(__tstate); | |
19820 | if (PyErr_Occurred()) SWIG_fail; | |
19821 | } | |
19822 | Py_INCREF(Py_None); resultobj = Py_None; | |
19823 | return resultobj; | |
19824 | fail: | |
19825 | return NULL; | |
19826 | } | |
19827 | ||
19828 | ||
19829 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19830 | PyObject *resultobj; | |
19831 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19832 | bool result; | |
19833 | PyObject * obj0 = 0 ; | |
19834 | char *kwnames[] = { | |
19835 | (char *) "self", NULL | |
19836 | }; | |
19837 | ||
19838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
19839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19841 | { | |
19842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19843 | result = (bool)(arg1)->Pending(); | |
19844 | ||
19845 | wxPyEndAllowThreads(__tstate); | |
19846 | if (PyErr_Occurred()) SWIG_fail; | |
19847 | } | |
19848 | { | |
19849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19850 | } | |
19851 | return resultobj; | |
19852 | fail: | |
19853 | return NULL; | |
19854 | } | |
19855 | ||
19856 | ||
19857 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19858 | PyObject *resultobj; | |
19859 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19860 | bool result; | |
19861 | PyObject * obj0 = 0 ; | |
19862 | char *kwnames[] = { | |
19863 | (char *) "self", NULL | |
19864 | }; | |
19865 | ||
19866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
19867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19869 | { | |
19870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19871 | result = (bool)(arg1)->Dispatch(); | |
19872 | ||
19873 | wxPyEndAllowThreads(__tstate); | |
19874 | if (PyErr_Occurred()) SWIG_fail; | |
19875 | } | |
19876 | { | |
19877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19878 | } | |
19879 | return resultobj; | |
19880 | fail: | |
19881 | return NULL; | |
19882 | } | |
19883 | ||
19884 | ||
19885 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19886 | PyObject *resultobj; | |
19887 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19888 | bool result; | |
19889 | PyObject * obj0 = 0 ; | |
19890 | char *kwnames[] = { | |
19891 | (char *) "self", NULL | |
19892 | }; | |
19893 | ||
19894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
19895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19897 | { | |
19898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19899 | result = (bool)(arg1)->ProcessIdle(); | |
19900 | ||
19901 | wxPyEndAllowThreads(__tstate); | |
19902 | if (PyErr_Occurred()) SWIG_fail; | |
19903 | } | |
19904 | { | |
19905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19906 | } | |
19907 | return resultobj; | |
19908 | fail: | |
19909 | return NULL; | |
19910 | } | |
19911 | ||
19912 | ||
19913 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19914 | PyObject *resultobj; | |
19915 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19916 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19917 | wxIdleEvent *arg3 = 0 ; | |
19918 | bool result; | |
19919 | PyObject * obj0 = 0 ; | |
19920 | PyObject * obj1 = 0 ; | |
19921 | PyObject * obj2 = 0 ; | |
19922 | char *kwnames[] = { | |
19923 | (char *) "self",(char *) "win",(char *) "event", NULL | |
19924 | }; | |
19925 | ||
19926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19929 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19931 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
19932 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19933 | SWIG_fail; | |
19934 | if (arg3 == NULL) { | |
19935 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19936 | SWIG_fail; | |
19937 | } | |
19938 | { | |
19939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19940 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
19941 | ||
19942 | wxPyEndAllowThreads(__tstate); | |
19943 | if (PyErr_Occurred()) SWIG_fail; | |
19944 | } | |
19945 | { | |
19946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19947 | } | |
19948 | return resultobj; | |
19949 | fail: | |
19950 | return NULL; | |
19951 | } | |
19952 | ||
19953 | ||
19954 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19955 | PyObject *resultobj; | |
19956 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19957 | bool result; | |
19958 | PyObject * obj0 = 0 ; | |
19959 | char *kwnames[] = { | |
19960 | (char *) "self", NULL | |
19961 | }; | |
19962 | ||
19963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
19964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19966 | { | |
19967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19968 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
19969 | ||
19970 | wxPyEndAllowThreads(__tstate); | |
19971 | if (PyErr_Occurred()) SWIG_fail; | |
19972 | } | |
19973 | { | |
19974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19975 | } | |
19976 | return resultobj; | |
19977 | fail: | |
19978 | return NULL; | |
19979 | } | |
19980 | ||
19981 | ||
19982 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19983 | PyObject *resultobj; | |
19984 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19985 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19986 | PyObject * obj0 = 0 ; | |
19987 | PyObject * obj1 = 0 ; | |
19988 | char *kwnames[] = { | |
19989 | (char *) "self",(char *) "win", NULL | |
19990 | }; | |
19991 | ||
19992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
19993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19995 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19997 | { | |
19998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19999 | (arg1)->SetTopWindow(arg2); | |
20000 | ||
20001 | wxPyEndAllowThreads(__tstate); | |
20002 | if (PyErr_Occurred()) SWIG_fail; | |
20003 | } | |
20004 | Py_INCREF(Py_None); resultobj = Py_None; | |
20005 | return resultobj; | |
20006 | fail: | |
20007 | return NULL; | |
20008 | } | |
20009 | ||
20010 | ||
20011 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20012 | PyObject *resultobj; | |
20013 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20014 | wxWindow *result; | |
20015 | PyObject * obj0 = 0 ; | |
20016 | char *kwnames[] = { | |
20017 | (char *) "self", NULL | |
20018 | }; | |
20019 | ||
20020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
20021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20023 | { | |
20024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20025 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20026 | ||
20027 | wxPyEndAllowThreads(__tstate); | |
20028 | if (PyErr_Occurred()) SWIG_fail; | |
20029 | } | |
20030 | { | |
20031 | resultobj = wxPyMake_wxObject(result); | |
20032 | } | |
20033 | return resultobj; | |
20034 | fail: | |
20035 | return NULL; | |
20036 | } | |
20037 | ||
20038 | ||
20039 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20040 | PyObject *resultobj; | |
20041 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20042 | bool arg2 ; | |
20043 | PyObject * obj0 = 0 ; | |
20044 | PyObject * obj1 = 0 ; | |
20045 | char *kwnames[] = { | |
20046 | (char *) "self",(char *) "flag", NULL | |
20047 | }; | |
20048 | ||
20049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
20050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20052 | arg2 = (bool) SWIG_AsBool(obj1); | |
20053 | if (PyErr_Occurred()) SWIG_fail; | |
20054 | { | |
20055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20056 | (arg1)->SetExitOnFrameDelete(arg2); | |
20057 | ||
20058 | wxPyEndAllowThreads(__tstate); | |
20059 | if (PyErr_Occurred()) SWIG_fail; | |
20060 | } | |
20061 | Py_INCREF(Py_None); resultobj = Py_None; | |
20062 | return resultobj; | |
20063 | fail: | |
20064 | return NULL; | |
20065 | } | |
20066 | ||
20067 | ||
20068 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20069 | PyObject *resultobj; | |
20070 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20071 | bool result; | |
20072 | PyObject * obj0 = 0 ; | |
20073 | char *kwnames[] = { | |
20074 | (char *) "self", NULL | |
20075 | }; | |
20076 | ||
20077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
20078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20080 | { | |
20081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20082 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20083 | ||
20084 | wxPyEndAllowThreads(__tstate); | |
20085 | if (PyErr_Occurred()) SWIG_fail; | |
20086 | } | |
20087 | { | |
20088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20089 | } | |
20090 | return resultobj; | |
20091 | fail: | |
20092 | return NULL; | |
20093 | } | |
20094 | ||
20095 | ||
20096 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20097 | PyObject *resultobj; | |
20098 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20099 | bool arg2 ; | |
20100 | PyObject * obj0 = 0 ; | |
20101 | PyObject * obj1 = 0 ; | |
20102 | char *kwnames[] = { | |
20103 | (char *) "self",(char *) "flag", NULL | |
20104 | }; | |
20105 | ||
20106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
20107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20109 | arg2 = (bool) SWIG_AsBool(obj1); | |
20110 | if (PyErr_Occurred()) SWIG_fail; | |
20111 | { | |
20112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20113 | (arg1)->SetUseBestVisual(arg2); | |
20114 | ||
20115 | wxPyEndAllowThreads(__tstate); | |
20116 | if (PyErr_Occurred()) SWIG_fail; | |
20117 | } | |
20118 | Py_INCREF(Py_None); resultobj = Py_None; | |
20119 | return resultobj; | |
20120 | fail: | |
20121 | return NULL; | |
20122 | } | |
20123 | ||
20124 | ||
20125 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20126 | PyObject *resultobj; | |
20127 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20128 | bool result; | |
20129 | PyObject * obj0 = 0 ; | |
20130 | char *kwnames[] = { | |
20131 | (char *) "self", NULL | |
20132 | }; | |
20133 | ||
20134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
20135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20137 | { | |
20138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20139 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20140 | ||
20141 | wxPyEndAllowThreads(__tstate); | |
20142 | if (PyErr_Occurred()) SWIG_fail; | |
20143 | } | |
20144 | { | |
20145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20146 | } | |
20147 | return resultobj; | |
20148 | fail: | |
20149 | return NULL; | |
20150 | } | |
20151 | ||
20152 | ||
20153 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20154 | PyObject *resultobj; | |
20155 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20156 | int arg2 ; | |
20157 | PyObject * obj0 = 0 ; | |
20158 | PyObject * obj1 = 0 ; | |
20159 | char *kwnames[] = { | |
20160 | (char *) "self",(char *) "mode", NULL | |
20161 | }; | |
20162 | ||
20163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
20164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20166 | arg2 = (int) SWIG_AsInt(obj1); | |
20167 | if (PyErr_Occurred()) SWIG_fail; | |
20168 | { | |
20169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20170 | (arg1)->SetPrintMode(arg2); | |
20171 | ||
20172 | wxPyEndAllowThreads(__tstate); | |
20173 | if (PyErr_Occurred()) SWIG_fail; | |
20174 | } | |
20175 | Py_INCREF(Py_None); resultobj = Py_None; | |
20176 | return resultobj; | |
20177 | fail: | |
20178 | return NULL; | |
20179 | } | |
20180 | ||
20181 | ||
20182 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20183 | PyObject *resultobj; | |
20184 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20185 | int result; | |
20186 | PyObject * obj0 = 0 ; | |
20187 | char *kwnames[] = { | |
20188 | (char *) "self", NULL | |
20189 | }; | |
20190 | ||
20191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
20192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20194 | { | |
20195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20196 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20197 | ||
20198 | wxPyEndAllowThreads(__tstate); | |
20199 | if (PyErr_Occurred()) SWIG_fail; | |
20200 | } | |
20201 | resultobj = SWIG_FromInt((int)result); | |
20202 | return resultobj; | |
20203 | fail: | |
20204 | return NULL; | |
20205 | } | |
20206 | ||
20207 | ||
20208 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20209 | PyObject *resultobj; | |
20210 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20211 | int arg2 ; | |
20212 | PyObject * obj0 = 0 ; | |
20213 | PyObject * obj1 = 0 ; | |
20214 | char *kwnames[] = { | |
20215 | (char *) "self",(char *) "mode", NULL | |
20216 | }; | |
20217 | ||
20218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; | |
20219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20221 | arg2 = (int) SWIG_AsInt(obj1); | |
20222 | if (PyErr_Occurred()) SWIG_fail; | |
20223 | { | |
20224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20225 | (arg1)->SetAssertMode(arg2); | |
20226 | ||
20227 | wxPyEndAllowThreads(__tstate); | |
20228 | if (PyErr_Occurred()) SWIG_fail; | |
20229 | } | |
20230 | Py_INCREF(Py_None); resultobj = Py_None; | |
20231 | return resultobj; | |
20232 | fail: | |
20233 | return NULL; | |
20234 | } | |
20235 | ||
20236 | ||
20237 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20238 | PyObject *resultobj; | |
20239 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20240 | int result; | |
20241 | PyObject * obj0 = 0 ; | |
20242 | char *kwnames[] = { | |
20243 | (char *) "self", NULL | |
20244 | }; | |
20245 | ||
20246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
20247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20249 | { | |
20250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20251 | result = (int)(arg1)->GetAssertMode(); | |
20252 | ||
20253 | wxPyEndAllowThreads(__tstate); | |
20254 | if (PyErr_Occurred()) SWIG_fail; | |
20255 | } | |
20256 | resultobj = SWIG_FromInt((int)result); | |
20257 | return resultobj; | |
20258 | fail: | |
20259 | return NULL; | |
20260 | } | |
20261 | ||
20262 | ||
20263 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20264 | PyObject *resultobj; | |
20265 | bool result; | |
20266 | char *kwnames[] = { | |
20267 | NULL | |
20268 | }; | |
20269 | ||
20270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20271 | { | |
20272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20273 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20274 | ||
20275 | wxPyEndAllowThreads(__tstate); | |
20276 | if (PyErr_Occurred()) SWIG_fail; | |
20277 | } | |
20278 | { | |
20279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20280 | } | |
20281 | return resultobj; | |
20282 | fail: | |
20283 | return NULL; | |
20284 | } | |
20285 | ||
20286 | ||
20287 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20288 | PyObject *resultobj; | |
20289 | long result; | |
20290 | char *kwnames[] = { | |
20291 | NULL | |
20292 | }; | |
20293 | ||
20294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20295 | { | |
20296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20297 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20298 | ||
20299 | wxPyEndAllowThreads(__tstate); | |
20300 | if (PyErr_Occurred()) SWIG_fail; | |
20301 | } | |
20302 | resultobj = SWIG_FromLong((long)result); | |
20303 | return resultobj; | |
20304 | fail: | |
20305 | return NULL; | |
20306 | } | |
20307 | ||
20308 | ||
20309 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20310 | PyObject *resultobj; | |
20311 | long result; | |
20312 | char *kwnames[] = { | |
20313 | NULL | |
20314 | }; | |
20315 | ||
20316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20317 | { | |
20318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20319 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20320 | ||
20321 | wxPyEndAllowThreads(__tstate); | |
20322 | if (PyErr_Occurred()) SWIG_fail; | |
20323 | } | |
20324 | resultobj = SWIG_FromLong((long)result); | |
20325 | return resultobj; | |
20326 | fail: | |
20327 | return NULL; | |
20328 | } | |
20329 | ||
20330 | ||
20331 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20332 | PyObject *resultobj; | |
20333 | long result; | |
20334 | char *kwnames[] = { | |
20335 | NULL | |
20336 | }; | |
20337 | ||
20338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20339 | { | |
20340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20341 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20342 | ||
20343 | wxPyEndAllowThreads(__tstate); | |
20344 | if (PyErr_Occurred()) SWIG_fail; | |
20345 | } | |
20346 | resultobj = SWIG_FromLong((long)result); | |
20347 | return resultobj; | |
20348 | fail: | |
20349 | return NULL; | |
20350 | } | |
20351 | ||
20352 | ||
20353 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20354 | PyObject *resultobj; | |
20355 | wxString result; | |
20356 | char *kwnames[] = { | |
20357 | NULL | |
20358 | }; | |
20359 | ||
20360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20361 | { | |
20362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20363 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20364 | ||
20365 | wxPyEndAllowThreads(__tstate); | |
20366 | if (PyErr_Occurred()) SWIG_fail; | |
20367 | } | |
20368 | { | |
20369 | #if wxUSE_UNICODE | |
20370 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20371 | #else | |
20372 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20373 | #endif | |
20374 | } | |
20375 | return resultobj; | |
20376 | fail: | |
20377 | return NULL; | |
20378 | } | |
20379 | ||
20380 | ||
20381 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20382 | PyObject *resultobj; | |
20383 | bool arg1 ; | |
20384 | PyObject * obj0 = 0 ; | |
20385 | char *kwnames[] = { | |
20386 | (char *) "val", NULL | |
20387 | }; | |
20388 | ||
20389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
20390 | arg1 = (bool) SWIG_AsBool(obj0); | |
20391 | if (PyErr_Occurred()) SWIG_fail; | |
20392 | { | |
20393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20394 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20395 | ||
20396 | wxPyEndAllowThreads(__tstate); | |
20397 | if (PyErr_Occurred()) SWIG_fail; | |
20398 | } | |
20399 | Py_INCREF(Py_None); resultobj = Py_None; | |
20400 | return resultobj; | |
20401 | fail: | |
20402 | return NULL; | |
20403 | } | |
20404 | ||
20405 | ||
20406 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20407 | PyObject *resultobj; | |
20408 | long arg1 ; | |
20409 | PyObject * obj0 = 0 ; | |
20410 | char *kwnames[] = { | |
20411 | (char *) "val", NULL | |
20412 | }; | |
20413 | ||
20414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; | |
20415 | arg1 = (long) SWIG_AsLong(obj0); | |
20416 | if (PyErr_Occurred()) SWIG_fail; | |
20417 | { | |
20418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20419 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20420 | ||
20421 | wxPyEndAllowThreads(__tstate); | |
20422 | if (PyErr_Occurred()) SWIG_fail; | |
20423 | } | |
20424 | Py_INCREF(Py_None); resultobj = Py_None; | |
20425 | return resultobj; | |
20426 | fail: | |
20427 | return NULL; | |
20428 | } | |
20429 | ||
20430 | ||
20431 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20432 | PyObject *resultobj; | |
20433 | long arg1 ; | |
20434 | PyObject * obj0 = 0 ; | |
20435 | char *kwnames[] = { | |
20436 | (char *) "val", NULL | |
20437 | }; | |
20438 | ||
20439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; | |
20440 | arg1 = (long) SWIG_AsLong(obj0); | |
20441 | if (PyErr_Occurred()) SWIG_fail; | |
20442 | { | |
20443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20444 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20445 | ||
20446 | wxPyEndAllowThreads(__tstate); | |
20447 | if (PyErr_Occurred()) SWIG_fail; | |
20448 | } | |
20449 | Py_INCREF(Py_None); resultobj = Py_None; | |
20450 | return resultobj; | |
20451 | fail: | |
20452 | return NULL; | |
20453 | } | |
20454 | ||
20455 | ||
20456 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20457 | PyObject *resultobj; | |
20458 | long arg1 ; | |
20459 | PyObject * obj0 = 0 ; | |
20460 | char *kwnames[] = { | |
20461 | (char *) "val", NULL | |
20462 | }; | |
20463 | ||
20464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; | |
20465 | arg1 = (long) SWIG_AsLong(obj0); | |
20466 | if (PyErr_Occurred()) SWIG_fail; | |
20467 | { | |
20468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20469 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20470 | ||
20471 | wxPyEndAllowThreads(__tstate); | |
20472 | if (PyErr_Occurred()) SWIG_fail; | |
20473 | } | |
20474 | Py_INCREF(Py_None); resultobj = Py_None; | |
20475 | return resultobj; | |
20476 | fail: | |
20477 | return NULL; | |
20478 | } | |
20479 | ||
20480 | ||
20481 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20482 | PyObject *resultobj; | |
20483 | wxString *arg1 = 0 ; | |
20484 | bool temp1 = False ; | |
20485 | PyObject * obj0 = 0 ; | |
20486 | char *kwnames[] = { | |
20487 | (char *) "val", NULL | |
20488 | }; | |
20489 | ||
20490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20491 | { | |
20492 | arg1 = wxString_in_helper(obj0); | |
20493 | if (arg1 == NULL) SWIG_fail; | |
20494 | temp1 = True; | |
20495 | } | |
20496 | { | |
20497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20498 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20499 | ||
20500 | wxPyEndAllowThreads(__tstate); | |
20501 | if (PyErr_Occurred()) SWIG_fail; | |
20502 | } | |
20503 | Py_INCREF(Py_None); resultobj = Py_None; | |
20504 | { | |
20505 | if (temp1) | |
20506 | delete arg1; | |
20507 | } | |
20508 | return resultobj; | |
20509 | fail: | |
20510 | { | |
20511 | if (temp1) | |
20512 | delete arg1; | |
20513 | } | |
20514 | return NULL; | |
20515 | } | |
20516 | ||
20517 | ||
20518 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20519 | PyObject *resultobj; | |
20520 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20521 | PyObject * obj0 = 0 ; | |
20522 | char *kwnames[] = { | |
20523 | (char *) "self", NULL | |
20524 | }; | |
20525 | ||
20526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
20527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20529 | { | |
20530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20531 | (arg1)->_BootstrapApp(); | |
20532 | ||
20533 | wxPyEndAllowThreads(__tstate); | |
20534 | if (PyErr_Occurred()) SWIG_fail; | |
20535 | } | |
20536 | Py_INCREF(Py_None); resultobj = Py_None; | |
20537 | return resultobj; | |
20538 | fail: | |
20539 | return NULL; | |
20540 | } | |
20541 | ||
20542 | ||
20543 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20544 | PyObject *resultobj; | |
20545 | int result; | |
20546 | char *kwnames[] = { | |
20547 | NULL | |
20548 | }; | |
20549 | ||
20550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
20551 | { | |
20552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20553 | result = (int)PyApp_GetComCtl32Version(); | |
20554 | ||
20555 | wxPyEndAllowThreads(__tstate); | |
20556 | if (PyErr_Occurred()) SWIG_fail; | |
20557 | } | |
20558 | resultobj = SWIG_FromInt((int)result); | |
20559 | return resultobj; | |
20560 | fail: | |
20561 | return NULL; | |
20562 | } | |
20563 | ||
20564 | ||
20565 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
20566 | PyObject *obj; | |
20567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20568 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
20569 | Py_INCREF(obj); | |
20570 | return Py_BuildValue((char *)""); | |
20571 | } | |
20572 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20573 | PyObject *resultobj; | |
20574 | char *kwnames[] = { | |
20575 | NULL | |
20576 | }; | |
20577 | ||
20578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
20579 | { | |
20580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20581 | wxExit(); | |
20582 | ||
20583 | wxPyEndAllowThreads(__tstate); | |
20584 | if (PyErr_Occurred()) SWIG_fail; | |
20585 | } | |
20586 | Py_INCREF(Py_None); resultobj = Py_None; | |
20587 | return resultobj; | |
20588 | fail: | |
20589 | return NULL; | |
20590 | } | |
20591 | ||
20592 | ||
20593 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20594 | PyObject *resultobj; | |
20595 | bool result; | |
20596 | char *kwnames[] = { | |
20597 | NULL | |
20598 | }; | |
20599 | ||
20600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
20601 | { | |
20602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20603 | result = (bool)wxYield(); | |
20604 | ||
20605 | wxPyEndAllowThreads(__tstate); | |
20606 | if (PyErr_Occurred()) SWIG_fail; | |
20607 | } | |
20608 | { | |
20609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20610 | } | |
20611 | return resultobj; | |
20612 | fail: | |
20613 | return NULL; | |
20614 | } | |
20615 | ||
20616 | ||
20617 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20618 | PyObject *resultobj; | |
20619 | bool result; | |
20620 | char *kwnames[] = { | |
20621 | NULL | |
20622 | }; | |
20623 | ||
20624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
20625 | { | |
20626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20627 | result = (bool)wxYieldIfNeeded(); | |
20628 | ||
20629 | wxPyEndAllowThreads(__tstate); | |
20630 | if (PyErr_Occurred()) SWIG_fail; | |
20631 | } | |
20632 | { | |
20633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20634 | } | |
20635 | return resultobj; | |
20636 | fail: | |
20637 | return NULL; | |
20638 | } | |
20639 | ||
20640 | ||
20641 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20642 | PyObject *resultobj; | |
20643 | wxWindow *arg1 = (wxWindow *) NULL ; | |
20644 | bool arg2 = (bool) False ; | |
20645 | bool result; | |
20646 | PyObject * obj0 = 0 ; | |
20647 | PyObject * obj1 = 0 ; | |
20648 | char *kwnames[] = { | |
20649 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20650 | }; | |
20651 | ||
20652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20653 | if (obj0) { | |
20654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
20655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20656 | } | |
20657 | if (obj1) { | |
20658 | arg2 = (bool) SWIG_AsBool(obj1); | |
20659 | if (PyErr_Occurred()) SWIG_fail; | |
20660 | } | |
20661 | { | |
20662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20663 | result = (bool)wxSafeYield(arg1,arg2); | |
20664 | ||
20665 | wxPyEndAllowThreads(__tstate); | |
20666 | if (PyErr_Occurred()) SWIG_fail; | |
20667 | } | |
20668 | { | |
20669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20670 | } | |
20671 | return resultobj; | |
20672 | fail: | |
20673 | return NULL; | |
20674 | } | |
20675 | ||
20676 | ||
20677 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20678 | PyObject *resultobj; | |
20679 | char *kwnames[] = { | |
20680 | NULL | |
20681 | }; | |
20682 | ||
20683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20684 | { | |
20685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20686 | wxWakeUpIdle(); | |
20687 | ||
20688 | wxPyEndAllowThreads(__tstate); | |
20689 | if (PyErr_Occurred()) SWIG_fail; | |
20690 | } | |
20691 | Py_INCREF(Py_None); resultobj = Py_None; | |
20692 | return resultobj; | |
20693 | fail: | |
20694 | return NULL; | |
20695 | } | |
20696 | ||
20697 | ||
20698 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20699 | PyObject *resultobj; | |
20700 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20701 | wxEvent *arg2 = 0 ; | |
20702 | PyObject * obj0 = 0 ; | |
20703 | PyObject * obj1 = 0 ; | |
20704 | char *kwnames[] = { | |
20705 | (char *) "dest",(char *) "event", NULL | |
20706 | }; | |
20707 | ||
20708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
20709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
20710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20711 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
20712 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20713 | SWIG_fail; | |
20714 | if (arg2 == NULL) { | |
20715 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20716 | SWIG_fail; | |
20717 | } | |
20718 | { | |
20719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20720 | wxPostEvent(arg1,*arg2); | |
20721 | ||
20722 | wxPyEndAllowThreads(__tstate); | |
20723 | if (PyErr_Occurred()) SWIG_fail; | |
20724 | } | |
20725 | Py_INCREF(Py_None); resultobj = Py_None; | |
20726 | return resultobj; | |
20727 | fail: | |
20728 | return NULL; | |
20729 | } | |
20730 | ||
20731 | ||
20732 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20733 | PyObject *resultobj; | |
20734 | char *kwnames[] = { | |
20735 | NULL | |
20736 | }; | |
20737 | ||
20738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20739 | { | |
20740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20741 | wxApp_CleanUp(); | |
20742 | ||
20743 | wxPyEndAllowThreads(__tstate); | |
20744 | if (PyErr_Occurred()) SWIG_fail; | |
20745 | } | |
20746 | Py_INCREF(Py_None); resultobj = Py_None; | |
20747 | return resultobj; | |
20748 | fail: | |
20749 | return NULL; | |
20750 | } | |
20751 | ||
20752 | ||
20753 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20754 | PyObject *resultobj; | |
20755 | wxPyApp *result; | |
20756 | char *kwnames[] = { | |
20757 | NULL | |
20758 | }; | |
20759 | ||
20760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20761 | { | |
20762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a5ee0656 | 20763 | result = (wxPyApp *)wxPyGetApp(); |
d55e5bfc RD |
20764 | |
20765 | wxPyEndAllowThreads(__tstate); | |
20766 | if (PyErr_Occurred()) SWIG_fail; | |
20767 | } | |
20768 | { | |
20769 | resultobj = wxPyMake_wxObject(result); | |
20770 | } | |
20771 | return resultobj; | |
20772 | fail: | |
20773 | return NULL; | |
20774 | } | |
20775 | ||
20776 | ||
20777 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20778 | PyObject *resultobj; | |
20779 | int arg1 = (int) 0 ; | |
20780 | int arg2 = (int) 0 ; | |
20781 | int arg3 = (int) 0 ; | |
d55e5bfc RD |
20782 | wxAcceleratorEntry *result; |
20783 | PyObject * obj0 = 0 ; | |
20784 | PyObject * obj1 = 0 ; | |
20785 | PyObject * obj2 = 0 ; | |
d55e5bfc | 20786 | char *kwnames[] = { |
d6c14a4c | 20787 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
d55e5bfc RD |
20788 | }; |
20789 | ||
d6c14a4c | 20790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
20791 | if (obj0) { |
20792 | arg1 = (int) SWIG_AsInt(obj0); | |
20793 | if (PyErr_Occurred()) SWIG_fail; | |
20794 | } | |
20795 | if (obj1) { | |
20796 | arg2 = (int) SWIG_AsInt(obj1); | |
20797 | if (PyErr_Occurred()) SWIG_fail; | |
20798 | } | |
20799 | if (obj2) { | |
20800 | arg3 = (int) SWIG_AsInt(obj2); | |
20801 | if (PyErr_Occurred()) SWIG_fail; | |
20802 | } | |
d55e5bfc RD |
20803 | { |
20804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 20805 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
d55e5bfc RD |
20806 | |
20807 | wxPyEndAllowThreads(__tstate); | |
20808 | if (PyErr_Occurred()) SWIG_fail; | |
20809 | } | |
20810 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); | |
20811 | return resultobj; | |
20812 | fail: | |
20813 | return NULL; | |
20814 | } | |
20815 | ||
20816 | ||
20817 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20818 | PyObject *resultobj; | |
20819 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20820 | PyObject * obj0 = 0 ; | |
20821 | char *kwnames[] = { | |
20822 | (char *) "self", NULL | |
20823 | }; | |
20824 | ||
20825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
20826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
20827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20828 | { | |
20829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20830 | delete arg1; | |
20831 | ||
20832 | wxPyEndAllowThreads(__tstate); | |
20833 | if (PyErr_Occurred()) SWIG_fail; | |
20834 | } | |
20835 | Py_INCREF(Py_None); resultobj = Py_None; | |
20836 | return resultobj; | |
20837 | fail: | |
20838 | return NULL; | |
20839 | } | |
20840 | ||
20841 | ||
20842 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20843 | PyObject *resultobj; | |
20844 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20845 | int arg2 ; | |
20846 | int arg3 ; | |
20847 | int arg4 ; | |
d55e5bfc RD |
20848 | PyObject * obj0 = 0 ; |
20849 | PyObject * obj1 = 0 ; | |
20850 | PyObject * obj2 = 0 ; | |
20851 | PyObject * obj3 = 0 ; | |
d55e5bfc | 20852 | char *kwnames[] = { |
d6c14a4c | 20853 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
d55e5bfc RD |
20854 | }; |
20855 | ||
d6c14a4c | 20856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
20857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20859 | arg2 = (int) SWIG_AsInt(obj1); | |
20860 | if (PyErr_Occurred()) SWIG_fail; | |
20861 | arg3 = (int) SWIG_AsInt(obj2); | |
20862 | if (PyErr_Occurred()) SWIG_fail; | |
20863 | arg4 = (int) SWIG_AsInt(obj3); | |
20864 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc RD |
20865 | { |
20866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 20867 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
20868 | |
20869 | wxPyEndAllowThreads(__tstate); | |
20870 | if (PyErr_Occurred()) SWIG_fail; | |
20871 | } | |
20872 | Py_INCREF(Py_None); resultobj = Py_None; | |
20873 | return resultobj; | |
20874 | fail: | |
20875 | return NULL; | |
20876 | } | |
20877 | ||
20878 | ||
d55e5bfc RD |
20879 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { |
20880 | PyObject *resultobj; | |
20881 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20882 | int result; | |
20883 | PyObject * obj0 = 0 ; | |
20884 | char *kwnames[] = { | |
20885 | (char *) "self", NULL | |
20886 | }; | |
20887 | ||
20888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
20889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
20890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20891 | { | |
20892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20893 | result = (int)(arg1)->GetFlags(); | |
20894 | ||
20895 | wxPyEndAllowThreads(__tstate); | |
20896 | if (PyErr_Occurred()) SWIG_fail; | |
20897 | } | |
20898 | resultobj = SWIG_FromInt((int)result); | |
20899 | return resultobj; | |
20900 | fail: | |
20901 | return NULL; | |
20902 | } | |
20903 | ||
20904 | ||
20905 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20906 | PyObject *resultobj; | |
20907 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20908 | int result; | |
20909 | PyObject * obj0 = 0 ; | |
20910 | char *kwnames[] = { | |
20911 | (char *) "self", NULL | |
20912 | }; | |
20913 | ||
20914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
20915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
20916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20917 | { | |
20918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20919 | result = (int)(arg1)->GetKeyCode(); | |
20920 | ||
20921 | wxPyEndAllowThreads(__tstate); | |
20922 | if (PyErr_Occurred()) SWIG_fail; | |
20923 | } | |
20924 | resultobj = SWIG_FromInt((int)result); | |
20925 | return resultobj; | |
20926 | fail: | |
20927 | return NULL; | |
20928 | } | |
20929 | ||
20930 | ||
20931 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20932 | PyObject *resultobj; | |
20933 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20934 | int result; | |
20935 | PyObject * obj0 = 0 ; | |
20936 | char *kwnames[] = { | |
20937 | (char *) "self", NULL | |
20938 | }; | |
20939 | ||
20940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
20941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
20942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20943 | { | |
20944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20945 | result = (int)(arg1)->GetCommand(); | |
20946 | ||
20947 | wxPyEndAllowThreads(__tstate); | |
20948 | if (PyErr_Occurred()) SWIG_fail; | |
20949 | } | |
20950 | resultobj = SWIG_FromInt((int)result); | |
20951 | return resultobj; | |
20952 | fail: | |
20953 | return NULL; | |
20954 | } | |
20955 | ||
20956 | ||
20957 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
20958 | PyObject *obj; | |
20959 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20960 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
20961 | Py_INCREF(obj); | |
20962 | return Py_BuildValue((char *)""); | |
20963 | } | |
20964 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20965 | PyObject *resultobj; | |
20966 | int arg1 ; | |
20967 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
20968 | wxAcceleratorTable *result; | |
20969 | PyObject * obj0 = 0 ; | |
20970 | char *kwnames[] = { | |
20971 | (char *) "n", NULL | |
20972 | }; | |
20973 | ||
20974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
20975 | { | |
20976 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
20977 | if (arg2) arg1 = PyList_Size(obj0); | |
20978 | else arg1 = 0; | |
20979 | } | |
20980 | { | |
20981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20982 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
20983 | ||
20984 | wxPyEndAllowThreads(__tstate); | |
20985 | if (PyErr_Occurred()) SWIG_fail; | |
20986 | } | |
20987 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); | |
20988 | { | |
20989 | delete [] arg2; | |
20990 | } | |
20991 | return resultobj; | |
20992 | fail: | |
20993 | { | |
20994 | delete [] arg2; | |
20995 | } | |
20996 | return NULL; | |
20997 | } | |
20998 | ||
20999 | ||
21000 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21001 | PyObject *resultobj; | |
21002 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21003 | PyObject * obj0 = 0 ; | |
21004 | char *kwnames[] = { | |
21005 | (char *) "self", NULL | |
21006 | }; | |
21007 | ||
21008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21011 | { | |
21012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21013 | delete arg1; | |
21014 | ||
21015 | wxPyEndAllowThreads(__tstate); | |
21016 | if (PyErr_Occurred()) SWIG_fail; | |
21017 | } | |
21018 | Py_INCREF(Py_None); resultobj = Py_None; | |
21019 | return resultobj; | |
21020 | fail: | |
21021 | return NULL; | |
21022 | } | |
21023 | ||
21024 | ||
21025 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21026 | PyObject *resultobj; | |
21027 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21028 | bool result; | |
21029 | PyObject * obj0 = 0 ; | |
21030 | char *kwnames[] = { | |
21031 | (char *) "self", NULL | |
21032 | }; | |
21033 | ||
21034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
21035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21037 | { | |
21038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21039 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21040 | ||
21041 | wxPyEndAllowThreads(__tstate); | |
21042 | if (PyErr_Occurred()) SWIG_fail; | |
21043 | } | |
21044 | { | |
21045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21046 | } | |
21047 | return resultobj; | |
21048 | fail: | |
21049 | return NULL; | |
21050 | } | |
21051 | ||
21052 | ||
21053 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
21054 | PyObject *obj; | |
21055 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21056 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21057 | Py_INCREF(obj); | |
21058 | return Py_BuildValue((char *)""); | |
21059 | } | |
21060 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { | |
21061 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); | |
21062 | return 1; | |
21063 | } | |
21064 | ||
21065 | ||
21066 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21067 | PyObject *pyobj; | |
21068 | ||
21069 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); | |
21070 | return pyobj; | |
21071 | } | |
21072 | ||
21073 | ||
21074 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21075 | PyObject *resultobj; | |
21076 | wxString *arg1 = 0 ; | |
21077 | wxAcceleratorEntry *result; | |
21078 | bool temp1 = False ; | |
21079 | PyObject * obj0 = 0 ; | |
21080 | char *kwnames[] = { | |
21081 | (char *) "label", NULL | |
21082 | }; | |
21083 | ||
21084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21085 | { | |
21086 | arg1 = wxString_in_helper(obj0); | |
21087 | if (arg1 == NULL) SWIG_fail; | |
21088 | temp1 = True; | |
21089 | } | |
21090 | { | |
21091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21092 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21093 | ||
21094 | wxPyEndAllowThreads(__tstate); | |
21095 | if (PyErr_Occurred()) SWIG_fail; | |
21096 | } | |
21097 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
21098 | { | |
21099 | if (temp1) | |
21100 | delete arg1; | |
21101 | } | |
21102 | return resultobj; | |
21103 | fail: | |
21104 | { | |
21105 | if (temp1) | |
21106 | delete arg1; | |
21107 | } | |
21108 | return NULL; | |
21109 | } | |
21110 | ||
21111 | ||
21112 | static int _wrap_PanelNameStr_set(PyObject *_val) { | |
21113 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); | |
21114 | return 1; | |
21115 | } | |
21116 | ||
21117 | ||
21118 | static PyObject *_wrap_PanelNameStr_get() { | |
21119 | PyObject *pyobj; | |
21120 | ||
21121 | { | |
21122 | #if wxUSE_UNICODE | |
21123 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21124 | #else | |
21125 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21126 | #endif | |
21127 | } | |
21128 | return pyobj; | |
21129 | } | |
21130 | ||
21131 | ||
21132 | static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21133 | PyObject *resultobj; | |
21134 | wxVisualAttributes *result; | |
21135 | char *kwnames[] = { | |
21136 | NULL | |
21137 | }; | |
21138 | ||
21139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
21140 | { | |
21141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21142 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
21143 | ||
21144 | wxPyEndAllowThreads(__tstate); | |
21145 | if (PyErr_Occurred()) SWIG_fail; | |
21146 | } | |
21147 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
21148 | return resultobj; | |
21149 | fail: | |
21150 | return NULL; | |
21151 | } | |
21152 | ||
21153 | ||
21154 | static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21155 | PyObject *resultobj; | |
21156 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21157 | PyObject * obj0 = 0 ; | |
21158 | char *kwnames[] = { | |
21159 | (char *) "self", NULL | |
21160 | }; | |
21161 | ||
21162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
21163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21165 | { | |
21166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21167 | delete_wxVisualAttributes(arg1); | |
21168 | ||
21169 | wxPyEndAllowThreads(__tstate); | |
21170 | if (PyErr_Occurred()) SWIG_fail; | |
21171 | } | |
21172 | Py_INCREF(Py_None); resultobj = Py_None; | |
21173 | return resultobj; | |
21174 | fail: | |
21175 | return NULL; | |
21176 | } | |
21177 | ||
21178 | ||
21179 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21180 | PyObject *resultobj; | |
21181 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21182 | wxFont *arg2 = (wxFont *) 0 ; | |
21183 | PyObject * obj0 = 0 ; | |
21184 | PyObject * obj1 = 0 ; | |
21185 | char *kwnames[] = { | |
21186 | (char *) "self",(char *) "font", NULL | |
21187 | }; | |
21188 | ||
21189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
21190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
21193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21194 | if (arg1) (arg1)->font = *arg2; | |
21195 | ||
21196 | Py_INCREF(Py_None); resultobj = Py_None; | |
21197 | return resultobj; | |
21198 | fail: | |
21199 | return NULL; | |
21200 | } | |
21201 | ||
21202 | ||
21203 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21204 | PyObject *resultobj; | |
21205 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21206 | wxFont *result; | |
21207 | PyObject * obj0 = 0 ; | |
21208 | char *kwnames[] = { | |
21209 | (char *) "self", NULL | |
21210 | }; | |
21211 | ||
21212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
21213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21215 | result = (wxFont *)& ((arg1)->font); | |
21216 | ||
21217 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
21218 | return resultobj; | |
21219 | fail: | |
21220 | return NULL; | |
21221 | } | |
21222 | ||
21223 | ||
21224 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21225 | PyObject *resultobj; | |
21226 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21227 | wxColour *arg2 = (wxColour *) 0 ; | |
21228 | PyObject * obj0 = 0 ; | |
21229 | PyObject * obj1 = 0 ; | |
21230 | char *kwnames[] = { | |
21231 | (char *) "self",(char *) "colFg", NULL | |
21232 | }; | |
21233 | ||
21234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
21235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21237 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21239 | if (arg1) (arg1)->colFg = *arg2; | |
21240 | ||
21241 | Py_INCREF(Py_None); resultobj = Py_None; | |
21242 | return resultobj; | |
21243 | fail: | |
21244 | return NULL; | |
21245 | } | |
21246 | ||
21247 | ||
21248 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21249 | PyObject *resultobj; | |
21250 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21251 | wxColour *result; | |
21252 | PyObject * obj0 = 0 ; | |
21253 | char *kwnames[] = { | |
21254 | (char *) "self", NULL | |
21255 | }; | |
21256 | ||
21257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
21258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21260 | result = (wxColour *)& ((arg1)->colFg); | |
21261 | ||
21262 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21263 | return resultobj; | |
21264 | fail: | |
21265 | return NULL; | |
21266 | } | |
21267 | ||
21268 | ||
21269 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21270 | PyObject *resultobj; | |
21271 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21272 | wxColour *arg2 = (wxColour *) 0 ; | |
21273 | PyObject * obj0 = 0 ; | |
21274 | PyObject * obj1 = 0 ; | |
21275 | char *kwnames[] = { | |
21276 | (char *) "self",(char *) "colBg", NULL | |
21277 | }; | |
21278 | ||
21279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
21280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21282 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21284 | if (arg1) (arg1)->colBg = *arg2; | |
21285 | ||
21286 | Py_INCREF(Py_None); resultobj = Py_None; | |
21287 | return resultobj; | |
21288 | fail: | |
21289 | return NULL; | |
21290 | } | |
21291 | ||
21292 | ||
21293 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21294 | PyObject *resultobj; | |
21295 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21296 | wxColour *result; | |
21297 | PyObject * obj0 = 0 ; | |
21298 | char *kwnames[] = { | |
21299 | (char *) "self", NULL | |
21300 | }; | |
21301 | ||
21302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
21303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21305 | result = (wxColour *)& ((arg1)->colBg); | |
21306 | ||
21307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21308 | return resultobj; | |
21309 | fail: | |
21310 | return NULL; | |
21311 | } | |
21312 | ||
21313 | ||
21314 | static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) { | |
21315 | PyObject *obj; | |
21316 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21317 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
21318 | Py_INCREF(obj); | |
21319 | return Py_BuildValue((char *)""); | |
21320 | } | |
21321 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21322 | PyObject *resultobj; | |
21323 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21324 | int arg2 = (int) (int)-1 ; | |
21325 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21326 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21327 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21328 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21329 | long arg5 = (long) 0 ; | |
21330 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21331 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21332 | wxWindow *result; | |
21333 | wxPoint temp3 ; | |
21334 | wxSize temp4 ; | |
21335 | bool temp6 = False ; | |
21336 | PyObject * obj0 = 0 ; | |
21337 | PyObject * obj1 = 0 ; | |
21338 | PyObject * obj2 = 0 ; | |
21339 | PyObject * obj3 = 0 ; | |
21340 | PyObject * obj4 = 0 ; | |
21341 | PyObject * obj5 = 0 ; | |
21342 | char *kwnames[] = { | |
21343 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21344 | }; | |
21345 | ||
21346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
21347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21349 | if (obj1) { | |
21350 | arg2 = (int const) SWIG_AsInt(obj1); | |
21351 | if (PyErr_Occurred()) SWIG_fail; | |
21352 | } | |
21353 | if (obj2) { | |
21354 | { | |
21355 | arg3 = &temp3; | |
21356 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21357 | } | |
21358 | } | |
21359 | if (obj3) { | |
21360 | { | |
21361 | arg4 = &temp4; | |
21362 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21363 | } | |
21364 | } | |
21365 | if (obj4) { | |
21366 | arg5 = (long) SWIG_AsLong(obj4); | |
21367 | if (PyErr_Occurred()) SWIG_fail; | |
21368 | } | |
21369 | if (obj5) { | |
21370 | { | |
21371 | arg6 = wxString_in_helper(obj5); | |
21372 | if (arg6 == NULL) SWIG_fail; | |
21373 | temp6 = True; | |
21374 | } | |
21375 | } | |
21376 | { | |
0439c23b | 21377 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21379 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21380 | ||
21381 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 21382 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21383 | } |
21384 | { | |
21385 | resultobj = wxPyMake_wxObject(result); | |
21386 | } | |
21387 | { | |
21388 | if (temp6) | |
21389 | delete arg6; | |
21390 | } | |
21391 | return resultobj; | |
21392 | fail: | |
21393 | { | |
21394 | if (temp6) | |
21395 | delete arg6; | |
21396 | } | |
21397 | return NULL; | |
21398 | } | |
21399 | ||
21400 | ||
21401 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21402 | PyObject *resultobj; | |
21403 | wxWindow *result; | |
21404 | char *kwnames[] = { | |
21405 | NULL | |
21406 | }; | |
21407 | ||
21408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
21409 | { | |
0439c23b | 21410 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21412 | result = (wxWindow *)new wxWindow(); | |
21413 | ||
21414 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 21415 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
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 | { | |
0439c23b | 24124 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24126 | result = (wxWindow *)wxWindow::FindFocus(); | |
24127 | ||
24128 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 24129 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24130 | } |
24131 | { | |
24132 | resultobj = wxPyMake_wxObject(result); | |
24133 | } | |
24134 | return resultobj; | |
24135 | fail: | |
24136 | return NULL; | |
24137 | } | |
24138 | ||
24139 | ||
24140 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24141 | PyObject *resultobj; | |
24142 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24143 | bool result; | |
24144 | PyObject * obj0 = 0 ; | |
24145 | char *kwnames[] = { | |
24146 | (char *) "self", NULL | |
24147 | }; | |
24148 | ||
24149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
24150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24152 | { | |
24153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24154 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
24155 | ||
24156 | wxPyEndAllowThreads(__tstate); | |
24157 | if (PyErr_Occurred()) SWIG_fail; | |
24158 | } | |
24159 | { | |
24160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24161 | } | |
24162 | return resultobj; | |
24163 | fail: | |
24164 | return NULL; | |
24165 | } | |
24166 | ||
24167 | ||
24168 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24169 | PyObject *resultobj; | |
24170 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24171 | bool result; | |
24172 | PyObject * obj0 = 0 ; | |
24173 | char *kwnames[] = { | |
24174 | (char *) "self", NULL | |
24175 | }; | |
24176 | ||
24177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
24178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24180 | { | |
24181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24182 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
24183 | ||
24184 | wxPyEndAllowThreads(__tstate); | |
24185 | if (PyErr_Occurred()) SWIG_fail; | |
24186 | } | |
24187 | { | |
24188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24189 | } | |
24190 | return resultobj; | |
24191 | fail: | |
24192 | return NULL; | |
24193 | } | |
24194 | ||
24195 | ||
24196 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24197 | PyObject *resultobj; | |
24198 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24199 | wxWindow *result; | |
24200 | PyObject * obj0 = 0 ; | |
24201 | char *kwnames[] = { | |
24202 | (char *) "self", NULL | |
24203 | }; | |
24204 | ||
24205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
24206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24208 | { | |
24209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24210 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
24211 | ||
24212 | wxPyEndAllowThreads(__tstate); | |
24213 | if (PyErr_Occurred()) SWIG_fail; | |
24214 | } | |
24215 | { | |
24216 | resultobj = wxPyMake_wxObject(result); | |
24217 | } | |
24218 | return resultobj; | |
24219 | fail: | |
24220 | return NULL; | |
24221 | } | |
24222 | ||
24223 | ||
24224 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24225 | PyObject *resultobj; | |
24226 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24227 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24228 | wxWindow *result; | |
24229 | PyObject * obj0 = 0 ; | |
24230 | PyObject * obj1 = 0 ; | |
24231 | char *kwnames[] = { | |
24232 | (char *) "self",(char *) "child", NULL | |
24233 | }; | |
24234 | ||
24235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24238 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24240 | { | |
24241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24242 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
24243 | ||
24244 | wxPyEndAllowThreads(__tstate); | |
24245 | if (PyErr_Occurred()) SWIG_fail; | |
24246 | } | |
24247 | { | |
24248 | resultobj = wxPyMake_wxObject(result); | |
24249 | } | |
24250 | return resultobj; | |
24251 | fail: | |
24252 | return NULL; | |
24253 | } | |
24254 | ||
24255 | ||
24256 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24257 | PyObject *resultobj; | |
24258 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24259 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24260 | PyObject * obj0 = 0 ; | |
24261 | PyObject * obj1 = 0 ; | |
24262 | char *kwnames[] = { | |
24263 | (char *) "self",(char *) "win", NULL | |
24264 | }; | |
24265 | ||
24266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24271 | { | |
24272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24273 | (arg1)->SetTmpDefaultItem(arg2); | |
24274 | ||
24275 | wxPyEndAllowThreads(__tstate); | |
24276 | if (PyErr_Occurred()) SWIG_fail; | |
24277 | } | |
24278 | Py_INCREF(Py_None); resultobj = Py_None; | |
24279 | return resultobj; | |
24280 | fail: | |
24281 | return NULL; | |
24282 | } | |
24283 | ||
24284 | ||
24285 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24286 | PyObject *resultobj; | |
24287 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24288 | PyObject *result; | |
24289 | PyObject * obj0 = 0 ; | |
24290 | char *kwnames[] = { | |
24291 | (char *) "self", NULL | |
24292 | }; | |
24293 | ||
24294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
24295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24297 | { | |
24298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24299 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
24300 | ||
24301 | wxPyEndAllowThreads(__tstate); | |
24302 | if (PyErr_Occurred()) SWIG_fail; | |
24303 | } | |
24304 | resultobj = result; | |
24305 | return resultobj; | |
24306 | fail: | |
24307 | return NULL; | |
24308 | } | |
24309 | ||
24310 | ||
24311 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24312 | PyObject *resultobj; | |
24313 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24314 | wxWindow *result; | |
24315 | PyObject * obj0 = 0 ; | |
24316 | char *kwnames[] = { | |
24317 | (char *) "self", NULL | |
24318 | }; | |
24319 | ||
24320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
24321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24323 | { | |
24324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24325 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
24326 | ||
24327 | wxPyEndAllowThreads(__tstate); | |
24328 | if (PyErr_Occurred()) SWIG_fail; | |
24329 | } | |
24330 | { | |
24331 | resultobj = wxPyMake_wxObject(result); | |
24332 | } | |
24333 | return resultobj; | |
24334 | fail: | |
24335 | return NULL; | |
24336 | } | |
24337 | ||
24338 | ||
24339 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24340 | PyObject *resultobj; | |
24341 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24342 | wxWindow *result; | |
24343 | PyObject * obj0 = 0 ; | |
24344 | char *kwnames[] = { | |
24345 | (char *) "self", NULL | |
24346 | }; | |
24347 | ||
24348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
24349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24351 | { | |
24352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24353 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
24354 | ||
24355 | wxPyEndAllowThreads(__tstate); | |
24356 | if (PyErr_Occurred()) SWIG_fail; | |
24357 | } | |
24358 | { | |
24359 | resultobj = wxPyMake_wxObject(result); | |
24360 | } | |
24361 | return resultobj; | |
24362 | fail: | |
24363 | return NULL; | |
24364 | } | |
24365 | ||
24366 | ||
24367 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24368 | PyObject *resultobj; | |
24369 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24370 | bool result; | |
24371 | PyObject * obj0 = 0 ; | |
24372 | char *kwnames[] = { | |
24373 | (char *) "self", NULL | |
24374 | }; | |
24375 | ||
24376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
24377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24379 | { | |
24380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24381 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
24382 | ||
24383 | wxPyEndAllowThreads(__tstate); | |
24384 | if (PyErr_Occurred()) SWIG_fail; | |
24385 | } | |
24386 | { | |
24387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24388 | } | |
24389 | return resultobj; | |
24390 | fail: | |
24391 | return NULL; | |
24392 | } | |
24393 | ||
24394 | ||
24395 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24396 | PyObject *resultobj; | |
24397 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24398 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24399 | bool result; | |
24400 | PyObject * obj0 = 0 ; | |
24401 | PyObject * obj1 = 0 ; | |
24402 | char *kwnames[] = { | |
24403 | (char *) "self",(char *) "newParent", NULL | |
24404 | }; | |
24405 | ||
24406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
24407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24409 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24411 | { | |
24412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24413 | result = (bool)(arg1)->Reparent(arg2); | |
24414 | ||
24415 | wxPyEndAllowThreads(__tstate); | |
24416 | if (PyErr_Occurred()) SWIG_fail; | |
24417 | } | |
24418 | { | |
24419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24420 | } | |
24421 | return resultobj; | |
24422 | fail: | |
24423 | return NULL; | |
24424 | } | |
24425 | ||
24426 | ||
24427 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24428 | PyObject *resultobj; | |
24429 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24430 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24431 | PyObject * obj0 = 0 ; | |
24432 | PyObject * obj1 = 0 ; | |
24433 | char *kwnames[] = { | |
24434 | (char *) "self",(char *) "child", NULL | |
24435 | }; | |
24436 | ||
24437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
24438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24440 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24442 | { | |
24443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24444 | (arg1)->AddChild(arg2); | |
24445 | ||
24446 | wxPyEndAllowThreads(__tstate); | |
24447 | if (PyErr_Occurred()) SWIG_fail; | |
24448 | } | |
24449 | Py_INCREF(Py_None); resultobj = Py_None; | |
24450 | return resultobj; | |
24451 | fail: | |
24452 | return NULL; | |
24453 | } | |
24454 | ||
24455 | ||
24456 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24457 | PyObject *resultobj; | |
24458 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24459 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24460 | PyObject * obj0 = 0 ; | |
24461 | PyObject * obj1 = 0 ; | |
24462 | char *kwnames[] = { | |
24463 | (char *) "self",(char *) "child", NULL | |
24464 | }; | |
24465 | ||
24466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
24467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24471 | { | |
24472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24473 | (arg1)->RemoveChild(arg2); | |
24474 | ||
24475 | wxPyEndAllowThreads(__tstate); | |
24476 | if (PyErr_Occurred()) SWIG_fail; | |
24477 | } | |
24478 | Py_INCREF(Py_None); resultobj = Py_None; | |
24479 | return resultobj; | |
24480 | fail: | |
24481 | return NULL; | |
24482 | } | |
24483 | ||
24484 | ||
24485 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24486 | PyObject *resultobj; | |
24487 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24488 | long arg2 ; | |
24489 | wxWindow *result; | |
24490 | PyObject * obj0 = 0 ; | |
24491 | PyObject * obj1 = 0 ; | |
24492 | char *kwnames[] = { | |
24493 | (char *) "self",(char *) "winid", NULL | |
24494 | }; | |
24495 | ||
24496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
24497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24499 | arg2 = (long) SWIG_AsLong(obj1); | |
24500 | if (PyErr_Occurred()) SWIG_fail; | |
24501 | { | |
24502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24503 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
24504 | ||
24505 | wxPyEndAllowThreads(__tstate); | |
24506 | if (PyErr_Occurred()) SWIG_fail; | |
24507 | } | |
24508 | { | |
24509 | resultobj = wxPyMake_wxObject(result); | |
24510 | } | |
24511 | return resultobj; | |
24512 | fail: | |
24513 | return NULL; | |
24514 | } | |
24515 | ||
24516 | ||
24517 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24518 | PyObject *resultobj; | |
24519 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24520 | wxString *arg2 = 0 ; | |
24521 | wxWindow *result; | |
24522 | bool temp2 = False ; | |
24523 | PyObject * obj0 = 0 ; | |
24524 | PyObject * obj1 = 0 ; | |
24525 | char *kwnames[] = { | |
24526 | (char *) "self",(char *) "name", NULL | |
24527 | }; | |
24528 | ||
24529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
24530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24532 | { | |
24533 | arg2 = wxString_in_helper(obj1); | |
24534 | if (arg2 == NULL) SWIG_fail; | |
24535 | temp2 = True; | |
24536 | } | |
24537 | { | |
24538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24539 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
24540 | ||
24541 | wxPyEndAllowThreads(__tstate); | |
24542 | if (PyErr_Occurred()) SWIG_fail; | |
24543 | } | |
24544 | { | |
24545 | resultobj = wxPyMake_wxObject(result); | |
24546 | } | |
24547 | { | |
24548 | if (temp2) | |
24549 | delete arg2; | |
24550 | } | |
24551 | return resultobj; | |
24552 | fail: | |
24553 | { | |
24554 | if (temp2) | |
24555 | delete arg2; | |
24556 | } | |
24557 | return NULL; | |
24558 | } | |
24559 | ||
24560 | ||
24561 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24562 | PyObject *resultobj; | |
24563 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24564 | wxEvtHandler *result; | |
24565 | PyObject * obj0 = 0 ; | |
24566 | char *kwnames[] = { | |
24567 | (char *) "self", NULL | |
24568 | }; | |
24569 | ||
24570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
24571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24573 | { | |
24574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24575 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
24576 | ||
24577 | wxPyEndAllowThreads(__tstate); | |
24578 | if (PyErr_Occurred()) SWIG_fail; | |
24579 | } | |
24580 | { | |
24581 | resultobj = wxPyMake_wxObject(result); | |
24582 | } | |
24583 | return resultobj; | |
24584 | fail: | |
24585 | return NULL; | |
24586 | } | |
24587 | ||
24588 | ||
24589 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24590 | PyObject *resultobj; | |
24591 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24592 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24593 | PyObject * obj0 = 0 ; | |
24594 | PyObject * obj1 = 0 ; | |
24595 | char *kwnames[] = { | |
24596 | (char *) "self",(char *) "handler", NULL | |
24597 | }; | |
24598 | ||
24599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24602 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24604 | { | |
24605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24606 | (arg1)->SetEventHandler(arg2); | |
24607 | ||
24608 | wxPyEndAllowThreads(__tstate); | |
24609 | if (PyErr_Occurred()) SWIG_fail; | |
24610 | } | |
24611 | Py_INCREF(Py_None); resultobj = Py_None; | |
24612 | return resultobj; | |
24613 | fail: | |
24614 | return NULL; | |
24615 | } | |
24616 | ||
24617 | ||
24618 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24619 | PyObject *resultobj; | |
24620 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24621 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24622 | PyObject * obj0 = 0 ; | |
24623 | PyObject * obj1 = 0 ; | |
24624 | char *kwnames[] = { | |
24625 | (char *) "self",(char *) "handler", NULL | |
24626 | }; | |
24627 | ||
24628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24631 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24633 | { | |
24634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24635 | (arg1)->PushEventHandler(arg2); | |
24636 | ||
24637 | wxPyEndAllowThreads(__tstate); | |
24638 | if (PyErr_Occurred()) SWIG_fail; | |
24639 | } | |
24640 | Py_INCREF(Py_None); resultobj = Py_None; | |
24641 | return resultobj; | |
24642 | fail: | |
24643 | return NULL; | |
24644 | } | |
24645 | ||
24646 | ||
24647 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24648 | PyObject *resultobj; | |
24649 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24650 | bool arg2 = (bool) False ; | |
24651 | wxEvtHandler *result; | |
24652 | PyObject * obj0 = 0 ; | |
24653 | PyObject * obj1 = 0 ; | |
24654 | char *kwnames[] = { | |
24655 | (char *) "self",(char *) "deleteHandler", NULL | |
24656 | }; | |
24657 | ||
24658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24661 | if (obj1) { | |
24662 | arg2 = (bool) SWIG_AsBool(obj1); | |
24663 | if (PyErr_Occurred()) SWIG_fail; | |
24664 | } | |
24665 | { | |
24666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24667 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
24668 | ||
24669 | wxPyEndAllowThreads(__tstate); | |
24670 | if (PyErr_Occurred()) SWIG_fail; | |
24671 | } | |
24672 | { | |
24673 | resultobj = wxPyMake_wxObject(result); | |
24674 | } | |
24675 | return resultobj; | |
24676 | fail: | |
24677 | return NULL; | |
24678 | } | |
24679 | ||
24680 | ||
24681 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24682 | PyObject *resultobj; | |
24683 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24684 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24685 | bool result; | |
24686 | PyObject * obj0 = 0 ; | |
24687 | PyObject * obj1 = 0 ; | |
24688 | char *kwnames[] = { | |
24689 | (char *) "self",(char *) "handler", NULL | |
24690 | }; | |
24691 | ||
24692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24695 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24697 | { | |
24698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24699 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
24700 | ||
24701 | wxPyEndAllowThreads(__tstate); | |
24702 | if (PyErr_Occurred()) SWIG_fail; | |
24703 | } | |
24704 | { | |
24705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24706 | } | |
24707 | return resultobj; | |
24708 | fail: | |
24709 | return NULL; | |
24710 | } | |
24711 | ||
24712 | ||
24713 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24714 | PyObject *resultobj; | |
24715 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24716 | wxValidator *arg2 = 0 ; | |
24717 | PyObject * obj0 = 0 ; | |
24718 | PyObject * obj1 = 0 ; | |
24719 | char *kwnames[] = { | |
24720 | (char *) "self",(char *) "validator", NULL | |
24721 | }; | |
24722 | ||
24723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
24724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24726 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
24727 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24728 | SWIG_fail; | |
24729 | if (arg2 == NULL) { | |
24730 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24731 | SWIG_fail; | |
24732 | } | |
24733 | { | |
24734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24735 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
24736 | ||
24737 | wxPyEndAllowThreads(__tstate); | |
24738 | if (PyErr_Occurred()) SWIG_fail; | |
24739 | } | |
24740 | Py_INCREF(Py_None); resultobj = Py_None; | |
24741 | return resultobj; | |
24742 | fail: | |
24743 | return NULL; | |
24744 | } | |
24745 | ||
24746 | ||
24747 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24748 | PyObject *resultobj; | |
24749 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24750 | wxValidator *result; | |
24751 | PyObject * obj0 = 0 ; | |
24752 | char *kwnames[] = { | |
24753 | (char *) "self", NULL | |
24754 | }; | |
24755 | ||
24756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
24757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24759 | { | |
24760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24761 | result = (wxValidator *)(arg1)->GetValidator(); | |
24762 | ||
24763 | wxPyEndAllowThreads(__tstate); | |
24764 | if (PyErr_Occurred()) SWIG_fail; | |
24765 | } | |
24766 | { | |
24767 | resultobj = wxPyMake_wxObject(result); | |
24768 | } | |
24769 | return resultobj; | |
24770 | fail: | |
24771 | return NULL; | |
24772 | } | |
24773 | ||
24774 | ||
24775 | static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24776 | PyObject *resultobj; | |
24777 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24778 | bool result; | |
24779 | PyObject * obj0 = 0 ; | |
24780 | char *kwnames[] = { | |
24781 | (char *) "self", NULL | |
24782 | }; | |
24783 | ||
24784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
24785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24787 | { | |
24788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24789 | result = (bool)(arg1)->Validate(); | |
24790 | ||
24791 | wxPyEndAllowThreads(__tstate); | |
24792 | if (PyErr_Occurred()) SWIG_fail; | |
24793 | } | |
24794 | { | |
24795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24796 | } | |
24797 | return resultobj; | |
24798 | fail: | |
24799 | return NULL; | |
24800 | } | |
24801 | ||
24802 | ||
24803 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24804 | PyObject *resultobj; | |
24805 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24806 | bool result; | |
24807 | PyObject * obj0 = 0 ; | |
24808 | char *kwnames[] = { | |
24809 | (char *) "self", NULL | |
24810 | }; | |
24811 | ||
24812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
24813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24815 | { | |
24816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24817 | result = (bool)(arg1)->TransferDataToWindow(); | |
24818 | ||
24819 | wxPyEndAllowThreads(__tstate); | |
24820 | if (PyErr_Occurred()) SWIG_fail; | |
24821 | } | |
24822 | { | |
24823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24824 | } | |
24825 | return resultobj; | |
24826 | fail: | |
24827 | return NULL; | |
24828 | } | |
24829 | ||
24830 | ||
24831 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24832 | PyObject *resultobj; | |
24833 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24834 | bool result; | |
24835 | PyObject * obj0 = 0 ; | |
24836 | char *kwnames[] = { | |
24837 | (char *) "self", NULL | |
24838 | }; | |
24839 | ||
24840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
24841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24843 | { | |
24844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24845 | result = (bool)(arg1)->TransferDataFromWindow(); | |
24846 | ||
24847 | wxPyEndAllowThreads(__tstate); | |
24848 | if (PyErr_Occurred()) SWIG_fail; | |
24849 | } | |
24850 | { | |
24851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24852 | } | |
24853 | return resultobj; | |
24854 | fail: | |
24855 | return NULL; | |
24856 | } | |
24857 | ||
24858 | ||
24859 | static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24860 | PyObject *resultobj; | |
24861 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24862 | PyObject * obj0 = 0 ; | |
24863 | char *kwnames[] = { | |
24864 | (char *) "self", NULL | |
24865 | }; | |
24866 | ||
24867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
24868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24870 | { | |
24871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24872 | (arg1)->InitDialog(); | |
24873 | ||
24874 | wxPyEndAllowThreads(__tstate); | |
24875 | if (PyErr_Occurred()) SWIG_fail; | |
24876 | } | |
24877 | Py_INCREF(Py_None); resultobj = Py_None; | |
24878 | return resultobj; | |
24879 | fail: | |
24880 | return NULL; | |
24881 | } | |
24882 | ||
24883 | ||
24884 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24885 | PyObject *resultobj; | |
24886 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24887 | wxAcceleratorTable *arg2 = 0 ; | |
24888 | PyObject * obj0 = 0 ; | |
24889 | PyObject * obj1 = 0 ; | |
24890 | char *kwnames[] = { | |
24891 | (char *) "self",(char *) "accel", NULL | |
24892 | }; | |
24893 | ||
24894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
24895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24897 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
24898 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24899 | SWIG_fail; | |
24900 | if (arg2 == NULL) { | |
24901 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24902 | SWIG_fail; | |
24903 | } | |
24904 | { | |
24905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24906 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
24907 | ||
24908 | wxPyEndAllowThreads(__tstate); | |
24909 | if (PyErr_Occurred()) SWIG_fail; | |
24910 | } | |
24911 | Py_INCREF(Py_None); resultobj = Py_None; | |
24912 | return resultobj; | |
24913 | fail: | |
24914 | return NULL; | |
24915 | } | |
24916 | ||
24917 | ||
24918 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24919 | PyObject *resultobj; | |
24920 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24921 | wxAcceleratorTable *result; | |
24922 | PyObject * obj0 = 0 ; | |
24923 | char *kwnames[] = { | |
24924 | (char *) "self", NULL | |
24925 | }; | |
24926 | ||
24927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
24928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24930 | { | |
24931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24932 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
24933 | ||
24934 | wxPyEndAllowThreads(__tstate); | |
24935 | if (PyErr_Occurred()) SWIG_fail; | |
24936 | } | |
24937 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); | |
24938 | return resultobj; | |
24939 | fail: | |
24940 | return NULL; | |
24941 | } | |
24942 | ||
24943 | ||
24944 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24945 | PyObject *resultobj; | |
24946 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24947 | int arg2 ; | |
24948 | int arg3 ; | |
24949 | int arg4 ; | |
24950 | bool result; | |
24951 | PyObject * obj0 = 0 ; | |
24952 | PyObject * obj1 = 0 ; | |
24953 | PyObject * obj2 = 0 ; | |
24954 | PyObject * obj3 = 0 ; | |
24955 | char *kwnames[] = { | |
24956 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
24957 | }; | |
24958 | ||
24959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24962 | arg2 = (int) SWIG_AsInt(obj1); | |
24963 | if (PyErr_Occurred()) SWIG_fail; | |
24964 | arg3 = (int) SWIG_AsInt(obj2); | |
24965 | if (PyErr_Occurred()) SWIG_fail; | |
24966 | arg4 = (int) SWIG_AsInt(obj3); | |
24967 | if (PyErr_Occurred()) SWIG_fail; | |
24968 | { | |
24969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24970 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
24971 | ||
24972 | wxPyEndAllowThreads(__tstate); | |
24973 | if (PyErr_Occurred()) SWIG_fail; | |
24974 | } | |
24975 | { | |
24976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24977 | } | |
24978 | return resultobj; | |
24979 | fail: | |
24980 | return NULL; | |
24981 | } | |
24982 | ||
24983 | ||
24984 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24985 | PyObject *resultobj; | |
24986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24987 | int arg2 ; | |
24988 | bool result; | |
24989 | PyObject * obj0 = 0 ; | |
24990 | PyObject * obj1 = 0 ; | |
24991 | char *kwnames[] = { | |
24992 | (char *) "self",(char *) "hotkeyId", NULL | |
24993 | }; | |
24994 | ||
24995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; | |
24996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24998 | arg2 = (int) SWIG_AsInt(obj1); | |
24999 | if (PyErr_Occurred()) SWIG_fail; | |
25000 | { | |
25001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25002 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25003 | ||
25004 | wxPyEndAllowThreads(__tstate); | |
25005 | if (PyErr_Occurred()) SWIG_fail; | |
25006 | } | |
25007 | { | |
25008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25009 | } | |
25010 | return resultobj; | |
25011 | fail: | |
25012 | return NULL; | |
25013 | } | |
25014 | ||
25015 | ||
25016 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25017 | PyObject *resultobj; | |
25018 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25019 | wxPoint *arg2 = 0 ; | |
25020 | wxPoint result; | |
25021 | wxPoint temp2 ; | |
25022 | PyObject * obj0 = 0 ; | |
25023 | PyObject * obj1 = 0 ; | |
25024 | char *kwnames[] = { | |
25025 | (char *) "self",(char *) "pt", NULL | |
25026 | }; | |
25027 | ||
25028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25031 | { | |
25032 | arg2 = &temp2; | |
25033 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25034 | } | |
25035 | { | |
25036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25037 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25038 | ||
25039 | wxPyEndAllowThreads(__tstate); | |
25040 | if (PyErr_Occurred()) SWIG_fail; | |
25041 | } | |
25042 | { | |
25043 | wxPoint * resultptr; | |
25044 | resultptr = new wxPoint((wxPoint &) result); | |
25045 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25046 | } | |
25047 | return resultobj; | |
25048 | fail: | |
25049 | return NULL; | |
25050 | } | |
25051 | ||
25052 | ||
25053 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25054 | PyObject *resultobj; | |
25055 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25056 | wxSize *arg2 = 0 ; | |
25057 | wxSize result; | |
25058 | wxSize temp2 ; | |
25059 | PyObject * obj0 = 0 ; | |
25060 | PyObject * obj1 = 0 ; | |
25061 | char *kwnames[] = { | |
25062 | (char *) "self",(char *) "sz", NULL | |
25063 | }; | |
25064 | ||
25065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25068 | { | |
25069 | arg2 = &temp2; | |
25070 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25071 | } | |
25072 | { | |
25073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25074 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25075 | ||
25076 | wxPyEndAllowThreads(__tstate); | |
25077 | if (PyErr_Occurred()) SWIG_fail; | |
25078 | } | |
25079 | { | |
25080 | wxSize * resultptr; | |
25081 | resultptr = new wxSize((wxSize &) result); | |
25082 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25083 | } | |
25084 | return resultobj; | |
25085 | fail: | |
25086 | return NULL; | |
25087 | } | |
25088 | ||
25089 | ||
25090 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25091 | PyObject *resultobj; | |
25092 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25093 | wxPoint *arg2 = 0 ; | |
25094 | wxPoint result; | |
25095 | wxPoint temp2 ; | |
25096 | PyObject * obj0 = 0 ; | |
25097 | PyObject * obj1 = 0 ; | |
25098 | char *kwnames[] = { | |
25099 | (char *) "self",(char *) "pt", NULL | |
25100 | }; | |
25101 | ||
25102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
25103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25105 | { | |
25106 | arg2 = &temp2; | |
25107 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25108 | } | |
25109 | { | |
25110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25111 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25112 | ||
25113 | wxPyEndAllowThreads(__tstate); | |
25114 | if (PyErr_Occurred()) SWIG_fail; | |
25115 | } | |
25116 | { | |
25117 | wxPoint * resultptr; | |
25118 | resultptr = new wxPoint((wxPoint &) result); | |
25119 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25120 | } | |
25121 | return resultobj; | |
25122 | fail: | |
25123 | return NULL; | |
25124 | } | |
25125 | ||
25126 | ||
25127 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25128 | PyObject *resultobj; | |
25129 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25130 | wxSize *arg2 = 0 ; | |
25131 | wxSize result; | |
25132 | wxSize temp2 ; | |
25133 | PyObject * obj0 = 0 ; | |
25134 | PyObject * obj1 = 0 ; | |
25135 | char *kwnames[] = { | |
25136 | (char *) "self",(char *) "sz", NULL | |
25137 | }; | |
25138 | ||
25139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
25140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25142 | { | |
25143 | arg2 = &temp2; | |
25144 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25145 | } | |
25146 | { | |
25147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25148 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25149 | ||
25150 | wxPyEndAllowThreads(__tstate); | |
25151 | if (PyErr_Occurred()) SWIG_fail; | |
25152 | } | |
25153 | { | |
25154 | wxSize * resultptr; | |
25155 | resultptr = new wxSize((wxSize &) result); | |
25156 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25157 | } | |
25158 | return resultobj; | |
25159 | fail: | |
25160 | return NULL; | |
25161 | } | |
25162 | ||
25163 | ||
25164 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25165 | PyObject *resultobj; | |
25166 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25167 | wxPoint *arg2 = 0 ; | |
25168 | wxPoint result; | |
25169 | wxPoint temp2 ; | |
25170 | PyObject * obj0 = 0 ; | |
25171 | PyObject * obj1 = 0 ; | |
25172 | char *kwnames[] = { | |
25173 | (char *) "self",(char *) "pt", NULL | |
25174 | }; | |
25175 | ||
25176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
25177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25179 | { | |
25180 | arg2 = &temp2; | |
25181 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25182 | } | |
25183 | { | |
25184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25185 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
25186 | ||
25187 | wxPyEndAllowThreads(__tstate); | |
25188 | if (PyErr_Occurred()) SWIG_fail; | |
25189 | } | |
25190 | { | |
25191 | wxPoint * resultptr; | |
25192 | resultptr = new wxPoint((wxPoint &) result); | |
25193 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25194 | } | |
25195 | return resultobj; | |
25196 | fail: | |
25197 | return NULL; | |
25198 | } | |
25199 | ||
25200 | ||
25201 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25202 | PyObject *resultobj; | |
25203 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25204 | wxSize *arg2 = 0 ; | |
25205 | wxSize result; | |
25206 | wxSize temp2 ; | |
25207 | PyObject * obj0 = 0 ; | |
25208 | PyObject * obj1 = 0 ; | |
25209 | char *kwnames[] = { | |
25210 | (char *) "self",(char *) "sz", NULL | |
25211 | }; | |
25212 | ||
25213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
25214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25216 | { | |
25217 | arg2 = &temp2; | |
25218 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25219 | } | |
25220 | { | |
25221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25222 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
25223 | ||
25224 | wxPyEndAllowThreads(__tstate); | |
25225 | if (PyErr_Occurred()) SWIG_fail; | |
25226 | } | |
25227 | { | |
25228 | wxSize * resultptr; | |
25229 | resultptr = new wxSize((wxSize &) result); | |
25230 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25231 | } | |
25232 | return resultobj; | |
25233 | fail: | |
25234 | return NULL; | |
25235 | } | |
25236 | ||
25237 | ||
25238 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25239 | PyObject *resultobj; | |
25240 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25241 | int arg2 ; | |
25242 | int arg3 ; | |
25243 | PyObject * obj0 = 0 ; | |
25244 | PyObject * obj1 = 0 ; | |
25245 | PyObject * obj2 = 0 ; | |
25246 | char *kwnames[] = { | |
25247 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25248 | }; | |
25249 | ||
25250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25253 | arg2 = (int) SWIG_AsInt(obj1); | |
25254 | if (PyErr_Occurred()) SWIG_fail; | |
25255 | arg3 = (int) SWIG_AsInt(obj2); | |
25256 | if (PyErr_Occurred()) SWIG_fail; | |
25257 | { | |
25258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25259 | (arg1)->WarpPointer(arg2,arg3); | |
25260 | ||
25261 | wxPyEndAllowThreads(__tstate); | |
25262 | if (PyErr_Occurred()) SWIG_fail; | |
25263 | } | |
25264 | Py_INCREF(Py_None); resultobj = Py_None; | |
25265 | return resultobj; | |
25266 | fail: | |
25267 | return NULL; | |
25268 | } | |
25269 | ||
25270 | ||
25271 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25272 | PyObject *resultobj; | |
25273 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25274 | PyObject * obj0 = 0 ; | |
25275 | char *kwnames[] = { | |
25276 | (char *) "self", NULL | |
25277 | }; | |
25278 | ||
25279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
25280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25282 | { | |
25283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25284 | (arg1)->CaptureMouse(); | |
25285 | ||
25286 | wxPyEndAllowThreads(__tstate); | |
25287 | if (PyErr_Occurred()) SWIG_fail; | |
25288 | } | |
25289 | Py_INCREF(Py_None); resultobj = Py_None; | |
25290 | return resultobj; | |
25291 | fail: | |
25292 | return NULL; | |
25293 | } | |
25294 | ||
25295 | ||
25296 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25297 | PyObject *resultobj; | |
25298 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25299 | PyObject * obj0 = 0 ; | |
25300 | char *kwnames[] = { | |
25301 | (char *) "self", NULL | |
25302 | }; | |
25303 | ||
25304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
25305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25307 | { | |
25308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25309 | (arg1)->ReleaseMouse(); | |
25310 | ||
25311 | wxPyEndAllowThreads(__tstate); | |
25312 | if (PyErr_Occurred()) SWIG_fail; | |
25313 | } | |
25314 | Py_INCREF(Py_None); resultobj = Py_None; | |
25315 | return resultobj; | |
25316 | fail: | |
25317 | return NULL; | |
25318 | } | |
25319 | ||
25320 | ||
25321 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25322 | PyObject *resultobj; | |
25323 | wxWindow *result; | |
25324 | char *kwnames[] = { | |
25325 | NULL | |
25326 | }; | |
25327 | ||
25328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
25329 | { | |
0439c23b | 25330 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25332 | result = (wxWindow *)wxWindow::GetCapture(); | |
25333 | ||
25334 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 25335 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
25336 | } |
25337 | { | |
25338 | resultobj = wxPyMake_wxObject(result); | |
25339 | } | |
25340 | return resultobj; | |
25341 | fail: | |
25342 | return NULL; | |
25343 | } | |
25344 | ||
25345 | ||
25346 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25347 | PyObject *resultobj; | |
25348 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25349 | bool result; | |
25350 | PyObject * obj0 = 0 ; | |
25351 | char *kwnames[] = { | |
25352 | (char *) "self", NULL | |
25353 | }; | |
25354 | ||
25355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
25356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25358 | { | |
25359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25360 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
25361 | ||
25362 | wxPyEndAllowThreads(__tstate); | |
25363 | if (PyErr_Occurred()) SWIG_fail; | |
25364 | } | |
25365 | { | |
25366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25367 | } | |
25368 | return resultobj; | |
25369 | fail: | |
25370 | return NULL; | |
25371 | } | |
25372 | ||
25373 | ||
25374 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25375 | PyObject *resultobj; | |
25376 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25377 | bool arg2 = (bool) True ; | |
25378 | wxRect *arg3 = (wxRect *) NULL ; | |
25379 | PyObject * obj0 = 0 ; | |
25380 | PyObject * obj1 = 0 ; | |
25381 | PyObject * obj2 = 0 ; | |
25382 | char *kwnames[] = { | |
25383 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
25384 | }; | |
25385 | ||
25386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25389 | if (obj1) { | |
25390 | arg2 = (bool) SWIG_AsBool(obj1); | |
25391 | if (PyErr_Occurred()) SWIG_fail; | |
25392 | } | |
25393 | if (obj2) { | |
25394 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
25395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25396 | } | |
25397 | { | |
25398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25399 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
25400 | ||
25401 | wxPyEndAllowThreads(__tstate); | |
25402 | if (PyErr_Occurred()) SWIG_fail; | |
25403 | } | |
25404 | Py_INCREF(Py_None); resultobj = Py_None; | |
25405 | return resultobj; | |
25406 | fail: | |
25407 | return NULL; | |
25408 | } | |
25409 | ||
25410 | ||
25411 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25412 | PyObject *resultobj; | |
25413 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25414 | wxRect *arg2 = 0 ; | |
25415 | wxRect temp2 ; | |
25416 | PyObject * obj0 = 0 ; | |
25417 | PyObject * obj1 = 0 ; | |
25418 | char *kwnames[] = { | |
25419 | (char *) "self",(char *) "rect", NULL | |
25420 | }; | |
25421 | ||
25422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
25423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25425 | { | |
25426 | arg2 = &temp2; | |
25427 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25428 | } | |
25429 | { | |
25430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25431 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
25432 | ||
25433 | wxPyEndAllowThreads(__tstate); | |
25434 | if (PyErr_Occurred()) SWIG_fail; | |
25435 | } | |
25436 | Py_INCREF(Py_None); resultobj = Py_None; | |
25437 | return resultobj; | |
25438 | fail: | |
25439 | return NULL; | |
25440 | } | |
25441 | ||
25442 | ||
25443 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25444 | PyObject *resultobj; | |
25445 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25446 | PyObject * obj0 = 0 ; | |
25447 | char *kwnames[] = { | |
25448 | (char *) "self", NULL | |
25449 | }; | |
25450 | ||
25451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
25452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25454 | { | |
25455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25456 | (arg1)->Update(); | |
25457 | ||
25458 | wxPyEndAllowThreads(__tstate); | |
25459 | if (PyErr_Occurred()) SWIG_fail; | |
25460 | } | |
25461 | Py_INCREF(Py_None); resultobj = Py_None; | |
25462 | return resultobj; | |
25463 | fail: | |
25464 | return NULL; | |
25465 | } | |
25466 | ||
25467 | ||
25468 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25469 | PyObject *resultobj; | |
25470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25471 | PyObject * obj0 = 0 ; | |
25472 | char *kwnames[] = { | |
25473 | (char *) "self", NULL | |
25474 | }; | |
25475 | ||
25476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
25477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25479 | { | |
25480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25481 | (arg1)->ClearBackground(); | |
25482 | ||
25483 | wxPyEndAllowThreads(__tstate); | |
25484 | if (PyErr_Occurred()) SWIG_fail; | |
25485 | } | |
25486 | Py_INCREF(Py_None); resultobj = Py_None; | |
25487 | return resultobj; | |
25488 | fail: | |
25489 | return NULL; | |
25490 | } | |
25491 | ||
25492 | ||
25493 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25494 | PyObject *resultobj; | |
25495 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25496 | PyObject * obj0 = 0 ; | |
25497 | char *kwnames[] = { | |
25498 | (char *) "self", NULL | |
25499 | }; | |
25500 | ||
25501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
25502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25504 | { | |
25505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25506 | (arg1)->Freeze(); | |
25507 | ||
25508 | wxPyEndAllowThreads(__tstate); | |
25509 | if (PyErr_Occurred()) SWIG_fail; | |
25510 | } | |
25511 | Py_INCREF(Py_None); resultobj = Py_None; | |
25512 | return resultobj; | |
25513 | fail: | |
25514 | return NULL; | |
25515 | } | |
25516 | ||
25517 | ||
25518 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25519 | PyObject *resultobj; | |
25520 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25521 | PyObject * obj0 = 0 ; | |
25522 | char *kwnames[] = { | |
25523 | (char *) "self", NULL | |
25524 | }; | |
25525 | ||
25526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
25527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25529 | { | |
25530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25531 | (arg1)->Thaw(); | |
25532 | ||
25533 | wxPyEndAllowThreads(__tstate); | |
25534 | if (PyErr_Occurred()) SWIG_fail; | |
25535 | } | |
25536 | Py_INCREF(Py_None); resultobj = Py_None; | |
25537 | return resultobj; | |
25538 | fail: | |
25539 | return NULL; | |
25540 | } | |
25541 | ||
25542 | ||
25543 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25544 | PyObject *resultobj; | |
25545 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25546 | wxDC *arg2 = 0 ; | |
25547 | PyObject * obj0 = 0 ; | |
25548 | PyObject * obj1 = 0 ; | |
25549 | char *kwnames[] = { | |
25550 | (char *) "self",(char *) "dc", NULL | |
25551 | }; | |
25552 | ||
25553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
25554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25556 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25557 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25558 | SWIG_fail; | |
25559 | if (arg2 == NULL) { | |
25560 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25561 | SWIG_fail; | |
25562 | } | |
25563 | { | |
25564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25565 | (arg1)->PrepareDC(*arg2); | |
25566 | ||
25567 | wxPyEndAllowThreads(__tstate); | |
25568 | if (PyErr_Occurred()) SWIG_fail; | |
25569 | } | |
25570 | Py_INCREF(Py_None); resultobj = Py_None; | |
25571 | return resultobj; | |
25572 | fail: | |
25573 | return NULL; | |
25574 | } | |
25575 | ||
25576 | ||
25577 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25578 | PyObject *resultobj; | |
25579 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25580 | wxRegion *result; | |
25581 | PyObject * obj0 = 0 ; | |
25582 | char *kwnames[] = { | |
25583 | (char *) "self", NULL | |
25584 | }; | |
25585 | ||
25586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
25587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25589 | { | |
25590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25591 | { | |
25592 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
25593 | result = (wxRegion *) &_result_ref; | |
25594 | } | |
25595 | ||
25596 | wxPyEndAllowThreads(__tstate); | |
25597 | if (PyErr_Occurred()) SWIG_fail; | |
25598 | } | |
25599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); | |
25600 | return resultobj; | |
25601 | fail: | |
25602 | return NULL; | |
25603 | } | |
25604 | ||
25605 | ||
25606 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25607 | PyObject *resultobj; | |
25608 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25609 | wxRect result; | |
25610 | PyObject * obj0 = 0 ; | |
25611 | char *kwnames[] = { | |
25612 | (char *) "self", NULL | |
25613 | }; | |
25614 | ||
25615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
25616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25618 | { | |
25619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25620 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
25621 | ||
25622 | wxPyEndAllowThreads(__tstate); | |
25623 | if (PyErr_Occurred()) SWIG_fail; | |
25624 | } | |
25625 | { | |
25626 | wxRect * resultptr; | |
25627 | resultptr = new wxRect((wxRect &) result); | |
25628 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
25629 | } | |
25630 | return resultobj; | |
25631 | fail: | |
25632 | return NULL; | |
25633 | } | |
25634 | ||
25635 | ||
25636 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25637 | PyObject *resultobj; | |
25638 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25639 | int arg2 ; | |
25640 | int arg3 ; | |
25641 | int arg4 = (int) 1 ; | |
25642 | int arg5 = (int) 1 ; | |
25643 | bool result; | |
25644 | PyObject * obj0 = 0 ; | |
25645 | PyObject * obj1 = 0 ; | |
25646 | PyObject * obj2 = 0 ; | |
25647 | PyObject * obj3 = 0 ; | |
25648 | PyObject * obj4 = 0 ; | |
25649 | char *kwnames[] = { | |
25650 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
25651 | }; | |
25652 | ||
25653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25656 | arg2 = (int) SWIG_AsInt(obj1); | |
25657 | if (PyErr_Occurred()) SWIG_fail; | |
25658 | arg3 = (int) SWIG_AsInt(obj2); | |
25659 | if (PyErr_Occurred()) SWIG_fail; | |
25660 | if (obj3) { | |
25661 | arg4 = (int) SWIG_AsInt(obj3); | |
25662 | if (PyErr_Occurred()) SWIG_fail; | |
25663 | } | |
25664 | if (obj4) { | |
25665 | arg5 = (int) SWIG_AsInt(obj4); | |
25666 | if (PyErr_Occurred()) SWIG_fail; | |
25667 | } | |
25668 | { | |
25669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25670 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
25671 | ||
25672 | wxPyEndAllowThreads(__tstate); | |
25673 | if (PyErr_Occurred()) SWIG_fail; | |
25674 | } | |
25675 | { | |
25676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25677 | } | |
25678 | return resultobj; | |
25679 | fail: | |
25680 | return NULL; | |
25681 | } | |
25682 | ||
25683 | ||
25684 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25685 | PyObject *resultobj; | |
25686 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25687 | wxPoint *arg2 = 0 ; | |
25688 | bool result; | |
25689 | wxPoint temp2 ; | |
25690 | PyObject * obj0 = 0 ; | |
25691 | PyObject * obj1 = 0 ; | |
25692 | char *kwnames[] = { | |
25693 | (char *) "self",(char *) "pt", NULL | |
25694 | }; | |
25695 | ||
25696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
25697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25699 | { | |
25700 | arg2 = &temp2; | |
25701 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25702 | } | |
25703 | { | |
25704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25705 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
25706 | ||
25707 | wxPyEndAllowThreads(__tstate); | |
25708 | if (PyErr_Occurred()) SWIG_fail; | |
25709 | } | |
25710 | { | |
25711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25712 | } | |
25713 | return resultobj; | |
25714 | fail: | |
25715 | return NULL; | |
25716 | } | |
25717 | ||
25718 | ||
25719 | static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25720 | PyObject *resultobj; | |
25721 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25722 | wxRect *arg2 = 0 ; | |
25723 | bool result; | |
25724 | wxRect temp2 ; | |
25725 | PyObject * obj0 = 0 ; | |
25726 | PyObject * obj1 = 0 ; | |
25727 | char *kwnames[] = { | |
25728 | (char *) "self",(char *) "rect", NULL | |
25729 | }; | |
25730 | ||
25731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
25732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25734 | { | |
25735 | arg2 = &temp2; | |
25736 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25737 | } | |
25738 | { | |
25739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25740 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
25741 | ||
25742 | wxPyEndAllowThreads(__tstate); | |
25743 | if (PyErr_Occurred()) SWIG_fail; | |
25744 | } | |
25745 | { | |
25746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25747 | } | |
25748 | return resultobj; | |
25749 | fail: | |
25750 | return NULL; | |
25751 | } | |
25752 | ||
25753 | ||
25754 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25755 | PyObject *resultobj; | |
25756 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25757 | wxVisualAttributes result; | |
25758 | PyObject * obj0 = 0 ; | |
25759 | char *kwnames[] = { | |
25760 | (char *) "self", NULL | |
25761 | }; | |
25762 | ||
25763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
25764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25766 | { | |
25767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25768 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
25769 | ||
25770 | wxPyEndAllowThreads(__tstate); | |
25771 | if (PyErr_Occurred()) SWIG_fail; | |
25772 | } | |
25773 | { | |
25774 | wxVisualAttributes * resultptr; | |
25775 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
25776 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
25777 | } | |
25778 | return resultobj; | |
25779 | fail: | |
25780 | return NULL; | |
25781 | } | |
25782 | ||
25783 | ||
25784 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25785 | PyObject *resultobj; | |
25786 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
25787 | wxVisualAttributes result; | |
25788 | PyObject * obj0 = 0 ; | |
25789 | char *kwnames[] = { | |
25790 | (char *) "variant", NULL | |
25791 | }; | |
25792 | ||
25793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
25794 | if (obj0) { | |
25795 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
25796 | if (PyErr_Occurred()) SWIG_fail; | |
25797 | } | |
25798 | { | |
0439c23b | 25799 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25801 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
25802 | ||
25803 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 25804 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
25805 | } |
25806 | { | |
25807 | wxVisualAttributes * resultptr; | |
25808 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
25809 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
25810 | } | |
25811 | return resultobj; | |
25812 | fail: | |
25813 | return NULL; | |
25814 | } | |
25815 | ||
25816 | ||
25817 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25818 | PyObject *resultobj; | |
25819 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25820 | wxColour *arg2 = 0 ; | |
25821 | bool result; | |
25822 | wxColour temp2 ; | |
25823 | PyObject * obj0 = 0 ; | |
25824 | PyObject * obj1 = 0 ; | |
25825 | char *kwnames[] = { | |
25826 | (char *) "self",(char *) "colour", NULL | |
25827 | }; | |
25828 | ||
25829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25832 | { | |
25833 | arg2 = &temp2; | |
25834 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25835 | } | |
25836 | { | |
25837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25838 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
25839 | ||
25840 | wxPyEndAllowThreads(__tstate); | |
25841 | if (PyErr_Occurred()) SWIG_fail; | |
25842 | } | |
25843 | { | |
25844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25845 | } | |
25846 | return resultobj; | |
25847 | fail: | |
25848 | return NULL; | |
25849 | } | |
25850 | ||
25851 | ||
25852 | static PyObject *_wrap_Window_SetDefaultBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25853 | PyObject *resultobj; | |
25854 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25855 | wxColour *arg2 = 0 ; | |
25856 | wxColour temp2 ; | |
25857 | PyObject * obj0 = 0 ; | |
25858 | PyObject * obj1 = 0 ; | |
25859 | char *kwnames[] = { | |
25860 | (char *) "self",(char *) "colour", NULL | |
25861 | }; | |
25862 | ||
25863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25866 | { | |
25867 | arg2 = &temp2; | |
25868 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25869 | } | |
25870 | { | |
25871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25872 | (arg1)->SetDefaultBackgroundColour((wxColour const &)*arg2); | |
25873 | ||
25874 | wxPyEndAllowThreads(__tstate); | |
25875 | if (PyErr_Occurred()) SWIG_fail; | |
25876 | } | |
25877 | Py_INCREF(Py_None); resultobj = Py_None; | |
25878 | return resultobj; | |
25879 | fail: | |
25880 | return NULL; | |
25881 | } | |
25882 | ||
25883 | ||
25884 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25885 | PyObject *resultobj; | |
25886 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25887 | wxColour *arg2 = 0 ; | |
25888 | bool result; | |
25889 | wxColour temp2 ; | |
25890 | PyObject * obj0 = 0 ; | |
25891 | PyObject * obj1 = 0 ; | |
25892 | char *kwnames[] = { | |
25893 | (char *) "self",(char *) "colour", NULL | |
25894 | }; | |
25895 | ||
25896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25899 | { | |
25900 | arg2 = &temp2; | |
25901 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25902 | } | |
25903 | { | |
25904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25905 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
25906 | ||
25907 | wxPyEndAllowThreads(__tstate); | |
25908 | if (PyErr_Occurred()) SWIG_fail; | |
25909 | } | |
25910 | { | |
25911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25912 | } | |
25913 | return resultobj; | |
25914 | fail: | |
25915 | return NULL; | |
25916 | } | |
25917 | ||
25918 | ||
25919 | static PyObject *_wrap_Window_SetDefaultForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25920 | PyObject *resultobj; | |
25921 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25922 | wxColour *arg2 = 0 ; | |
25923 | wxColour temp2 ; | |
25924 | PyObject * obj0 = 0 ; | |
25925 | PyObject * obj1 = 0 ; | |
25926 | char *kwnames[] = { | |
25927 | (char *) "self",(char *) "colour", NULL | |
25928 | }; | |
25929 | ||
25930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25933 | { | |
25934 | arg2 = &temp2; | |
25935 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25936 | } | |
25937 | { | |
25938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25939 | (arg1)->SetDefaultForegroundColour((wxColour const &)*arg2); | |
25940 | ||
25941 | wxPyEndAllowThreads(__tstate); | |
25942 | if (PyErr_Occurred()) SWIG_fail; | |
25943 | } | |
25944 | Py_INCREF(Py_None); resultobj = Py_None; | |
25945 | return resultobj; | |
25946 | fail: | |
25947 | return NULL; | |
25948 | } | |
25949 | ||
25950 | ||
25951 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25952 | PyObject *resultobj; | |
25953 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25954 | wxColour result; | |
25955 | PyObject * obj0 = 0 ; | |
25956 | char *kwnames[] = { | |
25957 | (char *) "self", NULL | |
25958 | }; | |
25959 | ||
25960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
25961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25963 | { | |
25964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25965 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
25966 | ||
25967 | wxPyEndAllowThreads(__tstate); | |
25968 | if (PyErr_Occurred()) SWIG_fail; | |
25969 | } | |
25970 | { | |
25971 | wxColour * resultptr; | |
25972 | resultptr = new wxColour((wxColour &) result); | |
25973 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
25974 | } | |
25975 | return resultobj; | |
25976 | fail: | |
25977 | return NULL; | |
25978 | } | |
25979 | ||
25980 | ||
25981 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25982 | PyObject *resultobj; | |
25983 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25984 | wxColour result; | |
25985 | PyObject * obj0 = 0 ; | |
25986 | char *kwnames[] = { | |
25987 | (char *) "self", NULL | |
25988 | }; | |
25989 | ||
25990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
25991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25993 | { | |
25994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25995 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
25996 | ||
25997 | wxPyEndAllowThreads(__tstate); | |
25998 | if (PyErr_Occurred()) SWIG_fail; | |
25999 | } | |
26000 | { | |
26001 | wxColour * resultptr; | |
26002 | resultptr = new wxColour((wxColour &) result); | |
26003 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26004 | } | |
26005 | return resultobj; | |
26006 | fail: | |
26007 | return NULL; | |
26008 | } | |
26009 | ||
26010 | ||
26011 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26012 | PyObject *resultobj; | |
26013 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26014 | wxCursor *arg2 = 0 ; | |
26015 | bool result; | |
26016 | PyObject * obj0 = 0 ; | |
26017 | PyObject * obj1 = 0 ; | |
26018 | char *kwnames[] = { | |
26019 | (char *) "self",(char *) "cursor", NULL | |
26020 | }; | |
26021 | ||
26022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
26023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26025 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26026 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26027 | SWIG_fail; | |
26028 | if (arg2 == NULL) { | |
26029 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26030 | SWIG_fail; | |
26031 | } | |
26032 | { | |
26033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26034 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
26035 | ||
26036 | wxPyEndAllowThreads(__tstate); | |
26037 | if (PyErr_Occurred()) SWIG_fail; | |
26038 | } | |
26039 | { | |
26040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26041 | } | |
26042 | return resultobj; | |
26043 | fail: | |
26044 | return NULL; | |
26045 | } | |
26046 | ||
26047 | ||
26048 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26049 | PyObject *resultobj; | |
26050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26051 | wxCursor *result; | |
26052 | PyObject * obj0 = 0 ; | |
26053 | char *kwnames[] = { | |
26054 | (char *) "self", NULL | |
26055 | }; | |
26056 | ||
26057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
26058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26060 | { | |
26061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26062 | { | |
26063 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
26064 | result = (wxCursor *) &_result_ref; | |
26065 | } | |
26066 | ||
26067 | wxPyEndAllowThreads(__tstate); | |
26068 | if (PyErr_Occurred()) SWIG_fail; | |
26069 | } | |
26070 | { | |
26071 | wxCursor* resultptr = new wxCursor(*result); | |
26072 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
26073 | } | |
26074 | return resultobj; | |
26075 | fail: | |
26076 | return NULL; | |
26077 | } | |
26078 | ||
26079 | ||
26080 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26081 | PyObject *resultobj; | |
26082 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26083 | wxFont *arg2 = 0 ; | |
26084 | bool result; | |
26085 | PyObject * obj0 = 0 ; | |
26086 | PyObject * obj1 = 0 ; | |
26087 | char *kwnames[] = { | |
26088 | (char *) "self",(char *) "font", NULL | |
26089 | }; | |
26090 | ||
26091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
26092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26094 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26095 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26096 | SWIG_fail; | |
26097 | if (arg2 == NULL) { | |
26098 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26099 | SWIG_fail; | |
26100 | } | |
26101 | { | |
26102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26103 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
26104 | ||
26105 | wxPyEndAllowThreads(__tstate); | |
26106 | if (PyErr_Occurred()) SWIG_fail; | |
26107 | } | |
26108 | { | |
26109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26110 | } | |
26111 | return resultobj; | |
26112 | fail: | |
26113 | return NULL; | |
26114 | } | |
26115 | ||
26116 | ||
26117 | static PyObject *_wrap_Window_SetDefaultFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26118 | PyObject *resultobj; | |
26119 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26120 | wxFont *arg2 = 0 ; | |
26121 | PyObject * obj0 = 0 ; | |
26122 | PyObject * obj1 = 0 ; | |
26123 | char *kwnames[] = { | |
26124 | (char *) "self",(char *) "font", NULL | |
26125 | }; | |
26126 | ||
26127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultFont",kwnames,&obj0,&obj1)) goto fail; | |
26128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26130 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26131 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26132 | SWIG_fail; | |
26133 | if (arg2 == NULL) { | |
26134 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26135 | SWIG_fail; | |
26136 | } | |
26137 | { | |
26138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26139 | (arg1)->SetDefaultFont((wxFont const &)*arg2); | |
26140 | ||
26141 | wxPyEndAllowThreads(__tstate); | |
26142 | if (PyErr_Occurred()) SWIG_fail; | |
26143 | } | |
26144 | Py_INCREF(Py_None); resultobj = Py_None; | |
26145 | return resultobj; | |
26146 | fail: | |
26147 | return NULL; | |
26148 | } | |
26149 | ||
26150 | ||
26151 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26152 | PyObject *resultobj; | |
26153 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26154 | wxFont *result; | |
26155 | PyObject * obj0 = 0 ; | |
26156 | char *kwnames[] = { | |
26157 | (char *) "self", NULL | |
26158 | }; | |
26159 | ||
26160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
26161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26163 | { | |
26164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26165 | { | |
26166 | wxFont &_result_ref = (arg1)->GetFont(); | |
26167 | result = (wxFont *) &_result_ref; | |
26168 | } | |
26169 | ||
26170 | wxPyEndAllowThreads(__tstate); | |
26171 | if (PyErr_Occurred()) SWIG_fail; | |
26172 | } | |
26173 | { | |
26174 | wxFont* resultptr = new wxFont(*result); | |
26175 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
26176 | } | |
26177 | return resultobj; | |
26178 | fail: | |
26179 | return NULL; | |
26180 | } | |
26181 | ||
26182 | ||
26183 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26184 | PyObject *resultobj; | |
26185 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26186 | wxCaret *arg2 = (wxCaret *) 0 ; | |
26187 | PyObject * obj0 = 0 ; | |
26188 | PyObject * obj1 = 0 ; | |
26189 | char *kwnames[] = { | |
26190 | (char *) "self",(char *) "caret", NULL | |
26191 | }; | |
26192 | ||
26193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
26194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26196 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
26197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26198 | { | |
26199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26200 | (arg1)->SetCaret(arg2); | |
26201 | ||
26202 | wxPyEndAllowThreads(__tstate); | |
26203 | if (PyErr_Occurred()) SWIG_fail; | |
26204 | } | |
26205 | Py_INCREF(Py_None); resultobj = Py_None; | |
26206 | return resultobj; | |
26207 | fail: | |
26208 | return NULL; | |
26209 | } | |
26210 | ||
26211 | ||
26212 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26213 | PyObject *resultobj; | |
26214 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26215 | wxCaret *result; | |
26216 | PyObject * obj0 = 0 ; | |
26217 | char *kwnames[] = { | |
26218 | (char *) "self", NULL | |
26219 | }; | |
26220 | ||
26221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
26222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26224 | { | |
26225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26226 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
26227 | ||
26228 | wxPyEndAllowThreads(__tstate); | |
26229 | if (PyErr_Occurred()) SWIG_fail; | |
26230 | } | |
26231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); | |
26232 | return resultobj; | |
26233 | fail: | |
26234 | return NULL; | |
26235 | } | |
26236 | ||
26237 | ||
26238 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26239 | PyObject *resultobj; | |
26240 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26241 | int result; | |
26242 | PyObject * obj0 = 0 ; | |
26243 | char *kwnames[] = { | |
26244 | (char *) "self", NULL | |
26245 | }; | |
26246 | ||
26247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
26248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26250 | { | |
26251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26252 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
26253 | ||
26254 | wxPyEndAllowThreads(__tstate); | |
26255 | if (PyErr_Occurred()) SWIG_fail; | |
26256 | } | |
26257 | resultobj = SWIG_FromInt((int)result); | |
26258 | return resultobj; | |
26259 | fail: | |
26260 | return NULL; | |
26261 | } | |
26262 | ||
26263 | ||
26264 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26265 | PyObject *resultobj; | |
26266 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26267 | int result; | |
26268 | PyObject * obj0 = 0 ; | |
26269 | char *kwnames[] = { | |
26270 | (char *) "self", NULL | |
26271 | }; | |
26272 | ||
26273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
26274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26276 | { | |
26277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26278 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
26279 | ||
26280 | wxPyEndAllowThreads(__tstate); | |
26281 | if (PyErr_Occurred()) SWIG_fail; | |
26282 | } | |
26283 | resultobj = SWIG_FromInt((int)result); | |
26284 | return resultobj; | |
26285 | fail: | |
26286 | return NULL; | |
26287 | } | |
26288 | ||
26289 | ||
26290 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26291 | PyObject *resultobj; | |
26292 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26293 | wxString *arg2 = 0 ; | |
26294 | int *arg3 = (int *) 0 ; | |
26295 | int *arg4 = (int *) 0 ; | |
26296 | bool temp2 = False ; | |
26297 | int temp3 ; | |
26298 | int temp4 ; | |
26299 | PyObject * obj0 = 0 ; | |
26300 | PyObject * obj1 = 0 ; | |
26301 | char *kwnames[] = { | |
26302 | (char *) "self",(char *) "string", NULL | |
26303 | }; | |
26304 | ||
26305 | arg3 = &temp3; | |
26306 | arg4 = &temp4; | |
26307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
26308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26310 | { | |
26311 | arg2 = wxString_in_helper(obj1); | |
26312 | if (arg2 == NULL) SWIG_fail; | |
26313 | temp2 = True; | |
26314 | } | |
26315 | { | |
26316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26317 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
26318 | ||
26319 | wxPyEndAllowThreads(__tstate); | |
26320 | if (PyErr_Occurred()) SWIG_fail; | |
26321 | } | |
26322 | Py_INCREF(Py_None); resultobj = Py_None; | |
26323 | { | |
26324 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26325 | resultobj = t_output_helper(resultobj,o); | |
26326 | } | |
26327 | { | |
26328 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26329 | resultobj = t_output_helper(resultobj,o); | |
26330 | } | |
26331 | { | |
26332 | if (temp2) | |
26333 | delete arg2; | |
26334 | } | |
26335 | return resultobj; | |
26336 | fail: | |
26337 | { | |
26338 | if (temp2) | |
26339 | delete arg2; | |
26340 | } | |
26341 | return NULL; | |
26342 | } | |
26343 | ||
26344 | ||
26345 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26346 | PyObject *resultobj; | |
26347 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26348 | wxString *arg2 = 0 ; | |
26349 | int *arg3 = (int *) 0 ; | |
26350 | int *arg4 = (int *) 0 ; | |
26351 | int *arg5 = (int *) 0 ; | |
26352 | int *arg6 = (int *) 0 ; | |
26353 | wxFont *arg7 = (wxFont *) NULL ; | |
26354 | bool temp2 = False ; | |
26355 | int temp3 ; | |
26356 | int temp4 ; | |
26357 | int temp5 ; | |
26358 | int temp6 ; | |
26359 | PyObject * obj0 = 0 ; | |
26360 | PyObject * obj1 = 0 ; | |
26361 | PyObject * obj2 = 0 ; | |
26362 | char *kwnames[] = { | |
26363 | (char *) "self",(char *) "string",(char *) "font", NULL | |
26364 | }; | |
26365 | ||
26366 | arg3 = &temp3; | |
26367 | arg4 = &temp4; | |
26368 | arg5 = &temp5; | |
26369 | arg6 = &temp6; | |
26370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26373 | { | |
26374 | arg2 = wxString_in_helper(obj1); | |
26375 | if (arg2 == NULL) SWIG_fail; | |
26376 | temp2 = True; | |
26377 | } | |
26378 | if (obj2) { | |
26379 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
26380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26381 | } | |
26382 | { | |
26383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26384 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
26385 | ||
26386 | wxPyEndAllowThreads(__tstate); | |
26387 | if (PyErr_Occurred()) SWIG_fail; | |
26388 | } | |
26389 | Py_INCREF(Py_None); resultobj = Py_None; | |
26390 | { | |
26391 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26392 | resultobj = t_output_helper(resultobj,o); | |
26393 | } | |
26394 | { | |
26395 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26396 | resultobj = t_output_helper(resultobj,o); | |
26397 | } | |
26398 | { | |
26399 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
26400 | resultobj = t_output_helper(resultobj,o); | |
26401 | } | |
26402 | { | |
26403 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
26404 | resultobj = t_output_helper(resultobj,o); | |
26405 | } | |
26406 | { | |
26407 | if (temp2) | |
26408 | delete arg2; | |
26409 | } | |
26410 | return resultobj; | |
26411 | fail: | |
26412 | { | |
26413 | if (temp2) | |
26414 | delete arg2; | |
26415 | } | |
26416 | return NULL; | |
26417 | } | |
26418 | ||
26419 | ||
26420 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26421 | PyObject *resultobj; | |
26422 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26423 | int *arg2 = (int *) 0 ; | |
26424 | int *arg3 = (int *) 0 ; | |
26425 | int temp2 ; | |
26426 | int temp3 ; | |
26427 | PyObject * obj0 = 0 ; | |
26428 | PyObject * obj1 = 0 ; | |
26429 | PyObject * obj2 = 0 ; | |
26430 | char *kwnames[] = { | |
26431 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26432 | }; | |
26433 | ||
26434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26437 | { | |
26438 | temp2 = PyInt_AsLong(obj1); | |
26439 | if (PyErr_Occurred()) SWIG_fail; | |
26440 | arg2 = &temp2; | |
26441 | } | |
26442 | { | |
26443 | temp3 = PyInt_AsLong(obj2); | |
26444 | if (PyErr_Occurred()) SWIG_fail; | |
26445 | arg3 = &temp3; | |
26446 | } | |
26447 | { | |
26448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26449 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
26450 | ||
26451 | wxPyEndAllowThreads(__tstate); | |
26452 | if (PyErr_Occurred()) SWIG_fail; | |
26453 | } | |
26454 | Py_INCREF(Py_None); resultobj = Py_None; | |
26455 | { | |
26456 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26457 | resultobj = t_output_helper(resultobj,o); | |
26458 | } | |
26459 | { | |
26460 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26461 | resultobj = t_output_helper(resultobj,o); | |
26462 | } | |
26463 | return resultobj; | |
26464 | fail: | |
26465 | return NULL; | |
26466 | } | |
26467 | ||
26468 | ||
26469 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26470 | PyObject *resultobj; | |
26471 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26472 | int *arg2 = (int *) 0 ; | |
26473 | int *arg3 = (int *) 0 ; | |
26474 | int temp2 ; | |
26475 | int temp3 ; | |
26476 | PyObject * obj0 = 0 ; | |
26477 | PyObject * obj1 = 0 ; | |
26478 | PyObject * obj2 = 0 ; | |
26479 | char *kwnames[] = { | |
26480 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26481 | }; | |
26482 | ||
26483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26486 | { | |
26487 | temp2 = PyInt_AsLong(obj1); | |
26488 | if (PyErr_Occurred()) SWIG_fail; | |
26489 | arg2 = &temp2; | |
26490 | } | |
26491 | { | |
26492 | temp3 = PyInt_AsLong(obj2); | |
26493 | if (PyErr_Occurred()) SWIG_fail; | |
26494 | arg3 = &temp3; | |
26495 | } | |
26496 | { | |
26497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26498 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
26499 | ||
26500 | wxPyEndAllowThreads(__tstate); | |
26501 | if (PyErr_Occurred()) SWIG_fail; | |
26502 | } | |
26503 | Py_INCREF(Py_None); resultobj = Py_None; | |
26504 | { | |
26505 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26506 | resultobj = t_output_helper(resultobj,o); | |
26507 | } | |
26508 | { | |
26509 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26510 | resultobj = t_output_helper(resultobj,o); | |
26511 | } | |
26512 | return resultobj; | |
26513 | fail: | |
26514 | return NULL; | |
26515 | } | |
26516 | ||
26517 | ||
26518 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26519 | PyObject *resultobj; | |
26520 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26521 | wxPoint *arg2 = 0 ; | |
26522 | wxPoint result; | |
26523 | wxPoint temp2 ; | |
26524 | PyObject * obj0 = 0 ; | |
26525 | PyObject * obj1 = 0 ; | |
26526 | char *kwnames[] = { | |
26527 | (char *) "self",(char *) "pt", NULL | |
26528 | }; | |
26529 | ||
26530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
26531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26533 | { | |
26534 | arg2 = &temp2; | |
26535 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26536 | } | |
26537 | { | |
26538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26539 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
26540 | ||
26541 | wxPyEndAllowThreads(__tstate); | |
26542 | if (PyErr_Occurred()) SWIG_fail; | |
26543 | } | |
26544 | { | |
26545 | wxPoint * resultptr; | |
26546 | resultptr = new wxPoint((wxPoint &) result); | |
26547 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26548 | } | |
26549 | return resultobj; | |
26550 | fail: | |
26551 | return NULL; | |
26552 | } | |
26553 | ||
26554 | ||
26555 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26556 | PyObject *resultobj; | |
26557 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26558 | wxPoint *arg2 = 0 ; | |
26559 | wxPoint result; | |
26560 | wxPoint temp2 ; | |
26561 | PyObject * obj0 = 0 ; | |
26562 | PyObject * obj1 = 0 ; | |
26563 | char *kwnames[] = { | |
26564 | (char *) "self",(char *) "pt", NULL | |
26565 | }; | |
26566 | ||
26567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
26568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26570 | { | |
26571 | arg2 = &temp2; | |
26572 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26573 | } | |
26574 | { | |
26575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26576 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
26577 | ||
26578 | wxPyEndAllowThreads(__tstate); | |
26579 | if (PyErr_Occurred()) SWIG_fail; | |
26580 | } | |
26581 | { | |
26582 | wxPoint * resultptr; | |
26583 | resultptr = new wxPoint((wxPoint &) result); | |
26584 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26585 | } | |
26586 | return resultobj; | |
26587 | fail: | |
26588 | return NULL; | |
26589 | } | |
26590 | ||
26591 | ||
26592 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26593 | PyObject *resultobj; | |
26594 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26595 | int arg2 ; | |
26596 | int arg3 ; | |
26597 | int result; | |
26598 | PyObject * obj0 = 0 ; | |
26599 | PyObject * obj1 = 0 ; | |
26600 | PyObject * obj2 = 0 ; | |
26601 | char *kwnames[] = { | |
26602 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26603 | }; | |
26604 | ||
26605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26608 | arg2 = (int) SWIG_AsInt(obj1); | |
26609 | if (PyErr_Occurred()) SWIG_fail; | |
26610 | arg3 = (int) SWIG_AsInt(obj2); | |
26611 | if (PyErr_Occurred()) SWIG_fail; | |
26612 | { | |
26613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26614 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
26615 | ||
26616 | wxPyEndAllowThreads(__tstate); | |
26617 | if (PyErr_Occurred()) SWIG_fail; | |
26618 | } | |
26619 | resultobj = SWIG_FromInt((int)result); | |
26620 | return resultobj; | |
26621 | fail: | |
26622 | return NULL; | |
26623 | } | |
26624 | ||
26625 | ||
26626 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26627 | PyObject *resultobj; | |
26628 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26629 | wxPoint *arg2 = 0 ; | |
26630 | int result; | |
26631 | wxPoint temp2 ; | |
26632 | PyObject * obj0 = 0 ; | |
26633 | PyObject * obj1 = 0 ; | |
26634 | char *kwnames[] = { | |
26635 | (char *) "self",(char *) "pt", NULL | |
26636 | }; | |
26637 | ||
26638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
26639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26641 | { | |
26642 | arg2 = &temp2; | |
26643 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26644 | } | |
26645 | { | |
26646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26647 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
26648 | ||
26649 | wxPyEndAllowThreads(__tstate); | |
26650 | if (PyErr_Occurred()) SWIG_fail; | |
26651 | } | |
26652 | resultobj = SWIG_FromInt((int)result); | |
26653 | return resultobj; | |
26654 | fail: | |
26655 | return NULL; | |
26656 | } | |
26657 | ||
26658 | ||
26659 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) { | |
26660 | PyObject *resultobj; | |
26661 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26662 | long arg2 ; | |
26663 | int result; | |
26664 | PyObject * obj0 = 0 ; | |
26665 | PyObject * obj1 = 0 ; | |
26666 | ||
26667 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; | |
26668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26670 | arg2 = (long) SWIG_AsLong(obj1); | |
26671 | if (PyErr_Occurred()) SWIG_fail; | |
26672 | { | |
26673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26674 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
26675 | ||
26676 | wxPyEndAllowThreads(__tstate); | |
26677 | if (PyErr_Occurred()) SWIG_fail; | |
26678 | } | |
26679 | resultobj = SWIG_FromInt((int)result); | |
26680 | return resultobj; | |
26681 | fail: | |
26682 | return NULL; | |
26683 | } | |
26684 | ||
26685 | ||
26686 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) { | |
26687 | PyObject *resultobj; | |
26688 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26689 | int result; | |
26690 | PyObject * obj0 = 0 ; | |
26691 | ||
26692 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; | |
26693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26695 | { | |
26696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26697 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
26698 | ||
26699 | wxPyEndAllowThreads(__tstate); | |
26700 | if (PyErr_Occurred()) SWIG_fail; | |
26701 | } | |
26702 | resultobj = SWIG_FromInt((int)result); | |
26703 | return resultobj; | |
26704 | fail: | |
26705 | return NULL; | |
26706 | } | |
26707 | ||
26708 | ||
26709 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { | |
26710 | int argc; | |
26711 | PyObject *argv[3]; | |
26712 | int ii; | |
26713 | ||
26714 | argc = PyObject_Length(args); | |
26715 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
26716 | argv[ii] = PyTuple_GetItem(args,ii); | |
26717 | } | |
26718 | if (argc == 1) { | |
26719 | int _v; | |
26720 | { | |
26721 | void *ptr; | |
26722 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
26723 | _v = 0; | |
26724 | PyErr_Clear(); | |
26725 | } else { | |
26726 | _v = 1; | |
26727 | } | |
26728 | } | |
26729 | if (_v) { | |
26730 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
26731 | } | |
26732 | } | |
26733 | if (argc == 2) { | |
26734 | int _v; | |
26735 | { | |
26736 | void *ptr; | |
26737 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
26738 | _v = 0; | |
26739 | PyErr_Clear(); | |
26740 | } else { | |
26741 | _v = 1; | |
26742 | } | |
26743 | } | |
26744 | if (_v) { | |
26745 | _v = SWIG_CheckLong(argv[1]); | |
26746 | if (_v) { | |
26747 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
26748 | } | |
26749 | } | |
26750 | } | |
26751 | ||
26752 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
26753 | return NULL; | |
26754 | } | |
26755 | ||
26756 | ||
26757 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26758 | PyObject *resultobj; | |
26759 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26760 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
26761 | PyObject * obj0 = 0 ; | |
26762 | PyObject * obj1 = 0 ; | |
26763 | char *kwnames[] = { | |
26764 | (char *) "self",(char *) "flags", NULL | |
26765 | }; | |
26766 | ||
26767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; | |
26768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26770 | if (obj1) { | |
26771 | arg2 = (long) SWIG_AsLong(obj1); | |
26772 | if (PyErr_Occurred()) SWIG_fail; | |
26773 | } | |
26774 | { | |
26775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26776 | (arg1)->UpdateWindowUI(arg2); | |
26777 | ||
26778 | wxPyEndAllowThreads(__tstate); | |
26779 | if (PyErr_Occurred()) SWIG_fail; | |
26780 | } | |
26781 | Py_INCREF(Py_None); resultobj = Py_None; | |
26782 | return resultobj; | |
26783 | fail: | |
26784 | return NULL; | |
26785 | } | |
26786 | ||
26787 | ||
26788 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26789 | PyObject *resultobj; | |
26790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26791 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26792 | int arg3 ; | |
26793 | int arg4 ; | |
26794 | bool result; | |
26795 | PyObject * obj0 = 0 ; | |
26796 | PyObject * obj1 = 0 ; | |
26797 | PyObject * obj2 = 0 ; | |
26798 | PyObject * obj3 = 0 ; | |
26799 | char *kwnames[] = { | |
26800 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
26801 | }; | |
26802 | ||
26803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26806 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26808 | arg3 = (int) SWIG_AsInt(obj2); | |
26809 | if (PyErr_Occurred()) SWIG_fail; | |
26810 | arg4 = (int) SWIG_AsInt(obj3); | |
26811 | if (PyErr_Occurred()) SWIG_fail; | |
26812 | { | |
26813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26814 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
26815 | ||
26816 | wxPyEndAllowThreads(__tstate); | |
26817 | if (PyErr_Occurred()) SWIG_fail; | |
26818 | } | |
26819 | { | |
26820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26821 | } | |
26822 | return resultobj; | |
26823 | fail: | |
26824 | return NULL; | |
26825 | } | |
26826 | ||
26827 | ||
26828 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26829 | PyObject *resultobj; | |
26830 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26831 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26832 | wxPoint *arg3 = 0 ; | |
26833 | bool result; | |
26834 | wxPoint temp3 ; | |
26835 | PyObject * obj0 = 0 ; | |
26836 | PyObject * obj1 = 0 ; | |
26837 | PyObject * obj2 = 0 ; | |
26838 | char *kwnames[] = { | |
26839 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
26840 | }; | |
26841 | ||
26842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26845 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26847 | { | |
26848 | arg3 = &temp3; | |
26849 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26850 | } | |
26851 | { | |
26852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26853 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
26854 | ||
26855 | wxPyEndAllowThreads(__tstate); | |
26856 | if (PyErr_Occurred()) SWIG_fail; | |
26857 | } | |
26858 | { | |
26859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26860 | } | |
26861 | return resultobj; | |
26862 | fail: | |
26863 | return NULL; | |
26864 | } | |
26865 | ||
26866 | ||
26867 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26868 | PyObject *resultobj; | |
26869 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26870 | long result; | |
26871 | PyObject * obj0 = 0 ; | |
26872 | char *kwnames[] = { | |
26873 | (char *) "self", NULL | |
26874 | }; | |
26875 | ||
26876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
26877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26879 | { | |
26880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26881 | result = (long)wxWindow_GetHandle(arg1); | |
26882 | ||
26883 | wxPyEndAllowThreads(__tstate); | |
26884 | if (PyErr_Occurred()) SWIG_fail; | |
26885 | } | |
26886 | resultobj = SWIG_FromLong((long)result); | |
26887 | return resultobj; | |
26888 | fail: | |
26889 | return NULL; | |
26890 | } | |
26891 | ||
26892 | ||
26893 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26894 | PyObject *resultobj; | |
26895 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26896 | int arg2 ; | |
26897 | bool result; | |
26898 | PyObject * obj0 = 0 ; | |
26899 | PyObject * obj1 = 0 ; | |
26900 | char *kwnames[] = { | |
26901 | (char *) "self",(char *) "orient", NULL | |
26902 | }; | |
26903 | ||
26904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; | |
26905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26907 | arg2 = (int) SWIG_AsInt(obj1); | |
26908 | if (PyErr_Occurred()) SWIG_fail; | |
26909 | { | |
26910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26911 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
26912 | ||
26913 | wxPyEndAllowThreads(__tstate); | |
26914 | if (PyErr_Occurred()) SWIG_fail; | |
26915 | } | |
26916 | { | |
26917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26918 | } | |
26919 | return resultobj; | |
26920 | fail: | |
26921 | return NULL; | |
26922 | } | |
26923 | ||
26924 | ||
26925 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26926 | PyObject *resultobj; | |
26927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26928 | int arg2 ; | |
26929 | int arg3 ; | |
26930 | int arg4 ; | |
26931 | int arg5 ; | |
26932 | bool arg6 = (bool) True ; | |
26933 | PyObject * obj0 = 0 ; | |
26934 | PyObject * obj1 = 0 ; | |
26935 | PyObject * obj2 = 0 ; | |
26936 | PyObject * obj3 = 0 ; | |
26937 | PyObject * obj4 = 0 ; | |
26938 | PyObject * obj5 = 0 ; | |
26939 | char *kwnames[] = { | |
15817c7e | 26940 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d55e5bfc RD |
26941 | }; |
26942 | ||
26943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
26944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26946 | arg2 = (int) SWIG_AsInt(obj1); | |
26947 | if (PyErr_Occurred()) SWIG_fail; | |
26948 | arg3 = (int) SWIG_AsInt(obj2); | |
26949 | if (PyErr_Occurred()) SWIG_fail; | |
26950 | arg4 = (int) SWIG_AsInt(obj3); | |
26951 | if (PyErr_Occurred()) SWIG_fail; | |
26952 | arg5 = (int) SWIG_AsInt(obj4); | |
26953 | if (PyErr_Occurred()) SWIG_fail; | |
26954 | if (obj5) { | |
26955 | arg6 = (bool) SWIG_AsBool(obj5); | |
26956 | if (PyErr_Occurred()) SWIG_fail; | |
26957 | } | |
26958 | { | |
26959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26960 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
26961 | ||
26962 | wxPyEndAllowThreads(__tstate); | |
26963 | if (PyErr_Occurred()) SWIG_fail; | |
26964 | } | |
26965 | Py_INCREF(Py_None); resultobj = Py_None; | |
26966 | return resultobj; | |
26967 | fail: | |
26968 | return NULL; | |
26969 | } | |
26970 | ||
26971 | ||
26972 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26973 | PyObject *resultobj; | |
26974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26975 | int arg2 ; | |
26976 | int arg3 ; | |
26977 | bool arg4 = (bool) True ; | |
26978 | PyObject * obj0 = 0 ; | |
26979 | PyObject * obj1 = 0 ; | |
26980 | PyObject * obj2 = 0 ; | |
26981 | PyObject * obj3 = 0 ; | |
26982 | char *kwnames[] = { | |
26983 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL | |
26984 | }; | |
26985 | ||
26986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26989 | arg2 = (int) SWIG_AsInt(obj1); | |
26990 | if (PyErr_Occurred()) SWIG_fail; | |
26991 | arg3 = (int) SWIG_AsInt(obj2); | |
26992 | if (PyErr_Occurred()) SWIG_fail; | |
26993 | if (obj3) { | |
26994 | arg4 = (bool) SWIG_AsBool(obj3); | |
26995 | if (PyErr_Occurred()) SWIG_fail; | |
26996 | } | |
26997 | { | |
26998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26999 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
27000 | ||
27001 | wxPyEndAllowThreads(__tstate); | |
27002 | if (PyErr_Occurred()) SWIG_fail; | |
27003 | } | |
27004 | Py_INCREF(Py_None); resultobj = Py_None; | |
27005 | return resultobj; | |
27006 | fail: | |
27007 | return NULL; | |
27008 | } | |
27009 | ||
27010 | ||
27011 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27012 | PyObject *resultobj; | |
27013 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27014 | int arg2 ; | |
27015 | int result; | |
27016 | PyObject * obj0 = 0 ; | |
27017 | PyObject * obj1 = 0 ; | |
27018 | char *kwnames[] = { | |
27019 | (char *) "self",(char *) "orientation", NULL | |
27020 | }; | |
27021 | ||
27022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; | |
27023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27025 | arg2 = (int) SWIG_AsInt(obj1); | |
27026 | if (PyErr_Occurred()) SWIG_fail; | |
27027 | { | |
27028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27029 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
27030 | ||
27031 | wxPyEndAllowThreads(__tstate); | |
27032 | if (PyErr_Occurred()) SWIG_fail; | |
27033 | } | |
27034 | resultobj = SWIG_FromInt((int)result); | |
27035 | return resultobj; | |
27036 | fail: | |
27037 | return NULL; | |
27038 | } | |
27039 | ||
27040 | ||
27041 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27042 | PyObject *resultobj; | |
27043 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27044 | int arg2 ; | |
27045 | int result; | |
27046 | PyObject * obj0 = 0 ; | |
27047 | PyObject * obj1 = 0 ; | |
27048 | char *kwnames[] = { | |
27049 | (char *) "self",(char *) "orientation", NULL | |
27050 | }; | |
27051 | ||
27052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; | |
27053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27055 | arg2 = (int) SWIG_AsInt(obj1); | |
27056 | if (PyErr_Occurred()) SWIG_fail; | |
27057 | { | |
27058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27059 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
27060 | ||
27061 | wxPyEndAllowThreads(__tstate); | |
27062 | if (PyErr_Occurred()) SWIG_fail; | |
27063 | } | |
27064 | resultobj = SWIG_FromInt((int)result); | |
27065 | return resultobj; | |
27066 | fail: | |
27067 | return NULL; | |
27068 | } | |
27069 | ||
27070 | ||
27071 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27072 | PyObject *resultobj; | |
27073 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27074 | int arg2 ; | |
27075 | int result; | |
27076 | PyObject * obj0 = 0 ; | |
27077 | PyObject * obj1 = 0 ; | |
27078 | char *kwnames[] = { | |
27079 | (char *) "self",(char *) "orientation", NULL | |
27080 | }; | |
27081 | ||
27082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; | |
27083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27085 | arg2 = (int) SWIG_AsInt(obj1); | |
27086 | if (PyErr_Occurred()) SWIG_fail; | |
27087 | { | |
27088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27089 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
27090 | ||
27091 | wxPyEndAllowThreads(__tstate); | |
27092 | if (PyErr_Occurred()) SWIG_fail; | |
27093 | } | |
27094 | resultobj = SWIG_FromInt((int)result); | |
27095 | return resultobj; | |
27096 | fail: | |
27097 | return NULL; | |
27098 | } | |
27099 | ||
27100 | ||
27101 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27102 | PyObject *resultobj; | |
27103 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27104 | int arg2 ; | |
27105 | int arg3 ; | |
27106 | wxRect *arg4 = (wxRect *) NULL ; | |
27107 | PyObject * obj0 = 0 ; | |
27108 | PyObject * obj1 = 0 ; | |
27109 | PyObject * obj2 = 0 ; | |
27110 | PyObject * obj3 = 0 ; | |
27111 | char *kwnames[] = { | |
27112 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
27113 | }; | |
27114 | ||
27115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27118 | arg2 = (int) SWIG_AsInt(obj1); | |
27119 | if (PyErr_Occurred()) SWIG_fail; | |
27120 | arg3 = (int) SWIG_AsInt(obj2); | |
27121 | if (PyErr_Occurred()) SWIG_fail; | |
27122 | if (obj3) { | |
27123 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
27124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27125 | } | |
27126 | { | |
27127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27128 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
27129 | ||
27130 | wxPyEndAllowThreads(__tstate); | |
27131 | if (PyErr_Occurred()) SWIG_fail; | |
27132 | } | |
27133 | Py_INCREF(Py_None); resultobj = Py_None; | |
27134 | return resultobj; | |
27135 | fail: | |
27136 | return NULL; | |
27137 | } | |
27138 | ||
27139 | ||
27140 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27141 | PyObject *resultobj; | |
27142 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27143 | int arg2 ; | |
27144 | bool result; | |
27145 | PyObject * obj0 = 0 ; | |
27146 | PyObject * obj1 = 0 ; | |
27147 | char *kwnames[] = { | |
27148 | (char *) "self",(char *) "lines", NULL | |
27149 | }; | |
27150 | ||
27151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
27152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27154 | arg2 = (int) SWIG_AsInt(obj1); | |
27155 | if (PyErr_Occurred()) SWIG_fail; | |
27156 | { | |
27157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27158 | result = (bool)(arg1)->ScrollLines(arg2); | |
27159 | ||
27160 | wxPyEndAllowThreads(__tstate); | |
27161 | if (PyErr_Occurred()) SWIG_fail; | |
27162 | } | |
27163 | { | |
27164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27165 | } | |
27166 | return resultobj; | |
27167 | fail: | |
27168 | return NULL; | |
27169 | } | |
27170 | ||
27171 | ||
27172 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27173 | PyObject *resultobj; | |
27174 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27175 | int arg2 ; | |
27176 | bool result; | |
27177 | PyObject * obj0 = 0 ; | |
27178 | PyObject * obj1 = 0 ; | |
27179 | char *kwnames[] = { | |
27180 | (char *) "self",(char *) "pages", NULL | |
27181 | }; | |
27182 | ||
27183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
27184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27186 | arg2 = (int) SWIG_AsInt(obj1); | |
27187 | if (PyErr_Occurred()) SWIG_fail; | |
27188 | { | |
27189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27190 | result = (bool)(arg1)->ScrollPages(arg2); | |
27191 | ||
27192 | wxPyEndAllowThreads(__tstate); | |
27193 | if (PyErr_Occurred()) SWIG_fail; | |
27194 | } | |
27195 | { | |
27196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27197 | } | |
27198 | return resultobj; | |
27199 | fail: | |
27200 | return NULL; | |
27201 | } | |
27202 | ||
27203 | ||
27204 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27205 | PyObject *resultobj; | |
27206 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27207 | bool result; | |
27208 | PyObject * obj0 = 0 ; | |
27209 | char *kwnames[] = { | |
27210 | (char *) "self", NULL | |
27211 | }; | |
27212 | ||
27213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
27214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27216 | { | |
27217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27218 | result = (bool)(arg1)->LineUp(); | |
27219 | ||
27220 | wxPyEndAllowThreads(__tstate); | |
27221 | if (PyErr_Occurred()) SWIG_fail; | |
27222 | } | |
27223 | { | |
27224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27225 | } | |
27226 | return resultobj; | |
27227 | fail: | |
27228 | return NULL; | |
27229 | } | |
27230 | ||
27231 | ||
27232 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27233 | PyObject *resultobj; | |
27234 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27235 | bool result; | |
27236 | PyObject * obj0 = 0 ; | |
27237 | char *kwnames[] = { | |
27238 | (char *) "self", NULL | |
27239 | }; | |
27240 | ||
27241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
27242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27244 | { | |
27245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27246 | result = (bool)(arg1)->LineDown(); | |
27247 | ||
27248 | wxPyEndAllowThreads(__tstate); | |
27249 | if (PyErr_Occurred()) SWIG_fail; | |
27250 | } | |
27251 | { | |
27252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27253 | } | |
27254 | return resultobj; | |
27255 | fail: | |
27256 | return NULL; | |
27257 | } | |
27258 | ||
27259 | ||
27260 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27261 | PyObject *resultobj; | |
27262 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27263 | bool result; | |
27264 | PyObject * obj0 = 0 ; | |
27265 | char *kwnames[] = { | |
27266 | (char *) "self", NULL | |
27267 | }; | |
27268 | ||
27269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
27270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27272 | { | |
27273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27274 | result = (bool)(arg1)->PageUp(); | |
27275 | ||
27276 | wxPyEndAllowThreads(__tstate); | |
27277 | if (PyErr_Occurred()) SWIG_fail; | |
27278 | } | |
27279 | { | |
27280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27281 | } | |
27282 | return resultobj; | |
27283 | fail: | |
27284 | return NULL; | |
27285 | } | |
27286 | ||
27287 | ||
27288 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27289 | PyObject *resultobj; | |
27290 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27291 | bool result; | |
27292 | PyObject * obj0 = 0 ; | |
27293 | char *kwnames[] = { | |
27294 | (char *) "self", NULL | |
27295 | }; | |
27296 | ||
27297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
27298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27300 | { | |
27301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27302 | result = (bool)(arg1)->PageDown(); | |
27303 | ||
27304 | wxPyEndAllowThreads(__tstate); | |
27305 | if (PyErr_Occurred()) SWIG_fail; | |
27306 | } | |
27307 | { | |
27308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27309 | } | |
27310 | return resultobj; | |
27311 | fail: | |
27312 | return NULL; | |
27313 | } | |
27314 | ||
27315 | ||
27316 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27317 | PyObject *resultobj; | |
27318 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27319 | wxString *arg2 = 0 ; | |
27320 | bool temp2 = False ; | |
27321 | PyObject * obj0 = 0 ; | |
27322 | PyObject * obj1 = 0 ; | |
27323 | char *kwnames[] = { | |
27324 | (char *) "self",(char *) "text", NULL | |
27325 | }; | |
27326 | ||
27327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
27328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27330 | { | |
27331 | arg2 = wxString_in_helper(obj1); | |
27332 | if (arg2 == NULL) SWIG_fail; | |
27333 | temp2 = True; | |
27334 | } | |
27335 | { | |
27336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27337 | (arg1)->SetHelpText((wxString const &)*arg2); | |
27338 | ||
27339 | wxPyEndAllowThreads(__tstate); | |
27340 | if (PyErr_Occurred()) SWIG_fail; | |
27341 | } | |
27342 | Py_INCREF(Py_None); resultobj = Py_None; | |
27343 | { | |
27344 | if (temp2) | |
27345 | delete arg2; | |
27346 | } | |
27347 | return resultobj; | |
27348 | fail: | |
27349 | { | |
27350 | if (temp2) | |
27351 | delete arg2; | |
27352 | } | |
27353 | return NULL; | |
27354 | } | |
27355 | ||
27356 | ||
27357 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27358 | PyObject *resultobj; | |
27359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27360 | wxString *arg2 = 0 ; | |
27361 | bool temp2 = False ; | |
27362 | PyObject * obj0 = 0 ; | |
27363 | PyObject * obj1 = 0 ; | |
27364 | char *kwnames[] = { | |
27365 | (char *) "self",(char *) "text", NULL | |
27366 | }; | |
27367 | ||
27368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
27369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27371 | { | |
27372 | arg2 = wxString_in_helper(obj1); | |
27373 | if (arg2 == NULL) SWIG_fail; | |
27374 | temp2 = True; | |
27375 | } | |
27376 | { | |
27377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27378 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
27379 | ||
27380 | wxPyEndAllowThreads(__tstate); | |
27381 | if (PyErr_Occurred()) SWIG_fail; | |
27382 | } | |
27383 | Py_INCREF(Py_None); resultobj = Py_None; | |
27384 | { | |
27385 | if (temp2) | |
27386 | delete arg2; | |
27387 | } | |
27388 | return resultobj; | |
27389 | fail: | |
27390 | { | |
27391 | if (temp2) | |
27392 | delete arg2; | |
27393 | } | |
27394 | return NULL; | |
27395 | } | |
27396 | ||
27397 | ||
27398 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27399 | PyObject *resultobj; | |
27400 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27401 | wxString result; | |
27402 | PyObject * obj0 = 0 ; | |
27403 | char *kwnames[] = { | |
27404 | (char *) "self", NULL | |
27405 | }; | |
27406 | ||
27407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
27408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27410 | { | |
27411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27412 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
27413 | ||
27414 | wxPyEndAllowThreads(__tstate); | |
27415 | if (PyErr_Occurred()) SWIG_fail; | |
27416 | } | |
27417 | { | |
27418 | #if wxUSE_UNICODE | |
27419 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27420 | #else | |
27421 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27422 | #endif | |
27423 | } | |
27424 | return resultobj; | |
27425 | fail: | |
27426 | return NULL; | |
27427 | } | |
27428 | ||
27429 | ||
27430 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27431 | PyObject *resultobj; | |
27432 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27433 | wxString *arg2 = 0 ; | |
27434 | bool temp2 = False ; | |
27435 | PyObject * obj0 = 0 ; | |
27436 | PyObject * obj1 = 0 ; | |
27437 | char *kwnames[] = { | |
27438 | (char *) "self",(char *) "tip", NULL | |
27439 | }; | |
27440 | ||
27441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
27442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27444 | { | |
27445 | arg2 = wxString_in_helper(obj1); | |
27446 | if (arg2 == NULL) SWIG_fail; | |
27447 | temp2 = True; | |
27448 | } | |
27449 | { | |
27450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27451 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27452 | ||
27453 | wxPyEndAllowThreads(__tstate); | |
27454 | if (PyErr_Occurred()) SWIG_fail; | |
27455 | } | |
27456 | Py_INCREF(Py_None); resultobj = Py_None; | |
27457 | { | |
27458 | if (temp2) | |
27459 | delete arg2; | |
27460 | } | |
27461 | return resultobj; | |
27462 | fail: | |
27463 | { | |
27464 | if (temp2) | |
27465 | delete arg2; | |
27466 | } | |
27467 | return NULL; | |
27468 | } | |
27469 | ||
27470 | ||
27471 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27472 | PyObject *resultobj; | |
27473 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27474 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
27475 | PyObject * obj0 = 0 ; | |
27476 | PyObject * obj1 = 0 ; | |
27477 | char *kwnames[] = { | |
27478 | (char *) "self",(char *) "tip", NULL | |
27479 | }; | |
27480 | ||
27481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
27482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27484 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
27485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27486 | { | |
27487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27488 | (arg1)->SetToolTip(arg2); | |
27489 | ||
27490 | wxPyEndAllowThreads(__tstate); | |
27491 | if (PyErr_Occurred()) SWIG_fail; | |
27492 | } | |
27493 | Py_INCREF(Py_None); resultobj = Py_None; | |
27494 | return resultobj; | |
27495 | fail: | |
27496 | return NULL; | |
27497 | } | |
27498 | ||
27499 | ||
27500 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27501 | PyObject *resultobj; | |
27502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27503 | wxToolTip *result; | |
27504 | PyObject * obj0 = 0 ; | |
27505 | char *kwnames[] = { | |
27506 | (char *) "self", NULL | |
27507 | }; | |
27508 | ||
27509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
27510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27512 | { | |
27513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27514 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
27515 | ||
27516 | wxPyEndAllowThreads(__tstate); | |
27517 | if (PyErr_Occurred()) SWIG_fail; | |
27518 | } | |
27519 | { | |
27520 | resultobj = wxPyMake_wxObject(result); | |
27521 | } | |
27522 | return resultobj; | |
27523 | fail: | |
27524 | return NULL; | |
27525 | } | |
27526 | ||
27527 | ||
27528 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27529 | PyObject *resultobj; | |
27530 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27531 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; | |
27532 | PyObject * obj0 = 0 ; | |
27533 | PyObject * obj1 = 0 ; | |
27534 | char *kwnames[] = { | |
27535 | (char *) "self",(char *) "dropTarget", NULL | |
27536 | }; | |
27537 | ||
27538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
27539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27541 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
27542 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27543 | { | |
27544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27545 | (arg1)->SetDropTarget(arg2); | |
27546 | ||
27547 | wxPyEndAllowThreads(__tstate); | |
27548 | if (PyErr_Occurred()) SWIG_fail; | |
27549 | } | |
27550 | Py_INCREF(Py_None); resultobj = Py_None; | |
27551 | return resultobj; | |
27552 | fail: | |
27553 | return NULL; | |
27554 | } | |
27555 | ||
27556 | ||
27557 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27558 | PyObject *resultobj; | |
27559 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27560 | wxPyDropTarget *result; | |
27561 | PyObject * obj0 = 0 ; | |
27562 | char *kwnames[] = { | |
27563 | (char *) "self", NULL | |
27564 | }; | |
27565 | ||
27566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
27567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27569 | { | |
27570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27571 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
27572 | ||
27573 | wxPyEndAllowThreads(__tstate); | |
27574 | if (PyErr_Occurred()) SWIG_fail; | |
27575 | } | |
27576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); | |
27577 | return resultobj; | |
27578 | fail: | |
27579 | return NULL; | |
27580 | } | |
27581 | ||
27582 | ||
27583 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27584 | PyObject *resultobj; | |
27585 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27586 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
27587 | PyObject * obj0 = 0 ; | |
27588 | PyObject * obj1 = 0 ; | |
27589 | char *kwnames[] = { | |
27590 | (char *) "self",(char *) "constraints", NULL | |
27591 | }; | |
27592 | ||
27593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
27594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27596 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
27597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27598 | { | |
27599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27600 | (arg1)->SetConstraints(arg2); | |
27601 | ||
27602 | wxPyEndAllowThreads(__tstate); | |
27603 | if (PyErr_Occurred()) SWIG_fail; | |
27604 | } | |
27605 | Py_INCREF(Py_None); resultobj = Py_None; | |
27606 | return resultobj; | |
27607 | fail: | |
27608 | return NULL; | |
27609 | } | |
27610 | ||
27611 | ||
27612 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27613 | PyObject *resultobj; | |
27614 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27615 | wxLayoutConstraints *result; | |
27616 | PyObject * obj0 = 0 ; | |
27617 | char *kwnames[] = { | |
27618 | (char *) "self", NULL | |
27619 | }; | |
27620 | ||
27621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
27622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27624 | { | |
27625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27626 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
27627 | ||
27628 | wxPyEndAllowThreads(__tstate); | |
27629 | if (PyErr_Occurred()) SWIG_fail; | |
27630 | } | |
27631 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); | |
27632 | return resultobj; | |
27633 | fail: | |
27634 | return NULL; | |
27635 | } | |
27636 | ||
27637 | ||
27638 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27639 | PyObject *resultobj; | |
27640 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27641 | bool arg2 ; | |
27642 | PyObject * obj0 = 0 ; | |
27643 | PyObject * obj1 = 0 ; | |
27644 | char *kwnames[] = { | |
27645 | (char *) "self",(char *) "autoLayout", NULL | |
27646 | }; | |
27647 | ||
27648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
27649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27651 | arg2 = (bool) SWIG_AsBool(obj1); | |
27652 | if (PyErr_Occurred()) SWIG_fail; | |
27653 | { | |
27654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27655 | (arg1)->SetAutoLayout(arg2); | |
27656 | ||
27657 | wxPyEndAllowThreads(__tstate); | |
27658 | if (PyErr_Occurred()) SWIG_fail; | |
27659 | } | |
27660 | Py_INCREF(Py_None); resultobj = Py_None; | |
27661 | return resultobj; | |
27662 | fail: | |
27663 | return NULL; | |
27664 | } | |
27665 | ||
27666 | ||
27667 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27668 | PyObject *resultobj; | |
27669 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27670 | bool result; | |
27671 | PyObject * obj0 = 0 ; | |
27672 | char *kwnames[] = { | |
27673 | (char *) "self", NULL | |
27674 | }; | |
27675 | ||
27676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
27677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27679 | { | |
27680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27681 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
27682 | ||
27683 | wxPyEndAllowThreads(__tstate); | |
27684 | if (PyErr_Occurred()) SWIG_fail; | |
27685 | } | |
27686 | { | |
27687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27688 | } | |
27689 | return resultobj; | |
27690 | fail: | |
27691 | return NULL; | |
27692 | } | |
27693 | ||
27694 | ||
27695 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27696 | PyObject *resultobj; | |
27697 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27698 | bool result; | |
27699 | PyObject * obj0 = 0 ; | |
27700 | char *kwnames[] = { | |
27701 | (char *) "self", NULL | |
27702 | }; | |
27703 | ||
27704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
27705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27707 | { | |
27708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27709 | result = (bool)(arg1)->Layout(); | |
27710 | ||
27711 | wxPyEndAllowThreads(__tstate); | |
27712 | if (PyErr_Occurred()) SWIG_fail; | |
27713 | } | |
27714 | { | |
27715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27716 | } | |
27717 | return resultobj; | |
27718 | fail: | |
27719 | return NULL; | |
27720 | } | |
27721 | ||
27722 | ||
27723 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27724 | PyObject *resultobj; | |
27725 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27726 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27727 | bool arg3 = (bool) True ; | |
27728 | PyObject * obj0 = 0 ; | |
27729 | PyObject * obj1 = 0 ; | |
27730 | PyObject * obj2 = 0 ; | |
27731 | char *kwnames[] = { | |
27732 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27733 | }; | |
27734 | ||
27735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27738 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27740 | if (obj2) { | |
27741 | arg3 = (bool) SWIG_AsBool(obj2); | |
27742 | if (PyErr_Occurred()) SWIG_fail; | |
27743 | } | |
27744 | { | |
27745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27746 | (arg1)->SetSizer(arg2,arg3); | |
27747 | ||
27748 | wxPyEndAllowThreads(__tstate); | |
27749 | if (PyErr_Occurred()) SWIG_fail; | |
27750 | } | |
27751 | Py_INCREF(Py_None); resultobj = Py_None; | |
27752 | return resultobj; | |
27753 | fail: | |
27754 | return NULL; | |
27755 | } | |
27756 | ||
27757 | ||
27758 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27759 | PyObject *resultobj; | |
27760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27761 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27762 | bool arg3 = (bool) True ; | |
27763 | PyObject * obj0 = 0 ; | |
27764 | PyObject * obj1 = 0 ; | |
27765 | PyObject * obj2 = 0 ; | |
27766 | char *kwnames[] = { | |
27767 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27768 | }; | |
27769 | ||
27770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27773 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27775 | if (obj2) { | |
27776 | arg3 = (bool) SWIG_AsBool(obj2); | |
27777 | if (PyErr_Occurred()) SWIG_fail; | |
27778 | } | |
27779 | { | |
27780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27781 | (arg1)->SetSizerAndFit(arg2,arg3); | |
27782 | ||
27783 | wxPyEndAllowThreads(__tstate); | |
27784 | if (PyErr_Occurred()) SWIG_fail; | |
27785 | } | |
27786 | Py_INCREF(Py_None); resultobj = Py_None; | |
27787 | return resultobj; | |
27788 | fail: | |
27789 | return NULL; | |
27790 | } | |
27791 | ||
27792 | ||
27793 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27794 | PyObject *resultobj; | |
27795 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27796 | wxSizer *result; | |
27797 | PyObject * obj0 = 0 ; | |
27798 | char *kwnames[] = { | |
27799 | (char *) "self", NULL | |
27800 | }; | |
27801 | ||
27802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
27803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27805 | { | |
27806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27807 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
27808 | ||
27809 | wxPyEndAllowThreads(__tstate); | |
27810 | if (PyErr_Occurred()) SWIG_fail; | |
27811 | } | |
27812 | { | |
27813 | resultobj = wxPyMake_wxSizer(result); | |
27814 | } | |
27815 | return resultobj; | |
27816 | fail: | |
27817 | return NULL; | |
27818 | } | |
27819 | ||
27820 | ||
27821 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27822 | PyObject *resultobj; | |
27823 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27824 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27825 | PyObject * obj0 = 0 ; | |
27826 | PyObject * obj1 = 0 ; | |
27827 | char *kwnames[] = { | |
27828 | (char *) "self",(char *) "sizer", NULL | |
27829 | }; | |
27830 | ||
27831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
27832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27834 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27836 | { | |
27837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27838 | (arg1)->SetContainingSizer(arg2); | |
27839 | ||
27840 | wxPyEndAllowThreads(__tstate); | |
27841 | if (PyErr_Occurred()) SWIG_fail; | |
27842 | } | |
27843 | Py_INCREF(Py_None); resultobj = Py_None; | |
27844 | return resultobj; | |
27845 | fail: | |
27846 | return NULL; | |
27847 | } | |
27848 | ||
27849 | ||
27850 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27851 | PyObject *resultobj; | |
27852 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27853 | wxSizer *result; | |
27854 | PyObject * obj0 = 0 ; | |
27855 | char *kwnames[] = { | |
27856 | (char *) "self", NULL | |
27857 | }; | |
27858 | ||
27859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
27860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27862 | { | |
27863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27864 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
27865 | ||
27866 | wxPyEndAllowThreads(__tstate); | |
27867 | if (PyErr_Occurred()) SWIG_fail; | |
27868 | } | |
27869 | { | |
27870 | resultobj = wxPyMake_wxSizer(result); | |
27871 | } | |
27872 | return resultobj; | |
27873 | fail: | |
27874 | return NULL; | |
27875 | } | |
27876 | ||
27877 | ||
27878 | static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27879 | PyObject *resultobj; | |
27880 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27881 | PyObject * obj0 = 0 ; | |
27882 | char *kwnames[] = { | |
27883 | (char *) "self", NULL | |
27884 | }; | |
27885 | ||
27886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
27887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27889 | { | |
27890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27891 | (arg1)->InheritAttributes(); | |
27892 | ||
27893 | wxPyEndAllowThreads(__tstate); | |
27894 | if (PyErr_Occurred()) SWIG_fail; | |
27895 | } | |
27896 | Py_INCREF(Py_None); resultobj = Py_None; | |
27897 | return resultobj; | |
27898 | fail: | |
27899 | return NULL; | |
27900 | } | |
27901 | ||
27902 | ||
27903 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27904 | PyObject *resultobj; | |
27905 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27906 | bool result; | |
27907 | PyObject * obj0 = 0 ; | |
27908 | char *kwnames[] = { | |
27909 | (char *) "self", NULL | |
27910 | }; | |
27911 | ||
27912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
27913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27915 | { | |
27916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27917 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
27918 | ||
27919 | wxPyEndAllowThreads(__tstate); | |
27920 | if (PyErr_Occurred()) SWIG_fail; | |
27921 | } | |
27922 | { | |
27923 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27924 | } | |
27925 | return resultobj; | |
27926 | fail: | |
27927 | return NULL; | |
27928 | } | |
27929 | ||
27930 | ||
27931 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
27932 | PyObject *obj; | |
27933 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27934 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
27935 | Py_INCREF(obj); | |
27936 | return Py_BuildValue((char *)""); | |
27937 | } | |
27938 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27939 | PyObject *resultobj; | |
27940 | long arg1 ; | |
27941 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27942 | wxWindow *result; | |
27943 | PyObject * obj0 = 0 ; | |
27944 | PyObject * obj1 = 0 ; | |
27945 | char *kwnames[] = { | |
27946 | (char *) "id",(char *) "parent", NULL | |
27947 | }; | |
27948 | ||
27949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
27950 | arg1 = (long) SWIG_AsLong(obj0); | |
27951 | if (PyErr_Occurred()) SWIG_fail; | |
27952 | if (obj1) { | |
27953 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27955 | } | |
27956 | { | |
0439c23b | 27957 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
27958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27959 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
27960 | ||
27961 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 27962 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
27963 | } |
27964 | { | |
27965 | resultobj = wxPyMake_wxObject(result); | |
27966 | } | |
27967 | return resultobj; | |
27968 | fail: | |
27969 | return NULL; | |
27970 | } | |
27971 | ||
27972 | ||
27973 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27974 | PyObject *resultobj; | |
27975 | wxString *arg1 = 0 ; | |
27976 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27977 | wxWindow *result; | |
27978 | bool temp1 = False ; | |
27979 | PyObject * obj0 = 0 ; | |
27980 | PyObject * obj1 = 0 ; | |
27981 | char *kwnames[] = { | |
27982 | (char *) "name",(char *) "parent", NULL | |
27983 | }; | |
27984 | ||
27985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
27986 | { | |
27987 | arg1 = wxString_in_helper(obj0); | |
27988 | if (arg1 == NULL) SWIG_fail; | |
27989 | temp1 = True; | |
27990 | } | |
27991 | if (obj1) { | |
27992 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27994 | } | |
27995 | { | |
0439c23b | 27996 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
27997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27998 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
27999 | ||
28000 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 28001 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28002 | } |
28003 | { | |
28004 | resultobj = wxPyMake_wxObject(result); | |
28005 | } | |
28006 | { | |
28007 | if (temp1) | |
28008 | delete arg1; | |
28009 | } | |
28010 | return resultobj; | |
28011 | fail: | |
28012 | { | |
28013 | if (temp1) | |
28014 | delete arg1; | |
28015 | } | |
28016 | return NULL; | |
28017 | } | |
28018 | ||
28019 | ||
28020 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28021 | PyObject *resultobj; | |
28022 | wxString *arg1 = 0 ; | |
28023 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28024 | wxWindow *result; | |
28025 | bool temp1 = False ; | |
28026 | PyObject * obj0 = 0 ; | |
28027 | PyObject * obj1 = 0 ; | |
28028 | char *kwnames[] = { | |
28029 | (char *) "label",(char *) "parent", NULL | |
28030 | }; | |
28031 | ||
28032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
28033 | { | |
28034 | arg1 = wxString_in_helper(obj0); | |
28035 | if (arg1 == NULL) SWIG_fail; | |
28036 | temp1 = True; | |
28037 | } | |
28038 | if (obj1) { | |
28039 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28041 | } | |
28042 | { | |
0439c23b | 28043 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28045 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
28046 | ||
28047 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 28048 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28049 | } |
28050 | { | |
28051 | resultobj = wxPyMake_wxObject(result); | |
28052 | } | |
28053 | { | |
28054 | if (temp1) | |
28055 | delete arg1; | |
28056 | } | |
28057 | return resultobj; | |
28058 | fail: | |
28059 | { | |
28060 | if (temp1) | |
28061 | delete arg1; | |
28062 | } | |
28063 | return NULL; | |
28064 | } | |
28065 | ||
28066 | ||
28067 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28068 | PyObject *resultobj; | |
28069 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28070 | unsigned long arg2 ; | |
28071 | wxWindow *result; | |
28072 | PyObject * obj0 = 0 ; | |
28073 | PyObject * obj1 = 0 ; | |
28074 | char *kwnames[] = { | |
28075 | (char *) "parent",(char *) "_hWnd", NULL | |
28076 | }; | |
28077 | ||
28078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; | |
28079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28081 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
28082 | if (PyErr_Occurred()) SWIG_fail; | |
28083 | { | |
28084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28085 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); | |
28086 | ||
28087 | wxPyEndAllowThreads(__tstate); | |
28088 | if (PyErr_Occurred()) SWIG_fail; | |
28089 | } | |
28090 | { | |
28091 | resultobj = wxPyMake_wxObject(result); | |
28092 | } | |
28093 | return resultobj; | |
28094 | fail: | |
28095 | return NULL; | |
28096 | } | |
28097 | ||
28098 | ||
28099 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28100 | PyObject *resultobj; | |
28101 | wxValidator *result; | |
28102 | char *kwnames[] = { | |
28103 | NULL | |
28104 | }; | |
28105 | ||
28106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
28107 | { | |
28108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28109 | result = (wxValidator *)new wxValidator(); | |
28110 | ||
28111 | wxPyEndAllowThreads(__tstate); | |
28112 | if (PyErr_Occurred()) SWIG_fail; | |
28113 | } | |
28114 | { | |
28115 | resultobj = wxPyMake_wxObject(result); | |
28116 | } | |
28117 | return resultobj; | |
28118 | fail: | |
28119 | return NULL; | |
28120 | } | |
28121 | ||
28122 | ||
28123 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28124 | PyObject *resultobj; | |
28125 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28126 | wxValidator *result; | |
28127 | PyObject * obj0 = 0 ; | |
28128 | char *kwnames[] = { | |
28129 | (char *) "self", NULL | |
28130 | }; | |
28131 | ||
28132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
28133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28135 | { | |
28136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28137 | result = (wxValidator *)(arg1)->Clone(); | |
28138 | ||
28139 | wxPyEndAllowThreads(__tstate); | |
28140 | if (PyErr_Occurred()) SWIG_fail; | |
28141 | } | |
28142 | { | |
28143 | resultobj = wxPyMake_wxObject(result); | |
28144 | } | |
28145 | return resultobj; | |
28146 | fail: | |
28147 | return NULL; | |
28148 | } | |
28149 | ||
28150 | ||
28151 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28152 | PyObject *resultobj; | |
28153 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28154 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28155 | bool result; | |
28156 | PyObject * obj0 = 0 ; | |
28157 | PyObject * obj1 = 0 ; | |
28158 | char *kwnames[] = { | |
28159 | (char *) "self",(char *) "parent", NULL | |
28160 | }; | |
28161 | ||
28162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
28163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28165 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28167 | { | |
28168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28169 | result = (bool)(arg1)->Validate(arg2); | |
28170 | ||
28171 | wxPyEndAllowThreads(__tstate); | |
28172 | if (PyErr_Occurred()) SWIG_fail; | |
28173 | } | |
28174 | { | |
28175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28176 | } | |
28177 | return resultobj; | |
28178 | fail: | |
28179 | return NULL; | |
28180 | } | |
28181 | ||
28182 | ||
28183 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28184 | PyObject *resultobj; | |
28185 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28186 | bool result; | |
28187 | PyObject * obj0 = 0 ; | |
28188 | char *kwnames[] = { | |
28189 | (char *) "self", NULL | |
28190 | }; | |
28191 | ||
28192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
28193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28195 | { | |
28196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28197 | result = (bool)(arg1)->TransferToWindow(); | |
28198 | ||
28199 | wxPyEndAllowThreads(__tstate); | |
28200 | if (PyErr_Occurred()) SWIG_fail; | |
28201 | } | |
28202 | { | |
28203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28204 | } | |
28205 | return resultobj; | |
28206 | fail: | |
28207 | return NULL; | |
28208 | } | |
28209 | ||
28210 | ||
28211 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28212 | PyObject *resultobj; | |
28213 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28214 | bool result; | |
28215 | PyObject * obj0 = 0 ; | |
28216 | char *kwnames[] = { | |
28217 | (char *) "self", NULL | |
28218 | }; | |
28219 | ||
28220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
28221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28223 | { | |
28224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28225 | result = (bool)(arg1)->TransferFromWindow(); | |
28226 | ||
28227 | wxPyEndAllowThreads(__tstate); | |
28228 | if (PyErr_Occurred()) SWIG_fail; | |
28229 | } | |
28230 | { | |
28231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28232 | } | |
28233 | return resultobj; | |
28234 | fail: | |
28235 | return NULL; | |
28236 | } | |
28237 | ||
28238 | ||
28239 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28240 | PyObject *resultobj; | |
28241 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28242 | wxWindow *result; | |
28243 | PyObject * obj0 = 0 ; | |
28244 | char *kwnames[] = { | |
28245 | (char *) "self", NULL | |
28246 | }; | |
28247 | ||
28248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
28249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28251 | { | |
28252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28253 | result = (wxWindow *)(arg1)->GetWindow(); | |
28254 | ||
28255 | wxPyEndAllowThreads(__tstate); | |
28256 | if (PyErr_Occurred()) SWIG_fail; | |
28257 | } | |
28258 | { | |
28259 | resultobj = wxPyMake_wxObject(result); | |
28260 | } | |
28261 | return resultobj; | |
28262 | fail: | |
28263 | return NULL; | |
28264 | } | |
28265 | ||
28266 | ||
28267 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28268 | PyObject *resultobj; | |
28269 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28270 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28271 | PyObject * obj0 = 0 ; | |
28272 | PyObject * obj1 = 0 ; | |
28273 | char *kwnames[] = { | |
28274 | (char *) "self",(char *) "window", NULL | |
28275 | }; | |
28276 | ||
28277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
28278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28280 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28282 | { | |
28283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28284 | (arg1)->SetWindow(arg2); | |
28285 | ||
28286 | wxPyEndAllowThreads(__tstate); | |
28287 | if (PyErr_Occurred()) SWIG_fail; | |
28288 | } | |
28289 | Py_INCREF(Py_None); resultobj = Py_None; | |
28290 | return resultobj; | |
28291 | fail: | |
28292 | return NULL; | |
28293 | } | |
28294 | ||
28295 | ||
28296 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28297 | PyObject *resultobj; | |
28298 | bool result; | |
28299 | char *kwnames[] = { | |
28300 | NULL | |
28301 | }; | |
28302 | ||
28303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
28304 | { | |
28305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28306 | result = (bool)wxValidator::IsSilent(); | |
28307 | ||
28308 | wxPyEndAllowThreads(__tstate); | |
28309 | if (PyErr_Occurred()) SWIG_fail; | |
28310 | } | |
28311 | { | |
28312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28313 | } | |
28314 | return resultobj; | |
28315 | fail: | |
28316 | return NULL; | |
28317 | } | |
28318 | ||
28319 | ||
28320 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28321 | PyObject *resultobj; | |
28322 | int arg1 = (int) True ; | |
28323 | PyObject * obj0 = 0 ; | |
28324 | char *kwnames[] = { | |
28325 | (char *) "doIt", NULL | |
28326 | }; | |
28327 | ||
28328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; | |
28329 | if (obj0) { | |
28330 | arg1 = (int) SWIG_AsInt(obj0); | |
28331 | if (PyErr_Occurred()) SWIG_fail; | |
28332 | } | |
28333 | { | |
28334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28335 | wxValidator::SetBellOnError(arg1); | |
28336 | ||
28337 | wxPyEndAllowThreads(__tstate); | |
28338 | if (PyErr_Occurred()) SWIG_fail; | |
28339 | } | |
28340 | Py_INCREF(Py_None); resultobj = Py_None; | |
28341 | return resultobj; | |
28342 | fail: | |
28343 | return NULL; | |
28344 | } | |
28345 | ||
28346 | ||
28347 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
28348 | PyObject *obj; | |
28349 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28350 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
28351 | Py_INCREF(obj); | |
28352 | return Py_BuildValue((char *)""); | |
28353 | } | |
28354 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28355 | PyObject *resultobj; | |
28356 | wxPyValidator *result; | |
28357 | char *kwnames[] = { | |
28358 | NULL | |
28359 | }; | |
28360 | ||
28361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
28362 | { | |
28363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28364 | result = (wxPyValidator *)new wxPyValidator(); | |
28365 | ||
28366 | wxPyEndAllowThreads(__tstate); | |
28367 | if (PyErr_Occurred()) SWIG_fail; | |
28368 | } | |
28369 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); | |
28370 | return resultobj; | |
28371 | fail: | |
28372 | return NULL; | |
28373 | } | |
28374 | ||
28375 | ||
28376 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28377 | PyObject *resultobj; | |
28378 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
28379 | PyObject *arg2 = (PyObject *) 0 ; | |
28380 | PyObject *arg3 = (PyObject *) 0 ; | |
28381 | int arg4 = (int) True ; | |
28382 | PyObject * obj0 = 0 ; | |
28383 | PyObject * obj1 = 0 ; | |
28384 | PyObject * obj2 = 0 ; | |
28385 | PyObject * obj3 = 0 ; | |
28386 | char *kwnames[] = { | |
28387 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
28388 | }; | |
28389 | ||
28390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, | |
28392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28393 | arg2 = obj1; | |
28394 | arg3 = obj2; | |
28395 | if (obj3) { | |
28396 | arg4 = (int) SWIG_AsInt(obj3); | |
28397 | if (PyErr_Occurred()) SWIG_fail; | |
28398 | } | |
28399 | { | |
28400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28401 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
28402 | ||
28403 | wxPyEndAllowThreads(__tstate); | |
28404 | if (PyErr_Occurred()) SWIG_fail; | |
28405 | } | |
28406 | Py_INCREF(Py_None); resultobj = Py_None; | |
28407 | return resultobj; | |
28408 | fail: | |
28409 | return NULL; | |
28410 | } | |
28411 | ||
28412 | ||
28413 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
28414 | PyObject *obj; | |
28415 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28416 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
28417 | Py_INCREF(obj); | |
28418 | return Py_BuildValue((char *)""); | |
28419 | } | |
28420 | static int _wrap_DefaultValidator_set(PyObject *_val) { | |
28421 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); | |
28422 | return 1; | |
28423 | } | |
28424 | ||
28425 | ||
28426 | static PyObject *_wrap_DefaultValidator_get() { | |
28427 | PyObject *pyobj; | |
28428 | ||
28429 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); | |
28430 | return pyobj; | |
28431 | } | |
28432 | ||
28433 | ||
28434 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28435 | PyObject *resultobj; | |
28436 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
28437 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
28438 | long arg2 = (long) 0 ; | |
28439 | wxMenu *result; | |
28440 | bool temp1 = False ; | |
28441 | PyObject * obj0 = 0 ; | |
28442 | PyObject * obj1 = 0 ; | |
28443 | char *kwnames[] = { | |
28444 | (char *) "title",(char *) "style", NULL | |
28445 | }; | |
28446 | ||
28447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; | |
28448 | if (obj0) { | |
28449 | { | |
28450 | arg1 = wxString_in_helper(obj0); | |
28451 | if (arg1 == NULL) SWIG_fail; | |
28452 | temp1 = True; | |
28453 | } | |
28454 | } | |
28455 | if (obj1) { | |
28456 | arg2 = (long) SWIG_AsLong(obj1); | |
28457 | if (PyErr_Occurred()) SWIG_fail; | |
28458 | } | |
28459 | { | |
0439c23b | 28460 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28462 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
28463 | ||
28464 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 28465 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28466 | } |
28467 | { | |
28468 | resultobj = wxPyMake_wxObject(result); | |
28469 | } | |
28470 | { | |
28471 | if (temp1) | |
28472 | delete arg1; | |
28473 | } | |
28474 | return resultobj; | |
28475 | fail: | |
28476 | { | |
28477 | if (temp1) | |
28478 | delete arg1; | |
28479 | } | |
28480 | return NULL; | |
28481 | } | |
28482 | ||
28483 | ||
28484 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28485 | PyObject *resultobj; | |
28486 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28487 | int arg2 ; | |
28488 | wxString *arg3 = 0 ; | |
28489 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28490 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28491 | int arg5 = (int) wxITEM_NORMAL ; | |
28492 | wxMenuItem *result; | |
28493 | bool temp3 = False ; | |
28494 | bool temp4 = False ; | |
28495 | PyObject * obj0 = 0 ; | |
28496 | PyObject * obj1 = 0 ; | |
28497 | PyObject * obj2 = 0 ; | |
28498 | PyObject * obj3 = 0 ; | |
28499 | PyObject * obj4 = 0 ; | |
28500 | char *kwnames[] = { | |
28501 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
28502 | }; | |
28503 | ||
28504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28507 | arg2 = (int) SWIG_AsInt(obj1); | |
28508 | if (PyErr_Occurred()) SWIG_fail; | |
28509 | { | |
28510 | arg3 = wxString_in_helper(obj2); | |
28511 | if (arg3 == NULL) SWIG_fail; | |
28512 | temp3 = True; | |
28513 | } | |
28514 | if (obj3) { | |
28515 | { | |
28516 | arg4 = wxString_in_helper(obj3); | |
28517 | if (arg4 == NULL) SWIG_fail; | |
28518 | temp4 = True; | |
28519 | } | |
28520 | } | |
28521 | if (obj4) { | |
28522 | arg5 = (wxItemKind) SWIG_AsInt(obj4); | |
28523 | if (PyErr_Occurred()) SWIG_fail; | |
28524 | } | |
28525 | { | |
28526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28527 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
28528 | ||
28529 | wxPyEndAllowThreads(__tstate); | |
28530 | if (PyErr_Occurred()) SWIG_fail; | |
28531 | } | |
28532 | { | |
28533 | resultobj = wxPyMake_wxObject(result); | |
28534 | } | |
28535 | { | |
28536 | if (temp3) | |
28537 | delete arg3; | |
28538 | } | |
28539 | { | |
28540 | if (temp4) | |
28541 | delete arg4; | |
28542 | } | |
28543 | return resultobj; | |
28544 | fail: | |
28545 | { | |
28546 | if (temp3) | |
28547 | delete arg3; | |
28548 | } | |
28549 | { | |
28550 | if (temp4) | |
28551 | delete arg4; | |
28552 | } | |
28553 | return NULL; | |
28554 | } | |
28555 | ||
28556 | ||
28557 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28558 | PyObject *resultobj; | |
28559 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28560 | wxMenuItem *result; | |
28561 | PyObject * obj0 = 0 ; | |
28562 | char *kwnames[] = { | |
28563 | (char *) "self", NULL | |
28564 | }; | |
28565 | ||
28566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
28567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28569 | { | |
28570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28571 | result = (wxMenuItem *)(arg1)->AppendSeparator(); | |
28572 | ||
28573 | wxPyEndAllowThreads(__tstate); | |
28574 | if (PyErr_Occurred()) SWIG_fail; | |
28575 | } | |
28576 | { | |
28577 | resultobj = wxPyMake_wxObject(result); | |
28578 | } | |
28579 | return resultobj; | |
28580 | fail: | |
28581 | return NULL; | |
28582 | } | |
28583 | ||
28584 | ||
28585 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28586 | PyObject *resultobj; | |
28587 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28588 | int arg2 ; | |
28589 | wxString *arg3 = 0 ; | |
28590 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28591 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28592 | wxMenuItem *result; | |
28593 | bool temp3 = False ; | |
28594 | bool temp4 = False ; | |
28595 | PyObject * obj0 = 0 ; | |
28596 | PyObject * obj1 = 0 ; | |
28597 | PyObject * obj2 = 0 ; | |
28598 | PyObject * obj3 = 0 ; | |
28599 | char *kwnames[] = { | |
28600 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
28601 | }; | |
28602 | ||
28603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28606 | arg2 = (int) SWIG_AsInt(obj1); | |
28607 | if (PyErr_Occurred()) SWIG_fail; | |
28608 | { | |
28609 | arg3 = wxString_in_helper(obj2); | |
28610 | if (arg3 == NULL) SWIG_fail; | |
28611 | temp3 = True; | |
28612 | } | |
28613 | if (obj3) { | |
28614 | { | |
28615 | arg4 = wxString_in_helper(obj3); | |
28616 | if (arg4 == NULL) SWIG_fail; | |
28617 | temp4 = True; | |
28618 | } | |
28619 | } | |
28620 | { | |
28621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28622 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
28623 | ||
28624 | wxPyEndAllowThreads(__tstate); | |
28625 | if (PyErr_Occurred()) SWIG_fail; | |
28626 | } | |
28627 | { | |
28628 | resultobj = wxPyMake_wxObject(result); | |
28629 | } | |
28630 | { | |
28631 | if (temp3) | |
28632 | delete arg3; | |
28633 | } | |
28634 | { | |
28635 | if (temp4) | |
28636 | delete arg4; | |
28637 | } | |
28638 | return resultobj; | |
28639 | fail: | |
28640 | { | |
28641 | if (temp3) | |
28642 | delete arg3; | |
28643 | } | |
28644 | { | |
28645 | if (temp4) | |
28646 | delete arg4; | |
28647 | } | |
28648 | return NULL; | |
28649 | } | |
28650 | ||
28651 | ||
28652 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28653 | PyObject *resultobj; | |
28654 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28655 | int arg2 ; | |
28656 | wxString *arg3 = 0 ; | |
28657 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28658 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28659 | wxMenuItem *result; | |
28660 | bool temp3 = False ; | |
28661 | bool temp4 = False ; | |
28662 | PyObject * obj0 = 0 ; | |
28663 | PyObject * obj1 = 0 ; | |
28664 | PyObject * obj2 = 0 ; | |
28665 | PyObject * obj3 = 0 ; | |
28666 | char *kwnames[] = { | |
28667 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
28668 | }; | |
28669 | ||
28670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28673 | arg2 = (int) SWIG_AsInt(obj1); | |
28674 | if (PyErr_Occurred()) SWIG_fail; | |
28675 | { | |
28676 | arg3 = wxString_in_helper(obj2); | |
28677 | if (arg3 == NULL) SWIG_fail; | |
28678 | temp3 = True; | |
28679 | } | |
28680 | if (obj3) { | |
28681 | { | |
28682 | arg4 = wxString_in_helper(obj3); | |
28683 | if (arg4 == NULL) SWIG_fail; | |
28684 | temp4 = True; | |
28685 | } | |
28686 | } | |
28687 | { | |
28688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28689 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
28690 | ||
28691 | wxPyEndAllowThreads(__tstate); | |
28692 | if (PyErr_Occurred()) SWIG_fail; | |
28693 | } | |
28694 | { | |
28695 | resultobj = wxPyMake_wxObject(result); | |
28696 | } | |
28697 | { | |
28698 | if (temp3) | |
28699 | delete arg3; | |
28700 | } | |
28701 | { | |
28702 | if (temp4) | |
28703 | delete arg4; | |
28704 | } | |
28705 | return resultobj; | |
28706 | fail: | |
28707 | { | |
28708 | if (temp3) | |
28709 | delete arg3; | |
28710 | } | |
28711 | { | |
28712 | if (temp4) | |
28713 | delete arg4; | |
28714 | } | |
28715 | return NULL; | |
28716 | } | |
28717 | ||
28718 | ||
28719 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28720 | PyObject *resultobj; | |
28721 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28722 | int arg2 ; | |
28723 | wxString *arg3 = 0 ; | |
28724 | wxMenu *arg4 = (wxMenu *) 0 ; | |
28725 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28726 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
28727 | wxMenuItem *result; | |
28728 | bool temp3 = False ; | |
28729 | bool temp5 = False ; | |
28730 | PyObject * obj0 = 0 ; | |
28731 | PyObject * obj1 = 0 ; | |
28732 | PyObject * obj2 = 0 ; | |
28733 | PyObject * obj3 = 0 ; | |
28734 | PyObject * obj4 = 0 ; | |
28735 | char *kwnames[] = { | |
28736 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
28737 | }; | |
28738 | ||
28739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28742 | arg2 = (int) SWIG_AsInt(obj1); | |
28743 | if (PyErr_Occurred()) SWIG_fail; | |
28744 | { | |
28745 | arg3 = wxString_in_helper(obj2); | |
28746 | if (arg3 == NULL) SWIG_fail; | |
28747 | temp3 = True; | |
28748 | } | |
28749 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
28750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28751 | if (obj4) { | |
28752 | { | |
28753 | arg5 = wxString_in_helper(obj4); | |
28754 | if (arg5 == NULL) SWIG_fail; | |
28755 | temp5 = True; | |
28756 | } | |
28757 | } | |
28758 | { | |
28759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28760 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
28761 | ||
28762 | wxPyEndAllowThreads(__tstate); | |
28763 | if (PyErr_Occurred()) SWIG_fail; | |
28764 | } | |
28765 | { | |
28766 | resultobj = wxPyMake_wxObject(result); | |
28767 | } | |
28768 | { | |
28769 | if (temp3) | |
28770 | delete arg3; | |
28771 | } | |
28772 | { | |
28773 | if (temp5) | |
28774 | delete arg5; | |
28775 | } | |
28776 | return resultobj; | |
28777 | fail: | |
28778 | { | |
28779 | if (temp3) | |
28780 | delete arg3; | |
28781 | } | |
28782 | { | |
28783 | if (temp5) | |
28784 | delete arg5; | |
28785 | } | |
28786 | return NULL; | |
28787 | } | |
28788 | ||
28789 | ||
28790 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28791 | PyObject *resultobj; | |
28792 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28793 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28794 | wxMenuItem *result; | |
28795 | PyObject * obj0 = 0 ; | |
28796 | PyObject * obj1 = 0 ; | |
28797 | char *kwnames[] = { | |
28798 | (char *) "self",(char *) "item", NULL | |
28799 | }; | |
28800 | ||
28801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
28802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28804 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28806 | { | |
28807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28808 | result = (wxMenuItem *)(arg1)->Append(arg2); | |
28809 | ||
28810 | wxPyEndAllowThreads(__tstate); | |
28811 | if (PyErr_Occurred()) SWIG_fail; | |
28812 | } | |
28813 | { | |
28814 | resultobj = wxPyMake_wxObject(result); | |
28815 | } | |
28816 | return resultobj; | |
28817 | fail: | |
28818 | return NULL; | |
28819 | } | |
28820 | ||
28821 | ||
28822 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28823 | PyObject *resultobj; | |
28824 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28825 | PyObject * obj0 = 0 ; | |
28826 | char *kwnames[] = { | |
28827 | (char *) "self", NULL | |
28828 | }; | |
28829 | ||
28830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
28831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28833 | { | |
28834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28835 | (arg1)->Break(); | |
28836 | ||
28837 | wxPyEndAllowThreads(__tstate); | |
28838 | if (PyErr_Occurred()) SWIG_fail; | |
28839 | } | |
28840 | Py_INCREF(Py_None); resultobj = Py_None; | |
28841 | return resultobj; | |
28842 | fail: | |
28843 | return NULL; | |
28844 | } | |
28845 | ||
28846 | ||
28847 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28848 | PyObject *resultobj; | |
28849 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28850 | size_t arg2 ; | |
28851 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
28852 | wxMenuItem *result; | |
28853 | PyObject * obj0 = 0 ; | |
28854 | PyObject * obj1 = 0 ; | |
28855 | PyObject * obj2 = 0 ; | |
28856 | char *kwnames[] = { | |
28857 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
28858 | }; | |
28859 | ||
28860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28863 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28864 | if (PyErr_Occurred()) SWIG_fail; | |
28865 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
28866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28867 | { | |
28868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28869 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); | |
28870 | ||
28871 | wxPyEndAllowThreads(__tstate); | |
28872 | if (PyErr_Occurred()) SWIG_fail; | |
28873 | } | |
28874 | { | |
28875 | resultobj = wxPyMake_wxObject(result); | |
28876 | } | |
28877 | return resultobj; | |
28878 | fail: | |
28879 | return NULL; | |
28880 | } | |
28881 | ||
28882 | ||
28883 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28884 | PyObject *resultobj; | |
28885 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28886 | size_t arg2 ; | |
28887 | int arg3 ; | |
28888 | wxString *arg4 = 0 ; | |
28889 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28890 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
28891 | int arg6 = (int) wxITEM_NORMAL ; | |
28892 | wxMenuItem *result; | |
28893 | bool temp4 = False ; | |
28894 | bool temp5 = False ; | |
28895 | PyObject * obj0 = 0 ; | |
28896 | PyObject * obj1 = 0 ; | |
28897 | PyObject * obj2 = 0 ; | |
28898 | PyObject * obj3 = 0 ; | |
28899 | PyObject * obj4 = 0 ; | |
28900 | PyObject * obj5 = 0 ; | |
28901 | char *kwnames[] = { | |
28902 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
28903 | }; | |
28904 | ||
28905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
28906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28908 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28909 | if (PyErr_Occurred()) SWIG_fail; | |
28910 | arg3 = (int) SWIG_AsInt(obj2); | |
28911 | if (PyErr_Occurred()) SWIG_fail; | |
28912 | { | |
28913 | arg4 = wxString_in_helper(obj3); | |
28914 | if (arg4 == NULL) SWIG_fail; | |
28915 | temp4 = True; | |
28916 | } | |
28917 | if (obj4) { | |
28918 | { | |
28919 | arg5 = wxString_in_helper(obj4); | |
28920 | if (arg5 == NULL) SWIG_fail; | |
28921 | temp5 = True; | |
28922 | } | |
28923 | } | |
28924 | if (obj5) { | |
28925 | arg6 = (wxItemKind) SWIG_AsInt(obj5); | |
28926 | if (PyErr_Occurred()) SWIG_fail; | |
28927 | } | |
28928 | { | |
28929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28930 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
28931 | ||
28932 | wxPyEndAllowThreads(__tstate); | |
28933 | if (PyErr_Occurred()) SWIG_fail; | |
28934 | } | |
28935 | { | |
28936 | resultobj = wxPyMake_wxObject(result); | |
28937 | } | |
28938 | { | |
28939 | if (temp4) | |
28940 | delete arg4; | |
28941 | } | |
28942 | { | |
28943 | if (temp5) | |
28944 | delete arg5; | |
28945 | } | |
28946 | return resultobj; | |
28947 | fail: | |
28948 | { | |
28949 | if (temp4) | |
28950 | delete arg4; | |
28951 | } | |
28952 | { | |
28953 | if (temp5) | |
28954 | delete arg5; | |
28955 | } | |
28956 | return NULL; | |
28957 | } | |
28958 | ||
28959 | ||
28960 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28961 | PyObject *resultobj; | |
28962 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28963 | size_t arg2 ; | |
28964 | wxMenuItem *result; | |
28965 | PyObject * obj0 = 0 ; | |
28966 | PyObject * obj1 = 0 ; | |
28967 | char *kwnames[] = { | |
28968 | (char *) "self",(char *) "pos", NULL | |
28969 | }; | |
28970 | ||
28971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
28972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28974 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28975 | if (PyErr_Occurred()) SWIG_fail; | |
28976 | { | |
28977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28978 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); | |
28979 | ||
28980 | wxPyEndAllowThreads(__tstate); | |
28981 | if (PyErr_Occurred()) SWIG_fail; | |
28982 | } | |
28983 | { | |
28984 | resultobj = wxPyMake_wxObject(result); | |
28985 | } | |
28986 | return resultobj; | |
28987 | fail: | |
28988 | return NULL; | |
28989 | } | |
28990 | ||
28991 | ||
28992 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28993 | PyObject *resultobj; | |
28994 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28995 | size_t arg2 ; | |
28996 | int arg3 ; | |
28997 | wxString *arg4 = 0 ; | |
28998 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28999 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29000 | wxMenuItem *result; | |
29001 | bool temp4 = False ; | |
29002 | bool temp5 = False ; | |
29003 | PyObject * obj0 = 0 ; | |
29004 | PyObject * obj1 = 0 ; | |
29005 | PyObject * obj2 = 0 ; | |
29006 | PyObject * obj3 = 0 ; | |
29007 | PyObject * obj4 = 0 ; | |
29008 | char *kwnames[] = { | |
29009 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
29010 | }; | |
29011 | ||
29012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29015 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29016 | if (PyErr_Occurred()) SWIG_fail; | |
29017 | arg3 = (int) SWIG_AsInt(obj2); | |
29018 | if (PyErr_Occurred()) SWIG_fail; | |
29019 | { | |
29020 | arg4 = wxString_in_helper(obj3); | |
29021 | if (arg4 == NULL) SWIG_fail; | |
29022 | temp4 = True; | |
29023 | } | |
29024 | if (obj4) { | |
29025 | { | |
29026 | arg5 = wxString_in_helper(obj4); | |
29027 | if (arg5 == NULL) SWIG_fail; | |
29028 | temp5 = True; | |
29029 | } | |
29030 | } | |
29031 | { | |
29032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29033 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
29034 | ||
29035 | wxPyEndAllowThreads(__tstate); | |
29036 | if (PyErr_Occurred()) SWIG_fail; | |
29037 | } | |
29038 | { | |
29039 | resultobj = wxPyMake_wxObject(result); | |
29040 | } | |
29041 | { | |
29042 | if (temp4) | |
29043 | delete arg4; | |
29044 | } | |
29045 | { | |
29046 | if (temp5) | |
29047 | delete arg5; | |
29048 | } | |
29049 | return resultobj; | |
29050 | fail: | |
29051 | { | |
29052 | if (temp4) | |
29053 | delete arg4; | |
29054 | } | |
29055 | { | |
29056 | if (temp5) | |
29057 | delete arg5; | |
29058 | } | |
29059 | return NULL; | |
29060 | } | |
29061 | ||
29062 | ||
29063 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29064 | PyObject *resultobj; | |
29065 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29066 | size_t arg2 ; | |
29067 | int arg3 ; | |
29068 | wxString *arg4 = 0 ; | |
29069 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29070 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29071 | wxMenuItem *result; | |
29072 | bool temp4 = False ; | |
29073 | bool temp5 = False ; | |
29074 | PyObject * obj0 = 0 ; | |
29075 | PyObject * obj1 = 0 ; | |
29076 | PyObject * obj2 = 0 ; | |
29077 | PyObject * obj3 = 0 ; | |
29078 | PyObject * obj4 = 0 ; | |
29079 | char *kwnames[] = { | |
29080 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
29081 | }; | |
29082 | ||
29083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29086 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29087 | if (PyErr_Occurred()) SWIG_fail; | |
29088 | arg3 = (int) SWIG_AsInt(obj2); | |
29089 | if (PyErr_Occurred()) SWIG_fail; | |
29090 | { | |
29091 | arg4 = wxString_in_helper(obj3); | |
29092 | if (arg4 == NULL) SWIG_fail; | |
29093 | temp4 = True; | |
29094 | } | |
29095 | if (obj4) { | |
29096 | { | |
29097 | arg5 = wxString_in_helper(obj4); | |
29098 | if (arg5 == NULL) SWIG_fail; | |
29099 | temp5 = True; | |
29100 | } | |
29101 | } | |
29102 | { | |
29103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29104 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
29105 | ||
29106 | wxPyEndAllowThreads(__tstate); | |
29107 | if (PyErr_Occurred()) SWIG_fail; | |
29108 | } | |
29109 | { | |
29110 | resultobj = wxPyMake_wxObject(result); | |
29111 | } | |
29112 | { | |
29113 | if (temp4) | |
29114 | delete arg4; | |
29115 | } | |
29116 | { | |
29117 | if (temp5) | |
29118 | delete arg5; | |
29119 | } | |
29120 | return resultobj; | |
29121 | fail: | |
29122 | { | |
29123 | if (temp4) | |
29124 | delete arg4; | |
29125 | } | |
29126 | { | |
29127 | if (temp5) | |
29128 | delete arg5; | |
29129 | } | |
29130 | return NULL; | |
29131 | } | |
29132 | ||
29133 | ||
29134 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29135 | PyObject *resultobj; | |
29136 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29137 | size_t arg2 ; | |
29138 | int arg3 ; | |
29139 | wxString *arg4 = 0 ; | |
29140 | wxMenu *arg5 = (wxMenu *) 0 ; | |
29141 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
29142 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
29143 | wxMenuItem *result; | |
29144 | bool temp4 = False ; | |
29145 | bool temp6 = False ; | |
29146 | PyObject * obj0 = 0 ; | |
29147 | PyObject * obj1 = 0 ; | |
29148 | PyObject * obj2 = 0 ; | |
29149 | PyObject * obj3 = 0 ; | |
29150 | PyObject * obj4 = 0 ; | |
29151 | PyObject * obj5 = 0 ; | |
29152 | char *kwnames[] = { | |
29153 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29154 | }; | |
29155 | ||
29156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29159 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29160 | if (PyErr_Occurred()) SWIG_fail; | |
29161 | arg3 = (int) SWIG_AsInt(obj2); | |
29162 | if (PyErr_Occurred()) SWIG_fail; | |
29163 | { | |
29164 | arg4 = wxString_in_helper(obj3); | |
29165 | if (arg4 == NULL) SWIG_fail; | |
29166 | temp4 = True; | |
29167 | } | |
29168 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, | |
29169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29170 | if (obj5) { | |
29171 | { | |
29172 | arg6 = wxString_in_helper(obj5); | |
29173 | if (arg6 == NULL) SWIG_fail; | |
29174 | temp6 = True; | |
29175 | } | |
29176 | } | |
29177 | { | |
29178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29179 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
29180 | ||
29181 | wxPyEndAllowThreads(__tstate); | |
29182 | if (PyErr_Occurred()) SWIG_fail; | |
29183 | } | |
29184 | { | |
29185 | resultobj = wxPyMake_wxObject(result); | |
29186 | } | |
29187 | { | |
29188 | if (temp4) | |
29189 | delete arg4; | |
29190 | } | |
29191 | { | |
29192 | if (temp6) | |
29193 | delete arg6; | |
29194 | } | |
29195 | return resultobj; | |
29196 | fail: | |
29197 | { | |
29198 | if (temp4) | |
29199 | delete arg4; | |
29200 | } | |
29201 | { | |
29202 | if (temp6) | |
29203 | delete arg6; | |
29204 | } | |
29205 | return NULL; | |
29206 | } | |
29207 | ||
29208 | ||
29209 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29210 | PyObject *resultobj; | |
29211 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29212 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29213 | wxMenuItem *result; | |
29214 | PyObject * obj0 = 0 ; | |
29215 | PyObject * obj1 = 0 ; | |
29216 | char *kwnames[] = { | |
29217 | (char *) "self",(char *) "item", NULL | |
29218 | }; | |
29219 | ||
29220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
29221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29223 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29225 | { | |
29226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29227 | result = (wxMenuItem *)(arg1)->Prepend(arg2); | |
29228 | ||
29229 | wxPyEndAllowThreads(__tstate); | |
29230 | if (PyErr_Occurred()) SWIG_fail; | |
29231 | } | |
29232 | { | |
29233 | resultobj = wxPyMake_wxObject(result); | |
29234 | } | |
29235 | return resultobj; | |
29236 | fail: | |
29237 | return NULL; | |
29238 | } | |
29239 | ||
29240 | ||
29241 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29242 | PyObject *resultobj; | |
29243 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29244 | int arg2 ; | |
29245 | wxString *arg3 = 0 ; | |
29246 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29247 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29248 | int arg5 = (int) wxITEM_NORMAL ; | |
29249 | wxMenuItem *result; | |
29250 | bool temp3 = False ; | |
29251 | bool temp4 = False ; | |
29252 | PyObject * obj0 = 0 ; | |
29253 | PyObject * obj1 = 0 ; | |
29254 | PyObject * obj2 = 0 ; | |
29255 | PyObject * obj3 = 0 ; | |
29256 | PyObject * obj4 = 0 ; | |
29257 | char *kwnames[] = { | |
29258 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29259 | }; | |
29260 | ||
29261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29264 | arg2 = (int) SWIG_AsInt(obj1); | |
29265 | if (PyErr_Occurred()) SWIG_fail; | |
29266 | { | |
29267 | arg3 = wxString_in_helper(obj2); | |
29268 | if (arg3 == NULL) SWIG_fail; | |
29269 | temp3 = True; | |
29270 | } | |
29271 | if (obj3) { | |
29272 | { | |
29273 | arg4 = wxString_in_helper(obj3); | |
29274 | if (arg4 == NULL) SWIG_fail; | |
29275 | temp4 = True; | |
29276 | } | |
29277 | } | |
29278 | if (obj4) { | |
29279 | arg5 = (wxItemKind) SWIG_AsInt(obj4); | |
29280 | if (PyErr_Occurred()) SWIG_fail; | |
29281 | } | |
29282 | { | |
29283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29284 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
29285 | ||
29286 | wxPyEndAllowThreads(__tstate); | |
29287 | if (PyErr_Occurred()) SWIG_fail; | |
29288 | } | |
29289 | { | |
29290 | resultobj = wxPyMake_wxObject(result); | |
29291 | } | |
29292 | { | |
29293 | if (temp3) | |
29294 | delete arg3; | |
29295 | } | |
29296 | { | |
29297 | if (temp4) | |
29298 | delete arg4; | |
29299 | } | |
29300 | return resultobj; | |
29301 | fail: | |
29302 | { | |
29303 | if (temp3) | |
29304 | delete arg3; | |
29305 | } | |
29306 | { | |
29307 | if (temp4) | |
29308 | delete arg4; | |
29309 | } | |
29310 | return NULL; | |
29311 | } | |
29312 | ||
29313 | ||
29314 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29315 | PyObject *resultobj; | |
29316 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29317 | wxMenuItem *result; | |
29318 | PyObject * obj0 = 0 ; | |
29319 | char *kwnames[] = { | |
29320 | (char *) "self", NULL | |
29321 | }; | |
29322 | ||
29323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
29324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29326 | { | |
29327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29328 | result = (wxMenuItem *)(arg1)->PrependSeparator(); | |
29329 | ||
29330 | wxPyEndAllowThreads(__tstate); | |
29331 | if (PyErr_Occurred()) SWIG_fail; | |
29332 | } | |
29333 | { | |
29334 | resultobj = wxPyMake_wxObject(result); | |
29335 | } | |
29336 | return resultobj; | |
29337 | fail: | |
29338 | return NULL; | |
29339 | } | |
29340 | ||
29341 | ||
29342 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29343 | PyObject *resultobj; | |
29344 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29345 | int arg2 ; | |
29346 | wxString *arg3 = 0 ; | |
29347 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29348 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29349 | wxMenuItem *result; | |
29350 | bool temp3 = False ; | |
29351 | bool temp4 = False ; | |
29352 | PyObject * obj0 = 0 ; | |
29353 | PyObject * obj1 = 0 ; | |
29354 | PyObject * obj2 = 0 ; | |
29355 | PyObject * obj3 = 0 ; | |
29356 | char *kwnames[] = { | |
29357 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29358 | }; | |
29359 | ||
29360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29363 | arg2 = (int) SWIG_AsInt(obj1); | |
29364 | if (PyErr_Occurred()) SWIG_fail; | |
29365 | { | |
29366 | arg3 = wxString_in_helper(obj2); | |
29367 | if (arg3 == NULL) SWIG_fail; | |
29368 | temp3 = True; | |
29369 | } | |
29370 | if (obj3) { | |
29371 | { | |
29372 | arg4 = wxString_in_helper(obj3); | |
29373 | if (arg4 == NULL) SWIG_fail; | |
29374 | temp4 = True; | |
29375 | } | |
29376 | } | |
29377 | { | |
29378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29379 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29380 | ||
29381 | wxPyEndAllowThreads(__tstate); | |
29382 | if (PyErr_Occurred()) SWIG_fail; | |
29383 | } | |
29384 | { | |
29385 | resultobj = wxPyMake_wxObject(result); | |
29386 | } | |
29387 | { | |
29388 | if (temp3) | |
29389 | delete arg3; | |
29390 | } | |
29391 | { | |
29392 | if (temp4) | |
29393 | delete arg4; | |
29394 | } | |
29395 | return resultobj; | |
29396 | fail: | |
29397 | { | |
29398 | if (temp3) | |
29399 | delete arg3; | |
29400 | } | |
29401 | { | |
29402 | if (temp4) | |
29403 | delete arg4; | |
29404 | } | |
29405 | return NULL; | |
29406 | } | |
29407 | ||
29408 | ||
29409 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29410 | PyObject *resultobj; | |
29411 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29412 | int arg2 ; | |
29413 | wxString *arg3 = 0 ; | |
29414 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29415 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29416 | wxMenuItem *result; | |
29417 | bool temp3 = False ; | |
29418 | bool temp4 = False ; | |
29419 | PyObject * obj0 = 0 ; | |
29420 | PyObject * obj1 = 0 ; | |
29421 | PyObject * obj2 = 0 ; | |
29422 | PyObject * obj3 = 0 ; | |
29423 | char *kwnames[] = { | |
29424 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29425 | }; | |
29426 | ||
29427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29430 | arg2 = (int) SWIG_AsInt(obj1); | |
29431 | if (PyErr_Occurred()) SWIG_fail; | |
29432 | { | |
29433 | arg3 = wxString_in_helper(obj2); | |
29434 | if (arg3 == NULL) SWIG_fail; | |
29435 | temp3 = True; | |
29436 | } | |
29437 | if (obj3) { | |
29438 | { | |
29439 | arg4 = wxString_in_helper(obj3); | |
29440 | if (arg4 == NULL) SWIG_fail; | |
29441 | temp4 = True; | |
29442 | } | |
29443 | } | |
29444 | { | |
29445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29446 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29447 | ||
29448 | wxPyEndAllowThreads(__tstate); | |
29449 | if (PyErr_Occurred()) SWIG_fail; | |
29450 | } | |
29451 | { | |
29452 | resultobj = wxPyMake_wxObject(result); | |
29453 | } | |
29454 | { | |
29455 | if (temp3) | |
29456 | delete arg3; | |
29457 | } | |
29458 | { | |
29459 | if (temp4) | |
29460 | delete arg4; | |
29461 | } | |
29462 | return resultobj; | |
29463 | fail: | |
29464 | { | |
29465 | if (temp3) | |
29466 | delete arg3; | |
29467 | } | |
29468 | { | |
29469 | if (temp4) | |
29470 | delete arg4; | |
29471 | } | |
29472 | return NULL; | |
29473 | } | |
29474 | ||
29475 | ||
29476 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29477 | PyObject *resultobj; | |
29478 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29479 | int arg2 ; | |
29480 | wxString *arg3 = 0 ; | |
29481 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29482 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29483 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29484 | wxMenuItem *result; | |
29485 | bool temp3 = False ; | |
29486 | bool temp5 = False ; | |
29487 | PyObject * obj0 = 0 ; | |
29488 | PyObject * obj1 = 0 ; | |
29489 | PyObject * obj2 = 0 ; | |
29490 | PyObject * obj3 = 0 ; | |
29491 | PyObject * obj4 = 0 ; | |
29492 | char *kwnames[] = { | |
29493 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29494 | }; | |
29495 | ||
29496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29499 | arg2 = (int) SWIG_AsInt(obj1); | |
29500 | if (PyErr_Occurred()) SWIG_fail; | |
29501 | { | |
29502 | arg3 = wxString_in_helper(obj2); | |
29503 | if (arg3 == NULL) SWIG_fail; | |
29504 | temp3 = True; | |
29505 | } | |
29506 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
29507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29508 | if (obj4) { | |
29509 | { | |
29510 | arg5 = wxString_in_helper(obj4); | |
29511 | if (arg5 == NULL) SWIG_fail; | |
29512 | temp5 = True; | |
29513 | } | |
29514 | } | |
29515 | { | |
29516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29517 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
29518 | ||
29519 | wxPyEndAllowThreads(__tstate); | |
29520 | if (PyErr_Occurred()) SWIG_fail; | |
29521 | } | |
29522 | { | |
29523 | resultobj = wxPyMake_wxObject(result); | |
29524 | } | |
29525 | { | |
29526 | if (temp3) | |
29527 | delete arg3; | |
29528 | } | |
29529 | { | |
29530 | if (temp5) | |
29531 | delete arg5; | |
29532 | } | |
29533 | return resultobj; | |
29534 | fail: | |
29535 | { | |
29536 | if (temp3) | |
29537 | delete arg3; | |
29538 | } | |
29539 | { | |
29540 | if (temp5) | |
29541 | delete arg5; | |
29542 | } | |
29543 | return NULL; | |
29544 | } | |
29545 | ||
29546 | ||
29547 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29548 | PyObject *resultobj; | |
29549 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29550 | int arg2 ; | |
29551 | wxMenuItem *result; | |
29552 | PyObject * obj0 = 0 ; | |
29553 | PyObject * obj1 = 0 ; | |
29554 | char *kwnames[] = { | |
29555 | (char *) "self",(char *) "id", NULL | |
29556 | }; | |
29557 | ||
29558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; | |
29559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29561 | arg2 = (int) SWIG_AsInt(obj1); | |
29562 | if (PyErr_Occurred()) SWIG_fail; | |
29563 | { | |
29564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29565 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29566 | ||
29567 | wxPyEndAllowThreads(__tstate); | |
29568 | if (PyErr_Occurred()) SWIG_fail; | |
29569 | } | |
29570 | { | |
29571 | resultobj = wxPyMake_wxObject(result); | |
29572 | } | |
29573 | return resultobj; | |
29574 | fail: | |
29575 | return NULL; | |
29576 | } | |
29577 | ||
29578 | ||
29579 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29580 | PyObject *resultobj; | |
29581 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29582 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29583 | wxMenuItem *result; | |
29584 | PyObject * obj0 = 0 ; | |
29585 | PyObject * obj1 = 0 ; | |
29586 | char *kwnames[] = { | |
29587 | (char *) "self",(char *) "item", NULL | |
29588 | }; | |
29589 | ||
29590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
29591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29593 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29595 | { | |
29596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29597 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29598 | ||
29599 | wxPyEndAllowThreads(__tstate); | |
29600 | if (PyErr_Occurred()) SWIG_fail; | |
29601 | } | |
29602 | { | |
29603 | resultobj = wxPyMake_wxObject(result); | |
29604 | } | |
29605 | return resultobj; | |
29606 | fail: | |
29607 | return NULL; | |
29608 | } | |
29609 | ||
29610 | ||
29611 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29612 | PyObject *resultobj; | |
29613 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29614 | int arg2 ; | |
29615 | bool result; | |
29616 | PyObject * obj0 = 0 ; | |
29617 | PyObject * obj1 = 0 ; | |
29618 | char *kwnames[] = { | |
29619 | (char *) "self",(char *) "id", NULL | |
29620 | }; | |
29621 | ||
29622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; | |
29623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29625 | arg2 = (int) SWIG_AsInt(obj1); | |
29626 | if (PyErr_Occurred()) SWIG_fail; | |
29627 | { | |
29628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29629 | result = (bool)(arg1)->Delete(arg2); | |
29630 | ||
29631 | wxPyEndAllowThreads(__tstate); | |
29632 | if (PyErr_Occurred()) SWIG_fail; | |
29633 | } | |
29634 | { | |
29635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29636 | } | |
29637 | return resultobj; | |
29638 | fail: | |
29639 | return NULL; | |
29640 | } | |
29641 | ||
29642 | ||
29643 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29644 | PyObject *resultobj; | |
29645 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29646 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29647 | bool result; | |
29648 | PyObject * obj0 = 0 ; | |
29649 | PyObject * obj1 = 0 ; | |
29650 | char *kwnames[] = { | |
29651 | (char *) "self",(char *) "item", NULL | |
29652 | }; | |
29653 | ||
29654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
29655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29659 | { | |
29660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29661 | result = (bool)(arg1)->Delete(arg2); | |
29662 | ||
29663 | wxPyEndAllowThreads(__tstate); | |
29664 | if (PyErr_Occurred()) SWIG_fail; | |
29665 | } | |
29666 | { | |
29667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29668 | } | |
29669 | return resultobj; | |
29670 | fail: | |
29671 | return NULL; | |
29672 | } | |
29673 | ||
29674 | ||
29675 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29676 | PyObject *resultobj; | |
29677 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29678 | PyObject * obj0 = 0 ; | |
29679 | char *kwnames[] = { | |
29680 | (char *) "self", NULL | |
29681 | }; | |
29682 | ||
29683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
29684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29686 | { | |
29687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29688 | wxMenu_Destroy(arg1); | |
29689 | ||
29690 | wxPyEndAllowThreads(__tstate); | |
29691 | if (PyErr_Occurred()) SWIG_fail; | |
29692 | } | |
29693 | Py_INCREF(Py_None); resultobj = Py_None; | |
29694 | return resultobj; | |
29695 | fail: | |
29696 | return NULL; | |
29697 | } | |
29698 | ||
29699 | ||
29700 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29701 | PyObject *resultobj; | |
29702 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29703 | int arg2 ; | |
29704 | bool result; | |
29705 | PyObject * obj0 = 0 ; | |
29706 | PyObject * obj1 = 0 ; | |
29707 | char *kwnames[] = { | |
29708 | (char *) "self",(char *) "id", NULL | |
29709 | }; | |
29710 | ||
29711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; | |
29712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29714 | arg2 = (int) SWIG_AsInt(obj1); | |
29715 | if (PyErr_Occurred()) SWIG_fail; | |
29716 | { | |
29717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29718 | result = (bool)(arg1)->Destroy(arg2); | |
29719 | ||
29720 | wxPyEndAllowThreads(__tstate); | |
29721 | if (PyErr_Occurred()) SWIG_fail; | |
29722 | } | |
29723 | { | |
29724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29725 | } | |
29726 | return resultobj; | |
29727 | fail: | |
29728 | return NULL; | |
29729 | } | |
29730 | ||
29731 | ||
29732 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29733 | PyObject *resultobj; | |
29734 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29735 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29736 | bool result; | |
29737 | PyObject * obj0 = 0 ; | |
29738 | PyObject * obj1 = 0 ; | |
29739 | char *kwnames[] = { | |
29740 | (char *) "self",(char *) "item", NULL | |
29741 | }; | |
29742 | ||
29743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
29744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29746 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29748 | { | |
29749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29750 | result = (bool)(arg1)->Destroy(arg2); | |
29751 | ||
29752 | wxPyEndAllowThreads(__tstate); | |
29753 | if (PyErr_Occurred()) SWIG_fail; | |
29754 | } | |
29755 | { | |
29756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29757 | } | |
29758 | return resultobj; | |
29759 | fail: | |
29760 | return NULL; | |
29761 | } | |
29762 | ||
29763 | ||
29764 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29765 | PyObject *resultobj; | |
29766 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29767 | size_t result; | |
29768 | PyObject * obj0 = 0 ; | |
29769 | char *kwnames[] = { | |
29770 | (char *) "self", NULL | |
29771 | }; | |
29772 | ||
29773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
29774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29776 | { | |
29777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29778 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
29779 | ||
29780 | wxPyEndAllowThreads(__tstate); | |
29781 | if (PyErr_Occurred()) SWIG_fail; | |
29782 | } | |
29783 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
29784 | return resultobj; | |
29785 | fail: | |
29786 | return NULL; | |
29787 | } | |
29788 | ||
29789 | ||
29790 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29791 | PyObject *resultobj; | |
29792 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29793 | PyObject *result; | |
29794 | PyObject * obj0 = 0 ; | |
29795 | char *kwnames[] = { | |
29796 | (char *) "self", NULL | |
29797 | }; | |
29798 | ||
29799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
29800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29802 | { | |
29803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29804 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
29805 | ||
29806 | wxPyEndAllowThreads(__tstate); | |
29807 | if (PyErr_Occurred()) SWIG_fail; | |
29808 | } | |
29809 | resultobj = result; | |
29810 | return resultobj; | |
29811 | fail: | |
29812 | return NULL; | |
29813 | } | |
29814 | ||
29815 | ||
29816 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29817 | PyObject *resultobj; | |
29818 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29819 | wxString *arg2 = 0 ; | |
29820 | int result; | |
29821 | bool temp2 = False ; | |
29822 | PyObject * obj0 = 0 ; | |
29823 | PyObject * obj1 = 0 ; | |
29824 | char *kwnames[] = { | |
29825 | (char *) "self",(char *) "item", NULL | |
29826 | }; | |
29827 | ||
29828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
29829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29831 | { | |
29832 | arg2 = wxString_in_helper(obj1); | |
29833 | if (arg2 == NULL) SWIG_fail; | |
29834 | temp2 = True; | |
29835 | } | |
29836 | { | |
29837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29838 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
29839 | ||
29840 | wxPyEndAllowThreads(__tstate); | |
29841 | if (PyErr_Occurred()) SWIG_fail; | |
29842 | } | |
29843 | resultobj = SWIG_FromInt((int)result); | |
29844 | { | |
29845 | if (temp2) | |
29846 | delete arg2; | |
29847 | } | |
29848 | return resultobj; | |
29849 | fail: | |
29850 | { | |
29851 | if (temp2) | |
29852 | delete arg2; | |
29853 | } | |
29854 | return NULL; | |
29855 | } | |
29856 | ||
29857 | ||
29858 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29859 | PyObject *resultobj; | |
29860 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29861 | int arg2 ; | |
29862 | wxMenuItem *result; | |
29863 | PyObject * obj0 = 0 ; | |
29864 | PyObject * obj1 = 0 ; | |
29865 | char *kwnames[] = { | |
29866 | (char *) "self",(char *) "id", NULL | |
29867 | }; | |
29868 | ||
29869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
29870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29872 | arg2 = (int) SWIG_AsInt(obj1); | |
29873 | if (PyErr_Occurred()) SWIG_fail; | |
29874 | { | |
29875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29876 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
29877 | ||
29878 | wxPyEndAllowThreads(__tstate); | |
29879 | if (PyErr_Occurred()) SWIG_fail; | |
29880 | } | |
29881 | { | |
29882 | resultobj = wxPyMake_wxObject(result); | |
29883 | } | |
29884 | return resultobj; | |
29885 | fail: | |
29886 | return NULL; | |
29887 | } | |
29888 | ||
29889 | ||
29890 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29891 | PyObject *resultobj; | |
29892 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29893 | size_t arg2 ; | |
29894 | wxMenuItem *result; | |
29895 | PyObject * obj0 = 0 ; | |
29896 | PyObject * obj1 = 0 ; | |
29897 | char *kwnames[] = { | |
29898 | (char *) "self",(char *) "position", NULL | |
29899 | }; | |
29900 | ||
29901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
29902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29904 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29905 | if (PyErr_Occurred()) SWIG_fail; | |
29906 | { | |
29907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29908 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
29909 | ||
29910 | wxPyEndAllowThreads(__tstate); | |
29911 | if (PyErr_Occurred()) SWIG_fail; | |
29912 | } | |
29913 | { | |
29914 | resultobj = wxPyMake_wxObject(result); | |
29915 | } | |
29916 | return resultobj; | |
29917 | fail: | |
29918 | return NULL; | |
29919 | } | |
29920 | ||
29921 | ||
29922 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29923 | PyObject *resultobj; | |
29924 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29925 | int arg2 ; | |
29926 | bool arg3 ; | |
29927 | PyObject * obj0 = 0 ; | |
29928 | PyObject * obj1 = 0 ; | |
29929 | PyObject * obj2 = 0 ; | |
29930 | char *kwnames[] = { | |
29931 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
29932 | }; | |
29933 | ||
29934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29937 | arg2 = (int) SWIG_AsInt(obj1); | |
29938 | if (PyErr_Occurred()) SWIG_fail; | |
29939 | arg3 = (bool) SWIG_AsBool(obj2); | |
29940 | if (PyErr_Occurred()) SWIG_fail; | |
29941 | { | |
29942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29943 | (arg1)->Enable(arg2,arg3); | |
29944 | ||
29945 | wxPyEndAllowThreads(__tstate); | |
29946 | if (PyErr_Occurred()) SWIG_fail; | |
29947 | } | |
29948 | Py_INCREF(Py_None); resultobj = Py_None; | |
29949 | return resultobj; | |
29950 | fail: | |
29951 | return NULL; | |
29952 | } | |
29953 | ||
29954 | ||
29955 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29956 | PyObject *resultobj; | |
29957 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29958 | int arg2 ; | |
29959 | bool result; | |
29960 | PyObject * obj0 = 0 ; | |
29961 | PyObject * obj1 = 0 ; | |
29962 | char *kwnames[] = { | |
29963 | (char *) "self",(char *) "id", NULL | |
29964 | }; | |
29965 | ||
29966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
29967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29969 | arg2 = (int) SWIG_AsInt(obj1); | |
29970 | if (PyErr_Occurred()) SWIG_fail; | |
29971 | { | |
29972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29973 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
29974 | ||
29975 | wxPyEndAllowThreads(__tstate); | |
29976 | if (PyErr_Occurred()) SWIG_fail; | |
29977 | } | |
29978 | { | |
29979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29980 | } | |
29981 | return resultobj; | |
29982 | fail: | |
29983 | return NULL; | |
29984 | } | |
29985 | ||
29986 | ||
29987 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29988 | PyObject *resultobj; | |
29989 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29990 | int arg2 ; | |
29991 | bool arg3 ; | |
29992 | PyObject * obj0 = 0 ; | |
29993 | PyObject * obj1 = 0 ; | |
29994 | PyObject * obj2 = 0 ; | |
29995 | char *kwnames[] = { | |
29996 | (char *) "self",(char *) "id",(char *) "check", NULL | |
29997 | }; | |
29998 | ||
29999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30002 | arg2 = (int) SWIG_AsInt(obj1); | |
30003 | if (PyErr_Occurred()) SWIG_fail; | |
30004 | arg3 = (bool) SWIG_AsBool(obj2); | |
30005 | if (PyErr_Occurred()) SWIG_fail; | |
30006 | { | |
30007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30008 | (arg1)->Check(arg2,arg3); | |
30009 | ||
30010 | wxPyEndAllowThreads(__tstate); | |
30011 | if (PyErr_Occurred()) SWIG_fail; | |
30012 | } | |
30013 | Py_INCREF(Py_None); resultobj = Py_None; | |
30014 | return resultobj; | |
30015 | fail: | |
30016 | return NULL; | |
30017 | } | |
30018 | ||
30019 | ||
30020 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30021 | PyObject *resultobj; | |
30022 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30023 | int arg2 ; | |
30024 | bool result; | |
30025 | PyObject * obj0 = 0 ; | |
30026 | PyObject * obj1 = 0 ; | |
30027 | char *kwnames[] = { | |
30028 | (char *) "self",(char *) "id", NULL | |
30029 | }; | |
30030 | ||
30031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
30032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30034 | arg2 = (int) SWIG_AsInt(obj1); | |
30035 | if (PyErr_Occurred()) SWIG_fail; | |
30036 | { | |
30037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30038 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
30039 | ||
30040 | wxPyEndAllowThreads(__tstate); | |
30041 | if (PyErr_Occurred()) SWIG_fail; | |
30042 | } | |
30043 | { | |
30044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30045 | } | |
30046 | return resultobj; | |
30047 | fail: | |
30048 | return NULL; | |
30049 | } | |
30050 | ||
30051 | ||
30052 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30053 | PyObject *resultobj; | |
30054 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30055 | int arg2 ; | |
30056 | wxString *arg3 = 0 ; | |
30057 | bool temp3 = False ; | |
30058 | PyObject * obj0 = 0 ; | |
30059 | PyObject * obj1 = 0 ; | |
30060 | PyObject * obj2 = 0 ; | |
30061 | char *kwnames[] = { | |
30062 | (char *) "self",(char *) "id",(char *) "label", NULL | |
30063 | }; | |
30064 | ||
30065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30068 | arg2 = (int) SWIG_AsInt(obj1); | |
30069 | if (PyErr_Occurred()) SWIG_fail; | |
30070 | { | |
30071 | arg3 = wxString_in_helper(obj2); | |
30072 | if (arg3 == NULL) SWIG_fail; | |
30073 | temp3 = True; | |
30074 | } | |
30075 | { | |
30076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30077 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
30078 | ||
30079 | wxPyEndAllowThreads(__tstate); | |
30080 | if (PyErr_Occurred()) SWIG_fail; | |
30081 | } | |
30082 | Py_INCREF(Py_None); resultobj = Py_None; | |
30083 | { | |
30084 | if (temp3) | |
30085 | delete arg3; | |
30086 | } | |
30087 | return resultobj; | |
30088 | fail: | |
30089 | { | |
30090 | if (temp3) | |
30091 | delete arg3; | |
30092 | } | |
30093 | return NULL; | |
30094 | } | |
30095 | ||
30096 | ||
30097 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30098 | PyObject *resultobj; | |
30099 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30100 | int arg2 ; | |
30101 | wxString result; | |
30102 | PyObject * obj0 = 0 ; | |
30103 | PyObject * obj1 = 0 ; | |
30104 | char *kwnames[] = { | |
30105 | (char *) "self",(char *) "id", NULL | |
30106 | }; | |
30107 | ||
30108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
30109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30111 | arg2 = (int) SWIG_AsInt(obj1); | |
30112 | if (PyErr_Occurred()) SWIG_fail; | |
30113 | { | |
30114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30115 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
30116 | ||
30117 | wxPyEndAllowThreads(__tstate); | |
30118 | if (PyErr_Occurred()) SWIG_fail; | |
30119 | } | |
30120 | { | |
30121 | #if wxUSE_UNICODE | |
30122 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30123 | #else | |
30124 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30125 | #endif | |
30126 | } | |
30127 | return resultobj; | |
30128 | fail: | |
30129 | return NULL; | |
30130 | } | |
30131 | ||
30132 | ||
30133 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30134 | PyObject *resultobj; | |
30135 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30136 | int arg2 ; | |
30137 | wxString *arg3 = 0 ; | |
30138 | bool temp3 = False ; | |
30139 | PyObject * obj0 = 0 ; | |
30140 | PyObject * obj1 = 0 ; | |
30141 | PyObject * obj2 = 0 ; | |
30142 | char *kwnames[] = { | |
30143 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
30144 | }; | |
30145 | ||
30146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30149 | arg2 = (int) SWIG_AsInt(obj1); | |
30150 | if (PyErr_Occurred()) SWIG_fail; | |
30151 | { | |
30152 | arg3 = wxString_in_helper(obj2); | |
30153 | if (arg3 == NULL) SWIG_fail; | |
30154 | temp3 = True; | |
30155 | } | |
30156 | { | |
30157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30158 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
30159 | ||
30160 | wxPyEndAllowThreads(__tstate); | |
30161 | if (PyErr_Occurred()) SWIG_fail; | |
30162 | } | |
30163 | Py_INCREF(Py_None); resultobj = Py_None; | |
30164 | { | |
30165 | if (temp3) | |
30166 | delete arg3; | |
30167 | } | |
30168 | return resultobj; | |
30169 | fail: | |
30170 | { | |
30171 | if (temp3) | |
30172 | delete arg3; | |
30173 | } | |
30174 | return NULL; | |
30175 | } | |
30176 | ||
30177 | ||
30178 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30179 | PyObject *resultobj; | |
30180 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30181 | int arg2 ; | |
30182 | wxString result; | |
30183 | PyObject * obj0 = 0 ; | |
30184 | PyObject * obj1 = 0 ; | |
30185 | char *kwnames[] = { | |
30186 | (char *) "self",(char *) "id", NULL | |
30187 | }; | |
30188 | ||
30189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
30190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30192 | arg2 = (int) SWIG_AsInt(obj1); | |
30193 | if (PyErr_Occurred()) SWIG_fail; | |
30194 | { | |
30195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30196 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
30197 | ||
30198 | wxPyEndAllowThreads(__tstate); | |
30199 | if (PyErr_Occurred()) SWIG_fail; | |
30200 | } | |
30201 | { | |
30202 | #if wxUSE_UNICODE | |
30203 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30204 | #else | |
30205 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30206 | #endif | |
30207 | } | |
30208 | return resultobj; | |
30209 | fail: | |
30210 | return NULL; | |
30211 | } | |
30212 | ||
30213 | ||
30214 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30215 | PyObject *resultobj; | |
30216 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30217 | wxString *arg2 = 0 ; | |
30218 | bool temp2 = False ; | |
30219 | PyObject * obj0 = 0 ; | |
30220 | PyObject * obj1 = 0 ; | |
30221 | char *kwnames[] = { | |
30222 | (char *) "self",(char *) "title", NULL | |
30223 | }; | |
30224 | ||
30225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
30226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30228 | { | |
30229 | arg2 = wxString_in_helper(obj1); | |
30230 | if (arg2 == NULL) SWIG_fail; | |
30231 | temp2 = True; | |
30232 | } | |
30233 | { | |
30234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30235 | (arg1)->SetTitle((wxString const &)*arg2); | |
30236 | ||
30237 | wxPyEndAllowThreads(__tstate); | |
30238 | if (PyErr_Occurred()) SWIG_fail; | |
30239 | } | |
30240 | Py_INCREF(Py_None); resultobj = Py_None; | |
30241 | { | |
30242 | if (temp2) | |
30243 | delete arg2; | |
30244 | } | |
30245 | return resultobj; | |
30246 | fail: | |
30247 | { | |
30248 | if (temp2) | |
30249 | delete arg2; | |
30250 | } | |
30251 | return NULL; | |
30252 | } | |
30253 | ||
30254 | ||
30255 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30256 | PyObject *resultobj; | |
30257 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30258 | wxString result; | |
30259 | PyObject * obj0 = 0 ; | |
30260 | char *kwnames[] = { | |
30261 | (char *) "self", NULL | |
30262 | }; | |
30263 | ||
30264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
30265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30267 | { | |
30268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30269 | result = ((wxMenu const *)arg1)->GetTitle(); | |
30270 | ||
30271 | wxPyEndAllowThreads(__tstate); | |
30272 | if (PyErr_Occurred()) SWIG_fail; | |
30273 | } | |
30274 | { | |
30275 | #if wxUSE_UNICODE | |
30276 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30277 | #else | |
30278 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30279 | #endif | |
30280 | } | |
30281 | return resultobj; | |
30282 | fail: | |
30283 | return NULL; | |
30284 | } | |
30285 | ||
30286 | ||
30287 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30288 | PyObject *resultobj; | |
30289 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30290 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
30291 | PyObject * obj0 = 0 ; | |
30292 | PyObject * obj1 = 0 ; | |
30293 | char *kwnames[] = { | |
30294 | (char *) "self",(char *) "handler", NULL | |
30295 | }; | |
30296 | ||
30297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
30298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30300 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
30301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30302 | { | |
30303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30304 | (arg1)->SetEventHandler(arg2); | |
30305 | ||
30306 | wxPyEndAllowThreads(__tstate); | |
30307 | if (PyErr_Occurred()) SWIG_fail; | |
30308 | } | |
30309 | Py_INCREF(Py_None); resultobj = Py_None; | |
30310 | return resultobj; | |
30311 | fail: | |
30312 | return NULL; | |
30313 | } | |
30314 | ||
30315 | ||
30316 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30317 | PyObject *resultobj; | |
30318 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30319 | wxEvtHandler *result; | |
30320 | PyObject * obj0 = 0 ; | |
30321 | char *kwnames[] = { | |
30322 | (char *) "self", NULL | |
30323 | }; | |
30324 | ||
30325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
30326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30328 | { | |
30329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30330 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
30331 | ||
30332 | wxPyEndAllowThreads(__tstate); | |
30333 | if (PyErr_Occurred()) SWIG_fail; | |
30334 | } | |
30335 | { | |
30336 | resultobj = wxPyMake_wxObject(result); | |
30337 | } | |
30338 | return resultobj; | |
30339 | fail: | |
30340 | return NULL; | |
30341 | } | |
30342 | ||
30343 | ||
30344 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30345 | PyObject *resultobj; | |
30346 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30347 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30348 | PyObject * obj0 = 0 ; | |
30349 | PyObject * obj1 = 0 ; | |
30350 | char *kwnames[] = { | |
30351 | (char *) "self",(char *) "win", NULL | |
30352 | }; | |
30353 | ||
30354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
30355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30357 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30359 | { | |
30360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30361 | (arg1)->SetInvokingWindow(arg2); | |
30362 | ||
30363 | wxPyEndAllowThreads(__tstate); | |
30364 | if (PyErr_Occurred()) SWIG_fail; | |
30365 | } | |
30366 | Py_INCREF(Py_None); resultobj = Py_None; | |
30367 | return resultobj; | |
30368 | fail: | |
30369 | return NULL; | |
30370 | } | |
30371 | ||
30372 | ||
30373 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30374 | PyObject *resultobj; | |
30375 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30376 | wxWindow *result; | |
30377 | PyObject * obj0 = 0 ; | |
30378 | char *kwnames[] = { | |
30379 | (char *) "self", NULL | |
30380 | }; | |
30381 | ||
30382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
30383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30385 | { | |
30386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30387 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
30388 | ||
30389 | wxPyEndAllowThreads(__tstate); | |
30390 | if (PyErr_Occurred()) SWIG_fail; | |
30391 | } | |
30392 | { | |
30393 | resultobj = wxPyMake_wxObject(result); | |
30394 | } | |
30395 | return resultobj; | |
30396 | fail: | |
30397 | return NULL; | |
30398 | } | |
30399 | ||
30400 | ||
30401 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30402 | PyObject *resultobj; | |
30403 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30404 | long result; | |
30405 | PyObject * obj0 = 0 ; | |
30406 | char *kwnames[] = { | |
30407 | (char *) "self", NULL | |
30408 | }; | |
30409 | ||
30410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
30411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30413 | { | |
30414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30415 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
30416 | ||
30417 | wxPyEndAllowThreads(__tstate); | |
30418 | if (PyErr_Occurred()) SWIG_fail; | |
30419 | } | |
30420 | resultobj = SWIG_FromLong((long)result); | |
30421 | return resultobj; | |
30422 | fail: | |
30423 | return NULL; | |
30424 | } | |
30425 | ||
30426 | ||
30427 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30428 | PyObject *resultobj; | |
30429 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30430 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
30431 | PyObject * obj0 = 0 ; | |
30432 | PyObject * obj1 = 0 ; | |
30433 | char *kwnames[] = { | |
30434 | (char *) "self",(char *) "source", NULL | |
30435 | }; | |
30436 | ||
30437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
30438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30440 | if (obj1) { | |
30441 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
30442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30443 | } | |
30444 | { | |
30445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30446 | (arg1)->UpdateUI(arg2); | |
30447 | ||
30448 | wxPyEndAllowThreads(__tstate); | |
30449 | if (PyErr_Occurred()) SWIG_fail; | |
30450 | } | |
30451 | Py_INCREF(Py_None); resultobj = Py_None; | |
30452 | return resultobj; | |
30453 | fail: | |
30454 | return NULL; | |
30455 | } | |
30456 | ||
30457 | ||
30458 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30459 | PyObject *resultobj; | |
30460 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30461 | wxMenuBar *result; | |
30462 | PyObject * obj0 = 0 ; | |
30463 | char *kwnames[] = { | |
30464 | (char *) "self", NULL | |
30465 | }; | |
30466 | ||
30467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
30468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30470 | { | |
30471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30472 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
30473 | ||
30474 | wxPyEndAllowThreads(__tstate); | |
30475 | if (PyErr_Occurred()) SWIG_fail; | |
30476 | } | |
30477 | { | |
30478 | resultobj = wxPyMake_wxObject(result); | |
30479 | } | |
30480 | return resultobj; | |
30481 | fail: | |
30482 | return NULL; | |
30483 | } | |
30484 | ||
30485 | ||
30486 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30487 | PyObject *resultobj; | |
30488 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30489 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
30490 | PyObject * obj0 = 0 ; | |
30491 | PyObject * obj1 = 0 ; | |
30492 | char *kwnames[] = { | |
30493 | (char *) "self",(char *) "menubar", NULL | |
30494 | }; | |
30495 | ||
30496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
30497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30499 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
30500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30501 | { | |
30502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30503 | (arg1)->Attach(arg2); | |
30504 | ||
30505 | wxPyEndAllowThreads(__tstate); | |
30506 | if (PyErr_Occurred()) SWIG_fail; | |
30507 | } | |
30508 | Py_INCREF(Py_None); resultobj = Py_None; | |
30509 | return resultobj; | |
30510 | fail: | |
30511 | return NULL; | |
30512 | } | |
30513 | ||
30514 | ||
30515 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30516 | PyObject *resultobj; | |
30517 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30518 | PyObject * obj0 = 0 ; | |
30519 | char *kwnames[] = { | |
30520 | (char *) "self", NULL | |
30521 | }; | |
30522 | ||
30523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",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 | (arg1)->Detach(); | |
30529 | ||
30530 | wxPyEndAllowThreads(__tstate); | |
30531 | if (PyErr_Occurred()) SWIG_fail; | |
30532 | } | |
30533 | Py_INCREF(Py_None); resultobj = Py_None; | |
30534 | return resultobj; | |
30535 | fail: | |
30536 | return NULL; | |
30537 | } | |
30538 | ||
30539 | ||
30540 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30541 | PyObject *resultobj; | |
30542 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30543 | bool result; | |
30544 | PyObject * obj0 = 0 ; | |
30545 | char *kwnames[] = { | |
30546 | (char *) "self", NULL | |
30547 | }; | |
30548 | ||
30549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
30550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30552 | { | |
30553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30554 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
30555 | ||
30556 | wxPyEndAllowThreads(__tstate); | |
30557 | if (PyErr_Occurred()) SWIG_fail; | |
30558 | } | |
30559 | { | |
30560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30561 | } | |
30562 | return resultobj; | |
30563 | fail: | |
30564 | return NULL; | |
30565 | } | |
30566 | ||
30567 | ||
30568 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30569 | PyObject *resultobj; | |
30570 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30571 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30572 | PyObject * obj0 = 0 ; | |
30573 | PyObject * obj1 = 0 ; | |
30574 | char *kwnames[] = { | |
30575 | (char *) "self",(char *) "parent", NULL | |
30576 | }; | |
30577 | ||
30578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
30579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30581 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30583 | { | |
30584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30585 | (arg1)->SetParent(arg2); | |
30586 | ||
30587 | wxPyEndAllowThreads(__tstate); | |
30588 | if (PyErr_Occurred()) SWIG_fail; | |
30589 | } | |
30590 | Py_INCREF(Py_None); resultobj = Py_None; | |
30591 | return resultobj; | |
30592 | fail: | |
30593 | return NULL; | |
30594 | } | |
30595 | ||
30596 | ||
30597 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30598 | PyObject *resultobj; | |
30599 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30600 | wxMenu *result; | |
30601 | PyObject * obj0 = 0 ; | |
30602 | char *kwnames[] = { | |
30603 | (char *) "self", NULL | |
30604 | }; | |
30605 | ||
30606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
30607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30609 | { | |
30610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30611 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
30612 | ||
30613 | wxPyEndAllowThreads(__tstate); | |
30614 | if (PyErr_Occurred()) SWIG_fail; | |
30615 | } | |
30616 | { | |
30617 | resultobj = wxPyMake_wxObject(result); | |
30618 | } | |
30619 | return resultobj; | |
30620 | fail: | |
30621 | return NULL; | |
30622 | } | |
30623 | ||
30624 | ||
30625 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
30626 | PyObject *obj; | |
30627 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30628 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
30629 | Py_INCREF(obj); | |
30630 | return Py_BuildValue((char *)""); | |
30631 | } | |
30632 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30633 | PyObject *resultobj; | |
30634 | long arg1 = (long) 0 ; | |
30635 | wxMenuBar *result; | |
30636 | PyObject * obj0 = 0 ; | |
30637 | char *kwnames[] = { | |
30638 | (char *) "style", NULL | |
30639 | }; | |
30640 | ||
30641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; | |
30642 | if (obj0) { | |
30643 | arg1 = (long) SWIG_AsLong(obj0); | |
30644 | if (PyErr_Occurred()) SWIG_fail; | |
30645 | } | |
30646 | { | |
0439c23b | 30647 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30649 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
30650 | ||
30651 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 30652 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30653 | } |
30654 | { | |
30655 | resultobj = wxPyMake_wxObject(result); | |
30656 | } | |
30657 | return resultobj; | |
30658 | fail: | |
30659 | return NULL; | |
30660 | } | |
30661 | ||
30662 | ||
30663 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30664 | PyObject *resultobj; | |
30665 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30666 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30667 | wxString *arg3 = 0 ; | |
30668 | bool result; | |
30669 | bool temp3 = False ; | |
30670 | PyObject * obj0 = 0 ; | |
30671 | PyObject * obj1 = 0 ; | |
30672 | PyObject * obj2 = 0 ; | |
30673 | char *kwnames[] = { | |
30674 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
30675 | }; | |
30676 | ||
30677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30680 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30682 | { | |
30683 | arg3 = wxString_in_helper(obj2); | |
30684 | if (arg3 == NULL) SWIG_fail; | |
30685 | temp3 = True; | |
30686 | } | |
30687 | { | |
30688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30689 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
30690 | ||
30691 | wxPyEndAllowThreads(__tstate); | |
30692 | if (PyErr_Occurred()) SWIG_fail; | |
30693 | } | |
30694 | { | |
30695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30696 | } | |
30697 | { | |
30698 | if (temp3) | |
30699 | delete arg3; | |
30700 | } | |
30701 | return resultobj; | |
30702 | fail: | |
30703 | { | |
30704 | if (temp3) | |
30705 | delete arg3; | |
30706 | } | |
30707 | return NULL; | |
30708 | } | |
30709 | ||
30710 | ||
30711 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30712 | PyObject *resultobj; | |
30713 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30714 | size_t arg2 ; | |
30715 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30716 | wxString *arg4 = 0 ; | |
30717 | bool result; | |
30718 | bool temp4 = False ; | |
30719 | PyObject * obj0 = 0 ; | |
30720 | PyObject * obj1 = 0 ; | |
30721 | PyObject * obj2 = 0 ; | |
30722 | PyObject * obj3 = 0 ; | |
30723 | char *kwnames[] = { | |
30724 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30725 | }; | |
30726 | ||
30727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30730 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30731 | if (PyErr_Occurred()) SWIG_fail; | |
30732 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30734 | { | |
30735 | arg4 = wxString_in_helper(obj3); | |
30736 | if (arg4 == NULL) SWIG_fail; | |
30737 | temp4 = True; | |
30738 | } | |
30739 | { | |
30740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30741 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
30742 | ||
30743 | wxPyEndAllowThreads(__tstate); | |
30744 | if (PyErr_Occurred()) SWIG_fail; | |
30745 | } | |
30746 | { | |
30747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30748 | } | |
30749 | { | |
30750 | if (temp4) | |
30751 | delete arg4; | |
30752 | } | |
30753 | return resultobj; | |
30754 | fail: | |
30755 | { | |
30756 | if (temp4) | |
30757 | delete arg4; | |
30758 | } | |
30759 | return NULL; | |
30760 | } | |
30761 | ||
30762 | ||
30763 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30764 | PyObject *resultobj; | |
30765 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30766 | size_t result; | |
30767 | PyObject * obj0 = 0 ; | |
30768 | char *kwnames[] = { | |
30769 | (char *) "self", NULL | |
30770 | }; | |
30771 | ||
30772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
30773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30775 | { | |
30776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30777 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
30778 | ||
30779 | wxPyEndAllowThreads(__tstate); | |
30780 | if (PyErr_Occurred()) SWIG_fail; | |
30781 | } | |
30782 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
30783 | return resultobj; | |
30784 | fail: | |
30785 | return NULL; | |
30786 | } | |
30787 | ||
30788 | ||
30789 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30790 | PyObject *resultobj; | |
30791 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30792 | size_t arg2 ; | |
30793 | wxMenu *result; | |
30794 | PyObject * obj0 = 0 ; | |
30795 | PyObject * obj1 = 0 ; | |
30796 | char *kwnames[] = { | |
30797 | (char *) "self",(char *) "pos", NULL | |
30798 | }; | |
30799 | ||
30800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
30801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30803 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30804 | if (PyErr_Occurred()) SWIG_fail; | |
30805 | { | |
30806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30807 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
30808 | ||
30809 | wxPyEndAllowThreads(__tstate); | |
30810 | if (PyErr_Occurred()) SWIG_fail; | |
30811 | } | |
30812 | { | |
30813 | resultobj = wxPyMake_wxObject(result); | |
30814 | } | |
30815 | return resultobj; | |
30816 | fail: | |
30817 | return NULL; | |
30818 | } | |
30819 | ||
30820 | ||
30821 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30822 | PyObject *resultobj; | |
30823 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30824 | size_t arg2 ; | |
30825 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30826 | wxString *arg4 = 0 ; | |
30827 | wxMenu *result; | |
30828 | bool temp4 = False ; | |
30829 | PyObject * obj0 = 0 ; | |
30830 | PyObject * obj1 = 0 ; | |
30831 | PyObject * obj2 = 0 ; | |
30832 | PyObject * obj3 = 0 ; | |
30833 | char *kwnames[] = { | |
30834 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30835 | }; | |
30836 | ||
30837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30840 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30841 | if (PyErr_Occurred()) SWIG_fail; | |
30842 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30844 | { | |
30845 | arg4 = wxString_in_helper(obj3); | |
30846 | if (arg4 == NULL) SWIG_fail; | |
30847 | temp4 = True; | |
30848 | } | |
30849 | { | |
30850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30851 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
30852 | ||
30853 | wxPyEndAllowThreads(__tstate); | |
30854 | if (PyErr_Occurred()) SWIG_fail; | |
30855 | } | |
30856 | { | |
30857 | resultobj = wxPyMake_wxObject(result); | |
30858 | } | |
30859 | { | |
30860 | if (temp4) | |
30861 | delete arg4; | |
30862 | } | |
30863 | return resultobj; | |
30864 | fail: | |
30865 | { | |
30866 | if (temp4) | |
30867 | delete arg4; | |
30868 | } | |
30869 | return NULL; | |
30870 | } | |
30871 | ||
30872 | ||
30873 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30874 | PyObject *resultobj; | |
30875 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30876 | size_t arg2 ; | |
30877 | wxMenu *result; | |
30878 | PyObject * obj0 = 0 ; | |
30879 | PyObject * obj1 = 0 ; | |
30880 | char *kwnames[] = { | |
30881 | (char *) "self",(char *) "pos", NULL | |
30882 | }; | |
30883 | ||
30884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
30885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30887 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30888 | if (PyErr_Occurred()) SWIG_fail; | |
30889 | { | |
30890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30891 | result = (wxMenu *)(arg1)->Remove(arg2); | |
30892 | ||
30893 | wxPyEndAllowThreads(__tstate); | |
30894 | if (PyErr_Occurred()) SWIG_fail; | |
30895 | } | |
30896 | { | |
30897 | resultobj = wxPyMake_wxObject(result); | |
30898 | } | |
30899 | return resultobj; | |
30900 | fail: | |
30901 | return NULL; | |
30902 | } | |
30903 | ||
30904 | ||
30905 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30906 | PyObject *resultobj; | |
30907 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30908 | size_t arg2 ; | |
30909 | bool arg3 ; | |
30910 | PyObject * obj0 = 0 ; | |
30911 | PyObject * obj1 = 0 ; | |
30912 | PyObject * obj2 = 0 ; | |
30913 | char *kwnames[] = { | |
30914 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
30915 | }; | |
30916 | ||
30917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30920 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30921 | if (PyErr_Occurred()) SWIG_fail; | |
30922 | arg3 = (bool) SWIG_AsBool(obj2); | |
30923 | if (PyErr_Occurred()) SWIG_fail; | |
30924 | { | |
30925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30926 | (arg1)->EnableTop(arg2,arg3); | |
30927 | ||
30928 | wxPyEndAllowThreads(__tstate); | |
30929 | if (PyErr_Occurred()) SWIG_fail; | |
30930 | } | |
30931 | Py_INCREF(Py_None); resultobj = Py_None; | |
30932 | return resultobj; | |
30933 | fail: | |
30934 | return NULL; | |
30935 | } | |
30936 | ||
30937 | ||
30938 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30939 | PyObject *resultobj; | |
30940 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30941 | size_t arg2 ; | |
30942 | bool result; | |
30943 | PyObject * obj0 = 0 ; | |
30944 | PyObject * obj1 = 0 ; | |
30945 | char *kwnames[] = { | |
30946 | (char *) "self",(char *) "pos", NULL | |
30947 | }; | |
30948 | ||
30949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
30950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30952 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30953 | if (PyErr_Occurred()) SWIG_fail; | |
30954 | { | |
30955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30956 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
30957 | ||
30958 | wxPyEndAllowThreads(__tstate); | |
30959 | if (PyErr_Occurred()) SWIG_fail; | |
30960 | } | |
30961 | { | |
30962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30963 | } | |
30964 | return resultobj; | |
30965 | fail: | |
30966 | return NULL; | |
30967 | } | |
30968 | ||
30969 | ||
30970 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30971 | PyObject *resultobj; | |
30972 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30973 | size_t arg2 ; | |
30974 | wxString *arg3 = 0 ; | |
30975 | bool temp3 = False ; | |
30976 | PyObject * obj0 = 0 ; | |
30977 | PyObject * obj1 = 0 ; | |
30978 | PyObject * obj2 = 0 ; | |
30979 | char *kwnames[] = { | |
30980 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
30981 | }; | |
30982 | ||
30983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30986 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30987 | if (PyErr_Occurred()) SWIG_fail; | |
30988 | { | |
30989 | arg3 = wxString_in_helper(obj2); | |
30990 | if (arg3 == NULL) SWIG_fail; | |
30991 | temp3 = True; | |
30992 | } | |
30993 | { | |
30994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30995 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
30996 | ||
30997 | wxPyEndAllowThreads(__tstate); | |
30998 | if (PyErr_Occurred()) SWIG_fail; | |
30999 | } | |
31000 | Py_INCREF(Py_None); resultobj = Py_None; | |
31001 | { | |
31002 | if (temp3) | |
31003 | delete arg3; | |
31004 | } | |
31005 | return resultobj; | |
31006 | fail: | |
31007 | { | |
31008 | if (temp3) | |
31009 | delete arg3; | |
31010 | } | |
31011 | return NULL; | |
31012 | } | |
31013 | ||
31014 | ||
31015 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31016 | PyObject *resultobj; | |
31017 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31018 | size_t arg2 ; | |
31019 | wxString result; | |
31020 | PyObject * obj0 = 0 ; | |
31021 | PyObject * obj1 = 0 ; | |
31022 | char *kwnames[] = { | |
31023 | (char *) "self",(char *) "pos", NULL | |
31024 | }; | |
31025 | ||
31026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
31027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31029 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31030 | if (PyErr_Occurred()) SWIG_fail; | |
31031 | { | |
31032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31033 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
31034 | ||
31035 | wxPyEndAllowThreads(__tstate); | |
31036 | if (PyErr_Occurred()) SWIG_fail; | |
31037 | } | |
31038 | { | |
31039 | #if wxUSE_UNICODE | |
31040 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31041 | #else | |
31042 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31043 | #endif | |
31044 | } | |
31045 | return resultobj; | |
31046 | fail: | |
31047 | return NULL; | |
31048 | } | |
31049 | ||
31050 | ||
31051 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31052 | PyObject *resultobj; | |
31053 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31054 | wxString *arg2 = 0 ; | |
31055 | wxString *arg3 = 0 ; | |
31056 | int result; | |
31057 | bool temp2 = False ; | |
31058 | bool temp3 = False ; | |
31059 | PyObject * obj0 = 0 ; | |
31060 | PyObject * obj1 = 0 ; | |
31061 | PyObject * obj2 = 0 ; | |
31062 | char *kwnames[] = { | |
31063 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
31064 | }; | |
31065 | ||
31066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31069 | { | |
31070 | arg2 = wxString_in_helper(obj1); | |
31071 | if (arg2 == NULL) SWIG_fail; | |
31072 | temp2 = True; | |
31073 | } | |
31074 | { | |
31075 | arg3 = wxString_in_helper(obj2); | |
31076 | if (arg3 == NULL) SWIG_fail; | |
31077 | temp3 = True; | |
31078 | } | |
31079 | { | |
31080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31081 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
31082 | ||
31083 | wxPyEndAllowThreads(__tstate); | |
31084 | if (PyErr_Occurred()) SWIG_fail; | |
31085 | } | |
31086 | resultobj = SWIG_FromInt((int)result); | |
31087 | { | |
31088 | if (temp2) | |
31089 | delete arg2; | |
31090 | } | |
31091 | { | |
31092 | if (temp3) | |
31093 | delete arg3; | |
31094 | } | |
31095 | return resultobj; | |
31096 | fail: | |
31097 | { | |
31098 | if (temp2) | |
31099 | delete arg2; | |
31100 | } | |
31101 | { | |
31102 | if (temp3) | |
31103 | delete arg3; | |
31104 | } | |
31105 | return NULL; | |
31106 | } | |
31107 | ||
31108 | ||
31109 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31110 | PyObject *resultobj; | |
31111 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31112 | int arg2 ; | |
31113 | wxMenuItem *result; | |
31114 | PyObject * obj0 = 0 ; | |
31115 | PyObject * obj1 = 0 ; | |
31116 | char *kwnames[] = { | |
31117 | (char *) "self",(char *) "id", NULL | |
31118 | }; | |
31119 | ||
31120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
31121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31123 | arg2 = (int) SWIG_AsInt(obj1); | |
31124 | if (PyErr_Occurred()) SWIG_fail; | |
31125 | { | |
31126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31127 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
31128 | ||
31129 | wxPyEndAllowThreads(__tstate); | |
31130 | if (PyErr_Occurred()) SWIG_fail; | |
31131 | } | |
31132 | { | |
31133 | resultobj = wxPyMake_wxObject(result); | |
31134 | } | |
31135 | return resultobj; | |
31136 | fail: | |
31137 | return NULL; | |
31138 | } | |
31139 | ||
31140 | ||
31141 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31142 | PyObject *resultobj; | |
31143 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31144 | wxString *arg2 = 0 ; | |
31145 | int result; | |
31146 | bool temp2 = False ; | |
31147 | PyObject * obj0 = 0 ; | |
31148 | PyObject * obj1 = 0 ; | |
31149 | char *kwnames[] = { | |
31150 | (char *) "self",(char *) "title", NULL | |
31151 | }; | |
31152 | ||
31153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
31154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31156 | { | |
31157 | arg2 = wxString_in_helper(obj1); | |
31158 | if (arg2 == NULL) SWIG_fail; | |
31159 | temp2 = True; | |
31160 | } | |
31161 | { | |
31162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31163 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
31164 | ||
31165 | wxPyEndAllowThreads(__tstate); | |
31166 | if (PyErr_Occurred()) SWIG_fail; | |
31167 | } | |
31168 | resultobj = SWIG_FromInt((int)result); | |
31169 | { | |
31170 | if (temp2) | |
31171 | delete arg2; | |
31172 | } | |
31173 | return resultobj; | |
31174 | fail: | |
31175 | { | |
31176 | if (temp2) | |
31177 | delete arg2; | |
31178 | } | |
31179 | return NULL; | |
31180 | } | |
31181 | ||
31182 | ||
31183 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31184 | PyObject *resultobj; | |
31185 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31186 | int arg2 ; | |
31187 | bool arg3 ; | |
31188 | PyObject * obj0 = 0 ; | |
31189 | PyObject * obj1 = 0 ; | |
31190 | PyObject * obj2 = 0 ; | |
31191 | char *kwnames[] = { | |
31192 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
31193 | }; | |
31194 | ||
31195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31198 | arg2 = (int) SWIG_AsInt(obj1); | |
31199 | if (PyErr_Occurred()) SWIG_fail; | |
31200 | arg3 = (bool) SWIG_AsBool(obj2); | |
31201 | if (PyErr_Occurred()) SWIG_fail; | |
31202 | { | |
31203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31204 | (arg1)->Enable(arg2,arg3); | |
31205 | ||
31206 | wxPyEndAllowThreads(__tstate); | |
31207 | if (PyErr_Occurred()) SWIG_fail; | |
31208 | } | |
31209 | Py_INCREF(Py_None); resultobj = Py_None; | |
31210 | return resultobj; | |
31211 | fail: | |
31212 | return NULL; | |
31213 | } | |
31214 | ||
31215 | ||
31216 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31217 | PyObject *resultobj; | |
31218 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31219 | int arg2 ; | |
31220 | bool arg3 ; | |
31221 | PyObject * obj0 = 0 ; | |
31222 | PyObject * obj1 = 0 ; | |
31223 | PyObject * obj2 = 0 ; | |
31224 | char *kwnames[] = { | |
31225 | (char *) "self",(char *) "id",(char *) "check", NULL | |
31226 | }; | |
31227 | ||
31228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31231 | arg2 = (int) SWIG_AsInt(obj1); | |
31232 | if (PyErr_Occurred()) SWIG_fail; | |
31233 | arg3 = (bool) SWIG_AsBool(obj2); | |
31234 | if (PyErr_Occurred()) SWIG_fail; | |
31235 | { | |
31236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31237 | (arg1)->Check(arg2,arg3); | |
31238 | ||
31239 | wxPyEndAllowThreads(__tstate); | |
31240 | if (PyErr_Occurred()) SWIG_fail; | |
31241 | } | |
31242 | Py_INCREF(Py_None); resultobj = Py_None; | |
31243 | return resultobj; | |
31244 | fail: | |
31245 | return NULL; | |
31246 | } | |
31247 | ||
31248 | ||
31249 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31250 | PyObject *resultobj; | |
31251 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31252 | int arg2 ; | |
31253 | bool result; | |
31254 | PyObject * obj0 = 0 ; | |
31255 | PyObject * obj1 = 0 ; | |
31256 | char *kwnames[] = { | |
31257 | (char *) "self",(char *) "id", NULL | |
31258 | }; | |
31259 | ||
31260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
31261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31263 | arg2 = (int) SWIG_AsInt(obj1); | |
31264 | if (PyErr_Occurred()) SWIG_fail; | |
31265 | { | |
31266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31267 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
31268 | ||
31269 | wxPyEndAllowThreads(__tstate); | |
31270 | if (PyErr_Occurred()) SWIG_fail; | |
31271 | } | |
31272 | { | |
31273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31274 | } | |
31275 | return resultobj; | |
31276 | fail: | |
31277 | return NULL; | |
31278 | } | |
31279 | ||
31280 | ||
31281 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31282 | PyObject *resultobj; | |
31283 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31284 | int arg2 ; | |
31285 | bool result; | |
31286 | PyObject * obj0 = 0 ; | |
31287 | PyObject * obj1 = 0 ; | |
31288 | char *kwnames[] = { | |
31289 | (char *) "self",(char *) "id", NULL | |
31290 | }; | |
31291 | ||
31292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
31293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31295 | arg2 = (int) SWIG_AsInt(obj1); | |
31296 | if (PyErr_Occurred()) SWIG_fail; | |
31297 | { | |
31298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31299 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
31300 | ||
31301 | wxPyEndAllowThreads(__tstate); | |
31302 | if (PyErr_Occurred()) SWIG_fail; | |
31303 | } | |
31304 | { | |
31305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31306 | } | |
31307 | return resultobj; | |
31308 | fail: | |
31309 | return NULL; | |
31310 | } | |
31311 | ||
31312 | ||
31313 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31314 | PyObject *resultobj; | |
31315 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31316 | int arg2 ; | |
31317 | wxString *arg3 = 0 ; | |
31318 | bool temp3 = False ; | |
31319 | PyObject * obj0 = 0 ; | |
31320 | PyObject * obj1 = 0 ; | |
31321 | PyObject * obj2 = 0 ; | |
31322 | char *kwnames[] = { | |
31323 | (char *) "self",(char *) "id",(char *) "label", NULL | |
31324 | }; | |
31325 | ||
31326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31329 | arg2 = (int) SWIG_AsInt(obj1); | |
31330 | if (PyErr_Occurred()) SWIG_fail; | |
31331 | { | |
31332 | arg3 = wxString_in_helper(obj2); | |
31333 | if (arg3 == NULL) SWIG_fail; | |
31334 | temp3 = True; | |
31335 | } | |
31336 | { | |
31337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31338 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31339 | ||
31340 | wxPyEndAllowThreads(__tstate); | |
31341 | if (PyErr_Occurred()) SWIG_fail; | |
31342 | } | |
31343 | Py_INCREF(Py_None); resultobj = Py_None; | |
31344 | { | |
31345 | if (temp3) | |
31346 | delete arg3; | |
31347 | } | |
31348 | return resultobj; | |
31349 | fail: | |
31350 | { | |
31351 | if (temp3) | |
31352 | delete arg3; | |
31353 | } | |
31354 | return NULL; | |
31355 | } | |
31356 | ||
31357 | ||
31358 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31359 | PyObject *resultobj; | |
31360 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31361 | int arg2 ; | |
31362 | wxString result; | |
31363 | PyObject * obj0 = 0 ; | |
31364 | PyObject * obj1 = 0 ; | |
31365 | char *kwnames[] = { | |
31366 | (char *) "self",(char *) "id", NULL | |
31367 | }; | |
31368 | ||
31369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31372 | arg2 = (int) SWIG_AsInt(obj1); | |
31373 | if (PyErr_Occurred()) SWIG_fail; | |
31374 | { | |
31375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31376 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
31377 | ||
31378 | wxPyEndAllowThreads(__tstate); | |
31379 | if (PyErr_Occurred()) SWIG_fail; | |
31380 | } | |
31381 | { | |
31382 | #if wxUSE_UNICODE | |
31383 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31384 | #else | |
31385 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31386 | #endif | |
31387 | } | |
31388 | return resultobj; | |
31389 | fail: | |
31390 | return NULL; | |
31391 | } | |
31392 | ||
31393 | ||
31394 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31395 | PyObject *resultobj; | |
31396 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31397 | int arg2 ; | |
31398 | wxString *arg3 = 0 ; | |
31399 | bool temp3 = False ; | |
31400 | PyObject * obj0 = 0 ; | |
31401 | PyObject * obj1 = 0 ; | |
31402 | PyObject * obj2 = 0 ; | |
31403 | char *kwnames[] = { | |
31404 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
31405 | }; | |
31406 | ||
31407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31410 | arg2 = (int) SWIG_AsInt(obj1); | |
31411 | if (PyErr_Occurred()) SWIG_fail; | |
31412 | { | |
31413 | arg3 = wxString_in_helper(obj2); | |
31414 | if (arg3 == NULL) SWIG_fail; | |
31415 | temp3 = True; | |
31416 | } | |
31417 | { | |
31418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31419 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31420 | ||
31421 | wxPyEndAllowThreads(__tstate); | |
31422 | if (PyErr_Occurred()) SWIG_fail; | |
31423 | } | |
31424 | Py_INCREF(Py_None); resultobj = Py_None; | |
31425 | { | |
31426 | if (temp3) | |
31427 | delete arg3; | |
31428 | } | |
31429 | return resultobj; | |
31430 | fail: | |
31431 | { | |
31432 | if (temp3) | |
31433 | delete arg3; | |
31434 | } | |
31435 | return NULL; | |
31436 | } | |
31437 | ||
31438 | ||
31439 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31440 | PyObject *resultobj; | |
31441 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31442 | int arg2 ; | |
31443 | wxString result; | |
31444 | PyObject * obj0 = 0 ; | |
31445 | PyObject * obj1 = 0 ; | |
31446 | char *kwnames[] = { | |
31447 | (char *) "self",(char *) "id", NULL | |
31448 | }; | |
31449 | ||
31450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
31451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31453 | arg2 = (int) SWIG_AsInt(obj1); | |
31454 | if (PyErr_Occurred()) SWIG_fail; | |
31455 | { | |
31456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31457 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
31458 | ||
31459 | wxPyEndAllowThreads(__tstate); | |
31460 | if (PyErr_Occurred()) SWIG_fail; | |
31461 | } | |
31462 | { | |
31463 | #if wxUSE_UNICODE | |
31464 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31465 | #else | |
31466 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31467 | #endif | |
31468 | } | |
31469 | return resultobj; | |
31470 | fail: | |
31471 | return NULL; | |
31472 | } | |
31473 | ||
31474 | ||
31475 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31476 | PyObject *resultobj; | |
31477 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31478 | wxFrame *result; | |
31479 | PyObject * obj0 = 0 ; | |
31480 | char *kwnames[] = { | |
31481 | (char *) "self", NULL | |
31482 | }; | |
31483 | ||
31484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
31485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31487 | { | |
31488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31489 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
31490 | ||
31491 | wxPyEndAllowThreads(__tstate); | |
31492 | if (PyErr_Occurred()) SWIG_fail; | |
31493 | } | |
31494 | { | |
31495 | resultobj = wxPyMake_wxObject(result); | |
31496 | } | |
31497 | return resultobj; | |
31498 | fail: | |
31499 | return NULL; | |
31500 | } | |
31501 | ||
31502 | ||
31503 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31504 | PyObject *resultobj; | |
31505 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31506 | bool result; | |
31507 | PyObject * obj0 = 0 ; | |
31508 | char *kwnames[] = { | |
31509 | (char *) "self", NULL | |
31510 | }; | |
31511 | ||
31512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
31513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31515 | { | |
31516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31517 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
31518 | ||
31519 | wxPyEndAllowThreads(__tstate); | |
31520 | if (PyErr_Occurred()) SWIG_fail; | |
31521 | } | |
31522 | { | |
31523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31524 | } | |
31525 | return resultobj; | |
31526 | fail: | |
31527 | return NULL; | |
31528 | } | |
31529 | ||
31530 | ||
31531 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31532 | PyObject *resultobj; | |
31533 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31534 | wxFrame *arg2 = (wxFrame *) 0 ; | |
31535 | PyObject * obj0 = 0 ; | |
31536 | PyObject * obj1 = 0 ; | |
31537 | char *kwnames[] = { | |
31538 | (char *) "self",(char *) "frame", NULL | |
31539 | }; | |
31540 | ||
31541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
31542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31544 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
31545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31546 | { | |
31547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31548 | (arg1)->Attach(arg2); | |
31549 | ||
31550 | wxPyEndAllowThreads(__tstate); | |
31551 | if (PyErr_Occurred()) SWIG_fail; | |
31552 | } | |
31553 | Py_INCREF(Py_None); resultobj = Py_None; | |
31554 | return resultobj; | |
31555 | fail: | |
31556 | return NULL; | |
31557 | } | |
31558 | ||
31559 | ||
31560 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31561 | PyObject *resultobj; | |
31562 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31563 | PyObject * obj0 = 0 ; | |
31564 | char *kwnames[] = { | |
31565 | (char *) "self", NULL | |
31566 | }; | |
31567 | ||
31568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
31569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31571 | { | |
31572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31573 | (arg1)->Detach(); | |
31574 | ||
31575 | wxPyEndAllowThreads(__tstate); | |
31576 | if (PyErr_Occurred()) SWIG_fail; | |
31577 | } | |
31578 | Py_INCREF(Py_None); resultobj = Py_None; | |
31579 | return resultobj; | |
31580 | fail: | |
31581 | return NULL; | |
31582 | } | |
31583 | ||
31584 | ||
31585 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
31586 | PyObject *obj; | |
31587 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31588 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
31589 | Py_INCREF(obj); | |
31590 | return Py_BuildValue((char *)""); | |
31591 | } | |
31592 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31593 | PyObject *resultobj; | |
31594 | wxMenu *arg1 = (wxMenu *) NULL ; | |
31595 | int arg2 = (int) wxID_ANY ; | |
31596 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
31597 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
31598 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
31599 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31600 | int arg5 = (int) wxITEM_NORMAL ; | |
31601 | wxMenu *arg6 = (wxMenu *) NULL ; | |
31602 | wxMenuItem *result; | |
31603 | bool temp3 = False ; | |
31604 | bool temp4 = False ; | |
31605 | PyObject * obj0 = 0 ; | |
31606 | PyObject * obj1 = 0 ; | |
31607 | PyObject * obj2 = 0 ; | |
31608 | PyObject * obj3 = 0 ; | |
31609 | PyObject * obj4 = 0 ; | |
31610 | PyObject * obj5 = 0 ; | |
31611 | char *kwnames[] = { | |
31612 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
31613 | }; | |
31614 | ||
31615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
31616 | if (obj0) { | |
31617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31619 | } | |
31620 | if (obj1) { | |
31621 | arg2 = (int) SWIG_AsInt(obj1); | |
31622 | if (PyErr_Occurred()) SWIG_fail; | |
31623 | } | |
31624 | if (obj2) { | |
31625 | { | |
31626 | arg3 = wxString_in_helper(obj2); | |
31627 | if (arg3 == NULL) SWIG_fail; | |
31628 | temp3 = True; | |
31629 | } | |
31630 | } | |
31631 | if (obj3) { | |
31632 | { | |
31633 | arg4 = wxString_in_helper(obj3); | |
31634 | if (arg4 == NULL) SWIG_fail; | |
31635 | temp4 = True; | |
31636 | } | |
31637 | } | |
31638 | if (obj4) { | |
31639 | arg5 = (wxItemKind) SWIG_AsInt(obj4); | |
31640 | if (PyErr_Occurred()) SWIG_fail; | |
31641 | } | |
31642 | if (obj5) { | |
31643 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, | |
31644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31645 | } | |
31646 | { | |
31647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31648 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
31649 | ||
31650 | wxPyEndAllowThreads(__tstate); | |
31651 | if (PyErr_Occurred()) SWIG_fail; | |
31652 | } | |
31653 | { | |
31654 | resultobj = wxPyMake_wxObject(result); | |
31655 | } | |
31656 | { | |
31657 | if (temp3) | |
31658 | delete arg3; | |
31659 | } | |
31660 | { | |
31661 | if (temp4) | |
31662 | delete arg4; | |
31663 | } | |
31664 | return resultobj; | |
31665 | fail: | |
31666 | { | |
31667 | if (temp3) | |
31668 | delete arg3; | |
31669 | } | |
31670 | { | |
31671 | if (temp4) | |
31672 | delete arg4; | |
31673 | } | |
31674 | return NULL; | |
31675 | } | |
31676 | ||
31677 | ||
31678 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31679 | PyObject *resultobj; | |
31680 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31681 | wxMenu *result; | |
31682 | PyObject * obj0 = 0 ; | |
31683 | char *kwnames[] = { | |
31684 | (char *) "self", NULL | |
31685 | }; | |
31686 | ||
31687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
31688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31690 | { | |
31691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31692 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
31693 | ||
31694 | wxPyEndAllowThreads(__tstate); | |
31695 | if (PyErr_Occurred()) SWIG_fail; | |
31696 | } | |
31697 | { | |
31698 | resultobj = wxPyMake_wxObject(result); | |
31699 | } | |
31700 | return resultobj; | |
31701 | fail: | |
31702 | return NULL; | |
31703 | } | |
31704 | ||
31705 | ||
31706 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31707 | PyObject *resultobj; | |
31708 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31709 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31710 | PyObject * obj0 = 0 ; | |
31711 | PyObject * obj1 = 0 ; | |
31712 | char *kwnames[] = { | |
31713 | (char *) "self",(char *) "menu", NULL | |
31714 | }; | |
31715 | ||
31716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
31717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31721 | { | |
31722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31723 | (arg1)->SetMenu(arg2); | |
31724 | ||
31725 | wxPyEndAllowThreads(__tstate); | |
31726 | if (PyErr_Occurred()) SWIG_fail; | |
31727 | } | |
31728 | Py_INCREF(Py_None); resultobj = Py_None; | |
31729 | return resultobj; | |
31730 | fail: | |
31731 | return NULL; | |
31732 | } | |
31733 | ||
31734 | ||
31735 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31736 | PyObject *resultobj; | |
31737 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31738 | int arg2 ; | |
31739 | PyObject * obj0 = 0 ; | |
31740 | PyObject * obj1 = 0 ; | |
31741 | char *kwnames[] = { | |
31742 | (char *) "self",(char *) "id", NULL | |
31743 | }; | |
31744 | ||
31745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
31746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31748 | arg2 = (int) SWIG_AsInt(obj1); | |
31749 | if (PyErr_Occurred()) SWIG_fail; | |
31750 | { | |
31751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31752 | (arg1)->SetId(arg2); | |
31753 | ||
31754 | wxPyEndAllowThreads(__tstate); | |
31755 | if (PyErr_Occurred()) SWIG_fail; | |
31756 | } | |
31757 | Py_INCREF(Py_None); resultobj = Py_None; | |
31758 | return resultobj; | |
31759 | fail: | |
31760 | return NULL; | |
31761 | } | |
31762 | ||
31763 | ||
31764 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31765 | PyObject *resultobj; | |
31766 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31767 | int result; | |
31768 | PyObject * obj0 = 0 ; | |
31769 | char *kwnames[] = { | |
31770 | (char *) "self", NULL | |
31771 | }; | |
31772 | ||
31773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
31774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31776 | { | |
31777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31778 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
31779 | ||
31780 | wxPyEndAllowThreads(__tstate); | |
31781 | if (PyErr_Occurred()) SWIG_fail; | |
31782 | } | |
31783 | resultobj = SWIG_FromInt((int)result); | |
31784 | return resultobj; | |
31785 | fail: | |
31786 | return NULL; | |
31787 | } | |
31788 | ||
31789 | ||
31790 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31791 | PyObject *resultobj; | |
31792 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31793 | bool result; | |
31794 | PyObject * obj0 = 0 ; | |
31795 | char *kwnames[] = { | |
31796 | (char *) "self", NULL | |
31797 | }; | |
31798 | ||
31799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
31800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31802 | { | |
31803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31804 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
31805 | ||
31806 | wxPyEndAllowThreads(__tstate); | |
31807 | if (PyErr_Occurred()) SWIG_fail; | |
31808 | } | |
31809 | { | |
31810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31811 | } | |
31812 | return resultobj; | |
31813 | fail: | |
31814 | return NULL; | |
31815 | } | |
31816 | ||
31817 | ||
31818 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31819 | PyObject *resultobj; | |
31820 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31821 | wxString *arg2 = 0 ; | |
31822 | bool temp2 = False ; | |
31823 | PyObject * obj0 = 0 ; | |
31824 | PyObject * obj1 = 0 ; | |
31825 | char *kwnames[] = { | |
31826 | (char *) "self",(char *) "str", NULL | |
31827 | }; | |
31828 | ||
31829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
31830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31832 | { | |
31833 | arg2 = wxString_in_helper(obj1); | |
31834 | if (arg2 == NULL) SWIG_fail; | |
31835 | temp2 = True; | |
31836 | } | |
31837 | { | |
31838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31839 | (arg1)->SetText((wxString const &)*arg2); | |
31840 | ||
31841 | wxPyEndAllowThreads(__tstate); | |
31842 | if (PyErr_Occurred()) SWIG_fail; | |
31843 | } | |
31844 | Py_INCREF(Py_None); resultobj = Py_None; | |
31845 | { | |
31846 | if (temp2) | |
31847 | delete arg2; | |
31848 | } | |
31849 | return resultobj; | |
31850 | fail: | |
31851 | { | |
31852 | if (temp2) | |
31853 | delete arg2; | |
31854 | } | |
31855 | return NULL; | |
31856 | } | |
31857 | ||
31858 | ||
31859 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31860 | PyObject *resultobj; | |
31861 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31862 | wxString result; | |
31863 | PyObject * obj0 = 0 ; | |
31864 | char *kwnames[] = { | |
31865 | (char *) "self", NULL | |
31866 | }; | |
31867 | ||
31868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
31869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31871 | { | |
31872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31873 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
31874 | ||
31875 | wxPyEndAllowThreads(__tstate); | |
31876 | if (PyErr_Occurred()) SWIG_fail; | |
31877 | } | |
31878 | { | |
31879 | #if wxUSE_UNICODE | |
31880 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31881 | #else | |
31882 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31883 | #endif | |
31884 | } | |
31885 | return resultobj; | |
31886 | fail: | |
31887 | return NULL; | |
31888 | } | |
31889 | ||
31890 | ||
31891 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31892 | PyObject *resultobj; | |
31893 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31894 | wxString *result; | |
31895 | PyObject * obj0 = 0 ; | |
31896 | char *kwnames[] = { | |
31897 | (char *) "self", NULL | |
31898 | }; | |
31899 | ||
31900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
31901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31903 | { | |
31904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31905 | { | |
31906 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
31907 | result = (wxString *) &_result_ref; | |
31908 | } | |
31909 | ||
31910 | wxPyEndAllowThreads(__tstate); | |
31911 | if (PyErr_Occurred()) SWIG_fail; | |
31912 | } | |
31913 | { | |
31914 | #if wxUSE_UNICODE | |
31915 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
31916 | #else | |
31917 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
31918 | #endif | |
31919 | } | |
31920 | return resultobj; | |
31921 | fail: | |
31922 | return NULL; | |
31923 | } | |
31924 | ||
31925 | ||
31926 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31927 | PyObject *resultobj; | |
31928 | wxString *arg1 = 0 ; | |
31929 | wxString result; | |
31930 | bool temp1 = False ; | |
31931 | PyObject * obj0 = 0 ; | |
31932 | char *kwnames[] = { | |
31933 | (char *) "text", NULL | |
31934 | }; | |
31935 | ||
31936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
31937 | { | |
31938 | arg1 = wxString_in_helper(obj0); | |
31939 | if (arg1 == NULL) SWIG_fail; | |
31940 | temp1 = True; | |
31941 | } | |
31942 | { | |
31943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31944 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
31945 | ||
31946 | wxPyEndAllowThreads(__tstate); | |
31947 | if (PyErr_Occurred()) SWIG_fail; | |
31948 | } | |
31949 | { | |
31950 | #if wxUSE_UNICODE | |
31951 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31952 | #else | |
31953 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31954 | #endif | |
31955 | } | |
31956 | { | |
31957 | if (temp1) | |
31958 | delete arg1; | |
31959 | } | |
31960 | return resultobj; | |
31961 | fail: | |
31962 | { | |
31963 | if (temp1) | |
31964 | delete arg1; | |
31965 | } | |
31966 | return NULL; | |
31967 | } | |
31968 | ||
31969 | ||
31970 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31971 | PyObject *resultobj; | |
31972 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31973 | int result; | |
31974 | PyObject * obj0 = 0 ; | |
31975 | char *kwnames[] = { | |
31976 | (char *) "self", NULL | |
31977 | }; | |
31978 | ||
31979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
31980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31982 | { | |
31983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31984 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
31985 | ||
31986 | wxPyEndAllowThreads(__tstate); | |
31987 | if (PyErr_Occurred()) SWIG_fail; | |
31988 | } | |
31989 | resultobj = SWIG_FromInt((int)result); | |
31990 | return resultobj; | |
31991 | fail: | |
31992 | return NULL; | |
31993 | } | |
31994 | ||
31995 | ||
31996 | static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31997 | PyObject *resultobj; | |
31998 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31999 | int arg2 ; | |
32000 | PyObject * obj0 = 0 ; | |
32001 | PyObject * obj1 = 0 ; | |
32002 | char *kwnames[] = { | |
32003 | (char *) "self",(char *) "kind", NULL | |
32004 | }; | |
32005 | ||
32006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
32007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32009 | arg2 = (wxItemKind) SWIG_AsInt(obj1); | |
32010 | if (PyErr_Occurred()) SWIG_fail; | |
32011 | { | |
32012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32013 | (arg1)->SetKind((wxItemKind )arg2); | |
32014 | ||
32015 | wxPyEndAllowThreads(__tstate); | |
32016 | if (PyErr_Occurred()) SWIG_fail; | |
32017 | } | |
32018 | Py_INCREF(Py_None); resultobj = Py_None; | |
32019 | return resultobj; | |
32020 | fail: | |
32021 | return NULL; | |
32022 | } | |
32023 | ||
32024 | ||
32025 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32026 | PyObject *resultobj; | |
32027 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32028 | bool arg2 ; | |
32029 | PyObject * obj0 = 0 ; | |
32030 | PyObject * obj1 = 0 ; | |
32031 | char *kwnames[] = { | |
32032 | (char *) "self",(char *) "checkable", NULL | |
32033 | }; | |
32034 | ||
32035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
32036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32038 | arg2 = (bool) SWIG_AsBool(obj1); | |
32039 | if (PyErr_Occurred()) SWIG_fail; | |
32040 | { | |
32041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32042 | (arg1)->SetCheckable(arg2); | |
32043 | ||
32044 | wxPyEndAllowThreads(__tstate); | |
32045 | if (PyErr_Occurred()) SWIG_fail; | |
32046 | } | |
32047 | Py_INCREF(Py_None); resultobj = Py_None; | |
32048 | return resultobj; | |
32049 | fail: | |
32050 | return NULL; | |
32051 | } | |
32052 | ||
32053 | ||
32054 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32055 | PyObject *resultobj; | |
32056 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32057 | bool result; | |
32058 | PyObject * obj0 = 0 ; | |
32059 | char *kwnames[] = { | |
32060 | (char *) "self", NULL | |
32061 | }; | |
32062 | ||
32063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
32064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32066 | { | |
32067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32068 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
32069 | ||
32070 | wxPyEndAllowThreads(__tstate); | |
32071 | if (PyErr_Occurred()) SWIG_fail; | |
32072 | } | |
32073 | { | |
32074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32075 | } | |
32076 | return resultobj; | |
32077 | fail: | |
32078 | return NULL; | |
32079 | } | |
32080 | ||
32081 | ||
32082 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32083 | PyObject *resultobj; | |
32084 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32085 | bool result; | |
32086 | PyObject * obj0 = 0 ; | |
32087 | char *kwnames[] = { | |
32088 | (char *) "self", NULL | |
32089 | }; | |
32090 | ||
32091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
32092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32094 | { | |
32095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32096 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
32097 | ||
32098 | wxPyEndAllowThreads(__tstate); | |
32099 | if (PyErr_Occurred()) SWIG_fail; | |
32100 | } | |
32101 | { | |
32102 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32103 | } | |
32104 | return resultobj; | |
32105 | fail: | |
32106 | return NULL; | |
32107 | } | |
32108 | ||
32109 | ||
32110 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32111 | PyObject *resultobj; | |
32112 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32113 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32114 | PyObject * obj0 = 0 ; | |
32115 | PyObject * obj1 = 0 ; | |
32116 | char *kwnames[] = { | |
32117 | (char *) "self",(char *) "menu", NULL | |
32118 | }; | |
32119 | ||
32120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
32121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32123 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32125 | { | |
32126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32127 | (arg1)->SetSubMenu(arg2); | |
32128 | ||
32129 | wxPyEndAllowThreads(__tstate); | |
32130 | if (PyErr_Occurred()) SWIG_fail; | |
32131 | } | |
32132 | Py_INCREF(Py_None); resultobj = Py_None; | |
32133 | return resultobj; | |
32134 | fail: | |
32135 | return NULL; | |
32136 | } | |
32137 | ||
32138 | ||
32139 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32140 | PyObject *resultobj; | |
32141 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32142 | wxMenu *result; | |
32143 | PyObject * obj0 = 0 ; | |
32144 | char *kwnames[] = { | |
32145 | (char *) "self", NULL | |
32146 | }; | |
32147 | ||
32148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
32149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32151 | { | |
32152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32153 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
32154 | ||
32155 | wxPyEndAllowThreads(__tstate); | |
32156 | if (PyErr_Occurred()) SWIG_fail; | |
32157 | } | |
32158 | { | |
32159 | resultobj = wxPyMake_wxObject(result); | |
32160 | } | |
32161 | return resultobj; | |
32162 | fail: | |
32163 | return NULL; | |
32164 | } | |
32165 | ||
32166 | ||
32167 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32168 | PyObject *resultobj; | |
32169 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32170 | bool arg2 = (bool) True ; | |
32171 | PyObject * obj0 = 0 ; | |
32172 | PyObject * obj1 = 0 ; | |
32173 | char *kwnames[] = { | |
32174 | (char *) "self",(char *) "enable", NULL | |
32175 | }; | |
32176 | ||
32177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
32178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32180 | if (obj1) { | |
32181 | arg2 = (bool) SWIG_AsBool(obj1); | |
32182 | if (PyErr_Occurred()) SWIG_fail; | |
32183 | } | |
32184 | { | |
32185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32186 | (arg1)->Enable(arg2); | |
32187 | ||
32188 | wxPyEndAllowThreads(__tstate); | |
32189 | if (PyErr_Occurred()) SWIG_fail; | |
32190 | } | |
32191 | Py_INCREF(Py_None); resultobj = Py_None; | |
32192 | return resultobj; | |
32193 | fail: | |
32194 | return NULL; | |
32195 | } | |
32196 | ||
32197 | ||
32198 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32199 | PyObject *resultobj; | |
32200 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32201 | bool result; | |
32202 | PyObject * obj0 = 0 ; | |
32203 | char *kwnames[] = { | |
32204 | (char *) "self", NULL | |
32205 | }; | |
32206 | ||
32207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
32208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32210 | { | |
32211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32212 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
32213 | ||
32214 | wxPyEndAllowThreads(__tstate); | |
32215 | if (PyErr_Occurred()) SWIG_fail; | |
32216 | } | |
32217 | { | |
32218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32219 | } | |
32220 | return resultobj; | |
32221 | fail: | |
32222 | return NULL; | |
32223 | } | |
32224 | ||
32225 | ||
32226 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32227 | PyObject *resultobj; | |
32228 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32229 | bool arg2 = (bool) True ; | |
32230 | PyObject * obj0 = 0 ; | |
32231 | PyObject * obj1 = 0 ; | |
32232 | char *kwnames[] = { | |
32233 | (char *) "self",(char *) "check", NULL | |
32234 | }; | |
32235 | ||
32236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
32237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32239 | if (obj1) { | |
32240 | arg2 = (bool) SWIG_AsBool(obj1); | |
32241 | if (PyErr_Occurred()) SWIG_fail; | |
32242 | } | |
32243 | { | |
32244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32245 | (arg1)->Check(arg2); | |
32246 | ||
32247 | wxPyEndAllowThreads(__tstate); | |
32248 | if (PyErr_Occurred()) SWIG_fail; | |
32249 | } | |
32250 | Py_INCREF(Py_None); resultobj = Py_None; | |
32251 | return resultobj; | |
32252 | fail: | |
32253 | return NULL; | |
32254 | } | |
32255 | ||
32256 | ||
32257 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32258 | PyObject *resultobj; | |
32259 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32260 | bool result; | |
32261 | PyObject * obj0 = 0 ; | |
32262 | char *kwnames[] = { | |
32263 | (char *) "self", NULL | |
32264 | }; | |
32265 | ||
32266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
32267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32269 | { | |
32270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32271 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
32272 | ||
32273 | wxPyEndAllowThreads(__tstate); | |
32274 | if (PyErr_Occurred()) SWIG_fail; | |
32275 | } | |
32276 | { | |
32277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32278 | } | |
32279 | return resultobj; | |
32280 | fail: | |
32281 | return NULL; | |
32282 | } | |
32283 | ||
32284 | ||
32285 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32286 | PyObject *resultobj; | |
32287 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32288 | PyObject * obj0 = 0 ; | |
32289 | char *kwnames[] = { | |
32290 | (char *) "self", NULL | |
32291 | }; | |
32292 | ||
32293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
32294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32296 | { | |
32297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32298 | (arg1)->Toggle(); | |
32299 | ||
32300 | wxPyEndAllowThreads(__tstate); | |
32301 | if (PyErr_Occurred()) SWIG_fail; | |
32302 | } | |
32303 | Py_INCREF(Py_None); resultobj = Py_None; | |
32304 | return resultobj; | |
32305 | fail: | |
32306 | return NULL; | |
32307 | } | |
32308 | ||
32309 | ||
32310 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32311 | PyObject *resultobj; | |
32312 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32313 | wxString *arg2 = 0 ; | |
32314 | bool temp2 = False ; | |
32315 | PyObject * obj0 = 0 ; | |
32316 | PyObject * obj1 = 0 ; | |
32317 | char *kwnames[] = { | |
32318 | (char *) "self",(char *) "str", NULL | |
32319 | }; | |
32320 | ||
32321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
32322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32324 | { | |
32325 | arg2 = wxString_in_helper(obj1); | |
32326 | if (arg2 == NULL) SWIG_fail; | |
32327 | temp2 = True; | |
32328 | } | |
32329 | { | |
32330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32331 | (arg1)->SetHelp((wxString const &)*arg2); | |
32332 | ||
32333 | wxPyEndAllowThreads(__tstate); | |
32334 | if (PyErr_Occurred()) SWIG_fail; | |
32335 | } | |
32336 | Py_INCREF(Py_None); resultobj = Py_None; | |
32337 | { | |
32338 | if (temp2) | |
32339 | delete arg2; | |
32340 | } | |
32341 | return resultobj; | |
32342 | fail: | |
32343 | { | |
32344 | if (temp2) | |
32345 | delete arg2; | |
32346 | } | |
32347 | return NULL; | |
32348 | } | |
32349 | ||
32350 | ||
32351 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32352 | PyObject *resultobj; | |
32353 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32354 | wxString *result; | |
32355 | PyObject * obj0 = 0 ; | |
32356 | char *kwnames[] = { | |
32357 | (char *) "self", NULL | |
32358 | }; | |
32359 | ||
32360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
32361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32363 | { | |
32364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32365 | { | |
32366 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
32367 | result = (wxString *) &_result_ref; | |
32368 | } | |
32369 | ||
32370 | wxPyEndAllowThreads(__tstate); | |
32371 | if (PyErr_Occurred()) SWIG_fail; | |
32372 | } | |
32373 | { | |
32374 | #if wxUSE_UNICODE | |
32375 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32376 | #else | |
32377 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32378 | #endif | |
32379 | } | |
32380 | return resultobj; | |
32381 | fail: | |
32382 | return NULL; | |
32383 | } | |
32384 | ||
32385 | ||
32386 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32387 | PyObject *resultobj; | |
32388 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32389 | wxAcceleratorEntry *result; | |
32390 | PyObject * obj0 = 0 ; | |
32391 | char *kwnames[] = { | |
32392 | (char *) "self", NULL | |
32393 | }; | |
32394 | ||
32395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
32396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32398 | { | |
32399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32400 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
32401 | ||
32402 | wxPyEndAllowThreads(__tstate); | |
32403 | if (PyErr_Occurred()) SWIG_fail; | |
32404 | } | |
32405 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
32406 | return resultobj; | |
32407 | fail: | |
32408 | return NULL; | |
32409 | } | |
32410 | ||
32411 | ||
32412 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32413 | PyObject *resultobj; | |
32414 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32415 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
32416 | PyObject * obj0 = 0 ; | |
32417 | PyObject * obj1 = 0 ; | |
32418 | char *kwnames[] = { | |
32419 | (char *) "self",(char *) "accel", NULL | |
32420 | }; | |
32421 | ||
32422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
32423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32425 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
32426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32427 | { | |
32428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32429 | (arg1)->SetAccel(arg2); | |
32430 | ||
32431 | wxPyEndAllowThreads(__tstate); | |
32432 | if (PyErr_Occurred()) SWIG_fail; | |
32433 | } | |
32434 | Py_INCREF(Py_None); resultobj = Py_None; | |
32435 | return resultobj; | |
32436 | fail: | |
32437 | return NULL; | |
32438 | } | |
32439 | ||
32440 | ||
32441 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32442 | PyObject *resultobj; | |
32443 | int result; | |
32444 | char *kwnames[] = { | |
32445 | NULL | |
32446 | }; | |
32447 | ||
32448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
32449 | { | |
32450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32451 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
32452 | ||
32453 | wxPyEndAllowThreads(__tstate); | |
32454 | if (PyErr_Occurred()) SWIG_fail; | |
32455 | } | |
32456 | resultobj = SWIG_FromInt((int)result); | |
32457 | return resultobj; | |
32458 | fail: | |
32459 | return NULL; | |
32460 | } | |
32461 | ||
32462 | ||
32463 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32464 | PyObject *resultobj; | |
32465 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32466 | wxBitmap *arg2 = 0 ; | |
32467 | PyObject * obj0 = 0 ; | |
32468 | PyObject * obj1 = 0 ; | |
32469 | char *kwnames[] = { | |
32470 | (char *) "self",(char *) "bitmap", NULL | |
32471 | }; | |
32472 | ||
32473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
32474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32476 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
32477 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32478 | SWIG_fail; | |
32479 | if (arg2 == NULL) { | |
32480 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32481 | SWIG_fail; | |
32482 | } | |
32483 | { | |
32484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32485 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
32486 | ||
32487 | wxPyEndAllowThreads(__tstate); | |
32488 | if (PyErr_Occurred()) SWIG_fail; | |
32489 | } | |
32490 | Py_INCREF(Py_None); resultobj = Py_None; | |
32491 | return resultobj; | |
32492 | fail: | |
32493 | return NULL; | |
32494 | } | |
32495 | ||
32496 | ||
32497 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32498 | PyObject *resultobj; | |
32499 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32500 | wxBitmap *result; | |
32501 | PyObject * obj0 = 0 ; | |
32502 | char *kwnames[] = { | |
32503 | (char *) "self", NULL | |
32504 | }; | |
32505 | ||
32506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
32507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32509 | { | |
32510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32511 | { | |
32512 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
32513 | result = (wxBitmap *) &_result_ref; | |
32514 | } | |
32515 | ||
32516 | wxPyEndAllowThreads(__tstate); | |
32517 | if (PyErr_Occurred()) SWIG_fail; | |
32518 | } | |
32519 | { | |
32520 | wxBitmap* resultptr = new wxBitmap(*result); | |
32521 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
32522 | } | |
32523 | return resultobj; | |
32524 | fail: | |
32525 | return NULL; | |
32526 | } | |
32527 | ||
32528 | ||
32529 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
32530 | PyObject *obj; | |
32531 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32532 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
32533 | Py_INCREF(obj); | |
32534 | return Py_BuildValue((char *)""); | |
32535 | } | |
32536 | static int _wrap_ControlNameStr_set(PyObject *_val) { | |
32537 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); | |
32538 | return 1; | |
32539 | } | |
32540 | ||
32541 | ||
32542 | static PyObject *_wrap_ControlNameStr_get() { | |
32543 | PyObject *pyobj; | |
32544 | ||
32545 | { | |
32546 | #if wxUSE_UNICODE | |
32547 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32548 | #else | |
32549 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32550 | #endif | |
32551 | } | |
32552 | return pyobj; | |
32553 | } | |
32554 | ||
32555 | ||
32556 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32557 | PyObject *resultobj; | |
32558 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32559 | int arg2 ; | |
32560 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
32561 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32562 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32563 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32564 | long arg5 = (long) 0 ; | |
32565 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32566 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32567 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
32568 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32569 | wxControl *result; | |
32570 | wxPoint temp3 ; | |
32571 | wxSize temp4 ; | |
32572 | bool temp7 = False ; | |
32573 | PyObject * obj0 = 0 ; | |
32574 | PyObject * obj1 = 0 ; | |
32575 | PyObject * obj2 = 0 ; | |
32576 | PyObject * obj3 = 0 ; | |
32577 | PyObject * obj4 = 0 ; | |
32578 | PyObject * obj5 = 0 ; | |
32579 | PyObject * obj6 = 0 ; | |
32580 | char *kwnames[] = { | |
32581 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32582 | }; | |
32583 | ||
32584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
32585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
32586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32587 | arg2 = (int) SWIG_AsInt(obj1); | |
32588 | if (PyErr_Occurred()) SWIG_fail; | |
32589 | if (obj2) { | |
32590 | { | |
32591 | arg3 = &temp3; | |
32592 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32593 | } | |
32594 | } | |
32595 | if (obj3) { | |
32596 | { | |
32597 | arg4 = &temp4; | |
32598 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32599 | } | |
32600 | } | |
32601 | if (obj4) { | |
32602 | arg5 = (long) SWIG_AsLong(obj4); | |
32603 | if (PyErr_Occurred()) SWIG_fail; | |
32604 | } | |
32605 | if (obj5) { | |
32606 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
32607 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32608 | SWIG_fail; | |
32609 | if (arg6 == NULL) { | |
32610 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32611 | SWIG_fail; | |
32612 | } | |
32613 | } | |
32614 | if (obj6) { | |
32615 | { | |
32616 | arg7 = wxString_in_helper(obj6); | |
32617 | if (arg7 == NULL) SWIG_fail; | |
32618 | temp7 = True; | |
32619 | } | |
32620 | } | |
32621 | { | |
0439c23b | 32622 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
32623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32624 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32625 | ||
32626 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 32627 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
32628 | } |
32629 | { | |
32630 | resultobj = wxPyMake_wxObject(result); | |
32631 | } | |
32632 | { | |
32633 | if (temp7) | |
32634 | delete arg7; | |
32635 | } | |
32636 | return resultobj; | |
32637 | fail: | |
32638 | { | |
32639 | if (temp7) | |
32640 | delete arg7; | |
32641 | } | |
32642 | return NULL; | |
32643 | } | |
32644 | ||
32645 | ||
32646 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32647 | PyObject *resultobj; | |
32648 | wxControl *result; | |
32649 | char *kwnames[] = { | |
32650 | NULL | |
32651 | }; | |
32652 | ||
32653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
32654 | { | |
0439c23b | 32655 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
32656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32657 | result = (wxControl *)new wxControl(); | |
32658 | ||
32659 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 32660 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
32661 | } |
32662 | { | |
32663 | resultobj = wxPyMake_wxObject(result); | |
32664 | } | |
32665 | return resultobj; | |
32666 | fail: | |
32667 | return NULL; | |
32668 | } | |
32669 | ||
32670 | ||
32671 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32672 | PyObject *resultobj; | |
32673 | wxControl *arg1 = (wxControl *) 0 ; | |
32674 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32675 | int arg3 ; | |
32676 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
32677 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32678 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32679 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32680 | long arg6 = (long) 0 ; | |
32681 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
32682 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
32683 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
32684 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
32685 | bool result; | |
32686 | wxPoint temp4 ; | |
32687 | wxSize temp5 ; | |
32688 | bool temp8 = False ; | |
32689 | PyObject * obj0 = 0 ; | |
32690 | PyObject * obj1 = 0 ; | |
32691 | PyObject * obj2 = 0 ; | |
32692 | PyObject * obj3 = 0 ; | |
32693 | PyObject * obj4 = 0 ; | |
32694 | PyObject * obj5 = 0 ; | |
32695 | PyObject * obj6 = 0 ; | |
32696 | PyObject * obj7 = 0 ; | |
32697 | char *kwnames[] = { | |
32698 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32699 | }; | |
32700 | ||
32701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
32702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
32703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32704 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
32705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32706 | arg3 = (int) SWIG_AsInt(obj2); | |
32707 | if (PyErr_Occurred()) SWIG_fail; | |
32708 | if (obj3) { | |
32709 | { | |
32710 | arg4 = &temp4; | |
32711 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
32712 | } | |
32713 | } | |
32714 | if (obj4) { | |
32715 | { | |
32716 | arg5 = &temp5; | |
32717 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
32718 | } | |
32719 | } | |
32720 | if (obj5) { | |
32721 | arg6 = (long) SWIG_AsLong(obj5); | |
32722 | if (PyErr_Occurred()) SWIG_fail; | |
32723 | } | |
32724 | if (obj6) { | |
32725 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
32726 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32727 | SWIG_fail; | |
32728 | if (arg7 == NULL) { | |
32729 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32730 | SWIG_fail; | |
32731 | } | |
32732 | } | |
32733 | if (obj7) { | |
32734 | { | |
32735 | arg8 = wxString_in_helper(obj7); | |
32736 | if (arg8 == NULL) SWIG_fail; | |
32737 | temp8 = True; | |
32738 | } | |
32739 | } | |
32740 | { | |
32741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32742 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
32743 | ||
32744 | wxPyEndAllowThreads(__tstate); | |
32745 | if (PyErr_Occurred()) SWIG_fail; | |
32746 | } | |
32747 | { | |
32748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32749 | } | |
32750 | { | |
32751 | if (temp8) | |
32752 | delete arg8; | |
32753 | } | |
32754 | return resultobj; | |
32755 | fail: | |
32756 | { | |
32757 | if (temp8) | |
32758 | delete arg8; | |
32759 | } | |
32760 | return NULL; | |
32761 | } | |
32762 | ||
32763 | ||
32764 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32765 | PyObject *resultobj; | |
32766 | wxControl *arg1 = (wxControl *) 0 ; | |
32767 | wxCommandEvent *arg2 = 0 ; | |
32768 | PyObject * obj0 = 0 ; | |
32769 | PyObject * obj1 = 0 ; | |
32770 | char *kwnames[] = { | |
32771 | (char *) "self",(char *) "event", NULL | |
32772 | }; | |
32773 | ||
32774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
32775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
32776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32777 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
32778 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32779 | SWIG_fail; | |
32780 | if (arg2 == NULL) { | |
32781 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32782 | SWIG_fail; | |
32783 | } | |
32784 | { | |
32785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32786 | (arg1)->Command(*arg2); | |
32787 | ||
32788 | wxPyEndAllowThreads(__tstate); | |
32789 | if (PyErr_Occurred()) SWIG_fail; | |
32790 | } | |
32791 | Py_INCREF(Py_None); resultobj = Py_None; | |
32792 | return resultobj; | |
32793 | fail: | |
32794 | return NULL; | |
32795 | } | |
32796 | ||
32797 | ||
32798 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32799 | PyObject *resultobj; | |
32800 | wxControl *arg1 = (wxControl *) 0 ; | |
32801 | wxString result; | |
32802 | PyObject * obj0 = 0 ; | |
32803 | char *kwnames[] = { | |
32804 | (char *) "self", NULL | |
32805 | }; | |
32806 | ||
32807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
32808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
32809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32810 | { | |
32811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32812 | result = (arg1)->GetLabel(); | |
32813 | ||
32814 | wxPyEndAllowThreads(__tstate); | |
32815 | if (PyErr_Occurred()) SWIG_fail; | |
32816 | } | |
32817 | { | |
32818 | #if wxUSE_UNICODE | |
32819 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32820 | #else | |
32821 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32822 | #endif | |
32823 | } | |
32824 | return resultobj; | |
32825 | fail: | |
32826 | return NULL; | |
32827 | } | |
32828 | ||
32829 | ||
32830 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32831 | PyObject *resultobj; | |
32832 | wxControl *arg1 = (wxControl *) 0 ; | |
32833 | wxString *arg2 = 0 ; | |
32834 | bool temp2 = False ; | |
32835 | PyObject * obj0 = 0 ; | |
32836 | PyObject * obj1 = 0 ; | |
32837 | char *kwnames[] = { | |
32838 | (char *) "self",(char *) "label", NULL | |
32839 | }; | |
32840 | ||
32841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
32842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
32843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32844 | { | |
32845 | arg2 = wxString_in_helper(obj1); | |
32846 | if (arg2 == NULL) SWIG_fail; | |
32847 | temp2 = True; | |
32848 | } | |
32849 | { | |
32850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32851 | (arg1)->SetLabel((wxString const &)*arg2); | |
32852 | ||
32853 | wxPyEndAllowThreads(__tstate); | |
32854 | if (PyErr_Occurred()) SWIG_fail; | |
32855 | } | |
32856 | Py_INCREF(Py_None); resultobj = Py_None; | |
32857 | { | |
32858 | if (temp2) | |
32859 | delete arg2; | |
32860 | } | |
32861 | return resultobj; | |
32862 | fail: | |
32863 | { | |
32864 | if (temp2) | |
32865 | delete arg2; | |
32866 | } | |
32867 | return NULL; | |
32868 | } | |
32869 | ||
32870 | ||
32871 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32872 | PyObject *resultobj; | |
32873 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
32874 | wxVisualAttributes result; | |
32875 | PyObject * obj0 = 0 ; | |
32876 | char *kwnames[] = { | |
32877 | (char *) "variant", NULL | |
32878 | }; | |
32879 | ||
32880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
32881 | if (obj0) { | |
32882 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
32883 | if (PyErr_Occurred()) SWIG_fail; | |
32884 | } | |
32885 | { | |
0439c23b | 32886 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
32887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32888 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
32889 | ||
32890 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 32891 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
32892 | } |
32893 | { | |
32894 | wxVisualAttributes * resultptr; | |
32895 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
32896 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
32897 | } | |
32898 | return resultobj; | |
32899 | fail: | |
32900 | return NULL; | |
32901 | } | |
32902 | ||
32903 | ||
32904 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
32905 | PyObject *obj; | |
32906 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32907 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
32908 | Py_INCREF(obj); | |
32909 | return Py_BuildValue((char *)""); | |
32910 | } | |
32911 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32912 | PyObject *resultobj; | |
32913 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32914 | wxString *arg2 = 0 ; | |
32915 | PyObject *arg3 = (PyObject *) NULL ; | |
32916 | int result; | |
32917 | bool temp2 = False ; | |
32918 | PyObject * obj0 = 0 ; | |
32919 | PyObject * obj1 = 0 ; | |
32920 | PyObject * obj2 = 0 ; | |
32921 | char *kwnames[] = { | |
32922 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
32923 | }; | |
32924 | ||
32925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
32927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32928 | { | |
32929 | arg2 = wxString_in_helper(obj1); | |
32930 | if (arg2 == NULL) SWIG_fail; | |
32931 | temp2 = True; | |
32932 | } | |
32933 | if (obj2) { | |
32934 | arg3 = obj2; | |
32935 | } | |
32936 | { | |
32937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32938 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
32939 | ||
32940 | wxPyEndAllowThreads(__tstate); | |
32941 | if (PyErr_Occurred()) SWIG_fail; | |
32942 | } | |
32943 | resultobj = SWIG_FromInt((int)result); | |
32944 | { | |
32945 | if (temp2) | |
32946 | delete arg2; | |
32947 | } | |
32948 | return resultobj; | |
32949 | fail: | |
32950 | { | |
32951 | if (temp2) | |
32952 | delete arg2; | |
32953 | } | |
32954 | return NULL; | |
32955 | } | |
32956 | ||
32957 | ||
32958 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32959 | PyObject *resultobj; | |
32960 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32961 | wxArrayString *arg2 = 0 ; | |
32962 | bool temp2 = False ; | |
32963 | PyObject * obj0 = 0 ; | |
32964 | PyObject * obj1 = 0 ; | |
32965 | char *kwnames[] = { | |
32966 | (char *) "self",(char *) "strings", NULL | |
32967 | }; | |
32968 | ||
32969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
32970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
32971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32972 | { | |
32973 | if (! PySequence_Check(obj1)) { | |
32974 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
32975 | SWIG_fail; | |
32976 | } | |
32977 | arg2 = new wxArrayString; | |
32978 | temp2 = True; | |
32979 | int i, len=PySequence_Length(obj1); | |
32980 | for (i=0; i<len; i++) { | |
32981 | PyObject* item = PySequence_GetItem(obj1, i); | |
32982 | #if wxUSE_UNICODE | |
32983 | PyObject* str = PyObject_Unicode(item); | |
32984 | #else | |
32985 | PyObject* str = PyObject_Str(item); | |
32986 | #endif | |
32987 | if (PyErr_Occurred()) SWIG_fail; | |
32988 | arg2->Add(Py2wxString(str)); | |
32989 | Py_DECREF(item); | |
32990 | Py_DECREF(str); | |
32991 | } | |
32992 | } | |
32993 | { | |
32994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32995 | (arg1)->Append((wxArrayString const &)*arg2); | |
32996 | ||
32997 | wxPyEndAllowThreads(__tstate); | |
32998 | if (PyErr_Occurred()) SWIG_fail; | |
32999 | } | |
33000 | Py_INCREF(Py_None); resultobj = Py_None; | |
33001 | { | |
33002 | if (temp2) delete arg2; | |
33003 | } | |
33004 | return resultobj; | |
33005 | fail: | |
33006 | { | |
33007 | if (temp2) delete arg2; | |
33008 | } | |
33009 | return NULL; | |
33010 | } | |
33011 | ||
33012 | ||
33013 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33014 | PyObject *resultobj; | |
33015 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33016 | wxString *arg2 = 0 ; | |
33017 | int arg3 ; | |
33018 | PyObject *arg4 = (PyObject *) NULL ; | |
33019 | int result; | |
33020 | bool temp2 = False ; | |
33021 | PyObject * obj0 = 0 ; | |
33022 | PyObject * obj1 = 0 ; | |
33023 | PyObject * obj2 = 0 ; | |
33024 | PyObject * obj3 = 0 ; | |
33025 | char *kwnames[] = { | |
33026 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
33027 | }; | |
33028 | ||
33029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
33030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33032 | { | |
33033 | arg2 = wxString_in_helper(obj1); | |
33034 | if (arg2 == NULL) SWIG_fail; | |
33035 | temp2 = True; | |
33036 | } | |
33037 | arg3 = (int) SWIG_AsInt(obj2); | |
33038 | if (PyErr_Occurred()) SWIG_fail; | |
33039 | if (obj3) { | |
33040 | arg4 = obj3; | |
33041 | } | |
33042 | { | |
33043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33044 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
33045 | ||
33046 | wxPyEndAllowThreads(__tstate); | |
33047 | if (PyErr_Occurred()) SWIG_fail; | |
33048 | } | |
33049 | resultobj = SWIG_FromInt((int)result); | |
33050 | { | |
33051 | if (temp2) | |
33052 | delete arg2; | |
33053 | } | |
33054 | return resultobj; | |
33055 | fail: | |
33056 | { | |
33057 | if (temp2) | |
33058 | delete arg2; | |
33059 | } | |
33060 | return NULL; | |
33061 | } | |
33062 | ||
33063 | ||
33064 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33065 | PyObject *resultobj; | |
33066 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33067 | PyObject * obj0 = 0 ; | |
33068 | char *kwnames[] = { | |
33069 | (char *) "self", NULL | |
33070 | }; | |
33071 | ||
33072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
33073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33075 | { | |
33076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33077 | (arg1)->Clear(); | |
33078 | ||
33079 | wxPyEndAllowThreads(__tstate); | |
33080 | if (PyErr_Occurred()) SWIG_fail; | |
33081 | } | |
33082 | Py_INCREF(Py_None); resultobj = Py_None; | |
33083 | return resultobj; | |
33084 | fail: | |
33085 | return NULL; | |
33086 | } | |
33087 | ||
33088 | ||
33089 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33090 | PyObject *resultobj; | |
33091 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33092 | int arg2 ; | |
33093 | PyObject * obj0 = 0 ; | |
33094 | PyObject * obj1 = 0 ; | |
33095 | char *kwnames[] = { | |
33096 | (char *) "self",(char *) "n", NULL | |
33097 | }; | |
33098 | ||
33099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; | |
33100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33102 | arg2 = (int) SWIG_AsInt(obj1); | |
33103 | if (PyErr_Occurred()) SWIG_fail; | |
33104 | { | |
33105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33106 | (arg1)->Delete(arg2); | |
33107 | ||
33108 | wxPyEndAllowThreads(__tstate); | |
33109 | if (PyErr_Occurred()) SWIG_fail; | |
33110 | } | |
33111 | Py_INCREF(Py_None); resultobj = Py_None; | |
33112 | return resultobj; | |
33113 | fail: | |
33114 | return NULL; | |
33115 | } | |
33116 | ||
33117 | ||
33118 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33119 | PyObject *resultobj; | |
33120 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33121 | int result; | |
33122 | PyObject * obj0 = 0 ; | |
33123 | char *kwnames[] = { | |
33124 | (char *) "self", NULL | |
33125 | }; | |
33126 | ||
33127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
33128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33130 | { | |
33131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33132 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
33133 | ||
33134 | wxPyEndAllowThreads(__tstate); | |
33135 | if (PyErr_Occurred()) SWIG_fail; | |
33136 | } | |
33137 | resultobj = SWIG_FromInt((int)result); | |
33138 | return resultobj; | |
33139 | fail: | |
33140 | return NULL; | |
33141 | } | |
33142 | ||
33143 | ||
33144 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33145 | PyObject *resultobj; | |
33146 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33147 | bool result; | |
33148 | PyObject * obj0 = 0 ; | |
33149 | char *kwnames[] = { | |
33150 | (char *) "self", NULL | |
33151 | }; | |
33152 | ||
33153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
33154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33156 | { | |
33157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33158 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
33159 | ||
33160 | wxPyEndAllowThreads(__tstate); | |
33161 | if (PyErr_Occurred()) SWIG_fail; | |
33162 | } | |
33163 | { | |
33164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33165 | } | |
33166 | return resultobj; | |
33167 | fail: | |
33168 | return NULL; | |
33169 | } | |
33170 | ||
33171 | ||
33172 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33173 | PyObject *resultobj; | |
33174 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33175 | int arg2 ; | |
33176 | wxString result; | |
33177 | PyObject * obj0 = 0 ; | |
33178 | PyObject * obj1 = 0 ; | |
33179 | char *kwnames[] = { | |
33180 | (char *) "self",(char *) "n", NULL | |
33181 | }; | |
33182 | ||
33183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; | |
33184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33186 | arg2 = (int) SWIG_AsInt(obj1); | |
33187 | if (PyErr_Occurred()) SWIG_fail; | |
33188 | { | |
33189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33190 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
33191 | ||
33192 | wxPyEndAllowThreads(__tstate); | |
33193 | if (PyErr_Occurred()) SWIG_fail; | |
33194 | } | |
33195 | { | |
33196 | #if wxUSE_UNICODE | |
33197 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33198 | #else | |
33199 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33200 | #endif | |
33201 | } | |
33202 | return resultobj; | |
33203 | fail: | |
33204 | return NULL; | |
33205 | } | |
33206 | ||
33207 | ||
33208 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33209 | PyObject *resultobj; | |
33210 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33211 | wxArrayString result; | |
33212 | PyObject * obj0 = 0 ; | |
33213 | char *kwnames[] = { | |
33214 | (char *) "self", NULL | |
33215 | }; | |
33216 | ||
33217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
33218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33220 | { | |
33221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33222 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
33223 | ||
33224 | wxPyEndAllowThreads(__tstate); | |
33225 | if (PyErr_Occurred()) SWIG_fail; | |
33226 | } | |
33227 | { | |
33228 | resultobj = wxArrayString2PyList_helper(result); | |
33229 | } | |
33230 | return resultobj; | |
33231 | fail: | |
33232 | return NULL; | |
33233 | } | |
33234 | ||
33235 | ||
33236 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33237 | PyObject *resultobj; | |
33238 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33239 | int arg2 ; | |
33240 | wxString *arg3 = 0 ; | |
33241 | bool temp3 = False ; | |
33242 | PyObject * obj0 = 0 ; | |
33243 | PyObject * obj1 = 0 ; | |
33244 | PyObject * obj2 = 0 ; | |
33245 | char *kwnames[] = { | |
33246 | (char *) "self",(char *) "n",(char *) "s", NULL | |
33247 | }; | |
33248 | ||
33249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33252 | arg2 = (int) SWIG_AsInt(obj1); | |
33253 | if (PyErr_Occurred()) SWIG_fail; | |
33254 | { | |
33255 | arg3 = wxString_in_helper(obj2); | |
33256 | if (arg3 == NULL) SWIG_fail; | |
33257 | temp3 = True; | |
33258 | } | |
33259 | { | |
33260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33261 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
33262 | ||
33263 | wxPyEndAllowThreads(__tstate); | |
33264 | if (PyErr_Occurred()) SWIG_fail; | |
33265 | } | |
33266 | Py_INCREF(Py_None); resultobj = Py_None; | |
33267 | { | |
33268 | if (temp3) | |
33269 | delete arg3; | |
33270 | } | |
33271 | return resultobj; | |
33272 | fail: | |
33273 | { | |
33274 | if (temp3) | |
33275 | delete arg3; | |
33276 | } | |
33277 | return NULL; | |
33278 | } | |
33279 | ||
33280 | ||
33281 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33282 | PyObject *resultobj; | |
33283 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33284 | wxString *arg2 = 0 ; | |
33285 | int result; | |
33286 | bool temp2 = False ; | |
33287 | PyObject * obj0 = 0 ; | |
33288 | PyObject * obj1 = 0 ; | |
33289 | char *kwnames[] = { | |
33290 | (char *) "self",(char *) "s", NULL | |
33291 | }; | |
33292 | ||
33293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
33294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33296 | { | |
33297 | arg2 = wxString_in_helper(obj1); | |
33298 | if (arg2 == NULL) SWIG_fail; | |
33299 | temp2 = True; | |
33300 | } | |
33301 | { | |
33302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33303 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
33304 | ||
33305 | wxPyEndAllowThreads(__tstate); | |
33306 | if (PyErr_Occurred()) SWIG_fail; | |
33307 | } | |
33308 | resultobj = SWIG_FromInt((int)result); | |
33309 | { | |
33310 | if (temp2) | |
33311 | delete arg2; | |
33312 | } | |
33313 | return resultobj; | |
33314 | fail: | |
33315 | { | |
33316 | if (temp2) | |
33317 | delete arg2; | |
33318 | } | |
33319 | return NULL; | |
33320 | } | |
33321 | ||
33322 | ||
33323 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33324 | PyObject *resultobj; | |
33325 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33326 | int arg2 ; | |
33327 | PyObject * obj0 = 0 ; | |
33328 | PyObject * obj1 = 0 ; | |
33329 | char *kwnames[] = { | |
33330 | (char *) "self",(char *) "n", NULL | |
33331 | }; | |
33332 | ||
33333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; | |
33334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33336 | arg2 = (int) SWIG_AsInt(obj1); | |
33337 | if (PyErr_Occurred()) SWIG_fail; | |
33338 | { | |
33339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33340 | (arg1)->Select(arg2); | |
33341 | ||
33342 | wxPyEndAllowThreads(__tstate); | |
33343 | if (PyErr_Occurred()) SWIG_fail; | |
33344 | } | |
33345 | Py_INCREF(Py_None); resultobj = Py_None; | |
33346 | return resultobj; | |
33347 | fail: | |
33348 | return NULL; | |
33349 | } | |
33350 | ||
33351 | ||
33352 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33353 | PyObject *resultobj; | |
33354 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33355 | int result; | |
33356 | PyObject * obj0 = 0 ; | |
33357 | char *kwnames[] = { | |
33358 | (char *) "self", NULL | |
33359 | }; | |
33360 | ||
33361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
33362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33364 | { | |
33365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33366 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
33367 | ||
33368 | wxPyEndAllowThreads(__tstate); | |
33369 | if (PyErr_Occurred()) SWIG_fail; | |
33370 | } | |
33371 | resultobj = SWIG_FromInt((int)result); | |
33372 | return resultobj; | |
33373 | fail: | |
33374 | return NULL; | |
33375 | } | |
33376 | ||
33377 | ||
33378 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33379 | PyObject *resultobj; | |
33380 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33381 | wxString result; | |
33382 | PyObject * obj0 = 0 ; | |
33383 | char *kwnames[] = { | |
33384 | (char *) "self", NULL | |
33385 | }; | |
33386 | ||
33387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
33388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33390 | { | |
33391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33392 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
33393 | ||
33394 | wxPyEndAllowThreads(__tstate); | |
33395 | if (PyErr_Occurred()) SWIG_fail; | |
33396 | } | |
33397 | { | |
33398 | #if wxUSE_UNICODE | |
33399 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33400 | #else | |
33401 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33402 | #endif | |
33403 | } | |
33404 | return resultobj; | |
33405 | fail: | |
33406 | return NULL; | |
33407 | } | |
33408 | ||
33409 | ||
33410 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33411 | PyObject *resultobj; | |
33412 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33413 | int arg2 ; | |
33414 | PyObject *result; | |
33415 | PyObject * obj0 = 0 ; | |
33416 | PyObject * obj1 = 0 ; | |
33417 | char *kwnames[] = { | |
33418 | (char *) "self",(char *) "n", NULL | |
33419 | }; | |
33420 | ||
33421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
33422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33424 | arg2 = (int) SWIG_AsInt(obj1); | |
33425 | if (PyErr_Occurred()) SWIG_fail; | |
33426 | { | |
33427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33428 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
33429 | ||
33430 | wxPyEndAllowThreads(__tstate); | |
33431 | if (PyErr_Occurred()) SWIG_fail; | |
33432 | } | |
33433 | resultobj = result; | |
33434 | return resultobj; | |
33435 | fail: | |
33436 | return NULL; | |
33437 | } | |
33438 | ||
33439 | ||
33440 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33441 | PyObject *resultobj; | |
33442 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33443 | int arg2 ; | |
33444 | PyObject *arg3 = (PyObject *) 0 ; | |
33445 | PyObject * obj0 = 0 ; | |
33446 | PyObject * obj1 = 0 ; | |
33447 | PyObject * obj2 = 0 ; | |
33448 | char *kwnames[] = { | |
33449 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
33450 | }; | |
33451 | ||
33452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33455 | arg2 = (int) SWIG_AsInt(obj1); | |
33456 | if (PyErr_Occurred()) SWIG_fail; | |
33457 | arg3 = obj2; | |
33458 | { | |
33459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33460 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
33461 | ||
33462 | wxPyEndAllowThreads(__tstate); | |
33463 | if (PyErr_Occurred()) SWIG_fail; | |
33464 | } | |
33465 | Py_INCREF(Py_None); resultobj = Py_None; | |
33466 | return resultobj; | |
33467 | fail: | |
33468 | return NULL; | |
33469 | } | |
33470 | ||
33471 | ||
33472 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
33473 | PyObject *obj; | |
33474 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33475 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
33476 | Py_INCREF(obj); | |
33477 | return Py_BuildValue((char *)""); | |
33478 | } | |
33479 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
33480 | PyObject *obj; | |
33481 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33482 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
33483 | Py_INCREF(obj); | |
33484 | return Py_BuildValue((char *)""); | |
33485 | } | |
33486 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33487 | PyObject *resultobj; | |
33488 | wxSizerItem *result; | |
33489 | char *kwnames[] = { | |
33490 | NULL | |
33491 | }; | |
33492 | ||
33493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
33494 | { | |
33495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33496 | result = (wxSizerItem *)new wxSizerItem(); | |
33497 | ||
33498 | wxPyEndAllowThreads(__tstate); | |
33499 | if (PyErr_Occurred()) SWIG_fail; | |
33500 | } | |
33501 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
33502 | return resultobj; | |
33503 | fail: | |
33504 | return NULL; | |
33505 | } | |
33506 | ||
33507 | ||
33508 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33509 | PyObject *resultobj; | |
33510 | int arg1 ; | |
33511 | int arg2 ; | |
33512 | int arg3 ; | |
33513 | int arg4 ; | |
33514 | int arg5 ; | |
33515 | wxObject *arg6 = (wxObject *) 0 ; | |
33516 | wxSizerItem *result; | |
33517 | PyObject * obj0 = 0 ; | |
33518 | PyObject * obj1 = 0 ; | |
33519 | PyObject * obj2 = 0 ; | |
33520 | PyObject * obj3 = 0 ; | |
33521 | PyObject * obj4 = 0 ; | |
33522 | PyObject * obj5 = 0 ; | |
33523 | char *kwnames[] = { | |
33524 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33525 | }; | |
33526 | ||
33527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
33528 | arg1 = (int) SWIG_AsInt(obj0); | |
33529 | if (PyErr_Occurred()) SWIG_fail; | |
33530 | arg2 = (int) SWIG_AsInt(obj1); | |
33531 | if (PyErr_Occurred()) SWIG_fail; | |
33532 | arg3 = (int) SWIG_AsInt(obj2); | |
33533 | if (PyErr_Occurred()) SWIG_fail; | |
33534 | arg4 = (int) SWIG_AsInt(obj3); | |
33535 | if (PyErr_Occurred()) SWIG_fail; | |
33536 | arg5 = (int) SWIG_AsInt(obj4); | |
33537 | if (PyErr_Occurred()) SWIG_fail; | |
33538 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
33539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33540 | { | |
33541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33542 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
33543 | ||
33544 | wxPyEndAllowThreads(__tstate); | |
33545 | if (PyErr_Occurred()) SWIG_fail; | |
33546 | } | |
33547 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
33548 | return resultobj; | |
33549 | fail: | |
33550 | return NULL; | |
33551 | } | |
33552 | ||
33553 | ||
33554 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33555 | PyObject *resultobj; | |
33556 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33557 | int arg2 ; | |
33558 | int arg3 ; | |
33559 | int arg4 ; | |
33560 | wxObject *arg5 = (wxObject *) 0 ; | |
33561 | wxSizerItem *result; | |
33562 | PyObject * obj0 = 0 ; | |
33563 | PyObject * obj1 = 0 ; | |
33564 | PyObject * obj2 = 0 ; | |
33565 | PyObject * obj3 = 0 ; | |
33566 | PyObject * obj4 = 0 ; | |
33567 | char *kwnames[] = { | |
33568 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33569 | }; | |
33570 | ||
33571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
33572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
33573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33574 | arg2 = (int) SWIG_AsInt(obj1); | |
33575 | if (PyErr_Occurred()) SWIG_fail; | |
33576 | arg3 = (int) SWIG_AsInt(obj2); | |
33577 | if (PyErr_Occurred()) SWIG_fail; | |
33578 | arg4 = (int) SWIG_AsInt(obj3); | |
33579 | if (PyErr_Occurred()) SWIG_fail; | |
33580 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
33581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33582 | { | |
33583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33584 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
33585 | ||
33586 | wxPyEndAllowThreads(__tstate); | |
33587 | if (PyErr_Occurred()) SWIG_fail; | |
33588 | } | |
33589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
33590 | return resultobj; | |
33591 | fail: | |
33592 | return NULL; | |
33593 | } | |
33594 | ||
33595 | ||
33596 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33597 | PyObject *resultobj; | |
33598 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33599 | int arg2 ; | |
33600 | int arg3 ; | |
33601 | int arg4 ; | |
33602 | wxObject *arg5 = (wxObject *) 0 ; | |
33603 | wxSizerItem *result; | |
33604 | PyObject * obj0 = 0 ; | |
33605 | PyObject * obj1 = 0 ; | |
33606 | PyObject * obj2 = 0 ; | |
33607 | PyObject * obj3 = 0 ; | |
33608 | PyObject * obj4 = 0 ; | |
33609 | char *kwnames[] = { | |
33610 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33611 | }; | |
33612 | ||
33613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
33614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
33615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33616 | arg2 = (int) SWIG_AsInt(obj1); | |
33617 | if (PyErr_Occurred()) SWIG_fail; | |
33618 | arg3 = (int) SWIG_AsInt(obj2); | |
33619 | if (PyErr_Occurred()) SWIG_fail; | |
33620 | arg4 = (int) SWIG_AsInt(obj3); | |
33621 | if (PyErr_Occurred()) SWIG_fail; | |
33622 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
33623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33624 | { | |
33625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33626 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
33627 | ||
33628 | wxPyEndAllowThreads(__tstate); | |
33629 | if (PyErr_Occurred()) SWIG_fail; | |
33630 | } | |
33631 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
33632 | return resultobj; | |
33633 | fail: | |
33634 | return NULL; | |
33635 | } | |
33636 | ||
33637 | ||
33638 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33639 | PyObject *resultobj; | |
33640 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33641 | PyObject * obj0 = 0 ; | |
33642 | char *kwnames[] = { | |
33643 | (char *) "self", NULL | |
33644 | }; | |
33645 | ||
33646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
33647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
33648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33649 | { | |
33650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33651 | (arg1)->DeleteWindows(); | |
33652 | ||
33653 | wxPyEndAllowThreads(__tstate); | |
33654 | if (PyErr_Occurred()) SWIG_fail; | |
33655 | } | |
33656 | Py_INCREF(Py_None); resultobj = Py_None; | |
33657 | return resultobj; | |
33658 | fail: | |
33659 | return NULL; | |
33660 | } | |
33661 | ||
33662 | ||
33663 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33664 | PyObject *resultobj; | |
33665 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33666 | PyObject * obj0 = 0 ; | |
33667 | char *kwnames[] = { | |
33668 | (char *) "self", NULL | |
33669 | }; | |
33670 | ||
33671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
33672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
33673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33674 | { | |
33675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33676 | (arg1)->DetachSizer(); | |
33677 | ||
33678 | wxPyEndAllowThreads(__tstate); | |
33679 | if (PyErr_Occurred()) SWIG_fail; | |
33680 | } | |
33681 | Py_INCREF(Py_None); resultobj = Py_None; | |
33682 | return resultobj; | |
33683 | fail: | |
33684 | return NULL; | |
33685 | } | |
33686 | ||
33687 | ||
33688 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33689 | PyObject *resultobj; | |
33690 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33691 | wxSize result; | |
33692 | PyObject * obj0 = 0 ; | |
33693 | char *kwnames[] = { | |
33694 | (char *) "self", NULL | |
33695 | }; | |
33696 | ||
33697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
33698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
33699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33700 | { | |
33701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33702 | result = (arg1)->GetSize(); | |
33703 | ||
33704 | wxPyEndAllowThreads(__tstate); | |
33705 | if (PyErr_Occurred()) SWIG_fail; | |
33706 | } | |
33707 | { | |
33708 | wxSize * resultptr; | |
33709 | resultptr = new wxSize((wxSize &) result); | |
33710 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
33711 | } | |
33712 | return resultobj; | |
33713 | fail: | |
33714 | return NULL; | |
33715 | } | |
33716 | ||
33717 | ||
33718 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33719 | PyObject *resultobj; | |
33720 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33721 | wxSize result; | |
33722 | PyObject * obj0 = 0 ; | |
33723 | char *kwnames[] = { | |
33724 | (char *) "self", NULL | |
33725 | }; | |
33726 | ||
33727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
33728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
33729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33730 | { | |
33731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33732 | result = (arg1)->CalcMin(); | |
33733 | ||
33734 | wxPyEndAllowThreads(__tstate); | |
33735 | if (PyErr_Occurred()) SWIG_fail; | |
33736 | } | |
33737 | { | |
33738 | wxSize * resultptr; | |
33739 | resultptr = new wxSize((wxSize &) result); | |
33740 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
33741 | } | |
33742 | return resultobj; | |
33743 | fail: | |
33744 | return NULL; | |
33745 | } | |
33746 | ||
33747 | ||
33748 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33749 | PyObject *resultobj; | |
33750 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33751 | wxPoint arg2 ; | |
33752 | wxSize arg3 ; | |
33753 | wxPoint *argp2 ; | |
33754 | wxSize *argp3 ; | |
33755 | PyObject * obj0 = 0 ; | |
33756 | PyObject * obj1 = 0 ; | |
33757 | PyObject * obj2 = 0 ; | |
33758 | char *kwnames[] = { | |
33759 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
33760 | }; | |
33761 | ||
33762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
33764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33765 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
33766 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33767 | arg2 = *argp2; | |
33768 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
33769 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33770 | arg3 = *argp3; | |
33771 | { | |
33772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33773 | (arg1)->SetDimension(arg2,arg3); | |
33774 | ||
33775 | wxPyEndAllowThreads(__tstate); | |
33776 | if (PyErr_Occurred()) SWIG_fail; | |
33777 | } | |
33778 | Py_INCREF(Py_None); resultobj = Py_None; | |
33779 | return resultobj; | |
33780 | fail: | |
33781 | return NULL; | |
33782 | } | |
33783 | ||
33784 | ||
33785 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33786 | PyObject *resultobj; | |
33787 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33788 | wxSize result; | |
33789 | PyObject * obj0 = 0 ; | |
33790 | char *kwnames[] = { | |
33791 | (char *) "self", NULL | |
33792 | }; | |
33793 | ||
33794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
33795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
33796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33797 | { | |
33798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33799 | result = (arg1)->GetMinSize(); | |
33800 | ||
33801 | wxPyEndAllowThreads(__tstate); | |
33802 | if (PyErr_Occurred()) SWIG_fail; | |
33803 | } | |
33804 | { | |
33805 | wxSize * resultptr; | |
33806 | resultptr = new wxSize((wxSize &) result); | |
33807 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
33808 | } | |
33809 | return resultobj; | |
33810 | fail: | |
33811 | return NULL; | |
33812 | } | |
33813 | ||
33814 | ||
33815 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33816 | PyObject *resultobj; | |
33817 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33818 | int arg2 ; | |
33819 | int arg3 ; | |
33820 | PyObject * obj0 = 0 ; | |
33821 | PyObject * obj1 = 0 ; | |
33822 | PyObject * obj2 = 0 ; | |
33823 | char *kwnames[] = { | |
33824 | (char *) "self",(char *) "x",(char *) "y", NULL | |
33825 | }; | |
33826 | ||
33827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
33829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33830 | arg2 = (int) SWIG_AsInt(obj1); | |
33831 | if (PyErr_Occurred()) SWIG_fail; | |
33832 | arg3 = (int) SWIG_AsInt(obj2); | |
33833 | if (PyErr_Occurred()) SWIG_fail; | |
33834 | { | |
33835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33836 | (arg1)->SetInitSize(arg2,arg3); | |
33837 | ||
33838 | wxPyEndAllowThreads(__tstate); | |
33839 | if (PyErr_Occurred()) SWIG_fail; | |
33840 | } | |
33841 | Py_INCREF(Py_None); resultobj = Py_None; | |
33842 | return resultobj; | |
33843 | fail: | |
33844 | return NULL; | |
33845 | } | |
33846 | ||
33847 | ||
33848 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33849 | PyObject *resultobj; | |
33850 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33851 | int arg2 ; | |
33852 | int arg3 ; | |
33853 | PyObject * obj0 = 0 ; | |
33854 | PyObject * obj1 = 0 ; | |
33855 | PyObject * obj2 = 0 ; | |
33856 | char *kwnames[] = { | |
33857 | (char *) "self",(char *) "width",(char *) "height", NULL | |
33858 | }; | |
33859 | ||
33860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
33862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33863 | arg2 = (int) SWIG_AsInt(obj1); | |
33864 | if (PyErr_Occurred()) SWIG_fail; | |
33865 | arg3 = (int) SWIG_AsInt(obj2); | |
33866 | if (PyErr_Occurred()) SWIG_fail; | |
33867 | { | |
33868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33869 | (arg1)->SetRatio(arg2,arg3); | |
33870 | ||
33871 | wxPyEndAllowThreads(__tstate); | |
33872 | if (PyErr_Occurred()) SWIG_fail; | |
33873 | } | |
33874 | Py_INCREF(Py_None); resultobj = Py_None; | |
33875 | return resultobj; | |
33876 | fail: | |
33877 | return NULL; | |
33878 | } | |
33879 | ||
33880 | ||
33881 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33882 | PyObject *resultobj; | |
33883 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33884 | wxSize arg2 ; | |
33885 | wxSize *argp2 ; | |
33886 | PyObject * obj0 = 0 ; | |
33887 | PyObject * obj1 = 0 ; | |
33888 | char *kwnames[] = { | |
33889 | (char *) "self",(char *) "size", NULL | |
33890 | }; | |
33891 | ||
33892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
33893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
33894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33895 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
33896 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33897 | arg2 = *argp2; | |
33898 | { | |
33899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33900 | (arg1)->SetRatio(arg2); | |
33901 | ||
33902 | wxPyEndAllowThreads(__tstate); | |
33903 | if (PyErr_Occurred()) SWIG_fail; | |
33904 | } | |
33905 | Py_INCREF(Py_None); resultobj = Py_None; | |
33906 | return resultobj; | |
33907 | fail: | |
33908 | return NULL; | |
33909 | } | |
33910 | ||
33911 | ||
33912 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33913 | PyObject *resultobj; | |
33914 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33915 | float arg2 ; | |
33916 | PyObject * obj0 = 0 ; | |
33917 | PyObject * obj1 = 0 ; | |
33918 | char *kwnames[] = { | |
33919 | (char *) "self",(char *) "ratio", NULL | |
33920 | }; | |
33921 | ||
33922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; | |
33923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
33924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33925 | arg2 = (float) SWIG_AsFloat(obj1); | |
33926 | if (PyErr_Occurred()) SWIG_fail; | |
33927 | { | |
33928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33929 | (arg1)->SetRatio(arg2); | |
33930 | ||
33931 | wxPyEndAllowThreads(__tstate); | |
33932 | if (PyErr_Occurred()) SWIG_fail; | |
33933 | } | |
33934 | Py_INCREF(Py_None); resultobj = Py_None; | |
33935 | return resultobj; | |
33936 | fail: | |
33937 | return NULL; | |
33938 | } | |
33939 | ||
33940 | ||
33941 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33942 | PyObject *resultobj; | |
33943 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33944 | float result; | |
33945 | PyObject * obj0 = 0 ; | |
33946 | char *kwnames[] = { | |
33947 | (char *) "self", NULL | |
33948 | }; | |
33949 | ||
33950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
33951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
33952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33953 | { | |
33954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33955 | result = (float)(arg1)->GetRatio(); | |
33956 | ||
33957 | wxPyEndAllowThreads(__tstate); | |
33958 | if (PyErr_Occurred()) SWIG_fail; | |
33959 | } | |
33960 | resultobj = SWIG_FromFloat((float)result); | |
33961 | return resultobj; | |
33962 | fail: | |
33963 | return NULL; | |
33964 | } | |
33965 | ||
33966 | ||
33967 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33968 | PyObject *resultobj; | |
33969 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33970 | bool result; | |
33971 | PyObject * obj0 = 0 ; | |
33972 | char *kwnames[] = { | |
33973 | (char *) "self", NULL | |
33974 | }; | |
33975 | ||
33976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
33977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
33978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33979 | { | |
33980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33981 | result = (bool)(arg1)->IsWindow(); | |
33982 | ||
33983 | wxPyEndAllowThreads(__tstate); | |
33984 | if (PyErr_Occurred()) SWIG_fail; | |
33985 | } | |
33986 | { | |
33987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33988 | } | |
33989 | return resultobj; | |
33990 | fail: | |
33991 | return NULL; | |
33992 | } | |
33993 | ||
33994 | ||
33995 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33996 | PyObject *resultobj; | |
33997 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33998 | bool result; | |
33999 | PyObject * obj0 = 0 ; | |
34000 | char *kwnames[] = { | |
34001 | (char *) "self", NULL | |
34002 | }; | |
34003 | ||
34004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
34005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34007 | { | |
34008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34009 | result = (bool)(arg1)->IsSizer(); | |
34010 | ||
34011 | wxPyEndAllowThreads(__tstate); | |
34012 | if (PyErr_Occurred()) SWIG_fail; | |
34013 | } | |
34014 | { | |
34015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34016 | } | |
34017 | return resultobj; | |
34018 | fail: | |
34019 | return NULL; | |
34020 | } | |
34021 | ||
34022 | ||
34023 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34024 | PyObject *resultobj; | |
34025 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34026 | bool result; | |
34027 | PyObject * obj0 = 0 ; | |
34028 | char *kwnames[] = { | |
34029 | (char *) "self", NULL | |
34030 | }; | |
34031 | ||
34032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
34033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34035 | { | |
34036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34037 | result = (bool)(arg1)->IsSpacer(); | |
34038 | ||
34039 | wxPyEndAllowThreads(__tstate); | |
34040 | if (PyErr_Occurred()) SWIG_fail; | |
34041 | } | |
34042 | { | |
34043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34044 | } | |
34045 | return resultobj; | |
34046 | fail: | |
34047 | return NULL; | |
34048 | } | |
34049 | ||
34050 | ||
34051 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34052 | PyObject *resultobj; | |
34053 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34054 | int arg2 ; | |
34055 | PyObject * obj0 = 0 ; | |
34056 | PyObject * obj1 = 0 ; | |
34057 | char *kwnames[] = { | |
34058 | (char *) "self",(char *) "proportion", NULL | |
34059 | }; | |
34060 | ||
34061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; | |
34062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34064 | arg2 = (int) SWIG_AsInt(obj1); | |
34065 | if (PyErr_Occurred()) SWIG_fail; | |
34066 | { | |
34067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34068 | (arg1)->SetProportion(arg2); | |
34069 | ||
34070 | wxPyEndAllowThreads(__tstate); | |
34071 | if (PyErr_Occurred()) SWIG_fail; | |
34072 | } | |
34073 | Py_INCREF(Py_None); resultobj = Py_None; | |
34074 | return resultobj; | |
34075 | fail: | |
34076 | return NULL; | |
34077 | } | |
34078 | ||
34079 | ||
34080 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34081 | PyObject *resultobj; | |
34082 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34083 | int result; | |
34084 | PyObject * obj0 = 0 ; | |
34085 | char *kwnames[] = { | |
34086 | (char *) "self", NULL | |
34087 | }; | |
34088 | ||
34089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
34090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34092 | { | |
34093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34094 | result = (int)(arg1)->GetProportion(); | |
34095 | ||
34096 | wxPyEndAllowThreads(__tstate); | |
34097 | if (PyErr_Occurred()) SWIG_fail; | |
34098 | } | |
34099 | resultobj = SWIG_FromInt((int)result); | |
34100 | return resultobj; | |
34101 | fail: | |
34102 | return NULL; | |
34103 | } | |
34104 | ||
34105 | ||
34106 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34107 | PyObject *resultobj; | |
34108 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34109 | int arg2 ; | |
34110 | PyObject * obj0 = 0 ; | |
34111 | PyObject * obj1 = 0 ; | |
34112 | char *kwnames[] = { | |
34113 | (char *) "self",(char *) "flag", NULL | |
34114 | }; | |
34115 | ||
34116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; | |
34117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34119 | arg2 = (int) SWIG_AsInt(obj1); | |
34120 | if (PyErr_Occurred()) SWIG_fail; | |
34121 | { | |
34122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34123 | (arg1)->SetFlag(arg2); | |
34124 | ||
34125 | wxPyEndAllowThreads(__tstate); | |
34126 | if (PyErr_Occurred()) SWIG_fail; | |
34127 | } | |
34128 | Py_INCREF(Py_None); resultobj = Py_None; | |
34129 | return resultobj; | |
34130 | fail: | |
34131 | return NULL; | |
34132 | } | |
34133 | ||
34134 | ||
34135 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34136 | PyObject *resultobj; | |
34137 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34138 | int result; | |
34139 | PyObject * obj0 = 0 ; | |
34140 | char *kwnames[] = { | |
34141 | (char *) "self", NULL | |
34142 | }; | |
34143 | ||
34144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
34145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34147 | { | |
34148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34149 | result = (int)(arg1)->GetFlag(); | |
34150 | ||
34151 | wxPyEndAllowThreads(__tstate); | |
34152 | if (PyErr_Occurred()) SWIG_fail; | |
34153 | } | |
34154 | resultobj = SWIG_FromInt((int)result); | |
34155 | return resultobj; | |
34156 | fail: | |
34157 | return NULL; | |
34158 | } | |
34159 | ||
34160 | ||
34161 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34162 | PyObject *resultobj; | |
34163 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34164 | int arg2 ; | |
34165 | PyObject * obj0 = 0 ; | |
34166 | PyObject * obj1 = 0 ; | |
34167 | char *kwnames[] = { | |
34168 | (char *) "self",(char *) "border", NULL | |
34169 | }; | |
34170 | ||
34171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; | |
34172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34174 | arg2 = (int) SWIG_AsInt(obj1); | |
34175 | if (PyErr_Occurred()) SWIG_fail; | |
34176 | { | |
34177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34178 | (arg1)->SetBorder(arg2); | |
34179 | ||
34180 | wxPyEndAllowThreads(__tstate); | |
34181 | if (PyErr_Occurred()) SWIG_fail; | |
34182 | } | |
34183 | Py_INCREF(Py_None); resultobj = Py_None; | |
34184 | return resultobj; | |
34185 | fail: | |
34186 | return NULL; | |
34187 | } | |
34188 | ||
34189 | ||
34190 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34191 | PyObject *resultobj; | |
34192 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34193 | int result; | |
34194 | PyObject * obj0 = 0 ; | |
34195 | char *kwnames[] = { | |
34196 | (char *) "self", NULL | |
34197 | }; | |
34198 | ||
34199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
34200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34202 | { | |
34203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34204 | result = (int)(arg1)->GetBorder(); | |
34205 | ||
34206 | wxPyEndAllowThreads(__tstate); | |
34207 | if (PyErr_Occurred()) SWIG_fail; | |
34208 | } | |
34209 | resultobj = SWIG_FromInt((int)result); | |
34210 | return resultobj; | |
34211 | fail: | |
34212 | return NULL; | |
34213 | } | |
34214 | ||
34215 | ||
34216 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34217 | PyObject *resultobj; | |
34218 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34219 | wxWindow *result; | |
34220 | PyObject * obj0 = 0 ; | |
34221 | char *kwnames[] = { | |
34222 | (char *) "self", NULL | |
34223 | }; | |
34224 | ||
34225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
34226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34228 | { | |
34229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34230 | result = (wxWindow *)(arg1)->GetWindow(); | |
34231 | ||
34232 | wxPyEndAllowThreads(__tstate); | |
34233 | if (PyErr_Occurred()) SWIG_fail; | |
34234 | } | |
34235 | { | |
34236 | resultobj = wxPyMake_wxObject(result); | |
34237 | } | |
34238 | return resultobj; | |
34239 | fail: | |
34240 | return NULL; | |
34241 | } | |
34242 | ||
34243 | ||
34244 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34245 | PyObject *resultobj; | |
34246 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34247 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34248 | PyObject * obj0 = 0 ; | |
34249 | PyObject * obj1 = 0 ; | |
34250 | char *kwnames[] = { | |
34251 | (char *) "self",(char *) "window", NULL | |
34252 | }; | |
34253 | ||
34254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
34255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34259 | { | |
34260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34261 | (arg1)->SetWindow(arg2); | |
34262 | ||
34263 | wxPyEndAllowThreads(__tstate); | |
34264 | if (PyErr_Occurred()) SWIG_fail; | |
34265 | } | |
34266 | Py_INCREF(Py_None); resultobj = Py_None; | |
34267 | return resultobj; | |
34268 | fail: | |
34269 | return NULL; | |
34270 | } | |
34271 | ||
34272 | ||
34273 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34274 | PyObject *resultobj; | |
34275 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34276 | wxSizer *result; | |
34277 | PyObject * obj0 = 0 ; | |
34278 | char *kwnames[] = { | |
34279 | (char *) "self", NULL | |
34280 | }; | |
34281 | ||
34282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
34283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34285 | { | |
34286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34287 | result = (wxSizer *)(arg1)->GetSizer(); | |
34288 | ||
34289 | wxPyEndAllowThreads(__tstate); | |
34290 | if (PyErr_Occurred()) SWIG_fail; | |
34291 | } | |
34292 | { | |
34293 | resultobj = wxPyMake_wxSizer(result); | |
34294 | } | |
34295 | return resultobj; | |
34296 | fail: | |
34297 | return NULL; | |
34298 | } | |
34299 | ||
34300 | ||
34301 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34302 | PyObject *resultobj; | |
34303 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34304 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34305 | PyObject * obj0 = 0 ; | |
34306 | PyObject * obj1 = 0 ; | |
34307 | char *kwnames[] = { | |
34308 | (char *) "self",(char *) "sizer", NULL | |
34309 | }; | |
34310 | ||
34311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
34312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34314 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
34315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34316 | { | |
34317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34318 | (arg1)->SetSizer(arg2); | |
34319 | ||
34320 | wxPyEndAllowThreads(__tstate); | |
34321 | if (PyErr_Occurred()) SWIG_fail; | |
34322 | } | |
34323 | Py_INCREF(Py_None); resultobj = Py_None; | |
34324 | return resultobj; | |
34325 | fail: | |
34326 | return NULL; | |
34327 | } | |
34328 | ||
34329 | ||
34330 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34331 | PyObject *resultobj; | |
34332 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34333 | wxSize *result; | |
34334 | PyObject * obj0 = 0 ; | |
34335 | char *kwnames[] = { | |
34336 | (char *) "self", NULL | |
34337 | }; | |
34338 | ||
34339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
34340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34342 | { | |
34343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34344 | { | |
34345 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
34346 | result = (wxSize *) &_result_ref; | |
34347 | } | |
34348 | ||
34349 | wxPyEndAllowThreads(__tstate); | |
34350 | if (PyErr_Occurred()) SWIG_fail; | |
34351 | } | |
34352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
34353 | return resultobj; | |
34354 | fail: | |
34355 | return NULL; | |
34356 | } | |
34357 | ||
34358 | ||
34359 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34360 | PyObject *resultobj; | |
34361 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34362 | wxSize *arg2 = 0 ; | |
34363 | wxSize temp2 ; | |
34364 | PyObject * obj0 = 0 ; | |
34365 | PyObject * obj1 = 0 ; | |
34366 | char *kwnames[] = { | |
34367 | (char *) "self",(char *) "size", NULL | |
34368 | }; | |
34369 | ||
34370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
34371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34373 | { | |
34374 | arg2 = &temp2; | |
34375 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
34376 | } | |
34377 | { | |
34378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34379 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
34380 | ||
34381 | wxPyEndAllowThreads(__tstate); | |
34382 | if (PyErr_Occurred()) SWIG_fail; | |
34383 | } | |
34384 | Py_INCREF(Py_None); resultobj = Py_None; | |
34385 | return resultobj; | |
34386 | fail: | |
34387 | return NULL; | |
34388 | } | |
34389 | ||
34390 | ||
34391 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34392 | PyObject *resultobj; | |
34393 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34394 | bool arg2 ; | |
34395 | PyObject * obj0 = 0 ; | |
34396 | PyObject * obj1 = 0 ; | |
34397 | char *kwnames[] = { | |
34398 | (char *) "self",(char *) "show", NULL | |
34399 | }; | |
34400 | ||
34401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
34402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34404 | arg2 = (bool) SWIG_AsBool(obj1); | |
34405 | if (PyErr_Occurred()) SWIG_fail; | |
34406 | { | |
34407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34408 | (arg1)->Show(arg2); | |
34409 | ||
34410 | wxPyEndAllowThreads(__tstate); | |
34411 | if (PyErr_Occurred()) SWIG_fail; | |
34412 | } | |
34413 | Py_INCREF(Py_None); resultobj = Py_None; | |
34414 | return resultobj; | |
34415 | fail: | |
34416 | return NULL; | |
34417 | } | |
34418 | ||
34419 | ||
34420 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34421 | PyObject *resultobj; | |
34422 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34423 | bool result; | |
34424 | PyObject * obj0 = 0 ; | |
34425 | char *kwnames[] = { | |
34426 | (char *) "self", NULL | |
34427 | }; | |
34428 | ||
34429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
34430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34432 | { | |
34433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34434 | result = (bool)(arg1)->IsShown(); | |
34435 | ||
34436 | wxPyEndAllowThreads(__tstate); | |
34437 | if (PyErr_Occurred()) SWIG_fail; | |
34438 | } | |
34439 | { | |
34440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34441 | } | |
34442 | return resultobj; | |
34443 | fail: | |
34444 | return NULL; | |
34445 | } | |
34446 | ||
34447 | ||
34448 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34449 | PyObject *resultobj; | |
34450 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34451 | wxPoint result; | |
34452 | PyObject * obj0 = 0 ; | |
34453 | char *kwnames[] = { | |
34454 | (char *) "self", NULL | |
34455 | }; | |
34456 | ||
34457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
34458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34460 | { | |
34461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34462 | result = (arg1)->GetPosition(); | |
34463 | ||
34464 | wxPyEndAllowThreads(__tstate); | |
34465 | if (PyErr_Occurred()) SWIG_fail; | |
34466 | } | |
34467 | { | |
34468 | wxPoint * resultptr; | |
34469 | resultptr = new wxPoint((wxPoint &) result); | |
34470 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
34471 | } | |
34472 | return resultobj; | |
34473 | fail: | |
34474 | return NULL; | |
34475 | } | |
34476 | ||
34477 | ||
34478 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34479 | PyObject *resultobj; | |
34480 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34481 | PyObject *result; | |
34482 | PyObject * obj0 = 0 ; | |
34483 | char *kwnames[] = { | |
34484 | (char *) "self", NULL | |
34485 | }; | |
34486 | ||
34487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
34488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34490 | { | |
34491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34492 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
34493 | ||
34494 | wxPyEndAllowThreads(__tstate); | |
34495 | if (PyErr_Occurred()) SWIG_fail; | |
34496 | } | |
34497 | resultobj = result; | |
34498 | return resultobj; | |
34499 | fail: | |
34500 | return NULL; | |
34501 | } | |
34502 | ||
34503 | ||
34504 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
34505 | PyObject *obj; | |
34506 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34507 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
34508 | Py_INCREF(obj); | |
34509 | return Py_BuildValue((char *)""); | |
34510 | } | |
34511 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34512 | PyObject *resultobj; | |
34513 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34514 | PyObject *arg2 = (PyObject *) 0 ; | |
34515 | PyObject * obj0 = 0 ; | |
34516 | PyObject * obj1 = 0 ; | |
34517 | char *kwnames[] = { | |
34518 | (char *) "self",(char *) "_self", NULL | |
34519 | }; | |
34520 | ||
34521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
34522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34524 | arg2 = obj1; | |
34525 | { | |
34526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34527 | wxSizer__setOORInfo(arg1,arg2); | |
34528 | ||
34529 | wxPyEndAllowThreads(__tstate); | |
34530 | if (PyErr_Occurred()) SWIG_fail; | |
34531 | } | |
34532 | Py_INCREF(Py_None); resultobj = Py_None; | |
34533 | return resultobj; | |
34534 | fail: | |
34535 | return NULL; | |
34536 | } | |
34537 | ||
34538 | ||
34539 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34540 | PyObject *resultobj; | |
34541 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34542 | PyObject *arg2 = (PyObject *) 0 ; | |
34543 | int arg3 = (int) 0 ; | |
34544 | int arg4 = (int) 0 ; | |
34545 | int arg5 = (int) 0 ; | |
34546 | PyObject *arg6 = (PyObject *) NULL ; | |
34547 | PyObject * obj0 = 0 ; | |
34548 | PyObject * obj1 = 0 ; | |
34549 | PyObject * obj2 = 0 ; | |
34550 | PyObject * obj3 = 0 ; | |
34551 | PyObject * obj4 = 0 ; | |
34552 | PyObject * obj5 = 0 ; | |
34553 | char *kwnames[] = { | |
34554 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34555 | }; | |
34556 | ||
34557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
34558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34560 | arg2 = obj1; | |
34561 | if (obj2) { | |
34562 | arg3 = (int) SWIG_AsInt(obj2); | |
34563 | if (PyErr_Occurred()) SWIG_fail; | |
34564 | } | |
34565 | if (obj3) { | |
34566 | arg4 = (int) SWIG_AsInt(obj3); | |
34567 | if (PyErr_Occurred()) SWIG_fail; | |
34568 | } | |
34569 | if (obj4) { | |
34570 | arg5 = (int) SWIG_AsInt(obj4); | |
34571 | if (PyErr_Occurred()) SWIG_fail; | |
34572 | } | |
34573 | if (obj5) { | |
34574 | arg6 = obj5; | |
34575 | } | |
34576 | { | |
34577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34578 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
34579 | ||
34580 | wxPyEndAllowThreads(__tstate); | |
34581 | if (PyErr_Occurred()) SWIG_fail; | |
34582 | } | |
34583 | Py_INCREF(Py_None); resultobj = Py_None; | |
34584 | return resultobj; | |
34585 | fail: | |
34586 | return NULL; | |
34587 | } | |
34588 | ||
34589 | ||
34590 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34591 | PyObject *resultobj; | |
34592 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34593 | int arg2 ; | |
34594 | PyObject *arg3 = (PyObject *) 0 ; | |
34595 | int arg4 = (int) 0 ; | |
34596 | int arg5 = (int) 0 ; | |
34597 | int arg6 = (int) 0 ; | |
34598 | PyObject *arg7 = (PyObject *) NULL ; | |
34599 | PyObject * obj0 = 0 ; | |
34600 | PyObject * obj1 = 0 ; | |
34601 | PyObject * obj2 = 0 ; | |
34602 | PyObject * obj3 = 0 ; | |
34603 | PyObject * obj4 = 0 ; | |
34604 | PyObject * obj5 = 0 ; | |
34605 | PyObject * obj6 = 0 ; | |
34606 | char *kwnames[] = { | |
34607 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34608 | }; | |
34609 | ||
34610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
34611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34613 | arg2 = (int) SWIG_AsInt(obj1); | |
34614 | if (PyErr_Occurred()) SWIG_fail; | |
34615 | arg3 = obj2; | |
34616 | if (obj3) { | |
34617 | arg4 = (int) SWIG_AsInt(obj3); | |
34618 | if (PyErr_Occurred()) SWIG_fail; | |
34619 | } | |
34620 | if (obj4) { | |
34621 | arg5 = (int) SWIG_AsInt(obj4); | |
34622 | if (PyErr_Occurred()) SWIG_fail; | |
34623 | } | |
34624 | if (obj5) { | |
34625 | arg6 = (int) SWIG_AsInt(obj5); | |
34626 | if (PyErr_Occurred()) SWIG_fail; | |
34627 | } | |
34628 | if (obj6) { | |
34629 | arg7 = obj6; | |
34630 | } | |
34631 | { | |
34632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34633 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
34634 | ||
34635 | wxPyEndAllowThreads(__tstate); | |
34636 | if (PyErr_Occurred()) SWIG_fail; | |
34637 | } | |
34638 | Py_INCREF(Py_None); resultobj = Py_None; | |
34639 | return resultobj; | |
34640 | fail: | |
34641 | return NULL; | |
34642 | } | |
34643 | ||
34644 | ||
34645 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34646 | PyObject *resultobj; | |
34647 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34648 | PyObject *arg2 = (PyObject *) 0 ; | |
34649 | int arg3 = (int) 0 ; | |
34650 | int arg4 = (int) 0 ; | |
34651 | int arg5 = (int) 0 ; | |
34652 | PyObject *arg6 = (PyObject *) NULL ; | |
34653 | PyObject * obj0 = 0 ; | |
34654 | PyObject * obj1 = 0 ; | |
34655 | PyObject * obj2 = 0 ; | |
34656 | PyObject * obj3 = 0 ; | |
34657 | PyObject * obj4 = 0 ; | |
34658 | PyObject * obj5 = 0 ; | |
34659 | char *kwnames[] = { | |
34660 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34661 | }; | |
34662 | ||
34663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
34664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34666 | arg2 = obj1; | |
34667 | if (obj2) { | |
34668 | arg3 = (int) SWIG_AsInt(obj2); | |
34669 | if (PyErr_Occurred()) SWIG_fail; | |
34670 | } | |
34671 | if (obj3) { | |
34672 | arg4 = (int) SWIG_AsInt(obj3); | |
34673 | if (PyErr_Occurred()) SWIG_fail; | |
34674 | } | |
34675 | if (obj4) { | |
34676 | arg5 = (int) SWIG_AsInt(obj4); | |
34677 | if (PyErr_Occurred()) SWIG_fail; | |
34678 | } | |
34679 | if (obj5) { | |
34680 | arg6 = obj5; | |
34681 | } | |
34682 | { | |
34683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34684 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
34685 | ||
34686 | wxPyEndAllowThreads(__tstate); | |
34687 | if (PyErr_Occurred()) SWIG_fail; | |
34688 | } | |
34689 | Py_INCREF(Py_None); resultobj = Py_None; | |
34690 | return resultobj; | |
34691 | fail: | |
34692 | return NULL; | |
34693 | } | |
34694 | ||
34695 | ||
34696 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34697 | PyObject *resultobj; | |
34698 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34699 | PyObject *arg2 = (PyObject *) 0 ; | |
34700 | bool result; | |
34701 | PyObject * obj0 = 0 ; | |
34702 | PyObject * obj1 = 0 ; | |
34703 | char *kwnames[] = { | |
34704 | (char *) "self",(char *) "item", NULL | |
34705 | }; | |
34706 | ||
34707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
34708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34710 | arg2 = obj1; | |
34711 | { | |
34712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34713 | result = (bool)wxSizer_Remove(arg1,arg2); | |
34714 | ||
34715 | wxPyEndAllowThreads(__tstate); | |
34716 | if (PyErr_Occurred()) SWIG_fail; | |
34717 | } | |
34718 | { | |
34719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34720 | } | |
34721 | return resultobj; | |
34722 | fail: | |
34723 | return NULL; | |
34724 | } | |
34725 | ||
34726 | ||
1a6bba1e RD |
34727 | static PyObject *_wrap_Sizer_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { |
34728 | PyObject *resultobj; | |
34729 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34730 | PyObject *arg2 = (PyObject *) 0 ; | |
34731 | bool result; | |
34732 | PyObject * obj0 = 0 ; | |
34733 | PyObject * obj1 = 0 ; | |
34734 | char *kwnames[] = { | |
34735 | (char *) "self",(char *) "item", NULL | |
34736 | }; | |
34737 | ||
34738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
34739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34741 | arg2 = obj1; | |
34742 | { | |
34743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34744 | result = (bool)wxSizer_Detach(arg1,arg2); | |
34745 | ||
34746 | wxPyEndAllowThreads(__tstate); | |
34747 | if (PyErr_Occurred()) SWIG_fail; | |
34748 | } | |
34749 | { | |
34750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34751 | } | |
34752 | return resultobj; | |
34753 | fail: | |
34754 | return NULL; | |
34755 | } | |
34756 | ||
34757 | ||
d55e5bfc RD |
34758 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
34759 | PyObject *resultobj; | |
34760 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34761 | PyObject *arg2 = (PyObject *) 0 ; | |
34762 | wxSize *arg3 = 0 ; | |
34763 | wxSize temp3 ; | |
34764 | PyObject * obj0 = 0 ; | |
34765 | PyObject * obj1 = 0 ; | |
34766 | PyObject * obj2 = 0 ; | |
34767 | char *kwnames[] = { | |
34768 | (char *) "self",(char *) "item",(char *) "size", NULL | |
34769 | }; | |
34770 | ||
34771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34774 | arg2 = obj1; | |
34775 | { | |
34776 | arg3 = &temp3; | |
34777 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
34778 | } | |
34779 | { | |
34780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34781 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); | |
34782 | ||
34783 | wxPyEndAllowThreads(__tstate); | |
34784 | if (PyErr_Occurred()) SWIG_fail; | |
34785 | } | |
34786 | Py_INCREF(Py_None); resultobj = Py_None; | |
34787 | return resultobj; | |
34788 | fail: | |
34789 | return NULL; | |
34790 | } | |
34791 | ||
34792 | ||
34793 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34794 | PyObject *resultobj; | |
34795 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34796 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
34797 | PyObject * obj0 = 0 ; | |
34798 | PyObject * obj1 = 0 ; | |
34799 | char *kwnames[] = { | |
34800 | (char *) "self",(char *) "item", NULL | |
34801 | }; | |
34802 | ||
34803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
34804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34806 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
34807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34808 | { | |
34809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34810 | (arg1)->Add(arg2); | |
34811 | ||
34812 | wxPyEndAllowThreads(__tstate); | |
34813 | if (PyErr_Occurred()) SWIG_fail; | |
34814 | } | |
34815 | Py_INCREF(Py_None); resultobj = Py_None; | |
34816 | return resultobj; | |
34817 | fail: | |
34818 | return NULL; | |
34819 | } | |
34820 | ||
34821 | ||
34822 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34823 | PyObject *resultobj; | |
34824 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34825 | size_t arg2 ; | |
34826 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
34827 | PyObject * obj0 = 0 ; | |
34828 | PyObject * obj1 = 0 ; | |
34829 | PyObject * obj2 = 0 ; | |
34830 | char *kwnames[] = { | |
34831 | (char *) "self",(char *) "index",(char *) "item", NULL | |
34832 | }; | |
34833 | ||
34834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34837 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
34838 | if (PyErr_Occurred()) SWIG_fail; | |
34839 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
34840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34841 | { | |
34842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34843 | (arg1)->Insert(arg2,arg3); | |
34844 | ||
34845 | wxPyEndAllowThreads(__tstate); | |
34846 | if (PyErr_Occurred()) SWIG_fail; | |
34847 | } | |
34848 | Py_INCREF(Py_None); resultobj = Py_None; | |
34849 | return resultobj; | |
34850 | fail: | |
34851 | return NULL; | |
34852 | } | |
34853 | ||
34854 | ||
34855 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34856 | PyObject *resultobj; | |
34857 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34858 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
34859 | PyObject * obj0 = 0 ; | |
34860 | PyObject * obj1 = 0 ; | |
34861 | char *kwnames[] = { | |
34862 | (char *) "self",(char *) "item", NULL | |
34863 | }; | |
34864 | ||
34865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
34866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34868 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
34869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34870 | { | |
34871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34872 | (arg1)->Prepend(arg2); | |
34873 | ||
34874 | wxPyEndAllowThreads(__tstate); | |
34875 | if (PyErr_Occurred()) SWIG_fail; | |
34876 | } | |
34877 | Py_INCREF(Py_None); resultobj = Py_None; | |
34878 | return resultobj; | |
34879 | fail: | |
34880 | return NULL; | |
34881 | } | |
34882 | ||
34883 | ||
34884 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34885 | PyObject *resultobj; | |
34886 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34887 | int arg2 ; | |
34888 | int arg3 ; | |
34889 | int arg4 ; | |
34890 | int arg5 ; | |
34891 | PyObject * obj0 = 0 ; | |
34892 | PyObject * obj1 = 0 ; | |
34893 | PyObject * obj2 = 0 ; | |
34894 | PyObject * obj3 = 0 ; | |
34895 | PyObject * obj4 = 0 ; | |
34896 | char *kwnames[] = { | |
34897 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
34898 | }; | |
34899 | ||
34900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
34901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34903 | arg2 = (int) SWIG_AsInt(obj1); | |
34904 | if (PyErr_Occurred()) SWIG_fail; | |
34905 | arg3 = (int) SWIG_AsInt(obj2); | |
34906 | if (PyErr_Occurred()) SWIG_fail; | |
34907 | arg4 = (int) SWIG_AsInt(obj3); | |
34908 | if (PyErr_Occurred()) SWIG_fail; | |
34909 | arg5 = (int) SWIG_AsInt(obj4); | |
34910 | if (PyErr_Occurred()) SWIG_fail; | |
34911 | { | |
34912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34913 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
34914 | ||
34915 | wxPyEndAllowThreads(__tstate); | |
34916 | if (PyErr_Occurred()) SWIG_fail; | |
34917 | } | |
34918 | Py_INCREF(Py_None); resultobj = Py_None; | |
34919 | return resultobj; | |
34920 | fail: | |
34921 | return NULL; | |
34922 | } | |
34923 | ||
34924 | ||
34925 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34926 | PyObject *resultobj; | |
34927 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34928 | wxSize *arg2 = 0 ; | |
34929 | wxSize temp2 ; | |
34930 | PyObject * obj0 = 0 ; | |
34931 | PyObject * obj1 = 0 ; | |
34932 | char *kwnames[] = { | |
34933 | (char *) "self",(char *) "size", NULL | |
34934 | }; | |
34935 | ||
34936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
34937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34939 | { | |
34940 | arg2 = &temp2; | |
34941 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
34942 | } | |
34943 | { | |
34944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34945 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
34946 | ||
34947 | wxPyEndAllowThreads(__tstate); | |
34948 | if (PyErr_Occurred()) SWIG_fail; | |
34949 | } | |
34950 | Py_INCREF(Py_None); resultobj = Py_None; | |
34951 | return resultobj; | |
34952 | fail: | |
34953 | return NULL; | |
34954 | } | |
34955 | ||
34956 | ||
34957 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34958 | PyObject *resultobj; | |
34959 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34960 | wxSize result; | |
34961 | PyObject * obj0 = 0 ; | |
34962 | char *kwnames[] = { | |
34963 | (char *) "self", NULL | |
34964 | }; | |
34965 | ||
34966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
34967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34969 | { | |
34970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34971 | result = (arg1)->GetSize(); | |
34972 | ||
34973 | wxPyEndAllowThreads(__tstate); | |
34974 | if (PyErr_Occurred()) SWIG_fail; | |
34975 | } | |
34976 | { | |
34977 | wxSize * resultptr; | |
34978 | resultptr = new wxSize((wxSize &) result); | |
34979 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34980 | } | |
34981 | return resultobj; | |
34982 | fail: | |
34983 | return NULL; | |
34984 | } | |
34985 | ||
34986 | ||
34987 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34988 | PyObject *resultobj; | |
34989 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34990 | wxPoint result; | |
34991 | PyObject * obj0 = 0 ; | |
34992 | char *kwnames[] = { | |
34993 | (char *) "self", NULL | |
34994 | }; | |
34995 | ||
34996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
34997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34999 | { | |
35000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35001 | result = (arg1)->GetPosition(); | |
35002 | ||
35003 | wxPyEndAllowThreads(__tstate); | |
35004 | if (PyErr_Occurred()) SWIG_fail; | |
35005 | } | |
35006 | { | |
35007 | wxPoint * resultptr; | |
35008 | resultptr = new wxPoint((wxPoint &) result); | |
35009 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
35010 | } | |
35011 | return resultobj; | |
35012 | fail: | |
35013 | return NULL; | |
35014 | } | |
35015 | ||
35016 | ||
35017 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35018 | PyObject *resultobj; | |
35019 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35020 | wxSize result; | |
35021 | PyObject * obj0 = 0 ; | |
35022 | char *kwnames[] = { | |
35023 | (char *) "self", NULL | |
35024 | }; | |
35025 | ||
35026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
35027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35029 | { | |
35030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35031 | result = (arg1)->GetMinSize(); | |
35032 | ||
35033 | wxPyEndAllowThreads(__tstate); | |
35034 | if (PyErr_Occurred()) SWIG_fail; | |
35035 | } | |
35036 | { | |
35037 | wxSize * resultptr; | |
35038 | resultptr = new wxSize((wxSize &) result); | |
35039 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35040 | } | |
35041 | return resultobj; | |
35042 | fail: | |
35043 | return NULL; | |
35044 | } | |
35045 | ||
35046 | ||
35047 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35048 | PyObject *resultobj; | |
35049 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35050 | PyObject * obj0 = 0 ; | |
35051 | char *kwnames[] = { | |
35052 | (char *) "self", NULL | |
35053 | }; | |
35054 | ||
35055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
35056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35058 | { | |
35059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35060 | (arg1)->RecalcSizes(); | |
35061 | ||
35062 | wxPyEndAllowThreads(__tstate); | |
35063 | if (PyErr_Occurred()) SWIG_fail; | |
35064 | } | |
35065 | Py_INCREF(Py_None); resultobj = Py_None; | |
35066 | return resultobj; | |
35067 | fail: | |
35068 | return NULL; | |
35069 | } | |
35070 | ||
35071 | ||
35072 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35073 | PyObject *resultobj; | |
35074 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35075 | wxSize result; | |
35076 | PyObject * obj0 = 0 ; | |
35077 | char *kwnames[] = { | |
35078 | (char *) "self", NULL | |
35079 | }; | |
35080 | ||
35081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
35082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35084 | { | |
35085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35086 | result = (arg1)->CalcMin(); | |
35087 | ||
35088 | wxPyEndAllowThreads(__tstate); | |
35089 | if (PyErr_Occurred()) SWIG_fail; | |
35090 | } | |
35091 | { | |
35092 | wxSize * resultptr; | |
35093 | resultptr = new wxSize((wxSize &) result); | |
35094 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35095 | } | |
35096 | return resultobj; | |
35097 | fail: | |
35098 | return NULL; | |
35099 | } | |
35100 | ||
35101 | ||
35102 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35103 | PyObject *resultobj; | |
35104 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35105 | PyObject * obj0 = 0 ; | |
35106 | char *kwnames[] = { | |
35107 | (char *) "self", NULL | |
35108 | }; | |
35109 | ||
35110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
35111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35113 | { | |
35114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35115 | (arg1)->Layout(); | |
35116 | ||
35117 | wxPyEndAllowThreads(__tstate); | |
35118 | if (PyErr_Occurred()) SWIG_fail; | |
35119 | } | |
35120 | Py_INCREF(Py_None); resultobj = Py_None; | |
35121 | return resultobj; | |
35122 | fail: | |
35123 | return NULL; | |
35124 | } | |
35125 | ||
35126 | ||
35127 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35128 | PyObject *resultobj; | |
35129 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35130 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35131 | wxSize result; | |
35132 | PyObject * obj0 = 0 ; | |
35133 | PyObject * obj1 = 0 ; | |
35134 | char *kwnames[] = { | |
35135 | (char *) "self",(char *) "window", NULL | |
35136 | }; | |
35137 | ||
35138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
35139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35141 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35143 | { | |
35144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35145 | result = (arg1)->Fit(arg2); | |
35146 | ||
35147 | wxPyEndAllowThreads(__tstate); | |
35148 | if (PyErr_Occurred()) SWIG_fail; | |
35149 | } | |
35150 | { | |
35151 | wxSize * resultptr; | |
35152 | resultptr = new wxSize((wxSize &) result); | |
35153 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35154 | } | |
35155 | return resultobj; | |
35156 | fail: | |
35157 | return NULL; | |
35158 | } | |
35159 | ||
35160 | ||
35161 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35162 | PyObject *resultobj; | |
35163 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35164 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35165 | PyObject * obj0 = 0 ; | |
35166 | PyObject * obj1 = 0 ; | |
35167 | char *kwnames[] = { | |
35168 | (char *) "self",(char *) "window", NULL | |
35169 | }; | |
35170 | ||
35171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
35172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35174 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35176 | { | |
35177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35178 | (arg1)->FitInside(arg2); | |
35179 | ||
35180 | wxPyEndAllowThreads(__tstate); | |
35181 | if (PyErr_Occurred()) SWIG_fail; | |
35182 | } | |
35183 | Py_INCREF(Py_None); resultobj = Py_None; | |
35184 | return resultobj; | |
35185 | fail: | |
35186 | return NULL; | |
35187 | } | |
35188 | ||
35189 | ||
35190 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35191 | PyObject *resultobj; | |
35192 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35193 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35194 | PyObject * obj0 = 0 ; | |
35195 | PyObject * obj1 = 0 ; | |
35196 | char *kwnames[] = { | |
35197 | (char *) "self",(char *) "window", NULL | |
35198 | }; | |
35199 | ||
35200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
35201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35203 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35205 | { | |
35206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35207 | (arg1)->SetSizeHints(arg2); | |
35208 | ||
35209 | wxPyEndAllowThreads(__tstate); | |
35210 | if (PyErr_Occurred()) SWIG_fail; | |
35211 | } | |
35212 | Py_INCREF(Py_None); resultobj = Py_None; | |
35213 | return resultobj; | |
35214 | fail: | |
35215 | return NULL; | |
35216 | } | |
35217 | ||
35218 | ||
35219 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35220 | PyObject *resultobj; | |
35221 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35222 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35223 | PyObject * obj0 = 0 ; | |
35224 | PyObject * obj1 = 0 ; | |
35225 | char *kwnames[] = { | |
35226 | (char *) "self",(char *) "window", NULL | |
35227 | }; | |
35228 | ||
35229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
35230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35232 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35234 | { | |
35235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35236 | (arg1)->SetVirtualSizeHints(arg2); | |
35237 | ||
35238 | wxPyEndAllowThreads(__tstate); | |
35239 | if (PyErr_Occurred()) SWIG_fail; | |
35240 | } | |
35241 | Py_INCREF(Py_None); resultobj = Py_None; | |
35242 | return resultobj; | |
35243 | fail: | |
35244 | return NULL; | |
35245 | } | |
35246 | ||
35247 | ||
35248 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35249 | PyObject *resultobj; | |
35250 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35251 | bool arg2 = (bool) False ; | |
35252 | PyObject * obj0 = 0 ; | |
35253 | PyObject * obj1 = 0 ; | |
35254 | char *kwnames[] = { | |
35255 | (char *) "self",(char *) "delete_windows", NULL | |
35256 | }; | |
35257 | ||
35258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
35259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35261 | if (obj1) { | |
35262 | arg2 = (bool) SWIG_AsBool(obj1); | |
35263 | if (PyErr_Occurred()) SWIG_fail; | |
35264 | } | |
35265 | { | |
35266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35267 | (arg1)->Clear(arg2); | |
35268 | ||
35269 | wxPyEndAllowThreads(__tstate); | |
35270 | if (PyErr_Occurred()) SWIG_fail; | |
35271 | } | |
35272 | Py_INCREF(Py_None); resultobj = Py_None; | |
35273 | return resultobj; | |
35274 | fail: | |
35275 | return NULL; | |
35276 | } | |
35277 | ||
35278 | ||
35279 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35280 | PyObject *resultobj; | |
35281 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35282 | PyObject * obj0 = 0 ; | |
35283 | char *kwnames[] = { | |
35284 | (char *) "self", NULL | |
35285 | }; | |
35286 | ||
35287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
35288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35290 | { | |
35291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35292 | (arg1)->DeleteWindows(); | |
35293 | ||
35294 | wxPyEndAllowThreads(__tstate); | |
35295 | if (PyErr_Occurred()) SWIG_fail; | |
35296 | } | |
35297 | Py_INCREF(Py_None); resultobj = Py_None; | |
35298 | return resultobj; | |
35299 | fail: | |
35300 | return NULL; | |
35301 | } | |
35302 | ||
35303 | ||
35304 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35305 | PyObject *resultobj; | |
35306 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35307 | PyObject *result; | |
35308 | PyObject * obj0 = 0 ; | |
35309 | char *kwnames[] = { | |
35310 | (char *) "self", NULL | |
35311 | }; | |
35312 | ||
35313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
35314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35316 | { | |
35317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35318 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
35319 | ||
35320 | wxPyEndAllowThreads(__tstate); | |
35321 | if (PyErr_Occurred()) SWIG_fail; | |
35322 | } | |
35323 | resultobj = result; | |
35324 | return resultobj; | |
35325 | fail: | |
35326 | return NULL; | |
35327 | } | |
35328 | ||
35329 | ||
35330 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35331 | PyObject *resultobj; | |
35332 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35333 | PyObject *arg2 = (PyObject *) 0 ; | |
35334 | bool arg3 = (bool) True ; | |
35335 | PyObject * obj0 = 0 ; | |
35336 | PyObject * obj1 = 0 ; | |
35337 | PyObject * obj2 = 0 ; | |
35338 | char *kwnames[] = { | |
35339 | (char *) "self",(char *) "item",(char *) "show", NULL | |
35340 | }; | |
35341 | ||
35342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35345 | arg2 = obj1; | |
35346 | if (obj2) { | |
35347 | arg3 = (bool) SWIG_AsBool(obj2); | |
35348 | if (PyErr_Occurred()) SWIG_fail; | |
35349 | } | |
35350 | { | |
35351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35352 | wxSizer_Show(arg1,arg2,arg3); | |
35353 | ||
35354 | wxPyEndAllowThreads(__tstate); | |
35355 | if (PyErr_Occurred()) SWIG_fail; | |
35356 | } | |
35357 | Py_INCREF(Py_None); resultobj = Py_None; | |
35358 | return resultobj; | |
35359 | fail: | |
35360 | return NULL; | |
35361 | } | |
35362 | ||
35363 | ||
35364 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35365 | PyObject *resultobj; | |
35366 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35367 | PyObject *arg2 = (PyObject *) 0 ; | |
35368 | PyObject * obj0 = 0 ; | |
35369 | PyObject * obj1 = 0 ; | |
35370 | char *kwnames[] = { | |
35371 | (char *) "self",(char *) "item", NULL | |
35372 | }; | |
35373 | ||
35374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
35375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35377 | arg2 = obj1; | |
35378 | { | |
35379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35380 | wxSizer_Hide(arg1,arg2); | |
35381 | ||
35382 | wxPyEndAllowThreads(__tstate); | |
35383 | if (PyErr_Occurred()) SWIG_fail; | |
35384 | } | |
35385 | Py_INCREF(Py_None); resultobj = Py_None; | |
35386 | return resultobj; | |
35387 | fail: | |
35388 | return NULL; | |
35389 | } | |
35390 | ||
35391 | ||
35392 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35393 | PyObject *resultobj; | |
35394 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35395 | PyObject *arg2 = (PyObject *) 0 ; | |
35396 | bool result; | |
35397 | PyObject * obj0 = 0 ; | |
35398 | PyObject * obj1 = 0 ; | |
35399 | char *kwnames[] = { | |
35400 | (char *) "self",(char *) "item", NULL | |
35401 | }; | |
35402 | ||
35403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
35404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35406 | arg2 = obj1; | |
35407 | { | |
35408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35409 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
35410 | ||
35411 | wxPyEndAllowThreads(__tstate); | |
35412 | if (PyErr_Occurred()) SWIG_fail; | |
35413 | } | |
35414 | { | |
35415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35416 | } | |
35417 | return resultobj; | |
35418 | fail: | |
35419 | return NULL; | |
35420 | } | |
35421 | ||
35422 | ||
35423 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35424 | PyObject *resultobj; | |
35425 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35426 | bool arg2 ; | |
35427 | PyObject * obj0 = 0 ; | |
35428 | PyObject * obj1 = 0 ; | |
35429 | char *kwnames[] = { | |
35430 | (char *) "self",(char *) "show", NULL | |
35431 | }; | |
35432 | ||
35433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
35434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35436 | arg2 = (bool) SWIG_AsBool(obj1); | |
35437 | if (PyErr_Occurred()) SWIG_fail; | |
35438 | { | |
35439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35440 | (arg1)->ShowItems(arg2); | |
35441 | ||
35442 | wxPyEndAllowThreads(__tstate); | |
35443 | if (PyErr_Occurred()) SWIG_fail; | |
35444 | } | |
35445 | Py_INCREF(Py_None); resultobj = Py_None; | |
35446 | return resultobj; | |
35447 | fail: | |
35448 | return NULL; | |
35449 | } | |
35450 | ||
35451 | ||
35452 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
35453 | PyObject *obj; | |
35454 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35455 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
35456 | Py_INCREF(obj); | |
35457 | return Py_BuildValue((char *)""); | |
35458 | } | |
35459 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35460 | PyObject *resultobj; | |
35461 | wxPySizer *result; | |
35462 | char *kwnames[] = { | |
35463 | NULL | |
35464 | }; | |
35465 | ||
35466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
35467 | { | |
35468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35469 | result = (wxPySizer *)new wxPySizer(); | |
35470 | ||
35471 | wxPyEndAllowThreads(__tstate); | |
35472 | if (PyErr_Occurred()) SWIG_fail; | |
35473 | } | |
35474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); | |
35475 | return resultobj; | |
35476 | fail: | |
35477 | return NULL; | |
35478 | } | |
35479 | ||
35480 | ||
35481 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35482 | PyObject *resultobj; | |
35483 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
35484 | PyObject *arg2 = (PyObject *) 0 ; | |
35485 | PyObject *arg3 = (PyObject *) 0 ; | |
35486 | PyObject * obj0 = 0 ; | |
35487 | PyObject * obj1 = 0 ; | |
35488 | PyObject * obj2 = 0 ; | |
35489 | char *kwnames[] = { | |
35490 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
35491 | }; | |
35492 | ||
35493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, | |
35495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35496 | arg2 = obj1; | |
35497 | arg3 = obj2; | |
35498 | { | |
35499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35500 | (arg1)->_setCallbackInfo(arg2,arg3); | |
35501 | ||
35502 | wxPyEndAllowThreads(__tstate); | |
35503 | if (PyErr_Occurred()) SWIG_fail; | |
35504 | } | |
35505 | Py_INCREF(Py_None); resultobj = Py_None; | |
35506 | return resultobj; | |
35507 | fail: | |
35508 | return NULL; | |
35509 | } | |
35510 | ||
35511 | ||
35512 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
35513 | PyObject *obj; | |
35514 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35515 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
35516 | Py_INCREF(obj); | |
35517 | return Py_BuildValue((char *)""); | |
35518 | } | |
35519 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35520 | PyObject *resultobj; | |
35521 | int arg1 = (int) wxHORIZONTAL ; | |
35522 | wxBoxSizer *result; | |
35523 | PyObject * obj0 = 0 ; | |
35524 | char *kwnames[] = { | |
35525 | (char *) "orient", NULL | |
35526 | }; | |
35527 | ||
35528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; | |
35529 | if (obj0) { | |
35530 | arg1 = (int) SWIG_AsInt(obj0); | |
35531 | if (PyErr_Occurred()) SWIG_fail; | |
35532 | } | |
35533 | { | |
35534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35535 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
35536 | ||
35537 | wxPyEndAllowThreads(__tstate); | |
35538 | if (PyErr_Occurred()) SWIG_fail; | |
35539 | } | |
35540 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); | |
35541 | return resultobj; | |
35542 | fail: | |
35543 | return NULL; | |
35544 | } | |
35545 | ||
35546 | ||
35547 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35548 | PyObject *resultobj; | |
35549 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35550 | int result; | |
35551 | PyObject * obj0 = 0 ; | |
35552 | char *kwnames[] = { | |
35553 | (char *) "self", NULL | |
35554 | }; | |
35555 | ||
35556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
35557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
35558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35559 | { | |
35560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35561 | result = (int)(arg1)->GetOrientation(); | |
35562 | ||
35563 | wxPyEndAllowThreads(__tstate); | |
35564 | if (PyErr_Occurred()) SWIG_fail; | |
35565 | } | |
35566 | resultobj = SWIG_FromInt((int)result); | |
35567 | return resultobj; | |
35568 | fail: | |
35569 | return NULL; | |
35570 | } | |
35571 | ||
35572 | ||
35573 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35574 | PyObject *resultobj; | |
35575 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35576 | int arg2 ; | |
35577 | PyObject * obj0 = 0 ; | |
35578 | PyObject * obj1 = 0 ; | |
35579 | char *kwnames[] = { | |
35580 | (char *) "self",(char *) "orient", NULL | |
35581 | }; | |
35582 | ||
35583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
35584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
35585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35586 | arg2 = (int) SWIG_AsInt(obj1); | |
35587 | if (PyErr_Occurred()) SWIG_fail; | |
35588 | { | |
35589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35590 | (arg1)->SetOrientation(arg2); | |
35591 | ||
35592 | wxPyEndAllowThreads(__tstate); | |
35593 | if (PyErr_Occurred()) SWIG_fail; | |
35594 | } | |
35595 | Py_INCREF(Py_None); resultobj = Py_None; | |
35596 | return resultobj; | |
35597 | fail: | |
35598 | return NULL; | |
35599 | } | |
35600 | ||
35601 | ||
35602 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35603 | PyObject *resultobj; | |
35604 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35605 | PyObject * obj0 = 0 ; | |
35606 | char *kwnames[] = { | |
35607 | (char *) "self", NULL | |
35608 | }; | |
35609 | ||
35610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
35611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
35612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35613 | { | |
35614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35615 | (arg1)->RecalcSizes(); | |
35616 | ||
35617 | wxPyEndAllowThreads(__tstate); | |
35618 | if (PyErr_Occurred()) SWIG_fail; | |
35619 | } | |
35620 | Py_INCREF(Py_None); resultobj = Py_None; | |
35621 | return resultobj; | |
35622 | fail: | |
35623 | return NULL; | |
35624 | } | |
35625 | ||
35626 | ||
35627 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35628 | PyObject *resultobj; | |
35629 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35630 | wxSize result; | |
35631 | PyObject * obj0 = 0 ; | |
35632 | char *kwnames[] = { | |
35633 | (char *) "self", NULL | |
35634 | }; | |
35635 | ||
35636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
35637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
35638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35639 | { | |
35640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35641 | result = (arg1)->CalcMin(); | |
35642 | ||
35643 | wxPyEndAllowThreads(__tstate); | |
35644 | if (PyErr_Occurred()) SWIG_fail; | |
35645 | } | |
35646 | { | |
35647 | wxSize * resultptr; | |
35648 | resultptr = new wxSize((wxSize &) result); | |
35649 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35650 | } | |
35651 | return resultobj; | |
35652 | fail: | |
35653 | return NULL; | |
35654 | } | |
35655 | ||
35656 | ||
35657 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
35658 | PyObject *obj; | |
35659 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35660 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
35661 | Py_INCREF(obj); | |
35662 | return Py_BuildValue((char *)""); | |
35663 | } | |
35664 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35665 | PyObject *resultobj; | |
35666 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
35667 | int arg2 = (int) wxHORIZONTAL ; | |
35668 | wxStaticBoxSizer *result; | |
35669 | PyObject * obj0 = 0 ; | |
35670 | PyObject * obj1 = 0 ; | |
35671 | char *kwnames[] = { | |
35672 | (char *) "box",(char *) "orient", NULL | |
35673 | }; | |
35674 | ||
35675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; | |
35676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, | |
35677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35678 | if (obj1) { | |
35679 | arg2 = (int) SWIG_AsInt(obj1); | |
35680 | if (PyErr_Occurred()) SWIG_fail; | |
35681 | } | |
35682 | { | |
35683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35684 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
35685 | ||
35686 | wxPyEndAllowThreads(__tstate); | |
35687 | if (PyErr_Occurred()) SWIG_fail; | |
35688 | } | |
35689 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); | |
35690 | return resultobj; | |
35691 | fail: | |
35692 | return NULL; | |
35693 | } | |
35694 | ||
35695 | ||
35696 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35697 | PyObject *resultobj; | |
35698 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35699 | wxStaticBox *result; | |
35700 | PyObject * obj0 = 0 ; | |
35701 | char *kwnames[] = { | |
35702 | (char *) "self", NULL | |
35703 | }; | |
35704 | ||
35705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
35706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
35707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35708 | { | |
35709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35710 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
35711 | ||
35712 | wxPyEndAllowThreads(__tstate); | |
35713 | if (PyErr_Occurred()) SWIG_fail; | |
35714 | } | |
35715 | { | |
35716 | resultobj = wxPyMake_wxObject(result); | |
35717 | } | |
35718 | return resultobj; | |
35719 | fail: | |
35720 | return NULL; | |
35721 | } | |
35722 | ||
35723 | ||
35724 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35725 | PyObject *resultobj; | |
35726 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35727 | PyObject * obj0 = 0 ; | |
35728 | char *kwnames[] = { | |
35729 | (char *) "self", NULL | |
35730 | }; | |
35731 | ||
35732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
35733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
35734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35735 | { | |
35736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35737 | (arg1)->RecalcSizes(); | |
35738 | ||
35739 | wxPyEndAllowThreads(__tstate); | |
35740 | if (PyErr_Occurred()) SWIG_fail; | |
35741 | } | |
35742 | Py_INCREF(Py_None); resultobj = Py_None; | |
35743 | return resultobj; | |
35744 | fail: | |
35745 | return NULL; | |
35746 | } | |
35747 | ||
35748 | ||
35749 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35750 | PyObject *resultobj; | |
35751 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35752 | wxSize result; | |
35753 | PyObject * obj0 = 0 ; | |
35754 | char *kwnames[] = { | |
35755 | (char *) "self", NULL | |
35756 | }; | |
35757 | ||
35758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
35759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
35760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35761 | { | |
35762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35763 | result = (arg1)->CalcMin(); | |
35764 | ||
35765 | wxPyEndAllowThreads(__tstate); | |
35766 | if (PyErr_Occurred()) SWIG_fail; | |
35767 | } | |
35768 | { | |
35769 | wxSize * resultptr; | |
35770 | resultptr = new wxSize((wxSize &) result); | |
35771 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35772 | } | |
35773 | return resultobj; | |
35774 | fail: | |
35775 | return NULL; | |
35776 | } | |
35777 | ||
35778 | ||
35779 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
35780 | PyObject *obj; | |
35781 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35782 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
35783 | Py_INCREF(obj); | |
35784 | return Py_BuildValue((char *)""); | |
35785 | } | |
35786 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35787 | PyObject *resultobj; | |
35788 | int arg1 = (int) 1 ; | |
35789 | int arg2 = (int) 0 ; | |
35790 | int arg3 = (int) 0 ; | |
35791 | int arg4 = (int) 0 ; | |
35792 | wxGridSizer *result; | |
35793 | PyObject * obj0 = 0 ; | |
35794 | PyObject * obj1 = 0 ; | |
35795 | PyObject * obj2 = 0 ; | |
35796 | PyObject * obj3 = 0 ; | |
35797 | char *kwnames[] = { | |
35798 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
35799 | }; | |
35800 | ||
35801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
35802 | if (obj0) { | |
35803 | arg1 = (int) SWIG_AsInt(obj0); | |
35804 | if (PyErr_Occurred()) SWIG_fail; | |
35805 | } | |
35806 | if (obj1) { | |
35807 | arg2 = (int) SWIG_AsInt(obj1); | |
35808 | if (PyErr_Occurred()) SWIG_fail; | |
35809 | } | |
35810 | if (obj2) { | |
35811 | arg3 = (int) SWIG_AsInt(obj2); | |
35812 | if (PyErr_Occurred()) SWIG_fail; | |
35813 | } | |
35814 | if (obj3) { | |
35815 | arg4 = (int) SWIG_AsInt(obj3); | |
35816 | if (PyErr_Occurred()) SWIG_fail; | |
35817 | } | |
35818 | { | |
35819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35820 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
35821 | ||
35822 | wxPyEndAllowThreads(__tstate); | |
35823 | if (PyErr_Occurred()) SWIG_fail; | |
35824 | } | |
35825 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); | |
35826 | return resultobj; | |
35827 | fail: | |
35828 | return NULL; | |
35829 | } | |
35830 | ||
35831 | ||
35832 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35833 | PyObject *resultobj; | |
35834 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35835 | PyObject * obj0 = 0 ; | |
35836 | char *kwnames[] = { | |
35837 | (char *) "self", NULL | |
35838 | }; | |
35839 | ||
35840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
35841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
35842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35843 | { | |
35844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35845 | (arg1)->RecalcSizes(); | |
35846 | ||
35847 | wxPyEndAllowThreads(__tstate); | |
35848 | if (PyErr_Occurred()) SWIG_fail; | |
35849 | } | |
35850 | Py_INCREF(Py_None); resultobj = Py_None; | |
35851 | return resultobj; | |
35852 | fail: | |
35853 | return NULL; | |
35854 | } | |
35855 | ||
35856 | ||
35857 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35858 | PyObject *resultobj; | |
35859 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35860 | wxSize result; | |
35861 | PyObject * obj0 = 0 ; | |
35862 | char *kwnames[] = { | |
35863 | (char *) "self", NULL | |
35864 | }; | |
35865 | ||
35866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
35867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
35868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35869 | { | |
35870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35871 | result = (arg1)->CalcMin(); | |
35872 | ||
35873 | wxPyEndAllowThreads(__tstate); | |
35874 | if (PyErr_Occurred()) SWIG_fail; | |
35875 | } | |
35876 | { | |
35877 | wxSize * resultptr; | |
35878 | resultptr = new wxSize((wxSize &) result); | |
35879 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35880 | } | |
35881 | return resultobj; | |
35882 | fail: | |
35883 | return NULL; | |
35884 | } | |
35885 | ||
35886 | ||
35887 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35888 | PyObject *resultobj; | |
35889 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35890 | int arg2 ; | |
35891 | PyObject * obj0 = 0 ; | |
35892 | PyObject * obj1 = 0 ; | |
35893 | char *kwnames[] = { | |
35894 | (char *) "self",(char *) "cols", NULL | |
35895 | }; | |
35896 | ||
35897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; | |
35898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
35899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35900 | arg2 = (int) SWIG_AsInt(obj1); | |
35901 | if (PyErr_Occurred()) SWIG_fail; | |
35902 | { | |
35903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35904 | (arg1)->SetCols(arg2); | |
35905 | ||
35906 | wxPyEndAllowThreads(__tstate); | |
35907 | if (PyErr_Occurred()) SWIG_fail; | |
35908 | } | |
35909 | Py_INCREF(Py_None); resultobj = Py_None; | |
35910 | return resultobj; | |
35911 | fail: | |
35912 | return NULL; | |
35913 | } | |
35914 | ||
35915 | ||
35916 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35917 | PyObject *resultobj; | |
35918 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35919 | int arg2 ; | |
35920 | PyObject * obj0 = 0 ; | |
35921 | PyObject * obj1 = 0 ; | |
35922 | char *kwnames[] = { | |
35923 | (char *) "self",(char *) "rows", NULL | |
35924 | }; | |
35925 | ||
35926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
35927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
35928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35929 | arg2 = (int) SWIG_AsInt(obj1); | |
35930 | if (PyErr_Occurred()) SWIG_fail; | |
35931 | { | |
35932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35933 | (arg1)->SetRows(arg2); | |
35934 | ||
35935 | wxPyEndAllowThreads(__tstate); | |
35936 | if (PyErr_Occurred()) SWIG_fail; | |
35937 | } | |
35938 | Py_INCREF(Py_None); resultobj = Py_None; | |
35939 | return resultobj; | |
35940 | fail: | |
35941 | return NULL; | |
35942 | } | |
35943 | ||
35944 | ||
35945 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35946 | PyObject *resultobj; | |
35947 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35948 | int arg2 ; | |
35949 | PyObject * obj0 = 0 ; | |
35950 | PyObject * obj1 = 0 ; | |
35951 | char *kwnames[] = { | |
35952 | (char *) "self",(char *) "gap", NULL | |
35953 | }; | |
35954 | ||
35955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; | |
35956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
35957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35958 | arg2 = (int) SWIG_AsInt(obj1); | |
35959 | if (PyErr_Occurred()) SWIG_fail; | |
35960 | { | |
35961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35962 | (arg1)->SetVGap(arg2); | |
35963 | ||
35964 | wxPyEndAllowThreads(__tstate); | |
35965 | if (PyErr_Occurred()) SWIG_fail; | |
35966 | } | |
35967 | Py_INCREF(Py_None); resultobj = Py_None; | |
35968 | return resultobj; | |
35969 | fail: | |
35970 | return NULL; | |
35971 | } | |
35972 | ||
35973 | ||
35974 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35975 | PyObject *resultobj; | |
35976 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35977 | int arg2 ; | |
35978 | PyObject * obj0 = 0 ; | |
35979 | PyObject * obj1 = 0 ; | |
35980 | char *kwnames[] = { | |
35981 | (char *) "self",(char *) "gap", NULL | |
35982 | }; | |
35983 | ||
35984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; | |
35985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
35986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35987 | arg2 = (int) SWIG_AsInt(obj1); | |
35988 | if (PyErr_Occurred()) SWIG_fail; | |
35989 | { | |
35990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35991 | (arg1)->SetHGap(arg2); | |
35992 | ||
35993 | wxPyEndAllowThreads(__tstate); | |
35994 | if (PyErr_Occurred()) SWIG_fail; | |
35995 | } | |
35996 | Py_INCREF(Py_None); resultobj = Py_None; | |
35997 | return resultobj; | |
35998 | fail: | |
35999 | return NULL; | |
36000 | } | |
36001 | ||
36002 | ||
36003 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36004 | PyObject *resultobj; | |
36005 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36006 | int result; | |
36007 | PyObject * obj0 = 0 ; | |
36008 | char *kwnames[] = { | |
36009 | (char *) "self", NULL | |
36010 | }; | |
36011 | ||
36012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
36013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36015 | { | |
36016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36017 | result = (int)(arg1)->GetCols(); | |
36018 | ||
36019 | wxPyEndAllowThreads(__tstate); | |
36020 | if (PyErr_Occurred()) SWIG_fail; | |
36021 | } | |
36022 | resultobj = SWIG_FromInt((int)result); | |
36023 | return resultobj; | |
36024 | fail: | |
36025 | return NULL; | |
36026 | } | |
36027 | ||
36028 | ||
36029 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36030 | PyObject *resultobj; | |
36031 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36032 | int result; | |
36033 | PyObject * obj0 = 0 ; | |
36034 | char *kwnames[] = { | |
36035 | (char *) "self", NULL | |
36036 | }; | |
36037 | ||
36038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
36039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36041 | { | |
36042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36043 | result = (int)(arg1)->GetRows(); | |
36044 | ||
36045 | wxPyEndAllowThreads(__tstate); | |
36046 | if (PyErr_Occurred()) SWIG_fail; | |
36047 | } | |
36048 | resultobj = SWIG_FromInt((int)result); | |
36049 | return resultobj; | |
36050 | fail: | |
36051 | return NULL; | |
36052 | } | |
36053 | ||
36054 | ||
36055 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36056 | PyObject *resultobj; | |
36057 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36058 | int result; | |
36059 | PyObject * obj0 = 0 ; | |
36060 | char *kwnames[] = { | |
36061 | (char *) "self", NULL | |
36062 | }; | |
36063 | ||
36064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
36065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36067 | { | |
36068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36069 | result = (int)(arg1)->GetVGap(); | |
36070 | ||
36071 | wxPyEndAllowThreads(__tstate); | |
36072 | if (PyErr_Occurred()) SWIG_fail; | |
36073 | } | |
36074 | resultobj = SWIG_FromInt((int)result); | |
36075 | return resultobj; | |
36076 | fail: | |
36077 | return NULL; | |
36078 | } | |
36079 | ||
36080 | ||
36081 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36082 | PyObject *resultobj; | |
36083 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36084 | int result; | |
36085 | PyObject * obj0 = 0 ; | |
36086 | char *kwnames[] = { | |
36087 | (char *) "self", NULL | |
36088 | }; | |
36089 | ||
36090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
36091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36093 | { | |
36094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36095 | result = (int)(arg1)->GetHGap(); | |
36096 | ||
36097 | wxPyEndAllowThreads(__tstate); | |
36098 | if (PyErr_Occurred()) SWIG_fail; | |
36099 | } | |
36100 | resultobj = SWIG_FromInt((int)result); | |
36101 | return resultobj; | |
36102 | fail: | |
36103 | return NULL; | |
36104 | } | |
36105 | ||
36106 | ||
36107 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
36108 | PyObject *obj; | |
36109 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36110 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
36111 | Py_INCREF(obj); | |
36112 | return Py_BuildValue((char *)""); | |
36113 | } | |
36114 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36115 | PyObject *resultobj; | |
36116 | int arg1 = (int) 1 ; | |
36117 | int arg2 = (int) 0 ; | |
36118 | int arg3 = (int) 0 ; | |
36119 | int arg4 = (int) 0 ; | |
36120 | wxFlexGridSizer *result; | |
36121 | PyObject * obj0 = 0 ; | |
36122 | PyObject * obj1 = 0 ; | |
36123 | PyObject * obj2 = 0 ; | |
36124 | PyObject * obj3 = 0 ; | |
36125 | char *kwnames[] = { | |
36126 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36127 | }; | |
36128 | ||
36129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36130 | if (obj0) { | |
36131 | arg1 = (int) SWIG_AsInt(obj0); | |
36132 | if (PyErr_Occurred()) SWIG_fail; | |
36133 | } | |
36134 | if (obj1) { | |
36135 | arg2 = (int) SWIG_AsInt(obj1); | |
36136 | if (PyErr_Occurred()) SWIG_fail; | |
36137 | } | |
36138 | if (obj2) { | |
36139 | arg3 = (int) SWIG_AsInt(obj2); | |
36140 | if (PyErr_Occurred()) SWIG_fail; | |
36141 | } | |
36142 | if (obj3) { | |
36143 | arg4 = (int) SWIG_AsInt(obj3); | |
36144 | if (PyErr_Occurred()) SWIG_fail; | |
36145 | } | |
36146 | { | |
36147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36148 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
36149 | ||
36150 | wxPyEndAllowThreads(__tstate); | |
36151 | if (PyErr_Occurred()) SWIG_fail; | |
36152 | } | |
36153 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); | |
36154 | return resultobj; | |
36155 | fail: | |
36156 | return NULL; | |
36157 | } | |
36158 | ||
36159 | ||
36160 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36161 | PyObject *resultobj; | |
36162 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36163 | PyObject * obj0 = 0 ; | |
36164 | char *kwnames[] = { | |
36165 | (char *) "self", NULL | |
36166 | }; | |
36167 | ||
36168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36171 | { | |
36172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36173 | (arg1)->RecalcSizes(); | |
36174 | ||
36175 | wxPyEndAllowThreads(__tstate); | |
36176 | if (PyErr_Occurred()) SWIG_fail; | |
36177 | } | |
36178 | Py_INCREF(Py_None); resultobj = Py_None; | |
36179 | return resultobj; | |
36180 | fail: | |
36181 | return NULL; | |
36182 | } | |
36183 | ||
36184 | ||
36185 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36186 | PyObject *resultobj; | |
36187 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36188 | wxSize result; | |
36189 | PyObject * obj0 = 0 ; | |
36190 | char *kwnames[] = { | |
36191 | (char *) "self", NULL | |
36192 | }; | |
36193 | ||
36194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
36195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36197 | { | |
36198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36199 | result = (arg1)->CalcMin(); | |
36200 | ||
36201 | wxPyEndAllowThreads(__tstate); | |
36202 | if (PyErr_Occurred()) SWIG_fail; | |
36203 | } | |
36204 | { | |
36205 | wxSize * resultptr; | |
36206 | resultptr = new wxSize((wxSize &) result); | |
36207 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36208 | } | |
36209 | return resultobj; | |
36210 | fail: | |
36211 | return NULL; | |
36212 | } | |
36213 | ||
36214 | ||
36215 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36216 | PyObject *resultobj; | |
36217 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36218 | size_t arg2 ; | |
36219 | int arg3 = (int) 0 ; | |
36220 | PyObject * obj0 = 0 ; | |
36221 | PyObject * obj1 = 0 ; | |
36222 | PyObject * obj2 = 0 ; | |
36223 | char *kwnames[] = { | |
36224 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36225 | }; | |
36226 | ||
36227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36230 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36231 | if (PyErr_Occurred()) SWIG_fail; | |
36232 | if (obj2) { | |
36233 | arg3 = (int) SWIG_AsInt(obj2); | |
36234 | if (PyErr_Occurred()) SWIG_fail; | |
36235 | } | |
36236 | { | |
36237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36238 | (arg1)->AddGrowableRow(arg2,arg3); | |
36239 | ||
36240 | wxPyEndAllowThreads(__tstate); | |
36241 | if (PyErr_Occurred()) SWIG_fail; | |
36242 | } | |
36243 | Py_INCREF(Py_None); resultobj = Py_None; | |
36244 | return resultobj; | |
36245 | fail: | |
36246 | return NULL; | |
36247 | } | |
36248 | ||
36249 | ||
36250 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36251 | PyObject *resultobj; | |
36252 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36253 | size_t arg2 ; | |
36254 | PyObject * obj0 = 0 ; | |
36255 | PyObject * obj1 = 0 ; | |
36256 | char *kwnames[] = { | |
36257 | (char *) "self",(char *) "idx", NULL | |
36258 | }; | |
36259 | ||
36260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
36261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36263 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36264 | if (PyErr_Occurred()) SWIG_fail; | |
36265 | { | |
36266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36267 | (arg1)->RemoveGrowableRow(arg2); | |
36268 | ||
36269 | wxPyEndAllowThreads(__tstate); | |
36270 | if (PyErr_Occurred()) SWIG_fail; | |
36271 | } | |
36272 | Py_INCREF(Py_None); resultobj = Py_None; | |
36273 | return resultobj; | |
36274 | fail: | |
36275 | return NULL; | |
36276 | } | |
36277 | ||
36278 | ||
36279 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36280 | PyObject *resultobj; | |
36281 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36282 | size_t arg2 ; | |
36283 | int arg3 = (int) 0 ; | |
36284 | PyObject * obj0 = 0 ; | |
36285 | PyObject * obj1 = 0 ; | |
36286 | PyObject * obj2 = 0 ; | |
36287 | char *kwnames[] = { | |
36288 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36289 | }; | |
36290 | ||
36291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36294 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36295 | if (PyErr_Occurred()) SWIG_fail; | |
36296 | if (obj2) { | |
36297 | arg3 = (int) SWIG_AsInt(obj2); | |
36298 | if (PyErr_Occurred()) SWIG_fail; | |
36299 | } | |
36300 | { | |
36301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36302 | (arg1)->AddGrowableCol(arg2,arg3); | |
36303 | ||
36304 | wxPyEndAllowThreads(__tstate); | |
36305 | if (PyErr_Occurred()) SWIG_fail; | |
36306 | } | |
36307 | Py_INCREF(Py_None); resultobj = Py_None; | |
36308 | return resultobj; | |
36309 | fail: | |
36310 | return NULL; | |
36311 | } | |
36312 | ||
36313 | ||
36314 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36315 | PyObject *resultobj; | |
36316 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36317 | size_t arg2 ; | |
36318 | PyObject * obj0 = 0 ; | |
36319 | PyObject * obj1 = 0 ; | |
36320 | char *kwnames[] = { | |
36321 | (char *) "self",(char *) "idx", NULL | |
36322 | }; | |
36323 | ||
36324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
36325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36327 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36328 | if (PyErr_Occurred()) SWIG_fail; | |
36329 | { | |
36330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36331 | (arg1)->RemoveGrowableCol(arg2); | |
36332 | ||
36333 | wxPyEndAllowThreads(__tstate); | |
36334 | if (PyErr_Occurred()) SWIG_fail; | |
36335 | } | |
36336 | Py_INCREF(Py_None); resultobj = Py_None; | |
36337 | return resultobj; | |
36338 | fail: | |
36339 | return NULL; | |
36340 | } | |
36341 | ||
36342 | ||
36343 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36344 | PyObject *resultobj; | |
36345 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36346 | int arg2 ; | |
36347 | PyObject * obj0 = 0 ; | |
36348 | PyObject * obj1 = 0 ; | |
36349 | char *kwnames[] = { | |
36350 | (char *) "self",(char *) "direction", NULL | |
36351 | }; | |
36352 | ||
36353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; | |
36354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36356 | arg2 = (int) SWIG_AsInt(obj1); | |
36357 | if (PyErr_Occurred()) SWIG_fail; | |
36358 | { | |
36359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36360 | (arg1)->SetFlexibleDirection(arg2); | |
36361 | ||
36362 | wxPyEndAllowThreads(__tstate); | |
36363 | if (PyErr_Occurred()) SWIG_fail; | |
36364 | } | |
36365 | Py_INCREF(Py_None); resultobj = Py_None; | |
36366 | return resultobj; | |
36367 | fail: | |
36368 | return NULL; | |
36369 | } | |
36370 | ||
36371 | ||
36372 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36373 | PyObject *resultobj; | |
36374 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36375 | int result; | |
36376 | PyObject * obj0 = 0 ; | |
36377 | char *kwnames[] = { | |
36378 | (char *) "self", NULL | |
36379 | }; | |
36380 | ||
36381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
36382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36384 | { | |
36385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36386 | result = (int)(arg1)->GetFlexibleDirection(); | |
36387 | ||
36388 | wxPyEndAllowThreads(__tstate); | |
36389 | if (PyErr_Occurred()) SWIG_fail; | |
36390 | } | |
36391 | resultobj = SWIG_FromInt((int)result); | |
36392 | return resultobj; | |
36393 | fail: | |
36394 | return NULL; | |
36395 | } | |
36396 | ||
36397 | ||
36398 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36399 | PyObject *resultobj; | |
36400 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36401 | int arg2 ; | |
36402 | PyObject * obj0 = 0 ; | |
36403 | PyObject * obj1 = 0 ; | |
36404 | char *kwnames[] = { | |
36405 | (char *) "self",(char *) "mode", NULL | |
36406 | }; | |
36407 | ||
36408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; | |
36409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36411 | arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); | |
36412 | if (PyErr_Occurred()) SWIG_fail; | |
36413 | { | |
36414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36415 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
36416 | ||
36417 | wxPyEndAllowThreads(__tstate); | |
36418 | if (PyErr_Occurred()) SWIG_fail; | |
36419 | } | |
36420 | Py_INCREF(Py_None); resultobj = Py_None; | |
36421 | return resultobj; | |
36422 | fail: | |
36423 | return NULL; | |
36424 | } | |
36425 | ||
36426 | ||
36427 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36428 | PyObject *resultobj; | |
36429 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36430 | int result; | |
36431 | PyObject * obj0 = 0 ; | |
36432 | char *kwnames[] = { | |
36433 | (char *) "self", NULL | |
36434 | }; | |
36435 | ||
36436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
36437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36439 | { | |
36440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36441 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
36442 | ||
36443 | wxPyEndAllowThreads(__tstate); | |
36444 | if (PyErr_Occurred()) SWIG_fail; | |
36445 | } | |
36446 | resultobj = SWIG_FromInt((int)result); | |
36447 | return resultobj; | |
36448 | fail: | |
36449 | return NULL; | |
36450 | } | |
36451 | ||
36452 | ||
36453 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36454 | PyObject *resultobj; | |
36455 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36456 | wxArrayInt *result; | |
36457 | PyObject * obj0 = 0 ; | |
36458 | char *kwnames[] = { | |
36459 | (char *) "self", NULL | |
36460 | }; | |
36461 | ||
36462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
36463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36465 | { | |
36466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36467 | { | |
36468 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
36469 | result = (wxArrayInt *) &_result_ref; | |
36470 | } | |
36471 | ||
36472 | wxPyEndAllowThreads(__tstate); | |
36473 | if (PyErr_Occurred()) SWIG_fail; | |
36474 | } | |
36475 | { | |
36476 | resultobj = PyList_New(0); | |
36477 | size_t idx; | |
36478 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36479 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36480 | PyList_Append(resultobj, val); | |
36481 | Py_DECREF(val); | |
36482 | } | |
36483 | } | |
36484 | return resultobj; | |
36485 | fail: | |
36486 | return NULL; | |
36487 | } | |
36488 | ||
36489 | ||
36490 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36491 | PyObject *resultobj; | |
36492 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36493 | wxArrayInt *result; | |
36494 | PyObject * obj0 = 0 ; | |
36495 | char *kwnames[] = { | |
36496 | (char *) "self", NULL | |
36497 | }; | |
36498 | ||
36499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
36500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36502 | { | |
36503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36504 | { | |
36505 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
36506 | result = (wxArrayInt *) &_result_ref; | |
36507 | } | |
36508 | ||
36509 | wxPyEndAllowThreads(__tstate); | |
36510 | if (PyErr_Occurred()) SWIG_fail; | |
36511 | } | |
36512 | { | |
36513 | resultobj = PyList_New(0); | |
36514 | size_t idx; | |
36515 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36516 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36517 | PyList_Append(resultobj, val); | |
36518 | Py_DECREF(val); | |
36519 | } | |
36520 | } | |
36521 | return resultobj; | |
36522 | fail: | |
36523 | return NULL; | |
36524 | } | |
36525 | ||
36526 | ||
36527 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { | |
36528 | PyObject *obj; | |
36529 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36530 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
36531 | Py_INCREF(obj); | |
36532 | return Py_BuildValue((char *)""); | |
36533 | } | |
36534 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36535 | PyObject *resultobj; | |
36536 | int arg1 = (int) 0 ; | |
36537 | int arg2 = (int) 0 ; | |
36538 | wxGBPosition *result; | |
36539 | PyObject * obj0 = 0 ; | |
36540 | PyObject * obj1 = 0 ; | |
36541 | char *kwnames[] = { | |
36542 | (char *) "row",(char *) "col", NULL | |
36543 | }; | |
36544 | ||
36545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; | |
36546 | if (obj0) { | |
36547 | arg1 = (int) SWIG_AsInt(obj0); | |
36548 | if (PyErr_Occurred()) SWIG_fail; | |
36549 | } | |
36550 | if (obj1) { | |
36551 | arg2 = (int) SWIG_AsInt(obj1); | |
36552 | if (PyErr_Occurred()) SWIG_fail; | |
36553 | } | |
36554 | { | |
36555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36556 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
36557 | ||
36558 | wxPyEndAllowThreads(__tstate); | |
36559 | if (PyErr_Occurred()) SWIG_fail; | |
36560 | } | |
36561 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); | |
36562 | return resultobj; | |
36563 | fail: | |
36564 | return NULL; | |
36565 | } | |
36566 | ||
36567 | ||
36568 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36569 | PyObject *resultobj; | |
36570 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36571 | int result; | |
36572 | PyObject * obj0 = 0 ; | |
36573 | char *kwnames[] = { | |
36574 | (char *) "self", NULL | |
36575 | }; | |
36576 | ||
36577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
36578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
36579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36580 | { | |
36581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36582 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
36583 | ||
36584 | wxPyEndAllowThreads(__tstate); | |
36585 | if (PyErr_Occurred()) SWIG_fail; | |
36586 | } | |
36587 | resultobj = SWIG_FromInt((int)result); | |
36588 | return resultobj; | |
36589 | fail: | |
36590 | return NULL; | |
36591 | } | |
36592 | ||
36593 | ||
36594 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36595 | PyObject *resultobj; | |
36596 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36597 | int result; | |
36598 | PyObject * obj0 = 0 ; | |
36599 | char *kwnames[] = { | |
36600 | (char *) "self", NULL | |
36601 | }; | |
36602 | ||
36603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
36604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
36605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36606 | { | |
36607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36608 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
36609 | ||
36610 | wxPyEndAllowThreads(__tstate); | |
36611 | if (PyErr_Occurred()) SWIG_fail; | |
36612 | } | |
36613 | resultobj = SWIG_FromInt((int)result); | |
36614 | return resultobj; | |
36615 | fail: | |
36616 | return NULL; | |
36617 | } | |
36618 | ||
36619 | ||
36620 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36621 | PyObject *resultobj; | |
36622 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36623 | int arg2 ; | |
36624 | PyObject * obj0 = 0 ; | |
36625 | PyObject * obj1 = 0 ; | |
36626 | char *kwnames[] = { | |
36627 | (char *) "self",(char *) "row", NULL | |
36628 | }; | |
36629 | ||
36630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
36631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
36632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36633 | arg2 = (int) SWIG_AsInt(obj1); | |
36634 | if (PyErr_Occurred()) SWIG_fail; | |
36635 | { | |
36636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36637 | (arg1)->SetRow(arg2); | |
36638 | ||
36639 | wxPyEndAllowThreads(__tstate); | |
36640 | if (PyErr_Occurred()) SWIG_fail; | |
36641 | } | |
36642 | Py_INCREF(Py_None); resultobj = Py_None; | |
36643 | return resultobj; | |
36644 | fail: | |
36645 | return NULL; | |
36646 | } | |
36647 | ||
36648 | ||
36649 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36650 | PyObject *resultobj; | |
36651 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36652 | int arg2 ; | |
36653 | PyObject * obj0 = 0 ; | |
36654 | PyObject * obj1 = 0 ; | |
36655 | char *kwnames[] = { | |
36656 | (char *) "self",(char *) "col", NULL | |
36657 | }; | |
36658 | ||
36659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
36660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
36661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36662 | arg2 = (int) SWIG_AsInt(obj1); | |
36663 | if (PyErr_Occurred()) SWIG_fail; | |
36664 | { | |
36665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36666 | (arg1)->SetCol(arg2); | |
36667 | ||
36668 | wxPyEndAllowThreads(__tstate); | |
36669 | if (PyErr_Occurred()) SWIG_fail; | |
36670 | } | |
36671 | Py_INCREF(Py_None); resultobj = Py_None; | |
36672 | return resultobj; | |
36673 | fail: | |
36674 | return NULL; | |
36675 | } | |
36676 | ||
36677 | ||
36678 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36679 | PyObject *resultobj; | |
36680 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36681 | wxGBPosition *arg2 = 0 ; | |
36682 | bool result; | |
36683 | wxGBPosition temp2 ; | |
36684 | PyObject * obj0 = 0 ; | |
36685 | PyObject * obj1 = 0 ; | |
36686 | char *kwnames[] = { | |
36687 | (char *) "self",(char *) "other", NULL | |
36688 | }; | |
36689 | ||
36690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
36691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
36692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36693 | { | |
36694 | arg2 = &temp2; | |
36695 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36696 | } | |
36697 | { | |
36698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36699 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); | |
36700 | ||
36701 | wxPyEndAllowThreads(__tstate); | |
36702 | if (PyErr_Occurred()) SWIG_fail; | |
36703 | } | |
36704 | { | |
36705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36706 | } | |
36707 | return resultobj; | |
36708 | fail: | |
36709 | return NULL; | |
36710 | } | |
36711 | ||
36712 | ||
36713 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36714 | PyObject *resultobj; | |
36715 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36716 | wxGBPosition *arg2 = 0 ; | |
36717 | bool result; | |
36718 | wxGBPosition temp2 ; | |
36719 | PyObject * obj0 = 0 ; | |
36720 | PyObject * obj1 = 0 ; | |
36721 | char *kwnames[] = { | |
36722 | (char *) "self",(char *) "other", NULL | |
36723 | }; | |
36724 | ||
36725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
36726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
36727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36728 | { | |
36729 | arg2 = &temp2; | |
36730 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36731 | } | |
36732 | { | |
36733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36734 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); | |
36735 | ||
36736 | wxPyEndAllowThreads(__tstate); | |
36737 | if (PyErr_Occurred()) SWIG_fail; | |
36738 | } | |
36739 | { | |
36740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36741 | } | |
36742 | return resultobj; | |
36743 | fail: | |
36744 | return NULL; | |
36745 | } | |
36746 | ||
36747 | ||
36748 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36749 | PyObject *resultobj; | |
36750 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36751 | int arg2 = (int) 0 ; | |
36752 | int arg3 = (int) 0 ; | |
36753 | PyObject * obj0 = 0 ; | |
36754 | PyObject * obj1 = 0 ; | |
36755 | PyObject * obj2 = 0 ; | |
36756 | char *kwnames[] = { | |
36757 | (char *) "self",(char *) "row",(char *) "col", NULL | |
36758 | }; | |
36759 | ||
36760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
36762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36763 | if (obj1) { | |
36764 | arg2 = (int) SWIG_AsInt(obj1); | |
36765 | if (PyErr_Occurred()) SWIG_fail; | |
36766 | } | |
36767 | if (obj2) { | |
36768 | arg3 = (int) SWIG_AsInt(obj2); | |
36769 | if (PyErr_Occurred()) SWIG_fail; | |
36770 | } | |
36771 | { | |
36772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36773 | wxGBPosition_Set(arg1,arg2,arg3); | |
36774 | ||
36775 | wxPyEndAllowThreads(__tstate); | |
36776 | if (PyErr_Occurred()) SWIG_fail; | |
36777 | } | |
36778 | Py_INCREF(Py_None); resultobj = Py_None; | |
36779 | return resultobj; | |
36780 | fail: | |
36781 | return NULL; | |
36782 | } | |
36783 | ||
36784 | ||
36785 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36786 | PyObject *resultobj; | |
36787 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36788 | PyObject *result; | |
36789 | PyObject * obj0 = 0 ; | |
36790 | char *kwnames[] = { | |
36791 | (char *) "self", NULL | |
36792 | }; | |
36793 | ||
36794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; | |
36795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
36796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36797 | { | |
36798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36799 | result = (PyObject *)wxGBPosition_Get(arg1); | |
36800 | ||
36801 | wxPyEndAllowThreads(__tstate); | |
36802 | if (PyErr_Occurred()) SWIG_fail; | |
36803 | } | |
36804 | resultobj = result; | |
36805 | return resultobj; | |
36806 | fail: | |
36807 | return NULL; | |
36808 | } | |
36809 | ||
36810 | ||
36811 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
36812 | PyObject *obj; | |
36813 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36814 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
36815 | Py_INCREF(obj); | |
36816 | return Py_BuildValue((char *)""); | |
36817 | } | |
36818 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36819 | PyObject *resultobj; | |
36820 | int arg1 = (int) 1 ; | |
36821 | int arg2 = (int) 1 ; | |
36822 | wxGBSpan *result; | |
36823 | PyObject * obj0 = 0 ; | |
36824 | PyObject * obj1 = 0 ; | |
36825 | char *kwnames[] = { | |
36826 | (char *) "rowspan",(char *) "colspan", NULL | |
36827 | }; | |
36828 | ||
36829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; | |
36830 | if (obj0) { | |
36831 | arg1 = (int) SWIG_AsInt(obj0); | |
36832 | if (PyErr_Occurred()) SWIG_fail; | |
36833 | } | |
36834 | if (obj1) { | |
36835 | arg2 = (int) SWIG_AsInt(obj1); | |
36836 | if (PyErr_Occurred()) SWIG_fail; | |
36837 | } | |
36838 | { | |
36839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36840 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
36841 | ||
36842 | wxPyEndAllowThreads(__tstate); | |
36843 | if (PyErr_Occurred()) SWIG_fail; | |
36844 | } | |
36845 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); | |
36846 | return resultobj; | |
36847 | fail: | |
36848 | return NULL; | |
36849 | } | |
36850 | ||
36851 | ||
36852 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36853 | PyObject *resultobj; | |
36854 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36855 | int result; | |
36856 | PyObject * obj0 = 0 ; | |
36857 | char *kwnames[] = { | |
36858 | (char *) "self", NULL | |
36859 | }; | |
36860 | ||
36861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
36862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
36863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36864 | { | |
36865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36866 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
36867 | ||
36868 | wxPyEndAllowThreads(__tstate); | |
36869 | if (PyErr_Occurred()) SWIG_fail; | |
36870 | } | |
36871 | resultobj = SWIG_FromInt((int)result); | |
36872 | return resultobj; | |
36873 | fail: | |
36874 | return NULL; | |
36875 | } | |
36876 | ||
36877 | ||
36878 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36879 | PyObject *resultobj; | |
36880 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36881 | int result; | |
36882 | PyObject * obj0 = 0 ; | |
36883 | char *kwnames[] = { | |
36884 | (char *) "self", NULL | |
36885 | }; | |
36886 | ||
36887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
36888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
36889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36890 | { | |
36891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36892 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
36893 | ||
36894 | wxPyEndAllowThreads(__tstate); | |
36895 | if (PyErr_Occurred()) SWIG_fail; | |
36896 | } | |
36897 | resultobj = SWIG_FromInt((int)result); | |
36898 | return resultobj; | |
36899 | fail: | |
36900 | return NULL; | |
36901 | } | |
36902 | ||
36903 | ||
36904 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36905 | PyObject *resultobj; | |
36906 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36907 | int arg2 ; | |
36908 | PyObject * obj0 = 0 ; | |
36909 | PyObject * obj1 = 0 ; | |
36910 | char *kwnames[] = { | |
36911 | (char *) "self",(char *) "rowspan", NULL | |
36912 | }; | |
36913 | ||
36914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; | |
36915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
36916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36917 | arg2 = (int) SWIG_AsInt(obj1); | |
36918 | if (PyErr_Occurred()) SWIG_fail; | |
36919 | { | |
36920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36921 | (arg1)->SetRowspan(arg2); | |
36922 | ||
36923 | wxPyEndAllowThreads(__tstate); | |
36924 | if (PyErr_Occurred()) SWIG_fail; | |
36925 | } | |
36926 | Py_INCREF(Py_None); resultobj = Py_None; | |
36927 | return resultobj; | |
36928 | fail: | |
36929 | return NULL; | |
36930 | } | |
36931 | ||
36932 | ||
36933 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36934 | PyObject *resultobj; | |
36935 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36936 | int arg2 ; | |
36937 | PyObject * obj0 = 0 ; | |
36938 | PyObject * obj1 = 0 ; | |
36939 | char *kwnames[] = { | |
36940 | (char *) "self",(char *) "colspan", NULL | |
36941 | }; | |
36942 | ||
36943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; | |
36944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
36945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36946 | arg2 = (int) SWIG_AsInt(obj1); | |
36947 | if (PyErr_Occurred()) SWIG_fail; | |
36948 | { | |
36949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36950 | (arg1)->SetColspan(arg2); | |
36951 | ||
36952 | wxPyEndAllowThreads(__tstate); | |
36953 | if (PyErr_Occurred()) SWIG_fail; | |
36954 | } | |
36955 | Py_INCREF(Py_None); resultobj = Py_None; | |
36956 | return resultobj; | |
36957 | fail: | |
36958 | return NULL; | |
36959 | } | |
36960 | ||
36961 | ||
36962 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36963 | PyObject *resultobj; | |
36964 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36965 | wxGBSpan *arg2 = 0 ; | |
36966 | bool result; | |
36967 | wxGBSpan temp2 ; | |
36968 | PyObject * obj0 = 0 ; | |
36969 | PyObject * obj1 = 0 ; | |
36970 | char *kwnames[] = { | |
36971 | (char *) "self",(char *) "other", NULL | |
36972 | }; | |
36973 | ||
36974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
36975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
36976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36977 | { | |
36978 | arg2 = &temp2; | |
36979 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36980 | } | |
36981 | { | |
36982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36983 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); | |
36984 | ||
36985 | wxPyEndAllowThreads(__tstate); | |
36986 | if (PyErr_Occurred()) SWIG_fail; | |
36987 | } | |
36988 | { | |
36989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36990 | } | |
36991 | return resultobj; | |
36992 | fail: | |
36993 | return NULL; | |
36994 | } | |
36995 | ||
36996 | ||
36997 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36998 | PyObject *resultobj; | |
36999 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37000 | wxGBSpan *arg2 = 0 ; | |
37001 | bool result; | |
37002 | wxGBSpan temp2 ; | |
37003 | PyObject * obj0 = 0 ; | |
37004 | PyObject * obj1 = 0 ; | |
37005 | char *kwnames[] = { | |
37006 | (char *) "self",(char *) "other", NULL | |
37007 | }; | |
37008 | ||
37009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
37010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37012 | { | |
37013 | arg2 = &temp2; | |
37014 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37015 | } | |
37016 | { | |
37017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37018 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); | |
37019 | ||
37020 | wxPyEndAllowThreads(__tstate); | |
37021 | if (PyErr_Occurred()) SWIG_fail; | |
37022 | } | |
37023 | { | |
37024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37025 | } | |
37026 | return resultobj; | |
37027 | fail: | |
37028 | return NULL; | |
37029 | } | |
37030 | ||
37031 | ||
37032 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37033 | PyObject *resultobj; | |
37034 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37035 | int arg2 = (int) 1 ; | |
37036 | int arg3 = (int) 1 ; | |
37037 | PyObject * obj0 = 0 ; | |
37038 | PyObject * obj1 = 0 ; | |
37039 | PyObject * obj2 = 0 ; | |
37040 | char *kwnames[] = { | |
37041 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
37042 | }; | |
37043 | ||
37044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37047 | if (obj1) { | |
37048 | arg2 = (int) SWIG_AsInt(obj1); | |
37049 | if (PyErr_Occurred()) SWIG_fail; | |
37050 | } | |
37051 | if (obj2) { | |
37052 | arg3 = (int) SWIG_AsInt(obj2); | |
37053 | if (PyErr_Occurred()) SWIG_fail; | |
37054 | } | |
37055 | { | |
37056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37057 | wxGBSpan_Set(arg1,arg2,arg3); | |
37058 | ||
37059 | wxPyEndAllowThreads(__tstate); | |
37060 | if (PyErr_Occurred()) SWIG_fail; | |
37061 | } | |
37062 | Py_INCREF(Py_None); resultobj = Py_None; | |
37063 | return resultobj; | |
37064 | fail: | |
37065 | return NULL; | |
37066 | } | |
37067 | ||
37068 | ||
37069 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37070 | PyObject *resultobj; | |
37071 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37072 | PyObject *result; | |
37073 | PyObject * obj0 = 0 ; | |
37074 | char *kwnames[] = { | |
37075 | (char *) "self", NULL | |
37076 | }; | |
37077 | ||
37078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; | |
37079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37081 | { | |
37082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37083 | result = (PyObject *)wxGBSpan_Get(arg1); | |
37084 | ||
37085 | wxPyEndAllowThreads(__tstate); | |
37086 | if (PyErr_Occurred()) SWIG_fail; | |
37087 | } | |
37088 | resultobj = result; | |
37089 | return resultobj; | |
37090 | fail: | |
37091 | return NULL; | |
37092 | } | |
37093 | ||
37094 | ||
37095 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
37096 | PyObject *obj; | |
37097 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37098 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
37099 | Py_INCREF(obj); | |
37100 | return Py_BuildValue((char *)""); | |
37101 | } | |
37102 | static int _wrap_DefaultSpan_set(PyObject *_val) { | |
37103 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); | |
37104 | return 1; | |
37105 | } | |
37106 | ||
37107 | ||
37108 | static PyObject *_wrap_DefaultSpan_get() { | |
37109 | PyObject *pyobj; | |
37110 | ||
37111 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); | |
37112 | return pyobj; | |
37113 | } | |
37114 | ||
37115 | ||
37116 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37117 | PyObject *resultobj; | |
37118 | wxGBSizerItem *result; | |
37119 | char *kwnames[] = { | |
37120 | NULL | |
37121 | }; | |
37122 | ||
37123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
37124 | { | |
37125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37126 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
37127 | ||
37128 | wxPyEndAllowThreads(__tstate); | |
37129 | if (PyErr_Occurred()) SWIG_fail; | |
37130 | } | |
37131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37132 | return resultobj; | |
37133 | fail: | |
37134 | return NULL; | |
37135 | } | |
37136 | ||
37137 | ||
37138 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37139 | PyObject *resultobj; | |
37140 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37141 | wxGBPosition *arg2 = 0 ; | |
37142 | wxGBSpan *arg3 = 0 ; | |
37143 | int arg4 ; | |
37144 | int arg5 ; | |
37145 | wxObject *arg6 = (wxObject *) 0 ; | |
37146 | wxGBSizerItem *result; | |
37147 | wxGBPosition temp2 ; | |
37148 | wxGBSpan temp3 ; | |
37149 | PyObject * obj0 = 0 ; | |
37150 | PyObject * obj1 = 0 ; | |
37151 | PyObject * obj2 = 0 ; | |
37152 | PyObject * obj3 = 0 ; | |
37153 | PyObject * obj4 = 0 ; | |
37154 | PyObject * obj5 = 0 ; | |
37155 | char *kwnames[] = { | |
37156 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37157 | }; | |
37158 | ||
37159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
37160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
37161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37162 | { | |
37163 | arg2 = &temp2; | |
37164 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37165 | } | |
37166 | { | |
37167 | arg3 = &temp3; | |
37168 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37169 | } | |
37170 | arg4 = (int) SWIG_AsInt(obj3); | |
37171 | if (PyErr_Occurred()) SWIG_fail; | |
37172 | arg5 = (int) SWIG_AsInt(obj4); | |
37173 | if (PyErr_Occurred()) SWIG_fail; | |
37174 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
37175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37176 | { | |
37177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37178 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
37179 | ||
37180 | wxPyEndAllowThreads(__tstate); | |
37181 | if (PyErr_Occurred()) SWIG_fail; | |
37182 | } | |
37183 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37184 | return resultobj; | |
37185 | fail: | |
37186 | return NULL; | |
37187 | } | |
37188 | ||
37189 | ||
37190 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37191 | PyObject *resultobj; | |
37192 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37193 | wxGBPosition *arg2 = 0 ; | |
37194 | wxGBSpan *arg3 = 0 ; | |
37195 | int arg4 ; | |
37196 | int arg5 ; | |
37197 | wxObject *arg6 = (wxObject *) 0 ; | |
37198 | wxGBSizerItem *result; | |
37199 | wxGBPosition temp2 ; | |
37200 | wxGBSpan temp3 ; | |
37201 | PyObject * obj0 = 0 ; | |
37202 | PyObject * obj1 = 0 ; | |
37203 | PyObject * obj2 = 0 ; | |
37204 | PyObject * obj3 = 0 ; | |
37205 | PyObject * obj4 = 0 ; | |
37206 | PyObject * obj5 = 0 ; | |
37207 | char *kwnames[] = { | |
37208 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37209 | }; | |
37210 | ||
37211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
37212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
37213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37214 | { | |
37215 | arg2 = &temp2; | |
37216 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37217 | } | |
37218 | { | |
37219 | arg3 = &temp3; | |
37220 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37221 | } | |
37222 | arg4 = (int) SWIG_AsInt(obj3); | |
37223 | if (PyErr_Occurred()) SWIG_fail; | |
37224 | arg5 = (int) SWIG_AsInt(obj4); | |
37225 | if (PyErr_Occurred()) SWIG_fail; | |
37226 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
37227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37228 | { | |
37229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37230 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
37231 | ||
37232 | wxPyEndAllowThreads(__tstate); | |
37233 | if (PyErr_Occurred()) SWIG_fail; | |
37234 | } | |
37235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37236 | return resultobj; | |
37237 | fail: | |
37238 | return NULL; | |
37239 | } | |
37240 | ||
37241 | ||
37242 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37243 | PyObject *resultobj; | |
37244 | int arg1 ; | |
37245 | int arg2 ; | |
37246 | wxGBPosition *arg3 = 0 ; | |
37247 | wxGBSpan *arg4 = 0 ; | |
37248 | int arg5 ; | |
37249 | int arg6 ; | |
37250 | wxObject *arg7 = (wxObject *) 0 ; | |
37251 | wxGBSizerItem *result; | |
37252 | wxGBPosition temp3 ; | |
37253 | wxGBSpan temp4 ; | |
37254 | PyObject * obj0 = 0 ; | |
37255 | PyObject * obj1 = 0 ; | |
37256 | PyObject * obj2 = 0 ; | |
37257 | PyObject * obj3 = 0 ; | |
37258 | PyObject * obj4 = 0 ; | |
37259 | PyObject * obj5 = 0 ; | |
37260 | PyObject * obj6 = 0 ; | |
37261 | char *kwnames[] = { | |
37262 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37263 | }; | |
37264 | ||
37265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
37266 | arg1 = (int) SWIG_AsInt(obj0); | |
37267 | if (PyErr_Occurred()) SWIG_fail; | |
37268 | arg2 = (int) SWIG_AsInt(obj1); | |
37269 | if (PyErr_Occurred()) SWIG_fail; | |
37270 | { | |
37271 | arg3 = &temp3; | |
37272 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37273 | } | |
37274 | { | |
37275 | arg4 = &temp4; | |
37276 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37277 | } | |
37278 | arg5 = (int) SWIG_AsInt(obj4); | |
37279 | if (PyErr_Occurred()) SWIG_fail; | |
37280 | arg6 = (int) SWIG_AsInt(obj5); | |
37281 | if (PyErr_Occurred()) SWIG_fail; | |
37282 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxObject, | |
37283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37284 | { | |
37285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37286 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
37287 | ||
37288 | wxPyEndAllowThreads(__tstate); | |
37289 | if (PyErr_Occurred()) SWIG_fail; | |
37290 | } | |
37291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37292 | return resultobj; | |
37293 | fail: | |
37294 | return NULL; | |
37295 | } | |
37296 | ||
37297 | ||
37298 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37299 | PyObject *resultobj; | |
37300 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37301 | wxGBPosition result; | |
37302 | PyObject * obj0 = 0 ; | |
37303 | char *kwnames[] = { | |
37304 | (char *) "self", NULL | |
37305 | }; | |
37306 | ||
37307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
37308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37310 | { | |
37311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37312 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
37313 | ||
37314 | wxPyEndAllowThreads(__tstate); | |
37315 | if (PyErr_Occurred()) SWIG_fail; | |
37316 | } | |
37317 | { | |
37318 | wxGBPosition * resultptr; | |
37319 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
37320 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
37321 | } | |
37322 | return resultobj; | |
37323 | fail: | |
37324 | return NULL; | |
37325 | } | |
37326 | ||
37327 | ||
37328 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37329 | PyObject *resultobj; | |
37330 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37331 | wxGBSpan result; | |
37332 | PyObject * obj0 = 0 ; | |
37333 | char *kwnames[] = { | |
37334 | (char *) "self", NULL | |
37335 | }; | |
37336 | ||
37337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
37338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37340 | { | |
37341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37342 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
37343 | ||
37344 | wxPyEndAllowThreads(__tstate); | |
37345 | if (PyErr_Occurred()) SWIG_fail; | |
37346 | } | |
37347 | { | |
37348 | wxGBSpan * resultptr; | |
37349 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
37350 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
37351 | } | |
37352 | return resultobj; | |
37353 | fail: | |
37354 | return NULL; | |
37355 | } | |
37356 | ||
37357 | ||
37358 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37359 | PyObject *resultobj; | |
37360 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37361 | wxGBPosition *arg2 = 0 ; | |
37362 | bool result; | |
37363 | wxGBPosition temp2 ; | |
37364 | PyObject * obj0 = 0 ; | |
37365 | PyObject * obj1 = 0 ; | |
37366 | char *kwnames[] = { | |
37367 | (char *) "self",(char *) "pos", NULL | |
37368 | }; | |
37369 | ||
37370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
37371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37373 | { | |
37374 | arg2 = &temp2; | |
37375 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37376 | } | |
37377 | { | |
37378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37379 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
37380 | ||
37381 | wxPyEndAllowThreads(__tstate); | |
37382 | if (PyErr_Occurred()) SWIG_fail; | |
37383 | } | |
37384 | { | |
37385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37386 | } | |
37387 | return resultobj; | |
37388 | fail: | |
37389 | return NULL; | |
37390 | } | |
37391 | ||
37392 | ||
37393 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37394 | PyObject *resultobj; | |
37395 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37396 | wxGBSpan *arg2 = 0 ; | |
37397 | bool result; | |
37398 | wxGBSpan temp2 ; | |
37399 | PyObject * obj0 = 0 ; | |
37400 | PyObject * obj1 = 0 ; | |
37401 | char *kwnames[] = { | |
37402 | (char *) "self",(char *) "span", NULL | |
37403 | }; | |
37404 | ||
37405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
37406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37408 | { | |
37409 | arg2 = &temp2; | |
37410 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37411 | } | |
37412 | { | |
37413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37414 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
37415 | ||
37416 | wxPyEndAllowThreads(__tstate); | |
37417 | if (PyErr_Occurred()) SWIG_fail; | |
37418 | } | |
37419 | { | |
37420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37421 | } | |
37422 | return resultobj; | |
37423 | fail: | |
37424 | return NULL; | |
37425 | } | |
37426 | ||
37427 | ||
37428 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
37429 | PyObject *resultobj; | |
37430 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37431 | wxGBSizerItem *arg2 = 0 ; | |
37432 | bool result; | |
37433 | PyObject * obj0 = 0 ; | |
37434 | PyObject * obj1 = 0 ; | |
37435 | ||
37436 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
37437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37439 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37440 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37441 | SWIG_fail; | |
37442 | if (arg2 == NULL) { | |
37443 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
37444 | SWIG_fail; | |
37445 | } | |
37446 | { | |
37447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37448 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
37449 | ||
37450 | wxPyEndAllowThreads(__tstate); | |
37451 | if (PyErr_Occurred()) SWIG_fail; | |
37452 | } | |
37453 | { | |
37454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37455 | } | |
37456 | return resultobj; | |
37457 | fail: | |
37458 | return NULL; | |
37459 | } | |
37460 | ||
37461 | ||
37462 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
37463 | PyObject *resultobj; | |
37464 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37465 | wxGBPosition *arg2 = 0 ; | |
37466 | wxGBSpan *arg3 = 0 ; | |
37467 | bool result; | |
37468 | wxGBPosition temp2 ; | |
37469 | wxGBSpan temp3 ; | |
37470 | PyObject * obj0 = 0 ; | |
37471 | PyObject * obj1 = 0 ; | |
37472 | PyObject * obj2 = 0 ; | |
37473 | ||
37474 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
37475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37477 | { | |
37478 | arg2 = &temp2; | |
37479 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37480 | } | |
37481 | { | |
37482 | arg3 = &temp3; | |
37483 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37484 | } | |
37485 | { | |
37486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37487 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
37488 | ||
37489 | wxPyEndAllowThreads(__tstate); | |
37490 | if (PyErr_Occurred()) SWIG_fail; | |
37491 | } | |
37492 | { | |
37493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37494 | } | |
37495 | return resultobj; | |
37496 | fail: | |
37497 | return NULL; | |
37498 | } | |
37499 | ||
37500 | ||
37501 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
37502 | int argc; | |
37503 | PyObject *argv[4]; | |
37504 | int ii; | |
37505 | ||
37506 | argc = PyObject_Length(args); | |
37507 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37508 | argv[ii] = PyTuple_GetItem(args,ii); | |
37509 | } | |
37510 | if (argc == 2) { | |
37511 | int _v; | |
37512 | { | |
37513 | void *ptr; | |
37514 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37515 | _v = 0; | |
37516 | PyErr_Clear(); | |
37517 | } else { | |
37518 | _v = 1; | |
37519 | } | |
37520 | } | |
37521 | if (_v) { | |
37522 | { | |
37523 | void *ptr; | |
37524 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37525 | _v = 0; | |
37526 | PyErr_Clear(); | |
37527 | } else { | |
37528 | _v = 1; | |
37529 | } | |
37530 | } | |
37531 | if (_v) { | |
37532 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
37533 | } | |
37534 | } | |
37535 | } | |
37536 | if (argc == 3) { | |
37537 | int _v; | |
37538 | { | |
37539 | void *ptr; | |
37540 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37541 | _v = 0; | |
37542 | PyErr_Clear(); | |
37543 | } else { | |
37544 | _v = 1; | |
37545 | } | |
37546 | } | |
37547 | if (_v) { | |
37548 | { | |
37549 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
37550 | } | |
37551 | if (_v) { | |
37552 | { | |
37553 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37554 | } | |
37555 | if (_v) { | |
37556 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
37557 | } | |
37558 | } | |
37559 | } | |
37560 | } | |
37561 | ||
37562 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
37563 | return NULL; | |
37564 | } | |
37565 | ||
37566 | ||
37567 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37568 | PyObject *resultobj; | |
37569 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37570 | int *arg2 = 0 ; | |
37571 | int *arg3 = 0 ; | |
37572 | PyObject * obj0 = 0 ; | |
37573 | PyObject * obj1 = 0 ; | |
37574 | PyObject * obj2 = 0 ; | |
37575 | char *kwnames[] = { | |
37576 | (char *) "self",(char *) "row",(char *) "col", NULL | |
37577 | }; | |
37578 | ||
37579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37582 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int, | |
37583 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37584 | SWIG_fail; | |
37585 | if (arg2 == NULL) { | |
37586 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
37587 | SWIG_fail; | |
37588 | } | |
37589 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int, | |
37590 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37591 | SWIG_fail; | |
37592 | if (arg3 == NULL) { | |
37593 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
37594 | SWIG_fail; | |
37595 | } | |
37596 | { | |
37597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37598 | (arg1)->GetEndPos(*arg2,*arg3); | |
37599 | ||
37600 | wxPyEndAllowThreads(__tstate); | |
37601 | if (PyErr_Occurred()) SWIG_fail; | |
37602 | } | |
37603 | Py_INCREF(Py_None); resultobj = Py_None; | |
37604 | return resultobj; | |
37605 | fail: | |
37606 | return NULL; | |
37607 | } | |
37608 | ||
37609 | ||
37610 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37611 | PyObject *resultobj; | |
37612 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37613 | wxGridBagSizer *result; | |
37614 | PyObject * obj0 = 0 ; | |
37615 | char *kwnames[] = { | |
37616 | (char *) "self", NULL | |
37617 | }; | |
37618 | ||
37619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
37620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37622 | { | |
37623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37624 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
37625 | ||
37626 | wxPyEndAllowThreads(__tstate); | |
37627 | if (PyErr_Occurred()) SWIG_fail; | |
37628 | } | |
37629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); | |
37630 | return resultobj; | |
37631 | fail: | |
37632 | return NULL; | |
37633 | } | |
37634 | ||
37635 | ||
37636 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37637 | PyObject *resultobj; | |
37638 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37639 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
37640 | PyObject * obj0 = 0 ; | |
37641 | PyObject * obj1 = 0 ; | |
37642 | char *kwnames[] = { | |
37643 | (char *) "self",(char *) "sizer", NULL | |
37644 | }; | |
37645 | ||
37646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
37647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37649 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
37650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37651 | { | |
37652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37653 | (arg1)->SetGBSizer(arg2); | |
37654 | ||
37655 | wxPyEndAllowThreads(__tstate); | |
37656 | if (PyErr_Occurred()) SWIG_fail; | |
37657 | } | |
37658 | Py_INCREF(Py_None); resultobj = Py_None; | |
37659 | return resultobj; | |
37660 | fail: | |
37661 | return NULL; | |
37662 | } | |
37663 | ||
37664 | ||
37665 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
37666 | PyObject *obj; | |
37667 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37668 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
37669 | Py_INCREF(obj); | |
37670 | return Py_BuildValue((char *)""); | |
37671 | } | |
37672 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37673 | PyObject *resultobj; | |
37674 | int arg1 = (int) 0 ; | |
37675 | int arg2 = (int) 0 ; | |
37676 | wxGridBagSizer *result; | |
37677 | PyObject * obj0 = 0 ; | |
37678 | PyObject * obj1 = 0 ; | |
37679 | char *kwnames[] = { | |
37680 | (char *) "vgap",(char *) "hgap", NULL | |
37681 | }; | |
37682 | ||
37683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; | |
37684 | if (obj0) { | |
37685 | arg1 = (int) SWIG_AsInt(obj0); | |
37686 | if (PyErr_Occurred()) SWIG_fail; | |
37687 | } | |
37688 | if (obj1) { | |
37689 | arg2 = (int) SWIG_AsInt(obj1); | |
37690 | if (PyErr_Occurred()) SWIG_fail; | |
37691 | } | |
37692 | { | |
37693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37694 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
37695 | ||
37696 | wxPyEndAllowThreads(__tstate); | |
37697 | if (PyErr_Occurred()) SWIG_fail; | |
37698 | } | |
37699 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); | |
37700 | return resultobj; | |
37701 | fail: | |
37702 | return NULL; | |
37703 | } | |
37704 | ||
37705 | ||
37706 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37707 | PyObject *resultobj; | |
37708 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37709 | PyObject *arg2 = (PyObject *) 0 ; | |
37710 | wxGBPosition *arg3 = 0 ; | |
37711 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
37712 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
37713 | int arg5 = (int) 0 ; | |
37714 | int arg6 = (int) 0 ; | |
37715 | PyObject *arg7 = (PyObject *) NULL ; | |
37716 | bool result; | |
37717 | wxGBPosition temp3 ; | |
37718 | wxGBSpan temp4 ; | |
37719 | PyObject * obj0 = 0 ; | |
37720 | PyObject * obj1 = 0 ; | |
37721 | PyObject * obj2 = 0 ; | |
37722 | PyObject * obj3 = 0 ; | |
37723 | PyObject * obj4 = 0 ; | |
37724 | PyObject * obj5 = 0 ; | |
37725 | PyObject * obj6 = 0 ; | |
37726 | char *kwnames[] = { | |
37727 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37728 | }; | |
37729 | ||
37730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
37731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
37732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37733 | arg2 = obj1; | |
37734 | { | |
37735 | arg3 = &temp3; | |
37736 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37737 | } | |
37738 | if (obj3) { | |
37739 | { | |
37740 | arg4 = &temp4; | |
37741 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37742 | } | |
37743 | } | |
37744 | if (obj4) { | |
37745 | arg5 = (int) SWIG_AsInt(obj4); | |
37746 | if (PyErr_Occurred()) SWIG_fail; | |
37747 | } | |
37748 | if (obj5) { | |
37749 | arg6 = (int) SWIG_AsInt(obj5); | |
37750 | if (PyErr_Occurred()) SWIG_fail; | |
37751 | } | |
37752 | if (obj6) { | |
37753 | arg7 = obj6; | |
37754 | } | |
37755 | { | |
37756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37757 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
37758 | ||
37759 | wxPyEndAllowThreads(__tstate); | |
37760 | if (PyErr_Occurred()) SWIG_fail; | |
37761 | } | |
37762 | { | |
37763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37764 | } | |
37765 | return resultobj; | |
37766 | fail: | |
37767 | return NULL; | |
37768 | } | |
37769 | ||
37770 | ||
37771 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37772 | PyObject *resultobj; | |
37773 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37774 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
37775 | bool result; | |
37776 | PyObject * obj0 = 0 ; | |
37777 | PyObject * obj1 = 0 ; | |
37778 | char *kwnames[] = { | |
37779 | (char *) "self",(char *) "item", NULL | |
37780 | }; | |
37781 | ||
37782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
37783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
37784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37785 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37787 | { | |
37788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37789 | result = (bool)(arg1)->Add(arg2); | |
37790 | ||
37791 | wxPyEndAllowThreads(__tstate); | |
37792 | if (PyErr_Occurred()) SWIG_fail; | |
37793 | } | |
37794 | { | |
37795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37796 | } | |
37797 | return resultobj; | |
37798 | fail: | |
37799 | return NULL; | |
37800 | } | |
37801 | ||
37802 | ||
37803 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37804 | PyObject *resultobj; | |
37805 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37806 | wxSize result; | |
37807 | PyObject * obj0 = 0 ; | |
37808 | char *kwnames[] = { | |
37809 | (char *) "self", NULL | |
37810 | }; | |
37811 | ||
37812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
37813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
37814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37815 | { | |
37816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37817 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
37818 | ||
37819 | wxPyEndAllowThreads(__tstate); | |
37820 | if (PyErr_Occurred()) SWIG_fail; | |
37821 | } | |
37822 | { | |
37823 | wxSize * resultptr; | |
37824 | resultptr = new wxSize((wxSize &) result); | |
37825 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
37826 | } | |
37827 | return resultobj; | |
37828 | fail: | |
37829 | return NULL; | |
37830 | } | |
37831 | ||
37832 | ||
37833 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37834 | PyObject *resultobj; | |
37835 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37836 | wxSize *arg2 = 0 ; | |
37837 | wxSize temp2 ; | |
37838 | PyObject * obj0 = 0 ; | |
37839 | PyObject * obj1 = 0 ; | |
37840 | char *kwnames[] = { | |
37841 | (char *) "self",(char *) "sz", NULL | |
37842 | }; | |
37843 | ||
37844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
37845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
37846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37847 | { | |
37848 | arg2 = &temp2; | |
37849 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
37850 | } | |
37851 | { | |
37852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37853 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
37854 | ||
37855 | wxPyEndAllowThreads(__tstate); | |
37856 | if (PyErr_Occurred()) SWIG_fail; | |
37857 | } | |
37858 | Py_INCREF(Py_None); resultobj = Py_None; | |
37859 | return resultobj; | |
37860 | fail: | |
37861 | return NULL; | |
37862 | } | |
37863 | ||
37864 | ||
37865 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
37866 | PyObject *resultobj; | |
37867 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37868 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37869 | wxGBPosition result; | |
37870 | PyObject * obj0 = 0 ; | |
37871 | PyObject * obj1 = 0 ; | |
37872 | ||
37873 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
37874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
37875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37876 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37878 | { | |
37879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37880 | result = (arg1)->GetItemPosition(arg2); | |
37881 | ||
37882 | wxPyEndAllowThreads(__tstate); | |
37883 | if (PyErr_Occurred()) SWIG_fail; | |
37884 | } | |
37885 | { | |
37886 | wxGBPosition * resultptr; | |
37887 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
37888 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
37889 | } | |
37890 | return resultobj; | |
37891 | fail: | |
37892 | return NULL; | |
37893 | } | |
37894 | ||
37895 | ||
37896 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
37897 | PyObject *resultobj; | |
37898 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37899 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37900 | wxGBPosition result; | |
37901 | PyObject * obj0 = 0 ; | |
37902 | PyObject * obj1 = 0 ; | |
37903 | ||
37904 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
37905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
37906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37907 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37909 | { | |
37910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37911 | result = (arg1)->GetItemPosition(arg2); | |
37912 | ||
37913 | wxPyEndAllowThreads(__tstate); | |
37914 | if (PyErr_Occurred()) SWIG_fail; | |
37915 | } | |
37916 | { | |
37917 | wxGBPosition * resultptr; | |
37918 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
37919 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
37920 | } | |
37921 | return resultobj; | |
37922 | fail: | |
37923 | return NULL; | |
37924 | } | |
37925 | ||
37926 | ||
37927 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
37928 | PyObject *resultobj; | |
37929 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37930 | size_t arg2 ; | |
37931 | wxGBPosition result; | |
37932 | PyObject * obj0 = 0 ; | |
37933 | PyObject * obj1 = 0 ; | |
37934 | ||
37935 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
37936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
37937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37938 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37939 | if (PyErr_Occurred()) SWIG_fail; | |
37940 | { | |
37941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37942 | result = (arg1)->GetItemPosition(arg2); | |
37943 | ||
37944 | wxPyEndAllowThreads(__tstate); | |
37945 | if (PyErr_Occurred()) SWIG_fail; | |
37946 | } | |
37947 | { | |
37948 | wxGBPosition * resultptr; | |
37949 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
37950 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
37951 | } | |
37952 | return resultobj; | |
37953 | fail: | |
37954 | return NULL; | |
37955 | } | |
37956 | ||
37957 | ||
37958 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
37959 | int argc; | |
37960 | PyObject *argv[3]; | |
37961 | int ii; | |
37962 | ||
37963 | argc = PyObject_Length(args); | |
37964 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37965 | argv[ii] = PyTuple_GetItem(args,ii); | |
37966 | } | |
37967 | if (argc == 2) { | |
37968 | int _v; | |
37969 | { | |
37970 | void *ptr; | |
37971 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37972 | _v = 0; | |
37973 | PyErr_Clear(); | |
37974 | } else { | |
37975 | _v = 1; | |
37976 | } | |
37977 | } | |
37978 | if (_v) { | |
37979 | { | |
37980 | void *ptr; | |
37981 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
37982 | _v = 0; | |
37983 | PyErr_Clear(); | |
37984 | } else { | |
37985 | _v = 1; | |
37986 | } | |
37987 | } | |
37988 | if (_v) { | |
37989 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
37990 | } | |
37991 | } | |
37992 | } | |
37993 | if (argc == 2) { | |
37994 | int _v; | |
37995 | { | |
37996 | void *ptr; | |
37997 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37998 | _v = 0; | |
37999 | PyErr_Clear(); | |
38000 | } else { | |
38001 | _v = 1; | |
38002 | } | |
38003 | } | |
38004 | if (_v) { | |
38005 | { | |
38006 | void *ptr; | |
38007 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38008 | _v = 0; | |
38009 | PyErr_Clear(); | |
38010 | } else { | |
38011 | _v = 1; | |
38012 | } | |
38013 | } | |
38014 | if (_v) { | |
38015 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
38016 | } | |
38017 | } | |
38018 | } | |
38019 | if (argc == 2) { | |
38020 | int _v; | |
38021 | { | |
38022 | void *ptr; | |
38023 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38024 | _v = 0; | |
38025 | PyErr_Clear(); | |
38026 | } else { | |
38027 | _v = 1; | |
38028 | } | |
38029 | } | |
38030 | if (_v) { | |
38031 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
38032 | if (_v) { | |
38033 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
38034 | } | |
38035 | } | |
38036 | } | |
38037 | ||
38038 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
38039 | return NULL; | |
38040 | } | |
38041 | ||
38042 | ||
38043 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
38044 | PyObject *resultobj; | |
38045 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38046 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38047 | wxGBPosition *arg3 = 0 ; | |
38048 | bool result; | |
38049 | wxGBPosition temp3 ; | |
38050 | PyObject * obj0 = 0 ; | |
38051 | PyObject * obj1 = 0 ; | |
38052 | PyObject * obj2 = 0 ; | |
38053 | ||
38054 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38057 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38059 | { | |
38060 | arg3 = &temp3; | |
38061 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38062 | } | |
38063 | { | |
38064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38065 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38066 | ||
38067 | wxPyEndAllowThreads(__tstate); | |
38068 | if (PyErr_Occurred()) SWIG_fail; | |
38069 | } | |
38070 | { | |
38071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38072 | } | |
38073 | return resultobj; | |
38074 | fail: | |
38075 | return NULL; | |
38076 | } | |
38077 | ||
38078 | ||
38079 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
38080 | PyObject *resultobj; | |
38081 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38082 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38083 | wxGBPosition *arg3 = 0 ; | |
38084 | bool result; | |
38085 | wxGBPosition temp3 ; | |
38086 | PyObject * obj0 = 0 ; | |
38087 | PyObject * obj1 = 0 ; | |
38088 | PyObject * obj2 = 0 ; | |
38089 | ||
38090 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38093 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38095 | { | |
38096 | arg3 = &temp3; | |
38097 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38098 | } | |
38099 | { | |
38100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38101 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38102 | ||
38103 | wxPyEndAllowThreads(__tstate); | |
38104 | if (PyErr_Occurred()) SWIG_fail; | |
38105 | } | |
38106 | { | |
38107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38108 | } | |
38109 | return resultobj; | |
38110 | fail: | |
38111 | return NULL; | |
38112 | } | |
38113 | ||
38114 | ||
38115 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
38116 | PyObject *resultobj; | |
38117 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38118 | size_t arg2 ; | |
38119 | wxGBPosition *arg3 = 0 ; | |
38120 | bool result; | |
38121 | wxGBPosition temp3 ; | |
38122 | PyObject * obj0 = 0 ; | |
38123 | PyObject * obj1 = 0 ; | |
38124 | PyObject * obj2 = 0 ; | |
38125 | ||
38126 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38129 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38130 | if (PyErr_Occurred()) SWIG_fail; | |
38131 | { | |
38132 | arg3 = &temp3; | |
38133 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38134 | } | |
38135 | { | |
38136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38137 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38138 | ||
38139 | wxPyEndAllowThreads(__tstate); | |
38140 | if (PyErr_Occurred()) SWIG_fail; | |
38141 | } | |
38142 | { | |
38143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38144 | } | |
38145 | return resultobj; | |
38146 | fail: | |
38147 | return NULL; | |
38148 | } | |
38149 | ||
38150 | ||
38151 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
38152 | int argc; | |
38153 | PyObject *argv[4]; | |
38154 | int ii; | |
38155 | ||
38156 | argc = PyObject_Length(args); | |
38157 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38158 | argv[ii] = PyTuple_GetItem(args,ii); | |
38159 | } | |
38160 | if (argc == 3) { | |
38161 | int _v; | |
38162 | { | |
38163 | void *ptr; | |
38164 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38165 | _v = 0; | |
38166 | PyErr_Clear(); | |
38167 | } else { | |
38168 | _v = 1; | |
38169 | } | |
38170 | } | |
38171 | if (_v) { | |
38172 | { | |
38173 | void *ptr; | |
38174 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38175 | _v = 0; | |
38176 | PyErr_Clear(); | |
38177 | } else { | |
38178 | _v = 1; | |
38179 | } | |
38180 | } | |
38181 | if (_v) { | |
38182 | { | |
38183 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38184 | } | |
38185 | if (_v) { | |
38186 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
38187 | } | |
38188 | } | |
38189 | } | |
38190 | } | |
38191 | if (argc == 3) { | |
38192 | int _v; | |
38193 | { | |
38194 | void *ptr; | |
38195 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38196 | _v = 0; | |
38197 | PyErr_Clear(); | |
38198 | } else { | |
38199 | _v = 1; | |
38200 | } | |
38201 | } | |
38202 | if (_v) { | |
38203 | { | |
38204 | void *ptr; | |
38205 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38206 | _v = 0; | |
38207 | PyErr_Clear(); | |
38208 | } else { | |
38209 | _v = 1; | |
38210 | } | |
38211 | } | |
38212 | if (_v) { | |
38213 | { | |
38214 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38215 | } | |
38216 | if (_v) { | |
38217 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
38218 | } | |
38219 | } | |
38220 | } | |
38221 | } | |
38222 | if (argc == 3) { | |
38223 | int _v; | |
38224 | { | |
38225 | void *ptr; | |
38226 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38227 | _v = 0; | |
38228 | PyErr_Clear(); | |
38229 | } else { | |
38230 | _v = 1; | |
38231 | } | |
38232 | } | |
38233 | if (_v) { | |
38234 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
38235 | if (_v) { | |
38236 | { | |
38237 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38238 | } | |
38239 | if (_v) { | |
38240 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
38241 | } | |
38242 | } | |
38243 | } | |
38244 | } | |
38245 | ||
38246 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
38247 | return NULL; | |
38248 | } | |
38249 | ||
38250 | ||
38251 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38252 | PyObject *resultobj; | |
38253 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38254 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38255 | wxGBSpan result; | |
38256 | PyObject * obj0 = 0 ; | |
38257 | PyObject * obj1 = 0 ; | |
38258 | ||
38259 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38262 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38264 | { | |
38265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38266 | result = (arg1)->GetItemSpan(arg2); | |
38267 | ||
38268 | wxPyEndAllowThreads(__tstate); | |
38269 | if (PyErr_Occurred()) SWIG_fail; | |
38270 | } | |
38271 | { | |
38272 | wxGBSpan * resultptr; | |
38273 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38274 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38275 | } | |
38276 | return resultobj; | |
38277 | fail: | |
38278 | return NULL; | |
38279 | } | |
38280 | ||
38281 | ||
38282 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38283 | PyObject *resultobj; | |
38284 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38285 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38286 | wxGBSpan result; | |
38287 | PyObject * obj0 = 0 ; | |
38288 | PyObject * obj1 = 0 ; | |
38289 | ||
38290 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38293 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38295 | { | |
38296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38297 | result = (arg1)->GetItemSpan(arg2); | |
38298 | ||
38299 | wxPyEndAllowThreads(__tstate); | |
38300 | if (PyErr_Occurred()) SWIG_fail; | |
38301 | } | |
38302 | { | |
38303 | wxGBSpan * resultptr; | |
38304 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38305 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38306 | } | |
38307 | return resultobj; | |
38308 | fail: | |
38309 | return NULL; | |
38310 | } | |
38311 | ||
38312 | ||
38313 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38314 | PyObject *resultobj; | |
38315 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38316 | size_t arg2 ; | |
38317 | wxGBSpan result; | |
38318 | PyObject * obj0 = 0 ; | |
38319 | PyObject * obj1 = 0 ; | |
38320 | ||
38321 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38324 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38325 | if (PyErr_Occurred()) SWIG_fail; | |
38326 | { | |
38327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38328 | result = (arg1)->GetItemSpan(arg2); | |
38329 | ||
38330 | wxPyEndAllowThreads(__tstate); | |
38331 | if (PyErr_Occurred()) SWIG_fail; | |
38332 | } | |
38333 | { | |
38334 | wxGBSpan * resultptr; | |
38335 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38336 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38337 | } | |
38338 | return resultobj; | |
38339 | fail: | |
38340 | return NULL; | |
38341 | } | |
38342 | ||
38343 | ||
38344 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
38345 | int argc; | |
38346 | PyObject *argv[3]; | |
38347 | int ii; | |
38348 | ||
38349 | argc = PyObject_Length(args); | |
38350 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38351 | argv[ii] = PyTuple_GetItem(args,ii); | |
38352 | } | |
38353 | if (argc == 2) { | |
38354 | int _v; | |
38355 | { | |
38356 | void *ptr; | |
38357 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38358 | _v = 0; | |
38359 | PyErr_Clear(); | |
38360 | } else { | |
38361 | _v = 1; | |
38362 | } | |
38363 | } | |
38364 | if (_v) { | |
38365 | { | |
38366 | void *ptr; | |
38367 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38368 | _v = 0; | |
38369 | PyErr_Clear(); | |
38370 | } else { | |
38371 | _v = 1; | |
38372 | } | |
38373 | } | |
38374 | if (_v) { | |
38375 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
38376 | } | |
38377 | } | |
38378 | } | |
38379 | if (argc == 2) { | |
38380 | int _v; | |
38381 | { | |
38382 | void *ptr; | |
38383 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38384 | _v = 0; | |
38385 | PyErr_Clear(); | |
38386 | } else { | |
38387 | _v = 1; | |
38388 | } | |
38389 | } | |
38390 | if (_v) { | |
38391 | { | |
38392 | void *ptr; | |
38393 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38394 | _v = 0; | |
38395 | PyErr_Clear(); | |
38396 | } else { | |
38397 | _v = 1; | |
38398 | } | |
38399 | } | |
38400 | if (_v) { | |
38401 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
38402 | } | |
38403 | } | |
38404 | } | |
38405 | if (argc == 2) { | |
38406 | int _v; | |
38407 | { | |
38408 | void *ptr; | |
38409 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38410 | _v = 0; | |
38411 | PyErr_Clear(); | |
38412 | } else { | |
38413 | _v = 1; | |
38414 | } | |
38415 | } | |
38416 | if (_v) { | |
38417 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
38418 | if (_v) { | |
38419 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
38420 | } | |
38421 | } | |
38422 | } | |
38423 | ||
38424 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
38425 | return NULL; | |
38426 | } | |
38427 | ||
38428 | ||
38429 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38430 | PyObject *resultobj; | |
38431 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38432 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38433 | wxGBSpan *arg3 = 0 ; | |
38434 | bool result; | |
38435 | wxGBSpan temp3 ; | |
38436 | PyObject * obj0 = 0 ; | |
38437 | PyObject * obj1 = 0 ; | |
38438 | PyObject * obj2 = 0 ; | |
38439 | ||
38440 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
38441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38443 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38445 | { | |
38446 | arg3 = &temp3; | |
38447 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38448 | } | |
38449 | { | |
38450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38451 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38452 | ||
38453 | wxPyEndAllowThreads(__tstate); | |
38454 | if (PyErr_Occurred()) SWIG_fail; | |
38455 | } | |
38456 | { | |
38457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38458 | } | |
38459 | return resultobj; | |
38460 | fail: | |
38461 | return NULL; | |
38462 | } | |
38463 | ||
38464 | ||
38465 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38466 | PyObject *resultobj; | |
38467 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38468 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38469 | wxGBSpan *arg3 = 0 ; | |
38470 | bool result; | |
38471 | wxGBSpan temp3 ; | |
38472 | PyObject * obj0 = 0 ; | |
38473 | PyObject * obj1 = 0 ; | |
38474 | PyObject * obj2 = 0 ; | |
38475 | ||
38476 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
38477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38479 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38481 | { | |
38482 | arg3 = &temp3; | |
38483 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38484 | } | |
38485 | { | |
38486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38487 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38488 | ||
38489 | wxPyEndAllowThreads(__tstate); | |
38490 | if (PyErr_Occurred()) SWIG_fail; | |
38491 | } | |
38492 | { | |
38493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38494 | } | |
38495 | return resultobj; | |
38496 | fail: | |
38497 | return NULL; | |
38498 | } | |
38499 | ||
38500 | ||
38501 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38502 | PyObject *resultobj; | |
38503 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38504 | size_t arg2 ; | |
38505 | wxGBSpan *arg3 = 0 ; | |
38506 | bool result; | |
38507 | wxGBSpan temp3 ; | |
38508 | PyObject * obj0 = 0 ; | |
38509 | PyObject * obj1 = 0 ; | |
38510 | PyObject * obj2 = 0 ; | |
38511 | ||
38512 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
38513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38515 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38516 | if (PyErr_Occurred()) SWIG_fail; | |
38517 | { | |
38518 | arg3 = &temp3; | |
38519 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38520 | } | |
38521 | { | |
38522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38523 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38524 | ||
38525 | wxPyEndAllowThreads(__tstate); | |
38526 | if (PyErr_Occurred()) SWIG_fail; | |
38527 | } | |
38528 | { | |
38529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38530 | } | |
38531 | return resultobj; | |
38532 | fail: | |
38533 | return NULL; | |
38534 | } | |
38535 | ||
38536 | ||
38537 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
38538 | int argc; | |
38539 | PyObject *argv[4]; | |
38540 | int ii; | |
38541 | ||
38542 | argc = PyObject_Length(args); | |
38543 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38544 | argv[ii] = PyTuple_GetItem(args,ii); | |
38545 | } | |
38546 | if (argc == 3) { | |
38547 | int _v; | |
38548 | { | |
38549 | void *ptr; | |
38550 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38551 | _v = 0; | |
38552 | PyErr_Clear(); | |
38553 | } else { | |
38554 | _v = 1; | |
38555 | } | |
38556 | } | |
38557 | if (_v) { | |
38558 | { | |
38559 | void *ptr; | |
38560 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38561 | _v = 0; | |
38562 | PyErr_Clear(); | |
38563 | } else { | |
38564 | _v = 1; | |
38565 | } | |
38566 | } | |
38567 | if (_v) { | |
38568 | { | |
38569 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38570 | } | |
38571 | if (_v) { | |
38572 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
38573 | } | |
38574 | } | |
38575 | } | |
38576 | } | |
38577 | if (argc == 3) { | |
38578 | int _v; | |
38579 | { | |
38580 | void *ptr; | |
38581 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38582 | _v = 0; | |
38583 | PyErr_Clear(); | |
38584 | } else { | |
38585 | _v = 1; | |
38586 | } | |
38587 | } | |
38588 | if (_v) { | |
38589 | { | |
38590 | void *ptr; | |
38591 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38592 | _v = 0; | |
38593 | PyErr_Clear(); | |
38594 | } else { | |
38595 | _v = 1; | |
38596 | } | |
38597 | } | |
38598 | if (_v) { | |
38599 | { | |
38600 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38601 | } | |
38602 | if (_v) { | |
38603 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
38604 | } | |
38605 | } | |
38606 | } | |
38607 | } | |
38608 | if (argc == 3) { | |
38609 | int _v; | |
38610 | { | |
38611 | void *ptr; | |
38612 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38613 | _v = 0; | |
38614 | PyErr_Clear(); | |
38615 | } else { | |
38616 | _v = 1; | |
38617 | } | |
38618 | } | |
38619 | if (_v) { | |
38620 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
38621 | if (_v) { | |
38622 | { | |
38623 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38624 | } | |
38625 | if (_v) { | |
38626 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
38627 | } | |
38628 | } | |
38629 | } | |
38630 | } | |
38631 | ||
38632 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
38633 | return NULL; | |
38634 | } | |
38635 | ||
38636 | ||
38637 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
38638 | PyObject *resultobj; | |
38639 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38640 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38641 | wxGBSizerItem *result; | |
38642 | PyObject * obj0 = 0 ; | |
38643 | PyObject * obj1 = 0 ; | |
38644 | ||
38645 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
38646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38650 | { | |
38651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38652 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38653 | ||
38654 | wxPyEndAllowThreads(__tstate); | |
38655 | if (PyErr_Occurred()) SWIG_fail; | |
38656 | } | |
38657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
38658 | return resultobj; | |
38659 | fail: | |
38660 | return NULL; | |
38661 | } | |
38662 | ||
38663 | ||
38664 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
38665 | PyObject *resultobj; | |
38666 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38667 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38668 | wxGBSizerItem *result; | |
38669 | PyObject * obj0 = 0 ; | |
38670 | PyObject * obj1 = 0 ; | |
38671 | ||
38672 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
38673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38675 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38677 | { | |
38678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38679 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38680 | ||
38681 | wxPyEndAllowThreads(__tstate); | |
38682 | if (PyErr_Occurred()) SWIG_fail; | |
38683 | } | |
38684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
38685 | return resultobj; | |
38686 | fail: | |
38687 | return NULL; | |
38688 | } | |
38689 | ||
38690 | ||
38691 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
38692 | int argc; | |
38693 | PyObject *argv[3]; | |
38694 | int ii; | |
38695 | ||
38696 | argc = PyObject_Length(args); | |
38697 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38698 | argv[ii] = PyTuple_GetItem(args,ii); | |
38699 | } | |
38700 | if (argc == 2) { | |
38701 | int _v; | |
38702 | { | |
38703 | void *ptr; | |
38704 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38705 | _v = 0; | |
38706 | PyErr_Clear(); | |
38707 | } else { | |
38708 | _v = 1; | |
38709 | } | |
38710 | } | |
38711 | if (_v) { | |
38712 | { | |
38713 | void *ptr; | |
38714 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38715 | _v = 0; | |
38716 | PyErr_Clear(); | |
38717 | } else { | |
38718 | _v = 1; | |
38719 | } | |
38720 | } | |
38721 | if (_v) { | |
38722 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
38723 | } | |
38724 | } | |
38725 | } | |
38726 | if (argc == 2) { | |
38727 | int _v; | |
38728 | { | |
38729 | void *ptr; | |
38730 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38731 | _v = 0; | |
38732 | PyErr_Clear(); | |
38733 | } else { | |
38734 | _v = 1; | |
38735 | } | |
38736 | } | |
38737 | if (_v) { | |
38738 | { | |
38739 | void *ptr; | |
38740 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38741 | _v = 0; | |
38742 | PyErr_Clear(); | |
38743 | } else { | |
38744 | _v = 1; | |
38745 | } | |
38746 | } | |
38747 | if (_v) { | |
38748 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
38749 | } | |
38750 | } | |
38751 | } | |
38752 | ||
38753 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
38754 | return NULL; | |
38755 | } | |
38756 | ||
38757 | ||
38758 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38759 | PyObject *resultobj; | |
38760 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38761 | wxGBPosition *arg2 = 0 ; | |
38762 | wxGBSizerItem *result; | |
38763 | wxGBPosition temp2 ; | |
38764 | PyObject * obj0 = 0 ; | |
38765 | PyObject * obj1 = 0 ; | |
38766 | char *kwnames[] = { | |
38767 | (char *) "self",(char *) "pos", NULL | |
38768 | }; | |
38769 | ||
38770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
38771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38773 | { | |
38774 | arg2 = &temp2; | |
38775 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38776 | } | |
38777 | { | |
38778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38779 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
38780 | ||
38781 | wxPyEndAllowThreads(__tstate); | |
38782 | if (PyErr_Occurred()) SWIG_fail; | |
38783 | } | |
38784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
38785 | return resultobj; | |
38786 | fail: | |
38787 | return NULL; | |
38788 | } | |
38789 | ||
38790 | ||
38791 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38792 | PyObject *resultobj; | |
38793 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38794 | wxPoint *arg2 = 0 ; | |
38795 | wxGBSizerItem *result; | |
38796 | wxPoint temp2 ; | |
38797 | PyObject * obj0 = 0 ; | |
38798 | PyObject * obj1 = 0 ; | |
38799 | char *kwnames[] = { | |
38800 | (char *) "self",(char *) "pt", NULL | |
38801 | }; | |
38802 | ||
38803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
38804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38806 | { | |
38807 | arg2 = &temp2; | |
38808 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
38809 | } | |
38810 | { | |
38811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38812 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
38813 | ||
38814 | wxPyEndAllowThreads(__tstate); | |
38815 | if (PyErr_Occurred()) SWIG_fail; | |
38816 | } | |
38817 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
38818 | return resultobj; | |
38819 | fail: | |
38820 | return NULL; | |
38821 | } | |
38822 | ||
38823 | ||
38824 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38825 | PyObject *resultobj; | |
38826 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38827 | wxObject *arg2 = (wxObject *) 0 ; | |
38828 | wxGBSizerItem *result; | |
38829 | PyObject * obj0 = 0 ; | |
38830 | PyObject * obj1 = 0 ; | |
38831 | char *kwnames[] = { | |
38832 | (char *) "self",(char *) "userData", NULL | |
38833 | }; | |
38834 | ||
38835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
38836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38838 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
38839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38840 | { | |
38841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38842 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
38843 | ||
38844 | wxPyEndAllowThreads(__tstate); | |
38845 | if (PyErr_Occurred()) SWIG_fail; | |
38846 | } | |
38847 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
38848 | return resultobj; | |
38849 | fail: | |
38850 | return NULL; | |
38851 | } | |
38852 | ||
38853 | ||
38854 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38855 | PyObject *resultobj; | |
38856 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38857 | PyObject * obj0 = 0 ; | |
38858 | char *kwnames[] = { | |
38859 | (char *) "self", NULL | |
38860 | }; | |
38861 | ||
38862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
38863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38865 | { | |
38866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38867 | (arg1)->RecalcSizes(); | |
38868 | ||
38869 | wxPyEndAllowThreads(__tstate); | |
38870 | if (PyErr_Occurred()) SWIG_fail; | |
38871 | } | |
38872 | Py_INCREF(Py_None); resultobj = Py_None; | |
38873 | return resultobj; | |
38874 | fail: | |
38875 | return NULL; | |
38876 | } | |
38877 | ||
38878 | ||
38879 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38880 | PyObject *resultobj; | |
38881 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38882 | wxSize result; | |
38883 | PyObject * obj0 = 0 ; | |
38884 | char *kwnames[] = { | |
38885 | (char *) "self", NULL | |
38886 | }; | |
38887 | ||
38888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
38889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38891 | { | |
38892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38893 | result = (arg1)->CalcMin(); | |
38894 | ||
38895 | wxPyEndAllowThreads(__tstate); | |
38896 | if (PyErr_Occurred()) SWIG_fail; | |
38897 | } | |
38898 | { | |
38899 | wxSize * resultptr; | |
38900 | resultptr = new wxSize((wxSize &) result); | |
38901 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
38902 | } | |
38903 | return resultobj; | |
38904 | fail: | |
38905 | return NULL; | |
38906 | } | |
38907 | ||
38908 | ||
38909 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
38910 | PyObject *resultobj; | |
38911 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38912 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
38913 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
38914 | bool result; | |
38915 | PyObject * obj0 = 0 ; | |
38916 | PyObject * obj1 = 0 ; | |
38917 | PyObject * obj2 = 0 ; | |
38918 | ||
38919 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
38920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38922 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38924 | if (obj2) { | |
38925 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, | |
38926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38927 | } | |
38928 | { | |
38929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38930 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
38931 | ||
38932 | wxPyEndAllowThreads(__tstate); | |
38933 | if (PyErr_Occurred()) SWIG_fail; | |
38934 | } | |
38935 | { | |
38936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38937 | } | |
38938 | return resultobj; | |
38939 | fail: | |
38940 | return NULL; | |
38941 | } | |
38942 | ||
38943 | ||
38944 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
38945 | PyObject *resultobj; | |
38946 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38947 | wxGBPosition *arg2 = 0 ; | |
38948 | wxGBSpan *arg3 = 0 ; | |
38949 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
38950 | bool result; | |
38951 | wxGBPosition temp2 ; | |
38952 | wxGBSpan temp3 ; | |
38953 | PyObject * obj0 = 0 ; | |
38954 | PyObject * obj1 = 0 ; | |
38955 | PyObject * obj2 = 0 ; | |
38956 | PyObject * obj3 = 0 ; | |
38957 | ||
38958 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
38959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38961 | { | |
38962 | arg2 = &temp2; | |
38963 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38964 | } | |
38965 | { | |
38966 | arg3 = &temp3; | |
38967 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38968 | } | |
38969 | if (obj3) { | |
38970 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, | |
38971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38972 | } | |
38973 | { | |
38974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38975 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
38976 | ||
38977 | wxPyEndAllowThreads(__tstate); | |
38978 | if (PyErr_Occurred()) SWIG_fail; | |
38979 | } | |
38980 | { | |
38981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38982 | } | |
38983 | return resultobj; | |
38984 | fail: | |
38985 | return NULL; | |
38986 | } | |
38987 | ||
38988 | ||
38989 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
38990 | int argc; | |
38991 | PyObject *argv[5]; | |
38992 | int ii; | |
38993 | ||
38994 | argc = PyObject_Length(args); | |
38995 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
38996 | argv[ii] = PyTuple_GetItem(args,ii); | |
38997 | } | |
38998 | if ((argc >= 2) && (argc <= 3)) { | |
38999 | int _v; | |
39000 | { | |
39001 | void *ptr; | |
39002 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39003 | _v = 0; | |
39004 | PyErr_Clear(); | |
39005 | } else { | |
39006 | _v = 1; | |
39007 | } | |
39008 | } | |
39009 | if (_v) { | |
39010 | { | |
39011 | void *ptr; | |
39012 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
39013 | _v = 0; | |
39014 | PyErr_Clear(); | |
39015 | } else { | |
39016 | _v = 1; | |
39017 | } | |
39018 | } | |
39019 | if (_v) { | |
39020 | if (argc <= 2) { | |
39021 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
39022 | } | |
39023 | { | |
39024 | void *ptr; | |
39025 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
39026 | _v = 0; | |
39027 | PyErr_Clear(); | |
39028 | } else { | |
39029 | _v = 1; | |
39030 | } | |
39031 | } | |
39032 | if (_v) { | |
39033 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
39034 | } | |
39035 | } | |
39036 | } | |
39037 | } | |
39038 | if ((argc >= 3) && (argc <= 4)) { | |
39039 | int _v; | |
39040 | { | |
39041 | void *ptr; | |
39042 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39043 | _v = 0; | |
39044 | PyErr_Clear(); | |
39045 | } else { | |
39046 | _v = 1; | |
39047 | } | |
39048 | } | |
39049 | if (_v) { | |
39050 | { | |
39051 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
39052 | } | |
39053 | if (_v) { | |
39054 | { | |
39055 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39056 | } | |
39057 | if (_v) { | |
39058 | if (argc <= 3) { | |
39059 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
39060 | } | |
39061 | { | |
39062 | void *ptr; | |
39063 | if (SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
39064 | _v = 0; | |
39065 | PyErr_Clear(); | |
39066 | } else { | |
39067 | _v = 1; | |
39068 | } | |
39069 | } | |
39070 | if (_v) { | |
39071 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
39072 | } | |
39073 | } | |
39074 | } | |
39075 | } | |
39076 | } | |
39077 | ||
39078 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
39079 | return NULL; | |
39080 | } | |
39081 | ||
39082 | ||
39083 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
39084 | PyObject *obj; | |
39085 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39086 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
39087 | Py_INCREF(obj); | |
39088 | return Py_BuildValue((char *)""); | |
39089 | } | |
39090 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39091 | PyObject *resultobj; | |
39092 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39093 | int arg2 ; | |
39094 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39095 | int arg4 ; | |
39096 | int arg5 = (int) 0 ; | |
39097 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
39098 | PyObject * obj0 = 0 ; | |
39099 | PyObject * obj1 = 0 ; | |
39100 | PyObject * obj2 = 0 ; | |
39101 | PyObject * obj3 = 0 ; | |
39102 | PyObject * obj4 = 0 ; | |
39103 | PyObject * obj5 = 0 ; | |
39104 | char *kwnames[] = { | |
39105 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
39106 | }; | |
39107 | ||
39108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
39109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39111 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
39112 | if (PyErr_Occurred()) SWIG_fail; | |
39113 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39115 | arg4 = (wxEdge) SWIG_AsInt(obj3); | |
39116 | if (PyErr_Occurred()) SWIG_fail; | |
39117 | if (obj4) { | |
39118 | arg5 = (int) SWIG_AsInt(obj4); | |
39119 | if (PyErr_Occurred()) SWIG_fail; | |
39120 | } | |
39121 | if (obj5) { | |
39122 | arg6 = (int) SWIG_AsInt(obj5); | |
39123 | if (PyErr_Occurred()) SWIG_fail; | |
39124 | } | |
39125 | { | |
39126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39127 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
39128 | ||
39129 | wxPyEndAllowThreads(__tstate); | |
39130 | if (PyErr_Occurred()) SWIG_fail; | |
39131 | } | |
39132 | Py_INCREF(Py_None); resultobj = Py_None; | |
39133 | return resultobj; | |
39134 | fail: | |
39135 | return NULL; | |
39136 | } | |
39137 | ||
39138 | ||
39139 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39140 | PyObject *resultobj; | |
39141 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39142 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39143 | int arg3 = (int) 0 ; | |
39144 | PyObject * obj0 = 0 ; | |
39145 | PyObject * obj1 = 0 ; | |
39146 | PyObject * obj2 = 0 ; | |
39147 | char *kwnames[] = { | |
39148 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39149 | }; | |
39150 | ||
39151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39154 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39156 | if (obj2) { | |
39157 | arg3 = (int) SWIG_AsInt(obj2); | |
39158 | if (PyErr_Occurred()) SWIG_fail; | |
39159 | } | |
39160 | { | |
39161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39162 | (arg1)->LeftOf(arg2,arg3); | |
39163 | ||
39164 | wxPyEndAllowThreads(__tstate); | |
39165 | if (PyErr_Occurred()) SWIG_fail; | |
39166 | } | |
39167 | Py_INCREF(Py_None); resultobj = Py_None; | |
39168 | return resultobj; | |
39169 | fail: | |
39170 | return NULL; | |
39171 | } | |
39172 | ||
39173 | ||
39174 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39175 | PyObject *resultobj; | |
39176 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39177 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39178 | int arg3 = (int) 0 ; | |
39179 | PyObject * obj0 = 0 ; | |
39180 | PyObject * obj1 = 0 ; | |
39181 | PyObject * obj2 = 0 ; | |
39182 | char *kwnames[] = { | |
39183 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39184 | }; | |
39185 | ||
39186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39189 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39191 | if (obj2) { | |
39192 | arg3 = (int) SWIG_AsInt(obj2); | |
39193 | if (PyErr_Occurred()) SWIG_fail; | |
39194 | } | |
39195 | { | |
39196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39197 | (arg1)->RightOf(arg2,arg3); | |
39198 | ||
39199 | wxPyEndAllowThreads(__tstate); | |
39200 | if (PyErr_Occurred()) SWIG_fail; | |
39201 | } | |
39202 | Py_INCREF(Py_None); resultobj = Py_None; | |
39203 | return resultobj; | |
39204 | fail: | |
39205 | return NULL; | |
39206 | } | |
39207 | ||
39208 | ||
39209 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39210 | PyObject *resultobj; | |
39211 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39212 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39213 | int arg3 = (int) 0 ; | |
39214 | PyObject * obj0 = 0 ; | |
39215 | PyObject * obj1 = 0 ; | |
39216 | PyObject * obj2 = 0 ; | |
39217 | char *kwnames[] = { | |
39218 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39219 | }; | |
39220 | ||
39221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39224 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39226 | if (obj2) { | |
39227 | arg3 = (int) SWIG_AsInt(obj2); | |
39228 | if (PyErr_Occurred()) SWIG_fail; | |
39229 | } | |
39230 | { | |
39231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39232 | (arg1)->Above(arg2,arg3); | |
39233 | ||
39234 | wxPyEndAllowThreads(__tstate); | |
39235 | if (PyErr_Occurred()) SWIG_fail; | |
39236 | } | |
39237 | Py_INCREF(Py_None); resultobj = Py_None; | |
39238 | return resultobj; | |
39239 | fail: | |
39240 | return NULL; | |
39241 | } | |
39242 | ||
39243 | ||
39244 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39245 | PyObject *resultobj; | |
39246 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39247 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39248 | int arg3 = (int) 0 ; | |
39249 | PyObject * obj0 = 0 ; | |
39250 | PyObject * obj1 = 0 ; | |
39251 | PyObject * obj2 = 0 ; | |
39252 | char *kwnames[] = { | |
39253 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39254 | }; | |
39255 | ||
39256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39259 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39261 | if (obj2) { | |
39262 | arg3 = (int) SWIG_AsInt(obj2); | |
39263 | if (PyErr_Occurred()) SWIG_fail; | |
39264 | } | |
39265 | { | |
39266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39267 | (arg1)->Below(arg2,arg3); | |
39268 | ||
39269 | wxPyEndAllowThreads(__tstate); | |
39270 | if (PyErr_Occurred()) SWIG_fail; | |
39271 | } | |
39272 | Py_INCREF(Py_None); resultobj = Py_None; | |
39273 | return resultobj; | |
39274 | fail: | |
39275 | return NULL; | |
39276 | } | |
39277 | ||
39278 | ||
39279 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39280 | PyObject *resultobj; | |
39281 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39282 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39283 | int arg3 ; | |
39284 | int arg4 = (int) 0 ; | |
39285 | PyObject * obj0 = 0 ; | |
39286 | PyObject * obj1 = 0 ; | |
39287 | PyObject * obj2 = 0 ; | |
39288 | PyObject * obj3 = 0 ; | |
39289 | char *kwnames[] = { | |
39290 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
39291 | }; | |
39292 | ||
39293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39296 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39298 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39299 | if (PyErr_Occurred()) SWIG_fail; | |
39300 | if (obj3) { | |
39301 | arg4 = (int) SWIG_AsInt(obj3); | |
39302 | if (PyErr_Occurred()) SWIG_fail; | |
39303 | } | |
39304 | { | |
39305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39306 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
39307 | ||
39308 | wxPyEndAllowThreads(__tstate); | |
39309 | if (PyErr_Occurred()) SWIG_fail; | |
39310 | } | |
39311 | Py_INCREF(Py_None); resultobj = Py_None; | |
39312 | return resultobj; | |
39313 | fail: | |
39314 | return NULL; | |
39315 | } | |
39316 | ||
39317 | ||
39318 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39319 | PyObject *resultobj; | |
39320 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39321 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39322 | int arg3 ; | |
39323 | int arg4 ; | |
39324 | PyObject * obj0 = 0 ; | |
39325 | PyObject * obj1 = 0 ; | |
39326 | PyObject * obj2 = 0 ; | |
39327 | PyObject * obj3 = 0 ; | |
39328 | char *kwnames[] = { | |
39329 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
39330 | }; | |
39331 | ||
39332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39335 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39337 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39338 | if (PyErr_Occurred()) SWIG_fail; | |
39339 | arg4 = (int) SWIG_AsInt(obj3); | |
39340 | if (PyErr_Occurred()) SWIG_fail; | |
39341 | { | |
39342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39343 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
39344 | ||
39345 | wxPyEndAllowThreads(__tstate); | |
39346 | if (PyErr_Occurred()) SWIG_fail; | |
39347 | } | |
39348 | Py_INCREF(Py_None); resultobj = Py_None; | |
39349 | return resultobj; | |
39350 | fail: | |
39351 | return NULL; | |
39352 | } | |
39353 | ||
39354 | ||
39355 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39356 | PyObject *resultobj; | |
39357 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39358 | int arg2 ; | |
39359 | PyObject * obj0 = 0 ; | |
39360 | PyObject * obj1 = 0 ; | |
39361 | char *kwnames[] = { | |
39362 | (char *) "self",(char *) "val", NULL | |
39363 | }; | |
39364 | ||
39365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; | |
39366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39368 | arg2 = (int) SWIG_AsInt(obj1); | |
39369 | if (PyErr_Occurred()) SWIG_fail; | |
39370 | { | |
39371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39372 | (arg1)->Absolute(arg2); | |
39373 | ||
39374 | wxPyEndAllowThreads(__tstate); | |
39375 | if (PyErr_Occurred()) SWIG_fail; | |
39376 | } | |
39377 | Py_INCREF(Py_None); resultobj = Py_None; | |
39378 | return resultobj; | |
39379 | fail: | |
39380 | return NULL; | |
39381 | } | |
39382 | ||
39383 | ||
39384 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39385 | PyObject *resultobj; | |
39386 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39387 | PyObject * obj0 = 0 ; | |
39388 | char *kwnames[] = { | |
39389 | (char *) "self", NULL | |
39390 | }; | |
39391 | ||
39392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
39393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39395 | { | |
39396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39397 | (arg1)->Unconstrained(); | |
39398 | ||
39399 | wxPyEndAllowThreads(__tstate); | |
39400 | if (PyErr_Occurred()) SWIG_fail; | |
39401 | } | |
39402 | Py_INCREF(Py_None); resultobj = Py_None; | |
39403 | return resultobj; | |
39404 | fail: | |
39405 | return NULL; | |
39406 | } | |
39407 | ||
39408 | ||
39409 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39410 | PyObject *resultobj; | |
39411 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39412 | PyObject * obj0 = 0 ; | |
39413 | char *kwnames[] = { | |
39414 | (char *) "self", NULL | |
39415 | }; | |
39416 | ||
39417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
39418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39420 | { | |
39421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39422 | (arg1)->AsIs(); | |
39423 | ||
39424 | wxPyEndAllowThreads(__tstate); | |
39425 | if (PyErr_Occurred()) SWIG_fail; | |
39426 | } | |
39427 | Py_INCREF(Py_None); resultobj = Py_None; | |
39428 | return resultobj; | |
39429 | fail: | |
39430 | return NULL; | |
39431 | } | |
39432 | ||
39433 | ||
39434 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39435 | PyObject *resultobj; | |
39436 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39437 | wxWindow *result; | |
39438 | PyObject * obj0 = 0 ; | |
39439 | char *kwnames[] = { | |
39440 | (char *) "self", NULL | |
39441 | }; | |
39442 | ||
39443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
39444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39446 | { | |
39447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39448 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
39449 | ||
39450 | wxPyEndAllowThreads(__tstate); | |
39451 | if (PyErr_Occurred()) SWIG_fail; | |
39452 | } | |
39453 | { | |
39454 | resultobj = wxPyMake_wxObject(result); | |
39455 | } | |
39456 | return resultobj; | |
39457 | fail: | |
39458 | return NULL; | |
39459 | } | |
39460 | ||
39461 | ||
39462 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39463 | PyObject *resultobj; | |
39464 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39465 | int result; | |
39466 | PyObject * obj0 = 0 ; | |
39467 | char *kwnames[] = { | |
39468 | (char *) "self", NULL | |
39469 | }; | |
39470 | ||
39471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
39472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39474 | { | |
39475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39476 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
39477 | ||
39478 | wxPyEndAllowThreads(__tstate); | |
39479 | if (PyErr_Occurred()) SWIG_fail; | |
39480 | } | |
39481 | resultobj = SWIG_FromInt((int)result); | |
39482 | return resultobj; | |
39483 | fail: | |
39484 | return NULL; | |
39485 | } | |
39486 | ||
39487 | ||
39488 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39489 | PyObject *resultobj; | |
39490 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39491 | int arg2 ; | |
39492 | PyObject * obj0 = 0 ; | |
39493 | PyObject * obj1 = 0 ; | |
39494 | char *kwnames[] = { | |
39495 | (char *) "self",(char *) "which", NULL | |
39496 | }; | |
39497 | ||
39498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
39499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39501 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39502 | if (PyErr_Occurred()) SWIG_fail; | |
39503 | { | |
39504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39505 | (arg1)->SetEdge((wxEdge )arg2); | |
39506 | ||
39507 | wxPyEndAllowThreads(__tstate); | |
39508 | if (PyErr_Occurred()) SWIG_fail; | |
39509 | } | |
39510 | Py_INCREF(Py_None); resultobj = Py_None; | |
39511 | return resultobj; | |
39512 | fail: | |
39513 | return NULL; | |
39514 | } | |
39515 | ||
39516 | ||
39517 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39518 | PyObject *resultobj; | |
39519 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39520 | int arg2 ; | |
39521 | PyObject * obj0 = 0 ; | |
39522 | PyObject * obj1 = 0 ; | |
39523 | char *kwnames[] = { | |
39524 | (char *) "self",(char *) "v", NULL | |
39525 | }; | |
39526 | ||
39527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
39528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39530 | arg2 = (int) SWIG_AsInt(obj1); | |
39531 | if (PyErr_Occurred()) SWIG_fail; | |
39532 | { | |
39533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39534 | (arg1)->SetValue(arg2); | |
39535 | ||
39536 | wxPyEndAllowThreads(__tstate); | |
39537 | if (PyErr_Occurred()) SWIG_fail; | |
39538 | } | |
39539 | Py_INCREF(Py_None); resultobj = Py_None; | |
39540 | return resultobj; | |
39541 | fail: | |
39542 | return NULL; | |
39543 | } | |
39544 | ||
39545 | ||
39546 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39547 | PyObject *resultobj; | |
39548 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39549 | int result; | |
39550 | PyObject * obj0 = 0 ; | |
39551 | char *kwnames[] = { | |
39552 | (char *) "self", NULL | |
39553 | }; | |
39554 | ||
39555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
39556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39558 | { | |
39559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39560 | result = (int)(arg1)->GetMargin(); | |
39561 | ||
39562 | wxPyEndAllowThreads(__tstate); | |
39563 | if (PyErr_Occurred()) SWIG_fail; | |
39564 | } | |
39565 | resultobj = SWIG_FromInt((int)result); | |
39566 | return resultobj; | |
39567 | fail: | |
39568 | return NULL; | |
39569 | } | |
39570 | ||
39571 | ||
39572 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39573 | PyObject *resultobj; | |
39574 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39575 | int arg2 ; | |
39576 | PyObject * obj0 = 0 ; | |
39577 | PyObject * obj1 = 0 ; | |
39578 | char *kwnames[] = { | |
39579 | (char *) "self",(char *) "m", NULL | |
39580 | }; | |
39581 | ||
39582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; | |
39583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39585 | arg2 = (int) SWIG_AsInt(obj1); | |
39586 | if (PyErr_Occurred()) SWIG_fail; | |
39587 | { | |
39588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39589 | (arg1)->SetMargin(arg2); | |
39590 | ||
39591 | wxPyEndAllowThreads(__tstate); | |
39592 | if (PyErr_Occurred()) SWIG_fail; | |
39593 | } | |
39594 | Py_INCREF(Py_None); resultobj = Py_None; | |
39595 | return resultobj; | |
39596 | fail: | |
39597 | return NULL; | |
39598 | } | |
39599 | ||
39600 | ||
39601 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39602 | PyObject *resultobj; | |
39603 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39604 | int result; | |
39605 | PyObject * obj0 = 0 ; | |
39606 | char *kwnames[] = { | |
39607 | (char *) "self", NULL | |
39608 | }; | |
39609 | ||
39610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
39611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39613 | { | |
39614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39615 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
39616 | ||
39617 | wxPyEndAllowThreads(__tstate); | |
39618 | if (PyErr_Occurred()) SWIG_fail; | |
39619 | } | |
39620 | resultobj = SWIG_FromInt((int)result); | |
39621 | return resultobj; | |
39622 | fail: | |
39623 | return NULL; | |
39624 | } | |
39625 | ||
39626 | ||
39627 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39628 | PyObject *resultobj; | |
39629 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39630 | int result; | |
39631 | PyObject * obj0 = 0 ; | |
39632 | char *kwnames[] = { | |
39633 | (char *) "self", NULL | |
39634 | }; | |
39635 | ||
39636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
39637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39639 | { | |
39640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39641 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
39642 | ||
39643 | wxPyEndAllowThreads(__tstate); | |
39644 | if (PyErr_Occurred()) SWIG_fail; | |
39645 | } | |
39646 | resultobj = SWIG_FromInt((int)result); | |
39647 | return resultobj; | |
39648 | fail: | |
39649 | return NULL; | |
39650 | } | |
39651 | ||
39652 | ||
39653 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39654 | PyObject *resultobj; | |
39655 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39656 | int result; | |
39657 | PyObject * obj0 = 0 ; | |
39658 | char *kwnames[] = { | |
39659 | (char *) "self", NULL | |
39660 | }; | |
39661 | ||
39662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
39663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39665 | { | |
39666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39667 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
39668 | ||
39669 | wxPyEndAllowThreads(__tstate); | |
39670 | if (PyErr_Occurred()) SWIG_fail; | |
39671 | } | |
39672 | resultobj = SWIG_FromInt((int)result); | |
39673 | return resultobj; | |
39674 | fail: | |
39675 | return NULL; | |
39676 | } | |
39677 | ||
39678 | ||
39679 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39680 | PyObject *resultobj; | |
39681 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39682 | bool result; | |
39683 | PyObject * obj0 = 0 ; | |
39684 | char *kwnames[] = { | |
39685 | (char *) "self", NULL | |
39686 | }; | |
39687 | ||
39688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
39689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39691 | { | |
39692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39693 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
39694 | ||
39695 | wxPyEndAllowThreads(__tstate); | |
39696 | if (PyErr_Occurred()) SWIG_fail; | |
39697 | } | |
39698 | { | |
39699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39700 | } | |
39701 | return resultobj; | |
39702 | fail: | |
39703 | return NULL; | |
39704 | } | |
39705 | ||
39706 | ||
39707 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39708 | PyObject *resultobj; | |
39709 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39710 | bool arg2 ; | |
39711 | PyObject * obj0 = 0 ; | |
39712 | PyObject * obj1 = 0 ; | |
39713 | char *kwnames[] = { | |
39714 | (char *) "self",(char *) "d", NULL | |
39715 | }; | |
39716 | ||
39717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
39718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39720 | arg2 = (bool) SWIG_AsBool(obj1); | |
39721 | if (PyErr_Occurred()) SWIG_fail; | |
39722 | { | |
39723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39724 | (arg1)->SetDone(arg2); | |
39725 | ||
39726 | wxPyEndAllowThreads(__tstate); | |
39727 | if (PyErr_Occurred()) SWIG_fail; | |
39728 | } | |
39729 | Py_INCREF(Py_None); resultobj = Py_None; | |
39730 | return resultobj; | |
39731 | fail: | |
39732 | return NULL; | |
39733 | } | |
39734 | ||
39735 | ||
39736 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39737 | PyObject *resultobj; | |
39738 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39739 | int result; | |
39740 | PyObject * obj0 = 0 ; | |
39741 | char *kwnames[] = { | |
39742 | (char *) "self", NULL | |
39743 | }; | |
39744 | ||
39745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
39746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39748 | { | |
39749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39750 | result = (int)(arg1)->GetRelationship(); | |
39751 | ||
39752 | wxPyEndAllowThreads(__tstate); | |
39753 | if (PyErr_Occurred()) SWIG_fail; | |
39754 | } | |
39755 | resultobj = SWIG_FromInt((int)result); | |
39756 | return resultobj; | |
39757 | fail: | |
39758 | return NULL; | |
39759 | } | |
39760 | ||
39761 | ||
39762 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39763 | PyObject *resultobj; | |
39764 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39765 | int arg2 ; | |
39766 | PyObject * obj0 = 0 ; | |
39767 | PyObject * obj1 = 0 ; | |
39768 | char *kwnames[] = { | |
39769 | (char *) "self",(char *) "r", NULL | |
39770 | }; | |
39771 | ||
39772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; | |
39773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39775 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
39776 | if (PyErr_Occurred()) SWIG_fail; | |
39777 | { | |
39778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39779 | (arg1)->SetRelationship((wxRelationship )arg2); | |
39780 | ||
39781 | wxPyEndAllowThreads(__tstate); | |
39782 | if (PyErr_Occurred()) SWIG_fail; | |
39783 | } | |
39784 | Py_INCREF(Py_None); resultobj = Py_None; | |
39785 | return resultobj; | |
39786 | fail: | |
39787 | return NULL; | |
39788 | } | |
39789 | ||
39790 | ||
39791 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39792 | PyObject *resultobj; | |
39793 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39794 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39795 | bool result; | |
39796 | PyObject * obj0 = 0 ; | |
39797 | PyObject * obj1 = 0 ; | |
39798 | char *kwnames[] = { | |
39799 | (char *) "self",(char *) "otherW", NULL | |
39800 | }; | |
39801 | ||
39802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
39803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39805 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39807 | { | |
39808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39809 | result = (bool)(arg1)->ResetIfWin(arg2); | |
39810 | ||
39811 | wxPyEndAllowThreads(__tstate); | |
39812 | if (PyErr_Occurred()) SWIG_fail; | |
39813 | } | |
39814 | { | |
39815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39816 | } | |
39817 | return resultobj; | |
39818 | fail: | |
39819 | return NULL; | |
39820 | } | |
39821 | ||
39822 | ||
39823 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39824 | PyObject *resultobj; | |
39825 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39826 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
39827 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39828 | bool result; | |
39829 | PyObject * obj0 = 0 ; | |
39830 | PyObject * obj1 = 0 ; | |
39831 | PyObject * obj2 = 0 ; | |
39832 | char *kwnames[] = { | |
39833 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
39834 | }; | |
39835 | ||
39836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39839 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
39840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39841 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39843 | { | |
39844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39845 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
39846 | ||
39847 | wxPyEndAllowThreads(__tstate); | |
39848 | if (PyErr_Occurred()) SWIG_fail; | |
39849 | } | |
39850 | { | |
39851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39852 | } | |
39853 | return resultobj; | |
39854 | fail: | |
39855 | return NULL; | |
39856 | } | |
39857 | ||
39858 | ||
39859 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39860 | PyObject *resultobj; | |
39861 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39862 | int arg2 ; | |
39863 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39864 | wxWindow *arg4 = (wxWindow *) 0 ; | |
39865 | int result; | |
39866 | PyObject * obj0 = 0 ; | |
39867 | PyObject * obj1 = 0 ; | |
39868 | PyObject * obj2 = 0 ; | |
39869 | PyObject * obj3 = 0 ; | |
39870 | char *kwnames[] = { | |
39871 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
39872 | }; | |
39873 | ||
39874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39877 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39878 | if (PyErr_Occurred()) SWIG_fail; | |
39879 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39881 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
39882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39883 | { | |
39884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39885 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
39886 | ||
39887 | wxPyEndAllowThreads(__tstate); | |
39888 | if (PyErr_Occurred()) SWIG_fail; | |
39889 | } | |
39890 | resultobj = SWIG_FromInt((int)result); | |
39891 | return resultobj; | |
39892 | fail: | |
39893 | return NULL; | |
39894 | } | |
39895 | ||
39896 | ||
39897 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
39898 | PyObject *obj; | |
39899 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39900 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
39901 | Py_INCREF(obj); | |
39902 | return Py_BuildValue((char *)""); | |
39903 | } | |
39904 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39905 | PyObject *resultobj; | |
39906 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39907 | wxIndividualLayoutConstraint *result; | |
39908 | PyObject * obj0 = 0 ; | |
39909 | char *kwnames[] = { | |
39910 | (char *) "self", NULL | |
39911 | }; | |
39912 | ||
39913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
39914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
39915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39916 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
39917 | ||
39918 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
39919 | return resultobj; | |
39920 | fail: | |
39921 | return NULL; | |
39922 | } | |
39923 | ||
39924 | ||
39925 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39926 | PyObject *resultobj; | |
39927 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39928 | wxIndividualLayoutConstraint *result; | |
39929 | PyObject * obj0 = 0 ; | |
39930 | char *kwnames[] = { | |
39931 | (char *) "self", NULL | |
39932 | }; | |
39933 | ||
39934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
39935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
39936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39937 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
39938 | ||
39939 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
39940 | return resultobj; | |
39941 | fail: | |
39942 | return NULL; | |
39943 | } | |
39944 | ||
39945 | ||
39946 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39947 | PyObject *resultobj; | |
39948 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39949 | wxIndividualLayoutConstraint *result; | |
39950 | PyObject * obj0 = 0 ; | |
39951 | char *kwnames[] = { | |
39952 | (char *) "self", NULL | |
39953 | }; | |
39954 | ||
39955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
39956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
39957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39958 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
39959 | ||
39960 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
39961 | return resultobj; | |
39962 | fail: | |
39963 | return NULL; | |
39964 | } | |
39965 | ||
39966 | ||
39967 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39968 | PyObject *resultobj; | |
39969 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39970 | wxIndividualLayoutConstraint *result; | |
39971 | PyObject * obj0 = 0 ; | |
39972 | char *kwnames[] = { | |
39973 | (char *) "self", NULL | |
39974 | }; | |
39975 | ||
39976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
39977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
39978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39979 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
39980 | ||
39981 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
39982 | return resultobj; | |
39983 | fail: | |
39984 | return NULL; | |
39985 | } | |
39986 | ||
39987 | ||
39988 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39989 | PyObject *resultobj; | |
39990 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39991 | wxIndividualLayoutConstraint *result; | |
39992 | PyObject * obj0 = 0 ; | |
39993 | char *kwnames[] = { | |
39994 | (char *) "self", NULL | |
39995 | }; | |
39996 | ||
39997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
39998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
39999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40000 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
40001 | ||
40002 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40003 | return resultobj; | |
40004 | fail: | |
40005 | return NULL; | |
40006 | } | |
40007 | ||
40008 | ||
40009 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40010 | PyObject *resultobj; | |
40011 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40012 | wxIndividualLayoutConstraint *result; | |
40013 | PyObject * obj0 = 0 ; | |
40014 | char *kwnames[] = { | |
40015 | (char *) "self", NULL | |
40016 | }; | |
40017 | ||
40018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
40019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40021 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
40022 | ||
40023 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40024 | return resultobj; | |
40025 | fail: | |
40026 | return NULL; | |
40027 | } | |
40028 | ||
40029 | ||
40030 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40031 | PyObject *resultobj; | |
40032 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40033 | wxIndividualLayoutConstraint *result; | |
40034 | PyObject * obj0 = 0 ; | |
40035 | char *kwnames[] = { | |
40036 | (char *) "self", NULL | |
40037 | }; | |
40038 | ||
40039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
40040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40042 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
40043 | ||
40044 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40045 | return resultobj; | |
40046 | fail: | |
40047 | return NULL; | |
40048 | } | |
40049 | ||
40050 | ||
40051 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40052 | PyObject *resultobj; | |
40053 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40054 | wxIndividualLayoutConstraint *result; | |
40055 | PyObject * obj0 = 0 ; | |
40056 | char *kwnames[] = { | |
40057 | (char *) "self", NULL | |
40058 | }; | |
40059 | ||
40060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
40061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40063 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
40064 | ||
40065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40066 | return resultobj; | |
40067 | fail: | |
40068 | return NULL; | |
40069 | } | |
40070 | ||
40071 | ||
40072 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40073 | PyObject *resultobj; | |
40074 | wxLayoutConstraints *result; | |
40075 | char *kwnames[] = { | |
40076 | NULL | |
40077 | }; | |
40078 | ||
40079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
40080 | { | |
40081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40082 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
40083 | ||
40084 | wxPyEndAllowThreads(__tstate); | |
40085 | if (PyErr_Occurred()) SWIG_fail; | |
40086 | } | |
40087 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); | |
40088 | return resultobj; | |
40089 | fail: | |
40090 | return NULL; | |
40091 | } | |
40092 | ||
40093 | ||
40094 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40095 | PyObject *resultobj; | |
40096 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40097 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40098 | int *arg3 = (int *) 0 ; | |
40099 | bool result; | |
40100 | int temp3 ; | |
40101 | PyObject * obj0 = 0 ; | |
40102 | PyObject * obj1 = 0 ; | |
40103 | char *kwnames[] = { | |
40104 | (char *) "self",(char *) "win", NULL | |
40105 | }; | |
40106 | ||
40107 | arg3 = &temp3; | |
40108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
40109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40111 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40113 | { | |
40114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40115 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
40116 | ||
40117 | wxPyEndAllowThreads(__tstate); | |
40118 | if (PyErr_Occurred()) SWIG_fail; | |
40119 | } | |
40120 | { | |
40121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40122 | } | |
40123 | { | |
40124 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
40125 | resultobj = t_output_helper(resultobj,o); | |
40126 | } | |
40127 | return resultobj; | |
40128 | fail: | |
40129 | return NULL; | |
40130 | } | |
40131 | ||
40132 | ||
40133 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40134 | PyObject *resultobj; | |
40135 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40136 | bool result; | |
40137 | PyObject * obj0 = 0 ; | |
40138 | char *kwnames[] = { | |
40139 | (char *) "self", NULL | |
40140 | }; | |
40141 | ||
40142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
40143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40145 | { | |
40146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40147 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
40148 | ||
40149 | wxPyEndAllowThreads(__tstate); | |
40150 | if (PyErr_Occurred()) SWIG_fail; | |
40151 | } | |
40152 | { | |
40153 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40154 | } | |
40155 | return resultobj; | |
40156 | fail: | |
40157 | return NULL; | |
40158 | } | |
40159 | ||
40160 | ||
40161 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
40162 | PyObject *obj; | |
40163 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40164 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
40165 | Py_INCREF(obj); | |
40166 | return Py_BuildValue((char *)""); | |
40167 | } | |
40168 | static PyMethodDef SwigMethods[] = { | |
40169 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
40170 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, | |
40171 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40172 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40173 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
40174 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
40175 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40176 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
40177 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40178 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
40179 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
40180 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40181 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40182 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
40183 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40184 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
40185 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
40186 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
40187 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40188 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40189 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40190 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40191 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS }, | |
40192 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS }, | |
40193 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, | |
40194 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, | |
40195 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40196 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40197 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40198 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40199 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
40200 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
40201 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40202 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40203 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, | |
40204 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40205 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, | |
40206 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, | |
40207 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, | |
40208 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40209 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40210 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40211 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40212 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
40213 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
40214 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40215 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40216 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
40217 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40218 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40219 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40220 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
40221 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, | |
40222 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, | |
40223 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40224 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
40225 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
40226 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40227 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40228 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
40229 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40230 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
40231 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40232 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40233 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40234 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40235 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40236 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40237 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40238 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40239 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
40240 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
40241 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
40242 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
40243 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, | |
40244 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
40245 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40246 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
40247 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
40248 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
40249 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
40250 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40251 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
40252 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
40253 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
40254 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
40255 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
40256 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
40257 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40258 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40259 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40260 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
40261 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
40262 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
40263 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40264 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40265 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40266 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40267 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
40268 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40269 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
40270 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40271 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
40272 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, | |
40273 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, | |
40274 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
40275 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
40276 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
40277 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
40278 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
40279 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
40280 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40281 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40282 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40283 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40284 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
40285 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
40286 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
40287 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
40288 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
40289 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40290 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40291 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
40292 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
40293 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40294 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40295 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40296 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40297 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40298 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40299 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
40300 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, | |
40301 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, | |
40302 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
40303 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
40304 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
40305 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
40306 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
40307 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
40308 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
40309 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
40310 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
40311 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
40312 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
40313 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
40314 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40315 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
40316 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
40317 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
40318 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
40319 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
40320 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
40321 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
40322 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40323 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40324 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
40325 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40326 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
40327 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40328 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
40329 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
40330 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
40331 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
40332 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40333 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40334 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40335 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40336 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40337 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
40338 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
40339 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40340 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
40341 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
40342 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
40343 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40344 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40345 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
40346 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
40347 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40348 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40349 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40350 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40351 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
40352 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
40353 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
40354 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
40355 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40356 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40357 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40358 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
40359 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40360 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40361 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40362 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40363 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40364 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
40365 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
40366 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40367 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
40368 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40369 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
40370 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40371 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40372 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40373 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40374 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
40375 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
40376 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40377 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
40378 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40379 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40380 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40381 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40382 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
40383 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40384 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
40385 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40386 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
40387 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
40388 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
40389 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
40390 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
40391 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
40392 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
40393 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
d6c14a4c | 40394 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
40395 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
40396 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
40397 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
40398 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40399 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
40400 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
40401 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
40402 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
40403 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
40404 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
40405 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
40406 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40407 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40408 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40409 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
40410 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
40411 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40412 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
40413 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
40414 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40415 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
40416 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40417 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
40418 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
40419 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
40420 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40421 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40422 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40423 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40424 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
40425 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
40426 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
40427 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
40428 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
40429 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40430 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40431 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40432 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40433 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40434 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40435 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
40436 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
40437 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
40438 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
40439 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
40440 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
40441 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
40442 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
40443 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
40444 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40445 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
40446 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
40447 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40448 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
40449 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40450 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
40451 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
40452 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40453 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40454 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
40455 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
40456 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
40457 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40458 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40459 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
d55e5bfc RD |
40460 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, |
40461 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
40462 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
40463 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
40464 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
40465 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
40466 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
40467 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
40468 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40469 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
40470 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40471 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
40472 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
40473 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
40474 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40475 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
40476 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40477 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
40478 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40479 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
40480 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40481 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
40482 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
40483 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40484 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40485 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40486 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40487 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40488 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40489 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
40490 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
40491 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40492 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
40493 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
40494 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40495 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
40496 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
40497 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
40498 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40499 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40500 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40501 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40502 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40503 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40504 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40505 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40506 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40507 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
40508 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
40509 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
40510 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
40511 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
40512 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40513 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
40514 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40515 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40516 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
40517 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40518 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40519 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
40520 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40521 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
40522 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
40523 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
40524 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40525 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
40526 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40527 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40528 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
40529 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
40530 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40531 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
40532 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40533 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40534 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
40535 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
40536 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
40537 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
40538 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40539 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40540 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40541 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40542 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
40543 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
40544 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40545 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40546 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40547 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40548 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
40549 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40550 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
40551 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
40552 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
40553 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
40554 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
40555 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40556 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
40557 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40558 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40559 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40560 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
40561 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
40562 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
40563 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
40564 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
40565 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
40566 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
40567 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
40568 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
40569 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
40570 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40571 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40572 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40573 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
40574 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
40575 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
40576 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
40577 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40578 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40579 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
40580 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40581 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40582 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
40583 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
40584 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
40585 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
40586 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40587 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40588 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40589 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40590 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40591 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40592 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40593 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40594 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40595 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40596 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40597 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40598 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40599 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40600 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40601 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40602 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40603 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40604 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
40605 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
40606 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
40607 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
40608 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
40609 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
40610 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
40611 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
40612 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40613 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40614 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40615 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40616 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
40617 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
40618 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40619 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40620 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40621 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40622 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
40623 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
40624 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40625 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
40626 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40627 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
40628 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40629 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40630 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40631 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40632 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40633 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40634 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40635 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40636 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40637 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40638 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40639 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40640 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40641 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40642 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40643 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40644 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40645 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40646 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40647 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40648 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40649 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40650 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
40651 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
40652 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
40653 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40654 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40655 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40656 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40657 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40658 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
40659 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
40660 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40661 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40662 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
40663 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
40664 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40665 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40666 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40667 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40668 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
40669 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
40670 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40671 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40672 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
40673 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40674 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
40675 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40676 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
40677 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40678 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
40679 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
40680 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40681 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40682 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40683 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
40684 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40685 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40686 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
40687 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40688 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
40689 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
40690 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
40691 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
40692 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40693 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
40694 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
40695 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40696 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
40697 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40698 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40699 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40700 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40701 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40702 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40703 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
40704 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
40705 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
40706 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
40707 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
40708 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
40709 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40710 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
40711 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
40712 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40713 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
40714 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40715 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
40716 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
40717 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
40718 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
40719 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40720 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40721 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
40722 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
40723 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40724 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40725 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
40726 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40727 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
40728 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40729 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40730 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
40731 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
40732 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40733 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40734 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
40735 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40736 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
40737 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40738 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40739 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
40740 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40741 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
40742 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40743 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40744 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40745 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
40746 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
40747 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40748 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40749 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
40750 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40751 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40752 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40753 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
40754 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
40755 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
40756 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
40757 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
40758 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40759 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40760 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
40761 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40762 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40763 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
40764 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40765 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40766 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40767 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
40768 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
40769 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
40770 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
40771 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40772 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40773 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
40774 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
40775 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40776 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40777 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40778 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40779 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
40780 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40781 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40782 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40783 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40784 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
40785 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40786 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40787 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40788 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40789 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40790 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40791 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40792 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40793 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40794 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
40795 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40796 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40797 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40798 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40799 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40800 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40801 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
40802 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
40803 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
40804 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
40805 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, | |
40806 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40807 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40808 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40809 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40810 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40811 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40812 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
40813 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
40814 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, | |
40815 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, | |
40816 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
40817 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40818 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40819 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40820 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40821 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
40822 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40823 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40824 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40825 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40826 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
40827 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
40828 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
40829 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40830 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40831 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
40832 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
40833 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40834 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
40835 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
40836 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
40837 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
40838 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
40839 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
40840 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, |
40841 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40842 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
40843 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
40844 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40845 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40846 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40847 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
40848 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
40849 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, | |
40850 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, | |
40851 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS }, | |
40852 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS }, | |
40853 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS }, | |
40854 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS }, | |
40855 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS }, | |
40856 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS }, | |
40857 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS }, | |
40858 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, | |
40859 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
40860 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
40861 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
40862 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40863 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
40864 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
40865 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40866 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40867 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40868 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40869 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40870 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
40871 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
40872 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
40873 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40874 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40875 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
40876 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
40877 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
40878 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40879 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
40880 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40881 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40882 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
40883 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
40884 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
40885 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
40886 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
40887 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40888 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40889 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40890 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40891 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40892 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40893 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40894 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
40895 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40896 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
40897 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40898 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
40899 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40900 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
40901 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
40902 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
40903 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
40904 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
40905 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
40906 | { (char *)"Window_SetSizeHints", _wrap_Window_SetSizeHints, METH_VARARGS }, | |
40907 | { (char *)"Window_SetVirtualSizeHints", _wrap_Window_SetVirtualSizeHints, METH_VARARGS }, | |
40908 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, | |
40909 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
40910 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
40911 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
40912 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
40913 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40914 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40915 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40916 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40917 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40918 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40919 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
40920 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
40921 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40922 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
40923 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
40924 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40925 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
40926 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
40927 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
40928 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
40929 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
40930 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
40931 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
40932 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40933 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40934 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
40935 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
40936 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
40937 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
40938 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
40939 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40940 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40941 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40942 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
40943 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
40944 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
40945 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
40946 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
40947 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
40948 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
40949 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
40950 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
40951 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40952 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40953 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40954 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40955 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40956 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
40957 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
40958 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS }, | |
40959 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
40960 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
40961 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
40962 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40963 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40964 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
40965 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
40966 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
40967 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
40968 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
40969 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
40970 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
40971 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
40972 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
40973 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
40974 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
40975 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
40976 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
40977 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
40978 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
40979 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
40980 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
40981 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
40982 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
40983 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
40984 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
40985 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40986 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
40987 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
40988 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
40989 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
40990 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
40991 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40992 | { (char *)"Window_SetDefaultBackgroundColour", (PyCFunction) _wrap_Window_SetDefaultBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40993 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40994 | { (char *)"Window_SetDefaultForegroundColour", (PyCFunction) _wrap_Window_SetDefaultForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40995 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40996 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40997 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40998 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40999 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
41000 | { (char *)"Window_SetDefaultFont", (PyCFunction) _wrap_Window_SetDefaultFont, METH_VARARGS | METH_KEYWORDS }, | |
41001 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
41002 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
41003 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
41004 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
41005 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
41006 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
41007 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
41008 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
41009 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
41010 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
41011 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
41012 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
41013 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
41014 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS }, | |
41015 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, | |
41016 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
41017 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
41018 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
41019 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
41020 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
41021 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
41022 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
41023 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
41024 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
41025 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
41026 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
41027 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
41028 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
41029 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
41030 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
41031 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
41032 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
41033 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
41034 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
41035 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
41036 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
41037 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
41038 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
41039 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
41040 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41041 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41042 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
41043 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
41044 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
41045 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41046 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
41047 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41048 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
41049 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
41050 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41051 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
41052 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
41053 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
41054 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
41055 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
41056 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
41057 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
41058 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
41059 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
41060 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
41061 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
41062 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41063 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41064 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
41065 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
41066 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
41067 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
41068 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41069 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
41070 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
41071 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
41072 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41073 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41074 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41075 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
41076 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
41077 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
41078 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
41079 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41080 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41081 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41082 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41083 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
41084 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
41085 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
41086 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41087 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41088 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41089 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
41090 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41091 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
41092 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
41093 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
41094 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
41095 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
41096 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
41097 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
41098 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
41099 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
41100 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
41101 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
41102 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41103 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41104 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
41105 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41106 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41107 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41108 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41109 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41110 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41111 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41112 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41113 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41114 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
41115 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
41116 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
41117 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
41118 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
41119 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
41120 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
41121 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
41122 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
41123 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
41124 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
41125 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
41126 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
41127 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41128 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
41129 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41130 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
41131 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41132 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
41133 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
41134 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
41135 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
41136 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
41137 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
41138 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
41139 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41140 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
41141 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41142 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41143 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41144 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41145 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41146 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41147 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
41148 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
41149 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
41150 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
41151 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
41152 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
41153 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41154 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41155 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
41156 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
41157 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41158 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
41159 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41160 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
41161 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
41162 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
41163 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS }, | |
41164 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
41165 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
41166 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41167 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41168 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41169 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41170 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41171 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
41172 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41173 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
41174 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
41175 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
41176 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
41177 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
41178 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
41179 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41180 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41181 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
41182 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
41183 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
41184 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
41185 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
41186 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41187 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41188 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41189 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
41190 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
41191 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
41192 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41193 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
41194 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
41195 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
41196 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
41197 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
41198 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
41199 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
41200 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
41201 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
41202 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
41203 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
41204 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41205 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41206 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
41207 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
41208 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
41209 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41210 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
41211 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
41212 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41213 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
41214 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41215 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41216 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41217 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41218 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
41219 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
41220 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
41221 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41222 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41223 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
41224 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
41225 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41226 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41227 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41228 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41229 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41230 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41231 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41232 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41233 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41234 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41235 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41236 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41237 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41238 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
41239 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41240 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41241 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
41242 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
41243 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
41244 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41245 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41246 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
41247 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
1a6bba1e | 41248 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
41249 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, |
41250 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41251 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
41252 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
41253 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41254 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41255 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41256 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41257 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41258 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41259 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41260 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
41261 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
41262 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
41263 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41264 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41265 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
41266 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41267 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
41268 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
41269 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
41270 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41271 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
41272 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
41273 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
41274 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41275 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
41276 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41277 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41278 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41279 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41280 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41281 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
41282 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41283 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
41284 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41285 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41286 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
41287 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
41288 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41289 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41290 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
41291 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
41292 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41293 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41294 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
41295 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
41296 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41297 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41298 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
41299 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
41300 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41301 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41302 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
41303 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
41304 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41305 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41306 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41307 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41308 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
41309 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
41310 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, | |
41311 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
41312 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, | |
41313 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
41314 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
41315 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
41316 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
41317 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
41318 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41319 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
41320 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, | |
41321 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
41322 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, | |
41323 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
41324 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41325 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41326 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41327 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41328 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41329 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
41330 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, | |
41331 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
41332 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, | |
41333 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
41334 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
41335 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
41336 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41337 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
41338 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
41339 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
41340 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
41341 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
41342 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
41343 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41344 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41345 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
41346 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
41347 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41348 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41349 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41350 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41351 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
41352 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
41353 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
41354 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
41355 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
41356 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
41357 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
41358 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, | |
41359 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41360 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41361 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
41362 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
41363 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
41364 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
41365 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
41366 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
41367 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
41368 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
41369 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
41370 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
41371 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
41372 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
41373 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
41374 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
41375 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41376 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
41377 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41378 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41379 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
41380 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
41381 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
41382 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
41383 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
41384 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41385 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41386 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
41387 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
41388 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41389 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
41390 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
41391 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
41392 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
41393 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
41394 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
41395 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
41396 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
41397 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
41398 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41399 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41400 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
41401 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
41402 | { NULL, NULL } | |
41403 | }; | |
41404 | ||
41405 | ||
41406 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
41407 | ||
41408 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
41409 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
41410 | } | |
41411 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
41412 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
41413 | } | |
41414 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
41415 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41416 | } | |
41417 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
41418 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41419 | } | |
41420 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
41421 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
41422 | } | |
41423 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
41424 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41425 | } | |
41426 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
41427 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
41428 | } | |
41429 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
41430 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41431 | } | |
41432 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
41433 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41434 | } | |
41435 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
41436 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
41437 | } | |
41438 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
41439 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
41440 | } | |
41441 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
41442 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
41443 | } | |
41444 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
41445 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
41446 | } | |
41447 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
41448 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
41449 | } | |
41450 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41451 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41452 | } | |
41453 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41454 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41455 | } | |
41456 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41457 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41458 | } | |
41459 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41460 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41461 | } | |
41462 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41463 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41464 | } | |
41465 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41466 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41467 | } | |
41468 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41469 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41470 | } | |
41471 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41472 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41473 | } | |
41474 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
41475 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
41476 | } | |
41477 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
41478 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
41479 | } | |
41480 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
41481 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
41482 | } | |
41483 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
41484 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
41485 | } | |
41486 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
41487 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
41488 | } | |
41489 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
41490 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
41491 | } | |
41492 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
41493 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41494 | } | |
41495 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
41496 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41497 | } | |
41498 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
41499 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41500 | } | |
41501 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
41502 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41503 | } | |
41504 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
41505 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41506 | } | |
41507 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
41508 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
41509 | } | |
41510 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
41511 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
41512 | } | |
41513 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
41514 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41515 | } | |
41516 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
41517 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
41518 | } | |
41519 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
41520 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
41521 | } | |
41522 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
41523 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41524 | } | |
41525 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
41526 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41527 | } | |
41528 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
41529 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41530 | } | |
41531 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
41532 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
41533 | } | |
41534 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
41535 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
41536 | } | |
41537 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
41538 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41539 | } | |
41540 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
41541 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41542 | } | |
41543 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
41544 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41545 | } | |
41546 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
41547 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
41548 | } | |
41549 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
41550 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
41551 | } | |
41552 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
41553 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
41554 | } | |
41555 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
41556 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
41557 | } | |
41558 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
41559 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41560 | } | |
41561 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
41562 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
41563 | } | |
41564 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
41565 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
41566 | } | |
41567 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
41568 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
41569 | } | |
41570 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
41571 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
41572 | } | |
41573 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
41574 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
41575 | } | |
41576 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
41577 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
41578 | } | |
41579 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
41580 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
41581 | } | |
41582 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
41583 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
41584 | } | |
41585 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
41586 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
41587 | } | |
41588 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
41589 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
41590 | } | |
41591 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
41592 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41593 | } | |
41594 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
41595 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
41596 | } | |
41597 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
41598 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
41599 | } | |
41600 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
41601 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41602 | } | |
41603 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
41604 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41605 | } | |
41606 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
41607 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
41608 | } | |
41609 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
41610 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
41611 | } | |
41612 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
41613 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
41614 | } | |
41615 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
41616 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
41617 | } | |
41618 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
41619 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
41620 | } | |
41621 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
41622 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
41623 | } | |
41624 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
41625 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
41626 | } | |
41627 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
41628 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
41629 | } | |
41630 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41631 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
41632 | } | |
41633 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41634 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
41635 | } | |
41636 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41637 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
41638 | } | |
41639 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
41640 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
41641 | } | |
41642 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
41643 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
41644 | } | |
41645 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
41646 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41647 | } | |
41648 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
41649 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
41650 | } | |
41651 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
41652 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
41653 | } | |
41654 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
41655 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
41656 | } | |
41657 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
41658 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
41659 | } | |
41660 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
41661 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
41662 | } | |
41663 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
41664 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
41665 | } | |
41666 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
41667 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
41668 | } | |
41669 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
41670 | return (void *)((wxObject *) ((wxSizer *) x)); | |
41671 | } | |
41672 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
41673 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
41674 | } | |
41675 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
41676 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41677 | } | |
41678 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
41679 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
41680 | } | |
41681 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
41682 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
41683 | } | |
41684 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
41685 | return (void *)((wxObject *) ((wxImage *) x)); | |
41686 | } | |
41687 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
41688 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
41689 | } | |
41690 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
41691 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41692 | } | |
41693 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
41694 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
41695 | } | |
41696 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
41697 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
41698 | } | |
41699 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
41700 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
41701 | } | |
41702 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
41703 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
41704 | } | |
41705 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
41706 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
41707 | } | |
41708 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
41709 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41710 | } | |
41711 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
41712 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
41713 | } | |
41714 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
41715 | return (void *)((wxObject *) ((wxEvent *) x)); | |
41716 | } | |
41717 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
41718 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
41719 | } | |
41720 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
41721 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
41722 | } | |
41723 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
41724 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
41725 | } | |
41726 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
41727 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
41728 | } | |
41729 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
41730 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
41731 | } | |
41732 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
41733 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41734 | } | |
41735 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
41736 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41737 | } | |
41738 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
41739 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
41740 | } | |
41741 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
41742 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41743 | } | |
41744 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
41745 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
41746 | } | |
41747 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
41748 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
41749 | } | |
41750 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
41751 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
41752 | } | |
41753 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
41754 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
41755 | } | |
41756 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
41757 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
41758 | } | |
41759 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
41760 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41761 | } | |
41762 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
41763 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41764 | } | |
41765 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
41766 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
41767 | } | |
41768 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
41769 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
41770 | } | |
41771 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
41772 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
41773 | } | |
41774 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
41775 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
41776 | } | |
41777 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
41778 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
41779 | } | |
41780 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
41781 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
41782 | } | |
41783 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
41784 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
41785 | } | |
41786 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
41787 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
41788 | } | |
41789 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
41790 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41791 | } | |
41792 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
41793 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41794 | } | |
41795 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
41796 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41797 | } | |
41798 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
41799 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41800 | } | |
41801 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
41802 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41803 | } | |
41804 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
41805 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
41806 | } | |
41807 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
41808 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
41809 | } | |
41810 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
41811 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41812 | } | |
41813 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
41814 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
41815 | } | |
41816 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
41817 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
41818 | } | |
41819 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
41820 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
41821 | } | |
41822 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
41823 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
41824 | } | |
41825 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
41826 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
41827 | } | |
41828 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
41829 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
41830 | } | |
41831 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
41832 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
41833 | } | |
41834 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
41835 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41836 | } | |
41837 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
41838 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
41839 | } | |
41840 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
41841 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41842 | } | |
41843 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
41844 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41845 | } | |
41846 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
41847 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41848 | } | |
41849 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
41850 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
41851 | } | |
41852 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
41853 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
41854 | } | |
41855 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
41856 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
41857 | } | |
41858 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
41859 | return (void *)((wxWindow *) ((wxControl *) x)); | |
41860 | } | |
41861 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
41862 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
41863 | } | |
41864 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
41865 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
41866 | } | |
41867 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
41868 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41869 | } | |
41870 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
41871 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
41872 | } | |
41873 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
41874 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41875 | } | |
41876 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
41877 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41878 | } | |
41879 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
41880 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41881 | } | |
41882 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
41883 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41884 | } | |
41885 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
41886 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41887 | } | |
41888 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
41889 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41890 | } | |
41891 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
41892 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
41893 | } | |
41894 | 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}}; | |
41895 | 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}}; | |
41896 | 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}}; | |
41897 | 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}}; | |
41898 | 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}}; | |
41899 | 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}}; | |
41900 | 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}}; | |
41901 | 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}}; | |
41902 | 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}}; | |
41903 | 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}}; | |
41904 | 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}}; | |
41905 | 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}}; | |
41906 | 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}}; | |
41907 | 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}}; | |
41908 | 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}}; | |
41909 | 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}}; | |
41910 | 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}}; | |
41911 | 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}}; | |
41912 | 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}}; | |
41913 | 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}}; | |
41914 | 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}}; | |
41915 | 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}}; | |
41916 | 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}}; | |
41917 | 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}}; | |
41918 | 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}}; | |
41919 | 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}}; | |
41920 | 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}}; | |
41921 | 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}}; | |
41922 | 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}}; | |
41923 | 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}}; | |
41924 | 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}}; | |
41925 | 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}}; | |
41926 | 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}}; | |
41927 | 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}}; | |
41928 | 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}}; | |
41929 | 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}}; | |
41930 | 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}}; | |
41931 | 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}}; | |
41932 | 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}}; | |
41933 | 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}}; | |
41934 | 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}}; | |
41935 | 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}}; | |
41936 | 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}}; | |
41937 | 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}}; | |
41938 | 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}}; | |
41939 | 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}}; | |
41940 | 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}}; | |
41941 | 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}}; | |
41942 | 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}}; | |
41943 | 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}}; | |
41944 | 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}}; | |
41945 | 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}}; | |
41946 | 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}}; | |
41947 | 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}}; | |
41948 | 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}}; | |
41949 | 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}}; | |
41950 | 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}}; | |
41951 | 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}}; | |
41952 | 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}}; | |
41953 | 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}}; | |
41954 | 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}}; | |
41955 | 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}}; | |
41956 | 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}}; | |
41957 | 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}}; | |
41958 | 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}}; | |
41959 | 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}}; | |
41960 | 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}}; | |
41961 | 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}}; | |
41962 | 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}}; | |
41963 | 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}}; | |
41964 | 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}}; | |
41965 | 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}}; | |
41966 | 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}}; | |
41967 | 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}}; | |
41968 | 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}}; | |
41969 | 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}}; | |
41970 | 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}}; | |
41971 | 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}}; | |
41972 | 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}}; | |
41973 | 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}}; | |
41974 | 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}}; | |
41975 | 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}}; | |
41976 | 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}}; | |
41977 | 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}}; | |
41978 | 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}}; | |
41979 | 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}}; | |
41980 | 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}}; | |
41981 | 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}}; | |
41982 | 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}}; | |
41983 | 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}}; | |
41984 | 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}}; | |
41985 | 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}}; | |
41986 | 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}}; | |
41987 | 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}}; | |
41988 | 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}}; | |
41989 | 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}}; | |
41990 | 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}}; | |
41991 | 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}}; | |
41992 | 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}}; | |
41993 | 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}}; | |
41994 | 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}}; | |
41995 | 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}}; | |
41996 | 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}}; | |
41997 | 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}}; | |
41998 | 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}}; | |
41999 | 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}}; | |
42000 | 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}}; | |
42001 | 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}}; | |
42002 | 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}}; | |
42003 | 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}}; | |
42004 | 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}}; | |
42005 | 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}}; | |
42006 | 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}}; | |
42007 | 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}}; | |
42008 | 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}}; | |
42009 | ||
42010 | static swig_type_info *swig_types_initial[] = { | |
42011 | _swigt__p_wxLayoutConstraints, | |
42012 | _swigt__p_wxRealPoint, | |
42013 | _swigt__p_wxSizerItem, | |
42014 | _swigt__p_wxGBSizerItem, | |
42015 | _swigt__p_wxScrollEvent, | |
42016 | _swigt__p_wxIndividualLayoutConstraint, | |
42017 | _swigt__p_wxSizer, | |
42018 | _swigt__p_wxBoxSizer, | |
42019 | _swigt__p_wxStaticBoxSizer, | |
42020 | _swigt__p_wxGridBagSizer, | |
42021 | _swigt__p_wxAcceleratorEntry, | |
42022 | _swigt__p_wxUpdateUIEvent, | |
42023 | _swigt__p_wxMenu, | |
42024 | _swigt__p_wxEvent, | |
42025 | _swigt__p_wxGridSizer, | |
42026 | _swigt__p_wxFlexGridSizer, | |
42027 | _swigt__p_wxInitDialogEvent, | |
42028 | _swigt__p_wxItemContainer, | |
42029 | _swigt__p_wxNcPaintEvent, | |
42030 | _swigt__p_wxPaintEvent, | |
42031 | _swigt__p_wxSysColourChangedEvent, | |
42032 | _swigt__p_wxMouseCaptureChangedEvent, | |
42033 | _swigt__p_wxDisplayChangedEvent, | |
42034 | _swigt__p_wxPaletteChangedEvent, | |
42035 | _swigt__p_wxControl, | |
42036 | _swigt__p_wxFont, | |
42037 | _swigt__p_wxMenuBarBase, | |
42038 | _swigt__p_wxSetCursorEvent, | |
42039 | _swigt__p_wxFSFile, | |
42040 | _swigt__p_wxCaret, | |
42041 | _swigt__p_wxRegion, | |
42042 | _swigt__p_wxPoint2D, | |
42043 | _swigt__p_int, | |
42044 | _swigt__p_wxSize, | |
42045 | _swigt__p_wxDC, | |
42046 | _swigt__p_wxPySizer, | |
42047 | _swigt__p_wxVisualAttributes, | |
42048 | _swigt__p_wxNotifyEvent, | |
42049 | _swigt__p_wxPyEvent, | |
42050 | _swigt__p_wxPropagationDisabler, | |
42051 | _swigt__p_wxAppTraits, | |
42052 | _swigt__p_wxArrayString, | |
42053 | _swigt__p_wxShowEvent, | |
42054 | _swigt__p_wxToolTip, | |
42055 | _swigt__p_wxMaximizeEvent, | |
42056 | _swigt__p_wxIconizeEvent, | |
42057 | _swigt__p_wxActivateEvent, | |
42058 | _swigt__p_wxMoveEvent, | |
42059 | _swigt__p_wxSizeEvent, | |
42060 | _swigt__p_wxQueryNewPaletteEvent, | |
42061 | _swigt__p_wxWindowCreateEvent, | |
42062 | _swigt__p_wxIdleEvent, | |
42063 | _swigt__p_wxMenuItem, | |
42064 | _swigt__p_wxStaticBox, | |
42065 | _swigt__p_long, | |
42066 | _swigt__p_wxTIFFHandler, | |
42067 | _swigt__p_wxXPMHandler, | |
42068 | _swigt__p_wxPNMHandler, | |
42069 | _swigt__p_wxJPEGHandler, | |
42070 | _swigt__p_wxPCXHandler, | |
42071 | _swigt__p_wxGIFHandler, | |
42072 | _swigt__p_wxPNGHandler, | |
42073 | _swigt__p_wxANIHandler, | |
42074 | _swigt__p_wxMemoryFSHandler, | |
42075 | _swigt__p_wxEvtHandler, | |
42076 | _swigt__p_wxCURHandler, | |
42077 | _swigt__p_wxICOHandler, | |
42078 | _swigt__p_wxBMPHandler, | |
42079 | _swigt__p_wxImageHandler, | |
42080 | _swigt__p_wxFileSystemHandler, | |
42081 | _swigt__p_wxPyFileSystemHandler, | |
42082 | _swigt__p_wxInternetFSHandler, | |
42083 | _swigt__p_wxZipFSHandler, | |
42084 | _swigt__p_wxRect, | |
42085 | _swigt__p_wxGBSpan, | |
42086 | _swigt__p_wxPropagateOnce, | |
42087 | _swigt__p_wxAcceleratorTable, | |
42088 | _swigt__p_char, | |
42089 | _swigt__p_wxGBPosition, | |
42090 | _swigt__p_wxImage, | |
42091 | _swigt__p_wxFrame, | |
42092 | _swigt__p_wxScrollWinEvent, | |
42093 | _swigt__p_wxImageHistogram, | |
42094 | _swigt__p_byte, | |
42095 | _swigt__p_wxPoint, | |
42096 | _swigt__p_wxCursor, | |
42097 | _swigt__p_wxObject, | |
42098 | _swigt__p_wxPyInputStream, | |
42099 | _swigt__p_wxOutputStream, | |
42100 | _swigt__p_wxInputStream, | |
42101 | _swigt__p_wxDateTime, | |
42102 | _swigt__p_wxKeyEvent, | |
42103 | _swigt__p_wxNavigationKeyEvent, | |
42104 | _swigt__p_wxWindowDestroyEvent, | |
42105 | _swigt__p_wxWindow, | |
42106 | _swigt__p_wxMenuBar, | |
42107 | _swigt__p_wxFileSystem, | |
42108 | _swigt__p_wxBitmap, | |
42109 | _swigt__p_wxMenuEvent, | |
42110 | _swigt__p_wxContextMenuEvent, | |
42111 | _swigt__p_unsigned_char, | |
42112 | _swigt__p_wxCloseEvent, | |
42113 | _swigt__p_wxEraseEvent, | |
42114 | _swigt__p_wxMouseEvent, | |
42115 | _swigt__p_wxPyApp, | |
42116 | _swigt__p_wxCommandEvent, | |
42117 | _swigt__p_wxPyCommandEvent, | |
42118 | _swigt__p_wxPyDropTarget, | |
42119 | _swigt__p_wxChildFocusEvent, | |
42120 | _swigt__p_wxFocusEvent, | |
42121 | _swigt__p_wxDropFilesEvent, | |
42122 | _swigt__p_wxControlWithItems, | |
42123 | _swigt__p_wxColour, | |
42124 | _swigt__p_wxValidator, | |
42125 | _swigt__p_wxPyValidator, | |
42126 | 0 | |
42127 | }; | |
42128 | ||
42129 | ||
42130 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
42131 | ||
42132 | static swig_const_info swig_const_table[] = { | |
42133 | {0}}; | |
42134 | ||
42135 | #ifdef __cplusplus | |
42136 | } | |
42137 | #endif | |
42138 | ||
42139 | #ifdef __cplusplus | |
42140 | extern "C" | |
42141 | #endif | |
42142 | SWIGEXPORT(void) SWIG_init(void) { | |
42143 | static PyObject *SWIG_globals = 0; | |
42144 | static int typeinit = 0; | |
42145 | PyObject *m, *d; | |
42146 | int i; | |
42147 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
42148 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
42149 | d = PyModule_GetDict(m); | |
42150 | ||
42151 | if (!typeinit) { | |
42152 | for (i = 0; swig_types_initial[i]; i++) { | |
42153 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
42154 | } | |
42155 | typeinit = 1; | |
42156 | } | |
42157 | SWIG_InstallConstants(d,swig_const_table); | |
42158 | ||
42159 | ||
42160 | #ifndef wxPyUSE_EXPORT | |
42161 | // Make our API structure a CObject so other modules can import it | |
42162 | // from this module. | |
42163 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
42164 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
42165 | Py_XDECREF(cobj); | |
42166 | #endif | |
42167 | ||
42168 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); | |
42169 | PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); | |
42170 | PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); | |
42171 | PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); | |
42172 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); | |
42173 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); | |
42174 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); | |
42175 | PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); | |
42176 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); | |
42177 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); | |
42178 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); | |
42179 | PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); | |
42180 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); | |
42181 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); | |
42182 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); | |
42183 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); | |
42184 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); | |
42185 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); | |
42186 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); | |
42187 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
42188 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); | |
42189 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); | |
42190 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); | |
42191 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); | |
42192 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); | |
42193 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB)); | |
42194 | PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); | |
42195 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); | |
42196 | PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); | |
42197 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); | |
42198 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); | |
42199 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); | |
42200 | PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); | |
42201 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); | |
42202 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); | |
42203 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); | |
42204 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); | |
42205 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); | |
42206 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); | |
42207 | PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); | |
42208 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); | |
42209 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); | |
42210 | PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); | |
42211 | PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); | |
42212 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); | |
42213 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); | |
42214 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); | |
42215 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); | |
42216 | PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); | |
42217 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); | |
42218 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); | |
42219 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); | |
42220 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); | |
42221 | PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); | |
42222 | PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); | |
42223 | PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); | |
42224 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); | |
42225 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); | |
42226 | PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); | |
42227 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); | |
42228 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); | |
42229 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); | |
42230 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); | |
42231 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); | |
42232 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); | |
42233 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); | |
42234 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); | |
42235 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); | |
42236 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); | |
42237 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); | |
42238 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); | |
42239 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); | |
42240 | PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); | |
42241 | PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); | |
42242 | PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); | |
42243 | PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); | |
42244 | PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); | |
42245 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); | |
42246 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); | |
42247 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); | |
42248 | PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); | |
42249 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); | |
42250 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); | |
42251 | PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); | |
42252 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); | |
42253 | PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); | |
42254 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); | |
42255 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); | |
42256 | PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); | |
42257 | PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); | |
42258 | PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); | |
42259 | PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); | |
42260 | PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); | |
42261 | PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); | |
42262 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
42263 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
42264 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); | |
42265 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); | |
42266 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
42267 | PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); | |
42268 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); | |
42269 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
42270 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
42271 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); | |
42272 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
42273 | PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); | |
42274 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); | |
42275 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); | |
42276 | PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); | |
42277 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); | |
42278 | PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); | |
42279 | PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); | |
42280 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); | |
42281 | PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); | |
42282 | PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); | |
42283 | PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); | |
42284 | PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); | |
42285 | PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); | |
42286 | PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); | |
42287 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); | |
42288 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); | |
42289 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); | |
42290 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); | |
42291 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); | |
42292 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); | |
42293 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); | |
42294 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); | |
42295 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); | |
42296 | PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); | |
42297 | PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); | |
42298 | PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); | |
42299 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); | |
42300 | PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); | |
42301 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); | |
42302 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); | |
42303 | PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); | |
42304 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); | |
42305 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); | |
42306 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); | |
42307 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); | |
42308 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); | |
42309 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); | |
42310 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); | |
42311 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); | |
42312 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); | |
42313 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); | |
42314 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); | |
42315 | PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); | |
42316 | PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); | |
42317 | PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); | |
42318 | PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); | |
42319 | PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); | |
42320 | PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); | |
42321 | PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); | |
42322 | PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); | |
42323 | PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); | |
42324 | PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); | |
42325 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); | |
42326 | PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); | |
42327 | PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); | |
42328 | PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); | |
42329 | PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); | |
42330 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); | |
42331 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); | |
42332 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); | |
42333 | PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); | |
42334 | PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); | |
42335 | PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); | |
42336 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); | |
42337 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); | |
42338 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); | |
42339 | PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); | |
42340 | PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); | |
42341 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); | |
42342 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); | |
42343 | PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); | |
42344 | PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); | |
42345 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); | |
42346 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); | |
42347 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); | |
42348 | PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); | |
42349 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); | |
42350 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); | |
42351 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); | |
42352 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); | |
42353 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); | |
42354 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); | |
42355 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); | |
42356 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); | |
42357 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); | |
42358 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); | |
42359 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); | |
42360 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
42361 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); | |
42362 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); | |
42363 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); | |
42364 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
42365 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
42366 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); | |
42367 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); | |
42368 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
42369 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
42370 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); | |
42371 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
42372 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
42373 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
42374 | PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); | |
42375 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); | |
42376 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); | |
42377 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); | |
42378 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); | |
42379 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); | |
42380 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); | |
42381 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); | |
42382 | PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); | |
42383 | PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); | |
42384 | PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); | |
42385 | PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); | |
42386 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); | |
42387 | PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); | |
42388 | PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); | |
42389 | PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); | |
42390 | PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); | |
42391 | PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); | |
42392 | PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); | |
42393 | PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); | |
42394 | PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); | |
42395 | PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); | |
42396 | PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); | |
42397 | PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); | |
42398 | PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); | |
42399 | PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); | |
42400 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); | |
42401 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
42402 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
42403 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); | |
42404 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); | |
42405 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); | |
42406 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); | |
42407 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
42408 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
42409 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); | |
42410 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); | |
42411 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); | |
42412 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); | |
42413 | PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); | |
42414 | PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); | |
42415 | PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); | |
42416 | PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); | |
42417 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE)); | |
42418 | PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); | |
42419 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); | |
42420 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); | |
42421 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); | |
42422 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); | |
42423 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); | |
42424 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); | |
42425 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); | |
42426 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); | |
42427 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); | |
42428 | PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); | |
42429 | PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); | |
42430 | PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); | |
42431 | PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); | |
42432 | PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); | |
42433 | PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); | |
42434 | PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); | |
42435 | PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); | |
42436 | PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); | |
42437 | PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); | |
42438 | PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); | |
42439 | PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); | |
42440 | PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); | |
42441 | PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); | |
42442 | PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); | |
42443 | PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); | |
42444 | PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); | |
42445 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); | |
42446 | PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); | |
42447 | PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); | |
42448 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); | |
42449 | PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); | |
42450 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); | |
42451 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); | |
42452 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); | |
42453 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); | |
42454 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); | |
42455 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); | |
42456 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); | |
42457 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); | |
42458 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); | |
42459 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); | |
42460 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); | |
42461 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); | |
42462 | PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); | |
42463 | PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); | |
42464 | PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); | |
42465 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); | |
42466 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); | |
42467 | PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); | |
42468 | PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); | |
42469 | PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); | |
42470 | PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); | |
42471 | PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); | |
42472 | PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); | |
42473 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); | |
42474 | PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); | |
42475 | PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); | |
42476 | PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); | |
42477 | PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); | |
42478 | PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); | |
42479 | PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); | |
42480 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); | |
42481 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); | |
42482 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); | |
42483 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); | |
42484 | PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); | |
42485 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); | |
42486 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); | |
42487 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); | |
42488 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); | |
42489 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); | |
42490 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); | |
42491 | PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); | |
42492 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); | |
42493 | PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); | |
42494 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); | |
42495 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); | |
42496 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); | |
42497 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); | |
42498 | PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); | |
42499 | PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); | |
42500 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); | |
42501 | PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); | |
42502 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); | |
42503 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); | |
42504 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); | |
42505 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); | |
42506 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); | |
42507 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); | |
42508 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); | |
42509 | PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); | |
42510 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); | |
42511 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); | |
42512 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); | |
42513 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); | |
42514 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); | |
42515 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); | |
42516 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); | |
42517 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); | |
42518 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); | |
42519 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); | |
42520 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); | |
42521 | PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); | |
42522 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); | |
42523 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); | |
42524 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); | |
42525 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); | |
42526 | PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); | |
42527 | PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); | |
42528 | PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); | |
42529 | PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); | |
42530 | PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); | |
42531 | PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); | |
42532 | PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); | |
42533 | PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); | |
42534 | PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); | |
42535 | PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); | |
42536 | PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); | |
42537 | PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); | |
42538 | PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); | |
42539 | PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); | |
42540 | PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); | |
42541 | PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); | |
42542 | PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); | |
42543 | PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); | |
42544 | PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); | |
42545 | PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); | |
42546 | PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); | |
42547 | PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); | |
42548 | PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); | |
42549 | PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); | |
42550 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); | |
42551 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); | |
42552 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); | |
42553 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); | |
42554 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); | |
42555 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); | |
42556 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); | |
42557 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); | |
42558 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); | |
42559 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); | |
42560 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); | |
42561 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); | |
42562 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); | |
42563 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); | |
42564 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); | |
42565 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); | |
42566 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); | |
42567 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
42568 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); | |
42569 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
42570 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); | |
42571 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); | |
42572 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); | |
42573 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); | |
42574 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); | |
42575 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
42576 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); | |
42577 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
42578 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
42579 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
42580 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
42581 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); | |
42582 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); | |
42583 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); | |
42584 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); | |
42585 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); | |
42586 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); | |
42587 | PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); | |
42588 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); | |
42589 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); | |
42590 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); | |
42591 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); | |
42592 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); | |
42593 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); | |
42594 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); | |
42595 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); | |
42596 | PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); | |
42597 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); | |
42598 | PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); | |
42599 | PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); | |
42600 | PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); | |
42601 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); | |
42602 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); | |
42603 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); | |
42604 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); | |
42605 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); | |
42606 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); | |
42607 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); | |
42608 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); | |
42609 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); | |
42610 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); | |
42611 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); | |
42612 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); | |
42613 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); | |
42614 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); | |
42615 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); | |
42616 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); | |
42617 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); | |
42618 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); | |
42619 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); | |
42620 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); | |
42621 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); | |
42622 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
42623 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); | |
42624 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
42625 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
42626 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); | |
42627 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
42628 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); | |
42629 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); | |
42630 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); | |
42631 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); | |
42632 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
42633 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
42634 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
42635 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); | |
42636 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
42637 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
42638 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
42639 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); | |
42640 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); | |
42641 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); | |
42642 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); | |
42643 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
42644 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
42645 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); | |
42646 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); | |
42647 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); | |
42648 | PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); | |
42649 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
42650 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
42651 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); | |
42652 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
42653 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); | |
42654 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); | |
42655 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); | |
42656 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); | |
42657 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); | |
42658 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); | |
42659 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); | |
42660 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
42661 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
42662 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
42663 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
42664 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
42665 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
42666 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
42667 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
42668 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
42669 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
42670 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); | |
42671 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
42672 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
42673 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); | |
42674 | PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); | |
42675 | PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); | |
42676 | PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); | |
42677 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); | |
42678 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); | |
42679 | PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); | |
42680 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); | |
42681 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); | |
42682 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
42683 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
42684 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
42685 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); | |
42686 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); | |
42687 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); | |
42688 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); | |
42689 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); | |
42690 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
42691 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); | |
42692 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
42693 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); | |
42694 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); | |
42695 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); | |
42696 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
42697 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); | |
42698 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); | |
42699 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); | |
42700 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); | |
42701 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); | |
42702 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); | |
42703 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
42704 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); | |
42705 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); | |
42706 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); | |
42707 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
42708 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); | |
42709 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); | |
42710 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); | |
42711 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); | |
42712 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); | |
42713 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
42714 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); | |
42715 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
42716 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); | |
42717 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
42718 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); | |
42719 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); | |
42720 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
42721 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
42722 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
42723 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); | |
42724 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); | |
42725 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); | |
42726 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); | |
42727 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); | |
42728 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); | |
42729 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); | |
42730 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); | |
42731 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); | |
42732 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); | |
42733 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); | |
42734 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); | |
42735 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); | |
42736 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); | |
42737 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
42738 | PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); | |
42739 | PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); | |
42740 | PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); | |
42741 | ||
42742 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
42743 | ||
42744 | ||
42745 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
42746 | ||
42747 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
42748 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
42749 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
42750 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
42751 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
42752 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
42753 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); | |
42754 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
42755 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); | |
42756 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); | |
42757 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); | |
42758 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); | |
42759 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); | |
42760 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); | |
42761 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); | |
42762 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); | |
42763 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); | |
42764 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
42765 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
42766 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); | |
42767 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
42768 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
42769 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
42770 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
42771 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
42772 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
42773 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
42774 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
42775 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
42776 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
42777 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
42778 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
42779 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
42780 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
42781 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
42782 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
42783 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
42784 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
42785 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
42786 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
42787 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
42788 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
42789 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
42790 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
42791 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
42792 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
42793 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
42794 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
42795 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
42796 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
42797 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
42798 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
42799 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
42800 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
42801 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
42802 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
42803 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
42804 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
42805 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
42806 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
42807 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
42808 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
42809 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
42810 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
42811 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
42812 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
42813 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
42814 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
42815 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
42816 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
42817 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
42818 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
42819 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
42820 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
42821 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
42822 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
42823 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
42824 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
42825 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
42826 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
42827 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
42828 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
42829 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
42830 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
42831 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
42832 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
42833 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
42834 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
42835 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
42836 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
42837 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
42838 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
42839 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
42840 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
42841 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
42842 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
42843 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
42844 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
42845 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
42846 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
42847 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
42848 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
42849 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
42850 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
42851 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
42852 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
42853 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
42854 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
42855 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
42856 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
42857 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
42858 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
42859 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
42860 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
42861 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
42862 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
42863 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
42864 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
42865 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
42866 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
42867 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
42868 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
42869 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
42870 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
42871 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
42872 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
42873 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
42874 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
42875 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
42876 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
42877 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
42878 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
42879 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
42880 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); | |
42881 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); | |
42882 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); | |
42883 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
42884 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
42885 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
42886 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
42887 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); | |
42888 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
42889 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
42890 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
42891 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
42892 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
42893 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); | |
42894 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); | |
42895 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); | |
42896 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
42897 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL)); | |
42898 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL)); | |
42899 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI)); | |
42900 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE)); | |
42901 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX)); | |
42902 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); | |
42903 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
42904 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); | |
42905 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
42906 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
42907 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); | |
42908 | PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); | |
42909 | PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); | |
42910 | PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); | |
42911 | PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); | |
42912 | PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); | |
42913 | PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); | |
42914 | PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); | |
42915 | PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); | |
42916 | PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); | |
42917 | PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); | |
42918 | PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); | |
42919 | PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); | |
42920 | PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); | |
42921 | PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); | |
42922 | PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); | |
42923 | PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); | |
42924 | PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); | |
42925 | PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); | |
42926 | PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); | |
42927 | ||
42928 | // Initialize threading, some globals and such | |
42929 | __wxPyPreStart(d); | |
42930 | ||
42931 | ||
42932 | // Although these are defined in __version__ they need to be here too so | |
42933 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
42934 | // versions match. | |
42935 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
42936 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
42937 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
42938 | ||
42939 | } | |
42940 |