]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.20 | |
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 | ||
49 | ||
50 | /*********************************************************************** | |
51 | * common.swg for wxPython | |
52 | * | |
53 | * Include only the function prototypes and such from SWIG's common.swg, | |
54 | * but not the runtime functions themselves. This helps keep the | |
55 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
56 | * anyway. | |
57 | * | |
58 | ************************************************************************/ | |
59 | ||
60 | #include <string.h> | |
61 | ||
62 | #if defined(_WIN32) || defined(__WIN32__) | |
63 | # if defined(_MSC_VER) | |
64 | # if defined(STATIC_LINKED) | |
65 | # define SWIGEXPORT(a) a | |
66 | # define SWIGIMPORT(a) extern a | |
67 | # else | |
68 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # endif | |
71 | # else | |
72 | # if defined(__BORLANDC__) | |
73 | # define SWIGEXPORT(a) a _export | |
74 | # define SWIGIMPORT(a) a _export | |
75 | # else | |
76 | # define SWIGEXPORT(a) a | |
77 | # define SWIGIMPORT(a) a | |
78 | # endif | |
79 | # endif | |
80 | #else | |
81 | # define SWIGEXPORT(a) a | |
82 | # define SWIGIMPORT(a) a | |
83 | #endif | |
84 | ||
85 | #ifdef SWIG_GLOBAL | |
86 | #define SWIGRUNTIME(a) SWIGEXPORT(a) | |
87 | #else | |
88 | #define SWIGRUNTIME(a) static a | |
89 | #endif | |
90 | ||
91 | ||
92 | #ifdef __cplusplus | |
93 | extern "C" { | |
94 | #endif | |
95 | ||
96 | typedef void *(*swig_converter_func)(void *); | |
97 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
98 | ||
99 | typedef struct swig_type_info { | |
100 | const char *name; | |
101 | swig_converter_func converter; | |
102 | const char *str; | |
103 | void *clientdata; | |
104 | swig_dycast_func dcast; | |
105 | struct swig_type_info *next; | |
106 | struct swig_type_info *prev; | |
107 | } swig_type_info; | |
108 | ||
109 | ||
110 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
112 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
114 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
116 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
117 | ||
118 | ||
119 | #ifdef __cplusplus | |
120 | } | |
121 | #endif | |
122 | ||
123 | /*********************************************************************** | |
124 | * pyrun.swg for wxPython | |
125 | * | |
126 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
127 | * but not the runtime functions themselves. This helps keep the | |
128 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
129 | * anyway. | |
130 | * | |
131 | ************************************************************************/ | |
132 | ||
133 | ||
134 | #include "Python.h" | |
135 | ||
136 | #ifdef __cplusplus | |
137 | extern "C" { | |
138 | #endif | |
139 | ||
140 | #define SWIG_PY_INT 1 | |
141 | #define SWIG_PY_FLOAT 2 | |
142 | #define SWIG_PY_STRING 3 | |
143 | #define SWIG_PY_POINTER 4 | |
144 | #define SWIG_PY_BINARY 5 | |
145 | ||
146 | /* Flags for pointer conversion */ | |
147 | ||
148 | #define SWIG_POINTER_EXCEPTION 0x1 | |
149 | #define SWIG_POINTER_DISOWN 0x2 | |
150 | ||
151 | /* Exception handling in wrappers */ | |
152 | #define SWIG_fail goto fail | |
153 | ||
154 | /* Constant information structure */ | |
155 | typedef struct swig_const_info { | |
156 | int type; | |
157 | char *name; | |
158 | long lvalue; | |
159 | double dvalue; | |
160 | void *pvalue; | |
161 | swig_type_info **ptype; | |
162 | } swig_const_info; | |
163 | ||
164 | ||
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_PackData(c, ptr, sz) \ | |
182 | SWIG_Python_PackData(c, ptr, sz) | |
183 | #define SWIG_UnpackData(c, ptr, sz) \ | |
184 | SWIG_Python_UnpackData(c, ptr, sz) | |
185 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
186 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
187 | #define SWIG_InstallConstants(d, constants) \ | |
188 | SWIG_Python_InstallConstants(d, constants) | |
189 | ||
190 | ||
191 | SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
192 | SWIGEXPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
193 | SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
194 | ||
195 | SWIGEXPORT(PyObject *) SWIG_Python_newvarlink(void); | |
196 | SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
197 | SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
198 | SWIGEXPORT(char *) SWIG_Python_PackData(char *c, void *, int); | |
199 | SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c, void *, int); | |
200 | SWIGEXPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
201 | SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
202 | ||
203 | ||
204 | /* Contract support */ | |
205 | ||
206 | #define SWIG_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
207 | #define SWIG_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
208 | ||
209 | #define SWIG_inherit_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
210 | #define SWIG_inherit_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
211 | ||
212 | #define SWIG_invariant(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
213 | #define SWIG_invariant_begin(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
214 | #define SWIG_invariant_end(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
215 | ||
216 | #ifdef __cplusplus | |
217 | } | |
218 | #endif | |
219 | ||
220 | ||
221 | ||
222 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
223 | ||
224 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[0] | |
225 | #define SWIGTYPE_p_wxRealPoint swig_types[1] | |
226 | #define SWIGTYPE_p_wxSizerItem swig_types[2] | |
227 | #define SWIGTYPE_p_wxGBSizerItem swig_types[3] | |
228 | #define SWIGTYPE_p_wxScrollEvent swig_types[4] | |
229 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5] | |
230 | #define SWIGTYPE_p_wxSizer swig_types[6] | |
231 | #define SWIGTYPE_p_wxBoxSizer swig_types[7] | |
232 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[8] | |
233 | #define SWIGTYPE_p_wxGridBagSizer swig_types[9] | |
234 | #define SWIGTYPE_p_wxAcceleratorEntry swig_types[10] | |
235 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[11] | |
236 | #define SWIGTYPE_p_wxMenu swig_types[12] | |
237 | #define SWIGTYPE_p_wxEvent swig_types[13] | |
238 | #define SWIGTYPE_p_wxGridSizer swig_types[14] | |
239 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[15] | |
240 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[16] | |
241 | #define SWIGTYPE_p_wxItemContainer swig_types[17] | |
242 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[18] | |
243 | #define SWIGTYPE_p_wxPaintEvent swig_types[19] | |
244 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20] | |
245 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21] | |
246 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22] | |
247 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23] | |
248 | #define SWIGTYPE_p_wxControl swig_types[24] | |
249 | #define SWIGTYPE_p_wxFont swig_types[25] | |
250 | #define SWIGTYPE_p_wxMenuBarBase swig_types[26] | |
251 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[27] | |
252 | #define SWIGTYPE_p_wxFSFile swig_types[28] | |
253 | #define SWIGTYPE_p_wxCaret swig_types[29] | |
254 | #define SWIGTYPE_p_wxRegion swig_types[30] | |
255 | #define SWIGTYPE_p_wxPoint2D swig_types[31] | |
256 | #define SWIGTYPE_p_int swig_types[32] | |
257 | #define SWIGTYPE_p_wxSize swig_types[33] | |
258 | #define SWIGTYPE_p_wxDC swig_types[34] | |
259 | #define SWIGTYPE_p_wxPySizer swig_types[35] | |
260 | #define SWIGTYPE_p_wxNotifyEvent swig_types[36] | |
261 | #define SWIGTYPE_p_wxPyEvent swig_types[37] | |
262 | #define SWIGTYPE_p_wxPropagationDisabler swig_types[38] | |
263 | #define SWIGTYPE_p_wxAppTraits swig_types[39] | |
264 | #define SWIGTYPE_p_wxArrayString swig_types[40] | |
265 | #define SWIGTYPE_p_wxShowEvent swig_types[41] | |
266 | #define SWIGTYPE_p_wxToolTip swig_types[42] | |
267 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[43] | |
268 | #define SWIGTYPE_p_wxIconizeEvent swig_types[44] | |
269 | #define SWIGTYPE_p_wxActivateEvent swig_types[45] | |
270 | #define SWIGTYPE_p_wxMoveEvent swig_types[46] | |
271 | #define SWIGTYPE_p_wxSizeEvent swig_types[47] | |
272 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[48] | |
273 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[49] | |
274 | #define SWIGTYPE_p_wxIdleEvent swig_types[50] | |
275 | #define SWIGTYPE_p_wxMenuItem swig_types[51] | |
276 | #define SWIGTYPE_p_wxStaticBox swig_types[52] | |
277 | #define SWIGTYPE_p_long swig_types[53] | |
278 | #define SWIGTYPE_p_wxTIFFHandler swig_types[54] | |
279 | #define SWIGTYPE_p_wxXPMHandler swig_types[55] | |
280 | #define SWIGTYPE_p_wxPNMHandler swig_types[56] | |
281 | #define SWIGTYPE_p_wxJPEGHandler swig_types[57] | |
282 | #define SWIGTYPE_p_wxPCXHandler swig_types[58] | |
283 | #define SWIGTYPE_p_wxGIFHandler swig_types[59] | |
284 | #define SWIGTYPE_p_wxPNGHandler swig_types[60] | |
285 | #define SWIGTYPE_p_wxANIHandler swig_types[61] | |
286 | #define SWIGTYPE_p_wxMemoryFSHandler swig_types[62] | |
287 | #define SWIGTYPE_p_wxEvtHandler swig_types[63] | |
288 | #define SWIGTYPE_p_wxCURHandler swig_types[64] | |
289 | #define SWIGTYPE_p_wxICOHandler swig_types[65] | |
290 | #define SWIGTYPE_p_wxBMPHandler swig_types[66] | |
291 | #define SWIGTYPE_p_wxImageHandler swig_types[67] | |
292 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[68] | |
293 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[69] | |
294 | #define SWIGTYPE_p_wxInternetFSHandler swig_types[70] | |
295 | #define SWIGTYPE_p_wxZipFSHandler swig_types[71] | |
296 | #define SWIGTYPE_p_wxRect swig_types[72] | |
297 | #define SWIGTYPE_p_wxGBSpan swig_types[73] | |
298 | #define SWIGTYPE_p_wxPropagateOnce swig_types[74] | |
299 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[75] | |
300 | #define SWIGTYPE_p_wxGBPosition swig_types[76] | |
301 | #define SWIGTYPE_p_wxImage swig_types[77] | |
302 | #define SWIGTYPE_p_wxFrame swig_types[78] | |
303 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[79] | |
304 | #define SWIGTYPE_p_wxImageHistogram swig_types[80] | |
305 | #define SWIGTYPE_p_byte swig_types[81] | |
306 | #define SWIGTYPE_p_wxPoint swig_types[82] | |
307 | #define SWIGTYPE_p_wxCursor swig_types[83] | |
308 | #define SWIGTYPE_p_wxObject swig_types[84] | |
309 | #define SWIGTYPE_p_wxPyInputStream swig_types[85] | |
310 | #define SWIGTYPE_p_wxOutputStream swig_types[86] | |
311 | #define SWIGTYPE_p_wxInputStream swig_types[87] | |
312 | #define SWIGTYPE_p_wxDateTime swig_types[88] | |
313 | #define SWIGTYPE_p_wxKeyEvent swig_types[89] | |
314 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[90] | |
315 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[91] | |
316 | #define SWIGTYPE_p_wxWindow swig_types[92] | |
317 | #define SWIGTYPE_p_wxMenuBar swig_types[93] | |
318 | #define SWIGTYPE_p_wxString swig_types[94] | |
319 | #define SWIGTYPE_p_wxFileSystem swig_types[95] | |
320 | #define SWIGTYPE_p_wxBitmap swig_types[96] | |
321 | #define SWIGTYPE_p_wxMenuEvent swig_types[97] | |
322 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[98] | |
323 | #define SWIGTYPE_p_unsigned_char swig_types[99] | |
324 | #define SWIGTYPE_p_wxCloseEvent swig_types[100] | |
325 | #define SWIGTYPE_p_wxEraseEvent swig_types[101] | |
326 | #define SWIGTYPE_p_wxMouseEvent swig_types[102] | |
327 | #define SWIGTYPE_p_wxPyApp swig_types[103] | |
328 | #define SWIGTYPE_p_wxCommandEvent swig_types[104] | |
329 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[105] | |
330 | #define SWIGTYPE_p_wxDropTarget swig_types[106] | |
331 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[107] | |
332 | #define SWIGTYPE_p_wxFocusEvent swig_types[108] | |
333 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[109] | |
334 | #define SWIGTYPE_p_wxControlWithItems swig_types[110] | |
335 | #define SWIGTYPE_p_wxColour swig_types[111] | |
336 | #define SWIGTYPE_p_wxValidator swig_types[112] | |
337 | #define SWIGTYPE_p_wxPyValidator swig_types[113] | |
338 | static swig_type_info *swig_types[115]; | |
339 | ||
340 | /* -------- TYPES TABLE (END) -------- */ | |
341 | ||
342 | ||
343 | /*----------------------------------------------- | |
344 | @(target):= _core.so | |
345 | ------------------------------------------------*/ | |
346 | #define SWIG_init init_core | |
347 | ||
348 | #define SWIG_name "_core" | |
349 | ||
350 | #include "wx/wxPython/wxPython_int.h" | |
351 | #include "wx/wxPython/pyclasses.h" | |
352 | ||
353 | ||
354 | #ifndef wxPyUSE_EXPORT | |
355 | // Helper functions for dealing with SWIG objects and such. These are | |
356 | // located here so they know about the SWIG types and functions declared | |
357 | // in the wrapper code. | |
358 | ||
359 | #include <wx/hashmap.h> | |
360 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
361 | ||
362 | ||
363 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
364 | // name of a class either looks up the type info in the cache, or scans the | |
365 | // SWIG tables for it. | |
366 | extern PyObject* wxPyPtrTypeMap; | |
367 | static | |
368 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
369 | ||
370 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
371 | ||
372 | if (typeInfoCache == NULL) | |
373 | typeInfoCache = new wxPyTypeInfoHashMap; | |
374 | ||
375 | wxString name(className); | |
376 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
377 | ||
378 | if (! swigType) { | |
379 | // it wasn't in the cache, so look it up from SWIG | |
380 | name.Append(wxT(" *")); | |
381 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
382 | ||
383 | // if it still wasn't found, try looking for a mapped name | |
384 | if (!swigType) { | |
385 | PyObject* item; | |
386 | name = className; | |
387 | ||
388 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
389 | (char*)(const char*)name.mbc_str())) != NULL) { | |
390 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
391 | name.Append(wxT(" *")); | |
392 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
393 | } | |
394 | } | |
395 | if (swigType) { | |
396 | // and add it to the map if found | |
397 | (*typeInfoCache)[className] = swigType; | |
398 | } | |
399 | } | |
400 | return swigType; | |
401 | } | |
402 | ||
403 | ||
404 | // Check if a class name is a type known to SWIG | |
405 | bool wxPyCheckSwigType(const wxChar* className) { | |
406 | ||
407 | swig_type_info* swigType = wxPyFindSwigType(className); | |
408 | return swigType != NULL; | |
409 | } | |
410 | ||
411 | ||
412 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
413 | // object for it. | |
414 | PyObject* wxPyConstructObject(void* ptr, | |
415 | const wxChar* className, | |
416 | int setThisOwn) { | |
417 | ||
418 | swig_type_info* swigType = wxPyFindSwigType(className); | |
419 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
420 | ||
421 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
422 | } | |
423 | ||
424 | ||
425 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
426 | // Ensures that the proxy object is of the specified (or derived) type. If | |
427 | // not able to perform the conversion then a Python exception is set and the | |
428 | // error should be handled properly in the caller. Returns true on success. | |
429 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, | |
430 | const wxChar* className) { | |
431 | ||
432 | swig_type_info* swigType = wxPyFindSwigType(className); | |
433 | wxCHECK_MSG(swigType != NULL, false, wxT("Unknown type in wxPyConvertSwigPtr")); | |
434 | ||
435 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
436 | } | |
437 | ||
438 | ||
439 | // Make a SWIGified pointer object suitable for a .this attribute | |
440 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
441 | ||
442 | PyObject* robj = NULL; | |
443 | ||
444 | swig_type_info* swigType = wxPyFindSwigType(className); | |
445 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
446 | ||
447 | #ifdef SWIG_COBJECT_TYPES | |
448 | robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); | |
449 | #else | |
450 | { | |
451 | char result[1024]; | |
452 | char *r = result; | |
453 | *(r++) = '_'; | |
454 | r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); | |
455 | strcpy(r, swigType->name); | |
456 | robj = PyString_FromString(result); | |
457 | } | |
458 | #endif | |
459 | ||
460 | return robj; | |
461 | } | |
462 | ||
463 | ||
464 | ||
465 | ||
466 | // Export a C API in a struct. Other modules will be able to load this from | |
467 | // the wx.core module and will then have safe access to these functions, even if | |
468 | // they are located in another shared library. | |
469 | static wxPyCoreAPI API = { | |
470 | ||
471 | (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, | |
472 | (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, | |
473 | (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, | |
474 | (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, | |
475 | (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, | |
476 | (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, | |
477 | (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, | |
478 | (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, | |
479 | (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, | |
480 | (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, | |
481 | (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, | |
482 | (p_SWIG_Python_PackData_t)SWIG_Python_PackData, | |
483 | (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, | |
484 | (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, | |
485 | (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, | |
486 | (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, | |
487 | (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, | |
488 | ||
489 | wxPyCheckSwigType, | |
490 | wxPyConstructObject, | |
491 | wxPyConvertSwigPtr, | |
492 | wxPyMakeSwigPtr, | |
493 | ||
494 | wxPyBeginAllowThreads, | |
495 | wxPyEndAllowThreads, | |
496 | wxPyBeginBlockThreads, | |
497 | wxPyEndBlockThreads, | |
498 | ||
499 | wxPy_ConvertList, | |
500 | ||
501 | wxString_in_helper, | |
502 | Py2wxString, | |
503 | wx2PyString, | |
504 | ||
505 | byte_LIST_helper, | |
506 | int_LIST_helper, | |
507 | long_LIST_helper, | |
508 | string_LIST_helper, | |
509 | wxPoint_LIST_helper, | |
510 | wxBitmap_LIST_helper, | |
511 | wxString_LIST_helper, | |
512 | wxAcceleratorEntry_LIST_helper, | |
513 | ||
514 | wxSize_helper, | |
515 | wxPoint_helper, | |
516 | wxRealPoint_helper, | |
517 | wxRect_helper, | |
518 | wxColour_helper, | |
519 | wxPoint2D_helper, | |
520 | ||
521 | wxPySimple_typecheck, | |
522 | wxColour_typecheck, | |
523 | ||
524 | wxPyCBH_setCallbackInfo, | |
525 | wxPyCBH_findCallback, | |
526 | wxPyCBH_callCallback, | |
527 | wxPyCBH_callCallbackObj, | |
528 | wxPyCBH_delete, | |
529 | ||
530 | wxPyMake_wxObject, | |
531 | wxPyMake_wxSizer, | |
532 | wxPyPtrTypeMap_Add, | |
533 | wxPy2int_seq_helper, | |
534 | wxPy4int_seq_helper, | |
535 | wxArrayString2PyList_helper, | |
536 | wxArrayInt2PyList_helper, | |
537 | ||
538 | wxPyClientData_dtor, | |
539 | wxPyUserData_dtor, | |
540 | wxPyOORClientData_dtor, | |
541 | ||
542 | wxPyCBInputStream_create, | |
543 | ||
544 | wxPyInstance_Check, | |
545 | wxPySwigInstance_Check | |
546 | ||
547 | }; | |
548 | ||
549 | #endif | |
550 | ||
551 | ||
552 | DECLARE_DEF_STRING(EmptyString); | |
553 | DECLARE_DEF_STRING(PanelNameStr); | |
554 | ||
555 | ||
556 | #if ! wxUSE_HOTKEY | |
557 | enum wxHotkeyModifier | |
558 | { | |
559 | wxMOD_NONE = 0, | |
560 | wxMOD_ALT = 1, | |
561 | wxMOD_CONTROL = 2, | |
562 | wxMOD_SHIFT = 4, | |
563 | wxMOD_WIN = 8 | |
564 | }; | |
565 | #define wxEVT_HOTKEY 9999 | |
566 | #endif | |
567 | ||
568 | wxString wxObject_GetClassName(wxObject *self){ | |
569 | return self->GetClassInfo()->GetClassName(); | |
570 | } | |
571 | void wxObject_Destroy(wxObject *self){ | |
572 | delete self; | |
573 | } | |
574 | ||
575 | #ifndef __WXMAC__ | |
576 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
577 | #endif | |
578 | ||
579 | PyObject *wxSize_asTuple(wxSize *self){ | |
580 | wxPyBeginBlockThreads(); | |
581 | PyObject* tup = PyTuple_New(2); | |
582 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
583 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
584 | wxPyEndBlockThreads(); | |
585 | return tup; | |
586 | } | |
587 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ | |
588 | self->x = x; | |
589 | self->y = y; | |
590 | } | |
591 | PyObject *wxRealPoint_asTuple(wxRealPoint *self){ | |
592 | wxPyBeginBlockThreads(); | |
593 | PyObject* tup = PyTuple_New(2); | |
594 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
595 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
596 | wxPyEndBlockThreads(); | |
597 | return tup; | |
598 | } | |
599 | void wxPoint_Set(wxPoint *self,long x,long y){ | |
600 | self->x = x; | |
601 | self->y = y; | |
602 | } | |
603 | PyObject *wxPoint_asTuple(wxPoint *self){ | |
604 | wxPyBeginBlockThreads(); | |
605 | PyObject* tup = PyTuple_New(2); | |
606 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
607 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
608 | wxPyEndBlockThreads(); | |
609 | return tup; | |
610 | } | |
611 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
612 | self->x = x; | |
613 | self->y = y; | |
614 | self->width = width; | |
615 | self->height = height; | |
616 | } | |
617 | PyObject *wxRect_asTuple(wxRect *self){ | |
618 | wxPyBeginBlockThreads(); | |
619 | PyObject* tup = PyTuple_New(4); | |
620 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
621 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
622 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
623 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
624 | wxPyEndBlockThreads(); | |
625 | return tup; | |
626 | } | |
627 | ||
628 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
629 | wxRegion reg1(*r1); | |
630 | wxRegion reg2(*r2); | |
631 | wxRect dest(0,0,0,0); | |
632 | PyObject* obj; | |
633 | ||
634 | reg1.Intersect(reg2); | |
635 | dest = reg1.GetBox(); | |
636 | ||
637 | if (dest != wxRect(0,0,0,0)) { | |
638 | wxPyBeginBlockThreads(); | |
639 | wxRect* newRect = new wxRect(dest); | |
640 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true); | |
641 | wxPyEndBlockThreads(); | |
642 | return obj; | |
643 | } | |
644 | Py_INCREF(Py_None); | |
645 | return Py_None; | |
646 | } | |
647 | ||
648 | ||
649 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
650 | PyObject* o2; | |
651 | PyObject* o3; | |
652 | ||
653 | if (!target) { | |
654 | target = o; | |
655 | } else if (target == Py_None) { | |
656 | Py_DECREF(Py_None); | |
657 | target = o; | |
658 | } else { | |
659 | if (!PyTuple_Check(target)) { | |
660 | o2 = target; | |
661 | target = PyTuple_New(1); | |
662 | PyTuple_SetItem(target, 0, o2); | |
663 | } | |
664 | o3 = PyTuple_New(1); | |
665 | PyTuple_SetItem(o3, 0, o); | |
666 | ||
667 | o2 = target; | |
668 | target = PySequence_Concat(o2, o3); | |
669 | Py_DECREF(o2); | |
670 | Py_DECREF(o3); | |
671 | } | |
672 | return target; | |
673 | } | |
674 | ||
675 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
676 | self->m_x = x; | |
677 | self->m_y = y; | |
678 | } | |
679 | PyObject *wxPoint2D_asTuple(wxPoint2D *self){ | |
680 | wxPyBeginBlockThreads(); | |
681 | PyObject* tup = PyTuple_New(2); | |
682 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
683 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
684 | wxPyEndBlockThreads(); | |
685 | return tup; | |
686 | } | |
687 | ||
688 | #include "wx/wxPython/pyistream.h" | |
689 | ||
690 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
691 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
692 | if (wxis) | |
693 | return new wxPyInputStream(wxis); | |
694 | else | |
695 | return NULL; | |
696 | } | |
697 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ | |
698 | // We use only strings for the streams, not unicode | |
699 | PyObject* str = PyObject_Str(obj); | |
700 | if (! str) { | |
701 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
702 | return; | |
703 | } | |
704 | self->Write(PyString_AS_STRING(str), | |
705 | PyString_GET_SIZE(str)); | |
706 | Py_DECREF(str); | |
707 | } | |
708 | ||
709 | #include "wx/wxPython/pyistream.h" | |
710 | ||
711 | ||
712 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
713 | { | |
714 | public: | |
715 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
716 | ||
717 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
718 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
719 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
720 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
721 | ||
722 | wxString GetProtocol(const wxString& location) { | |
723 | return wxFileSystemHandler::GetProtocol(location); | |
724 | } | |
725 | ||
726 | wxString GetLeftLocation(const wxString& location) { | |
727 | return wxFileSystemHandler::GetLeftLocation(location); | |
728 | } | |
729 | ||
730 | wxString GetAnchor(const wxString& location) { | |
731 | return wxFileSystemHandler::GetAnchor(location); | |
732 | } | |
733 | ||
734 | wxString GetRightLocation(const wxString& location) { | |
735 | return wxFileSystemHandler::GetRightLocation(location); | |
736 | } | |
737 | ||
738 | wxString GetMimeTypeFromExt(const wxString& location) { | |
739 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
740 | } | |
741 | ||
742 | PYPRIVATE; | |
743 | }; | |
744 | ||
745 | ||
746 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
747 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
748 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
749 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
750 | ||
751 | ||
752 | wxString wxFileSystem_URLToFileName(const wxString& url) { | |
753 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
754 | return fname.GetFullPath(); | |
755 | } | |
756 | ||
757 | ||
758 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
759 | wxImage& image, | |
760 | long type) { | |
761 | wxMemoryFSHandler::AddFile(filename, image, type); | |
762 | } | |
763 | ||
764 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
765 | const wxBitmap& bitmap, | |
766 | long type) { | |
767 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
768 | } | |
769 | ||
770 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
771 | PyObject* data) { | |
772 | wxMemoryFSHandler::AddFile(filename, | |
773 | // TODO: Verify data type | |
774 | (void*)PyString_AsString(data), | |
775 | (size_t)PyString_Size(data)); | |
776 | } | |
777 | ||
778 | ||
779 | #include "wx/wxPython/pyistream.h" | |
780 | ||
781 | wxImage *new_wxImage(int width,int height,bool clear){ | |
782 | if (width > 0 && height > 0) | |
783 | return new wxImage(width, height, clear); | |
784 | else | |
785 | return new wxImage; | |
786 | } | |
787 | wxImage *new_wxImage(wxBitmap const &bitmap){ | |
788 | return new wxImage(bitmap.ConvertToImage()); | |
789 | } | |
790 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
791 | // Copy the source data so the wxImage can clean it up later | |
792 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
793 | if (copy == NULL) { | |
794 | PyErr_NoMemory(); | |
795 | return NULL; | |
796 | } | |
797 | memcpy(copy, data, width*height*3); | |
798 | return new wxImage(width, height, copy, FALSE); | |
799 | } | |
800 | PyObject *wxImage_GetData(wxImage *self){ | |
801 | unsigned char* data = self->GetData(); | |
802 | int len = self->GetWidth() * self->GetHeight() * 3; | |
803 | PyObject* rv; | |
804 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
805 | return rv; | |
806 | } | |
807 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
808 | unsigned char* dataPtr; | |
809 | ||
810 | if (! PyString_Check(data)) { | |
811 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
812 | return /* NULL */ ; | |
813 | } | |
814 | ||
815 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
816 | dataPtr = (unsigned char*) malloc(len); | |
817 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
818 | self->SetData(dataPtr); | |
819 | // wxImage takes ownership of dataPtr... | |
820 | } | |
821 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
822 | unsigned char* data = self->GetData(); | |
823 | int len = self->GetWidth() * self->GetHeight() * 3; | |
824 | PyObject* rv; | |
825 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
826 | return rv; | |
827 | } | |
828 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
829 | unsigned char* buffer; | |
830 | int size; | |
831 | ||
832 | wxPyBeginBlockThreads(); | |
833 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
834 | goto done; | |
835 | ||
836 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
837 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
838 | goto done; | |
839 | } | |
840 | self->SetData(buffer); | |
841 | done: | |
842 | wxPyEndBlockThreads(); | |
843 | } | |
844 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
845 | unsigned char* data = self->GetAlpha(); | |
846 | if (! data) { | |
847 | RETURN_NONE(); | |
848 | } else { | |
849 | int len = self->GetWidth() * self->GetHeight(); | |
850 | PyObject* rv; | |
851 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
852 | return rv; | |
853 | } | |
854 | } | |
855 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
856 | unsigned char* dataPtr; | |
857 | ||
858 | if (! PyString_Check(data)) { | |
859 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
860 | return /* NULL */ ; | |
861 | } | |
862 | ||
863 | size_t len = self->GetWidth() * self->GetHeight(); | |
864 | dataPtr = (unsigned char*) malloc(len); | |
865 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
866 | self->SetAlpha(dataPtr); | |
867 | // wxImage takes ownership of dataPtr... | |
868 | } | |
869 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
870 | unsigned char* data = self->GetAlpha(); | |
871 | int len = self->GetWidth() * self->GetHeight(); | |
872 | PyObject* rv; | |
873 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
874 | return rv; | |
875 | } | |
876 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
877 | unsigned char* buffer; | |
878 | int size; | |
879 | ||
880 | wxPyBeginBlockThreads(); | |
881 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
882 | goto done; | |
883 | ||
884 | if (size != self->GetWidth() * self->GetHeight()) { | |
885 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
886 | goto done; | |
887 | } | |
888 | self->SetAlpha(buffer); | |
889 | done: | |
890 | wxPyEndBlockThreads(); | |
891 | } | |
892 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ | |
893 | wxBitmap bitmap(*self); | |
894 | return bitmap; | |
895 | } | |
896 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
897 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
898 | wxBitmap bitmap( mono, 1 ); | |
899 | return bitmap; | |
900 | } | |
901 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
902 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
903 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
904 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
905 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
906 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
907 | if (PyCallable_Check(func)) { | |
908 | self->Connect(id, lastId, eventType, | |
909 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
910 | new wxPyCallback(func)); | |
911 | } | |
912 | else if (func == Py_None) { | |
913 | self->Disconnect(id, lastId, eventType, | |
914 | (wxObjectEventFunction) | |
915 | &wxPyCallback::EventThunker); | |
916 | } | |
917 | else { | |
918 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
919 | } | |
920 | } | |
921 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
922 | return self->Disconnect(id, lastId, eventType, | |
923 | (wxObjectEventFunction) | |
924 | &wxPyCallback::EventThunker); | |
925 | } | |
926 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
927 | if (_self && _self != Py_None) { | |
928 | self->SetClientObject(new wxPyOORClientData(_self)); | |
929 | } | |
930 | else { | |
931 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
932 | if (data) { | |
933 | self->SetClientObject(NULL); // This will delete it too | |
934 | } | |
935 | } | |
936 | } | |
937 | int wxKeyEvent_GetUniChar(wxKeyEvent *self){ | |
938 | ||
939 | ||
940 | ||
941 | return 0; | |
942 | ||
943 | } | |
944 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ | |
945 | self->m_size = size; | |
946 | } | |
947 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
948 | self->m_pos = pos; | |
949 | } | |
950 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
951 | int count = self->GetNumberOfFiles(); | |
952 | wxString* files = self->GetFiles(); | |
953 | PyObject* list = PyList_New(count); | |
954 | ||
955 | if (!list) { | |
956 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
957 | return NULL; | |
958 | } | |
959 | ||
960 | for (int i=0; i<count; i++) { | |
961 | ||
962 | ||
963 | ||
964 | PyList_SetItem(list, i, PyString_FromString((const char*)files[i])); | |
965 | ||
966 | } | |
967 | return list; | |
968 | } | |
969 | ||
970 | ||
971 | wxPyApp *new_wxPyApp(){ | |
972 | wxPythonApp = new wxPyApp(); | |
973 | return wxPythonApp; | |
974 | } | |
975 | ||
976 | void wxApp_CleanUp() { | |
977 | __wxPyCleanup(); | |
978 | } | |
979 | ||
980 | ||
981 | wxPyApp* wxGetApp() { | |
982 | return (wxPyApp*)wxTheApp; | |
983 | } | |
984 | ||
985 | ||
986 | ||
987 | PyObject *wxWindow_GetChildren(wxWindow *self){ | |
988 | wxWindowList& list = self->GetChildren(); | |
989 | return wxPy_ConvertList(&list); | |
990 | } | |
991 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
992 | ||
993 | ||
994 | ||
995 | return FALSE; | |
996 | ||
997 | } | |
998 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
999 | ||
1000 | ||
1001 | ||
1002 | return FALSE; | |
1003 | ||
1004 | } | |
1005 | long wxWindow_GetHandle(wxWindow *self){ | |
1006 | return wxPyGetWinHandle(self); | |
1007 | } | |
1008 | ||
1009 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1010 | return wxWindow::FindWindowById(id, parent); | |
1011 | } | |
1012 | ||
1013 | wxWindow* wxFindWindowByName( const wxString& name, | |
1014 | const wxWindow *parent = NULL ) { | |
1015 | return wxWindow::FindWindowByName(name, parent); | |
1016 | } | |
1017 | ||
1018 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1019 | const wxWindow *parent = NULL ) { | |
1020 | return wxWindow::FindWindowByLabel(label, parent); | |
1021 | } | |
1022 | ||
1023 | ||
1024 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
1025 | #ifdef __WXMSW__ | |
1026 | wxWindow* win = new wxWindow; | |
1027 | win->SetHWND(hWnd); | |
1028 | win->SubclassWin(hWnd); | |
1029 | return win; | |
1030 | #else | |
1031 | PyErr_SetNone(PyExc_NotImplementedError); | |
1032 | return NULL; | |
1033 | #endif | |
1034 | } | |
1035 | ||
1036 | ||
1037 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1038 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1039 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1040 | ||
1041 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1042 | ||
1043 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1044 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1045 | wxMenuItemList& list = self->GetMenuItems(); | |
1046 | return wxPy_ConvertList(&list); | |
1047 | } | |
1048 | ||
1049 | DECLARE_DEF_STRING(ControlNameStr); | |
1050 | ||
1051 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ | |
1052 | if (clientData) { | |
1053 | wxPyClientData* data = new wxPyClientData(clientData); | |
1054 | return self->Append(item, data); | |
1055 | } else | |
1056 | return self->Append(item); | |
1057 | } | |
1058 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1059 | if (clientData) { | |
1060 | wxPyClientData* data = new wxPyClientData(clientData); | |
1061 | return self->Insert(item, pos, data); | |
1062 | } else | |
1063 | return self->Insert(item, pos); | |
1064 | } | |
1065 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1066 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1067 | if (data) { | |
1068 | Py_INCREF(data->m_obj); | |
1069 | return data->m_obj; | |
1070 | } else { | |
1071 | Py_INCREF(Py_None); | |
1072 | return Py_None; | |
1073 | } | |
1074 | } | |
1075 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1076 | wxPyClientData* data = new wxPyClientData(clientData); | |
1077 | self->SetClientObject(n, data); | |
1078 | } | |
1079 | ||
1080 | ||
1081 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
1082 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1083 | if (data) { | |
1084 | Py_INCREF(data->m_obj); | |
1085 | return data->m_obj; | |
1086 | } else { | |
1087 | Py_INCREF(Py_None); | |
1088 | return Py_None; | |
1089 | } | |
1090 | } | |
1091 | ||
1092 | // Figure out the type of the sizer item | |
1093 | ||
1094 | struct wxPySizerItemInfo { | |
1095 | wxPySizerItemInfo() | |
1096 | : window(NULL), sizer(NULL), gotSize(false), | |
1097 | size(wxDefaultSize), gotPos(false), pos(-1) | |
1098 | {} | |
1099 | ||
1100 | wxWindow* window; | |
1101 | wxSizer* sizer; | |
1102 | bool gotSize; | |
1103 | wxSize size; | |
1104 | bool gotPos; | |
1105 | int pos; | |
1106 | }; | |
1107 | ||
1108 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1109 | ||
1110 | wxPySizerItemInfo info; | |
1111 | wxSize size; | |
1112 | wxSize* sizePtr = &size; | |
1113 | ||
1114 | // Find out what the type of the item is | |
1115 | // try wxWindow | |
1116 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1117 | PyErr_Clear(); | |
1118 | info.window = NULL; | |
1119 | ||
1120 | // try wxSizer | |
1121 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1122 | PyErr_Clear(); | |
1123 | info.sizer = NULL; | |
1124 | ||
1125 | // try wxSize or (w,h) | |
1126 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1127 | info.size = *sizePtr; | |
1128 | info.gotSize = true; | |
1129 | } | |
1130 | ||
1131 | // or a single int | |
1132 | if (checkIdx && PyInt_Check(item)) { | |
1133 | info.pos = PyInt_AsLong(item); | |
1134 | info.gotPos = true; | |
1135 | } | |
1136 | } | |
1137 | } | |
1138 | ||
1139 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1140 | // no expected type, figure out what kind of error message to generate | |
1141 | if ( !checkSize && !checkIdx ) | |
1142 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1143 | else if ( checkSize && !checkIdx ) | |
1144 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1145 | else if ( !checkSize && checkIdx) | |
1146 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1147 | else | |
1148 | // can this one happen? | |
1149 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1150 | } | |
1151 | ||
1152 | return info; | |
1153 | } | |
1154 | ||
1155 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1156 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1157 | } | |
1158 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1159 | ||
1160 | wxPyUserData* data = NULL; | |
1161 | wxPyBeginBlockThreads(); | |
1162 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); | |
1163 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1164 | data = new wxPyUserData(userData); | |
1165 | wxPyEndBlockThreads(); | |
1166 | ||
1167 | // Now call the real Add method if a valid item type was found | |
1168 | if ( info.window ) | |
1169 | self->Add(info.window, proportion, flag, border, data); | |
1170 | else if ( info.sizer ) | |
1171 | self->Add(info.sizer, proportion, flag, border, data); | |
1172 | else if (info.gotSize) | |
1173 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1174 | proportion, flag, border, data); | |
1175 | } | |
1176 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1177 | ||
1178 | wxPyUserData* data = NULL; | |
1179 | wxPyBeginBlockThreads(); | |
1180 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); | |
1181 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1182 | data = new wxPyUserData(userData); | |
1183 | wxPyEndBlockThreads(); | |
1184 | ||
1185 | // Now call the real Insert method if a valid item type was found | |
1186 | if ( info.window ) | |
1187 | self->Insert(before, info.window, proportion, flag, border, data); | |
1188 | else if ( info.sizer ) | |
1189 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1190 | else if (info.gotSize) | |
1191 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1192 | proportion, flag, border, data); | |
1193 | } | |
1194 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1195 | ||
1196 | wxPyUserData* data = NULL; | |
1197 | wxPyBeginBlockThreads(); | |
1198 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); | |
1199 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1200 | data = new wxPyUserData(userData); | |
1201 | wxPyEndBlockThreads(); | |
1202 | ||
1203 | // Now call the real Prepend method if a valid item type was found | |
1204 | if ( info.window ) | |
1205 | self->Prepend(info.window, proportion, flag, border, data); | |
1206 | else if ( info.sizer ) | |
1207 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1208 | else if (info.gotSize) | |
1209 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1210 | proportion, flag, border, data); | |
1211 | } | |
1212 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1213 | wxPyBeginBlockThreads(); | |
1214 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); | |
1215 | wxPyEndBlockThreads(); | |
1216 | if ( info.window ) | |
1217 | return self->Remove(info.window); | |
1218 | else if ( info.sizer ) | |
1219 | return self->Remove(info.sizer); | |
1220 | else if ( info.gotPos ) | |
1221 | return self->Remove(info.pos); | |
1222 | else | |
1223 | return FALSE; | |
1224 | } | |
1225 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize size){ | |
1226 | wxPyBeginBlockThreads(); | |
1227 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); | |
1228 | wxPyEndBlockThreads(); | |
1229 | if ( info.window ) | |
1230 | self->SetItemMinSize(info.window, size); | |
1231 | else if ( info.sizer ) | |
1232 | self->SetItemMinSize(info.sizer, size); | |
1233 | else if ( info.gotPos ) | |
1234 | self->SetItemMinSize(info.pos, size); | |
1235 | } | |
1236 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1237 | wxSizerItemList& list = self->GetChildren(); | |
1238 | return wxPy_ConvertList(&list); | |
1239 | } | |
1240 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
1241 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false); | |
1242 | if ( info.window ) | |
1243 | self->Show(info.window, show); | |
1244 | else if ( info.sizer ) | |
1245 | self->Show(info.sizer, show); | |
1246 | } | |
1247 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
1248 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false); | |
1249 | if ( info.window ) | |
1250 | self->Hide(info.window); | |
1251 | else if ( info.sizer ) | |
1252 | self->Hide(info.sizer); | |
1253 | } | |
1254 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
1255 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false); | |
1256 | if ( info.window ) | |
1257 | return self->IsShown(info.window); | |
1258 | else if ( info.sizer ) | |
1259 | return self->IsShown(info.sizer); | |
1260 | else | |
1261 | return false; | |
1262 | } | |
1263 | ||
1264 | // See pyclasses.h | |
1265 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1266 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1267 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1268 | ||
1269 | ||
1270 | ||
1271 | ||
1272 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1273 | { | |
1274 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1275 | } | |
1276 | ||
1277 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1278 | { | |
1279 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1280 | } | |
1281 | ||
1282 | ||
1283 | PyObject *wxGBPosition_asTuple(wxGBPosition *self){ | |
1284 | wxPyBeginBlockThreads(); | |
1285 | PyObject* tup = PyTuple_New(2); | |
1286 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1287 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1288 | wxPyEndBlockThreads(); | |
1289 | return tup; | |
1290 | } | |
1291 | PyObject *wxGBSpan_asTuple(wxGBSpan *self){ | |
1292 | wxPyBeginBlockThreads(); | |
1293 | PyObject* tup = PyTuple_New(2); | |
1294 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1295 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
1296 | wxPyEndBlockThreads(); | |
1297 | return tup; | |
1298 | } | |
1299 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1300 | ||
1301 | wxPyUserData* data = NULL; | |
1302 | wxPyBeginBlockThreads(); | |
1303 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); | |
1304 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1305 | data = new wxPyUserData(userData); | |
1306 | wxPyEndBlockThreads(); | |
1307 | ||
1308 | // Now call the real Add method if a valid item type was found | |
1309 | if ( info.window ) | |
1310 | return self->Add(info.window, pos, span, flag, border, data); | |
1311 | else if ( info.sizer ) | |
1312 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1313 | else if (info.gotSize) | |
1314 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1315 | pos, span, flag, border, data); | |
1316 | return false; | |
1317 | } | |
1318 | ||
1319 | ||
1320 | #ifdef __cplusplus | |
1321 | extern "C" { | |
1322 | #endif | |
1323 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1324 | PyObject *resultobj; | |
1325 | wxObject *arg1 = (wxObject *) 0 ; | |
1326 | wxString result; | |
1327 | PyObject * obj0 = 0 ; | |
1328 | char *kwnames[] = { | |
1329 | (char *) "self", NULL | |
1330 | }; | |
1331 | ||
1332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
1333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1334 | { | |
1335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1336 | result = wxObject_GetClassName(arg1); | |
1337 | ||
1338 | wxPyEndAllowThreads(__tstate); | |
1339 | if (PyErr_Occurred()) SWIG_fail; | |
1340 | } | |
1341 | { | |
1342 | #if wxUSE_UNICODE | |
1343 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1344 | #else | |
1345 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1346 | #endif | |
1347 | } | |
1348 | return resultobj; | |
1349 | fail: | |
1350 | return NULL; | |
1351 | } | |
1352 | ||
1353 | ||
1354 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1355 | PyObject *resultobj; | |
1356 | wxObject *arg1 = (wxObject *) 0 ; | |
1357 | PyObject * obj0 = 0 ; | |
1358 | char *kwnames[] = { | |
1359 | (char *) "self", NULL | |
1360 | }; | |
1361 | ||
1362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
1363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1364 | { | |
1365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1366 | wxObject_Destroy(arg1); | |
1367 | ||
1368 | wxPyEndAllowThreads(__tstate); | |
1369 | if (PyErr_Occurred()) SWIG_fail; | |
1370 | } | |
1371 | Py_INCREF(Py_None); resultobj = Py_None; | |
1372 | return resultobj; | |
1373 | fail: | |
1374 | return NULL; | |
1375 | } | |
1376 | ||
1377 | ||
1378 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1379 | PyObject *obj; | |
1380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1381 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1382 | Py_INCREF(obj); | |
1383 | return Py_BuildValue((char *)""); | |
1384 | } | |
1385 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1386 | PyObject *resultobj; | |
1387 | wxSize *arg1 = (wxSize *) 0 ; | |
1388 | int arg2 ; | |
1389 | PyObject * obj0 = 0 ; | |
1390 | char *kwnames[] = { | |
1391 | (char *) "self",(char *) "x", NULL | |
1392 | }; | |
1393 | ||
1394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_width_set",kwnames,&obj0,&arg2)) goto fail; | |
1395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1396 | if (arg1) (arg1)->x = arg2; | |
1397 | ||
1398 | Py_INCREF(Py_None); resultobj = Py_None; | |
1399 | return resultobj; | |
1400 | fail: | |
1401 | return NULL; | |
1402 | } | |
1403 | ||
1404 | ||
1405 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1406 | PyObject *resultobj; | |
1407 | wxSize *arg1 = (wxSize *) 0 ; | |
1408 | int result; | |
1409 | PyObject * obj0 = 0 ; | |
1410 | char *kwnames[] = { | |
1411 | (char *) "self", NULL | |
1412 | }; | |
1413 | ||
1414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
1415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1416 | result = (int) ((arg1)->x); | |
1417 | ||
1418 | resultobj = PyInt_FromLong((long)result); | |
1419 | return resultobj; | |
1420 | fail: | |
1421 | return NULL; | |
1422 | } | |
1423 | ||
1424 | ||
1425 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1426 | PyObject *resultobj; | |
1427 | wxSize *arg1 = (wxSize *) 0 ; | |
1428 | int arg2 ; | |
1429 | PyObject * obj0 = 0 ; | |
1430 | char *kwnames[] = { | |
1431 | (char *) "self",(char *) "y", NULL | |
1432 | }; | |
1433 | ||
1434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_height_set",kwnames,&obj0,&arg2)) goto fail; | |
1435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1436 | if (arg1) (arg1)->y = arg2; | |
1437 | ||
1438 | Py_INCREF(Py_None); resultobj = Py_None; | |
1439 | return resultobj; | |
1440 | fail: | |
1441 | return NULL; | |
1442 | } | |
1443 | ||
1444 | ||
1445 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1446 | PyObject *resultobj; | |
1447 | wxSize *arg1 = (wxSize *) 0 ; | |
1448 | int result; | |
1449 | PyObject * obj0 = 0 ; | |
1450 | char *kwnames[] = { | |
1451 | (char *) "self", NULL | |
1452 | }; | |
1453 | ||
1454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
1455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1456 | result = (int) ((arg1)->y); | |
1457 | ||
1458 | resultobj = PyInt_FromLong((long)result); | |
1459 | return resultobj; | |
1460 | fail: | |
1461 | return NULL; | |
1462 | } | |
1463 | ||
1464 | ||
1465 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1466 | PyObject *resultobj; | |
1467 | int arg1 = (int) 0 ; | |
1468 | int arg2 = (int) 0 ; | |
1469 | wxSize *result; | |
1470 | char *kwnames[] = { | |
1471 | (char *) "w",(char *) "h", NULL | |
1472 | }; | |
1473 | ||
1474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Size",kwnames,&arg1,&arg2)) goto fail; | |
1475 | { | |
1476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1477 | result = (wxSize *)new wxSize(arg1,arg2); | |
1478 | ||
1479 | wxPyEndAllowThreads(__tstate); | |
1480 | if (PyErr_Occurred()) SWIG_fail; | |
1481 | } | |
1482 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 1); | |
1483 | return resultobj; | |
1484 | fail: | |
1485 | return NULL; | |
1486 | } | |
1487 | ||
1488 | ||
1489 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1490 | PyObject *resultobj; | |
1491 | wxSize *arg1 = (wxSize *) 0 ; | |
1492 | PyObject * obj0 = 0 ; | |
1493 | char *kwnames[] = { | |
1494 | (char *) "self", NULL | |
1495 | }; | |
1496 | ||
1497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
1498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1499 | { | |
1500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1501 | delete arg1; | |
1502 | ||
1503 | wxPyEndAllowThreads(__tstate); | |
1504 | if (PyErr_Occurred()) SWIG_fail; | |
1505 | } | |
1506 | Py_INCREF(Py_None); resultobj = Py_None; | |
1507 | return resultobj; | |
1508 | fail: | |
1509 | return NULL; | |
1510 | } | |
1511 | ||
1512 | ||
1513 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1514 | PyObject *resultobj; | |
1515 | wxSize *arg1 = (wxSize *) 0 ; | |
1516 | wxSize *arg2 = 0 ; | |
1517 | bool result; | |
1518 | wxSize temp2 ; | |
1519 | PyObject * obj0 = 0 ; | |
1520 | PyObject * obj1 = 0 ; | |
1521 | char *kwnames[] = { | |
1522 | (char *) "self",(char *) "sz", NULL | |
1523 | }; | |
1524 | ||
1525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1527 | { | |
1528 | arg2 = &temp2; | |
1529 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1530 | } | |
1531 | { | |
1532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1533 | result = (bool)((wxSize const *)arg1)->operator ==((wxSize const &)*arg2); | |
1534 | ||
1535 | wxPyEndAllowThreads(__tstate); | |
1536 | if (PyErr_Occurred()) SWIG_fail; | |
1537 | } | |
1538 | resultobj = PyInt_FromLong((long)result); | |
1539 | return resultobj; | |
1540 | fail: | |
1541 | return NULL; | |
1542 | } | |
1543 | ||
1544 | ||
1545 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1546 | PyObject *resultobj; | |
1547 | wxSize *arg1 = (wxSize *) 0 ; | |
1548 | wxSize *arg2 = 0 ; | |
1549 | bool result; | |
1550 | wxSize temp2 ; | |
1551 | PyObject * obj0 = 0 ; | |
1552 | PyObject * obj1 = 0 ; | |
1553 | char *kwnames[] = { | |
1554 | (char *) "self",(char *) "sz", NULL | |
1555 | }; | |
1556 | ||
1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1559 | { | |
1560 | arg2 = &temp2; | |
1561 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1562 | } | |
1563 | { | |
1564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1565 | result = (bool)((wxSize const *)arg1)->operator !=((wxSize const &)*arg2); | |
1566 | ||
1567 | wxPyEndAllowThreads(__tstate); | |
1568 | if (PyErr_Occurred()) SWIG_fail; | |
1569 | } | |
1570 | resultobj = PyInt_FromLong((long)result); | |
1571 | return resultobj; | |
1572 | fail: | |
1573 | return NULL; | |
1574 | } | |
1575 | ||
1576 | ||
1577 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1578 | PyObject *resultobj; | |
1579 | wxSize *arg1 = (wxSize *) 0 ; | |
1580 | wxSize *arg2 = 0 ; | |
1581 | wxSize result; | |
1582 | wxSize temp2 ; | |
1583 | PyObject * obj0 = 0 ; | |
1584 | PyObject * obj1 = 0 ; | |
1585 | char *kwnames[] = { | |
1586 | (char *) "self",(char *) "sz", NULL | |
1587 | }; | |
1588 | ||
1589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
1590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1591 | { | |
1592 | arg2 = &temp2; | |
1593 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1594 | } | |
1595 | { | |
1596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1597 | result = (arg1)->operator +((wxSize const &)*arg2); | |
1598 | ||
1599 | wxPyEndAllowThreads(__tstate); | |
1600 | if (PyErr_Occurred()) SWIG_fail; | |
1601 | } | |
1602 | { | |
1603 | wxSize * resultptr; | |
1604 | resultptr = new wxSize((wxSize &) result); | |
1605 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1606 | } | |
1607 | return resultobj; | |
1608 | fail: | |
1609 | return NULL; | |
1610 | } | |
1611 | ||
1612 | ||
1613 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1614 | PyObject *resultobj; | |
1615 | wxSize *arg1 = (wxSize *) 0 ; | |
1616 | wxSize *arg2 = 0 ; | |
1617 | wxSize result; | |
1618 | wxSize temp2 ; | |
1619 | PyObject * obj0 = 0 ; | |
1620 | PyObject * obj1 = 0 ; | |
1621 | char *kwnames[] = { | |
1622 | (char *) "self",(char *) "sz", NULL | |
1623 | }; | |
1624 | ||
1625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
1626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1627 | { | |
1628 | arg2 = &temp2; | |
1629 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1630 | } | |
1631 | { | |
1632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1633 | result = (arg1)->operator -((wxSize const &)*arg2); | |
1634 | ||
1635 | wxPyEndAllowThreads(__tstate); | |
1636 | if (PyErr_Occurred()) SWIG_fail; | |
1637 | } | |
1638 | { | |
1639 | wxSize * resultptr; | |
1640 | resultptr = new wxSize((wxSize &) result); | |
1641 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1642 | } | |
1643 | return resultobj; | |
1644 | fail: | |
1645 | return NULL; | |
1646 | } | |
1647 | ||
1648 | ||
1649 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1650 | PyObject *resultobj; | |
1651 | wxSize *arg1 = (wxSize *) 0 ; | |
1652 | wxSize *arg2 = 0 ; | |
1653 | wxSize temp2 ; | |
1654 | PyObject * obj0 = 0 ; | |
1655 | PyObject * obj1 = 0 ; | |
1656 | char *kwnames[] = { | |
1657 | (char *) "self",(char *) "sz", NULL | |
1658 | }; | |
1659 | ||
1660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
1661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1662 | { | |
1663 | arg2 = &temp2; | |
1664 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1665 | } | |
1666 | { | |
1667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1668 | (arg1)->IncTo((wxSize const &)*arg2); | |
1669 | ||
1670 | wxPyEndAllowThreads(__tstate); | |
1671 | if (PyErr_Occurred()) SWIG_fail; | |
1672 | } | |
1673 | Py_INCREF(Py_None); resultobj = Py_None; | |
1674 | return resultobj; | |
1675 | fail: | |
1676 | return NULL; | |
1677 | } | |
1678 | ||
1679 | ||
1680 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1681 | PyObject *resultobj; | |
1682 | wxSize *arg1 = (wxSize *) 0 ; | |
1683 | wxSize *arg2 = 0 ; | |
1684 | wxSize temp2 ; | |
1685 | PyObject * obj0 = 0 ; | |
1686 | PyObject * obj1 = 0 ; | |
1687 | char *kwnames[] = { | |
1688 | (char *) "self",(char *) "sz", NULL | |
1689 | }; | |
1690 | ||
1691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
1692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1693 | { | |
1694 | arg2 = &temp2; | |
1695 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1696 | } | |
1697 | { | |
1698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1699 | (arg1)->DecTo((wxSize const &)*arg2); | |
1700 | ||
1701 | wxPyEndAllowThreads(__tstate); | |
1702 | if (PyErr_Occurred()) SWIG_fail; | |
1703 | } | |
1704 | Py_INCREF(Py_None); resultobj = Py_None; | |
1705 | return resultobj; | |
1706 | fail: | |
1707 | return NULL; | |
1708 | } | |
1709 | ||
1710 | ||
1711 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1712 | PyObject *resultobj; | |
1713 | wxSize *arg1 = (wxSize *) 0 ; | |
1714 | int arg2 ; | |
1715 | int arg3 ; | |
1716 | PyObject * obj0 = 0 ; | |
1717 | char *kwnames[] = { | |
1718 | (char *) "self",(char *) "xx",(char *) "yy", NULL | |
1719 | }; | |
1720 | ||
1721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Size_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1723 | { | |
1724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1725 | (arg1)->Set(arg2,arg3); | |
1726 | ||
1727 | wxPyEndAllowThreads(__tstate); | |
1728 | if (PyErr_Occurred()) SWIG_fail; | |
1729 | } | |
1730 | Py_INCREF(Py_None); resultobj = Py_None; | |
1731 | return resultobj; | |
1732 | fail: | |
1733 | return NULL; | |
1734 | } | |
1735 | ||
1736 | ||
1737 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1738 | PyObject *resultobj; | |
1739 | wxSize *arg1 = (wxSize *) 0 ; | |
1740 | int arg2 ; | |
1741 | PyObject * obj0 = 0 ; | |
1742 | char *kwnames[] = { | |
1743 | (char *) "self",(char *) "w", NULL | |
1744 | }; | |
1745 | ||
1746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
1747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1748 | { | |
1749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1750 | (arg1)->SetWidth(arg2); | |
1751 | ||
1752 | wxPyEndAllowThreads(__tstate); | |
1753 | if (PyErr_Occurred()) SWIG_fail; | |
1754 | } | |
1755 | Py_INCREF(Py_None); resultobj = Py_None; | |
1756 | return resultobj; | |
1757 | fail: | |
1758 | return NULL; | |
1759 | } | |
1760 | ||
1761 | ||
1762 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1763 | PyObject *resultobj; | |
1764 | wxSize *arg1 = (wxSize *) 0 ; | |
1765 | int arg2 ; | |
1766 | PyObject * obj0 = 0 ; | |
1767 | char *kwnames[] = { | |
1768 | (char *) "self",(char *) "h", NULL | |
1769 | }; | |
1770 | ||
1771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
1772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1773 | { | |
1774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1775 | (arg1)->SetHeight(arg2); | |
1776 | ||
1777 | wxPyEndAllowThreads(__tstate); | |
1778 | if (PyErr_Occurred()) SWIG_fail; | |
1779 | } | |
1780 | Py_INCREF(Py_None); resultobj = Py_None; | |
1781 | return resultobj; | |
1782 | fail: | |
1783 | return NULL; | |
1784 | } | |
1785 | ||
1786 | ||
1787 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1788 | PyObject *resultobj; | |
1789 | wxSize *arg1 = (wxSize *) 0 ; | |
1790 | int result; | |
1791 | PyObject * obj0 = 0 ; | |
1792 | char *kwnames[] = { | |
1793 | (char *) "self", NULL | |
1794 | }; | |
1795 | ||
1796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
1797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1798 | { | |
1799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1800 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
1801 | ||
1802 | wxPyEndAllowThreads(__tstate); | |
1803 | if (PyErr_Occurred()) SWIG_fail; | |
1804 | } | |
1805 | resultobj = PyInt_FromLong((long)result); | |
1806 | return resultobj; | |
1807 | fail: | |
1808 | return NULL; | |
1809 | } | |
1810 | ||
1811 | ||
1812 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1813 | PyObject *resultobj; | |
1814 | wxSize *arg1 = (wxSize *) 0 ; | |
1815 | int result; | |
1816 | PyObject * obj0 = 0 ; | |
1817 | char *kwnames[] = { | |
1818 | (char *) "self", NULL | |
1819 | }; | |
1820 | ||
1821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
1822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1823 | { | |
1824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1825 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
1826 | ||
1827 | wxPyEndAllowThreads(__tstate); | |
1828 | if (PyErr_Occurred()) SWIG_fail; | |
1829 | } | |
1830 | resultobj = PyInt_FromLong((long)result); | |
1831 | return resultobj; | |
1832 | fail: | |
1833 | return NULL; | |
1834 | } | |
1835 | ||
1836 | ||
1837 | static PyObject *_wrap_Size_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1838 | PyObject *resultobj; | |
1839 | wxSize *arg1 = (wxSize *) 0 ; | |
1840 | int result; | |
1841 | PyObject * obj0 = 0 ; | |
1842 | char *kwnames[] = { | |
1843 | (char *) "self", NULL | |
1844 | }; | |
1845 | ||
1846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetX",kwnames,&obj0)) goto fail; | |
1847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1848 | { | |
1849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1850 | result = (int)((wxSize const *)arg1)->GetX(); | |
1851 | ||
1852 | wxPyEndAllowThreads(__tstate); | |
1853 | if (PyErr_Occurred()) SWIG_fail; | |
1854 | } | |
1855 | resultobj = PyInt_FromLong((long)result); | |
1856 | return resultobj; | |
1857 | fail: | |
1858 | return NULL; | |
1859 | } | |
1860 | ||
1861 | ||
1862 | static PyObject *_wrap_Size_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1863 | PyObject *resultobj; | |
1864 | wxSize *arg1 = (wxSize *) 0 ; | |
1865 | int result; | |
1866 | PyObject * obj0 = 0 ; | |
1867 | char *kwnames[] = { | |
1868 | (char *) "self", NULL | |
1869 | }; | |
1870 | ||
1871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetY",kwnames,&obj0)) goto fail; | |
1872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1873 | { | |
1874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1875 | result = (int)((wxSize const *)arg1)->GetY(); | |
1876 | ||
1877 | wxPyEndAllowThreads(__tstate); | |
1878 | if (PyErr_Occurred()) SWIG_fail; | |
1879 | } | |
1880 | resultobj = PyInt_FromLong((long)result); | |
1881 | return resultobj; | |
1882 | fail: | |
1883 | return NULL; | |
1884 | } | |
1885 | ||
1886 | ||
1887 | static PyObject *_wrap_Size_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1888 | PyObject *resultobj; | |
1889 | wxSize *arg1 = (wxSize *) 0 ; | |
1890 | PyObject *result; | |
1891 | PyObject * obj0 = 0 ; | |
1892 | char *kwnames[] = { | |
1893 | (char *) "self", NULL | |
1894 | }; | |
1895 | ||
1896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_asTuple",kwnames,&obj0)) goto fail; | |
1897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1898 | { | |
1899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1900 | result = (PyObject *)wxSize_asTuple(arg1); | |
1901 | ||
1902 | wxPyEndAllowThreads(__tstate); | |
1903 | if (PyErr_Occurred()) SWIG_fail; | |
1904 | } | |
1905 | resultobj = result; | |
1906 | return resultobj; | |
1907 | fail: | |
1908 | return NULL; | |
1909 | } | |
1910 | ||
1911 | ||
1912 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
1913 | PyObject *obj; | |
1914 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1915 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
1916 | Py_INCREF(obj); | |
1917 | return Py_BuildValue((char *)""); | |
1918 | } | |
1919 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1920 | PyObject *resultobj; | |
1921 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1922 | double arg2 ; | |
1923 | PyObject * obj0 = 0 ; | |
1924 | char *kwnames[] = { | |
1925 | (char *) "self",(char *) "x", NULL | |
1926 | }; | |
1927 | ||
1928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:RealPoint_x_set",kwnames,&obj0,&arg2)) goto fail; | |
1929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1930 | if (arg1) (arg1)->x = arg2; | |
1931 | ||
1932 | Py_INCREF(Py_None); resultobj = Py_None; | |
1933 | return resultobj; | |
1934 | fail: | |
1935 | return NULL; | |
1936 | } | |
1937 | ||
1938 | ||
1939 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1940 | PyObject *resultobj; | |
1941 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1942 | double result; | |
1943 | PyObject * obj0 = 0 ; | |
1944 | char *kwnames[] = { | |
1945 | (char *) "self", NULL | |
1946 | }; | |
1947 | ||
1948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
1949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1950 | result = (double) ((arg1)->x); | |
1951 | ||
1952 | resultobj = PyFloat_FromDouble(result); | |
1953 | return resultobj; | |
1954 | fail: | |
1955 | return NULL; | |
1956 | } | |
1957 | ||
1958 | ||
1959 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1960 | PyObject *resultobj; | |
1961 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1962 | double arg2 ; | |
1963 | PyObject * obj0 = 0 ; | |
1964 | char *kwnames[] = { | |
1965 | (char *) "self",(char *) "y", NULL | |
1966 | }; | |
1967 | ||
1968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:RealPoint_y_set",kwnames,&obj0,&arg2)) goto fail; | |
1969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1970 | if (arg1) (arg1)->y = arg2; | |
1971 | ||
1972 | Py_INCREF(Py_None); resultobj = Py_None; | |
1973 | return resultobj; | |
1974 | fail: | |
1975 | return NULL; | |
1976 | } | |
1977 | ||
1978 | ||
1979 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1980 | PyObject *resultobj; | |
1981 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1982 | double result; | |
1983 | PyObject * obj0 = 0 ; | |
1984 | char *kwnames[] = { | |
1985 | (char *) "self", NULL | |
1986 | }; | |
1987 | ||
1988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
1989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1990 | result = (double) ((arg1)->y); | |
1991 | ||
1992 | resultobj = PyFloat_FromDouble(result); | |
1993 | return resultobj; | |
1994 | fail: | |
1995 | return NULL; | |
1996 | } | |
1997 | ||
1998 | ||
1999 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2000 | PyObject *resultobj; | |
2001 | double arg1 = (double) 0.0 ; | |
2002 | double arg2 = (double) 0.0 ; | |
2003 | wxRealPoint *result; | |
2004 | char *kwnames[] = { | |
2005 | (char *) "x",(char *) "y", NULL | |
2006 | }; | |
2007 | ||
2008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|dd:new_RealPoint",kwnames,&arg1,&arg2)) goto fail; | |
2009 | { | |
2010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2011 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2012 | ||
2013 | wxPyEndAllowThreads(__tstate); | |
2014 | if (PyErr_Occurred()) SWIG_fail; | |
2015 | } | |
2016 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRealPoint, 1); | |
2017 | return resultobj; | |
2018 | fail: | |
2019 | return NULL; | |
2020 | } | |
2021 | ||
2022 | ||
2023 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2024 | PyObject *resultobj; | |
2025 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2026 | PyObject * obj0 = 0 ; | |
2027 | char *kwnames[] = { | |
2028 | (char *) "self", NULL | |
2029 | }; | |
2030 | ||
2031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2033 | { | |
2034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2035 | delete arg1; | |
2036 | ||
2037 | wxPyEndAllowThreads(__tstate); | |
2038 | if (PyErr_Occurred()) SWIG_fail; | |
2039 | } | |
2040 | Py_INCREF(Py_None); resultobj = Py_None; | |
2041 | return resultobj; | |
2042 | fail: | |
2043 | return NULL; | |
2044 | } | |
2045 | ||
2046 | ||
2047 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2048 | PyObject *resultobj; | |
2049 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2050 | wxRealPoint *arg2 = 0 ; | |
2051 | wxRealPoint result; | |
2052 | wxRealPoint temp2 ; | |
2053 | PyObject * obj0 = 0 ; | |
2054 | PyObject * obj1 = 0 ; | |
2055 | char *kwnames[] = { | |
2056 | (char *) "self",(char *) "pt", NULL | |
2057 | }; | |
2058 | ||
2059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; | |
2060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2061 | { | |
2062 | arg2 = &temp2; | |
2063 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2064 | } | |
2065 | { | |
2066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2067 | result = ((wxRealPoint const *)arg1)->operator +((wxRealPoint const &)*arg2); | |
2068 | ||
2069 | wxPyEndAllowThreads(__tstate); | |
2070 | if (PyErr_Occurred()) SWIG_fail; | |
2071 | } | |
2072 | { | |
2073 | wxRealPoint * resultptr; | |
2074 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2075 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2076 | } | |
2077 | return resultobj; | |
2078 | fail: | |
2079 | return NULL; | |
2080 | } | |
2081 | ||
2082 | ||
2083 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2084 | PyObject *resultobj; | |
2085 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2086 | wxRealPoint *arg2 = 0 ; | |
2087 | wxRealPoint result; | |
2088 | wxRealPoint temp2 ; | |
2089 | PyObject * obj0 = 0 ; | |
2090 | PyObject * obj1 = 0 ; | |
2091 | char *kwnames[] = { | |
2092 | (char *) "self",(char *) "pt", NULL | |
2093 | }; | |
2094 | ||
2095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2097 | { | |
2098 | arg2 = &temp2; | |
2099 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2100 | } | |
2101 | { | |
2102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2103 | result = ((wxRealPoint const *)arg1)->operator -((wxRealPoint const &)*arg2); | |
2104 | ||
2105 | wxPyEndAllowThreads(__tstate); | |
2106 | if (PyErr_Occurred()) SWIG_fail; | |
2107 | } | |
2108 | { | |
2109 | wxRealPoint * resultptr; | |
2110 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2111 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2112 | } | |
2113 | return resultobj; | |
2114 | fail: | |
2115 | return NULL; | |
2116 | } | |
2117 | ||
2118 | ||
2119 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2120 | PyObject *resultobj; | |
2121 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2122 | wxRealPoint *arg2 = 0 ; | |
2123 | bool result; | |
2124 | wxRealPoint temp2 ; | |
2125 | PyObject * obj0 = 0 ; | |
2126 | PyObject * obj1 = 0 ; | |
2127 | char *kwnames[] = { | |
2128 | (char *) "self",(char *) "pt", NULL | |
2129 | }; | |
2130 | ||
2131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2133 | { | |
2134 | arg2 = &temp2; | |
2135 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2136 | } | |
2137 | { | |
2138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2139 | result = (bool)((wxRealPoint const *)arg1)->operator ==((wxRealPoint const &)*arg2); | |
2140 | ||
2141 | wxPyEndAllowThreads(__tstate); | |
2142 | if (PyErr_Occurred()) SWIG_fail; | |
2143 | } | |
2144 | resultobj = PyInt_FromLong((long)result); | |
2145 | return resultobj; | |
2146 | fail: | |
2147 | return NULL; | |
2148 | } | |
2149 | ||
2150 | ||
2151 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2152 | PyObject *resultobj; | |
2153 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2154 | wxRealPoint *arg2 = 0 ; | |
2155 | bool result; | |
2156 | wxRealPoint temp2 ; | |
2157 | PyObject * obj0 = 0 ; | |
2158 | PyObject * obj1 = 0 ; | |
2159 | char *kwnames[] = { | |
2160 | (char *) "self",(char *) "pt", NULL | |
2161 | }; | |
2162 | ||
2163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2165 | { | |
2166 | arg2 = &temp2; | |
2167 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2168 | } | |
2169 | { | |
2170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2171 | result = (bool)((wxRealPoint const *)arg1)->operator !=((wxRealPoint const &)*arg2); | |
2172 | ||
2173 | wxPyEndAllowThreads(__tstate); | |
2174 | if (PyErr_Occurred()) SWIG_fail; | |
2175 | } | |
2176 | resultobj = PyInt_FromLong((long)result); | |
2177 | return resultobj; | |
2178 | fail: | |
2179 | return NULL; | |
2180 | } | |
2181 | ||
2182 | ||
2183 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2184 | PyObject *resultobj; | |
2185 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2186 | double arg2 ; | |
2187 | double arg3 ; | |
2188 | PyObject * obj0 = 0 ; | |
2189 | char *kwnames[] = { | |
2190 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2191 | }; | |
2192 | ||
2193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:RealPoint_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2195 | { | |
2196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2197 | wxRealPoint_Set(arg1,arg2,arg3); | |
2198 | ||
2199 | wxPyEndAllowThreads(__tstate); | |
2200 | if (PyErr_Occurred()) SWIG_fail; | |
2201 | } | |
2202 | Py_INCREF(Py_None); resultobj = Py_None; | |
2203 | return resultobj; | |
2204 | fail: | |
2205 | return NULL; | |
2206 | } | |
2207 | ||
2208 | ||
2209 | static PyObject *_wrap_RealPoint_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2210 | PyObject *resultobj; | |
2211 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2212 | PyObject *result; | |
2213 | PyObject * obj0 = 0 ; | |
2214 | char *kwnames[] = { | |
2215 | (char *) "self", NULL | |
2216 | }; | |
2217 | ||
2218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_asTuple",kwnames,&obj0)) goto fail; | |
2219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2220 | { | |
2221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2222 | result = (PyObject *)wxRealPoint_asTuple(arg1); | |
2223 | ||
2224 | wxPyEndAllowThreads(__tstate); | |
2225 | if (PyErr_Occurred()) SWIG_fail; | |
2226 | } | |
2227 | resultobj = result; | |
2228 | return resultobj; | |
2229 | fail: | |
2230 | return NULL; | |
2231 | } | |
2232 | ||
2233 | ||
2234 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2235 | PyObject *obj; | |
2236 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2237 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2238 | Py_INCREF(obj); | |
2239 | return Py_BuildValue((char *)""); | |
2240 | } | |
2241 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2242 | PyObject *resultobj; | |
2243 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2244 | int arg2 ; | |
2245 | PyObject * obj0 = 0 ; | |
2246 | char *kwnames[] = { | |
2247 | (char *) "self",(char *) "x", NULL | |
2248 | }; | |
2249 | ||
2250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Point_x_set",kwnames,&obj0,&arg2)) goto fail; | |
2251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2252 | if (arg1) (arg1)->x = arg2; | |
2253 | ||
2254 | Py_INCREF(Py_None); resultobj = Py_None; | |
2255 | return resultobj; | |
2256 | fail: | |
2257 | return NULL; | |
2258 | } | |
2259 | ||
2260 | ||
2261 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2262 | PyObject *resultobj; | |
2263 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2264 | int result; | |
2265 | PyObject * obj0 = 0 ; | |
2266 | char *kwnames[] = { | |
2267 | (char *) "self", NULL | |
2268 | }; | |
2269 | ||
2270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2272 | result = (int) ((arg1)->x); | |
2273 | ||
2274 | resultobj = PyInt_FromLong((long)result); | |
2275 | return resultobj; | |
2276 | fail: | |
2277 | return NULL; | |
2278 | } | |
2279 | ||
2280 | ||
2281 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2282 | PyObject *resultobj; | |
2283 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2284 | int arg2 ; | |
2285 | PyObject * obj0 = 0 ; | |
2286 | char *kwnames[] = { | |
2287 | (char *) "self",(char *) "y", NULL | |
2288 | }; | |
2289 | ||
2290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Point_y_set",kwnames,&obj0,&arg2)) goto fail; | |
2291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2292 | if (arg1) (arg1)->y = arg2; | |
2293 | ||
2294 | Py_INCREF(Py_None); resultobj = Py_None; | |
2295 | return resultobj; | |
2296 | fail: | |
2297 | return NULL; | |
2298 | } | |
2299 | ||
2300 | ||
2301 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2302 | PyObject *resultobj; | |
2303 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2304 | int result; | |
2305 | PyObject * obj0 = 0 ; | |
2306 | char *kwnames[] = { | |
2307 | (char *) "self", NULL | |
2308 | }; | |
2309 | ||
2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2312 | result = (int) ((arg1)->y); | |
2313 | ||
2314 | resultobj = PyInt_FromLong((long)result); | |
2315 | return resultobj; | |
2316 | fail: | |
2317 | return NULL; | |
2318 | } | |
2319 | ||
2320 | ||
2321 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2322 | PyObject *resultobj; | |
2323 | int arg1 = (int) 0 ; | |
2324 | int arg2 = (int) 0 ; | |
2325 | wxPoint *result; | |
2326 | char *kwnames[] = { | |
2327 | (char *) "x",(char *) "y", NULL | |
2328 | }; | |
2329 | ||
2330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Point",kwnames,&arg1,&arg2)) goto fail; | |
2331 | { | |
2332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2333 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2334 | ||
2335 | wxPyEndAllowThreads(__tstate); | |
2336 | if (PyErr_Occurred()) SWIG_fail; | |
2337 | } | |
2338 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 1); | |
2339 | return resultobj; | |
2340 | fail: | |
2341 | return NULL; | |
2342 | } | |
2343 | ||
2344 | ||
2345 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2346 | PyObject *resultobj; | |
2347 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2348 | PyObject * obj0 = 0 ; | |
2349 | char *kwnames[] = { | |
2350 | (char *) "self", NULL | |
2351 | }; | |
2352 | ||
2353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2355 | { | |
2356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2357 | delete arg1; | |
2358 | ||
2359 | wxPyEndAllowThreads(__tstate); | |
2360 | if (PyErr_Occurred()) SWIG_fail; | |
2361 | } | |
2362 | Py_INCREF(Py_None); resultobj = Py_None; | |
2363 | return resultobj; | |
2364 | fail: | |
2365 | return NULL; | |
2366 | } | |
2367 | ||
2368 | ||
2369 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2370 | PyObject *resultobj; | |
2371 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2372 | wxPoint *arg2 = 0 ; | |
2373 | bool result; | |
2374 | wxPoint temp2 ; | |
2375 | PyObject * obj0 = 0 ; | |
2376 | PyObject * obj1 = 0 ; | |
2377 | char *kwnames[] = { | |
2378 | (char *) "self",(char *) "p", NULL | |
2379 | }; | |
2380 | ||
2381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2383 | { | |
2384 | arg2 = &temp2; | |
2385 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2386 | } | |
2387 | { | |
2388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2389 | result = (bool)((wxPoint const *)arg1)->operator ==((wxPoint const &)*arg2); | |
2390 | ||
2391 | wxPyEndAllowThreads(__tstate); | |
2392 | if (PyErr_Occurred()) SWIG_fail; | |
2393 | } | |
2394 | resultobj = PyInt_FromLong((long)result); | |
2395 | return resultobj; | |
2396 | fail: | |
2397 | return NULL; | |
2398 | } | |
2399 | ||
2400 | ||
2401 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2402 | PyObject *resultobj; | |
2403 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2404 | wxPoint *arg2 = 0 ; | |
2405 | bool result; | |
2406 | wxPoint temp2 ; | |
2407 | PyObject * obj0 = 0 ; | |
2408 | PyObject * obj1 = 0 ; | |
2409 | char *kwnames[] = { | |
2410 | (char *) "self",(char *) "p", NULL | |
2411 | }; | |
2412 | ||
2413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2415 | { | |
2416 | arg2 = &temp2; | |
2417 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2418 | } | |
2419 | { | |
2420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2421 | result = (bool)((wxPoint const *)arg1)->operator !=((wxPoint const &)*arg2); | |
2422 | ||
2423 | wxPyEndAllowThreads(__tstate); | |
2424 | if (PyErr_Occurred()) SWIG_fail; | |
2425 | } | |
2426 | resultobj = PyInt_FromLong((long)result); | |
2427 | return resultobj; | |
2428 | fail: | |
2429 | return NULL; | |
2430 | } | |
2431 | ||
2432 | ||
2433 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2434 | PyObject *resultobj; | |
2435 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2436 | wxPoint *arg2 = 0 ; | |
2437 | wxPoint result; | |
2438 | wxPoint temp2 ; | |
2439 | PyObject * obj0 = 0 ; | |
2440 | PyObject * obj1 = 0 ; | |
2441 | char *kwnames[] = { | |
2442 | (char *) "self",(char *) "p", NULL | |
2443 | }; | |
2444 | ||
2445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
2446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2447 | { | |
2448 | arg2 = &temp2; | |
2449 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2450 | } | |
2451 | { | |
2452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2453 | result = ((wxPoint const *)arg1)->operator +((wxPoint const &)*arg2); | |
2454 | ||
2455 | wxPyEndAllowThreads(__tstate); | |
2456 | if (PyErr_Occurred()) SWIG_fail; | |
2457 | } | |
2458 | { | |
2459 | wxPoint * resultptr; | |
2460 | resultptr = new wxPoint((wxPoint &) result); | |
2461 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2462 | } | |
2463 | return resultobj; | |
2464 | fail: | |
2465 | return NULL; | |
2466 | } | |
2467 | ||
2468 | ||
2469 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2470 | PyObject *resultobj; | |
2471 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2472 | wxPoint *arg2 = 0 ; | |
2473 | wxPoint result; | |
2474 | wxPoint temp2 ; | |
2475 | PyObject * obj0 = 0 ; | |
2476 | PyObject * obj1 = 0 ; | |
2477 | char *kwnames[] = { | |
2478 | (char *) "self",(char *) "p", NULL | |
2479 | }; | |
2480 | ||
2481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2483 | { | |
2484 | arg2 = &temp2; | |
2485 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2486 | } | |
2487 | { | |
2488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2489 | result = ((wxPoint const *)arg1)->operator -((wxPoint const &)*arg2); | |
2490 | ||
2491 | wxPyEndAllowThreads(__tstate); | |
2492 | if (PyErr_Occurred()) SWIG_fail; | |
2493 | } | |
2494 | { | |
2495 | wxPoint * resultptr; | |
2496 | resultptr = new wxPoint((wxPoint &) result); | |
2497 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2498 | } | |
2499 | return resultobj; | |
2500 | fail: | |
2501 | return NULL; | |
2502 | } | |
2503 | ||
2504 | ||
2505 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2506 | PyObject *resultobj; | |
2507 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2508 | wxPoint *arg2 = 0 ; | |
2509 | wxPoint *result; | |
2510 | wxPoint temp2 ; | |
2511 | PyObject * obj0 = 0 ; | |
2512 | PyObject * obj1 = 0 ; | |
2513 | char *kwnames[] = { | |
2514 | (char *) "self",(char *) "p", NULL | |
2515 | }; | |
2516 | ||
2517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2519 | { | |
2520 | arg2 = &temp2; | |
2521 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2522 | } | |
2523 | { | |
2524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2525 | { | |
2526 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
2527 | result = (wxPoint *) &_result_ref; | |
2528 | } | |
2529 | ||
2530 | wxPyEndAllowThreads(__tstate); | |
2531 | if (PyErr_Occurred()) SWIG_fail; | |
2532 | } | |
2533 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2534 | return resultobj; | |
2535 | fail: | |
2536 | return NULL; | |
2537 | } | |
2538 | ||
2539 | ||
2540 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2541 | PyObject *resultobj; | |
2542 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2543 | wxPoint *arg2 = 0 ; | |
2544 | wxPoint *result; | |
2545 | wxPoint temp2 ; | |
2546 | PyObject * obj0 = 0 ; | |
2547 | PyObject * obj1 = 0 ; | |
2548 | char *kwnames[] = { | |
2549 | (char *) "self",(char *) "p", NULL | |
2550 | }; | |
2551 | ||
2552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2554 | { | |
2555 | arg2 = &temp2; | |
2556 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2557 | } | |
2558 | { | |
2559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2560 | { | |
2561 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
2562 | result = (wxPoint *) &_result_ref; | |
2563 | } | |
2564 | ||
2565 | wxPyEndAllowThreads(__tstate); | |
2566 | if (PyErr_Occurred()) SWIG_fail; | |
2567 | } | |
2568 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2569 | return resultobj; | |
2570 | fail: | |
2571 | return NULL; | |
2572 | } | |
2573 | ||
2574 | ||
2575 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2576 | PyObject *resultobj; | |
2577 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2578 | long arg2 ; | |
2579 | long arg3 ; | |
2580 | PyObject * obj0 = 0 ; | |
2581 | char *kwnames[] = { | |
2582 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2583 | }; | |
2584 | ||
2585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:Point_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2587 | { | |
2588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2589 | wxPoint_Set(arg1,arg2,arg3); | |
2590 | ||
2591 | wxPyEndAllowThreads(__tstate); | |
2592 | if (PyErr_Occurred()) SWIG_fail; | |
2593 | } | |
2594 | Py_INCREF(Py_None); resultobj = Py_None; | |
2595 | return resultobj; | |
2596 | fail: | |
2597 | return NULL; | |
2598 | } | |
2599 | ||
2600 | ||
2601 | static PyObject *_wrap_Point_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2602 | PyObject *resultobj; | |
2603 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2604 | PyObject *result; | |
2605 | PyObject * obj0 = 0 ; | |
2606 | char *kwnames[] = { | |
2607 | (char *) "self", NULL | |
2608 | }; | |
2609 | ||
2610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_asTuple",kwnames,&obj0)) goto fail; | |
2611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2612 | { | |
2613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2614 | result = (PyObject *)wxPoint_asTuple(arg1); | |
2615 | ||
2616 | wxPyEndAllowThreads(__tstate); | |
2617 | if (PyErr_Occurred()) SWIG_fail; | |
2618 | } | |
2619 | resultobj = result; | |
2620 | return resultobj; | |
2621 | fail: | |
2622 | return NULL; | |
2623 | } | |
2624 | ||
2625 | ||
2626 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
2627 | PyObject *obj; | |
2628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2629 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
2630 | Py_INCREF(obj); | |
2631 | return Py_BuildValue((char *)""); | |
2632 | } | |
2633 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2634 | PyObject *resultobj; | |
2635 | int arg1 = (int) 0 ; | |
2636 | int arg2 = (int) 0 ; | |
2637 | int arg3 = (int) 0 ; | |
2638 | int arg4 = (int) 0 ; | |
2639 | wxRect *result; | |
2640 | char *kwnames[] = { | |
2641 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
2642 | }; | |
2643 | ||
2644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Rect",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
2645 | { | |
2646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2647 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
2648 | ||
2649 | wxPyEndAllowThreads(__tstate); | |
2650 | if (PyErr_Occurred()) SWIG_fail; | |
2651 | } | |
2652 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2653 | return resultobj; | |
2654 | fail: | |
2655 | return NULL; | |
2656 | } | |
2657 | ||
2658 | ||
2659 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2660 | PyObject *resultobj; | |
2661 | wxPoint *arg1 = 0 ; | |
2662 | wxPoint *arg2 = 0 ; | |
2663 | wxRect *result; | |
2664 | wxPoint temp1 ; | |
2665 | wxPoint temp2 ; | |
2666 | PyObject * obj0 = 0 ; | |
2667 | PyObject * obj1 = 0 ; | |
2668 | char *kwnames[] = { | |
2669 | (char *) "topLeft",(char *) "bottomRight", NULL | |
2670 | }; | |
2671 | ||
2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
2673 | { | |
2674 | arg1 = &temp1; | |
2675 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2676 | } | |
2677 | { | |
2678 | arg2 = &temp2; | |
2679 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2680 | } | |
2681 | { | |
2682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2683 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
2684 | ||
2685 | wxPyEndAllowThreads(__tstate); | |
2686 | if (PyErr_Occurred()) SWIG_fail; | |
2687 | } | |
2688 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2689 | return resultobj; | |
2690 | fail: | |
2691 | return NULL; | |
2692 | } | |
2693 | ||
2694 | ||
2695 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2696 | PyObject *resultobj; | |
2697 | wxPoint *arg1 = 0 ; | |
2698 | wxSize *arg2 = 0 ; | |
2699 | wxRect *result; | |
2700 | wxPoint temp1 ; | |
2701 | wxSize temp2 ; | |
2702 | PyObject * obj0 = 0 ; | |
2703 | PyObject * obj1 = 0 ; | |
2704 | char *kwnames[] = { | |
2705 | (char *) "pos",(char *) "size", NULL | |
2706 | }; | |
2707 | ||
2708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
2709 | { | |
2710 | arg1 = &temp1; | |
2711 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2712 | } | |
2713 | { | |
2714 | arg2 = &temp2; | |
2715 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2716 | } | |
2717 | { | |
2718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2719 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
2720 | ||
2721 | wxPyEndAllowThreads(__tstate); | |
2722 | if (PyErr_Occurred()) SWIG_fail; | |
2723 | } | |
2724 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2725 | return resultobj; | |
2726 | fail: | |
2727 | return NULL; | |
2728 | } | |
2729 | ||
2730 | ||
2731 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2732 | PyObject *resultobj; | |
2733 | wxRect *arg1 = (wxRect *) 0 ; | |
2734 | PyObject * obj0 = 0 ; | |
2735 | char *kwnames[] = { | |
2736 | (char *) "self", NULL | |
2737 | }; | |
2738 | ||
2739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
2740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2741 | { | |
2742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2743 | delete arg1; | |
2744 | ||
2745 | wxPyEndAllowThreads(__tstate); | |
2746 | if (PyErr_Occurred()) SWIG_fail; | |
2747 | } | |
2748 | Py_INCREF(Py_None); resultobj = Py_None; | |
2749 | return resultobj; | |
2750 | fail: | |
2751 | return NULL; | |
2752 | } | |
2753 | ||
2754 | ||
2755 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2756 | PyObject *resultobj; | |
2757 | wxRect *arg1 = (wxRect *) 0 ; | |
2758 | int result; | |
2759 | PyObject * obj0 = 0 ; | |
2760 | char *kwnames[] = { | |
2761 | (char *) "self", NULL | |
2762 | }; | |
2763 | ||
2764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
2765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2766 | { | |
2767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2768 | result = (int)((wxRect const *)arg1)->GetX(); | |
2769 | ||
2770 | wxPyEndAllowThreads(__tstate); | |
2771 | if (PyErr_Occurred()) SWIG_fail; | |
2772 | } | |
2773 | resultobj = PyInt_FromLong((long)result); | |
2774 | return resultobj; | |
2775 | fail: | |
2776 | return NULL; | |
2777 | } | |
2778 | ||
2779 | ||
2780 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2781 | PyObject *resultobj; | |
2782 | wxRect *arg1 = (wxRect *) 0 ; | |
2783 | int arg2 ; | |
2784 | PyObject * obj0 = 0 ; | |
2785 | char *kwnames[] = { | |
2786 | (char *) "self",(char *) "x", NULL | |
2787 | }; | |
2788 | ||
2789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetX",kwnames,&obj0,&arg2)) goto fail; | |
2790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2791 | { | |
2792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2793 | (arg1)->SetX(arg2); | |
2794 | ||
2795 | wxPyEndAllowThreads(__tstate); | |
2796 | if (PyErr_Occurred()) SWIG_fail; | |
2797 | } | |
2798 | Py_INCREF(Py_None); resultobj = Py_None; | |
2799 | return resultobj; | |
2800 | fail: | |
2801 | return NULL; | |
2802 | } | |
2803 | ||
2804 | ||
2805 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2806 | PyObject *resultobj; | |
2807 | wxRect *arg1 = (wxRect *) 0 ; | |
2808 | int result; | |
2809 | PyObject * obj0 = 0 ; | |
2810 | char *kwnames[] = { | |
2811 | (char *) "self", NULL | |
2812 | }; | |
2813 | ||
2814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
2815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2816 | { | |
2817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2818 | result = (int)(arg1)->GetY(); | |
2819 | ||
2820 | wxPyEndAllowThreads(__tstate); | |
2821 | if (PyErr_Occurred()) SWIG_fail; | |
2822 | } | |
2823 | resultobj = PyInt_FromLong((long)result); | |
2824 | return resultobj; | |
2825 | fail: | |
2826 | return NULL; | |
2827 | } | |
2828 | ||
2829 | ||
2830 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2831 | PyObject *resultobj; | |
2832 | wxRect *arg1 = (wxRect *) 0 ; | |
2833 | int arg2 ; | |
2834 | PyObject * obj0 = 0 ; | |
2835 | char *kwnames[] = { | |
2836 | (char *) "self",(char *) "y", NULL | |
2837 | }; | |
2838 | ||
2839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetY",kwnames,&obj0,&arg2)) goto fail; | |
2840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2841 | { | |
2842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2843 | (arg1)->SetY(arg2); | |
2844 | ||
2845 | wxPyEndAllowThreads(__tstate); | |
2846 | if (PyErr_Occurred()) SWIG_fail; | |
2847 | } | |
2848 | Py_INCREF(Py_None); resultobj = Py_None; | |
2849 | return resultobj; | |
2850 | fail: | |
2851 | return NULL; | |
2852 | } | |
2853 | ||
2854 | ||
2855 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2856 | PyObject *resultobj; | |
2857 | wxRect *arg1 = (wxRect *) 0 ; | |
2858 | int result; | |
2859 | PyObject * obj0 = 0 ; | |
2860 | char *kwnames[] = { | |
2861 | (char *) "self", NULL | |
2862 | }; | |
2863 | ||
2864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
2865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2866 | { | |
2867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2868 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
2869 | ||
2870 | wxPyEndAllowThreads(__tstate); | |
2871 | if (PyErr_Occurred()) SWIG_fail; | |
2872 | } | |
2873 | resultobj = PyInt_FromLong((long)result); | |
2874 | return resultobj; | |
2875 | fail: | |
2876 | return NULL; | |
2877 | } | |
2878 | ||
2879 | ||
2880 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2881 | PyObject *resultobj; | |
2882 | wxRect *arg1 = (wxRect *) 0 ; | |
2883 | int arg2 ; | |
2884 | PyObject * obj0 = 0 ; | |
2885 | char *kwnames[] = { | |
2886 | (char *) "self",(char *) "w", NULL | |
2887 | }; | |
2888 | ||
2889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
2890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2891 | { | |
2892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2893 | (arg1)->SetWidth(arg2); | |
2894 | ||
2895 | wxPyEndAllowThreads(__tstate); | |
2896 | if (PyErr_Occurred()) SWIG_fail; | |
2897 | } | |
2898 | Py_INCREF(Py_None); resultobj = Py_None; | |
2899 | return resultobj; | |
2900 | fail: | |
2901 | return NULL; | |
2902 | } | |
2903 | ||
2904 | ||
2905 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2906 | PyObject *resultobj; | |
2907 | wxRect *arg1 = (wxRect *) 0 ; | |
2908 | int result; | |
2909 | PyObject * obj0 = 0 ; | |
2910 | char *kwnames[] = { | |
2911 | (char *) "self", NULL | |
2912 | }; | |
2913 | ||
2914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
2915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2916 | { | |
2917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2918 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
2919 | ||
2920 | wxPyEndAllowThreads(__tstate); | |
2921 | if (PyErr_Occurred()) SWIG_fail; | |
2922 | } | |
2923 | resultobj = PyInt_FromLong((long)result); | |
2924 | return resultobj; | |
2925 | fail: | |
2926 | return NULL; | |
2927 | } | |
2928 | ||
2929 | ||
2930 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2931 | PyObject *resultobj; | |
2932 | wxRect *arg1 = (wxRect *) 0 ; | |
2933 | int arg2 ; | |
2934 | PyObject * obj0 = 0 ; | |
2935 | char *kwnames[] = { | |
2936 | (char *) "self",(char *) "h", NULL | |
2937 | }; | |
2938 | ||
2939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
2940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2941 | { | |
2942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2943 | (arg1)->SetHeight(arg2); | |
2944 | ||
2945 | wxPyEndAllowThreads(__tstate); | |
2946 | if (PyErr_Occurred()) SWIG_fail; | |
2947 | } | |
2948 | Py_INCREF(Py_None); resultobj = Py_None; | |
2949 | return resultobj; | |
2950 | fail: | |
2951 | return NULL; | |
2952 | } | |
2953 | ||
2954 | ||
2955 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2956 | PyObject *resultobj; | |
2957 | wxRect *arg1 = (wxRect *) 0 ; | |
2958 | wxPoint result; | |
2959 | PyObject * obj0 = 0 ; | |
2960 | char *kwnames[] = { | |
2961 | (char *) "self", NULL | |
2962 | }; | |
2963 | ||
2964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
2965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2966 | { | |
2967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2968 | result = ((wxRect const *)arg1)->GetPosition(); | |
2969 | ||
2970 | wxPyEndAllowThreads(__tstate); | |
2971 | if (PyErr_Occurred()) SWIG_fail; | |
2972 | } | |
2973 | { | |
2974 | wxPoint * resultptr; | |
2975 | resultptr = new wxPoint((wxPoint &) result); | |
2976 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2977 | } | |
2978 | return resultobj; | |
2979 | fail: | |
2980 | return NULL; | |
2981 | } | |
2982 | ||
2983 | ||
2984 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2985 | PyObject *resultobj; | |
2986 | wxRect *arg1 = (wxRect *) 0 ; | |
2987 | wxPoint *arg2 = 0 ; | |
2988 | wxPoint temp2 ; | |
2989 | PyObject * obj0 = 0 ; | |
2990 | PyObject * obj1 = 0 ; | |
2991 | char *kwnames[] = { | |
2992 | (char *) "self",(char *) "p", NULL | |
2993 | }; | |
2994 | ||
2995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2997 | { | |
2998 | arg2 = &temp2; | |
2999 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3000 | } | |
3001 | { | |
3002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3003 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3004 | ||
3005 | wxPyEndAllowThreads(__tstate); | |
3006 | if (PyErr_Occurred()) SWIG_fail; | |
3007 | } | |
3008 | Py_INCREF(Py_None); resultobj = Py_None; | |
3009 | return resultobj; | |
3010 | fail: | |
3011 | return NULL; | |
3012 | } | |
3013 | ||
3014 | ||
3015 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3016 | PyObject *resultobj; | |
3017 | wxRect *arg1 = (wxRect *) 0 ; | |
3018 | wxSize result; | |
3019 | PyObject * obj0 = 0 ; | |
3020 | char *kwnames[] = { | |
3021 | (char *) "self", NULL | |
3022 | }; | |
3023 | ||
3024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
3025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3026 | { | |
3027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3028 | result = ((wxRect const *)arg1)->GetSize(); | |
3029 | ||
3030 | wxPyEndAllowThreads(__tstate); | |
3031 | if (PyErr_Occurred()) SWIG_fail; | |
3032 | } | |
3033 | { | |
3034 | wxSize * resultptr; | |
3035 | resultptr = new wxSize((wxSize &) result); | |
3036 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3037 | } | |
3038 | return resultobj; | |
3039 | fail: | |
3040 | return NULL; | |
3041 | } | |
3042 | ||
3043 | ||
3044 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3045 | PyObject *resultobj; | |
3046 | wxRect *arg1 = (wxRect *) 0 ; | |
3047 | wxSize *arg2 = 0 ; | |
3048 | wxSize temp2 ; | |
3049 | PyObject * obj0 = 0 ; | |
3050 | PyObject * obj1 = 0 ; | |
3051 | char *kwnames[] = { | |
3052 | (char *) "self",(char *) "s", NULL | |
3053 | }; | |
3054 | ||
3055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3057 | { | |
3058 | arg2 = &temp2; | |
3059 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3060 | } | |
3061 | { | |
3062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3063 | (arg1)->SetSize((wxSize const &)*arg2); | |
3064 | ||
3065 | wxPyEndAllowThreads(__tstate); | |
3066 | if (PyErr_Occurred()) SWIG_fail; | |
3067 | } | |
3068 | Py_INCREF(Py_None); resultobj = Py_None; | |
3069 | return resultobj; | |
3070 | fail: | |
3071 | return NULL; | |
3072 | } | |
3073 | ||
3074 | ||
3075 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3076 | PyObject *resultobj; | |
3077 | wxRect *arg1 = (wxRect *) 0 ; | |
3078 | int result; | |
3079 | PyObject * obj0 = 0 ; | |
3080 | char *kwnames[] = { | |
3081 | (char *) "self", NULL | |
3082 | }; | |
3083 | ||
3084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
3085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3086 | { | |
3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3088 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3089 | ||
3090 | wxPyEndAllowThreads(__tstate); | |
3091 | if (PyErr_Occurred()) SWIG_fail; | |
3092 | } | |
3093 | resultobj = PyInt_FromLong((long)result); | |
3094 | return resultobj; | |
3095 | fail: | |
3096 | return NULL; | |
3097 | } | |
3098 | ||
3099 | ||
3100 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3101 | PyObject *resultobj; | |
3102 | wxRect *arg1 = (wxRect *) 0 ; | |
3103 | int result; | |
3104 | PyObject * obj0 = 0 ; | |
3105 | char *kwnames[] = { | |
3106 | (char *) "self", NULL | |
3107 | }; | |
3108 | ||
3109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
3110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3111 | { | |
3112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3113 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3114 | ||
3115 | wxPyEndAllowThreads(__tstate); | |
3116 | if (PyErr_Occurred()) SWIG_fail; | |
3117 | } | |
3118 | resultobj = PyInt_FromLong((long)result); | |
3119 | return resultobj; | |
3120 | fail: | |
3121 | return NULL; | |
3122 | } | |
3123 | ||
3124 | ||
3125 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3126 | PyObject *resultobj; | |
3127 | wxRect *arg1 = (wxRect *) 0 ; | |
3128 | int result; | |
3129 | PyObject * obj0 = 0 ; | |
3130 | char *kwnames[] = { | |
3131 | (char *) "self", NULL | |
3132 | }; | |
3133 | ||
3134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
3135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3136 | { | |
3137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3138 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3139 | ||
3140 | wxPyEndAllowThreads(__tstate); | |
3141 | if (PyErr_Occurred()) SWIG_fail; | |
3142 | } | |
3143 | resultobj = PyInt_FromLong((long)result); | |
3144 | return resultobj; | |
3145 | fail: | |
3146 | return NULL; | |
3147 | } | |
3148 | ||
3149 | ||
3150 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3151 | PyObject *resultobj; | |
3152 | wxRect *arg1 = (wxRect *) 0 ; | |
3153 | int result; | |
3154 | PyObject * obj0 = 0 ; | |
3155 | char *kwnames[] = { | |
3156 | (char *) "self", NULL | |
3157 | }; | |
3158 | ||
3159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
3160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3161 | { | |
3162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3163 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3164 | ||
3165 | wxPyEndAllowThreads(__tstate); | |
3166 | if (PyErr_Occurred()) SWIG_fail; | |
3167 | } | |
3168 | resultobj = PyInt_FromLong((long)result); | |
3169 | return resultobj; | |
3170 | fail: | |
3171 | return NULL; | |
3172 | } | |
3173 | ||
3174 | ||
3175 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3176 | PyObject *resultobj; | |
3177 | wxRect *arg1 = (wxRect *) 0 ; | |
3178 | int arg2 ; | |
3179 | PyObject * obj0 = 0 ; | |
3180 | char *kwnames[] = { | |
3181 | (char *) "self",(char *) "left", NULL | |
3182 | }; | |
3183 | ||
3184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetLeft",kwnames,&obj0,&arg2)) goto fail; | |
3185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3186 | { | |
3187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3188 | (arg1)->SetLeft(arg2); | |
3189 | ||
3190 | wxPyEndAllowThreads(__tstate); | |
3191 | if (PyErr_Occurred()) SWIG_fail; | |
3192 | } | |
3193 | Py_INCREF(Py_None); resultobj = Py_None; | |
3194 | return resultobj; | |
3195 | fail: | |
3196 | return NULL; | |
3197 | } | |
3198 | ||
3199 | ||
3200 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3201 | PyObject *resultobj; | |
3202 | wxRect *arg1 = (wxRect *) 0 ; | |
3203 | int arg2 ; | |
3204 | PyObject * obj0 = 0 ; | |
3205 | char *kwnames[] = { | |
3206 | (char *) "self",(char *) "right", NULL | |
3207 | }; | |
3208 | ||
3209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetRight",kwnames,&obj0,&arg2)) goto fail; | |
3210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3211 | { | |
3212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3213 | (arg1)->SetRight(arg2); | |
3214 | ||
3215 | wxPyEndAllowThreads(__tstate); | |
3216 | if (PyErr_Occurred()) SWIG_fail; | |
3217 | } | |
3218 | Py_INCREF(Py_None); resultobj = Py_None; | |
3219 | return resultobj; | |
3220 | fail: | |
3221 | return NULL; | |
3222 | } | |
3223 | ||
3224 | ||
3225 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3226 | PyObject *resultobj; | |
3227 | wxRect *arg1 = (wxRect *) 0 ; | |
3228 | int arg2 ; | |
3229 | PyObject * obj0 = 0 ; | |
3230 | char *kwnames[] = { | |
3231 | (char *) "self",(char *) "top", NULL | |
3232 | }; | |
3233 | ||
3234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetTop",kwnames,&obj0,&arg2)) goto fail; | |
3235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3236 | { | |
3237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3238 | (arg1)->SetTop(arg2); | |
3239 | ||
3240 | wxPyEndAllowThreads(__tstate); | |
3241 | if (PyErr_Occurred()) SWIG_fail; | |
3242 | } | |
3243 | Py_INCREF(Py_None); resultobj = Py_None; | |
3244 | return resultobj; | |
3245 | fail: | |
3246 | return NULL; | |
3247 | } | |
3248 | ||
3249 | ||
3250 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3251 | PyObject *resultobj; | |
3252 | wxRect *arg1 = (wxRect *) 0 ; | |
3253 | int arg2 ; | |
3254 | PyObject * obj0 = 0 ; | |
3255 | char *kwnames[] = { | |
3256 | (char *) "self",(char *) "bottom", NULL | |
3257 | }; | |
3258 | ||
3259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetBottom",kwnames,&obj0,&arg2)) goto fail; | |
3260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3261 | { | |
3262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3263 | (arg1)->SetBottom(arg2); | |
3264 | ||
3265 | wxPyEndAllowThreads(__tstate); | |
3266 | if (PyErr_Occurred()) SWIG_fail; | |
3267 | } | |
3268 | Py_INCREF(Py_None); resultobj = Py_None; | |
3269 | return resultobj; | |
3270 | fail: | |
3271 | return NULL; | |
3272 | } | |
3273 | ||
3274 | ||
3275 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3276 | PyObject *resultobj; | |
3277 | wxRect *arg1 = (wxRect *) 0 ; | |
3278 | wxCoord arg2 ; | |
3279 | wxCoord arg3 ; | |
3280 | wxRect *result; | |
3281 | PyObject * obj0 = 0 ; | |
3282 | char *kwnames[] = { | |
3283 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3284 | }; | |
3285 | ||
3286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_Inflate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3288 | { | |
3289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3290 | { | |
3291 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
3292 | result = (wxRect *) &_result_ref; | |
3293 | } | |
3294 | ||
3295 | wxPyEndAllowThreads(__tstate); | |
3296 | if (PyErr_Occurred()) SWIG_fail; | |
3297 | } | |
3298 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3299 | return resultobj; | |
3300 | fail: | |
3301 | return NULL; | |
3302 | } | |
3303 | ||
3304 | ||
3305 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3306 | PyObject *resultobj; | |
3307 | wxRect *arg1 = (wxRect *) 0 ; | |
3308 | wxCoord arg2 ; | |
3309 | wxCoord arg3 ; | |
3310 | wxRect *result; | |
3311 | PyObject * obj0 = 0 ; | |
3312 | char *kwnames[] = { | |
3313 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3314 | }; | |
3315 | ||
3316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_Deflate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3318 | { | |
3319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3320 | { | |
3321 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
3322 | result = (wxRect *) &_result_ref; | |
3323 | } | |
3324 | ||
3325 | wxPyEndAllowThreads(__tstate); | |
3326 | if (PyErr_Occurred()) SWIG_fail; | |
3327 | } | |
3328 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3329 | return resultobj; | |
3330 | fail: | |
3331 | return NULL; | |
3332 | } | |
3333 | ||
3334 | ||
3335 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3336 | PyObject *resultobj; | |
3337 | wxRect *arg1 = (wxRect *) 0 ; | |
3338 | wxCoord arg2 ; | |
3339 | wxCoord arg3 ; | |
3340 | PyObject * obj0 = 0 ; | |
3341 | char *kwnames[] = { | |
3342 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3343 | }; | |
3344 | ||
3345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_OffsetXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3347 | { | |
3348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3349 | (arg1)->Offset(arg2,arg3); | |
3350 | ||
3351 | wxPyEndAllowThreads(__tstate); | |
3352 | if (PyErr_Occurred()) SWIG_fail; | |
3353 | } | |
3354 | Py_INCREF(Py_None); resultobj = Py_None; | |
3355 | return resultobj; | |
3356 | fail: | |
3357 | return NULL; | |
3358 | } | |
3359 | ||
3360 | ||
3361 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3362 | PyObject *resultobj; | |
3363 | wxRect *arg1 = (wxRect *) 0 ; | |
3364 | wxPoint *arg2 = 0 ; | |
3365 | wxPoint temp2 ; | |
3366 | PyObject * obj0 = 0 ; | |
3367 | PyObject * obj1 = 0 ; | |
3368 | char *kwnames[] = { | |
3369 | (char *) "self",(char *) "pt", NULL | |
3370 | }; | |
3371 | ||
3372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
3373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3374 | { | |
3375 | arg2 = &temp2; | |
3376 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3377 | } | |
3378 | { | |
3379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3380 | (arg1)->Offset((wxPoint const &)*arg2); | |
3381 | ||
3382 | wxPyEndAllowThreads(__tstate); | |
3383 | if (PyErr_Occurred()) SWIG_fail; | |
3384 | } | |
3385 | Py_INCREF(Py_None); resultobj = Py_None; | |
3386 | return resultobj; | |
3387 | fail: | |
3388 | return NULL; | |
3389 | } | |
3390 | ||
3391 | ||
3392 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3393 | PyObject *resultobj; | |
3394 | wxRect *arg1 = (wxRect *) 0 ; | |
3395 | wxRect *arg2 = 0 ; | |
3396 | wxRect *result; | |
3397 | wxRect temp2 ; | |
3398 | PyObject * obj0 = 0 ; | |
3399 | PyObject * obj1 = 0 ; | |
3400 | char *kwnames[] = { | |
3401 | (char *) "self",(char *) "rect", NULL | |
3402 | }; | |
3403 | ||
3404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
3405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3406 | { | |
3407 | arg2 = &temp2; | |
3408 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3409 | } | |
3410 | { | |
3411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3412 | { | |
3413 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
3414 | result = (wxRect *) &_result_ref; | |
3415 | } | |
3416 | ||
3417 | wxPyEndAllowThreads(__tstate); | |
3418 | if (PyErr_Occurred()) SWIG_fail; | |
3419 | } | |
3420 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3421 | return resultobj; | |
3422 | fail: | |
3423 | return NULL; | |
3424 | } | |
3425 | ||
3426 | ||
3427 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3428 | PyObject *resultobj; | |
3429 | wxRect *arg1 = (wxRect *) 0 ; | |
3430 | wxRect *arg2 = 0 ; | |
3431 | wxRect result; | |
3432 | wxRect temp2 ; | |
3433 | PyObject * obj0 = 0 ; | |
3434 | PyObject * obj1 = 0 ; | |
3435 | char *kwnames[] = { | |
3436 | (char *) "self",(char *) "rect", NULL | |
3437 | }; | |
3438 | ||
3439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
3440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3441 | { | |
3442 | arg2 = &temp2; | |
3443 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3444 | } | |
3445 | { | |
3446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3447 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
3448 | ||
3449 | wxPyEndAllowThreads(__tstate); | |
3450 | if (PyErr_Occurred()) SWIG_fail; | |
3451 | } | |
3452 | { | |
3453 | wxRect * resultptr; | |
3454 | resultptr = new wxRect((wxRect &) result); | |
3455 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3456 | } | |
3457 | return resultobj; | |
3458 | fail: | |
3459 | return NULL; | |
3460 | } | |
3461 | ||
3462 | ||
3463 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3464 | PyObject *resultobj; | |
3465 | wxRect *arg1 = (wxRect *) 0 ; | |
3466 | wxRect *arg2 = 0 ; | |
3467 | wxRect *result; | |
3468 | wxRect temp2 ; | |
3469 | PyObject * obj0 = 0 ; | |
3470 | PyObject * obj1 = 0 ; | |
3471 | char *kwnames[] = { | |
3472 | (char *) "self",(char *) "rect", NULL | |
3473 | }; | |
3474 | ||
3475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3477 | { | |
3478 | arg2 = &temp2; | |
3479 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3480 | } | |
3481 | { | |
3482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3483 | { | |
3484 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
3485 | result = (wxRect *) &_result_ref; | |
3486 | } | |
3487 | ||
3488 | wxPyEndAllowThreads(__tstate); | |
3489 | if (PyErr_Occurred()) SWIG_fail; | |
3490 | } | |
3491 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3492 | return resultobj; | |
3493 | fail: | |
3494 | return NULL; | |
3495 | } | |
3496 | ||
3497 | ||
3498 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3499 | PyObject *resultobj; | |
3500 | wxRect *arg1 = (wxRect *) 0 ; | |
3501 | wxRect *arg2 = 0 ; | |
3502 | bool result; | |
3503 | wxRect temp2 ; | |
3504 | PyObject * obj0 = 0 ; | |
3505 | PyObject * obj1 = 0 ; | |
3506 | char *kwnames[] = { | |
3507 | (char *) "self",(char *) "rect", NULL | |
3508 | }; | |
3509 | ||
3510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3512 | { | |
3513 | arg2 = &temp2; | |
3514 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3515 | } | |
3516 | { | |
3517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3518 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
3519 | ||
3520 | wxPyEndAllowThreads(__tstate); | |
3521 | if (PyErr_Occurred()) SWIG_fail; | |
3522 | } | |
3523 | resultobj = PyInt_FromLong((long)result); | |
3524 | return resultobj; | |
3525 | fail: | |
3526 | return NULL; | |
3527 | } | |
3528 | ||
3529 | ||
3530 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3531 | PyObject *resultobj; | |
3532 | wxRect *arg1 = (wxRect *) 0 ; | |
3533 | wxRect *arg2 = 0 ; | |
3534 | bool result; | |
3535 | wxRect temp2 ; | |
3536 | PyObject * obj0 = 0 ; | |
3537 | PyObject * obj1 = 0 ; | |
3538 | char *kwnames[] = { | |
3539 | (char *) "self",(char *) "rect", NULL | |
3540 | }; | |
3541 | ||
3542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3544 | { | |
3545 | arg2 = &temp2; | |
3546 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3547 | } | |
3548 | { | |
3549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3550 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
3551 | ||
3552 | wxPyEndAllowThreads(__tstate); | |
3553 | if (PyErr_Occurred()) SWIG_fail; | |
3554 | } | |
3555 | resultobj = PyInt_FromLong((long)result); | |
3556 | return resultobj; | |
3557 | fail: | |
3558 | return NULL; | |
3559 | } | |
3560 | ||
3561 | ||
3562 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3563 | PyObject *resultobj; | |
3564 | wxRect *arg1 = (wxRect *) 0 ; | |
3565 | int arg2 ; | |
3566 | int arg3 ; | |
3567 | bool result; | |
3568 | PyObject * obj0 = 0 ; | |
3569 | char *kwnames[] = { | |
3570 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3571 | }; | |
3572 | ||
3573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_InsideXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3575 | { | |
3576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3577 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
3578 | ||
3579 | wxPyEndAllowThreads(__tstate); | |
3580 | if (PyErr_Occurred()) SWIG_fail; | |
3581 | } | |
3582 | resultobj = PyInt_FromLong((long)result); | |
3583 | return resultobj; | |
3584 | fail: | |
3585 | return NULL; | |
3586 | } | |
3587 | ||
3588 | ||
3589 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3590 | PyObject *resultobj; | |
3591 | wxRect *arg1 = (wxRect *) 0 ; | |
3592 | wxPoint *arg2 = 0 ; | |
3593 | bool result; | |
3594 | wxPoint temp2 ; | |
3595 | PyObject * obj0 = 0 ; | |
3596 | PyObject * obj1 = 0 ; | |
3597 | char *kwnames[] = { | |
3598 | (char *) "self",(char *) "pt", NULL | |
3599 | }; | |
3600 | ||
3601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
3602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3603 | { | |
3604 | arg2 = &temp2; | |
3605 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3606 | } | |
3607 | { | |
3608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3609 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
3610 | ||
3611 | wxPyEndAllowThreads(__tstate); | |
3612 | if (PyErr_Occurred()) SWIG_fail; | |
3613 | } | |
3614 | resultobj = PyInt_FromLong((long)result); | |
3615 | return resultobj; | |
3616 | fail: | |
3617 | return NULL; | |
3618 | } | |
3619 | ||
3620 | ||
3621 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3622 | PyObject *resultobj; | |
3623 | wxRect *arg1 = (wxRect *) 0 ; | |
3624 | wxRect *arg2 = 0 ; | |
3625 | bool result; | |
3626 | wxRect temp2 ; | |
3627 | PyObject * obj0 = 0 ; | |
3628 | PyObject * obj1 = 0 ; | |
3629 | char *kwnames[] = { | |
3630 | (char *) "self",(char *) "rect", NULL | |
3631 | }; | |
3632 | ||
3633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
3634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3635 | { | |
3636 | arg2 = &temp2; | |
3637 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3638 | } | |
3639 | { | |
3640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3641 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
3642 | ||
3643 | wxPyEndAllowThreads(__tstate); | |
3644 | if (PyErr_Occurred()) SWIG_fail; | |
3645 | } | |
3646 | resultobj = PyInt_FromLong((long)result); | |
3647 | return resultobj; | |
3648 | fail: | |
3649 | return NULL; | |
3650 | } | |
3651 | ||
3652 | ||
3653 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3654 | PyObject *resultobj; | |
3655 | wxRect *arg1 = (wxRect *) 0 ; | |
3656 | int arg2 ; | |
3657 | PyObject * obj0 = 0 ; | |
3658 | char *kwnames[] = { | |
3659 | (char *) "self",(char *) "x", NULL | |
3660 | }; | |
3661 | ||
3662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_x_set",kwnames,&obj0,&arg2)) goto fail; | |
3663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3664 | if (arg1) (arg1)->x = arg2; | |
3665 | ||
3666 | Py_INCREF(Py_None); resultobj = Py_None; | |
3667 | return resultobj; | |
3668 | fail: | |
3669 | return NULL; | |
3670 | } | |
3671 | ||
3672 | ||
3673 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3674 | PyObject *resultobj; | |
3675 | wxRect *arg1 = (wxRect *) 0 ; | |
3676 | int result; | |
3677 | PyObject * obj0 = 0 ; | |
3678 | char *kwnames[] = { | |
3679 | (char *) "self", NULL | |
3680 | }; | |
3681 | ||
3682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
3683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3684 | result = (int) ((arg1)->x); | |
3685 | ||
3686 | resultobj = PyInt_FromLong((long)result); | |
3687 | return resultobj; | |
3688 | fail: | |
3689 | return NULL; | |
3690 | } | |
3691 | ||
3692 | ||
3693 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3694 | PyObject *resultobj; | |
3695 | wxRect *arg1 = (wxRect *) 0 ; | |
3696 | int arg2 ; | |
3697 | PyObject * obj0 = 0 ; | |
3698 | char *kwnames[] = { | |
3699 | (char *) "self",(char *) "y", NULL | |
3700 | }; | |
3701 | ||
3702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_y_set",kwnames,&obj0,&arg2)) goto fail; | |
3703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3704 | if (arg1) (arg1)->y = arg2; | |
3705 | ||
3706 | Py_INCREF(Py_None); resultobj = Py_None; | |
3707 | return resultobj; | |
3708 | fail: | |
3709 | return NULL; | |
3710 | } | |
3711 | ||
3712 | ||
3713 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3714 | PyObject *resultobj; | |
3715 | wxRect *arg1 = (wxRect *) 0 ; | |
3716 | int result; | |
3717 | PyObject * obj0 = 0 ; | |
3718 | char *kwnames[] = { | |
3719 | (char *) "self", NULL | |
3720 | }; | |
3721 | ||
3722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
3723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3724 | result = (int) ((arg1)->y); | |
3725 | ||
3726 | resultobj = PyInt_FromLong((long)result); | |
3727 | return resultobj; | |
3728 | fail: | |
3729 | return NULL; | |
3730 | } | |
3731 | ||
3732 | ||
3733 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3734 | PyObject *resultobj; | |
3735 | wxRect *arg1 = (wxRect *) 0 ; | |
3736 | int arg2 ; | |
3737 | PyObject * obj0 = 0 ; | |
3738 | char *kwnames[] = { | |
3739 | (char *) "self",(char *) "width", NULL | |
3740 | }; | |
3741 | ||
3742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_width_set",kwnames,&obj0,&arg2)) goto fail; | |
3743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3744 | if (arg1) (arg1)->width = arg2; | |
3745 | ||
3746 | Py_INCREF(Py_None); resultobj = Py_None; | |
3747 | return resultobj; | |
3748 | fail: | |
3749 | return NULL; | |
3750 | } | |
3751 | ||
3752 | ||
3753 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3754 | PyObject *resultobj; | |
3755 | wxRect *arg1 = (wxRect *) 0 ; | |
3756 | int result; | |
3757 | PyObject * obj0 = 0 ; | |
3758 | char *kwnames[] = { | |
3759 | (char *) "self", NULL | |
3760 | }; | |
3761 | ||
3762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
3763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3764 | result = (int) ((arg1)->width); | |
3765 | ||
3766 | resultobj = PyInt_FromLong((long)result); | |
3767 | return resultobj; | |
3768 | fail: | |
3769 | return NULL; | |
3770 | } | |
3771 | ||
3772 | ||
3773 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3774 | PyObject *resultobj; | |
3775 | wxRect *arg1 = (wxRect *) 0 ; | |
3776 | int arg2 ; | |
3777 | PyObject * obj0 = 0 ; | |
3778 | char *kwnames[] = { | |
3779 | (char *) "self",(char *) "height", NULL | |
3780 | }; | |
3781 | ||
3782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_height_set",kwnames,&obj0,&arg2)) goto fail; | |
3783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3784 | if (arg1) (arg1)->height = arg2; | |
3785 | ||
3786 | Py_INCREF(Py_None); resultobj = Py_None; | |
3787 | return resultobj; | |
3788 | fail: | |
3789 | return NULL; | |
3790 | } | |
3791 | ||
3792 | ||
3793 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3794 | PyObject *resultobj; | |
3795 | wxRect *arg1 = (wxRect *) 0 ; | |
3796 | int result; | |
3797 | PyObject * obj0 = 0 ; | |
3798 | char *kwnames[] = { | |
3799 | (char *) "self", NULL | |
3800 | }; | |
3801 | ||
3802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
3803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3804 | result = (int) ((arg1)->height); | |
3805 | ||
3806 | resultobj = PyInt_FromLong((long)result); | |
3807 | return resultobj; | |
3808 | fail: | |
3809 | return NULL; | |
3810 | } | |
3811 | ||
3812 | ||
3813 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3814 | PyObject *resultobj; | |
3815 | wxRect *arg1 = (wxRect *) 0 ; | |
3816 | int arg2 = (int) 0 ; | |
3817 | int arg3 = (int) 0 ; | |
3818 | int arg4 = (int) 0 ; | |
3819 | int arg5 = (int) 0 ; | |
3820 | PyObject * obj0 = 0 ; | |
3821 | char *kwnames[] = { | |
3822 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3823 | }; | |
3824 | ||
3825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiii:Rect_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
3826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3827 | { | |
3828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3829 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
3830 | ||
3831 | wxPyEndAllowThreads(__tstate); | |
3832 | if (PyErr_Occurred()) SWIG_fail; | |
3833 | } | |
3834 | Py_INCREF(Py_None); resultobj = Py_None; | |
3835 | return resultobj; | |
3836 | fail: | |
3837 | return NULL; | |
3838 | } | |
3839 | ||
3840 | ||
3841 | static PyObject *_wrap_Rect_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3842 | PyObject *resultobj; | |
3843 | wxRect *arg1 = (wxRect *) 0 ; | |
3844 | PyObject *result; | |
3845 | PyObject * obj0 = 0 ; | |
3846 | char *kwnames[] = { | |
3847 | (char *) "self", NULL | |
3848 | }; | |
3849 | ||
3850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_asTuple",kwnames,&obj0)) goto fail; | |
3851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3852 | { | |
3853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3854 | result = (PyObject *)wxRect_asTuple(arg1); | |
3855 | ||
3856 | wxPyEndAllowThreads(__tstate); | |
3857 | if (PyErr_Occurred()) SWIG_fail; | |
3858 | } | |
3859 | resultobj = result; | |
3860 | return resultobj; | |
3861 | fail: | |
3862 | return NULL; | |
3863 | } | |
3864 | ||
3865 | ||
3866 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
3867 | PyObject *obj; | |
3868 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3869 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
3870 | Py_INCREF(obj); | |
3871 | return Py_BuildValue((char *)""); | |
3872 | } | |
3873 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3874 | PyObject *resultobj; | |
3875 | wxRect *arg1 = (wxRect *) 0 ; | |
3876 | wxRect *arg2 = (wxRect *) 0 ; | |
3877 | PyObject *result; | |
3878 | PyObject * obj0 = 0 ; | |
3879 | PyObject * obj1 = 0 ; | |
3880 | char *kwnames[] = { | |
3881 | (char *) "r1",(char *) "r2", NULL | |
3882 | }; | |
3883 | ||
3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
3885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3886 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3887 | { | |
3888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3889 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
3890 | ||
3891 | wxPyEndAllowThreads(__tstate); | |
3892 | if (PyErr_Occurred()) SWIG_fail; | |
3893 | } | |
3894 | resultobj = result; | |
3895 | return resultobj; | |
3896 | fail: | |
3897 | return NULL; | |
3898 | } | |
3899 | ||
3900 | ||
3901 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3902 | PyObject *resultobj; | |
3903 | double arg1 = (double) 0.0 ; | |
3904 | double arg2 = (double) 0.0 ; | |
3905 | wxPoint2D *result; | |
3906 | char *kwnames[] = { | |
3907 | (char *) "x",(char *) "y", NULL | |
3908 | }; | |
3909 | ||
3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|dd:new_Point2D",kwnames,&arg1,&arg2)) goto fail; | |
3911 | { | |
3912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3913 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
3914 | ||
3915 | wxPyEndAllowThreads(__tstate); | |
3916 | if (PyErr_Occurred()) SWIG_fail; | |
3917 | } | |
3918 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
3919 | return resultobj; | |
3920 | fail: | |
3921 | return NULL; | |
3922 | } | |
3923 | ||
3924 | ||
3925 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3926 | PyObject *resultobj; | |
3927 | wxPoint2D *arg1 = 0 ; | |
3928 | wxPoint2D *result; | |
3929 | wxPoint2D temp1 ; | |
3930 | PyObject * obj0 = 0 ; | |
3931 | char *kwnames[] = { | |
3932 | (char *) "pt", NULL | |
3933 | }; | |
3934 | ||
3935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
3936 | { | |
3937 | arg1 = &temp1; | |
3938 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
3939 | } | |
3940 | { | |
3941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3942 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
3943 | ||
3944 | wxPyEndAllowThreads(__tstate); | |
3945 | if (PyErr_Occurred()) SWIG_fail; | |
3946 | } | |
3947 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
3948 | return resultobj; | |
3949 | fail: | |
3950 | return NULL; | |
3951 | } | |
3952 | ||
3953 | ||
3954 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3955 | PyObject *resultobj; | |
3956 | wxPoint *arg1 = 0 ; | |
3957 | wxPoint2D *result; | |
3958 | wxPoint temp1 ; | |
3959 | PyObject * obj0 = 0 ; | |
3960 | char *kwnames[] = { | |
3961 | (char *) "pt", NULL | |
3962 | }; | |
3963 | ||
3964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
3965 | { | |
3966 | arg1 = &temp1; | |
3967 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3968 | } | |
3969 | { | |
3970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3971 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
3972 | ||
3973 | wxPyEndAllowThreads(__tstate); | |
3974 | if (PyErr_Occurred()) SWIG_fail; | |
3975 | } | |
3976 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
3977 | return resultobj; | |
3978 | fail: | |
3979 | return NULL; | |
3980 | } | |
3981 | ||
3982 | ||
3983 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3984 | PyObject *resultobj; | |
3985 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
3986 | int *arg2 = (int *) 0 ; | |
3987 | int *arg3 = (int *) 0 ; | |
3988 | int temp2 ; | |
3989 | int temp3 ; | |
3990 | PyObject * obj0 = 0 ; | |
3991 | char *kwnames[] = { | |
3992 | (char *) "self", NULL | |
3993 | }; | |
3994 | ||
3995 | arg2 = &temp2; | |
3996 | arg3 = &temp3; | |
3997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
3998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3999 | { | |
4000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4001 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4002 | ||
4003 | wxPyEndAllowThreads(__tstate); | |
4004 | if (PyErr_Occurred()) SWIG_fail; | |
4005 | } | |
4006 | Py_INCREF(Py_None); resultobj = Py_None; | |
4007 | { | |
4008 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4009 | resultobj = t_output_helper(resultobj,o); | |
4010 | } | |
4011 | { | |
4012 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4013 | resultobj = t_output_helper(resultobj,o); | |
4014 | } | |
4015 | return resultobj; | |
4016 | fail: | |
4017 | return NULL; | |
4018 | } | |
4019 | ||
4020 | ||
4021 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4022 | PyObject *resultobj; | |
4023 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4024 | int *arg2 = (int *) 0 ; | |
4025 | int *arg3 = (int *) 0 ; | |
4026 | int temp2 ; | |
4027 | int temp3 ; | |
4028 | PyObject * obj0 = 0 ; | |
4029 | char *kwnames[] = { | |
4030 | (char *) "self", NULL | |
4031 | }; | |
4032 | ||
4033 | arg2 = &temp2; | |
4034 | arg3 = &temp3; | |
4035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
4036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4037 | { | |
4038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4039 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4040 | ||
4041 | wxPyEndAllowThreads(__tstate); | |
4042 | if (PyErr_Occurred()) SWIG_fail; | |
4043 | } | |
4044 | Py_INCREF(Py_None); resultobj = Py_None; | |
4045 | { | |
4046 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4047 | resultobj = t_output_helper(resultobj,o); | |
4048 | } | |
4049 | { | |
4050 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4051 | resultobj = t_output_helper(resultobj,o); | |
4052 | } | |
4053 | return resultobj; | |
4054 | fail: | |
4055 | return NULL; | |
4056 | } | |
4057 | ||
4058 | ||
4059 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4060 | PyObject *resultobj; | |
4061 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4062 | double result; | |
4063 | PyObject * obj0 = 0 ; | |
4064 | char *kwnames[] = { | |
4065 | (char *) "self", NULL | |
4066 | }; | |
4067 | ||
4068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
4069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4070 | { | |
4071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4072 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4073 | ||
4074 | wxPyEndAllowThreads(__tstate); | |
4075 | if (PyErr_Occurred()) SWIG_fail; | |
4076 | } | |
4077 | resultobj = PyFloat_FromDouble(result); | |
4078 | return resultobj; | |
4079 | fail: | |
4080 | return NULL; | |
4081 | } | |
4082 | ||
4083 | ||
4084 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4085 | PyObject *resultobj; | |
4086 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4087 | double result; | |
4088 | PyObject * obj0 = 0 ; | |
4089 | char *kwnames[] = { | |
4090 | (char *) "self", NULL | |
4091 | }; | |
4092 | ||
4093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
4094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4095 | { | |
4096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4097 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4098 | ||
4099 | wxPyEndAllowThreads(__tstate); | |
4100 | if (PyErr_Occurred()) SWIG_fail; | |
4101 | } | |
4102 | resultobj = PyFloat_FromDouble(result); | |
4103 | return resultobj; | |
4104 | fail: | |
4105 | return NULL; | |
4106 | } | |
4107 | ||
4108 | ||
4109 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4110 | PyObject *resultobj; | |
4111 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4112 | double arg2 ; | |
4113 | PyObject * obj0 = 0 ; | |
4114 | char *kwnames[] = { | |
4115 | (char *) "self",(char *) "length", NULL | |
4116 | }; | |
4117 | ||
4118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_SetVectorLength",kwnames,&obj0,&arg2)) goto fail; | |
4119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4120 | { | |
4121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4122 | (arg1)->SetVectorLength(arg2); | |
4123 | ||
4124 | wxPyEndAllowThreads(__tstate); | |
4125 | if (PyErr_Occurred()) SWIG_fail; | |
4126 | } | |
4127 | Py_INCREF(Py_None); resultobj = Py_None; | |
4128 | return resultobj; | |
4129 | fail: | |
4130 | return NULL; | |
4131 | } | |
4132 | ||
4133 | ||
4134 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4135 | PyObject *resultobj; | |
4136 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4137 | double arg2 ; | |
4138 | PyObject * obj0 = 0 ; | |
4139 | char *kwnames[] = { | |
4140 | (char *) "self",(char *) "degrees", NULL | |
4141 | }; | |
4142 | ||
4143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_SetVectorAngle",kwnames,&obj0,&arg2)) goto fail; | |
4144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4145 | { | |
4146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4147 | (arg1)->SetVectorAngle(arg2); | |
4148 | ||
4149 | wxPyEndAllowThreads(__tstate); | |
4150 | if (PyErr_Occurred()) SWIG_fail; | |
4151 | } | |
4152 | Py_INCREF(Py_None); resultobj = Py_None; | |
4153 | return resultobj; | |
4154 | fail: | |
4155 | return NULL; | |
4156 | } | |
4157 | ||
4158 | ||
4159 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4160 | PyObject *resultobj; | |
4161 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4162 | wxPoint2D *arg2 = 0 ; | |
4163 | double result; | |
4164 | wxPoint2D temp2 ; | |
4165 | PyObject * obj0 = 0 ; | |
4166 | PyObject * obj1 = 0 ; | |
4167 | char *kwnames[] = { | |
4168 | (char *) "self",(char *) "pt", NULL | |
4169 | }; | |
4170 | ||
4171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
4172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4173 | { | |
4174 | arg2 = &temp2; | |
4175 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4176 | } | |
4177 | { | |
4178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4179 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
4180 | ||
4181 | wxPyEndAllowThreads(__tstate); | |
4182 | if (PyErr_Occurred()) SWIG_fail; | |
4183 | } | |
4184 | resultobj = PyFloat_FromDouble(result); | |
4185 | return resultobj; | |
4186 | fail: | |
4187 | return NULL; | |
4188 | } | |
4189 | ||
4190 | ||
4191 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4192 | PyObject *resultobj; | |
4193 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4194 | wxPoint2D *arg2 = 0 ; | |
4195 | double result; | |
4196 | wxPoint2D temp2 ; | |
4197 | PyObject * obj0 = 0 ; | |
4198 | PyObject * obj1 = 0 ; | |
4199 | char *kwnames[] = { | |
4200 | (char *) "self",(char *) "pt", NULL | |
4201 | }; | |
4202 | ||
4203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
4204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4205 | { | |
4206 | arg2 = &temp2; | |
4207 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4208 | } | |
4209 | { | |
4210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4211 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
4212 | ||
4213 | wxPyEndAllowThreads(__tstate); | |
4214 | if (PyErr_Occurred()) SWIG_fail; | |
4215 | } | |
4216 | resultobj = PyFloat_FromDouble(result); | |
4217 | return resultobj; | |
4218 | fail: | |
4219 | return NULL; | |
4220 | } | |
4221 | ||
4222 | ||
4223 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4224 | PyObject *resultobj; | |
4225 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4226 | wxPoint2D *arg2 = 0 ; | |
4227 | double result; | |
4228 | wxPoint2D temp2 ; | |
4229 | PyObject * obj0 = 0 ; | |
4230 | PyObject * obj1 = 0 ; | |
4231 | char *kwnames[] = { | |
4232 | (char *) "self",(char *) "vec", NULL | |
4233 | }; | |
4234 | ||
4235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
4236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4237 | { | |
4238 | arg2 = &temp2; | |
4239 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4240 | } | |
4241 | { | |
4242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4243 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
4244 | ||
4245 | wxPyEndAllowThreads(__tstate); | |
4246 | if (PyErr_Occurred()) SWIG_fail; | |
4247 | } | |
4248 | resultobj = PyFloat_FromDouble(result); | |
4249 | return resultobj; | |
4250 | fail: | |
4251 | return NULL; | |
4252 | } | |
4253 | ||
4254 | ||
4255 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4256 | PyObject *resultobj; | |
4257 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4258 | wxPoint2D *arg2 = 0 ; | |
4259 | double result; | |
4260 | wxPoint2D temp2 ; | |
4261 | PyObject * obj0 = 0 ; | |
4262 | PyObject * obj1 = 0 ; | |
4263 | char *kwnames[] = { | |
4264 | (char *) "self",(char *) "vec", NULL | |
4265 | }; | |
4266 | ||
4267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
4268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4269 | { | |
4270 | arg2 = &temp2; | |
4271 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4272 | } | |
4273 | { | |
4274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4275 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
4276 | ||
4277 | wxPyEndAllowThreads(__tstate); | |
4278 | if (PyErr_Occurred()) SWIG_fail; | |
4279 | } | |
4280 | resultobj = PyFloat_FromDouble(result); | |
4281 | return resultobj; | |
4282 | fail: | |
4283 | return NULL; | |
4284 | } | |
4285 | ||
4286 | ||
4287 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4288 | PyObject *resultobj; | |
4289 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4290 | wxPoint2D result; | |
4291 | PyObject * obj0 = 0 ; | |
4292 | char *kwnames[] = { | |
4293 | (char *) "self", NULL | |
4294 | }; | |
4295 | ||
4296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
4297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4298 | { | |
4299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4300 | result = (arg1)->operator -(); | |
4301 | ||
4302 | wxPyEndAllowThreads(__tstate); | |
4303 | if (PyErr_Occurred()) SWIG_fail; | |
4304 | } | |
4305 | { | |
4306 | wxPoint2D * resultptr; | |
4307 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
4308 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint2D, 1); | |
4309 | } | |
4310 | return resultobj; | |
4311 | fail: | |
4312 | return NULL; | |
4313 | } | |
4314 | ||
4315 | ||
4316 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4317 | PyObject *resultobj; | |
4318 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4319 | wxPoint2D *arg2 = 0 ; | |
4320 | wxPoint2D *result; | |
4321 | wxPoint2D temp2 ; | |
4322 | PyObject * obj0 = 0 ; | |
4323 | PyObject * obj1 = 0 ; | |
4324 | char *kwnames[] = { | |
4325 | (char *) "self",(char *) "pt", NULL | |
4326 | }; | |
4327 | ||
4328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4330 | { | |
4331 | arg2 = &temp2; | |
4332 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4333 | } | |
4334 | { | |
4335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4336 | { | |
4337 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
4338 | result = (wxPoint2D *) &_result_ref; | |
4339 | } | |
4340 | ||
4341 | wxPyEndAllowThreads(__tstate); | |
4342 | if (PyErr_Occurred()) SWIG_fail; | |
4343 | } | |
4344 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4345 | return resultobj; | |
4346 | fail: | |
4347 | return NULL; | |
4348 | } | |
4349 | ||
4350 | ||
4351 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4352 | PyObject *resultobj; | |
4353 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4354 | wxPoint2D *arg2 = 0 ; | |
4355 | wxPoint2D *result; | |
4356 | wxPoint2D temp2 ; | |
4357 | PyObject * obj0 = 0 ; | |
4358 | PyObject * obj1 = 0 ; | |
4359 | char *kwnames[] = { | |
4360 | (char *) "self",(char *) "pt", NULL | |
4361 | }; | |
4362 | ||
4363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
4364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4365 | { | |
4366 | arg2 = &temp2; | |
4367 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4368 | } | |
4369 | { | |
4370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4371 | { | |
4372 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
4373 | result = (wxPoint2D *) &_result_ref; | |
4374 | } | |
4375 | ||
4376 | wxPyEndAllowThreads(__tstate); | |
4377 | if (PyErr_Occurred()) SWIG_fail; | |
4378 | } | |
4379 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4380 | return resultobj; | |
4381 | fail: | |
4382 | return NULL; | |
4383 | } | |
4384 | ||
4385 | ||
4386 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4387 | PyObject *resultobj; | |
4388 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4389 | wxPoint2D *arg2 = 0 ; | |
4390 | wxPoint2D *result; | |
4391 | wxPoint2D temp2 ; | |
4392 | PyObject * obj0 = 0 ; | |
4393 | PyObject * obj1 = 0 ; | |
4394 | char *kwnames[] = { | |
4395 | (char *) "self",(char *) "pt", NULL | |
4396 | }; | |
4397 | ||
4398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
4399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4400 | { | |
4401 | arg2 = &temp2; | |
4402 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4403 | } | |
4404 | { | |
4405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4406 | { | |
4407 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
4408 | result = (wxPoint2D *) &_result_ref; | |
4409 | } | |
4410 | ||
4411 | wxPyEndAllowThreads(__tstate); | |
4412 | if (PyErr_Occurred()) SWIG_fail; | |
4413 | } | |
4414 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4415 | return resultobj; | |
4416 | fail: | |
4417 | return NULL; | |
4418 | } | |
4419 | ||
4420 | ||
4421 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4422 | PyObject *resultobj; | |
4423 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4424 | wxPoint2D *arg2 = 0 ; | |
4425 | wxPoint2D *result; | |
4426 | wxPoint2D temp2 ; | |
4427 | PyObject * obj0 = 0 ; | |
4428 | PyObject * obj1 = 0 ; | |
4429 | char *kwnames[] = { | |
4430 | (char *) "self",(char *) "pt", NULL | |
4431 | }; | |
4432 | ||
4433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
4434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4435 | { | |
4436 | arg2 = &temp2; | |
4437 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4438 | } | |
4439 | { | |
4440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4441 | { | |
4442 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
4443 | result = (wxPoint2D *) &_result_ref; | |
4444 | } | |
4445 | ||
4446 | wxPyEndAllowThreads(__tstate); | |
4447 | if (PyErr_Occurred()) SWIG_fail; | |
4448 | } | |
4449 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4450 | return resultobj; | |
4451 | fail: | |
4452 | return NULL; | |
4453 | } | |
4454 | ||
4455 | ||
4456 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4457 | PyObject *resultobj; | |
4458 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4459 | wxPoint2D *arg2 = 0 ; | |
4460 | bool result; | |
4461 | wxPoint2D temp2 ; | |
4462 | PyObject * obj0 = 0 ; | |
4463 | PyObject * obj1 = 0 ; | |
4464 | char *kwnames[] = { | |
4465 | (char *) "self",(char *) "pt", NULL | |
4466 | }; | |
4467 | ||
4468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4470 | { | |
4471 | arg2 = &temp2; | |
4472 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4473 | } | |
4474 | { | |
4475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4476 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
4477 | ||
4478 | wxPyEndAllowThreads(__tstate); | |
4479 | if (PyErr_Occurred()) SWIG_fail; | |
4480 | } | |
4481 | resultobj = PyInt_FromLong((long)result); | |
4482 | return resultobj; | |
4483 | fail: | |
4484 | return NULL; | |
4485 | } | |
4486 | ||
4487 | ||
4488 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4489 | PyObject *resultobj; | |
4490 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4491 | wxPoint2D *arg2 = 0 ; | |
4492 | bool result; | |
4493 | wxPoint2D temp2 ; | |
4494 | PyObject * obj0 = 0 ; | |
4495 | PyObject * obj1 = 0 ; | |
4496 | char *kwnames[] = { | |
4497 | (char *) "self",(char *) "pt", NULL | |
4498 | }; | |
4499 | ||
4500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4502 | { | |
4503 | arg2 = &temp2; | |
4504 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4505 | } | |
4506 | { | |
4507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4508 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
4509 | ||
4510 | wxPyEndAllowThreads(__tstate); | |
4511 | if (PyErr_Occurred()) SWIG_fail; | |
4512 | } | |
4513 | resultobj = PyInt_FromLong((long)result); | |
4514 | return resultobj; | |
4515 | fail: | |
4516 | return NULL; | |
4517 | } | |
4518 | ||
4519 | ||
4520 | static PyObject *_wrap_Point2D_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4521 | PyObject *resultobj; | |
4522 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4523 | double arg2 ; | |
4524 | PyObject * obj0 = 0 ; | |
4525 | char *kwnames[] = { | |
4526 | (char *) "self",(char *) "m_x", NULL | |
4527 | }; | |
4528 | ||
4529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_m_x_set",kwnames,&obj0,&arg2)) goto fail; | |
4530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4531 | if (arg1) (arg1)->m_x = arg2; | |
4532 | ||
4533 | Py_INCREF(Py_None); resultobj = Py_None; | |
4534 | return resultobj; | |
4535 | fail: | |
4536 | return NULL; | |
4537 | } | |
4538 | ||
4539 | ||
4540 | static PyObject *_wrap_Point2D_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4541 | PyObject *resultobj; | |
4542 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4543 | double result; | |
4544 | PyObject * obj0 = 0 ; | |
4545 | char *kwnames[] = { | |
4546 | (char *) "self", NULL | |
4547 | }; | |
4548 | ||
4549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_m_x_get",kwnames,&obj0)) goto fail; | |
4550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4551 | result = (double) ((arg1)->m_x); | |
4552 | ||
4553 | resultobj = PyFloat_FromDouble(result); | |
4554 | return resultobj; | |
4555 | fail: | |
4556 | return NULL; | |
4557 | } | |
4558 | ||
4559 | ||
4560 | static PyObject *_wrap_Point2D_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4561 | PyObject *resultobj; | |
4562 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4563 | double arg2 ; | |
4564 | PyObject * obj0 = 0 ; | |
4565 | char *kwnames[] = { | |
4566 | (char *) "self",(char *) "m_y", NULL | |
4567 | }; | |
4568 | ||
4569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_m_y_set",kwnames,&obj0,&arg2)) goto fail; | |
4570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4571 | if (arg1) (arg1)->m_y = arg2; | |
4572 | ||
4573 | Py_INCREF(Py_None); resultobj = Py_None; | |
4574 | return resultobj; | |
4575 | fail: | |
4576 | return NULL; | |
4577 | } | |
4578 | ||
4579 | ||
4580 | static PyObject *_wrap_Point2D_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4581 | PyObject *resultobj; | |
4582 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4583 | double result; | |
4584 | PyObject * obj0 = 0 ; | |
4585 | char *kwnames[] = { | |
4586 | (char *) "self", NULL | |
4587 | }; | |
4588 | ||
4589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_m_y_get",kwnames,&obj0)) goto fail; | |
4590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4591 | result = (double) ((arg1)->m_y); | |
4592 | ||
4593 | resultobj = PyFloat_FromDouble(result); | |
4594 | return resultobj; | |
4595 | fail: | |
4596 | return NULL; | |
4597 | } | |
4598 | ||
4599 | ||
4600 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4601 | PyObject *resultobj; | |
4602 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4603 | double arg2 ; | |
4604 | PyObject * obj0 = 0 ; | |
4605 | char *kwnames[] = { | |
4606 | (char *) "self",(char *) "m_x", NULL | |
4607 | }; | |
4608 | ||
4609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_x_set",kwnames,&obj0,&arg2)) goto fail; | |
4610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4611 | if (arg1) (arg1)->m_x = arg2; | |
4612 | ||
4613 | Py_INCREF(Py_None); resultobj = Py_None; | |
4614 | return resultobj; | |
4615 | fail: | |
4616 | return NULL; | |
4617 | } | |
4618 | ||
4619 | ||
4620 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4621 | PyObject *resultobj; | |
4622 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4623 | double result; | |
4624 | PyObject * obj0 = 0 ; | |
4625 | char *kwnames[] = { | |
4626 | (char *) "self", NULL | |
4627 | }; | |
4628 | ||
4629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
4630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4631 | result = (double) ((arg1)->m_x); | |
4632 | ||
4633 | resultobj = PyFloat_FromDouble(result); | |
4634 | return resultobj; | |
4635 | fail: | |
4636 | return NULL; | |
4637 | } | |
4638 | ||
4639 | ||
4640 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4641 | PyObject *resultobj; | |
4642 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4643 | double arg2 ; | |
4644 | PyObject * obj0 = 0 ; | |
4645 | char *kwnames[] = { | |
4646 | (char *) "self",(char *) "m_y", NULL | |
4647 | }; | |
4648 | ||
4649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_y_set",kwnames,&obj0,&arg2)) goto fail; | |
4650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4651 | if (arg1) (arg1)->m_y = arg2; | |
4652 | ||
4653 | Py_INCREF(Py_None); resultobj = Py_None; | |
4654 | return resultobj; | |
4655 | fail: | |
4656 | return NULL; | |
4657 | } | |
4658 | ||
4659 | ||
4660 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4661 | PyObject *resultobj; | |
4662 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4663 | double result; | |
4664 | PyObject * obj0 = 0 ; | |
4665 | char *kwnames[] = { | |
4666 | (char *) "self", NULL | |
4667 | }; | |
4668 | ||
4669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
4670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4671 | result = (double) ((arg1)->m_y); | |
4672 | ||
4673 | resultobj = PyFloat_FromDouble(result); | |
4674 | return resultobj; | |
4675 | fail: | |
4676 | return NULL; | |
4677 | } | |
4678 | ||
4679 | ||
4680 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4681 | PyObject *resultobj; | |
4682 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4683 | double arg2 = (double) 0 ; | |
4684 | double arg3 = (double) 0 ; | |
4685 | PyObject * obj0 = 0 ; | |
4686 | char *kwnames[] = { | |
4687 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4688 | }; | |
4689 | ||
4690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|dd:Point2D_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4692 | { | |
4693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4694 | wxPoint2D_Set(arg1,arg2,arg3); | |
4695 | ||
4696 | wxPyEndAllowThreads(__tstate); | |
4697 | if (PyErr_Occurred()) SWIG_fail; | |
4698 | } | |
4699 | Py_INCREF(Py_None); resultobj = Py_None; | |
4700 | return resultobj; | |
4701 | fail: | |
4702 | return NULL; | |
4703 | } | |
4704 | ||
4705 | ||
4706 | static PyObject *_wrap_Point2D_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4707 | PyObject *resultobj; | |
4708 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4709 | PyObject *result; | |
4710 | PyObject * obj0 = 0 ; | |
4711 | char *kwnames[] = { | |
4712 | (char *) "self", NULL | |
4713 | }; | |
4714 | ||
4715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_asTuple",kwnames,&obj0)) goto fail; | |
4716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4717 | { | |
4718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4719 | result = (PyObject *)wxPoint2D_asTuple(arg1); | |
4720 | ||
4721 | wxPyEndAllowThreads(__tstate); | |
4722 | if (PyErr_Occurred()) SWIG_fail; | |
4723 | } | |
4724 | resultobj = result; | |
4725 | return resultobj; | |
4726 | fail: | |
4727 | return NULL; | |
4728 | } | |
4729 | ||
4730 | ||
4731 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
4732 | PyObject *obj; | |
4733 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4734 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
4735 | Py_INCREF(obj); | |
4736 | return Py_BuildValue((char *)""); | |
4737 | } | |
4738 | static int _wrap_DefaultPosition_set(PyObject *_val) { | |
4739 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); | |
4740 | return 1; | |
4741 | } | |
4742 | ||
4743 | ||
4744 | static PyObject *_wrap_DefaultPosition_get() { | |
4745 | PyObject *pyobj; | |
4746 | ||
4747 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultPosition, SWIGTYPE_p_wxPoint, 0); | |
4748 | return pyobj; | |
4749 | } | |
4750 | ||
4751 | ||
4752 | static int _wrap_DefaultSize_set(PyObject *_val) { | |
4753 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); | |
4754 | return 1; | |
4755 | } | |
4756 | ||
4757 | ||
4758 | static PyObject *_wrap_DefaultSize_get() { | |
4759 | PyObject *pyobj; | |
4760 | ||
4761 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSize, SWIGTYPE_p_wxSize, 0); | |
4762 | return pyobj; | |
4763 | } | |
4764 | ||
4765 | ||
4766 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4767 | PyObject *resultobj; | |
4768 | PyObject *arg1 = (PyObject *) 0 ; | |
4769 | wxPyInputStream *result; | |
4770 | PyObject * obj0 = 0 ; | |
4771 | char *kwnames[] = { | |
4772 | (char *) "p", NULL | |
4773 | }; | |
4774 | ||
4775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
4776 | arg1 = obj0; | |
4777 | { | |
4778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4779 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
4780 | ||
4781 | wxPyEndAllowThreads(__tstate); | |
4782 | if (PyErr_Occurred()) SWIG_fail; | |
4783 | } | |
4784 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyInputStream, 1); | |
4785 | return resultobj; | |
4786 | fail: | |
4787 | return NULL; | |
4788 | } | |
4789 | ||
4790 | ||
4791 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4792 | PyObject *resultobj; | |
4793 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4794 | PyObject * obj0 = 0 ; | |
4795 | char *kwnames[] = { | |
4796 | (char *) "self", NULL | |
4797 | }; | |
4798 | ||
4799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
4800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4801 | { | |
4802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4803 | (arg1)->close(); | |
4804 | ||
4805 | wxPyEndAllowThreads(__tstate); | |
4806 | if (PyErr_Occurred()) SWIG_fail; | |
4807 | } | |
4808 | Py_INCREF(Py_None); resultobj = Py_None; | |
4809 | return resultobj; | |
4810 | fail: | |
4811 | return NULL; | |
4812 | } | |
4813 | ||
4814 | ||
4815 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4816 | PyObject *resultobj; | |
4817 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4818 | PyObject * obj0 = 0 ; | |
4819 | char *kwnames[] = { | |
4820 | (char *) "self", NULL | |
4821 | }; | |
4822 | ||
4823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
4824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4825 | { | |
4826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4827 | (arg1)->flush(); | |
4828 | ||
4829 | wxPyEndAllowThreads(__tstate); | |
4830 | if (PyErr_Occurred()) SWIG_fail; | |
4831 | } | |
4832 | Py_INCREF(Py_None); resultobj = Py_None; | |
4833 | return resultobj; | |
4834 | fail: | |
4835 | return NULL; | |
4836 | } | |
4837 | ||
4838 | ||
4839 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4840 | PyObject *resultobj; | |
4841 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4842 | bool result; | |
4843 | PyObject * obj0 = 0 ; | |
4844 | char *kwnames[] = { | |
4845 | (char *) "self", NULL | |
4846 | }; | |
4847 | ||
4848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
4849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4850 | { | |
4851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4852 | result = (bool)(arg1)->eof(); | |
4853 | ||
4854 | wxPyEndAllowThreads(__tstate); | |
4855 | if (PyErr_Occurred()) SWIG_fail; | |
4856 | } | |
4857 | resultobj = PyInt_FromLong((long)result); | |
4858 | return resultobj; | |
4859 | fail: | |
4860 | return NULL; | |
4861 | } | |
4862 | ||
4863 | ||
4864 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4865 | PyObject *resultobj; | |
4866 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4867 | int arg2 = (int) -1 ; | |
4868 | PyObject *result; | |
4869 | PyObject * obj0 = 0 ; | |
4870 | char *kwnames[] = { | |
4871 | (char *) "self",(char *) "size", NULL | |
4872 | }; | |
4873 | ||
4874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:InputStream_read",kwnames,&obj0,&arg2)) goto fail; | |
4875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4876 | { | |
4877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4878 | result = (PyObject *)(arg1)->read(arg2); | |
4879 | ||
4880 | wxPyEndAllowThreads(__tstate); | |
4881 | if (PyErr_Occurred()) SWIG_fail; | |
4882 | } | |
4883 | resultobj = result; | |
4884 | return resultobj; | |
4885 | fail: | |
4886 | return NULL; | |
4887 | } | |
4888 | ||
4889 | ||
4890 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4891 | PyObject *resultobj; | |
4892 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4893 | int arg2 = (int) -1 ; | |
4894 | PyObject *result; | |
4895 | PyObject * obj0 = 0 ; | |
4896 | char *kwnames[] = { | |
4897 | (char *) "self",(char *) "size", NULL | |
4898 | }; | |
4899 | ||
4900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:InputStream_readline",kwnames,&obj0,&arg2)) goto fail; | |
4901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4902 | { | |
4903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4904 | result = (PyObject *)(arg1)->readline(arg2); | |
4905 | ||
4906 | wxPyEndAllowThreads(__tstate); | |
4907 | if (PyErr_Occurred()) SWIG_fail; | |
4908 | } | |
4909 | resultobj = result; | |
4910 | return resultobj; | |
4911 | fail: | |
4912 | return NULL; | |
4913 | } | |
4914 | ||
4915 | ||
4916 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4917 | PyObject *resultobj; | |
4918 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4919 | int arg2 = (int) -1 ; | |
4920 | PyObject *result; | |
4921 | PyObject * obj0 = 0 ; | |
4922 | char *kwnames[] = { | |
4923 | (char *) "self",(char *) "sizehint", NULL | |
4924 | }; | |
4925 | ||
4926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:InputStream_readlines",kwnames,&obj0,&arg2)) goto fail; | |
4927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4928 | { | |
4929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4930 | result = (PyObject *)(arg1)->readlines(arg2); | |
4931 | ||
4932 | wxPyEndAllowThreads(__tstate); | |
4933 | if (PyErr_Occurred()) SWIG_fail; | |
4934 | } | |
4935 | resultobj = result; | |
4936 | return resultobj; | |
4937 | fail: | |
4938 | return NULL; | |
4939 | } | |
4940 | ||
4941 | ||
4942 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4943 | PyObject *resultobj; | |
4944 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4945 | int arg2 ; | |
4946 | int arg3 = (int) 0 ; | |
4947 | PyObject * obj0 = 0 ; | |
4948 | char *kwnames[] = { | |
4949 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
4950 | }; | |
4951 | ||
4952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:InputStream_seek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4954 | { | |
4955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4956 | (arg1)->seek(arg2,arg3); | |
4957 | ||
4958 | wxPyEndAllowThreads(__tstate); | |
4959 | if (PyErr_Occurred()) SWIG_fail; | |
4960 | } | |
4961 | Py_INCREF(Py_None); resultobj = Py_None; | |
4962 | return resultobj; | |
4963 | fail: | |
4964 | return NULL; | |
4965 | } | |
4966 | ||
4967 | ||
4968 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4969 | PyObject *resultobj; | |
4970 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4971 | int result; | |
4972 | PyObject * obj0 = 0 ; | |
4973 | char *kwnames[] = { | |
4974 | (char *) "self", NULL | |
4975 | }; | |
4976 | ||
4977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
4978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4979 | { | |
4980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4981 | result = (int)(arg1)->tell(); | |
4982 | ||
4983 | wxPyEndAllowThreads(__tstate); | |
4984 | if (PyErr_Occurred()) SWIG_fail; | |
4985 | } | |
4986 | resultobj = PyInt_FromLong((long)result); | |
4987 | return resultobj; | |
4988 | fail: | |
4989 | return NULL; | |
4990 | } | |
4991 | ||
4992 | ||
4993 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4994 | PyObject *resultobj; | |
4995 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4996 | char result; | |
4997 | PyObject * obj0 = 0 ; | |
4998 | char *kwnames[] = { | |
4999 | (char *) "self", NULL | |
5000 | }; | |
5001 | ||
5002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
5003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5004 | { | |
5005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5006 | result = (char)(arg1)->Peek(); | |
5007 | ||
5008 | wxPyEndAllowThreads(__tstate); | |
5009 | if (PyErr_Occurred()) SWIG_fail; | |
5010 | } | |
5011 | resultobj = Py_BuildValue((char*)"c",result); | |
5012 | return resultobj; | |
5013 | fail: | |
5014 | return NULL; | |
5015 | } | |
5016 | ||
5017 | ||
5018 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5019 | PyObject *resultobj; | |
5020 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5021 | char result; | |
5022 | PyObject * obj0 = 0 ; | |
5023 | char *kwnames[] = { | |
5024 | (char *) "self", NULL | |
5025 | }; | |
5026 | ||
5027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
5028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5029 | { | |
5030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5031 | result = (char)(arg1)->GetC(); | |
5032 | ||
5033 | wxPyEndAllowThreads(__tstate); | |
5034 | if (PyErr_Occurred()) SWIG_fail; | |
5035 | } | |
5036 | resultobj = Py_BuildValue((char*)"c",result); | |
5037 | return resultobj; | |
5038 | fail: | |
5039 | return NULL; | |
5040 | } | |
5041 | ||
5042 | ||
5043 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5044 | PyObject *resultobj; | |
5045 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5046 | size_t result; | |
5047 | PyObject * obj0 = 0 ; | |
5048 | char *kwnames[] = { | |
5049 | (char *) "self", NULL | |
5050 | }; | |
5051 | ||
5052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
5053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5054 | { | |
5055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5056 | result = (size_t)(arg1)->LastRead(); | |
5057 | ||
5058 | wxPyEndAllowThreads(__tstate); | |
5059 | if (PyErr_Occurred()) SWIG_fail; | |
5060 | } | |
5061 | resultobj = PyInt_FromLong((long)result); | |
5062 | return resultobj; | |
5063 | fail: | |
5064 | return NULL; | |
5065 | } | |
5066 | ||
5067 | ||
5068 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5069 | PyObject *resultobj; | |
5070 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5071 | bool result; | |
5072 | PyObject * obj0 = 0 ; | |
5073 | char *kwnames[] = { | |
5074 | (char *) "self", NULL | |
5075 | }; | |
5076 | ||
5077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
5078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5079 | { | |
5080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5081 | result = (bool)(arg1)->CanRead(); | |
5082 | ||
5083 | wxPyEndAllowThreads(__tstate); | |
5084 | if (PyErr_Occurred()) SWIG_fail; | |
5085 | } | |
5086 | resultobj = PyInt_FromLong((long)result); | |
5087 | return resultobj; | |
5088 | fail: | |
5089 | return NULL; | |
5090 | } | |
5091 | ||
5092 | ||
5093 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5094 | PyObject *resultobj; | |
5095 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5096 | bool result; | |
5097 | PyObject * obj0 = 0 ; | |
5098 | char *kwnames[] = { | |
5099 | (char *) "self", NULL | |
5100 | }; | |
5101 | ||
5102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
5103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5104 | { | |
5105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5106 | result = (bool)(arg1)->Eof(); | |
5107 | ||
5108 | wxPyEndAllowThreads(__tstate); | |
5109 | if (PyErr_Occurred()) SWIG_fail; | |
5110 | } | |
5111 | resultobj = PyInt_FromLong((long)result); | |
5112 | return resultobj; | |
5113 | fail: | |
5114 | return NULL; | |
5115 | } | |
5116 | ||
5117 | ||
5118 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5119 | PyObject *resultobj; | |
5120 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5121 | char arg2 ; | |
5122 | bool result; | |
5123 | PyObject * obj0 = 0 ; | |
5124 | char *kwnames[] = { | |
5125 | (char *) "self",(char *) "c", NULL | |
5126 | }; | |
5127 | ||
5128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oc:InputStream_Ungetch",kwnames,&obj0,&arg2)) goto fail; | |
5129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5130 | { | |
5131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5132 | result = (bool)(arg1)->Ungetch(arg2); | |
5133 | ||
5134 | wxPyEndAllowThreads(__tstate); | |
5135 | if (PyErr_Occurred()) SWIG_fail; | |
5136 | } | |
5137 | resultobj = PyInt_FromLong((long)result); | |
5138 | return resultobj; | |
5139 | fail: | |
5140 | return NULL; | |
5141 | } | |
5142 | ||
5143 | ||
5144 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5145 | PyObject *resultobj; | |
5146 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5147 | long arg2 ; | |
5148 | int arg3 = (int) wxFromStart ; | |
5149 | long result; | |
5150 | PyObject * obj0 = 0 ; | |
5151 | char *kwnames[] = { | |
5152 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
5153 | }; | |
5154 | ||
5155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:InputStream_SeekI",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5157 | { | |
5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5159 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
5160 | ||
5161 | wxPyEndAllowThreads(__tstate); | |
5162 | if (PyErr_Occurred()) SWIG_fail; | |
5163 | } | |
5164 | resultobj = PyInt_FromLong((long)result); | |
5165 | return resultobj; | |
5166 | fail: | |
5167 | return NULL; | |
5168 | } | |
5169 | ||
5170 | ||
5171 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5172 | PyObject *resultobj; | |
5173 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5174 | long result; | |
5175 | PyObject * obj0 = 0 ; | |
5176 | char *kwnames[] = { | |
5177 | (char *) "self", NULL | |
5178 | }; | |
5179 | ||
5180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
5181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5182 | { | |
5183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5184 | result = (long)(arg1)->TellI(); | |
5185 | ||
5186 | wxPyEndAllowThreads(__tstate); | |
5187 | if (PyErr_Occurred()) SWIG_fail; | |
5188 | } | |
5189 | resultobj = PyInt_FromLong((long)result); | |
5190 | return resultobj; | |
5191 | fail: | |
5192 | return NULL; | |
5193 | } | |
5194 | ||
5195 | ||
5196 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
5197 | PyObject *obj; | |
5198 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5199 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
5200 | Py_INCREF(obj); | |
5201 | return Py_BuildValue((char *)""); | |
5202 | } | |
5203 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5204 | PyObject *resultobj; | |
5205 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
5206 | PyObject *arg2 = (PyObject *) 0 ; | |
5207 | PyObject * obj0 = 0 ; | |
5208 | PyObject * obj1 = 0 ; | |
5209 | char *kwnames[] = { | |
5210 | (char *) "self",(char *) "obj", NULL | |
5211 | }; | |
5212 | ||
5213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
5214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxOutputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5215 | arg2 = obj1; | |
5216 | { | |
5217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5218 | wxOutputStream_write(arg1,arg2); | |
5219 | ||
5220 | wxPyEndAllowThreads(__tstate); | |
5221 | if (PyErr_Occurred()) SWIG_fail; | |
5222 | } | |
5223 | Py_INCREF(Py_None); resultobj = Py_None; | |
5224 | return resultobj; | |
5225 | fail: | |
5226 | return NULL; | |
5227 | } | |
5228 | ||
5229 | ||
5230 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
5231 | PyObject *obj; | |
5232 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5233 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
5234 | Py_INCREF(obj); | |
5235 | return Py_BuildValue((char *)""); | |
5236 | } | |
5237 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5238 | PyObject *resultobj; | |
5239 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
5240 | wxString *arg2 = 0 ; | |
5241 | wxString *arg3 = 0 ; | |
5242 | wxString *arg4 = 0 ; | |
5243 | wxDateTime arg5 ; | |
5244 | wxFSFile *result; | |
5245 | wxPyInputStream *temp1 ; | |
5246 | bool created1 ; | |
5247 | bool temp2 = false ; | |
5248 | bool temp3 = false ; | |
5249 | bool temp4 = false ; | |
5250 | wxDateTime *argp5 ; | |
5251 | PyObject * obj0 = 0 ; | |
5252 | PyObject * obj1 = 0 ; | |
5253 | PyObject * obj2 = 0 ; | |
5254 | PyObject * obj3 = 0 ; | |
5255 | PyObject * obj4 = 0 ; | |
5256 | char *kwnames[] = { | |
5257 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
5258 | }; | |
5259 | ||
5260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5261 | { | |
5262 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
5263 | arg1 = temp1->m_wxis; | |
5264 | created1 = false; | |
5265 | } else { | |
5266 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
5267 | arg1 = wxPyCBInputStream_create(obj0, false); | |
5268 | if (arg1 == NULL) { | |
5269 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
5270 | SWIG_fail; | |
5271 | } | |
5272 | created1 = true; | |
5273 | } | |
5274 | } | |
5275 | { | |
5276 | arg2 = wxString_in_helper(obj1); | |
5277 | if (arg2 == NULL) SWIG_fail; | |
5278 | temp2 = true; | |
5279 | } | |
5280 | { | |
5281 | arg3 = wxString_in_helper(obj2); | |
5282 | if (arg3 == NULL) SWIG_fail; | |
5283 | temp3 = true; | |
5284 | } | |
5285 | { | |
5286 | arg4 = wxString_in_helper(obj3); | |
5287 | if (arg4 == NULL) SWIG_fail; | |
5288 | temp4 = true; | |
5289 | } | |
5290 | if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
5291 | arg5 = *argp5; | |
5292 | { | |
5293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5294 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
5295 | ||
5296 | wxPyEndAllowThreads(__tstate); | |
5297 | if (PyErr_Occurred()) SWIG_fail; | |
5298 | } | |
5299 | { | |
5300 | resultobj = wxPyMake_wxObject(result); | |
5301 | } | |
5302 | { | |
5303 | if (created1) | |
5304 | delete arg1; | |
5305 | } | |
5306 | { | |
5307 | if (temp2) | |
5308 | delete arg2; | |
5309 | } | |
5310 | { | |
5311 | if (temp3) | |
5312 | delete arg3; | |
5313 | } | |
5314 | { | |
5315 | if (temp4) | |
5316 | delete arg4; | |
5317 | } | |
5318 | return resultobj; | |
5319 | fail: | |
5320 | { | |
5321 | if (created1) | |
5322 | delete arg1; | |
5323 | } | |
5324 | { | |
5325 | if (temp2) | |
5326 | delete arg2; | |
5327 | } | |
5328 | { | |
5329 | if (temp3) | |
5330 | delete arg3; | |
5331 | } | |
5332 | { | |
5333 | if (temp4) | |
5334 | delete arg4; | |
5335 | } | |
5336 | return NULL; | |
5337 | } | |
5338 | ||
5339 | ||
5340 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5341 | PyObject *resultobj; | |
5342 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5343 | PyObject * obj0 = 0 ; | |
5344 | char *kwnames[] = { | |
5345 | (char *) "self", NULL | |
5346 | }; | |
5347 | ||
5348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
5349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5350 | { | |
5351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5352 | delete arg1; | |
5353 | ||
5354 | wxPyEndAllowThreads(__tstate); | |
5355 | if (PyErr_Occurred()) SWIG_fail; | |
5356 | } | |
5357 | Py_INCREF(Py_None); resultobj = Py_None; | |
5358 | return resultobj; | |
5359 | fail: | |
5360 | return NULL; | |
5361 | } | |
5362 | ||
5363 | ||
5364 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5365 | PyObject *resultobj; | |
5366 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5367 | wxInputStream *result; | |
5368 | PyObject * obj0 = 0 ; | |
5369 | char *kwnames[] = { | |
5370 | (char *) "self", NULL | |
5371 | }; | |
5372 | ||
5373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
5374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5375 | { | |
5376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5377 | result = (wxInputStream *)(arg1)->GetStream(); | |
5378 | ||
5379 | wxPyEndAllowThreads(__tstate); | |
5380 | if (PyErr_Occurred()) SWIG_fail; | |
5381 | } | |
5382 | { | |
5383 | wxPyInputStream * _ptr = NULL; | |
5384 | ||
5385 | if (result) { | |
5386 | _ptr = new wxPyInputStream(result); | |
5387 | } | |
5388 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true); | |
5389 | } | |
5390 | return resultobj; | |
5391 | fail: | |
5392 | return NULL; | |
5393 | } | |
5394 | ||
5395 | ||
5396 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5397 | PyObject *resultobj; | |
5398 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5399 | wxString *result; | |
5400 | PyObject * obj0 = 0 ; | |
5401 | char *kwnames[] = { | |
5402 | (char *) "self", NULL | |
5403 | }; | |
5404 | ||
5405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
5406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5407 | { | |
5408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5409 | { | |
5410 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
5411 | result = (wxString *) &_result_ref; | |
5412 | } | |
5413 | ||
5414 | wxPyEndAllowThreads(__tstate); | |
5415 | if (PyErr_Occurred()) SWIG_fail; | |
5416 | } | |
5417 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
5418 | return resultobj; | |
5419 | fail: | |
5420 | return NULL; | |
5421 | } | |
5422 | ||
5423 | ||
5424 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5425 | PyObject *resultobj; | |
5426 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5427 | wxString *result; | |
5428 | PyObject * obj0 = 0 ; | |
5429 | char *kwnames[] = { | |
5430 | (char *) "self", NULL | |
5431 | }; | |
5432 | ||
5433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
5434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5435 | { | |
5436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5437 | { | |
5438 | wxString const &_result_ref = (arg1)->GetLocation(); | |
5439 | result = (wxString *) &_result_ref; | |
5440 | } | |
5441 | ||
5442 | wxPyEndAllowThreads(__tstate); | |
5443 | if (PyErr_Occurred()) SWIG_fail; | |
5444 | } | |
5445 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
5446 | return resultobj; | |
5447 | fail: | |
5448 | return NULL; | |
5449 | } | |
5450 | ||
5451 | ||
5452 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5453 | PyObject *resultobj; | |
5454 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5455 | wxString *result; | |
5456 | PyObject * obj0 = 0 ; | |
5457 | char *kwnames[] = { | |
5458 | (char *) "self", NULL | |
5459 | }; | |
5460 | ||
5461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
5462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5463 | { | |
5464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5465 | { | |
5466 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
5467 | result = (wxString *) &_result_ref; | |
5468 | } | |
5469 | ||
5470 | wxPyEndAllowThreads(__tstate); | |
5471 | if (PyErr_Occurred()) SWIG_fail; | |
5472 | } | |
5473 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
5474 | return resultobj; | |
5475 | fail: | |
5476 | return NULL; | |
5477 | } | |
5478 | ||
5479 | ||
5480 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5481 | PyObject *resultobj; | |
5482 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5483 | wxDateTime result; | |
5484 | PyObject * obj0 = 0 ; | |
5485 | char *kwnames[] = { | |
5486 | (char *) "self", NULL | |
5487 | }; | |
5488 | ||
5489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
5490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5491 | { | |
5492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5493 | result = (arg1)->GetModificationTime(); | |
5494 | ||
5495 | wxPyEndAllowThreads(__tstate); | |
5496 | if (PyErr_Occurred()) SWIG_fail; | |
5497 | } | |
5498 | { | |
5499 | wxDateTime * resultptr; | |
5500 | resultptr = new wxDateTime((wxDateTime &) result); | |
5501 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
5502 | } | |
5503 | return resultobj; | |
5504 | fail: | |
5505 | return NULL; | |
5506 | } | |
5507 | ||
5508 | ||
5509 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
5510 | PyObject *obj; | |
5511 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5512 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
5513 | Py_INCREF(obj); | |
5514 | return Py_BuildValue((char *)""); | |
5515 | } | |
5516 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
5517 | PyObject *obj; | |
5518 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5519 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
5520 | Py_INCREF(obj); | |
5521 | return Py_BuildValue((char *)""); | |
5522 | } | |
5523 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5524 | PyObject *resultobj; | |
5525 | wxPyFileSystemHandler *result; | |
5526 | char *kwnames[] = { | |
5527 | NULL | |
5528 | }; | |
5529 | ||
5530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
5531 | { | |
5532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5533 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
5534 | ||
5535 | wxPyEndAllowThreads(__tstate); | |
5536 | if (PyErr_Occurred()) SWIG_fail; | |
5537 | } | |
5538 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
5539 | return resultobj; | |
5540 | fail: | |
5541 | return NULL; | |
5542 | } | |
5543 | ||
5544 | ||
5545 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5546 | PyObject *resultobj; | |
5547 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5548 | PyObject *arg2 = (PyObject *) 0 ; | |
5549 | PyObject *arg3 = (PyObject *) 0 ; | |
5550 | PyObject * obj0 = 0 ; | |
5551 | PyObject * obj1 = 0 ; | |
5552 | PyObject * obj2 = 0 ; | |
5553 | char *kwnames[] = { | |
5554 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5555 | }; | |
5556 | ||
5557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5559 | arg2 = obj1; | |
5560 | arg3 = obj2; | |
5561 | { | |
5562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5563 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5564 | ||
5565 | wxPyEndAllowThreads(__tstate); | |
5566 | if (PyErr_Occurred()) SWIG_fail; | |
5567 | } | |
5568 | Py_INCREF(Py_None); resultobj = Py_None; | |
5569 | return resultobj; | |
5570 | fail: | |
5571 | return NULL; | |
5572 | } | |
5573 | ||
5574 | ||
5575 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5576 | PyObject *resultobj; | |
5577 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5578 | wxString *arg2 = 0 ; | |
5579 | bool result; | |
5580 | bool temp2 = false ; | |
5581 | PyObject * obj0 = 0 ; | |
5582 | PyObject * obj1 = 0 ; | |
5583 | char *kwnames[] = { | |
5584 | (char *) "self",(char *) "location", NULL | |
5585 | }; | |
5586 | ||
5587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
5588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5589 | { | |
5590 | arg2 = wxString_in_helper(obj1); | |
5591 | if (arg2 == NULL) SWIG_fail; | |
5592 | temp2 = true; | |
5593 | } | |
5594 | { | |
5595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5596 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
5597 | ||
5598 | wxPyEndAllowThreads(__tstate); | |
5599 | if (PyErr_Occurred()) SWIG_fail; | |
5600 | } | |
5601 | resultobj = PyInt_FromLong((long)result); | |
5602 | { | |
5603 | if (temp2) | |
5604 | delete arg2; | |
5605 | } | |
5606 | return resultobj; | |
5607 | fail: | |
5608 | { | |
5609 | if (temp2) | |
5610 | delete arg2; | |
5611 | } | |
5612 | return NULL; | |
5613 | } | |
5614 | ||
5615 | ||
5616 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5617 | PyObject *resultobj; | |
5618 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5619 | wxFileSystem *arg2 = 0 ; | |
5620 | wxString *arg3 = 0 ; | |
5621 | wxFSFile *result; | |
5622 | bool temp3 = false ; | |
5623 | PyObject * obj0 = 0 ; | |
5624 | PyObject * obj1 = 0 ; | |
5625 | PyObject * obj2 = 0 ; | |
5626 | char *kwnames[] = { | |
5627 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
5628 | }; | |
5629 | ||
5630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5632 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5633 | if (arg2 == NULL) { | |
5634 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5635 | } | |
5636 | { | |
5637 | arg3 = wxString_in_helper(obj2); | |
5638 | if (arg3 == NULL) SWIG_fail; | |
5639 | temp3 = true; | |
5640 | } | |
5641 | { | |
5642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5643 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
5644 | ||
5645 | wxPyEndAllowThreads(__tstate); | |
5646 | if (PyErr_Occurred()) SWIG_fail; | |
5647 | } | |
5648 | { | |
5649 | resultobj = wxPyMake_wxObject(result); | |
5650 | } | |
5651 | { | |
5652 | if (temp3) | |
5653 | delete arg3; | |
5654 | } | |
5655 | return resultobj; | |
5656 | fail: | |
5657 | { | |
5658 | if (temp3) | |
5659 | delete arg3; | |
5660 | } | |
5661 | return NULL; | |
5662 | } | |
5663 | ||
5664 | ||
5665 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5666 | PyObject *resultobj; | |
5667 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5668 | wxString *arg2 = 0 ; | |
5669 | int arg3 = (int) 0 ; | |
5670 | wxString result; | |
5671 | bool temp2 = false ; | |
5672 | PyObject * obj0 = 0 ; | |
5673 | PyObject * obj1 = 0 ; | |
5674 | char *kwnames[] = { | |
5675 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
5676 | }; | |
5677 | ||
5678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5680 | { | |
5681 | arg2 = wxString_in_helper(obj1); | |
5682 | if (arg2 == NULL) SWIG_fail; | |
5683 | temp2 = true; | |
5684 | } | |
5685 | { | |
5686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5687 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
5688 | ||
5689 | wxPyEndAllowThreads(__tstate); | |
5690 | if (PyErr_Occurred()) SWIG_fail; | |
5691 | } | |
5692 | { | |
5693 | #if wxUSE_UNICODE | |
5694 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5695 | #else | |
5696 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5697 | #endif | |
5698 | } | |
5699 | { | |
5700 | if (temp2) | |
5701 | delete arg2; | |
5702 | } | |
5703 | return resultobj; | |
5704 | fail: | |
5705 | { | |
5706 | if (temp2) | |
5707 | delete arg2; | |
5708 | } | |
5709 | return NULL; | |
5710 | } | |
5711 | ||
5712 | ||
5713 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5714 | PyObject *resultobj; | |
5715 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5716 | wxString result; | |
5717 | PyObject * obj0 = 0 ; | |
5718 | char *kwnames[] = { | |
5719 | (char *) "self", NULL | |
5720 | }; | |
5721 | ||
5722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
5723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5724 | { | |
5725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5726 | result = (arg1)->FindNext(); | |
5727 | ||
5728 | wxPyEndAllowThreads(__tstate); | |
5729 | if (PyErr_Occurred()) SWIG_fail; | |
5730 | } | |
5731 | { | |
5732 | #if wxUSE_UNICODE | |
5733 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5734 | #else | |
5735 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5736 | #endif | |
5737 | } | |
5738 | return resultobj; | |
5739 | fail: | |
5740 | return NULL; | |
5741 | } | |
5742 | ||
5743 | ||
5744 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5745 | PyObject *resultobj; | |
5746 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5747 | wxString *arg2 = 0 ; | |
5748 | wxString result; | |
5749 | bool temp2 = false ; | |
5750 | PyObject * obj0 = 0 ; | |
5751 | PyObject * obj1 = 0 ; | |
5752 | char *kwnames[] = { | |
5753 | (char *) "self",(char *) "location", NULL | |
5754 | }; | |
5755 | ||
5756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
5757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5758 | { | |
5759 | arg2 = wxString_in_helper(obj1); | |
5760 | if (arg2 == NULL) SWIG_fail; | |
5761 | temp2 = true; | |
5762 | } | |
5763 | { | |
5764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5765 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
5766 | ||
5767 | wxPyEndAllowThreads(__tstate); | |
5768 | if (PyErr_Occurred()) SWIG_fail; | |
5769 | } | |
5770 | { | |
5771 | #if wxUSE_UNICODE | |
5772 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5773 | #else | |
5774 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5775 | #endif | |
5776 | } | |
5777 | { | |
5778 | if (temp2) | |
5779 | delete arg2; | |
5780 | } | |
5781 | return resultobj; | |
5782 | fail: | |
5783 | { | |
5784 | if (temp2) | |
5785 | delete arg2; | |
5786 | } | |
5787 | return NULL; | |
5788 | } | |
5789 | ||
5790 | ||
5791 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5792 | PyObject *resultobj; | |
5793 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5794 | wxString *arg2 = 0 ; | |
5795 | wxString result; | |
5796 | bool temp2 = false ; | |
5797 | PyObject * obj0 = 0 ; | |
5798 | PyObject * obj1 = 0 ; | |
5799 | char *kwnames[] = { | |
5800 | (char *) "self",(char *) "location", NULL | |
5801 | }; | |
5802 | ||
5803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
5804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5805 | { | |
5806 | arg2 = wxString_in_helper(obj1); | |
5807 | if (arg2 == NULL) SWIG_fail; | |
5808 | temp2 = true; | |
5809 | } | |
5810 | { | |
5811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5812 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
5813 | ||
5814 | wxPyEndAllowThreads(__tstate); | |
5815 | if (PyErr_Occurred()) SWIG_fail; | |
5816 | } | |
5817 | { | |
5818 | #if wxUSE_UNICODE | |
5819 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5820 | #else | |
5821 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5822 | #endif | |
5823 | } | |
5824 | { | |
5825 | if (temp2) | |
5826 | delete arg2; | |
5827 | } | |
5828 | return resultobj; | |
5829 | fail: | |
5830 | { | |
5831 | if (temp2) | |
5832 | delete arg2; | |
5833 | } | |
5834 | return NULL; | |
5835 | } | |
5836 | ||
5837 | ||
5838 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5839 | PyObject *resultobj; | |
5840 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5841 | wxString *arg2 = 0 ; | |
5842 | wxString result; | |
5843 | bool temp2 = false ; | |
5844 | PyObject * obj0 = 0 ; | |
5845 | PyObject * obj1 = 0 ; | |
5846 | char *kwnames[] = { | |
5847 | (char *) "self",(char *) "location", NULL | |
5848 | }; | |
5849 | ||
5850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
5851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5852 | { | |
5853 | arg2 = wxString_in_helper(obj1); | |
5854 | if (arg2 == NULL) SWIG_fail; | |
5855 | temp2 = true; | |
5856 | } | |
5857 | { | |
5858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5859 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
5860 | ||
5861 | wxPyEndAllowThreads(__tstate); | |
5862 | if (PyErr_Occurred()) SWIG_fail; | |
5863 | } | |
5864 | { | |
5865 | #if wxUSE_UNICODE | |
5866 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5867 | #else | |
5868 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5869 | #endif | |
5870 | } | |
5871 | { | |
5872 | if (temp2) | |
5873 | delete arg2; | |
5874 | } | |
5875 | return resultobj; | |
5876 | fail: | |
5877 | { | |
5878 | if (temp2) | |
5879 | delete arg2; | |
5880 | } | |
5881 | return NULL; | |
5882 | } | |
5883 | ||
5884 | ||
5885 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5886 | PyObject *resultobj; | |
5887 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5888 | wxString *arg2 = 0 ; | |
5889 | wxString result; | |
5890 | bool temp2 = false ; | |
5891 | PyObject * obj0 = 0 ; | |
5892 | PyObject * obj1 = 0 ; | |
5893 | char *kwnames[] = { | |
5894 | (char *) "self",(char *) "location", NULL | |
5895 | }; | |
5896 | ||
5897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
5898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5899 | { | |
5900 | arg2 = wxString_in_helper(obj1); | |
5901 | if (arg2 == NULL) SWIG_fail; | |
5902 | temp2 = true; | |
5903 | } | |
5904 | { | |
5905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5906 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
5907 | ||
5908 | wxPyEndAllowThreads(__tstate); | |
5909 | if (PyErr_Occurred()) SWIG_fail; | |
5910 | } | |
5911 | { | |
5912 | #if wxUSE_UNICODE | |
5913 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5914 | #else | |
5915 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5916 | #endif | |
5917 | } | |
5918 | { | |
5919 | if (temp2) | |
5920 | delete arg2; | |
5921 | } | |
5922 | return resultobj; | |
5923 | fail: | |
5924 | { | |
5925 | if (temp2) | |
5926 | delete arg2; | |
5927 | } | |
5928 | return NULL; | |
5929 | } | |
5930 | ||
5931 | ||
5932 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5933 | PyObject *resultobj; | |
5934 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5935 | wxString *arg2 = 0 ; | |
5936 | wxString result; | |
5937 | bool temp2 = false ; | |
5938 | PyObject * obj0 = 0 ; | |
5939 | PyObject * obj1 = 0 ; | |
5940 | char *kwnames[] = { | |
5941 | (char *) "self",(char *) "location", NULL | |
5942 | }; | |
5943 | ||
5944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
5945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5946 | { | |
5947 | arg2 = wxString_in_helper(obj1); | |
5948 | if (arg2 == NULL) SWIG_fail; | |
5949 | temp2 = true; | |
5950 | } | |
5951 | { | |
5952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5953 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
5954 | ||
5955 | wxPyEndAllowThreads(__tstate); | |
5956 | if (PyErr_Occurred()) SWIG_fail; | |
5957 | } | |
5958 | { | |
5959 | #if wxUSE_UNICODE | |
5960 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5961 | #else | |
5962 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5963 | #endif | |
5964 | } | |
5965 | { | |
5966 | if (temp2) | |
5967 | delete arg2; | |
5968 | } | |
5969 | return resultobj; | |
5970 | fail: | |
5971 | { | |
5972 | if (temp2) | |
5973 | delete arg2; | |
5974 | } | |
5975 | return NULL; | |
5976 | } | |
5977 | ||
5978 | ||
5979 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
5980 | PyObject *obj; | |
5981 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5982 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
5983 | Py_INCREF(obj); | |
5984 | return Py_BuildValue((char *)""); | |
5985 | } | |
5986 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5987 | PyObject *resultobj; | |
5988 | wxFileSystem *result; | |
5989 | char *kwnames[] = { | |
5990 | NULL | |
5991 | }; | |
5992 | ||
5993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
5994 | { | |
5995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5996 | result = (wxFileSystem *)new wxFileSystem(); | |
5997 | ||
5998 | wxPyEndAllowThreads(__tstate); | |
5999 | if (PyErr_Occurred()) SWIG_fail; | |
6000 | } | |
6001 | { | |
6002 | resultobj = wxPyMake_wxObject(result); | |
6003 | } | |
6004 | return resultobj; | |
6005 | fail: | |
6006 | return NULL; | |
6007 | } | |
6008 | ||
6009 | ||
6010 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6011 | PyObject *resultobj; | |
6012 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6013 | PyObject * obj0 = 0 ; | |
6014 | char *kwnames[] = { | |
6015 | (char *) "self", NULL | |
6016 | }; | |
6017 | ||
6018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
6019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6020 | { | |
6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6022 | delete arg1; | |
6023 | ||
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
6027 | Py_INCREF(Py_None); resultobj = Py_None; | |
6028 | return resultobj; | |
6029 | fail: | |
6030 | return NULL; | |
6031 | } | |
6032 | ||
6033 | ||
6034 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6035 | PyObject *resultobj; | |
6036 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6037 | wxString *arg2 = 0 ; | |
6038 | bool arg3 = (bool) FALSE ; | |
6039 | bool temp2 = false ; | |
6040 | PyObject * obj0 = 0 ; | |
6041 | PyObject * obj1 = 0 ; | |
6042 | PyObject * obj2 = 0 ; | |
6043 | char *kwnames[] = { | |
6044 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
6045 | }; | |
6046 | ||
6047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6049 | { | |
6050 | arg2 = wxString_in_helper(obj1); | |
6051 | if (arg2 == NULL) SWIG_fail; | |
6052 | temp2 = true; | |
6053 | } | |
6054 | if (obj2) { | |
6055 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6056 | if (PyErr_Occurred()) SWIG_fail; | |
6057 | } | |
6058 | { | |
6059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6060 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
6061 | ||
6062 | wxPyEndAllowThreads(__tstate); | |
6063 | if (PyErr_Occurred()) SWIG_fail; | |
6064 | } | |
6065 | Py_INCREF(Py_None); resultobj = Py_None; | |
6066 | { | |
6067 | if (temp2) | |
6068 | delete arg2; | |
6069 | } | |
6070 | return resultobj; | |
6071 | fail: | |
6072 | { | |
6073 | if (temp2) | |
6074 | delete arg2; | |
6075 | } | |
6076 | return NULL; | |
6077 | } | |
6078 | ||
6079 | ||
6080 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6081 | PyObject *resultobj; | |
6082 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6083 | wxString result; | |
6084 | PyObject * obj0 = 0 ; | |
6085 | char *kwnames[] = { | |
6086 | (char *) "self", NULL | |
6087 | }; | |
6088 | ||
6089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
6090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6091 | { | |
6092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6093 | result = (arg1)->GetPath(); | |
6094 | ||
6095 | wxPyEndAllowThreads(__tstate); | |
6096 | if (PyErr_Occurred()) SWIG_fail; | |
6097 | } | |
6098 | { | |
6099 | #if wxUSE_UNICODE | |
6100 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6101 | #else | |
6102 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6103 | #endif | |
6104 | } | |
6105 | return resultobj; | |
6106 | fail: | |
6107 | return NULL; | |
6108 | } | |
6109 | ||
6110 | ||
6111 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6112 | PyObject *resultobj; | |
6113 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6114 | wxString *arg2 = 0 ; | |
6115 | wxFSFile *result; | |
6116 | bool temp2 = false ; | |
6117 | PyObject * obj0 = 0 ; | |
6118 | PyObject * obj1 = 0 ; | |
6119 | char *kwnames[] = { | |
6120 | (char *) "self",(char *) "location", NULL | |
6121 | }; | |
6122 | ||
6123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
6124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6125 | { | |
6126 | arg2 = wxString_in_helper(obj1); | |
6127 | if (arg2 == NULL) SWIG_fail; | |
6128 | temp2 = true; | |
6129 | } | |
6130 | { | |
6131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6132 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
6133 | ||
6134 | wxPyEndAllowThreads(__tstate); | |
6135 | if (PyErr_Occurred()) SWIG_fail; | |
6136 | } | |
6137 | { | |
6138 | resultobj = wxPyMake_wxObject(result); | |
6139 | } | |
6140 | { | |
6141 | if (temp2) | |
6142 | delete arg2; | |
6143 | } | |
6144 | return resultobj; | |
6145 | fail: | |
6146 | { | |
6147 | if (temp2) | |
6148 | delete arg2; | |
6149 | } | |
6150 | return NULL; | |
6151 | } | |
6152 | ||
6153 | ||
6154 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6155 | PyObject *resultobj; | |
6156 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6157 | wxString *arg2 = 0 ; | |
6158 | int arg3 = (int) 0 ; | |
6159 | wxString result; | |
6160 | bool temp2 = false ; | |
6161 | PyObject * obj0 = 0 ; | |
6162 | PyObject * obj1 = 0 ; | |
6163 | char *kwnames[] = { | |
6164 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6165 | }; | |
6166 | ||
6167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileSystem_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6169 | { | |
6170 | arg2 = wxString_in_helper(obj1); | |
6171 | if (arg2 == NULL) SWIG_fail; | |
6172 | temp2 = true; | |
6173 | } | |
6174 | { | |
6175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6176 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6177 | ||
6178 | wxPyEndAllowThreads(__tstate); | |
6179 | if (PyErr_Occurred()) SWIG_fail; | |
6180 | } | |
6181 | { | |
6182 | #if wxUSE_UNICODE | |
6183 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6184 | #else | |
6185 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6186 | #endif | |
6187 | } | |
6188 | { | |
6189 | if (temp2) | |
6190 | delete arg2; | |
6191 | } | |
6192 | return resultobj; | |
6193 | fail: | |
6194 | { | |
6195 | if (temp2) | |
6196 | delete arg2; | |
6197 | } | |
6198 | return NULL; | |
6199 | } | |
6200 | ||
6201 | ||
6202 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6203 | PyObject *resultobj; | |
6204 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6205 | wxString result; | |
6206 | PyObject * obj0 = 0 ; | |
6207 | char *kwnames[] = { | |
6208 | (char *) "self", NULL | |
6209 | }; | |
6210 | ||
6211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
6212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6213 | { | |
6214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6215 | result = (arg1)->FindNext(); | |
6216 | ||
6217 | wxPyEndAllowThreads(__tstate); | |
6218 | if (PyErr_Occurred()) SWIG_fail; | |
6219 | } | |
6220 | { | |
6221 | #if wxUSE_UNICODE | |
6222 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6223 | #else | |
6224 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6225 | #endif | |
6226 | } | |
6227 | return resultobj; | |
6228 | fail: | |
6229 | return NULL; | |
6230 | } | |
6231 | ||
6232 | ||
6233 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6234 | PyObject *resultobj; | |
6235 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
6236 | PyObject * obj0 = 0 ; | |
6237 | char *kwnames[] = { | |
6238 | (char *) "handler", NULL | |
6239 | }; | |
6240 | ||
6241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
6242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6243 | { | |
6244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6245 | wxFileSystem::AddHandler(arg1); | |
6246 | ||
6247 | wxPyEndAllowThreads(__tstate); | |
6248 | if (PyErr_Occurred()) SWIG_fail; | |
6249 | } | |
6250 | Py_INCREF(Py_None); resultobj = Py_None; | |
6251 | return resultobj; | |
6252 | fail: | |
6253 | return NULL; | |
6254 | } | |
6255 | ||
6256 | ||
6257 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6258 | PyObject *resultobj; | |
6259 | char *kwnames[] = { | |
6260 | NULL | |
6261 | }; | |
6262 | ||
6263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
6264 | { | |
6265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6266 | wxFileSystem::CleanUpHandlers(); | |
6267 | ||
6268 | wxPyEndAllowThreads(__tstate); | |
6269 | if (PyErr_Occurred()) SWIG_fail; | |
6270 | } | |
6271 | Py_INCREF(Py_None); resultobj = Py_None; | |
6272 | return resultobj; | |
6273 | fail: | |
6274 | return NULL; | |
6275 | } | |
6276 | ||
6277 | ||
6278 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6279 | PyObject *resultobj; | |
6280 | wxString *arg1 = 0 ; | |
6281 | wxString result; | |
6282 | bool temp1 = false ; | |
6283 | PyObject * obj0 = 0 ; | |
6284 | char *kwnames[] = { | |
6285 | (char *) "filename", NULL | |
6286 | }; | |
6287 | ||
6288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
6289 | { | |
6290 | arg1 = wxString_in_helper(obj0); | |
6291 | if (arg1 == NULL) SWIG_fail; | |
6292 | temp1 = true; | |
6293 | } | |
6294 | { | |
6295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6296 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
6297 | ||
6298 | wxPyEndAllowThreads(__tstate); | |
6299 | if (PyErr_Occurred()) SWIG_fail; | |
6300 | } | |
6301 | { | |
6302 | #if wxUSE_UNICODE | |
6303 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6304 | #else | |
6305 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6306 | #endif | |
6307 | } | |
6308 | { | |
6309 | if (temp1) | |
6310 | delete arg1; | |
6311 | } | |
6312 | return resultobj; | |
6313 | fail: | |
6314 | { | |
6315 | if (temp1) | |
6316 | delete arg1; | |
6317 | } | |
6318 | return NULL; | |
6319 | } | |
6320 | ||
6321 | ||
6322 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
6323 | PyObject *obj; | |
6324 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6325 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
6326 | Py_INCREF(obj); | |
6327 | return Py_BuildValue((char *)""); | |
6328 | } | |
6329 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6330 | PyObject *resultobj; | |
6331 | wxString *arg1 = 0 ; | |
6332 | wxString result; | |
6333 | bool temp1 = false ; | |
6334 | PyObject * obj0 = 0 ; | |
6335 | char *kwnames[] = { | |
6336 | (char *) "url", NULL | |
6337 | }; | |
6338 | ||
6339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
6340 | { | |
6341 | arg1 = wxString_in_helper(obj0); | |
6342 | if (arg1 == NULL) SWIG_fail; | |
6343 | temp1 = true; | |
6344 | } | |
6345 | { | |
6346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6347 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
6348 | ||
6349 | wxPyEndAllowThreads(__tstate); | |
6350 | if (PyErr_Occurred()) SWIG_fail; | |
6351 | } | |
6352 | { | |
6353 | #if wxUSE_UNICODE | |
6354 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6355 | #else | |
6356 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6357 | #endif | |
6358 | } | |
6359 | { | |
6360 | if (temp1) | |
6361 | delete arg1; | |
6362 | } | |
6363 | return resultobj; | |
6364 | fail: | |
6365 | { | |
6366 | if (temp1) | |
6367 | delete arg1; | |
6368 | } | |
6369 | return NULL; | |
6370 | } | |
6371 | ||
6372 | ||
6373 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6374 | PyObject *resultobj; | |
6375 | wxInternetFSHandler *result; | |
6376 | char *kwnames[] = { | |
6377 | NULL | |
6378 | }; | |
6379 | ||
6380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
6381 | { | |
6382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6383 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
6384 | ||
6385 | wxPyEndAllowThreads(__tstate); | |
6386 | if (PyErr_Occurred()) SWIG_fail; | |
6387 | } | |
6388 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInternetFSHandler, 1); | |
6389 | return resultobj; | |
6390 | fail: | |
6391 | return NULL; | |
6392 | } | |
6393 | ||
6394 | ||
6395 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6396 | PyObject *resultobj; | |
6397 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
6398 | wxString *arg2 = 0 ; | |
6399 | bool result; | |
6400 | bool temp2 = false ; | |
6401 | PyObject * obj0 = 0 ; | |
6402 | PyObject * obj1 = 0 ; | |
6403 | char *kwnames[] = { | |
6404 | (char *) "self",(char *) "location", NULL | |
6405 | }; | |
6406 | ||
6407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6409 | { | |
6410 | arg2 = wxString_in_helper(obj1); | |
6411 | if (arg2 == NULL) SWIG_fail; | |
6412 | temp2 = true; | |
6413 | } | |
6414 | { | |
6415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6416 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6417 | ||
6418 | wxPyEndAllowThreads(__tstate); | |
6419 | if (PyErr_Occurred()) SWIG_fail; | |
6420 | } | |
6421 | resultobj = PyInt_FromLong((long)result); | |
6422 | { | |
6423 | if (temp2) | |
6424 | delete arg2; | |
6425 | } | |
6426 | return resultobj; | |
6427 | fail: | |
6428 | { | |
6429 | if (temp2) | |
6430 | delete arg2; | |
6431 | } | |
6432 | return NULL; | |
6433 | } | |
6434 | ||
6435 | ||
6436 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6437 | PyObject *resultobj; | |
6438 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
6439 | wxFileSystem *arg2 = 0 ; | |
6440 | wxString *arg3 = 0 ; | |
6441 | wxFSFile *result; | |
6442 | bool temp3 = false ; | |
6443 | PyObject * obj0 = 0 ; | |
6444 | PyObject * obj1 = 0 ; | |
6445 | PyObject * obj2 = 0 ; | |
6446 | char *kwnames[] = { | |
6447 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6448 | }; | |
6449 | ||
6450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6452 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6453 | if (arg2 == NULL) { | |
6454 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6455 | } | |
6456 | { | |
6457 | arg3 = wxString_in_helper(obj2); | |
6458 | if (arg3 == NULL) SWIG_fail; | |
6459 | temp3 = true; | |
6460 | } | |
6461 | { | |
6462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6463 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6464 | ||
6465 | wxPyEndAllowThreads(__tstate); | |
6466 | if (PyErr_Occurred()) SWIG_fail; | |
6467 | } | |
6468 | { | |
6469 | resultobj = wxPyMake_wxObject(result); | |
6470 | } | |
6471 | { | |
6472 | if (temp3) | |
6473 | delete arg3; | |
6474 | } | |
6475 | return resultobj; | |
6476 | fail: | |
6477 | { | |
6478 | if (temp3) | |
6479 | delete arg3; | |
6480 | } | |
6481 | return NULL; | |
6482 | } | |
6483 | ||
6484 | ||
6485 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
6486 | PyObject *obj; | |
6487 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6488 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
6489 | Py_INCREF(obj); | |
6490 | return Py_BuildValue((char *)""); | |
6491 | } | |
6492 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6493 | PyObject *resultobj; | |
6494 | wxZipFSHandler *result; | |
6495 | char *kwnames[] = { | |
6496 | NULL | |
6497 | }; | |
6498 | ||
6499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
6500 | { | |
6501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6502 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
6503 | ||
6504 | wxPyEndAllowThreads(__tstate); | |
6505 | if (PyErr_Occurred()) SWIG_fail; | |
6506 | } | |
6507 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxZipFSHandler, 1); | |
6508 | return resultobj; | |
6509 | fail: | |
6510 | return NULL; | |
6511 | } | |
6512 | ||
6513 | ||
6514 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6515 | PyObject *resultobj; | |
6516 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6517 | wxString *arg2 = 0 ; | |
6518 | bool result; | |
6519 | bool temp2 = false ; | |
6520 | PyObject * obj0 = 0 ; | |
6521 | PyObject * obj1 = 0 ; | |
6522 | char *kwnames[] = { | |
6523 | (char *) "self",(char *) "location", NULL | |
6524 | }; | |
6525 | ||
6526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6528 | { | |
6529 | arg2 = wxString_in_helper(obj1); | |
6530 | if (arg2 == NULL) SWIG_fail; | |
6531 | temp2 = true; | |
6532 | } | |
6533 | { | |
6534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6535 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6536 | ||
6537 | wxPyEndAllowThreads(__tstate); | |
6538 | if (PyErr_Occurred()) SWIG_fail; | |
6539 | } | |
6540 | resultobj = PyInt_FromLong((long)result); | |
6541 | { | |
6542 | if (temp2) | |
6543 | delete arg2; | |
6544 | } | |
6545 | return resultobj; | |
6546 | fail: | |
6547 | { | |
6548 | if (temp2) | |
6549 | delete arg2; | |
6550 | } | |
6551 | return NULL; | |
6552 | } | |
6553 | ||
6554 | ||
6555 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6556 | PyObject *resultobj; | |
6557 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6558 | wxFileSystem *arg2 = 0 ; | |
6559 | wxString *arg3 = 0 ; | |
6560 | wxFSFile *result; | |
6561 | bool temp3 = false ; | |
6562 | PyObject * obj0 = 0 ; | |
6563 | PyObject * obj1 = 0 ; | |
6564 | PyObject * obj2 = 0 ; | |
6565 | char *kwnames[] = { | |
6566 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6567 | }; | |
6568 | ||
6569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6571 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6572 | if (arg2 == NULL) { | |
6573 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6574 | } | |
6575 | { | |
6576 | arg3 = wxString_in_helper(obj2); | |
6577 | if (arg3 == NULL) SWIG_fail; | |
6578 | temp3 = true; | |
6579 | } | |
6580 | { | |
6581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6582 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6583 | ||
6584 | wxPyEndAllowThreads(__tstate); | |
6585 | if (PyErr_Occurred()) SWIG_fail; | |
6586 | } | |
6587 | { | |
6588 | resultobj = wxPyMake_wxObject(result); | |
6589 | } | |
6590 | { | |
6591 | if (temp3) | |
6592 | delete arg3; | |
6593 | } | |
6594 | return resultobj; | |
6595 | fail: | |
6596 | { | |
6597 | if (temp3) | |
6598 | delete arg3; | |
6599 | } | |
6600 | return NULL; | |
6601 | } | |
6602 | ||
6603 | ||
6604 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6605 | PyObject *resultobj; | |
6606 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6607 | wxString *arg2 = 0 ; | |
6608 | int arg3 = (int) 0 ; | |
6609 | wxString result; | |
6610 | bool temp2 = false ; | |
6611 | PyObject * obj0 = 0 ; | |
6612 | PyObject * obj1 = 0 ; | |
6613 | char *kwnames[] = { | |
6614 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6615 | }; | |
6616 | ||
6617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6619 | { | |
6620 | arg2 = wxString_in_helper(obj1); | |
6621 | if (arg2 == NULL) SWIG_fail; | |
6622 | temp2 = true; | |
6623 | } | |
6624 | { | |
6625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6626 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6627 | ||
6628 | wxPyEndAllowThreads(__tstate); | |
6629 | if (PyErr_Occurred()) SWIG_fail; | |
6630 | } | |
6631 | { | |
6632 | #if wxUSE_UNICODE | |
6633 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6634 | #else | |
6635 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6636 | #endif | |
6637 | } | |
6638 | { | |
6639 | if (temp2) | |
6640 | delete arg2; | |
6641 | } | |
6642 | return resultobj; | |
6643 | fail: | |
6644 | { | |
6645 | if (temp2) | |
6646 | delete arg2; | |
6647 | } | |
6648 | return NULL; | |
6649 | } | |
6650 | ||
6651 | ||
6652 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6653 | PyObject *resultobj; | |
6654 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6655 | wxString result; | |
6656 | PyObject * obj0 = 0 ; | |
6657 | char *kwnames[] = { | |
6658 | (char *) "self", NULL | |
6659 | }; | |
6660 | ||
6661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
6662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6663 | { | |
6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6665 | result = (arg1)->FindNext(); | |
6666 | ||
6667 | wxPyEndAllowThreads(__tstate); | |
6668 | if (PyErr_Occurred()) SWIG_fail; | |
6669 | } | |
6670 | { | |
6671 | #if wxUSE_UNICODE | |
6672 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6673 | #else | |
6674 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6675 | #endif | |
6676 | } | |
6677 | return resultobj; | |
6678 | fail: | |
6679 | return NULL; | |
6680 | } | |
6681 | ||
6682 | ||
6683 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
6684 | PyObject *obj; | |
6685 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6686 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
6687 | Py_INCREF(obj); | |
6688 | return Py_BuildValue((char *)""); | |
6689 | } | |
6690 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6691 | PyObject *resultobj; | |
6692 | wxString *arg1 = 0 ; | |
6693 | wxImage *arg2 = 0 ; | |
6694 | long arg3 ; | |
6695 | bool temp1 = false ; | |
6696 | PyObject * obj0 = 0 ; | |
6697 | PyObject * obj1 = 0 ; | |
6698 | char *kwnames[] = { | |
6699 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
6700 | }; | |
6701 | ||
6702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6703 | { | |
6704 | arg1 = wxString_in_helper(obj0); | |
6705 | if (arg1 == NULL) SWIG_fail; | |
6706 | temp1 = true; | |
6707 | } | |
6708 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6709 | if (arg2 == NULL) { | |
6710 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6711 | } | |
6712 | { | |
6713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6714 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
6715 | ||
6716 | wxPyEndAllowThreads(__tstate); | |
6717 | if (PyErr_Occurred()) SWIG_fail; | |
6718 | } | |
6719 | Py_INCREF(Py_None); resultobj = Py_None; | |
6720 | { | |
6721 | if (temp1) | |
6722 | delete arg1; | |
6723 | } | |
6724 | return resultobj; | |
6725 | fail: | |
6726 | { | |
6727 | if (temp1) | |
6728 | delete arg1; | |
6729 | } | |
6730 | return NULL; | |
6731 | } | |
6732 | ||
6733 | ||
6734 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6735 | PyObject *resultobj; | |
6736 | wxString *arg1 = 0 ; | |
6737 | wxBitmap *arg2 = 0 ; | |
6738 | long arg3 ; | |
6739 | bool temp1 = false ; | |
6740 | PyObject * obj0 = 0 ; | |
6741 | PyObject * obj1 = 0 ; | |
6742 | char *kwnames[] = { | |
6743 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
6744 | }; | |
6745 | ||
6746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6747 | { | |
6748 | arg1 = wxString_in_helper(obj0); | |
6749 | if (arg1 == NULL) SWIG_fail; | |
6750 | temp1 = true; | |
6751 | } | |
6752 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6753 | if (arg2 == NULL) { | |
6754 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6755 | } | |
6756 | { | |
6757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6758 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
6759 | ||
6760 | wxPyEndAllowThreads(__tstate); | |
6761 | if (PyErr_Occurred()) SWIG_fail; | |
6762 | } | |
6763 | Py_INCREF(Py_None); resultobj = Py_None; | |
6764 | { | |
6765 | if (temp1) | |
6766 | delete arg1; | |
6767 | } | |
6768 | return resultobj; | |
6769 | fail: | |
6770 | { | |
6771 | if (temp1) | |
6772 | delete arg1; | |
6773 | } | |
6774 | return NULL; | |
6775 | } | |
6776 | ||
6777 | ||
6778 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6779 | PyObject *resultobj; | |
6780 | wxString *arg1 = 0 ; | |
6781 | PyObject *arg2 = (PyObject *) 0 ; | |
6782 | bool temp1 = false ; | |
6783 | PyObject * obj0 = 0 ; | |
6784 | PyObject * obj1 = 0 ; | |
6785 | char *kwnames[] = { | |
6786 | (char *) "filename",(char *) "data", NULL | |
6787 | }; | |
6788 | ||
6789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
6790 | { | |
6791 | arg1 = wxString_in_helper(obj0); | |
6792 | if (arg1 == NULL) SWIG_fail; | |
6793 | temp1 = true; | |
6794 | } | |
6795 | arg2 = obj1; | |
6796 | { | |
6797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6798 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
6799 | ||
6800 | wxPyEndAllowThreads(__tstate); | |
6801 | if (PyErr_Occurred()) SWIG_fail; | |
6802 | } | |
6803 | Py_INCREF(Py_None); resultobj = Py_None; | |
6804 | { | |
6805 | if (temp1) | |
6806 | delete arg1; | |
6807 | } | |
6808 | return resultobj; | |
6809 | fail: | |
6810 | { | |
6811 | if (temp1) | |
6812 | delete arg1; | |
6813 | } | |
6814 | return NULL; | |
6815 | } | |
6816 | ||
6817 | ||
6818 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6819 | PyObject *resultobj; | |
6820 | wxMemoryFSHandler *result; | |
6821 | char *kwnames[] = { | |
6822 | NULL | |
6823 | }; | |
6824 | ||
6825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
6826 | { | |
6827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6828 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
6829 | ||
6830 | wxPyEndAllowThreads(__tstate); | |
6831 | if (PyErr_Occurred()) SWIG_fail; | |
6832 | } | |
6833 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryFSHandler, 1); | |
6834 | return resultobj; | |
6835 | fail: | |
6836 | return NULL; | |
6837 | } | |
6838 | ||
6839 | ||
6840 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6841 | PyObject *resultobj; | |
6842 | wxString *arg1 = 0 ; | |
6843 | bool temp1 = false ; | |
6844 | PyObject * obj0 = 0 ; | |
6845 | char *kwnames[] = { | |
6846 | (char *) "filename", NULL | |
6847 | }; | |
6848 | ||
6849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
6850 | { | |
6851 | arg1 = wxString_in_helper(obj0); | |
6852 | if (arg1 == NULL) SWIG_fail; | |
6853 | temp1 = true; | |
6854 | } | |
6855 | { | |
6856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6857 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
6858 | ||
6859 | wxPyEndAllowThreads(__tstate); | |
6860 | if (PyErr_Occurred()) SWIG_fail; | |
6861 | } | |
6862 | Py_INCREF(Py_None); resultobj = Py_None; | |
6863 | { | |
6864 | if (temp1) | |
6865 | delete arg1; | |
6866 | } | |
6867 | return resultobj; | |
6868 | fail: | |
6869 | { | |
6870 | if (temp1) | |
6871 | delete arg1; | |
6872 | } | |
6873 | return NULL; | |
6874 | } | |
6875 | ||
6876 | ||
6877 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6878 | PyObject *resultobj; | |
6879 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
6880 | wxString *arg2 = 0 ; | |
6881 | bool result; | |
6882 | bool temp2 = false ; | |
6883 | PyObject * obj0 = 0 ; | |
6884 | PyObject * obj1 = 0 ; | |
6885 | char *kwnames[] = { | |
6886 | (char *) "self",(char *) "location", NULL | |
6887 | }; | |
6888 | ||
6889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6891 | { | |
6892 | arg2 = wxString_in_helper(obj1); | |
6893 | if (arg2 == NULL) SWIG_fail; | |
6894 | temp2 = true; | |
6895 | } | |
6896 | { | |
6897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6898 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6899 | ||
6900 | wxPyEndAllowThreads(__tstate); | |
6901 | if (PyErr_Occurred()) SWIG_fail; | |
6902 | } | |
6903 | resultobj = PyInt_FromLong((long)result); | |
6904 | { | |
6905 | if (temp2) | |
6906 | delete arg2; | |
6907 | } | |
6908 | return resultobj; | |
6909 | fail: | |
6910 | { | |
6911 | if (temp2) | |
6912 | delete arg2; | |
6913 | } | |
6914 | return NULL; | |
6915 | } | |
6916 | ||
6917 | ||
6918 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6919 | PyObject *resultobj; | |
6920 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
6921 | wxFileSystem *arg2 = 0 ; | |
6922 | wxString *arg3 = 0 ; | |
6923 | wxFSFile *result; | |
6924 | bool temp3 = false ; | |
6925 | PyObject * obj0 = 0 ; | |
6926 | PyObject * obj1 = 0 ; | |
6927 | PyObject * obj2 = 0 ; | |
6928 | char *kwnames[] = { | |
6929 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6930 | }; | |
6931 | ||
6932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6934 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6935 | if (arg2 == NULL) { | |
6936 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6937 | } | |
6938 | { | |
6939 | arg3 = wxString_in_helper(obj2); | |
6940 | if (arg3 == NULL) SWIG_fail; | |
6941 | temp3 = true; | |
6942 | } | |
6943 | { | |
6944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6945 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6946 | ||
6947 | wxPyEndAllowThreads(__tstate); | |
6948 | if (PyErr_Occurred()) SWIG_fail; | |
6949 | } | |
6950 | { | |
6951 | resultobj = wxPyMake_wxObject(result); | |
6952 | } | |
6953 | { | |
6954 | if (temp3) | |
6955 | delete arg3; | |
6956 | } | |
6957 | return resultobj; | |
6958 | fail: | |
6959 | { | |
6960 | if (temp3) | |
6961 | delete arg3; | |
6962 | } | |
6963 | return NULL; | |
6964 | } | |
6965 | ||
6966 | ||
6967 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6968 | PyObject *resultobj; | |
6969 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
6970 | wxString *arg2 = 0 ; | |
6971 | int arg3 = (int) 0 ; | |
6972 | wxString result; | |
6973 | bool temp2 = false ; | |
6974 | PyObject * obj0 = 0 ; | |
6975 | PyObject * obj1 = 0 ; | |
6976 | char *kwnames[] = { | |
6977 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6978 | }; | |
6979 | ||
6980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6982 | { | |
6983 | arg2 = wxString_in_helper(obj1); | |
6984 | if (arg2 == NULL) SWIG_fail; | |
6985 | temp2 = true; | |
6986 | } | |
6987 | { | |
6988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6989 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6990 | ||
6991 | wxPyEndAllowThreads(__tstate); | |
6992 | if (PyErr_Occurred()) SWIG_fail; | |
6993 | } | |
6994 | { | |
6995 | #if wxUSE_UNICODE | |
6996 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6997 | #else | |
6998 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6999 | #endif | |
7000 | } | |
7001 | { | |
7002 | if (temp2) | |
7003 | delete arg2; | |
7004 | } | |
7005 | return resultobj; | |
7006 | fail: | |
7007 | { | |
7008 | if (temp2) | |
7009 | delete arg2; | |
7010 | } | |
7011 | return NULL; | |
7012 | } | |
7013 | ||
7014 | ||
7015 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7016 | PyObject *resultobj; | |
7017 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7018 | wxString result; | |
7019 | PyObject * obj0 = 0 ; | |
7020 | char *kwnames[] = { | |
7021 | (char *) "self", NULL | |
7022 | }; | |
7023 | ||
7024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7026 | { | |
7027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7028 | result = (arg1)->FindNext(); | |
7029 | ||
7030 | wxPyEndAllowThreads(__tstate); | |
7031 | if (PyErr_Occurred()) SWIG_fail; | |
7032 | } | |
7033 | { | |
7034 | #if wxUSE_UNICODE | |
7035 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7036 | #else | |
7037 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7038 | #endif | |
7039 | } | |
7040 | return resultobj; | |
7041 | fail: | |
7042 | return NULL; | |
7043 | } | |
7044 | ||
7045 | ||
7046 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7047 | PyObject *obj; | |
7048 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7049 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
7050 | Py_INCREF(obj); | |
7051 | return Py_BuildValue((char *)""); | |
7052 | } | |
7053 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7054 | PyObject *resultobj; | |
7055 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7056 | wxString result; | |
7057 | PyObject * obj0 = 0 ; | |
7058 | char *kwnames[] = { | |
7059 | (char *) "self", NULL | |
7060 | }; | |
7061 | ||
7062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
7063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7064 | { | |
7065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7066 | result = (arg1)->GetName(); | |
7067 | ||
7068 | wxPyEndAllowThreads(__tstate); | |
7069 | if (PyErr_Occurred()) SWIG_fail; | |
7070 | } | |
7071 | { | |
7072 | #if wxUSE_UNICODE | |
7073 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7074 | #else | |
7075 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7076 | #endif | |
7077 | } | |
7078 | return resultobj; | |
7079 | fail: | |
7080 | return NULL; | |
7081 | } | |
7082 | ||
7083 | ||
7084 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7085 | PyObject *resultobj; | |
7086 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7087 | wxString result; | |
7088 | PyObject * obj0 = 0 ; | |
7089 | char *kwnames[] = { | |
7090 | (char *) "self", NULL | |
7091 | }; | |
7092 | ||
7093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
7094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7095 | { | |
7096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7097 | result = (arg1)->GetExtension(); | |
7098 | ||
7099 | wxPyEndAllowThreads(__tstate); | |
7100 | if (PyErr_Occurred()) SWIG_fail; | |
7101 | } | |
7102 | { | |
7103 | #if wxUSE_UNICODE | |
7104 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7105 | #else | |
7106 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7107 | #endif | |
7108 | } | |
7109 | return resultobj; | |
7110 | fail: | |
7111 | return NULL; | |
7112 | } | |
7113 | ||
7114 | ||
7115 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7116 | PyObject *resultobj; | |
7117 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7118 | long result; | |
7119 | PyObject * obj0 = 0 ; | |
7120 | char *kwnames[] = { | |
7121 | (char *) "self", NULL | |
7122 | }; | |
7123 | ||
7124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
7125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7126 | { | |
7127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7128 | result = (long)(arg1)->GetType(); | |
7129 | ||
7130 | wxPyEndAllowThreads(__tstate); | |
7131 | if (PyErr_Occurred()) SWIG_fail; | |
7132 | } | |
7133 | resultobj = PyInt_FromLong((long)result); | |
7134 | return resultobj; | |
7135 | fail: | |
7136 | return NULL; | |
7137 | } | |
7138 | ||
7139 | ||
7140 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7141 | PyObject *resultobj; | |
7142 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7143 | wxString result; | |
7144 | PyObject * obj0 = 0 ; | |
7145 | char *kwnames[] = { | |
7146 | (char *) "self", NULL | |
7147 | }; | |
7148 | ||
7149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
7150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7151 | { | |
7152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7153 | result = (arg1)->GetMimeType(); | |
7154 | ||
7155 | wxPyEndAllowThreads(__tstate); | |
7156 | if (PyErr_Occurred()) SWIG_fail; | |
7157 | } | |
7158 | { | |
7159 | #if wxUSE_UNICODE | |
7160 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7161 | #else | |
7162 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7163 | #endif | |
7164 | } | |
7165 | return resultobj; | |
7166 | fail: | |
7167 | return NULL; | |
7168 | } | |
7169 | ||
7170 | ||
7171 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7172 | PyObject *resultobj; | |
7173 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7174 | wxString *arg2 = 0 ; | |
7175 | bool result; | |
7176 | bool temp2 = false ; | |
7177 | PyObject * obj0 = 0 ; | |
7178 | PyObject * obj1 = 0 ; | |
7179 | char *kwnames[] = { | |
7180 | (char *) "self",(char *) "name", NULL | |
7181 | }; | |
7182 | ||
7183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
7184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7185 | { | |
7186 | arg2 = wxString_in_helper(obj1); | |
7187 | if (arg2 == NULL) SWIG_fail; | |
7188 | temp2 = true; | |
7189 | } | |
7190 | { | |
7191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7192 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
7193 | ||
7194 | wxPyEndAllowThreads(__tstate); | |
7195 | if (PyErr_Occurred()) SWIG_fail; | |
7196 | } | |
7197 | resultobj = PyInt_FromLong((long)result); | |
7198 | { | |
7199 | if (temp2) | |
7200 | delete arg2; | |
7201 | } | |
7202 | return resultobj; | |
7203 | fail: | |
7204 | { | |
7205 | if (temp2) | |
7206 | delete arg2; | |
7207 | } | |
7208 | return NULL; | |
7209 | } | |
7210 | ||
7211 | ||
7212 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7213 | PyObject *resultobj; | |
7214 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7215 | wxString *arg2 = 0 ; | |
7216 | bool temp2 = false ; | |
7217 | PyObject * obj0 = 0 ; | |
7218 | PyObject * obj1 = 0 ; | |
7219 | char *kwnames[] = { | |
7220 | (char *) "self",(char *) "name", NULL | |
7221 | }; | |
7222 | ||
7223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
7224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7225 | { | |
7226 | arg2 = wxString_in_helper(obj1); | |
7227 | if (arg2 == NULL) SWIG_fail; | |
7228 | temp2 = true; | |
7229 | } | |
7230 | { | |
7231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7232 | (arg1)->SetName((wxString const &)*arg2); | |
7233 | ||
7234 | wxPyEndAllowThreads(__tstate); | |
7235 | if (PyErr_Occurred()) SWIG_fail; | |
7236 | } | |
7237 | Py_INCREF(Py_None); resultobj = Py_None; | |
7238 | { | |
7239 | if (temp2) | |
7240 | delete arg2; | |
7241 | } | |
7242 | return resultobj; | |
7243 | fail: | |
7244 | { | |
7245 | if (temp2) | |
7246 | delete arg2; | |
7247 | } | |
7248 | return NULL; | |
7249 | } | |
7250 | ||
7251 | ||
7252 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7253 | PyObject *resultobj; | |
7254 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7255 | wxString *arg2 = 0 ; | |
7256 | bool temp2 = false ; | |
7257 | PyObject * obj0 = 0 ; | |
7258 | PyObject * obj1 = 0 ; | |
7259 | char *kwnames[] = { | |
7260 | (char *) "self",(char *) "extension", NULL | |
7261 | }; | |
7262 | ||
7263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
7264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7265 | { | |
7266 | arg2 = wxString_in_helper(obj1); | |
7267 | if (arg2 == NULL) SWIG_fail; | |
7268 | temp2 = true; | |
7269 | } | |
7270 | { | |
7271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7272 | (arg1)->SetExtension((wxString const &)*arg2); | |
7273 | ||
7274 | wxPyEndAllowThreads(__tstate); | |
7275 | if (PyErr_Occurred()) SWIG_fail; | |
7276 | } | |
7277 | Py_INCREF(Py_None); resultobj = Py_None; | |
7278 | { | |
7279 | if (temp2) | |
7280 | delete arg2; | |
7281 | } | |
7282 | return resultobj; | |
7283 | fail: | |
7284 | { | |
7285 | if (temp2) | |
7286 | delete arg2; | |
7287 | } | |
7288 | return NULL; | |
7289 | } | |
7290 | ||
7291 | ||
7292 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7293 | PyObject *resultobj; | |
7294 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7295 | long arg2 ; | |
7296 | PyObject * obj0 = 0 ; | |
7297 | char *kwnames[] = { | |
7298 | (char *) "self",(char *) "type", NULL | |
7299 | }; | |
7300 | ||
7301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ImageHandler_SetType",kwnames,&obj0,&arg2)) goto fail; | |
7302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7303 | { | |
7304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7305 | (arg1)->SetType(arg2); | |
7306 | ||
7307 | wxPyEndAllowThreads(__tstate); | |
7308 | if (PyErr_Occurred()) SWIG_fail; | |
7309 | } | |
7310 | Py_INCREF(Py_None); resultobj = Py_None; | |
7311 | return resultobj; | |
7312 | fail: | |
7313 | return NULL; | |
7314 | } | |
7315 | ||
7316 | ||
7317 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7318 | PyObject *resultobj; | |
7319 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7320 | wxString *arg2 = 0 ; | |
7321 | bool temp2 = false ; | |
7322 | PyObject * obj0 = 0 ; | |
7323 | PyObject * obj1 = 0 ; | |
7324 | char *kwnames[] = { | |
7325 | (char *) "self",(char *) "mimetype", NULL | |
7326 | }; | |
7327 | ||
7328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
7329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7330 | { | |
7331 | arg2 = wxString_in_helper(obj1); | |
7332 | if (arg2 == NULL) SWIG_fail; | |
7333 | temp2 = true; | |
7334 | } | |
7335 | { | |
7336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7337 | (arg1)->SetMimeType((wxString const &)*arg2); | |
7338 | ||
7339 | wxPyEndAllowThreads(__tstate); | |
7340 | if (PyErr_Occurred()) SWIG_fail; | |
7341 | } | |
7342 | Py_INCREF(Py_None); resultobj = Py_None; | |
7343 | { | |
7344 | if (temp2) | |
7345 | delete arg2; | |
7346 | } | |
7347 | return resultobj; | |
7348 | fail: | |
7349 | { | |
7350 | if (temp2) | |
7351 | delete arg2; | |
7352 | } | |
7353 | return NULL; | |
7354 | } | |
7355 | ||
7356 | ||
7357 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
7358 | PyObject *obj; | |
7359 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7360 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
7361 | Py_INCREF(obj); | |
7362 | return Py_BuildValue((char *)""); | |
7363 | } | |
7364 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7365 | PyObject *resultobj; | |
7366 | wxImageHistogram *result; | |
7367 | char *kwnames[] = { | |
7368 | NULL | |
7369 | }; | |
7370 | ||
7371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
7372 | { | |
7373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7374 | result = (wxImageHistogram *)new wxImageHistogram(); | |
7375 | ||
7376 | wxPyEndAllowThreads(__tstate); | |
7377 | if (PyErr_Occurred()) SWIG_fail; | |
7378 | } | |
7379 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImageHistogram, 1); | |
7380 | return resultobj; | |
7381 | fail: | |
7382 | return NULL; | |
7383 | } | |
7384 | ||
7385 | ||
7386 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7387 | PyObject *resultobj; | |
7388 | unsigned char arg1 ; | |
7389 | unsigned char arg2 ; | |
7390 | unsigned char arg3 ; | |
7391 | unsigned long result; | |
7392 | PyObject * obj0 = 0 ; | |
7393 | PyObject * obj1 = 0 ; | |
7394 | PyObject * obj2 = 0 ; | |
7395 | char *kwnames[] = { | |
7396 | (char *) "r",(char *) "g",(char *) "b", NULL | |
7397 | }; | |
7398 | ||
7399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7400 | arg1 = (unsigned char) PyInt_AsLong(obj0); | |
7401 | if (PyErr_Occurred()) SWIG_fail; | |
7402 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
7403 | if (PyErr_Occurred()) SWIG_fail; | |
7404 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
7405 | if (PyErr_Occurred()) SWIG_fail; | |
7406 | { | |
7407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7408 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
7409 | ||
7410 | wxPyEndAllowThreads(__tstate); | |
7411 | if (PyErr_Occurred()) SWIG_fail; | |
7412 | } | |
7413 | resultobj = PyInt_FromLong((long)result); | |
7414 | return resultobj; | |
7415 | fail: | |
7416 | return NULL; | |
7417 | } | |
7418 | ||
7419 | ||
7420 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7421 | PyObject *resultobj; | |
7422 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
7423 | unsigned char *arg2 = (unsigned char *) 0 ; | |
7424 | unsigned char *arg3 = (unsigned char *) 0 ; | |
7425 | unsigned char *arg4 = (unsigned char *) 0 ; | |
7426 | unsigned char arg5 = (unsigned char) 1 ; | |
7427 | unsigned char arg6 = (unsigned char) 0 ; | |
7428 | unsigned char arg7 = (unsigned char) 0 ; | |
7429 | bool result; | |
7430 | unsigned char temp2 ; | |
7431 | unsigned char temp3 ; | |
7432 | unsigned char temp4 ; | |
7433 | PyObject * obj0 = 0 ; | |
7434 | PyObject * obj1 = 0 ; | |
7435 | PyObject * obj2 = 0 ; | |
7436 | PyObject * obj3 = 0 ; | |
7437 | char *kwnames[] = { | |
7438 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
7439 | }; | |
7440 | ||
7441 | arg2 = &temp2; | |
7442 | arg3 = &temp3; | |
7443 | arg4 = &temp4; | |
7444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7446 | if (obj1) { | |
7447 | arg5 = (unsigned char) PyInt_AsLong(obj1); | |
7448 | if (PyErr_Occurred()) SWIG_fail; | |
7449 | } | |
7450 | if (obj2) { | |
7451 | arg6 = (unsigned char) PyInt_AsLong(obj2); | |
7452 | if (PyErr_Occurred()) SWIG_fail; | |
7453 | } | |
7454 | if (obj3) { | |
7455 | arg7 = (unsigned char) PyInt_AsLong(obj3); | |
7456 | if (PyErr_Occurred()) SWIG_fail; | |
7457 | } | |
7458 | { | |
7459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7460 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
7461 | ||
7462 | wxPyEndAllowThreads(__tstate); | |
7463 | if (PyErr_Occurred()) SWIG_fail; | |
7464 | } | |
7465 | resultobj = PyInt_FromLong((long)result); | |
7466 | { | |
7467 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
7468 | resultobj = t_output_helper(resultobj,o); | |
7469 | } | |
7470 | { | |
7471 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7472 | resultobj = t_output_helper(resultobj,o); | |
7473 | } | |
7474 | { | |
7475 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
7476 | resultobj = t_output_helper(resultobj,o); | |
7477 | } | |
7478 | return resultobj; | |
7479 | fail: | |
7480 | return NULL; | |
7481 | } | |
7482 | ||
7483 | ||
7484 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
7485 | PyObject *obj; | |
7486 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7487 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
7488 | Py_INCREF(obj); | |
7489 | return Py_BuildValue((char *)""); | |
7490 | } | |
7491 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7492 | PyObject *resultobj; | |
7493 | wxString *arg1 = 0 ; | |
7494 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
7495 | int arg3 = (int) -1 ; | |
7496 | wxImage *result; | |
7497 | bool temp1 = false ; | |
7498 | PyObject * obj0 = 0 ; | |
7499 | char *kwnames[] = { | |
7500 | (char *) "name",(char *) "type",(char *) "index", NULL | |
7501 | }; | |
7502 | ||
7503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|li:new_Image",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7504 | { | |
7505 | arg1 = wxString_in_helper(obj0); | |
7506 | if (arg1 == NULL) SWIG_fail; | |
7507 | temp1 = true; | |
7508 | } | |
7509 | { | |
7510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7511 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
7512 | ||
7513 | wxPyEndAllowThreads(__tstate); | |
7514 | if (PyErr_Occurred()) SWIG_fail; | |
7515 | } | |
7516 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7517 | { | |
7518 | if (temp1) | |
7519 | delete arg1; | |
7520 | } | |
7521 | return resultobj; | |
7522 | fail: | |
7523 | { | |
7524 | if (temp1) | |
7525 | delete arg1; | |
7526 | } | |
7527 | return NULL; | |
7528 | } | |
7529 | ||
7530 | ||
7531 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7532 | PyObject *resultobj; | |
7533 | wxImage *arg1 = (wxImage *) 0 ; | |
7534 | PyObject * obj0 = 0 ; | |
7535 | char *kwnames[] = { | |
7536 | (char *) "self", NULL | |
7537 | }; | |
7538 | ||
7539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
7540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7541 | { | |
7542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7543 | delete arg1; | |
7544 | ||
7545 | wxPyEndAllowThreads(__tstate); | |
7546 | if (PyErr_Occurred()) SWIG_fail; | |
7547 | } | |
7548 | Py_INCREF(Py_None); resultobj = Py_None; | |
7549 | return resultobj; | |
7550 | fail: | |
7551 | return NULL; | |
7552 | } | |
7553 | ||
7554 | ||
7555 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7556 | PyObject *resultobj; | |
7557 | wxString *arg1 = 0 ; | |
7558 | wxString *arg2 = 0 ; | |
7559 | int arg3 = (int) -1 ; | |
7560 | wxImage *result; | |
7561 | bool temp1 = false ; | |
7562 | bool temp2 = false ; | |
7563 | PyObject * obj0 = 0 ; | |
7564 | PyObject * obj1 = 0 ; | |
7565 | char *kwnames[] = { | |
7566 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
7567 | }; | |
7568 | ||
7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:new_ImageFromMime",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
7570 | { | |
7571 | arg1 = wxString_in_helper(obj0); | |
7572 | if (arg1 == NULL) SWIG_fail; | |
7573 | temp1 = true; | |
7574 | } | |
7575 | { | |
7576 | arg2 = wxString_in_helper(obj1); | |
7577 | if (arg2 == NULL) SWIG_fail; | |
7578 | temp2 = true; | |
7579 | } | |
7580 | { | |
7581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7582 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
7583 | ||
7584 | wxPyEndAllowThreads(__tstate); | |
7585 | if (PyErr_Occurred()) SWIG_fail; | |
7586 | } | |
7587 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7588 | { | |
7589 | if (temp1) | |
7590 | delete arg1; | |
7591 | } | |
7592 | { | |
7593 | if (temp2) | |
7594 | delete arg2; | |
7595 | } | |
7596 | return resultobj; | |
7597 | fail: | |
7598 | { | |
7599 | if (temp1) | |
7600 | delete arg1; | |
7601 | } | |
7602 | { | |
7603 | if (temp2) | |
7604 | delete arg2; | |
7605 | } | |
7606 | return NULL; | |
7607 | } | |
7608 | ||
7609 | ||
7610 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7611 | PyObject *resultobj; | |
7612 | wxInputStream *arg1 = 0 ; | |
7613 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
7614 | int arg3 = (int) -1 ; | |
7615 | wxImage *result; | |
7616 | wxPyInputStream *temp1 ; | |
7617 | bool created1 ; | |
7618 | PyObject * obj0 = 0 ; | |
7619 | char *kwnames[] = { | |
7620 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
7621 | }; | |
7622 | ||
7623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|li:new_ImageFromStream",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7624 | { | |
7625 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
7626 | arg1 = temp1->m_wxis; | |
7627 | created1 = false; | |
7628 | } else { | |
7629 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
7630 | arg1 = wxPyCBInputStream_create(obj0, false); | |
7631 | if (arg1 == NULL) { | |
7632 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
7633 | SWIG_fail; | |
7634 | } | |
7635 | created1 = true; | |
7636 | } | |
7637 | } | |
7638 | { | |
7639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7640 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
7641 | ||
7642 | wxPyEndAllowThreads(__tstate); | |
7643 | if (PyErr_Occurred()) SWIG_fail; | |
7644 | } | |
7645 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7646 | { | |
7647 | if (created1) | |
7648 | delete arg1; | |
7649 | } | |
7650 | return resultobj; | |
7651 | fail: | |
7652 | { | |
7653 | if (created1) | |
7654 | delete arg1; | |
7655 | } | |
7656 | return NULL; | |
7657 | } | |
7658 | ||
7659 | ||
7660 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7661 | PyObject *resultobj; | |
7662 | wxInputStream *arg1 = 0 ; | |
7663 | wxString *arg2 = 0 ; | |
7664 | int arg3 = (int) -1 ; | |
7665 | wxImage *result; | |
7666 | wxPyInputStream *temp1 ; | |
7667 | bool created1 ; | |
7668 | bool temp2 = false ; | |
7669 | PyObject * obj0 = 0 ; | |
7670 | PyObject * obj1 = 0 ; | |
7671 | char *kwnames[] = { | |
7672 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
7673 | }; | |
7674 | ||
7675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
7676 | { | |
7677 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
7678 | arg1 = temp1->m_wxis; | |
7679 | created1 = false; | |
7680 | } else { | |
7681 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
7682 | arg1 = wxPyCBInputStream_create(obj0, false); | |
7683 | if (arg1 == NULL) { | |
7684 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
7685 | SWIG_fail; | |
7686 | } | |
7687 | created1 = true; | |
7688 | } | |
7689 | } | |
7690 | { | |
7691 | arg2 = wxString_in_helper(obj1); | |
7692 | if (arg2 == NULL) SWIG_fail; | |
7693 | temp2 = true; | |
7694 | } | |
7695 | { | |
7696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7697 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
7698 | ||
7699 | wxPyEndAllowThreads(__tstate); | |
7700 | if (PyErr_Occurred()) SWIG_fail; | |
7701 | } | |
7702 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7703 | { | |
7704 | if (created1) | |
7705 | delete arg1; | |
7706 | } | |
7707 | { | |
7708 | if (temp2) | |
7709 | delete arg2; | |
7710 | } | |
7711 | return resultobj; | |
7712 | fail: | |
7713 | { | |
7714 | if (created1) | |
7715 | delete arg1; | |
7716 | } | |
7717 | { | |
7718 | if (temp2) | |
7719 | delete arg2; | |
7720 | } | |
7721 | return NULL; | |
7722 | } | |
7723 | ||
7724 | ||
7725 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7726 | PyObject *resultobj; | |
7727 | int arg1 = (int) 0 ; | |
7728 | int arg2 = (int) 0 ; | |
7729 | bool arg3 = (bool) TRUE ; | |
7730 | wxImage *result; | |
7731 | PyObject * obj2 = 0 ; | |
7732 | char *kwnames[] = { | |
7733 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
7734 | }; | |
7735 | ||
7736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_EmptyImage",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
7737 | if (obj2) { | |
7738 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
7739 | if (PyErr_Occurred()) SWIG_fail; | |
7740 | } | |
7741 | { | |
7742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7743 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
7744 | ||
7745 | wxPyEndAllowThreads(__tstate); | |
7746 | if (PyErr_Occurred()) SWIG_fail; | |
7747 | } | |
7748 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7749 | return resultobj; | |
7750 | fail: | |
7751 | return NULL; | |
7752 | } | |
7753 | ||
7754 | ||
7755 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7756 | PyObject *resultobj; | |
7757 | wxBitmap *arg1 = 0 ; | |
7758 | wxImage *result; | |
7759 | PyObject * obj0 = 0 ; | |
7760 | char *kwnames[] = { | |
7761 | (char *) "bitmap", NULL | |
7762 | }; | |
7763 | ||
7764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
7765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7766 | if (arg1 == NULL) { | |
7767 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7768 | } | |
7769 | { | |
7770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7771 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
7772 | ||
7773 | wxPyEndAllowThreads(__tstate); | |
7774 | if (PyErr_Occurred()) SWIG_fail; | |
7775 | } | |
7776 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7777 | return resultobj; | |
7778 | fail: | |
7779 | return NULL; | |
7780 | } | |
7781 | ||
7782 | ||
7783 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7784 | PyObject *resultobj; | |
7785 | int arg1 ; | |
7786 | int arg2 ; | |
7787 | unsigned char *arg3 = (unsigned char *) 0 ; | |
7788 | wxImage *result; | |
7789 | PyObject * obj2 = 0 ; | |
7790 | char *kwnames[] = { | |
7791 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7792 | }; | |
7793 | ||
7794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiO:new_ImageFromData",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
7795 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7796 | { | |
7797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7798 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
7799 | ||
7800 | wxPyEndAllowThreads(__tstate); | |
7801 | if (PyErr_Occurred()) SWIG_fail; | |
7802 | } | |
7803 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7804 | return resultobj; | |
7805 | fail: | |
7806 | return NULL; | |
7807 | } | |
7808 | ||
7809 | ||
7810 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7811 | PyObject *resultobj; | |
7812 | wxImage *arg1 = (wxImage *) 0 ; | |
7813 | int arg2 ; | |
7814 | int arg3 ; | |
7815 | PyObject * obj0 = 0 ; | |
7816 | char *kwnames[] = { | |
7817 | (char *) "self",(char *) "width",(char *) "height", NULL | |
7818 | }; | |
7819 | ||
7820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_Create",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7822 | { | |
7823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7824 | (arg1)->Create(arg2,arg3); | |
7825 | ||
7826 | wxPyEndAllowThreads(__tstate); | |
7827 | if (PyErr_Occurred()) SWIG_fail; | |
7828 | } | |
7829 | Py_INCREF(Py_None); resultobj = Py_None; | |
7830 | return resultobj; | |
7831 | fail: | |
7832 | return NULL; | |
7833 | } | |
7834 | ||
7835 | ||
7836 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7837 | PyObject *resultobj; | |
7838 | wxImage *arg1 = (wxImage *) 0 ; | |
7839 | PyObject * obj0 = 0 ; | |
7840 | char *kwnames[] = { | |
7841 | (char *) "self", NULL | |
7842 | }; | |
7843 | ||
7844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
7845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7846 | { | |
7847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7848 | (arg1)->Destroy(); | |
7849 | ||
7850 | wxPyEndAllowThreads(__tstate); | |
7851 | if (PyErr_Occurred()) SWIG_fail; | |
7852 | } | |
7853 | Py_INCREF(Py_None); resultobj = Py_None; | |
7854 | return resultobj; | |
7855 | fail: | |
7856 | return NULL; | |
7857 | } | |
7858 | ||
7859 | ||
7860 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7861 | PyObject *resultobj; | |
7862 | wxImage *arg1 = (wxImage *) 0 ; | |
7863 | int arg2 ; | |
7864 | int arg3 ; | |
7865 | SwigValueWrapper< wxImage > result; | |
7866 | PyObject * obj0 = 0 ; | |
7867 | char *kwnames[] = { | |
7868 | (char *) "self",(char *) "width",(char *) "height", NULL | |
7869 | }; | |
7870 | ||
7871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_Scale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7873 | { | |
7874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7875 | result = (arg1)->Scale(arg2,arg3); | |
7876 | ||
7877 | wxPyEndAllowThreads(__tstate); | |
7878 | if (PyErr_Occurred()) SWIG_fail; | |
7879 | } | |
7880 | { | |
7881 | wxImage * resultptr; | |
7882 | resultptr = new wxImage((wxImage &) result); | |
7883 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
7884 | } | |
7885 | return resultobj; | |
7886 | fail: | |
7887 | return NULL; | |
7888 | } | |
7889 | ||
7890 | ||
7891 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7892 | PyObject *resultobj; | |
7893 | wxImage *arg1 = (wxImage *) 0 ; | |
7894 | int arg2 ; | |
7895 | int arg3 ; | |
7896 | SwigValueWrapper< wxImage > result; | |
7897 | PyObject * obj0 = 0 ; | |
7898 | char *kwnames[] = { | |
7899 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
7900 | }; | |
7901 | ||
7902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_ShrinkBy",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7904 | { | |
7905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7906 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
7907 | ||
7908 | wxPyEndAllowThreads(__tstate); | |
7909 | if (PyErr_Occurred()) SWIG_fail; | |
7910 | } | |
7911 | { | |
7912 | wxImage * resultptr; | |
7913 | resultptr = new wxImage((wxImage &) result); | |
7914 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
7915 | } | |
7916 | return resultobj; | |
7917 | fail: | |
7918 | return NULL; | |
7919 | } | |
7920 | ||
7921 | ||
7922 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7923 | PyObject *resultobj; | |
7924 | wxImage *arg1 = (wxImage *) 0 ; | |
7925 | int arg2 ; | |
7926 | int arg3 ; | |
7927 | wxImage *result; | |
7928 | PyObject * obj0 = 0 ; | |
7929 | char *kwnames[] = { | |
7930 | (char *) "self",(char *) "width",(char *) "height", NULL | |
7931 | }; | |
7932 | ||
7933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_Rescale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7935 | { | |
7936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7937 | { | |
7938 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
7939 | result = (wxImage *) &_result_ref; | |
7940 | } | |
7941 | ||
7942 | wxPyEndAllowThreads(__tstate); | |
7943 | if (PyErr_Occurred()) SWIG_fail; | |
7944 | } | |
7945 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 0); | |
7946 | return resultobj; | |
7947 | fail: | |
7948 | return NULL; | |
7949 | } | |
7950 | ||
7951 | ||
7952 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7953 | PyObject *resultobj; | |
7954 | wxImage *arg1 = (wxImage *) 0 ; | |
7955 | int arg2 ; | |
7956 | int arg3 ; | |
7957 | unsigned char arg4 ; | |
7958 | unsigned char arg5 ; | |
7959 | unsigned char arg6 ; | |
7960 | PyObject * obj0 = 0 ; | |
7961 | PyObject * obj3 = 0 ; | |
7962 | PyObject * obj4 = 0 ; | |
7963 | PyObject * obj5 = 0 ; | |
7964 | char *kwnames[] = { | |
7965 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
7966 | }; | |
7967 | ||
7968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiOOO:Image_SetRGB",kwnames,&obj0,&arg2,&arg3,&obj3,&obj4,&obj5)) goto fail; | |
7969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7970 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
7971 | if (PyErr_Occurred()) SWIG_fail; | |
7972 | arg5 = (unsigned char) PyInt_AsLong(obj4); | |
7973 | if (PyErr_Occurred()) SWIG_fail; | |
7974 | arg6 = (unsigned char) PyInt_AsLong(obj5); | |
7975 | if (PyErr_Occurred()) SWIG_fail; | |
7976 | { | |
7977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7978 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
7979 | ||
7980 | wxPyEndAllowThreads(__tstate); | |
7981 | if (PyErr_Occurred()) SWIG_fail; | |
7982 | } | |
7983 | Py_INCREF(Py_None); resultobj = Py_None; | |
7984 | return resultobj; | |
7985 | fail: | |
7986 | return NULL; | |
7987 | } | |
7988 | ||
7989 | ||
7990 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7991 | PyObject *resultobj; | |
7992 | wxImage *arg1 = (wxImage *) 0 ; | |
7993 | int arg2 ; | |
7994 | int arg3 ; | |
7995 | unsigned char result; | |
7996 | PyObject * obj0 = 0 ; | |
7997 | char *kwnames[] = { | |
7998 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7999 | }; | |
8000 | ||
8001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetRed",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8003 | { | |
8004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8005 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
8006 | ||
8007 | wxPyEndAllowThreads(__tstate); | |
8008 | if (PyErr_Occurred()) SWIG_fail; | |
8009 | } | |
8010 | resultobj = PyInt_FromLong((long)result); | |
8011 | return resultobj; | |
8012 | fail: | |
8013 | return NULL; | |
8014 | } | |
8015 | ||
8016 | ||
8017 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8018 | PyObject *resultobj; | |
8019 | wxImage *arg1 = (wxImage *) 0 ; | |
8020 | int arg2 ; | |
8021 | int arg3 ; | |
8022 | unsigned char result; | |
8023 | PyObject * obj0 = 0 ; | |
8024 | char *kwnames[] = { | |
8025 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8026 | }; | |
8027 | ||
8028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetGreen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8030 | { | |
8031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8032 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
8033 | ||
8034 | wxPyEndAllowThreads(__tstate); | |
8035 | if (PyErr_Occurred()) SWIG_fail; | |
8036 | } | |
8037 | resultobj = PyInt_FromLong((long)result); | |
8038 | return resultobj; | |
8039 | fail: | |
8040 | return NULL; | |
8041 | } | |
8042 | ||
8043 | ||
8044 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8045 | PyObject *resultobj; | |
8046 | wxImage *arg1 = (wxImage *) 0 ; | |
8047 | int arg2 ; | |
8048 | int arg3 ; | |
8049 | unsigned char result; | |
8050 | PyObject * obj0 = 0 ; | |
8051 | char *kwnames[] = { | |
8052 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8053 | }; | |
8054 | ||
8055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetBlue",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8057 | { | |
8058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8059 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
8060 | ||
8061 | wxPyEndAllowThreads(__tstate); | |
8062 | if (PyErr_Occurred()) SWIG_fail; | |
8063 | } | |
8064 | resultobj = PyInt_FromLong((long)result); | |
8065 | return resultobj; | |
8066 | fail: | |
8067 | return NULL; | |
8068 | } | |
8069 | ||
8070 | ||
8071 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8072 | PyObject *resultobj; | |
8073 | wxImage *arg1 = (wxImage *) 0 ; | |
8074 | int arg2 ; | |
8075 | int arg3 ; | |
8076 | unsigned char arg4 ; | |
8077 | PyObject * obj0 = 0 ; | |
8078 | PyObject * obj3 = 0 ; | |
8079 | char *kwnames[] = { | |
8080 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
8081 | }; | |
8082 | ||
8083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Image_SetAlpha",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
8084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8085 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
8086 | if (PyErr_Occurred()) SWIG_fail; | |
8087 | { | |
8088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8089 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
8090 | ||
8091 | wxPyEndAllowThreads(__tstate); | |
8092 | if (PyErr_Occurred()) SWIG_fail; | |
8093 | } | |
8094 | Py_INCREF(Py_None); resultobj = Py_None; | |
8095 | return resultobj; | |
8096 | fail: | |
8097 | return NULL; | |
8098 | } | |
8099 | ||
8100 | ||
8101 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8102 | PyObject *resultobj; | |
8103 | wxImage *arg1 = (wxImage *) 0 ; | |
8104 | int arg2 ; | |
8105 | int arg3 ; | |
8106 | unsigned char result; | |
8107 | PyObject * obj0 = 0 ; | |
8108 | char *kwnames[] = { | |
8109 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8110 | }; | |
8111 | ||
8112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetAlpha",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8114 | { | |
8115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8116 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
8117 | ||
8118 | wxPyEndAllowThreads(__tstate); | |
8119 | if (PyErr_Occurred()) SWIG_fail; | |
8120 | } | |
8121 | resultobj = PyInt_FromLong((long)result); | |
8122 | return resultobj; | |
8123 | fail: | |
8124 | return NULL; | |
8125 | } | |
8126 | ||
8127 | ||
8128 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8129 | PyObject *resultobj; | |
8130 | wxImage *arg1 = (wxImage *) 0 ; | |
8131 | bool result; | |
8132 | PyObject * obj0 = 0 ; | |
8133 | char *kwnames[] = { | |
8134 | (char *) "self", NULL | |
8135 | }; | |
8136 | ||
8137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
8138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8139 | { | |
8140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8141 | result = (bool)(arg1)->HasAlpha(); | |
8142 | ||
8143 | wxPyEndAllowThreads(__tstate); | |
8144 | if (PyErr_Occurred()) SWIG_fail; | |
8145 | } | |
8146 | resultobj = PyInt_FromLong((long)result); | |
8147 | return resultobj; | |
8148 | fail: | |
8149 | return NULL; | |
8150 | } | |
8151 | ||
8152 | ||
8153 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8154 | PyObject *resultobj; | |
8155 | wxImage *arg1 = (wxImage *) 0 ; | |
8156 | byte *arg2 = (byte *) 0 ; | |
8157 | byte *arg3 = (byte *) 0 ; | |
8158 | byte *arg4 = (byte *) 0 ; | |
8159 | byte arg5 = (byte) 0 ; | |
8160 | byte arg6 = (byte) 0 ; | |
8161 | byte arg7 = (byte) 0 ; | |
8162 | bool result; | |
8163 | byte temp2 ; | |
8164 | byte temp3 ; | |
8165 | byte temp4 ; | |
8166 | PyObject * obj0 = 0 ; | |
8167 | PyObject * obj1 = 0 ; | |
8168 | PyObject * obj2 = 0 ; | |
8169 | PyObject * obj3 = 0 ; | |
8170 | char *kwnames[] = { | |
8171 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8172 | }; | |
8173 | ||
8174 | arg2 = &temp2; | |
8175 | arg3 = &temp3; | |
8176 | arg4 = &temp4; | |
8177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8179 | if (obj1) { | |
8180 | arg5 = (byte) PyInt_AsLong(obj1); | |
8181 | if (PyErr_Occurred()) SWIG_fail; | |
8182 | } | |
8183 | if (obj2) { | |
8184 | arg6 = (byte) PyInt_AsLong(obj2); | |
8185 | if (PyErr_Occurred()) SWIG_fail; | |
8186 | } | |
8187 | if (obj3) { | |
8188 | arg7 = (byte) PyInt_AsLong(obj3); | |
8189 | if (PyErr_Occurred()) SWIG_fail; | |
8190 | } | |
8191 | { | |
8192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8193 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8194 | ||
8195 | wxPyEndAllowThreads(__tstate); | |
8196 | if (PyErr_Occurred()) SWIG_fail; | |
8197 | } | |
8198 | resultobj = PyInt_FromLong((long)result); | |
8199 | { | |
8200 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8201 | resultobj = t_output_helper(resultobj,o); | |
8202 | } | |
8203 | { | |
8204 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8205 | resultobj = t_output_helper(resultobj,o); | |
8206 | } | |
8207 | { | |
8208 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8209 | resultobj = t_output_helper(resultobj,o); | |
8210 | } | |
8211 | return resultobj; | |
8212 | fail: | |
8213 | return NULL; | |
8214 | } | |
8215 | ||
8216 | ||
8217 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8218 | PyObject *resultobj; | |
8219 | wxImage *arg1 = (wxImage *) 0 ; | |
8220 | wxImage *arg2 = 0 ; | |
8221 | byte arg3 ; | |
8222 | byte arg4 ; | |
8223 | byte arg5 ; | |
8224 | bool result; | |
8225 | PyObject * obj0 = 0 ; | |
8226 | PyObject * obj1 = 0 ; | |
8227 | PyObject * obj2 = 0 ; | |
8228 | PyObject * obj3 = 0 ; | |
8229 | PyObject * obj4 = 0 ; | |
8230 | char *kwnames[] = { | |
8231 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
8232 | }; | |
8233 | ||
8234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8236 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8237 | if (arg2 == NULL) { | |
8238 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8239 | } | |
8240 | arg3 = (byte) PyInt_AsLong(obj2); | |
8241 | if (PyErr_Occurred()) SWIG_fail; | |
8242 | arg4 = (byte) PyInt_AsLong(obj3); | |
8243 | if (PyErr_Occurred()) SWIG_fail; | |
8244 | arg5 = (byte) PyInt_AsLong(obj4); | |
8245 | if (PyErr_Occurred()) SWIG_fail; | |
8246 | { | |
8247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8248 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
8249 | ||
8250 | wxPyEndAllowThreads(__tstate); | |
8251 | if (PyErr_Occurred()) SWIG_fail; | |
8252 | } | |
8253 | resultobj = PyInt_FromLong((long)result); | |
8254 | return resultobj; | |
8255 | fail: | |
8256 | return NULL; | |
8257 | } | |
8258 | ||
8259 | ||
8260 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8261 | PyObject *resultobj; | |
8262 | wxString *arg1 = 0 ; | |
8263 | bool result; | |
8264 | bool temp1 = false ; | |
8265 | PyObject * obj0 = 0 ; | |
8266 | char *kwnames[] = { | |
8267 | (char *) "name", NULL | |
8268 | }; | |
8269 | ||
8270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
8271 | { | |
8272 | arg1 = wxString_in_helper(obj0); | |
8273 | if (arg1 == NULL) SWIG_fail; | |
8274 | temp1 = true; | |
8275 | } | |
8276 | { | |
8277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8278 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
8279 | ||
8280 | wxPyEndAllowThreads(__tstate); | |
8281 | if (PyErr_Occurred()) SWIG_fail; | |
8282 | } | |
8283 | resultobj = PyInt_FromLong((long)result); | |
8284 | { | |
8285 | if (temp1) | |
8286 | delete arg1; | |
8287 | } | |
8288 | return resultobj; | |
8289 | fail: | |
8290 | { | |
8291 | if (temp1) | |
8292 | delete arg1; | |
8293 | } | |
8294 | return NULL; | |
8295 | } | |
8296 | ||
8297 | ||
8298 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8299 | PyObject *resultobj; | |
8300 | wxString *arg1 = 0 ; | |
8301 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8302 | int result; | |
8303 | bool temp1 = false ; | |
8304 | PyObject * obj0 = 0 ; | |
8305 | char *kwnames[] = { | |
8306 | (char *) "name",(char *) "type", NULL | |
8307 | }; | |
8308 | ||
8309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:Image_GetImageCount",kwnames,&obj0,&arg2)) goto fail; | |
8310 | { | |
8311 | arg1 = wxString_in_helper(obj0); | |
8312 | if (arg1 == NULL) SWIG_fail; | |
8313 | temp1 = true; | |
8314 | } | |
8315 | { | |
8316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8317 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
8318 | ||
8319 | wxPyEndAllowThreads(__tstate); | |
8320 | if (PyErr_Occurred()) SWIG_fail; | |
8321 | } | |
8322 | resultobj = PyInt_FromLong((long)result); | |
8323 | { | |
8324 | if (temp1) | |
8325 | delete arg1; | |
8326 | } | |
8327 | return resultobj; | |
8328 | fail: | |
8329 | { | |
8330 | if (temp1) | |
8331 | delete arg1; | |
8332 | } | |
8333 | return NULL; | |
8334 | } | |
8335 | ||
8336 | ||
8337 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8338 | PyObject *resultobj; | |
8339 | wxImage *arg1 = (wxImage *) 0 ; | |
8340 | wxString *arg2 = 0 ; | |
8341 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
8342 | int arg4 = (int) -1 ; | |
8343 | bool result; | |
8344 | bool temp2 = false ; | |
8345 | PyObject * obj0 = 0 ; | |
8346 | PyObject * obj1 = 0 ; | |
8347 | char *kwnames[] = { | |
8348 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
8349 | }; | |
8350 | ||
8351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|li:Image_LoadFile",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
8352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8353 | { | |
8354 | arg2 = wxString_in_helper(obj1); | |
8355 | if (arg2 == NULL) SWIG_fail; | |
8356 | temp2 = true; | |
8357 | } | |
8358 | { | |
8359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8360 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
8361 | ||
8362 | wxPyEndAllowThreads(__tstate); | |
8363 | if (PyErr_Occurred()) SWIG_fail; | |
8364 | } | |
8365 | resultobj = PyInt_FromLong((long)result); | |
8366 | { | |
8367 | if (temp2) | |
8368 | delete arg2; | |
8369 | } | |
8370 | return resultobj; | |
8371 | fail: | |
8372 | { | |
8373 | if (temp2) | |
8374 | delete arg2; | |
8375 | } | |
8376 | return NULL; | |
8377 | } | |
8378 | ||
8379 | ||
8380 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8381 | PyObject *resultobj; | |
8382 | wxImage *arg1 = (wxImage *) 0 ; | |
8383 | wxString *arg2 = 0 ; | |
8384 | wxString *arg3 = 0 ; | |
8385 | int arg4 = (int) -1 ; | |
8386 | bool result; | |
8387 | bool temp2 = false ; | |
8388 | bool temp3 = false ; | |
8389 | PyObject * obj0 = 0 ; | |
8390 | PyObject * obj1 = 0 ; | |
8391 | PyObject * obj2 = 0 ; | |
8392 | char *kwnames[] = { | |
8393 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8394 | }; | |
8395 | ||
8396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
8397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8398 | { | |
8399 | arg2 = wxString_in_helper(obj1); | |
8400 | if (arg2 == NULL) SWIG_fail; | |
8401 | temp2 = true; | |
8402 | } | |
8403 | { | |
8404 | arg3 = wxString_in_helper(obj2); | |
8405 | if (arg3 == NULL) SWIG_fail; | |
8406 | temp3 = true; | |
8407 | } | |
8408 | { | |
8409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8410 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
8411 | ||
8412 | wxPyEndAllowThreads(__tstate); | |
8413 | if (PyErr_Occurred()) SWIG_fail; | |
8414 | } | |
8415 | resultobj = PyInt_FromLong((long)result); | |
8416 | { | |
8417 | if (temp2) | |
8418 | delete arg2; | |
8419 | } | |
8420 | { | |
8421 | if (temp3) | |
8422 | delete arg3; | |
8423 | } | |
8424 | return resultobj; | |
8425 | fail: | |
8426 | { | |
8427 | if (temp2) | |
8428 | delete arg2; | |
8429 | } | |
8430 | { | |
8431 | if (temp3) | |
8432 | delete arg3; | |
8433 | } | |
8434 | return NULL; | |
8435 | } | |
8436 | ||
8437 | ||
8438 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8439 | PyObject *resultobj; | |
8440 | wxImage *arg1 = (wxImage *) 0 ; | |
8441 | wxString *arg2 = 0 ; | |
8442 | int arg3 ; | |
8443 | bool result; | |
8444 | bool temp2 = false ; | |
8445 | PyObject * obj0 = 0 ; | |
8446 | PyObject * obj1 = 0 ; | |
8447 | char *kwnames[] = { | |
8448 | (char *) "self",(char *) "name",(char *) "type", NULL | |
8449 | }; | |
8450 | ||
8451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Image_SaveFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
8452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8453 | { | |
8454 | arg2 = wxString_in_helper(obj1); | |
8455 | if (arg2 == NULL) SWIG_fail; | |
8456 | temp2 = true; | |
8457 | } | |
8458 | { | |
8459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8460 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
8461 | ||
8462 | wxPyEndAllowThreads(__tstate); | |
8463 | if (PyErr_Occurred()) SWIG_fail; | |
8464 | } | |
8465 | resultobj = PyInt_FromLong((long)result); | |
8466 | { | |
8467 | if (temp2) | |
8468 | delete arg2; | |
8469 | } | |
8470 | return resultobj; | |
8471 | fail: | |
8472 | { | |
8473 | if (temp2) | |
8474 | delete arg2; | |
8475 | } | |
8476 | return NULL; | |
8477 | } | |
8478 | ||
8479 | ||
8480 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8481 | PyObject *resultobj; | |
8482 | wxImage *arg1 = (wxImage *) 0 ; | |
8483 | wxString *arg2 = 0 ; | |
8484 | wxString *arg3 = 0 ; | |
8485 | bool result; | |
8486 | bool temp2 = false ; | |
8487 | bool temp3 = false ; | |
8488 | PyObject * obj0 = 0 ; | |
8489 | PyObject * obj1 = 0 ; | |
8490 | PyObject * obj2 = 0 ; | |
8491 | char *kwnames[] = { | |
8492 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
8493 | }; | |
8494 | ||
8495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8497 | { | |
8498 | arg2 = wxString_in_helper(obj1); | |
8499 | if (arg2 == NULL) SWIG_fail; | |
8500 | temp2 = true; | |
8501 | } | |
8502 | { | |
8503 | arg3 = wxString_in_helper(obj2); | |
8504 | if (arg3 == NULL) SWIG_fail; | |
8505 | temp3 = true; | |
8506 | } | |
8507 | { | |
8508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8509 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
8510 | ||
8511 | wxPyEndAllowThreads(__tstate); | |
8512 | if (PyErr_Occurred()) SWIG_fail; | |
8513 | } | |
8514 | resultobj = PyInt_FromLong((long)result); | |
8515 | { | |
8516 | if (temp2) | |
8517 | delete arg2; | |
8518 | } | |
8519 | { | |
8520 | if (temp3) | |
8521 | delete arg3; | |
8522 | } | |
8523 | return resultobj; | |
8524 | fail: | |
8525 | { | |
8526 | if (temp2) | |
8527 | delete arg2; | |
8528 | } | |
8529 | { | |
8530 | if (temp3) | |
8531 | delete arg3; | |
8532 | } | |
8533 | return NULL; | |
8534 | } | |
8535 | ||
8536 | ||
8537 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8538 | PyObject *resultobj; | |
8539 | wxInputStream *arg1 = 0 ; | |
8540 | bool result; | |
8541 | wxPyInputStream *temp1 ; | |
8542 | bool created1 ; | |
8543 | PyObject * obj0 = 0 ; | |
8544 | char *kwnames[] = { | |
8545 | (char *) "stream", NULL | |
8546 | }; | |
8547 | ||
8548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
8549 | { | |
8550 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8551 | arg1 = temp1->m_wxis; | |
8552 | created1 = false; | |
8553 | } else { | |
8554 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
8555 | arg1 = wxPyCBInputStream_create(obj0, false); | |
8556 | if (arg1 == NULL) { | |
8557 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8558 | SWIG_fail; | |
8559 | } | |
8560 | created1 = true; | |
8561 | } | |
8562 | } | |
8563 | { | |
8564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8565 | result = (bool)wxImage::CanRead(*arg1); | |
8566 | ||
8567 | wxPyEndAllowThreads(__tstate); | |
8568 | if (PyErr_Occurred()) SWIG_fail; | |
8569 | } | |
8570 | resultobj = PyInt_FromLong((long)result); | |
8571 | { | |
8572 | if (created1) | |
8573 | delete arg1; | |
8574 | } | |
8575 | return resultobj; | |
8576 | fail: | |
8577 | { | |
8578 | if (created1) | |
8579 | delete arg1; | |
8580 | } | |
8581 | return NULL; | |
8582 | } | |
8583 | ||
8584 | ||
8585 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8586 | PyObject *resultobj; | |
8587 | wxImage *arg1 = (wxImage *) 0 ; | |
8588 | wxInputStream *arg2 = 0 ; | |
8589 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
8590 | int arg4 = (int) -1 ; | |
8591 | bool result; | |
8592 | wxPyInputStream *temp2 ; | |
8593 | bool created2 ; | |
8594 | PyObject * obj0 = 0 ; | |
8595 | PyObject * obj1 = 0 ; | |
8596 | char *kwnames[] = { | |
8597 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
8598 | }; | |
8599 | ||
8600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|li:Image_LoadStream",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
8601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8602 | { | |
8603 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
8604 | arg2 = temp2->m_wxis; | |
8605 | created2 = false; | |
8606 | } else { | |
8607 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
8608 | arg2 = wxPyCBInputStream_create(obj1, false); | |
8609 | if (arg2 == NULL) { | |
8610 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8611 | SWIG_fail; | |
8612 | } | |
8613 | created2 = true; | |
8614 | } | |
8615 | } | |
8616 | { | |
8617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8618 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
8619 | ||
8620 | wxPyEndAllowThreads(__tstate); | |
8621 | if (PyErr_Occurred()) SWIG_fail; | |
8622 | } | |
8623 | resultobj = PyInt_FromLong((long)result); | |
8624 | { | |
8625 | if (created2) | |
8626 | delete arg2; | |
8627 | } | |
8628 | return resultobj; | |
8629 | fail: | |
8630 | { | |
8631 | if (created2) | |
8632 | delete arg2; | |
8633 | } | |
8634 | return NULL; | |
8635 | } | |
8636 | ||
8637 | ||
8638 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8639 | PyObject *resultobj; | |
8640 | wxImage *arg1 = (wxImage *) 0 ; | |
8641 | wxInputStream *arg2 = 0 ; | |
8642 | wxString *arg3 = 0 ; | |
8643 | int arg4 = (int) -1 ; | |
8644 | bool result; | |
8645 | wxPyInputStream *temp2 ; | |
8646 | bool created2 ; | |
8647 | bool temp3 = false ; | |
8648 | PyObject * obj0 = 0 ; | |
8649 | PyObject * obj1 = 0 ; | |
8650 | PyObject * obj2 = 0 ; | |
8651 | char *kwnames[] = { | |
8652 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8653 | }; | |
8654 | ||
8655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
8656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8657 | { | |
8658 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
8659 | arg2 = temp2->m_wxis; | |
8660 | created2 = false; | |
8661 | } else { | |
8662 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
8663 | arg2 = wxPyCBInputStream_create(obj1, false); | |
8664 | if (arg2 == NULL) { | |
8665 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8666 | SWIG_fail; | |
8667 | } | |
8668 | created2 = true; | |
8669 | } | |
8670 | } | |
8671 | { | |
8672 | arg3 = wxString_in_helper(obj2); | |
8673 | if (arg3 == NULL) SWIG_fail; | |
8674 | temp3 = true; | |
8675 | } | |
8676 | { | |
8677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8678 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
8679 | ||
8680 | wxPyEndAllowThreads(__tstate); | |
8681 | if (PyErr_Occurred()) SWIG_fail; | |
8682 | } | |
8683 | resultobj = PyInt_FromLong((long)result); | |
8684 | { | |
8685 | if (created2) | |
8686 | delete arg2; | |
8687 | } | |
8688 | { | |
8689 | if (temp3) | |
8690 | delete arg3; | |
8691 | } | |
8692 | return resultobj; | |
8693 | fail: | |
8694 | { | |
8695 | if (created2) | |
8696 | delete arg2; | |
8697 | } | |
8698 | { | |
8699 | if (temp3) | |
8700 | delete arg3; | |
8701 | } | |
8702 | return NULL; | |
8703 | } | |
8704 | ||
8705 | ||
8706 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8707 | PyObject *resultobj; | |
8708 | wxImage *arg1 = (wxImage *) 0 ; | |
8709 | bool result; | |
8710 | PyObject * obj0 = 0 ; | |
8711 | char *kwnames[] = { | |
8712 | (char *) "self", NULL | |
8713 | }; | |
8714 | ||
8715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
8716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8717 | { | |
8718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8719 | result = (bool)(arg1)->Ok(); | |
8720 | ||
8721 | wxPyEndAllowThreads(__tstate); | |
8722 | if (PyErr_Occurred()) SWIG_fail; | |
8723 | } | |
8724 | resultobj = PyInt_FromLong((long)result); | |
8725 | return resultobj; | |
8726 | fail: | |
8727 | return NULL; | |
8728 | } | |
8729 | ||
8730 | ||
8731 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8732 | PyObject *resultobj; | |
8733 | wxImage *arg1 = (wxImage *) 0 ; | |
8734 | int result; | |
8735 | PyObject * obj0 = 0 ; | |
8736 | char *kwnames[] = { | |
8737 | (char *) "self", NULL | |
8738 | }; | |
8739 | ||
8740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
8741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8742 | { | |
8743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8744 | result = (int)(arg1)->GetWidth(); | |
8745 | ||
8746 | wxPyEndAllowThreads(__tstate); | |
8747 | if (PyErr_Occurred()) SWIG_fail; | |
8748 | } | |
8749 | resultobj = PyInt_FromLong((long)result); | |
8750 | return resultobj; | |
8751 | fail: | |
8752 | return NULL; | |
8753 | } | |
8754 | ||
8755 | ||
8756 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8757 | PyObject *resultobj; | |
8758 | wxImage *arg1 = (wxImage *) 0 ; | |
8759 | int result; | |
8760 | PyObject * obj0 = 0 ; | |
8761 | char *kwnames[] = { | |
8762 | (char *) "self", NULL | |
8763 | }; | |
8764 | ||
8765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
8766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8767 | { | |
8768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8769 | result = (int)(arg1)->GetHeight(); | |
8770 | ||
8771 | wxPyEndAllowThreads(__tstate); | |
8772 | if (PyErr_Occurred()) SWIG_fail; | |
8773 | } | |
8774 | resultobj = PyInt_FromLong((long)result); | |
8775 | return resultobj; | |
8776 | fail: | |
8777 | return NULL; | |
8778 | } | |
8779 | ||
8780 | ||
8781 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8782 | PyObject *resultobj; | |
8783 | wxImage *arg1 = (wxImage *) 0 ; | |
8784 | wxRect *arg2 = 0 ; | |
8785 | SwigValueWrapper< wxImage > result; | |
8786 | wxRect temp2 ; | |
8787 | PyObject * obj0 = 0 ; | |
8788 | PyObject * obj1 = 0 ; | |
8789 | char *kwnames[] = { | |
8790 | (char *) "self",(char *) "rect", NULL | |
8791 | }; | |
8792 | ||
8793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
8794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8795 | { | |
8796 | arg2 = &temp2; | |
8797 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8798 | } | |
8799 | { | |
8800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8801 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
8802 | ||
8803 | wxPyEndAllowThreads(__tstate); | |
8804 | if (PyErr_Occurred()) SWIG_fail; | |
8805 | } | |
8806 | { | |
8807 | wxImage * resultptr; | |
8808 | resultptr = new wxImage((wxImage &) result); | |
8809 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8810 | } | |
8811 | return resultobj; | |
8812 | fail: | |
8813 | return NULL; | |
8814 | } | |
8815 | ||
8816 | ||
8817 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8818 | PyObject *resultobj; | |
8819 | wxImage *arg1 = (wxImage *) 0 ; | |
8820 | SwigValueWrapper< wxImage > result; | |
8821 | PyObject * obj0 = 0 ; | |
8822 | char *kwnames[] = { | |
8823 | (char *) "self", NULL | |
8824 | }; | |
8825 | ||
8826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
8827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8828 | { | |
8829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8830 | result = (arg1)->Copy(); | |
8831 | ||
8832 | wxPyEndAllowThreads(__tstate); | |
8833 | if (PyErr_Occurred()) SWIG_fail; | |
8834 | } | |
8835 | { | |
8836 | wxImage * resultptr; | |
8837 | resultptr = new wxImage((wxImage &) result); | |
8838 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8839 | } | |
8840 | return resultobj; | |
8841 | fail: | |
8842 | return NULL; | |
8843 | } | |
8844 | ||
8845 | ||
8846 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8847 | PyObject *resultobj; | |
8848 | wxImage *arg1 = (wxImage *) 0 ; | |
8849 | wxImage *arg2 = 0 ; | |
8850 | int arg3 ; | |
8851 | int arg4 ; | |
8852 | PyObject * obj0 = 0 ; | |
8853 | PyObject * obj1 = 0 ; | |
8854 | char *kwnames[] = { | |
8855 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
8856 | }; | |
8857 | ||
8858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:Image_Paste",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
8859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8860 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8861 | if (arg2 == NULL) { | |
8862 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8863 | } | |
8864 | { | |
8865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8866 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
8867 | ||
8868 | wxPyEndAllowThreads(__tstate); | |
8869 | if (PyErr_Occurred()) SWIG_fail; | |
8870 | } | |
8871 | Py_INCREF(Py_None); resultobj = Py_None; | |
8872 | return resultobj; | |
8873 | fail: | |
8874 | return NULL; | |
8875 | } | |
8876 | ||
8877 | ||
8878 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8879 | PyObject *resultobj; | |
8880 | wxImage *arg1 = (wxImage *) 0 ; | |
8881 | PyObject *result; | |
8882 | PyObject * obj0 = 0 ; | |
8883 | char *kwnames[] = { | |
8884 | (char *) "self", NULL | |
8885 | }; | |
8886 | ||
8887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
8888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8889 | { | |
8890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8891 | result = (PyObject *)wxImage_GetData(arg1); | |
8892 | ||
8893 | wxPyEndAllowThreads(__tstate); | |
8894 | if (PyErr_Occurred()) SWIG_fail; | |
8895 | } | |
8896 | resultobj = result; | |
8897 | return resultobj; | |
8898 | fail: | |
8899 | return NULL; | |
8900 | } | |
8901 | ||
8902 | ||
8903 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8904 | PyObject *resultobj; | |
8905 | wxImage *arg1 = (wxImage *) 0 ; | |
8906 | PyObject *arg2 = (PyObject *) 0 ; | |
8907 | PyObject * obj0 = 0 ; | |
8908 | PyObject * obj1 = 0 ; | |
8909 | char *kwnames[] = { | |
8910 | (char *) "self",(char *) "data", NULL | |
8911 | }; | |
8912 | ||
8913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
8914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8915 | arg2 = obj1; | |
8916 | { | |
8917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8918 | wxImage_SetData(arg1,arg2); | |
8919 | ||
8920 | wxPyEndAllowThreads(__tstate); | |
8921 | if (PyErr_Occurred()) SWIG_fail; | |
8922 | } | |
8923 | Py_INCREF(Py_None); resultobj = Py_None; | |
8924 | return resultobj; | |
8925 | fail: | |
8926 | return NULL; | |
8927 | } | |
8928 | ||
8929 | ||
8930 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8931 | PyObject *resultobj; | |
8932 | wxImage *arg1 = (wxImage *) 0 ; | |
8933 | PyObject *result; | |
8934 | PyObject * obj0 = 0 ; | |
8935 | char *kwnames[] = { | |
8936 | (char *) "self", NULL | |
8937 | }; | |
8938 | ||
8939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
8940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8941 | { | |
8942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8943 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
8944 | ||
8945 | wxPyEndAllowThreads(__tstate); | |
8946 | if (PyErr_Occurred()) SWIG_fail; | |
8947 | } | |
8948 | resultobj = result; | |
8949 | return resultobj; | |
8950 | fail: | |
8951 | return NULL; | |
8952 | } | |
8953 | ||
8954 | ||
8955 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8956 | PyObject *resultobj; | |
8957 | wxImage *arg1 = (wxImage *) 0 ; | |
8958 | PyObject *arg2 = (PyObject *) 0 ; | |
8959 | PyObject * obj0 = 0 ; | |
8960 | PyObject * obj1 = 0 ; | |
8961 | char *kwnames[] = { | |
8962 | (char *) "self",(char *) "data", NULL | |
8963 | }; | |
8964 | ||
8965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
8966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8967 | arg2 = obj1; | |
8968 | { | |
8969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8970 | wxImage_SetDataBuffer(arg1,arg2); | |
8971 | ||
8972 | wxPyEndAllowThreads(__tstate); | |
8973 | if (PyErr_Occurred()) SWIG_fail; | |
8974 | } | |
8975 | Py_INCREF(Py_None); resultobj = Py_None; | |
8976 | return resultobj; | |
8977 | fail: | |
8978 | return NULL; | |
8979 | } | |
8980 | ||
8981 | ||
8982 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8983 | PyObject *resultobj; | |
8984 | wxImage *arg1 = (wxImage *) 0 ; | |
8985 | PyObject *result; | |
8986 | PyObject * obj0 = 0 ; | |
8987 | char *kwnames[] = { | |
8988 | (char *) "self", NULL | |
8989 | }; | |
8990 | ||
8991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
8992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8993 | { | |
8994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8995 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
8996 | ||
8997 | wxPyEndAllowThreads(__tstate); | |
8998 | if (PyErr_Occurred()) SWIG_fail; | |
8999 | } | |
9000 | resultobj = result; | |
9001 | return resultobj; | |
9002 | fail: | |
9003 | return NULL; | |
9004 | } | |
9005 | ||
9006 | ||
9007 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9008 | PyObject *resultobj; | |
9009 | wxImage *arg1 = (wxImage *) 0 ; | |
9010 | PyObject *arg2 = (PyObject *) 0 ; | |
9011 | PyObject * obj0 = 0 ; | |
9012 | PyObject * obj1 = 0 ; | |
9013 | char *kwnames[] = { | |
9014 | (char *) "self",(char *) "data", NULL | |
9015 | }; | |
9016 | ||
9017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
9018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9019 | arg2 = obj1; | |
9020 | { | |
9021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9022 | wxImage_SetAlphaData(arg1,arg2); | |
9023 | ||
9024 | wxPyEndAllowThreads(__tstate); | |
9025 | if (PyErr_Occurred()) SWIG_fail; | |
9026 | } | |
9027 | Py_INCREF(Py_None); resultobj = Py_None; | |
9028 | return resultobj; | |
9029 | fail: | |
9030 | return NULL; | |
9031 | } | |
9032 | ||
9033 | ||
9034 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9035 | PyObject *resultobj; | |
9036 | wxImage *arg1 = (wxImage *) 0 ; | |
9037 | PyObject *result; | |
9038 | PyObject * obj0 = 0 ; | |
9039 | char *kwnames[] = { | |
9040 | (char *) "self", NULL | |
9041 | }; | |
9042 | ||
9043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
9044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9045 | { | |
9046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9047 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
9048 | ||
9049 | wxPyEndAllowThreads(__tstate); | |
9050 | if (PyErr_Occurred()) SWIG_fail; | |
9051 | } | |
9052 | resultobj = result; | |
9053 | return resultobj; | |
9054 | fail: | |
9055 | return NULL; | |
9056 | } | |
9057 | ||
9058 | ||
9059 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9060 | PyObject *resultobj; | |
9061 | wxImage *arg1 = (wxImage *) 0 ; | |
9062 | PyObject *arg2 = (PyObject *) 0 ; | |
9063 | PyObject * obj0 = 0 ; | |
9064 | PyObject * obj1 = 0 ; | |
9065 | char *kwnames[] = { | |
9066 | (char *) "self",(char *) "data", NULL | |
9067 | }; | |
9068 | ||
9069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
9070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9071 | arg2 = obj1; | |
9072 | { | |
9073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9074 | wxImage_SetAlphaBuffer(arg1,arg2); | |
9075 | ||
9076 | wxPyEndAllowThreads(__tstate); | |
9077 | if (PyErr_Occurred()) SWIG_fail; | |
9078 | } | |
9079 | Py_INCREF(Py_None); resultobj = Py_None; | |
9080 | return resultobj; | |
9081 | fail: | |
9082 | return NULL; | |
9083 | } | |
9084 | ||
9085 | ||
9086 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9087 | PyObject *resultobj; | |
9088 | wxImage *arg1 = (wxImage *) 0 ; | |
9089 | unsigned char arg2 ; | |
9090 | unsigned char arg3 ; | |
9091 | unsigned char arg4 ; | |
9092 | PyObject * obj0 = 0 ; | |
9093 | PyObject * obj1 = 0 ; | |
9094 | PyObject * obj2 = 0 ; | |
9095 | PyObject * obj3 = 0 ; | |
9096 | char *kwnames[] = { | |
9097 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9098 | }; | |
9099 | ||
9100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9102 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
9103 | if (PyErr_Occurred()) SWIG_fail; | |
9104 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
9107 | if (PyErr_Occurred()) SWIG_fail; | |
9108 | { | |
9109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9110 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
9111 | ||
9112 | wxPyEndAllowThreads(__tstate); | |
9113 | if (PyErr_Occurred()) SWIG_fail; | |
9114 | } | |
9115 | Py_INCREF(Py_None); resultobj = Py_None; | |
9116 | return resultobj; | |
9117 | fail: | |
9118 | return NULL; | |
9119 | } | |
9120 | ||
9121 | ||
9122 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9123 | PyObject *resultobj; | |
9124 | wxImage *arg1 = (wxImage *) 0 ; | |
9125 | unsigned char result; | |
9126 | PyObject * obj0 = 0 ; | |
9127 | char *kwnames[] = { | |
9128 | (char *) "self", NULL | |
9129 | }; | |
9130 | ||
9131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
9132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9133 | { | |
9134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9135 | result = (unsigned char)(arg1)->GetMaskRed(); | |
9136 | ||
9137 | wxPyEndAllowThreads(__tstate); | |
9138 | if (PyErr_Occurred()) SWIG_fail; | |
9139 | } | |
9140 | resultobj = PyInt_FromLong((long)result); | |
9141 | return resultobj; | |
9142 | fail: | |
9143 | return NULL; | |
9144 | } | |
9145 | ||
9146 | ||
9147 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9148 | PyObject *resultobj; | |
9149 | wxImage *arg1 = (wxImage *) 0 ; | |
9150 | unsigned char result; | |
9151 | PyObject * obj0 = 0 ; | |
9152 | char *kwnames[] = { | |
9153 | (char *) "self", NULL | |
9154 | }; | |
9155 | ||
9156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
9157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9158 | { | |
9159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9160 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
9161 | ||
9162 | wxPyEndAllowThreads(__tstate); | |
9163 | if (PyErr_Occurred()) SWIG_fail; | |
9164 | } | |
9165 | resultobj = PyInt_FromLong((long)result); | |
9166 | return resultobj; | |
9167 | fail: | |
9168 | return NULL; | |
9169 | } | |
9170 | ||
9171 | ||
9172 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9173 | PyObject *resultobj; | |
9174 | wxImage *arg1 = (wxImage *) 0 ; | |
9175 | unsigned char result; | |
9176 | PyObject * obj0 = 0 ; | |
9177 | char *kwnames[] = { | |
9178 | (char *) "self", NULL | |
9179 | }; | |
9180 | ||
9181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
9182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9183 | { | |
9184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9185 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
9186 | ||
9187 | wxPyEndAllowThreads(__tstate); | |
9188 | if (PyErr_Occurred()) SWIG_fail; | |
9189 | } | |
9190 | resultobj = PyInt_FromLong((long)result); | |
9191 | return resultobj; | |
9192 | fail: | |
9193 | return NULL; | |
9194 | } | |
9195 | ||
9196 | ||
9197 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9198 | PyObject *resultobj; | |
9199 | wxImage *arg1 = (wxImage *) 0 ; | |
9200 | bool arg2 = (bool) TRUE ; | |
9201 | PyObject * obj0 = 0 ; | |
9202 | PyObject * obj1 = 0 ; | |
9203 | char *kwnames[] = { | |
9204 | (char *) "self",(char *) "mask", NULL | |
9205 | }; | |
9206 | ||
9207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
9208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9209 | if (obj1) { | |
9210 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
9211 | if (PyErr_Occurred()) SWIG_fail; | |
9212 | } | |
9213 | { | |
9214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9215 | (arg1)->SetMask(arg2); | |
9216 | ||
9217 | wxPyEndAllowThreads(__tstate); | |
9218 | if (PyErr_Occurred()) SWIG_fail; | |
9219 | } | |
9220 | Py_INCREF(Py_None); resultobj = Py_None; | |
9221 | return resultobj; | |
9222 | fail: | |
9223 | return NULL; | |
9224 | } | |
9225 | ||
9226 | ||
9227 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9228 | PyObject *resultobj; | |
9229 | wxImage *arg1 = (wxImage *) 0 ; | |
9230 | bool result; | |
9231 | PyObject * obj0 = 0 ; | |
9232 | char *kwnames[] = { | |
9233 | (char *) "self", NULL | |
9234 | }; | |
9235 | ||
9236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
9237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9238 | { | |
9239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9240 | result = (bool)(arg1)->HasMask(); | |
9241 | ||
9242 | wxPyEndAllowThreads(__tstate); | |
9243 | if (PyErr_Occurred()) SWIG_fail; | |
9244 | } | |
9245 | resultobj = PyInt_FromLong((long)result); | |
9246 | return resultobj; | |
9247 | fail: | |
9248 | return NULL; | |
9249 | } | |
9250 | ||
9251 | ||
9252 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9253 | PyObject *resultobj; | |
9254 | wxImage *arg1 = (wxImage *) 0 ; | |
9255 | double arg2 ; | |
9256 | wxPoint *arg3 = 0 ; | |
9257 | bool arg4 = (bool) TRUE ; | |
9258 | wxPoint *arg5 = (wxPoint *) NULL ; | |
9259 | SwigValueWrapper< wxImage > result; | |
9260 | wxPoint temp3 ; | |
9261 | PyObject * obj0 = 0 ; | |
9262 | PyObject * obj2 = 0 ; | |
9263 | PyObject * obj3 = 0 ; | |
9264 | PyObject * obj4 = 0 ; | |
9265 | char *kwnames[] = { | |
9266 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
9267 | }; | |
9268 | ||
9269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OdO|OO:Image_Rotate",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4)) goto fail; | |
9270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9271 | { | |
9272 | arg3 = &temp3; | |
9273 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9274 | } | |
9275 | if (obj3) { | |
9276 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
9277 | if (PyErr_Occurred()) SWIG_fail; | |
9278 | } | |
9279 | if (obj4) { | |
9280 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9281 | } | |
9282 | { | |
9283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9284 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
9285 | ||
9286 | wxPyEndAllowThreads(__tstate); | |
9287 | if (PyErr_Occurred()) SWIG_fail; | |
9288 | } | |
9289 | { | |
9290 | wxImage * resultptr; | |
9291 | resultptr = new wxImage((wxImage &) result); | |
9292 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9293 | } | |
9294 | return resultobj; | |
9295 | fail: | |
9296 | return NULL; | |
9297 | } | |
9298 | ||
9299 | ||
9300 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9301 | PyObject *resultobj; | |
9302 | wxImage *arg1 = (wxImage *) 0 ; | |
9303 | bool arg2 = (bool) TRUE ; | |
9304 | SwigValueWrapper< wxImage > result; | |
9305 | PyObject * obj0 = 0 ; | |
9306 | PyObject * obj1 = 0 ; | |
9307 | char *kwnames[] = { | |
9308 | (char *) "self",(char *) "clockwise", NULL | |
9309 | }; | |
9310 | ||
9311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
9312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9313 | if (obj1) { | |
9314 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
9315 | if (PyErr_Occurred()) SWIG_fail; | |
9316 | } | |
9317 | { | |
9318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9319 | result = (arg1)->Rotate90(arg2); | |
9320 | ||
9321 | wxPyEndAllowThreads(__tstate); | |
9322 | if (PyErr_Occurred()) SWIG_fail; | |
9323 | } | |
9324 | { | |
9325 | wxImage * resultptr; | |
9326 | resultptr = new wxImage((wxImage &) result); | |
9327 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9328 | } | |
9329 | return resultobj; | |
9330 | fail: | |
9331 | return NULL; | |
9332 | } | |
9333 | ||
9334 | ||
9335 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9336 | PyObject *resultobj; | |
9337 | wxImage *arg1 = (wxImage *) 0 ; | |
9338 | bool arg2 = (bool) TRUE ; | |
9339 | SwigValueWrapper< wxImage > result; | |
9340 | PyObject * obj0 = 0 ; | |
9341 | PyObject * obj1 = 0 ; | |
9342 | char *kwnames[] = { | |
9343 | (char *) "self",(char *) "horizontally", NULL | |
9344 | }; | |
9345 | ||
9346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
9347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9348 | if (obj1) { | |
9349 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
9350 | if (PyErr_Occurred()) SWIG_fail; | |
9351 | } | |
9352 | { | |
9353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9354 | result = (arg1)->Mirror(arg2); | |
9355 | ||
9356 | wxPyEndAllowThreads(__tstate); | |
9357 | if (PyErr_Occurred()) SWIG_fail; | |
9358 | } | |
9359 | { | |
9360 | wxImage * resultptr; | |
9361 | resultptr = new wxImage((wxImage &) result); | |
9362 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9363 | } | |
9364 | return resultobj; | |
9365 | fail: | |
9366 | return NULL; | |
9367 | } | |
9368 | ||
9369 | ||
9370 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9371 | PyObject *resultobj; | |
9372 | wxImage *arg1 = (wxImage *) 0 ; | |
9373 | unsigned char arg2 ; | |
9374 | unsigned char arg3 ; | |
9375 | unsigned char arg4 ; | |
9376 | unsigned char arg5 ; | |
9377 | unsigned char arg6 ; | |
9378 | unsigned char arg7 ; | |
9379 | PyObject * obj0 = 0 ; | |
9380 | PyObject * obj1 = 0 ; | |
9381 | PyObject * obj2 = 0 ; | |
9382 | PyObject * obj3 = 0 ; | |
9383 | PyObject * obj4 = 0 ; | |
9384 | PyObject * obj5 = 0 ; | |
9385 | PyObject * obj6 = 0 ; | |
9386 | char *kwnames[] = { | |
9387 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
9388 | }; | |
9389 | ||
9390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9392 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
9393 | if (PyErr_Occurred()) SWIG_fail; | |
9394 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
9395 | if (PyErr_Occurred()) SWIG_fail; | |
9396 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
9397 | if (PyErr_Occurred()) SWIG_fail; | |
9398 | arg5 = (unsigned char) PyInt_AsLong(obj4); | |
9399 | if (PyErr_Occurred()) SWIG_fail; | |
9400 | arg6 = (unsigned char) PyInt_AsLong(obj5); | |
9401 | if (PyErr_Occurred()) SWIG_fail; | |
9402 | arg7 = (unsigned char) PyInt_AsLong(obj6); | |
9403 | if (PyErr_Occurred()) SWIG_fail; | |
9404 | { | |
9405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9406 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
9407 | ||
9408 | wxPyEndAllowThreads(__tstate); | |
9409 | if (PyErr_Occurred()) SWIG_fail; | |
9410 | } | |
9411 | Py_INCREF(Py_None); resultobj = Py_None; | |
9412 | return resultobj; | |
9413 | fail: | |
9414 | return NULL; | |
9415 | } | |
9416 | ||
9417 | ||
9418 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9419 | PyObject *resultobj; | |
9420 | wxImage *arg1 = (wxImage *) 0 ; | |
9421 | unsigned char arg2 ; | |
9422 | unsigned char arg3 ; | |
9423 | unsigned char arg4 ; | |
9424 | SwigValueWrapper< wxImage > result; | |
9425 | PyObject * obj0 = 0 ; | |
9426 | PyObject * obj1 = 0 ; | |
9427 | PyObject * obj2 = 0 ; | |
9428 | PyObject * obj3 = 0 ; | |
9429 | char *kwnames[] = { | |
9430 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9431 | }; | |
9432 | ||
9433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9435 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
9436 | if (PyErr_Occurred()) SWIG_fail; | |
9437 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
9438 | if (PyErr_Occurred()) SWIG_fail; | |
9439 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
9440 | if (PyErr_Occurred()) SWIG_fail; | |
9441 | { | |
9442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9443 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
9444 | ||
9445 | wxPyEndAllowThreads(__tstate); | |
9446 | if (PyErr_Occurred()) SWIG_fail; | |
9447 | } | |
9448 | { | |
9449 | wxImage * resultptr; | |
9450 | resultptr = new wxImage((wxImage &) result); | |
9451 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9452 | } | |
9453 | return resultobj; | |
9454 | fail: | |
9455 | return NULL; | |
9456 | } | |
9457 | ||
9458 | ||
9459 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9460 | PyObject *resultobj; | |
9461 | wxImage *arg1 = (wxImage *) 0 ; | |
9462 | wxString *arg2 = 0 ; | |
9463 | wxString *arg3 = 0 ; | |
9464 | bool temp2 = false ; | |
9465 | bool temp3 = false ; | |
9466 | PyObject * obj0 = 0 ; | |
9467 | PyObject * obj1 = 0 ; | |
9468 | PyObject * obj2 = 0 ; | |
9469 | char *kwnames[] = { | |
9470 | (char *) "self",(char *) "name",(char *) "value", NULL | |
9471 | }; | |
9472 | ||
9473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9475 | { | |
9476 | arg2 = wxString_in_helper(obj1); | |
9477 | if (arg2 == NULL) SWIG_fail; | |
9478 | temp2 = true; | |
9479 | } | |
9480 | { | |
9481 | arg3 = wxString_in_helper(obj2); | |
9482 | if (arg3 == NULL) SWIG_fail; | |
9483 | temp3 = true; | |
9484 | } | |
9485 | { | |
9486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9487 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
9488 | ||
9489 | wxPyEndAllowThreads(__tstate); | |
9490 | if (PyErr_Occurred()) SWIG_fail; | |
9491 | } | |
9492 | Py_INCREF(Py_None); resultobj = Py_None; | |
9493 | { | |
9494 | if (temp2) | |
9495 | delete arg2; | |
9496 | } | |
9497 | { | |
9498 | if (temp3) | |
9499 | delete arg3; | |
9500 | } | |
9501 | return resultobj; | |
9502 | fail: | |
9503 | { | |
9504 | if (temp2) | |
9505 | delete arg2; | |
9506 | } | |
9507 | { | |
9508 | if (temp3) | |
9509 | delete arg3; | |
9510 | } | |
9511 | return NULL; | |
9512 | } | |
9513 | ||
9514 | ||
9515 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9516 | PyObject *resultobj; | |
9517 | wxImage *arg1 = (wxImage *) 0 ; | |
9518 | wxString *arg2 = 0 ; | |
9519 | int arg3 ; | |
9520 | bool temp2 = false ; | |
9521 | PyObject * obj0 = 0 ; | |
9522 | PyObject * obj1 = 0 ; | |
9523 | char *kwnames[] = { | |
9524 | (char *) "self",(char *) "name",(char *) "value", NULL | |
9525 | }; | |
9526 | ||
9527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Image_SetOptionInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
9528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9529 | { | |
9530 | arg2 = wxString_in_helper(obj1); | |
9531 | if (arg2 == NULL) SWIG_fail; | |
9532 | temp2 = true; | |
9533 | } | |
9534 | { | |
9535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9536 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
9537 | ||
9538 | wxPyEndAllowThreads(__tstate); | |
9539 | if (PyErr_Occurred()) SWIG_fail; | |
9540 | } | |
9541 | Py_INCREF(Py_None); resultobj = Py_None; | |
9542 | { | |
9543 | if (temp2) | |
9544 | delete arg2; | |
9545 | } | |
9546 | return resultobj; | |
9547 | fail: | |
9548 | { | |
9549 | if (temp2) | |
9550 | delete arg2; | |
9551 | } | |
9552 | return NULL; | |
9553 | } | |
9554 | ||
9555 | ||
9556 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9557 | PyObject *resultobj; | |
9558 | wxImage *arg1 = (wxImage *) 0 ; | |
9559 | wxString *arg2 = 0 ; | |
9560 | wxString result; | |
9561 | bool temp2 = false ; | |
9562 | PyObject * obj0 = 0 ; | |
9563 | PyObject * obj1 = 0 ; | |
9564 | char *kwnames[] = { | |
9565 | (char *) "self",(char *) "name", NULL | |
9566 | }; | |
9567 | ||
9568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
9569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9570 | { | |
9571 | arg2 = wxString_in_helper(obj1); | |
9572 | if (arg2 == NULL) SWIG_fail; | |
9573 | temp2 = true; | |
9574 | } | |
9575 | { | |
9576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9577 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
9578 | ||
9579 | wxPyEndAllowThreads(__tstate); | |
9580 | if (PyErr_Occurred()) SWIG_fail; | |
9581 | } | |
9582 | { | |
9583 | #if wxUSE_UNICODE | |
9584 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9585 | #else | |
9586 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9587 | #endif | |
9588 | } | |
9589 | { | |
9590 | if (temp2) | |
9591 | delete arg2; | |
9592 | } | |
9593 | return resultobj; | |
9594 | fail: | |
9595 | { | |
9596 | if (temp2) | |
9597 | delete arg2; | |
9598 | } | |
9599 | return NULL; | |
9600 | } | |
9601 | ||
9602 | ||
9603 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9604 | PyObject *resultobj; | |
9605 | wxImage *arg1 = (wxImage *) 0 ; | |
9606 | wxString *arg2 = 0 ; | |
9607 | int result; | |
9608 | bool temp2 = false ; | |
9609 | PyObject * obj0 = 0 ; | |
9610 | PyObject * obj1 = 0 ; | |
9611 | char *kwnames[] = { | |
9612 | (char *) "self",(char *) "name", NULL | |
9613 | }; | |
9614 | ||
9615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
9616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9617 | { | |
9618 | arg2 = wxString_in_helper(obj1); | |
9619 | if (arg2 == NULL) SWIG_fail; | |
9620 | temp2 = true; | |
9621 | } | |
9622 | { | |
9623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9624 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
9625 | ||
9626 | wxPyEndAllowThreads(__tstate); | |
9627 | if (PyErr_Occurred()) SWIG_fail; | |
9628 | } | |
9629 | resultobj = PyInt_FromLong((long)result); | |
9630 | { | |
9631 | if (temp2) | |
9632 | delete arg2; | |
9633 | } | |
9634 | return resultobj; | |
9635 | fail: | |
9636 | { | |
9637 | if (temp2) | |
9638 | delete arg2; | |
9639 | } | |
9640 | return NULL; | |
9641 | } | |
9642 | ||
9643 | ||
9644 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9645 | PyObject *resultobj; | |
9646 | wxImage *arg1 = (wxImage *) 0 ; | |
9647 | wxString *arg2 = 0 ; | |
9648 | bool result; | |
9649 | bool temp2 = false ; | |
9650 | PyObject * obj0 = 0 ; | |
9651 | PyObject * obj1 = 0 ; | |
9652 | char *kwnames[] = { | |
9653 | (char *) "self",(char *) "name", NULL | |
9654 | }; | |
9655 | ||
9656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
9657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9658 | { | |
9659 | arg2 = wxString_in_helper(obj1); | |
9660 | if (arg2 == NULL) SWIG_fail; | |
9661 | temp2 = true; | |
9662 | } | |
9663 | { | |
9664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9665 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
9666 | ||
9667 | wxPyEndAllowThreads(__tstate); | |
9668 | if (PyErr_Occurred()) SWIG_fail; | |
9669 | } | |
9670 | resultobj = PyInt_FromLong((long)result); | |
9671 | { | |
9672 | if (temp2) | |
9673 | delete arg2; | |
9674 | } | |
9675 | return resultobj; | |
9676 | fail: | |
9677 | { | |
9678 | if (temp2) | |
9679 | delete arg2; | |
9680 | } | |
9681 | return NULL; | |
9682 | } | |
9683 | ||
9684 | ||
9685 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9686 | PyObject *resultobj; | |
9687 | wxImage *arg1 = (wxImage *) 0 ; | |
9688 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
9689 | unsigned long result; | |
9690 | PyObject * obj0 = 0 ; | |
9691 | PyObject * obj1 = 0 ; | |
9692 | char *kwnames[] = { | |
9693 | (char *) "self",(char *) "stopafter", NULL | |
9694 | }; | |
9695 | ||
9696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
9697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9698 | if (obj1) { | |
9699 | arg2 = (unsigned long) PyInt_AsLong(obj1); | |
9700 | if (PyErr_Occurred()) SWIG_fail; | |
9701 | } | |
9702 | { | |
9703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9704 | result = (unsigned long)(arg1)->CountColours(arg2); | |
9705 | ||
9706 | wxPyEndAllowThreads(__tstate); | |
9707 | if (PyErr_Occurred()) SWIG_fail; | |
9708 | } | |
9709 | resultobj = PyInt_FromLong((long)result); | |
9710 | return resultobj; | |
9711 | fail: | |
9712 | return NULL; | |
9713 | } | |
9714 | ||
9715 | ||
9716 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9717 | PyObject *resultobj; | |
9718 | wxImage *arg1 = (wxImage *) 0 ; | |
9719 | wxImageHistogram *arg2 = 0 ; | |
9720 | unsigned long result; | |
9721 | PyObject * obj0 = 0 ; | |
9722 | PyObject * obj1 = 0 ; | |
9723 | char *kwnames[] = { | |
9724 | (char *) "self",(char *) "h", NULL | |
9725 | }; | |
9726 | ||
9727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
9728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9729 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9730 | if (arg2 == NULL) { | |
9731 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9732 | } | |
9733 | { | |
9734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9735 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
9736 | ||
9737 | wxPyEndAllowThreads(__tstate); | |
9738 | if (PyErr_Occurred()) SWIG_fail; | |
9739 | } | |
9740 | resultobj = PyInt_FromLong((long)result); | |
9741 | return resultobj; | |
9742 | fail: | |
9743 | return NULL; | |
9744 | } | |
9745 | ||
9746 | ||
9747 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9748 | PyObject *resultobj; | |
9749 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9750 | PyObject * obj0 = 0 ; | |
9751 | char *kwnames[] = { | |
9752 | (char *) "handler", NULL | |
9753 | }; | |
9754 | ||
9755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
9756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9757 | { | |
9758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9759 | wxImage::AddHandler(arg1); | |
9760 | ||
9761 | wxPyEndAllowThreads(__tstate); | |
9762 | if (PyErr_Occurred()) SWIG_fail; | |
9763 | } | |
9764 | Py_INCREF(Py_None); resultobj = Py_None; | |
9765 | return resultobj; | |
9766 | fail: | |
9767 | return NULL; | |
9768 | } | |
9769 | ||
9770 | ||
9771 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9772 | PyObject *resultobj; | |
9773 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9774 | PyObject * obj0 = 0 ; | |
9775 | char *kwnames[] = { | |
9776 | (char *) "handler", NULL | |
9777 | }; | |
9778 | ||
9779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
9780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9781 | { | |
9782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9783 | wxImage::InsertHandler(arg1); | |
9784 | ||
9785 | wxPyEndAllowThreads(__tstate); | |
9786 | if (PyErr_Occurred()) SWIG_fail; | |
9787 | } | |
9788 | Py_INCREF(Py_None); resultobj = Py_None; | |
9789 | return resultobj; | |
9790 | fail: | |
9791 | return NULL; | |
9792 | } | |
9793 | ||
9794 | ||
9795 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9796 | PyObject *resultobj; | |
9797 | wxString *arg1 = 0 ; | |
9798 | bool result; | |
9799 | bool temp1 = false ; | |
9800 | PyObject * obj0 = 0 ; | |
9801 | char *kwnames[] = { | |
9802 | (char *) "name", NULL | |
9803 | }; | |
9804 | ||
9805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
9806 | { | |
9807 | arg1 = wxString_in_helper(obj0); | |
9808 | if (arg1 == NULL) SWIG_fail; | |
9809 | temp1 = true; | |
9810 | } | |
9811 | { | |
9812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9813 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
9814 | ||
9815 | wxPyEndAllowThreads(__tstate); | |
9816 | if (PyErr_Occurred()) SWIG_fail; | |
9817 | } | |
9818 | resultobj = PyInt_FromLong((long)result); | |
9819 | { | |
9820 | if (temp1) | |
9821 | delete arg1; | |
9822 | } | |
9823 | return resultobj; | |
9824 | fail: | |
9825 | { | |
9826 | if (temp1) | |
9827 | delete arg1; | |
9828 | } | |
9829 | return NULL; | |
9830 | } | |
9831 | ||
9832 | ||
9833 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9834 | PyObject *resultobj; | |
9835 | wxString result; | |
9836 | char *kwnames[] = { | |
9837 | NULL | |
9838 | }; | |
9839 | ||
9840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
9841 | { | |
9842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9843 | result = wxImage::GetImageExtWildcard(); | |
9844 | ||
9845 | wxPyEndAllowThreads(__tstate); | |
9846 | if (PyErr_Occurred()) SWIG_fail; | |
9847 | } | |
9848 | { | |
9849 | #if wxUSE_UNICODE | |
9850 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9851 | #else | |
9852 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9853 | #endif | |
9854 | } | |
9855 | return resultobj; | |
9856 | fail: | |
9857 | return NULL; | |
9858 | } | |
9859 | ||
9860 | ||
9861 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9862 | PyObject *resultobj; | |
9863 | wxImage *arg1 = (wxImage *) 0 ; | |
9864 | wxBitmap result; | |
9865 | PyObject * obj0 = 0 ; | |
9866 | char *kwnames[] = { | |
9867 | (char *) "self", NULL | |
9868 | }; | |
9869 | ||
9870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
9871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9872 | { | |
9873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9874 | result = wxImage_ConvertToBitmap(arg1); | |
9875 | ||
9876 | wxPyEndAllowThreads(__tstate); | |
9877 | if (PyErr_Occurred()) SWIG_fail; | |
9878 | } | |
9879 | { | |
9880 | wxBitmap * resultptr; | |
9881 | resultptr = new wxBitmap((wxBitmap &) result); | |
9882 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
9883 | } | |
9884 | return resultobj; | |
9885 | fail: | |
9886 | return NULL; | |
9887 | } | |
9888 | ||
9889 | ||
9890 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9891 | PyObject *resultobj; | |
9892 | wxImage *arg1 = (wxImage *) 0 ; | |
9893 | unsigned char arg2 ; | |
9894 | unsigned char arg3 ; | |
9895 | unsigned char arg4 ; | |
9896 | wxBitmap result; | |
9897 | PyObject * obj0 = 0 ; | |
9898 | PyObject * obj1 = 0 ; | |
9899 | PyObject * obj2 = 0 ; | |
9900 | PyObject * obj3 = 0 ; | |
9901 | char *kwnames[] = { | |
9902 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
9903 | }; | |
9904 | ||
9905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9907 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
9908 | if (PyErr_Occurred()) SWIG_fail; | |
9909 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
9910 | if (PyErr_Occurred()) SWIG_fail; | |
9911 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
9912 | if (PyErr_Occurred()) SWIG_fail; | |
9913 | { | |
9914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9915 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
9916 | ||
9917 | wxPyEndAllowThreads(__tstate); | |
9918 | if (PyErr_Occurred()) SWIG_fail; | |
9919 | } | |
9920 | { | |
9921 | wxBitmap * resultptr; | |
9922 | resultptr = new wxBitmap((wxBitmap &) result); | |
9923 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
9924 | } | |
9925 | return resultobj; | |
9926 | fail: | |
9927 | return NULL; | |
9928 | } | |
9929 | ||
9930 | ||
9931 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
9932 | PyObject *obj; | |
9933 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9934 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
9935 | Py_INCREF(obj); | |
9936 | return Py_BuildValue((char *)""); | |
9937 | } | |
9938 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9939 | PyObject *resultobj; | |
9940 | char *kwnames[] = { | |
9941 | NULL | |
9942 | }; | |
9943 | ||
9944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
9945 | { | |
9946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9947 | wxInitAllImageHandlers(); | |
9948 | ||
9949 | wxPyEndAllowThreads(__tstate); | |
9950 | if (PyErr_Occurred()) SWIG_fail; | |
9951 | } | |
9952 | Py_INCREF(Py_None); resultobj = Py_None; | |
9953 | return resultobj; | |
9954 | fail: | |
9955 | return NULL; | |
9956 | } | |
9957 | ||
9958 | ||
9959 | static int _wrap_NullImage_set(PyObject *_val) { | |
9960 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); | |
9961 | return 1; | |
9962 | } | |
9963 | ||
9964 | ||
9965 | static PyObject *_wrap_NullImage_get() { | |
9966 | PyObject *pyobj; | |
9967 | ||
9968 | pyobj = SWIG_NewPointerObj((void *) &wxNullImage, SWIGTYPE_p_wxImage, 0); | |
9969 | return pyobj; | |
9970 | } | |
9971 | ||
9972 | ||
9973 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { | |
9974 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); | |
9975 | return 1; | |
9976 | } | |
9977 | ||
9978 | ||
9979 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
9980 | PyObject *pyobj; | |
9981 | ||
9982 | { | |
9983 | #if wxUSE_UNICODE | |
9984 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
9985 | #else | |
9986 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
9987 | #endif | |
9988 | } | |
9989 | return pyobj; | |
9990 | } | |
9991 | ||
9992 | ||
9993 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { | |
9994 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); | |
9995 | return 1; | |
9996 | } | |
9997 | ||
9998 | ||
9999 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
10000 | PyObject *pyobj; | |
10001 | ||
10002 | { | |
10003 | #if wxUSE_UNICODE | |
10004 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10005 | #else | |
10006 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10007 | #endif | |
10008 | } | |
10009 | return pyobj; | |
10010 | } | |
10011 | ||
10012 | ||
10013 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { | |
10014 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); | |
10015 | return 1; | |
10016 | } | |
10017 | ||
10018 | ||
10019 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
10020 | PyObject *pyobj; | |
10021 | ||
10022 | { | |
10023 | #if wxUSE_UNICODE | |
10024 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10025 | #else | |
10026 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10027 | #endif | |
10028 | } | |
10029 | return pyobj; | |
10030 | } | |
10031 | ||
10032 | ||
10033 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { | |
10034 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); | |
10035 | return 1; | |
10036 | } | |
10037 | ||
10038 | ||
10039 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
10040 | PyObject *pyobj; | |
10041 | ||
10042 | { | |
10043 | #if wxUSE_UNICODE | |
10044 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10045 | #else | |
10046 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10047 | #endif | |
10048 | } | |
10049 | return pyobj; | |
10050 | } | |
10051 | ||
10052 | ||
10053 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { | |
10054 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); | |
10055 | return 1; | |
10056 | } | |
10057 | ||
10058 | ||
10059 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
10060 | PyObject *pyobj; | |
10061 | ||
10062 | { | |
10063 | #if wxUSE_UNICODE | |
10064 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10065 | #else | |
10066 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10067 | #endif | |
10068 | } | |
10069 | return pyobj; | |
10070 | } | |
10071 | ||
10072 | ||
10073 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10074 | PyObject *resultobj; | |
10075 | wxBMPHandler *result; | |
10076 | char *kwnames[] = { | |
10077 | NULL | |
10078 | }; | |
10079 | ||
10080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
10081 | { | |
10082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10083 | result = (wxBMPHandler *)new wxBMPHandler(); | |
10084 | ||
10085 | wxPyEndAllowThreads(__tstate); | |
10086 | if (PyErr_Occurred()) SWIG_fail; | |
10087 | } | |
10088 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBMPHandler, 1); | |
10089 | return resultobj; | |
10090 | fail: | |
10091 | return NULL; | |
10092 | } | |
10093 | ||
10094 | ||
10095 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
10096 | PyObject *obj; | |
10097 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10098 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
10099 | Py_INCREF(obj); | |
10100 | return Py_BuildValue((char *)""); | |
10101 | } | |
10102 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10103 | PyObject *resultobj; | |
10104 | wxICOHandler *result; | |
10105 | char *kwnames[] = { | |
10106 | NULL | |
10107 | }; | |
10108 | ||
10109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
10110 | { | |
10111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10112 | result = (wxICOHandler *)new wxICOHandler(); | |
10113 | ||
10114 | wxPyEndAllowThreads(__tstate); | |
10115 | if (PyErr_Occurred()) SWIG_fail; | |
10116 | } | |
10117 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxICOHandler, 1); | |
10118 | return resultobj; | |
10119 | fail: | |
10120 | return NULL; | |
10121 | } | |
10122 | ||
10123 | ||
10124 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
10125 | PyObject *obj; | |
10126 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10127 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
10128 | Py_INCREF(obj); | |
10129 | return Py_BuildValue((char *)""); | |
10130 | } | |
10131 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10132 | PyObject *resultobj; | |
10133 | wxCURHandler *result; | |
10134 | char *kwnames[] = { | |
10135 | NULL | |
10136 | }; | |
10137 | ||
10138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
10139 | { | |
10140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10141 | result = (wxCURHandler *)new wxCURHandler(); | |
10142 | ||
10143 | wxPyEndAllowThreads(__tstate); | |
10144 | if (PyErr_Occurred()) SWIG_fail; | |
10145 | } | |
10146 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCURHandler, 1); | |
10147 | return resultobj; | |
10148 | fail: | |
10149 | return NULL; | |
10150 | } | |
10151 | ||
10152 | ||
10153 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
10154 | PyObject *obj; | |
10155 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10156 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
10157 | Py_INCREF(obj); | |
10158 | return Py_BuildValue((char *)""); | |
10159 | } | |
10160 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10161 | PyObject *resultobj; | |
10162 | wxANIHandler *result; | |
10163 | char *kwnames[] = { | |
10164 | NULL | |
10165 | }; | |
10166 | ||
10167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
10168 | { | |
10169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10170 | result = (wxANIHandler *)new wxANIHandler(); | |
10171 | ||
10172 | wxPyEndAllowThreads(__tstate); | |
10173 | if (PyErr_Occurred()) SWIG_fail; | |
10174 | } | |
10175 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxANIHandler, 1); | |
10176 | return resultobj; | |
10177 | fail: | |
10178 | return NULL; | |
10179 | } | |
10180 | ||
10181 | ||
10182 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
10183 | PyObject *obj; | |
10184 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10185 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
10186 | Py_INCREF(obj); | |
10187 | return Py_BuildValue((char *)""); | |
10188 | } | |
10189 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10190 | PyObject *resultobj; | |
10191 | wxPNGHandler *result; | |
10192 | char *kwnames[] = { | |
10193 | NULL | |
10194 | }; | |
10195 | ||
10196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
10197 | { | |
10198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10199 | result = (wxPNGHandler *)new wxPNGHandler(); | |
10200 | ||
10201 | wxPyEndAllowThreads(__tstate); | |
10202 | if (PyErr_Occurred()) SWIG_fail; | |
10203 | } | |
10204 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNGHandler, 1); | |
10205 | return resultobj; | |
10206 | fail: | |
10207 | return NULL; | |
10208 | } | |
10209 | ||
10210 | ||
10211 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
10212 | PyObject *obj; | |
10213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10214 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
10215 | Py_INCREF(obj); | |
10216 | return Py_BuildValue((char *)""); | |
10217 | } | |
10218 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10219 | PyObject *resultobj; | |
10220 | wxGIFHandler *result; | |
10221 | char *kwnames[] = { | |
10222 | NULL | |
10223 | }; | |
10224 | ||
10225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
10226 | { | |
10227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10228 | result = (wxGIFHandler *)new wxGIFHandler(); | |
10229 | ||
10230 | wxPyEndAllowThreads(__tstate); | |
10231 | if (PyErr_Occurred()) SWIG_fail; | |
10232 | } | |
10233 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGIFHandler, 1); | |
10234 | return resultobj; | |
10235 | fail: | |
10236 | return NULL; | |
10237 | } | |
10238 | ||
10239 | ||
10240 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
10241 | PyObject *obj; | |
10242 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10243 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
10244 | Py_INCREF(obj); | |
10245 | return Py_BuildValue((char *)""); | |
10246 | } | |
10247 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10248 | PyObject *resultobj; | |
10249 | wxPCXHandler *result; | |
10250 | char *kwnames[] = { | |
10251 | NULL | |
10252 | }; | |
10253 | ||
10254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
10255 | { | |
10256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10257 | result = (wxPCXHandler *)new wxPCXHandler(); | |
10258 | ||
10259 | wxPyEndAllowThreads(__tstate); | |
10260 | if (PyErr_Occurred()) SWIG_fail; | |
10261 | } | |
10262 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPCXHandler, 1); | |
10263 | return resultobj; | |
10264 | fail: | |
10265 | return NULL; | |
10266 | } | |
10267 | ||
10268 | ||
10269 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
10270 | PyObject *obj; | |
10271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10272 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
10273 | Py_INCREF(obj); | |
10274 | return Py_BuildValue((char *)""); | |
10275 | } | |
10276 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10277 | PyObject *resultobj; | |
10278 | wxJPEGHandler *result; | |
10279 | char *kwnames[] = { | |
10280 | NULL | |
10281 | }; | |
10282 | ||
10283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
10284 | { | |
10285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10286 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
10287 | ||
10288 | wxPyEndAllowThreads(__tstate); | |
10289 | if (PyErr_Occurred()) SWIG_fail; | |
10290 | } | |
10291 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJPEGHandler, 1); | |
10292 | return resultobj; | |
10293 | fail: | |
10294 | return NULL; | |
10295 | } | |
10296 | ||
10297 | ||
10298 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
10299 | PyObject *obj; | |
10300 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10301 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
10302 | Py_INCREF(obj); | |
10303 | return Py_BuildValue((char *)""); | |
10304 | } | |
10305 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10306 | PyObject *resultobj; | |
10307 | wxPNMHandler *result; | |
10308 | char *kwnames[] = { | |
10309 | NULL | |
10310 | }; | |
10311 | ||
10312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
10313 | { | |
10314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10315 | result = (wxPNMHandler *)new wxPNMHandler(); | |
10316 | ||
10317 | wxPyEndAllowThreads(__tstate); | |
10318 | if (PyErr_Occurred()) SWIG_fail; | |
10319 | } | |
10320 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNMHandler, 1); | |
10321 | return resultobj; | |
10322 | fail: | |
10323 | return NULL; | |
10324 | } | |
10325 | ||
10326 | ||
10327 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
10328 | PyObject *obj; | |
10329 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10330 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
10331 | Py_INCREF(obj); | |
10332 | return Py_BuildValue((char *)""); | |
10333 | } | |
10334 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10335 | PyObject *resultobj; | |
10336 | wxXPMHandler *result; | |
10337 | char *kwnames[] = { | |
10338 | NULL | |
10339 | }; | |
10340 | ||
10341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
10342 | { | |
10343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10344 | result = (wxXPMHandler *)new wxXPMHandler(); | |
10345 | ||
10346 | wxPyEndAllowThreads(__tstate); | |
10347 | if (PyErr_Occurred()) SWIG_fail; | |
10348 | } | |
10349 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxXPMHandler, 1); | |
10350 | return resultobj; | |
10351 | fail: | |
10352 | return NULL; | |
10353 | } | |
10354 | ||
10355 | ||
10356 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
10357 | PyObject *obj; | |
10358 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10359 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
10360 | Py_INCREF(obj); | |
10361 | return Py_BuildValue((char *)""); | |
10362 | } | |
10363 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10364 | PyObject *resultobj; | |
10365 | wxTIFFHandler *result; | |
10366 | char *kwnames[] = { | |
10367 | NULL | |
10368 | }; | |
10369 | ||
10370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
10371 | { | |
10372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10373 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
10374 | ||
10375 | wxPyEndAllowThreads(__tstate); | |
10376 | if (PyErr_Occurred()) SWIG_fail; | |
10377 | } | |
10378 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTIFFHandler, 1); | |
10379 | return resultobj; | |
10380 | fail: | |
10381 | return NULL; | |
10382 | } | |
10383 | ||
10384 | ||
10385 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
10386 | PyObject *obj; | |
10387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10388 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
10389 | Py_INCREF(obj); | |
10390 | return Py_BuildValue((char *)""); | |
10391 | } | |
10392 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10393 | PyObject *resultobj; | |
10394 | wxEvtHandler *result; | |
10395 | char *kwnames[] = { | |
10396 | NULL | |
10397 | }; | |
10398 | ||
10399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
10400 | { | |
10401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10402 | result = (wxEvtHandler *)new wxEvtHandler(); | |
10403 | ||
10404 | wxPyEndAllowThreads(__tstate); | |
10405 | if (PyErr_Occurred()) SWIG_fail; | |
10406 | } | |
10407 | { | |
10408 | resultobj = wxPyMake_wxObject(result); | |
10409 | } | |
10410 | return resultobj; | |
10411 | fail: | |
10412 | return NULL; | |
10413 | } | |
10414 | ||
10415 | ||
10416 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10417 | PyObject *resultobj; | |
10418 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10419 | wxEvtHandler *result; | |
10420 | PyObject * obj0 = 0 ; | |
10421 | char *kwnames[] = { | |
10422 | (char *) "self", NULL | |
10423 | }; | |
10424 | ||
10425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
10426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10427 | { | |
10428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10429 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
10430 | ||
10431 | wxPyEndAllowThreads(__tstate); | |
10432 | if (PyErr_Occurred()) SWIG_fail; | |
10433 | } | |
10434 | { | |
10435 | resultobj = wxPyMake_wxObject(result); | |
10436 | } | |
10437 | return resultobj; | |
10438 | fail: | |
10439 | return NULL; | |
10440 | } | |
10441 | ||
10442 | ||
10443 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10444 | PyObject *resultobj; | |
10445 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10446 | wxEvtHandler *result; | |
10447 | PyObject * obj0 = 0 ; | |
10448 | char *kwnames[] = { | |
10449 | (char *) "self", NULL | |
10450 | }; | |
10451 | ||
10452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
10453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10454 | { | |
10455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10456 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
10457 | ||
10458 | wxPyEndAllowThreads(__tstate); | |
10459 | if (PyErr_Occurred()) SWIG_fail; | |
10460 | } | |
10461 | { | |
10462 | resultobj = wxPyMake_wxObject(result); | |
10463 | } | |
10464 | return resultobj; | |
10465 | fail: | |
10466 | return NULL; | |
10467 | } | |
10468 | ||
10469 | ||
10470 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10471 | PyObject *resultobj; | |
10472 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10473 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
10474 | PyObject * obj0 = 0 ; | |
10475 | PyObject * obj1 = 0 ; | |
10476 | char *kwnames[] = { | |
10477 | (char *) "self",(char *) "handler", NULL | |
10478 | }; | |
10479 | ||
10480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
10481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10482 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10483 | { | |
10484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10485 | (arg1)->SetNextHandler(arg2); | |
10486 | ||
10487 | wxPyEndAllowThreads(__tstate); | |
10488 | if (PyErr_Occurred()) SWIG_fail; | |
10489 | } | |
10490 | Py_INCREF(Py_None); resultobj = Py_None; | |
10491 | return resultobj; | |
10492 | fail: | |
10493 | return NULL; | |
10494 | } | |
10495 | ||
10496 | ||
10497 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10498 | PyObject *resultobj; | |
10499 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10500 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
10501 | PyObject * obj0 = 0 ; | |
10502 | PyObject * obj1 = 0 ; | |
10503 | char *kwnames[] = { | |
10504 | (char *) "self",(char *) "handler", NULL | |
10505 | }; | |
10506 | ||
10507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
10508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10509 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10510 | { | |
10511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10512 | (arg1)->SetPreviousHandler(arg2); | |
10513 | ||
10514 | wxPyEndAllowThreads(__tstate); | |
10515 | if (PyErr_Occurred()) SWIG_fail; | |
10516 | } | |
10517 | Py_INCREF(Py_None); resultobj = Py_None; | |
10518 | return resultobj; | |
10519 | fail: | |
10520 | return NULL; | |
10521 | } | |
10522 | ||
10523 | ||
10524 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10525 | PyObject *resultobj; | |
10526 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10527 | bool result; | |
10528 | PyObject * obj0 = 0 ; | |
10529 | char *kwnames[] = { | |
10530 | (char *) "self", NULL | |
10531 | }; | |
10532 | ||
10533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
10534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10535 | { | |
10536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10537 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
10538 | ||
10539 | wxPyEndAllowThreads(__tstate); | |
10540 | if (PyErr_Occurred()) SWIG_fail; | |
10541 | } | |
10542 | resultobj = PyInt_FromLong((long)result); | |
10543 | return resultobj; | |
10544 | fail: | |
10545 | return NULL; | |
10546 | } | |
10547 | ||
10548 | ||
10549 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10550 | PyObject *resultobj; | |
10551 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10552 | bool arg2 ; | |
10553 | PyObject * obj0 = 0 ; | |
10554 | PyObject * obj1 = 0 ; | |
10555 | char *kwnames[] = { | |
10556 | (char *) "self",(char *) "enabled", NULL | |
10557 | }; | |
10558 | ||
10559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
10560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10561 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10562 | if (PyErr_Occurred()) SWIG_fail; | |
10563 | { | |
10564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10565 | (arg1)->SetEvtHandlerEnabled(arg2); | |
10566 | ||
10567 | wxPyEndAllowThreads(__tstate); | |
10568 | if (PyErr_Occurred()) SWIG_fail; | |
10569 | } | |
10570 | Py_INCREF(Py_None); resultobj = Py_None; | |
10571 | return resultobj; | |
10572 | fail: | |
10573 | return NULL; | |
10574 | } | |
10575 | ||
10576 | ||
10577 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10578 | PyObject *resultobj; | |
10579 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10580 | wxEvent *arg2 = 0 ; | |
10581 | bool result; | |
10582 | PyObject * obj0 = 0 ; | |
10583 | PyObject * obj1 = 0 ; | |
10584 | char *kwnames[] = { | |
10585 | (char *) "self",(char *) "event", NULL | |
10586 | }; | |
10587 | ||
10588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
10589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10590 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10591 | if (arg2 == NULL) { | |
10592 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10593 | } | |
10594 | { | |
10595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10596 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
10597 | ||
10598 | wxPyEndAllowThreads(__tstate); | |
10599 | if (PyErr_Occurred()) SWIG_fail; | |
10600 | } | |
10601 | resultobj = PyInt_FromLong((long)result); | |
10602 | return resultobj; | |
10603 | fail: | |
10604 | return NULL; | |
10605 | } | |
10606 | ||
10607 | ||
10608 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10609 | PyObject *resultobj; | |
10610 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10611 | wxEvent *arg2 = 0 ; | |
10612 | PyObject * obj0 = 0 ; | |
10613 | PyObject * obj1 = 0 ; | |
10614 | char *kwnames[] = { | |
10615 | (char *) "self",(char *) "event", NULL | |
10616 | }; | |
10617 | ||
10618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
10619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10620 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10621 | if (arg2 == NULL) { | |
10622 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10623 | } | |
10624 | { | |
10625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10626 | (arg1)->AddPendingEvent(*arg2); | |
10627 | ||
10628 | wxPyEndAllowThreads(__tstate); | |
10629 | if (PyErr_Occurred()) SWIG_fail; | |
10630 | } | |
10631 | Py_INCREF(Py_None); resultobj = Py_None; | |
10632 | return resultobj; | |
10633 | fail: | |
10634 | return NULL; | |
10635 | } | |
10636 | ||
10637 | ||
10638 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10639 | PyObject *resultobj; | |
10640 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10641 | PyObject * obj0 = 0 ; | |
10642 | char *kwnames[] = { | |
10643 | (char *) "self", NULL | |
10644 | }; | |
10645 | ||
10646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
10647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10648 | { | |
10649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10650 | (arg1)->ProcessPendingEvents(); | |
10651 | ||
10652 | wxPyEndAllowThreads(__tstate); | |
10653 | if (PyErr_Occurred()) SWIG_fail; | |
10654 | } | |
10655 | Py_INCREF(Py_None); resultobj = Py_None; | |
10656 | return resultobj; | |
10657 | fail: | |
10658 | return NULL; | |
10659 | } | |
10660 | ||
10661 | ||
10662 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10663 | PyObject *resultobj; | |
10664 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10665 | int arg2 ; | |
10666 | int arg3 ; | |
10667 | int arg4 ; | |
10668 | PyObject *arg5 = (PyObject *) 0 ; | |
10669 | PyObject * obj0 = 0 ; | |
10670 | PyObject * obj4 = 0 ; | |
10671 | char *kwnames[] = { | |
10672 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
10673 | }; | |
10674 | ||
10675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiO:EvtHandler_Connect",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
10676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10677 | arg5 = obj4; | |
10678 | { | |
10679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10680 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
10681 | ||
10682 | wxPyEndAllowThreads(__tstate); | |
10683 | if (PyErr_Occurred()) SWIG_fail; | |
10684 | } | |
10685 | Py_INCREF(Py_None); resultobj = Py_None; | |
10686 | return resultobj; | |
10687 | fail: | |
10688 | return NULL; | |
10689 | } | |
10690 | ||
10691 | ||
10692 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10693 | PyObject *resultobj; | |
10694 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10695 | int arg2 ; | |
10696 | int arg3 = (int) -1 ; | |
10697 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
10698 | bool result; | |
10699 | PyObject * obj0 = 0 ; | |
10700 | char *kwnames[] = { | |
10701 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
10702 | }; | |
10703 | ||
10704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:EvtHandler_Disconnect",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
10705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10706 | { | |
10707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10708 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
10709 | ||
10710 | wxPyEndAllowThreads(__tstate); | |
10711 | if (PyErr_Occurred()) SWIG_fail; | |
10712 | } | |
10713 | resultobj = PyInt_FromLong((long)result); | |
10714 | return resultobj; | |
10715 | fail: | |
10716 | return NULL; | |
10717 | } | |
10718 | ||
10719 | ||
10720 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10721 | PyObject *resultobj; | |
10722 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10723 | PyObject *arg2 = (PyObject *) 0 ; | |
10724 | PyObject * obj0 = 0 ; | |
10725 | PyObject * obj1 = 0 ; | |
10726 | char *kwnames[] = { | |
10727 | (char *) "self",(char *) "_self", NULL | |
10728 | }; | |
10729 | ||
10730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
10731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10732 | arg2 = obj1; | |
10733 | { | |
10734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10735 | wxEvtHandler__setOORInfo(arg1,arg2); | |
10736 | ||
10737 | wxPyEndAllowThreads(__tstate); | |
10738 | if (PyErr_Occurred()) SWIG_fail; | |
10739 | } | |
10740 | Py_INCREF(Py_None); resultobj = Py_None; | |
10741 | return resultobj; | |
10742 | fail: | |
10743 | return NULL; | |
10744 | } | |
10745 | ||
10746 | ||
10747 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
10748 | PyObject *obj; | |
10749 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10750 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
10751 | Py_INCREF(obj); | |
10752 | return Py_BuildValue((char *)""); | |
10753 | } | |
10754 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10755 | PyObject *resultobj; | |
10756 | wxEventType result; | |
10757 | char *kwnames[] = { | |
10758 | NULL | |
10759 | }; | |
10760 | ||
10761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
10762 | { | |
10763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10764 | result = (wxEventType)wxNewEventType(); | |
10765 | ||
10766 | wxPyEndAllowThreads(__tstate); | |
10767 | if (PyErr_Occurred()) SWIG_fail; | |
10768 | } | |
10769 | resultobj = PyInt_FromLong((long)result); | |
10770 | return resultobj; | |
10771 | fail: | |
10772 | return NULL; | |
10773 | } | |
10774 | ||
10775 | ||
10776 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10777 | PyObject *resultobj; | |
10778 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10779 | PyObject * obj0 = 0 ; | |
10780 | char *kwnames[] = { | |
10781 | (char *) "self", NULL | |
10782 | }; | |
10783 | ||
10784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
10785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10786 | { | |
10787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10788 | delete arg1; | |
10789 | ||
10790 | wxPyEndAllowThreads(__tstate); | |
10791 | if (PyErr_Occurred()) SWIG_fail; | |
10792 | } | |
10793 | Py_INCREF(Py_None); resultobj = Py_None; | |
10794 | return resultobj; | |
10795 | fail: | |
10796 | return NULL; | |
10797 | } | |
10798 | ||
10799 | ||
10800 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10801 | PyObject *resultobj; | |
10802 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10803 | wxEventType arg2 ; | |
10804 | PyObject * obj0 = 0 ; | |
10805 | char *kwnames[] = { | |
10806 | (char *) "self",(char *) "typ", NULL | |
10807 | }; | |
10808 | ||
10809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Event_SetEventType",kwnames,&obj0,&arg2)) goto fail; | |
10810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10811 | { | |
10812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10813 | (arg1)->SetEventType(arg2); | |
10814 | ||
10815 | wxPyEndAllowThreads(__tstate); | |
10816 | if (PyErr_Occurred()) SWIG_fail; | |
10817 | } | |
10818 | Py_INCREF(Py_None); resultobj = Py_None; | |
10819 | return resultobj; | |
10820 | fail: | |
10821 | return NULL; | |
10822 | } | |
10823 | ||
10824 | ||
10825 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10826 | PyObject *resultobj; | |
10827 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10828 | wxEventType result; | |
10829 | PyObject * obj0 = 0 ; | |
10830 | char *kwnames[] = { | |
10831 | (char *) "self", NULL | |
10832 | }; | |
10833 | ||
10834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
10835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10836 | { | |
10837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10838 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
10839 | ||
10840 | wxPyEndAllowThreads(__tstate); | |
10841 | if (PyErr_Occurred()) SWIG_fail; | |
10842 | } | |
10843 | resultobj = PyInt_FromLong((long)result); | |
10844 | return resultobj; | |
10845 | fail: | |
10846 | return NULL; | |
10847 | } | |
10848 | ||
10849 | ||
10850 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10851 | PyObject *resultobj; | |
10852 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10853 | wxObject *result; | |
10854 | PyObject * obj0 = 0 ; | |
10855 | char *kwnames[] = { | |
10856 | (char *) "self", NULL | |
10857 | }; | |
10858 | ||
10859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
10860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10861 | { | |
10862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10863 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
10864 | ||
10865 | wxPyEndAllowThreads(__tstate); | |
10866 | if (PyErr_Occurred()) SWIG_fail; | |
10867 | } | |
10868 | { | |
10869 | resultobj = wxPyMake_wxObject(result); | |
10870 | } | |
10871 | return resultobj; | |
10872 | fail: | |
10873 | return NULL; | |
10874 | } | |
10875 | ||
10876 | ||
10877 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10878 | PyObject *resultobj; | |
10879 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10880 | wxObject *arg2 = (wxObject *) 0 ; | |
10881 | PyObject * obj0 = 0 ; | |
10882 | PyObject * obj1 = 0 ; | |
10883 | char *kwnames[] = { | |
10884 | (char *) "self",(char *) "obj", NULL | |
10885 | }; | |
10886 | ||
10887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
10888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10889 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10890 | { | |
10891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10892 | (arg1)->SetEventObject(arg2); | |
10893 | ||
10894 | wxPyEndAllowThreads(__tstate); | |
10895 | if (PyErr_Occurred()) SWIG_fail; | |
10896 | } | |
10897 | Py_INCREF(Py_None); resultobj = Py_None; | |
10898 | return resultobj; | |
10899 | fail: | |
10900 | return NULL; | |
10901 | } | |
10902 | ||
10903 | ||
10904 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10905 | PyObject *resultobj; | |
10906 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10907 | long result; | |
10908 | PyObject * obj0 = 0 ; | |
10909 | char *kwnames[] = { | |
10910 | (char *) "self", NULL | |
10911 | }; | |
10912 | ||
10913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
10914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10915 | { | |
10916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10917 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
10918 | ||
10919 | wxPyEndAllowThreads(__tstate); | |
10920 | if (PyErr_Occurred()) SWIG_fail; | |
10921 | } | |
10922 | resultobj = PyInt_FromLong((long)result); | |
10923 | return resultobj; | |
10924 | fail: | |
10925 | return NULL; | |
10926 | } | |
10927 | ||
10928 | ||
10929 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10930 | PyObject *resultobj; | |
10931 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10932 | long arg2 = (long) 0 ; | |
10933 | PyObject * obj0 = 0 ; | |
10934 | char *kwnames[] = { | |
10935 | (char *) "self",(char *) "ts", NULL | |
10936 | }; | |
10937 | ||
10938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:Event_SetTimestamp",kwnames,&obj0,&arg2)) goto fail; | |
10939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10940 | { | |
10941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10942 | (arg1)->SetTimestamp(arg2); | |
10943 | ||
10944 | wxPyEndAllowThreads(__tstate); | |
10945 | if (PyErr_Occurred()) SWIG_fail; | |
10946 | } | |
10947 | Py_INCREF(Py_None); resultobj = Py_None; | |
10948 | return resultobj; | |
10949 | fail: | |
10950 | return NULL; | |
10951 | } | |
10952 | ||
10953 | ||
10954 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10955 | PyObject *resultobj; | |
10956 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10957 | int result; | |
10958 | PyObject * obj0 = 0 ; | |
10959 | char *kwnames[] = { | |
10960 | (char *) "self", NULL | |
10961 | }; | |
10962 | ||
10963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
10964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10965 | { | |
10966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10967 | result = (int)((wxEvent const *)arg1)->GetId(); | |
10968 | ||
10969 | wxPyEndAllowThreads(__tstate); | |
10970 | if (PyErr_Occurred()) SWIG_fail; | |
10971 | } | |
10972 | resultobj = PyInt_FromLong((long)result); | |
10973 | return resultobj; | |
10974 | fail: | |
10975 | return NULL; | |
10976 | } | |
10977 | ||
10978 | ||
10979 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10980 | PyObject *resultobj; | |
10981 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10982 | int arg2 ; | |
10983 | PyObject * obj0 = 0 ; | |
10984 | char *kwnames[] = { | |
10985 | (char *) "self",(char *) "Id", NULL | |
10986 | }; | |
10987 | ||
10988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Event_SetId",kwnames,&obj0,&arg2)) goto fail; | |
10989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10990 | { | |
10991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10992 | (arg1)->SetId(arg2); | |
10993 | ||
10994 | wxPyEndAllowThreads(__tstate); | |
10995 | if (PyErr_Occurred()) SWIG_fail; | |
10996 | } | |
10997 | Py_INCREF(Py_None); resultobj = Py_None; | |
10998 | return resultobj; | |
10999 | fail: | |
11000 | return NULL; | |
11001 | } | |
11002 | ||
11003 | ||
11004 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11005 | PyObject *resultobj; | |
11006 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11007 | bool result; | |
11008 | PyObject * obj0 = 0 ; | |
11009 | char *kwnames[] = { | |
11010 | (char *) "self", NULL | |
11011 | }; | |
11012 | ||
11013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
11014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11015 | { | |
11016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11017 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
11018 | ||
11019 | wxPyEndAllowThreads(__tstate); | |
11020 | if (PyErr_Occurred()) SWIG_fail; | |
11021 | } | |
11022 | resultobj = PyInt_FromLong((long)result); | |
11023 | return resultobj; | |
11024 | fail: | |
11025 | return NULL; | |
11026 | } | |
11027 | ||
11028 | ||
11029 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11030 | PyObject *resultobj; | |
11031 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11032 | bool arg2 = (bool) TRUE ; | |
11033 | PyObject * obj0 = 0 ; | |
11034 | PyObject * obj1 = 0 ; | |
11035 | char *kwnames[] = { | |
11036 | (char *) "self",(char *) "skip", NULL | |
11037 | }; | |
11038 | ||
11039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
11040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11041 | if (obj1) { | |
11042 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
11043 | if (PyErr_Occurred()) SWIG_fail; | |
11044 | } | |
11045 | { | |
11046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11047 | (arg1)->Skip(arg2); | |
11048 | ||
11049 | wxPyEndAllowThreads(__tstate); | |
11050 | if (PyErr_Occurred()) SWIG_fail; | |
11051 | } | |
11052 | Py_INCREF(Py_None); resultobj = Py_None; | |
11053 | return resultobj; | |
11054 | fail: | |
11055 | return NULL; | |
11056 | } | |
11057 | ||
11058 | ||
11059 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11060 | PyObject *resultobj; | |
11061 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11062 | bool result; | |
11063 | PyObject * obj0 = 0 ; | |
11064 | char *kwnames[] = { | |
11065 | (char *) "self", NULL | |
11066 | }; | |
11067 | ||
11068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
11069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11070 | { | |
11071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11072 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
11073 | ||
11074 | wxPyEndAllowThreads(__tstate); | |
11075 | if (PyErr_Occurred()) SWIG_fail; | |
11076 | } | |
11077 | resultobj = PyInt_FromLong((long)result); | |
11078 | return resultobj; | |
11079 | fail: | |
11080 | return NULL; | |
11081 | } | |
11082 | ||
11083 | ||
11084 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11085 | PyObject *resultobj; | |
11086 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11087 | bool result; | |
11088 | PyObject * obj0 = 0 ; | |
11089 | char *kwnames[] = { | |
11090 | (char *) "self", NULL | |
11091 | }; | |
11092 | ||
11093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
11094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11095 | { | |
11096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11097 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
11098 | ||
11099 | wxPyEndAllowThreads(__tstate); | |
11100 | if (PyErr_Occurred()) SWIG_fail; | |
11101 | } | |
11102 | resultobj = PyInt_FromLong((long)result); | |
11103 | return resultobj; | |
11104 | fail: | |
11105 | return NULL; | |
11106 | } | |
11107 | ||
11108 | ||
11109 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11110 | PyObject *resultobj; | |
11111 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11112 | int result; | |
11113 | PyObject * obj0 = 0 ; | |
11114 | char *kwnames[] = { | |
11115 | (char *) "self", NULL | |
11116 | }; | |
11117 | ||
11118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
11119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11120 | { | |
11121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11122 | result = (int)(arg1)->StopPropagation(); | |
11123 | ||
11124 | wxPyEndAllowThreads(__tstate); | |
11125 | if (PyErr_Occurred()) SWIG_fail; | |
11126 | } | |
11127 | resultobj = PyInt_FromLong((long)result); | |
11128 | return resultobj; | |
11129 | fail: | |
11130 | return NULL; | |
11131 | } | |
11132 | ||
11133 | ||
11134 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11135 | PyObject *resultobj; | |
11136 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11137 | int arg2 ; | |
11138 | PyObject * obj0 = 0 ; | |
11139 | char *kwnames[] = { | |
11140 | (char *) "self",(char *) "propagationLevel", NULL | |
11141 | }; | |
11142 | ||
11143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Event_ResumePropagation",kwnames,&obj0,&arg2)) goto fail; | |
11144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11145 | { | |
11146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11147 | (arg1)->ResumePropagation(arg2); | |
11148 | ||
11149 | wxPyEndAllowThreads(__tstate); | |
11150 | if (PyErr_Occurred()) SWIG_fail; | |
11151 | } | |
11152 | Py_INCREF(Py_None); resultobj = Py_None; | |
11153 | return resultobj; | |
11154 | fail: | |
11155 | return NULL; | |
11156 | } | |
11157 | ||
11158 | ||
11159 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11160 | PyObject *resultobj; | |
11161 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11162 | wxEvent *result; | |
11163 | PyObject * obj0 = 0 ; | |
11164 | char *kwnames[] = { | |
11165 | (char *) "self", NULL | |
11166 | }; | |
11167 | ||
11168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
11169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11170 | { | |
11171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11172 | result = (wxEvent *)(arg1)->Clone(); | |
11173 | ||
11174 | wxPyEndAllowThreads(__tstate); | |
11175 | if (PyErr_Occurred()) SWIG_fail; | |
11176 | } | |
11177 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
11178 | return resultobj; | |
11179 | fail: | |
11180 | return NULL; | |
11181 | } | |
11182 | ||
11183 | ||
11184 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
11185 | PyObject *obj; | |
11186 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11187 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
11188 | Py_INCREF(obj); | |
11189 | return Py_BuildValue((char *)""); | |
11190 | } | |
11191 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11192 | PyObject *resultobj; | |
11193 | wxEvent *arg1 = 0 ; | |
11194 | wxPropagationDisabler *result; | |
11195 | PyObject * obj0 = 0 ; | |
11196 | char *kwnames[] = { | |
11197 | (char *) "event", NULL | |
11198 | }; | |
11199 | ||
11200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
11201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11202 | if (arg1 == NULL) { | |
11203 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11204 | } | |
11205 | { | |
11206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11207 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
11208 | ||
11209 | wxPyEndAllowThreads(__tstate); | |
11210 | if (PyErr_Occurred()) SWIG_fail; | |
11211 | } | |
11212 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagationDisabler, 1); | |
11213 | return resultobj; | |
11214 | fail: | |
11215 | return NULL; | |
11216 | } | |
11217 | ||
11218 | ||
11219 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11220 | PyObject *resultobj; | |
11221 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
11222 | PyObject * obj0 = 0 ; | |
11223 | char *kwnames[] = { | |
11224 | (char *) "self", NULL | |
11225 | }; | |
11226 | ||
11227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
11228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagationDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11229 | { | |
11230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11231 | delete arg1; | |
11232 | ||
11233 | wxPyEndAllowThreads(__tstate); | |
11234 | if (PyErr_Occurred()) SWIG_fail; | |
11235 | } | |
11236 | Py_INCREF(Py_None); resultobj = Py_None; | |
11237 | return resultobj; | |
11238 | fail: | |
11239 | return NULL; | |
11240 | } | |
11241 | ||
11242 | ||
11243 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
11244 | PyObject *obj; | |
11245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11246 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
11247 | Py_INCREF(obj); | |
11248 | return Py_BuildValue((char *)""); | |
11249 | } | |
11250 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11251 | PyObject *resultobj; | |
11252 | wxEvent *arg1 = 0 ; | |
11253 | wxPropagateOnce *result; | |
11254 | PyObject * obj0 = 0 ; | |
11255 | char *kwnames[] = { | |
11256 | (char *) "event", NULL | |
11257 | }; | |
11258 | ||
11259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
11260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11261 | if (arg1 == NULL) { | |
11262 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11263 | } | |
11264 | { | |
11265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11266 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
11267 | ||
11268 | wxPyEndAllowThreads(__tstate); | |
11269 | if (PyErr_Occurred()) SWIG_fail; | |
11270 | } | |
11271 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagateOnce, 1); | |
11272 | return resultobj; | |
11273 | fail: | |
11274 | return NULL; | |
11275 | } | |
11276 | ||
11277 | ||
11278 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11279 | PyObject *resultobj; | |
11280 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
11281 | PyObject * obj0 = 0 ; | |
11282 | char *kwnames[] = { | |
11283 | (char *) "self", NULL | |
11284 | }; | |
11285 | ||
11286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
11287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagateOnce,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11288 | { | |
11289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11290 | delete arg1; | |
11291 | ||
11292 | wxPyEndAllowThreads(__tstate); | |
11293 | if (PyErr_Occurred()) SWIG_fail; | |
11294 | } | |
11295 | Py_INCREF(Py_None); resultobj = Py_None; | |
11296 | return resultobj; | |
11297 | fail: | |
11298 | return NULL; | |
11299 | } | |
11300 | ||
11301 | ||
11302 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
11303 | PyObject *obj; | |
11304 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11305 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
11306 | Py_INCREF(obj); | |
11307 | return Py_BuildValue((char *)""); | |
11308 | } | |
11309 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11310 | PyObject *resultobj; | |
11311 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11312 | int arg2 = (int) 0 ; | |
11313 | wxCommandEvent *result; | |
11314 | char *kwnames[] = { | |
11315 | (char *) "commandType",(char *) "winid", NULL | |
11316 | }; | |
11317 | ||
11318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_CommandEvent",kwnames,&arg1,&arg2)) goto fail; | |
11319 | { | |
11320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11321 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
11322 | ||
11323 | wxPyEndAllowThreads(__tstate); | |
11324 | if (PyErr_Occurred()) SWIG_fail; | |
11325 | } | |
11326 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCommandEvent, 1); | |
11327 | return resultobj; | |
11328 | fail: | |
11329 | return NULL; | |
11330 | } | |
11331 | ||
11332 | ||
11333 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11334 | PyObject *resultobj; | |
11335 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11336 | int result; | |
11337 | PyObject * obj0 = 0 ; | |
11338 | char *kwnames[] = { | |
11339 | (char *) "self", NULL | |
11340 | }; | |
11341 | ||
11342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
11343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11344 | { | |
11345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11346 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
11347 | ||
11348 | wxPyEndAllowThreads(__tstate); | |
11349 | if (PyErr_Occurred()) SWIG_fail; | |
11350 | } | |
11351 | resultobj = PyInt_FromLong((long)result); | |
11352 | return resultobj; | |
11353 | fail: | |
11354 | return NULL; | |
11355 | } | |
11356 | ||
11357 | ||
11358 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11359 | PyObject *resultobj; | |
11360 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11361 | wxString *arg2 = 0 ; | |
11362 | bool temp2 = false ; | |
11363 | PyObject * obj0 = 0 ; | |
11364 | PyObject * obj1 = 0 ; | |
11365 | char *kwnames[] = { | |
11366 | (char *) "self",(char *) "s", NULL | |
11367 | }; | |
11368 | ||
11369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
11370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11371 | { | |
11372 | arg2 = wxString_in_helper(obj1); | |
11373 | if (arg2 == NULL) SWIG_fail; | |
11374 | temp2 = true; | |
11375 | } | |
11376 | { | |
11377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11378 | (arg1)->SetString((wxString const &)*arg2); | |
11379 | ||
11380 | wxPyEndAllowThreads(__tstate); | |
11381 | if (PyErr_Occurred()) SWIG_fail; | |
11382 | } | |
11383 | Py_INCREF(Py_None); resultobj = Py_None; | |
11384 | { | |
11385 | if (temp2) | |
11386 | delete arg2; | |
11387 | } | |
11388 | return resultobj; | |
11389 | fail: | |
11390 | { | |
11391 | if (temp2) | |
11392 | delete arg2; | |
11393 | } | |
11394 | return NULL; | |
11395 | } | |
11396 | ||
11397 | ||
11398 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11399 | PyObject *resultobj; | |
11400 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11401 | wxString result; | |
11402 | PyObject * obj0 = 0 ; | |
11403 | char *kwnames[] = { | |
11404 | (char *) "self", NULL | |
11405 | }; | |
11406 | ||
11407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
11408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11409 | { | |
11410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11411 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
11412 | ||
11413 | wxPyEndAllowThreads(__tstate); | |
11414 | if (PyErr_Occurred()) SWIG_fail; | |
11415 | } | |
11416 | { | |
11417 | #if wxUSE_UNICODE | |
11418 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11419 | #else | |
11420 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11421 | #endif | |
11422 | } | |
11423 | return resultobj; | |
11424 | fail: | |
11425 | return NULL; | |
11426 | } | |
11427 | ||
11428 | ||
11429 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11430 | PyObject *resultobj; | |
11431 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11432 | bool result; | |
11433 | PyObject * obj0 = 0 ; | |
11434 | char *kwnames[] = { | |
11435 | (char *) "self", NULL | |
11436 | }; | |
11437 | ||
11438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
11439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11440 | { | |
11441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11442 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
11443 | ||
11444 | wxPyEndAllowThreads(__tstate); | |
11445 | if (PyErr_Occurred()) SWIG_fail; | |
11446 | } | |
11447 | resultobj = PyInt_FromLong((long)result); | |
11448 | return resultobj; | |
11449 | fail: | |
11450 | return NULL; | |
11451 | } | |
11452 | ||
11453 | ||
11454 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11455 | PyObject *resultobj; | |
11456 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11457 | bool result; | |
11458 | PyObject * obj0 = 0 ; | |
11459 | char *kwnames[] = { | |
11460 | (char *) "self", NULL | |
11461 | }; | |
11462 | ||
11463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
11464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11465 | { | |
11466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11467 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
11468 | ||
11469 | wxPyEndAllowThreads(__tstate); | |
11470 | if (PyErr_Occurred()) SWIG_fail; | |
11471 | } | |
11472 | resultobj = PyInt_FromLong((long)result); | |
11473 | return resultobj; | |
11474 | fail: | |
11475 | return NULL; | |
11476 | } | |
11477 | ||
11478 | ||
11479 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11480 | PyObject *resultobj; | |
11481 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11482 | long arg2 ; | |
11483 | PyObject * obj0 = 0 ; | |
11484 | char *kwnames[] = { | |
11485 | (char *) "self",(char *) "extraLong", NULL | |
11486 | }; | |
11487 | ||
11488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:CommandEvent_SetExtraLong",kwnames,&obj0,&arg2)) goto fail; | |
11489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11490 | { | |
11491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11492 | (arg1)->SetExtraLong(arg2); | |
11493 | ||
11494 | wxPyEndAllowThreads(__tstate); | |
11495 | if (PyErr_Occurred()) SWIG_fail; | |
11496 | } | |
11497 | Py_INCREF(Py_None); resultobj = Py_None; | |
11498 | return resultobj; | |
11499 | fail: | |
11500 | return NULL; | |
11501 | } | |
11502 | ||
11503 | ||
11504 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11505 | PyObject *resultobj; | |
11506 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11507 | long result; | |
11508 | PyObject * obj0 = 0 ; | |
11509 | char *kwnames[] = { | |
11510 | (char *) "self", NULL | |
11511 | }; | |
11512 | ||
11513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
11514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11515 | { | |
11516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11517 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
11518 | ||
11519 | wxPyEndAllowThreads(__tstate); | |
11520 | if (PyErr_Occurred()) SWIG_fail; | |
11521 | } | |
11522 | resultobj = PyInt_FromLong((long)result); | |
11523 | return resultobj; | |
11524 | fail: | |
11525 | return NULL; | |
11526 | } | |
11527 | ||
11528 | ||
11529 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11530 | PyObject *resultobj; | |
11531 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11532 | int arg2 ; | |
11533 | PyObject * obj0 = 0 ; | |
11534 | char *kwnames[] = { | |
11535 | (char *) "self",(char *) "i", NULL | |
11536 | }; | |
11537 | ||
11538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CommandEvent_SetInt",kwnames,&obj0,&arg2)) goto fail; | |
11539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11540 | { | |
11541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11542 | (arg1)->SetInt(arg2); | |
11543 | ||
11544 | wxPyEndAllowThreads(__tstate); | |
11545 | if (PyErr_Occurred()) SWIG_fail; | |
11546 | } | |
11547 | Py_INCREF(Py_None); resultobj = Py_None; | |
11548 | return resultobj; | |
11549 | fail: | |
11550 | return NULL; | |
11551 | } | |
11552 | ||
11553 | ||
11554 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11555 | PyObject *resultobj; | |
11556 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11557 | long result; | |
11558 | PyObject * obj0 = 0 ; | |
11559 | char *kwnames[] = { | |
11560 | (char *) "self", NULL | |
11561 | }; | |
11562 | ||
11563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
11564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11565 | { | |
11566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11567 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
11568 | ||
11569 | wxPyEndAllowThreads(__tstate); | |
11570 | if (PyErr_Occurred()) SWIG_fail; | |
11571 | } | |
11572 | resultobj = PyInt_FromLong((long)result); | |
11573 | return resultobj; | |
11574 | fail: | |
11575 | return NULL; | |
11576 | } | |
11577 | ||
11578 | ||
11579 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11580 | PyObject *resultobj; | |
11581 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11582 | wxEvent *result; | |
11583 | PyObject * obj0 = 0 ; | |
11584 | char *kwnames[] = { | |
11585 | (char *) "self", NULL | |
11586 | }; | |
11587 | ||
11588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
11589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11590 | { | |
11591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11592 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
11593 | ||
11594 | wxPyEndAllowThreads(__tstate); | |
11595 | if (PyErr_Occurred()) SWIG_fail; | |
11596 | } | |
11597 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
11598 | return resultobj; | |
11599 | fail: | |
11600 | return NULL; | |
11601 | } | |
11602 | ||
11603 | ||
11604 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
11605 | PyObject *obj; | |
11606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11607 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
11608 | Py_INCREF(obj); | |
11609 | return Py_BuildValue((char *)""); | |
11610 | } | |
11611 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11612 | PyObject *resultobj; | |
11613 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11614 | int arg2 = (int) 0 ; | |
11615 | wxNotifyEvent *result; | |
11616 | char *kwnames[] = { | |
11617 | (char *) "commandType",(char *) "winid", NULL | |
11618 | }; | |
11619 | ||
11620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_NotifyEvent",kwnames,&arg1,&arg2)) goto fail; | |
11621 | { | |
11622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11623 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
11624 | ||
11625 | wxPyEndAllowThreads(__tstate); | |
11626 | if (PyErr_Occurred()) SWIG_fail; | |
11627 | } | |
11628 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotifyEvent, 1); | |
11629 | return resultobj; | |
11630 | fail: | |
11631 | return NULL; | |
11632 | } | |
11633 | ||
11634 | ||
11635 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11636 | PyObject *resultobj; | |
11637 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
11638 | PyObject * obj0 = 0 ; | |
11639 | char *kwnames[] = { | |
11640 | (char *) "self", NULL | |
11641 | }; | |
11642 | ||
11643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
11644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11645 | { | |
11646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11647 | (arg1)->Veto(); | |
11648 | ||
11649 | wxPyEndAllowThreads(__tstate); | |
11650 | if (PyErr_Occurred()) SWIG_fail; | |
11651 | } | |
11652 | Py_INCREF(Py_None); resultobj = Py_None; | |
11653 | return resultobj; | |
11654 | fail: | |
11655 | return NULL; | |
11656 | } | |
11657 | ||
11658 | ||
11659 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11660 | PyObject *resultobj; | |
11661 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
11662 | PyObject * obj0 = 0 ; | |
11663 | char *kwnames[] = { | |
11664 | (char *) "self", NULL | |
11665 | }; | |
11666 | ||
11667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
11668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11669 | { | |
11670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11671 | (arg1)->Allow(); | |
11672 | ||
11673 | wxPyEndAllowThreads(__tstate); | |
11674 | if (PyErr_Occurred()) SWIG_fail; | |
11675 | } | |
11676 | Py_INCREF(Py_None); resultobj = Py_None; | |
11677 | return resultobj; | |
11678 | fail: | |
11679 | return NULL; | |
11680 | } | |
11681 | ||
11682 | ||
11683 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11684 | PyObject *resultobj; | |
11685 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
11686 | bool result; | |
11687 | PyObject * obj0 = 0 ; | |
11688 | char *kwnames[] = { | |
11689 | (char *) "self", NULL | |
11690 | }; | |
11691 | ||
11692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
11693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11694 | { | |
11695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11696 | result = (bool)(arg1)->IsAllowed(); | |
11697 | ||
11698 | wxPyEndAllowThreads(__tstate); | |
11699 | if (PyErr_Occurred()) SWIG_fail; | |
11700 | } | |
11701 | resultobj = PyInt_FromLong((long)result); | |
11702 | return resultobj; | |
11703 | fail: | |
11704 | return NULL; | |
11705 | } | |
11706 | ||
11707 | ||
11708 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
11709 | PyObject *obj; | |
11710 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11711 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
11712 | Py_INCREF(obj); | |
11713 | return Py_BuildValue((char *)""); | |
11714 | } | |
11715 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11716 | PyObject *resultobj; | |
11717 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11718 | int arg2 = (int) 0 ; | |
11719 | int arg3 = (int) 0 ; | |
11720 | int arg4 = (int) 0 ; | |
11721 | wxScrollEvent *result; | |
11722 | char *kwnames[] = { | |
11723 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
11724 | }; | |
11725 | ||
11726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_ScrollEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
11727 | { | |
11728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11729 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
11730 | ||
11731 | wxPyEndAllowThreads(__tstate); | |
11732 | if (PyErr_Occurred()) SWIG_fail; | |
11733 | } | |
11734 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollEvent, 1); | |
11735 | return resultobj; | |
11736 | fail: | |
11737 | return NULL; | |
11738 | } | |
11739 | ||
11740 | ||
11741 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11742 | PyObject *resultobj; | |
11743 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
11744 | int result; | |
11745 | PyObject * obj0 = 0 ; | |
11746 | char *kwnames[] = { | |
11747 | (char *) "self", NULL | |
11748 | }; | |
11749 | ||
11750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
11751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11752 | { | |
11753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11754 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
11755 | ||
11756 | wxPyEndAllowThreads(__tstate); | |
11757 | if (PyErr_Occurred()) SWIG_fail; | |
11758 | } | |
11759 | resultobj = PyInt_FromLong((long)result); | |
11760 | return resultobj; | |
11761 | fail: | |
11762 | return NULL; | |
11763 | } | |
11764 | ||
11765 | ||
11766 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11767 | PyObject *resultobj; | |
11768 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
11769 | int result; | |
11770 | PyObject * obj0 = 0 ; | |
11771 | char *kwnames[] = { | |
11772 | (char *) "self", NULL | |
11773 | }; | |
11774 | ||
11775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11777 | { | |
11778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11779 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
11780 | ||
11781 | wxPyEndAllowThreads(__tstate); | |
11782 | if (PyErr_Occurred()) SWIG_fail; | |
11783 | } | |
11784 | resultobj = PyInt_FromLong((long)result); | |
11785 | return resultobj; | |
11786 | fail: | |
11787 | return NULL; | |
11788 | } | |
11789 | ||
11790 | ||
11791 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11792 | PyObject *resultobj; | |
11793 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
11794 | int arg2 ; | |
11795 | PyObject * obj0 = 0 ; | |
11796 | char *kwnames[] = { | |
11797 | (char *) "self",(char *) "orient", NULL | |
11798 | }; | |
11799 | ||
11800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollEvent_SetOrientation",kwnames,&obj0,&arg2)) goto fail; | |
11801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11802 | { | |
11803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11804 | (arg1)->SetOrientation(arg2); | |
11805 | ||
11806 | wxPyEndAllowThreads(__tstate); | |
11807 | if (PyErr_Occurred()) SWIG_fail; | |
11808 | } | |
11809 | Py_INCREF(Py_None); resultobj = Py_None; | |
11810 | return resultobj; | |
11811 | fail: | |
11812 | return NULL; | |
11813 | } | |
11814 | ||
11815 | ||
11816 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11817 | PyObject *resultobj; | |
11818 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
11819 | int arg2 ; | |
11820 | PyObject * obj0 = 0 ; | |
11821 | char *kwnames[] = { | |
11822 | (char *) "self",(char *) "pos", NULL | |
11823 | }; | |
11824 | ||
11825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollEvent_SetPosition",kwnames,&obj0,&arg2)) goto fail; | |
11826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11827 | { | |
11828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11829 | (arg1)->SetPosition(arg2); | |
11830 | ||
11831 | wxPyEndAllowThreads(__tstate); | |
11832 | if (PyErr_Occurred()) SWIG_fail; | |
11833 | } | |
11834 | Py_INCREF(Py_None); resultobj = Py_None; | |
11835 | return resultobj; | |
11836 | fail: | |
11837 | return NULL; | |
11838 | } | |
11839 | ||
11840 | ||
11841 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
11842 | PyObject *obj; | |
11843 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11844 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
11845 | Py_INCREF(obj); | |
11846 | return Py_BuildValue((char *)""); | |
11847 | } | |
11848 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11849 | PyObject *resultobj; | |
11850 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11851 | int arg2 = (int) 0 ; | |
11852 | int arg3 = (int) 0 ; | |
11853 | wxScrollWinEvent *result; | |
11854 | char *kwnames[] = { | |
11855 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
11856 | }; | |
11857 | ||
11858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iii:new_ScrollWinEvent",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
11859 | { | |
11860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11861 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
11862 | ||
11863 | wxPyEndAllowThreads(__tstate); | |
11864 | if (PyErr_Occurred()) SWIG_fail; | |
11865 | } | |
11866 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollWinEvent, 1); | |
11867 | return resultobj; | |
11868 | fail: | |
11869 | return NULL; | |
11870 | } | |
11871 | ||
11872 | ||
11873 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11874 | PyObject *resultobj; | |
11875 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
11876 | int result; | |
11877 | PyObject * obj0 = 0 ; | |
11878 | char *kwnames[] = { | |
11879 | (char *) "self", NULL | |
11880 | }; | |
11881 | ||
11882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
11883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11884 | { | |
11885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11886 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
11887 | ||
11888 | wxPyEndAllowThreads(__tstate); | |
11889 | if (PyErr_Occurred()) SWIG_fail; | |
11890 | } | |
11891 | resultobj = PyInt_FromLong((long)result); | |
11892 | return resultobj; | |
11893 | fail: | |
11894 | return NULL; | |
11895 | } | |
11896 | ||
11897 | ||
11898 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11899 | PyObject *resultobj; | |
11900 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
11901 | int result; | |
11902 | PyObject * obj0 = 0 ; | |
11903 | char *kwnames[] = { | |
11904 | (char *) "self", NULL | |
11905 | }; | |
11906 | ||
11907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11909 | { | |
11910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11911 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
11912 | ||
11913 | wxPyEndAllowThreads(__tstate); | |
11914 | if (PyErr_Occurred()) SWIG_fail; | |
11915 | } | |
11916 | resultobj = PyInt_FromLong((long)result); | |
11917 | return resultobj; | |
11918 | fail: | |
11919 | return NULL; | |
11920 | } | |
11921 | ||
11922 | ||
11923 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11924 | PyObject *resultobj; | |
11925 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
11926 | int arg2 ; | |
11927 | PyObject * obj0 = 0 ; | |
11928 | char *kwnames[] = { | |
11929 | (char *) "self",(char *) "orient", NULL | |
11930 | }; | |
11931 | ||
11932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollWinEvent_SetOrientation",kwnames,&obj0,&arg2)) goto fail; | |
11933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11934 | { | |
11935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11936 | (arg1)->SetOrientation(arg2); | |
11937 | ||
11938 | wxPyEndAllowThreads(__tstate); | |
11939 | if (PyErr_Occurred()) SWIG_fail; | |
11940 | } | |
11941 | Py_INCREF(Py_None); resultobj = Py_None; | |
11942 | return resultobj; | |
11943 | fail: | |
11944 | return NULL; | |
11945 | } | |
11946 | ||
11947 | ||
11948 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11949 | PyObject *resultobj; | |
11950 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
11951 | int arg2 ; | |
11952 | PyObject * obj0 = 0 ; | |
11953 | char *kwnames[] = { | |
11954 | (char *) "self",(char *) "pos", NULL | |
11955 | }; | |
11956 | ||
11957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollWinEvent_SetPosition",kwnames,&obj0,&arg2)) goto fail; | |
11958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11959 | { | |
11960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11961 | (arg1)->SetPosition(arg2); | |
11962 | ||
11963 | wxPyEndAllowThreads(__tstate); | |
11964 | if (PyErr_Occurred()) SWIG_fail; | |
11965 | } | |
11966 | Py_INCREF(Py_None); resultobj = Py_None; | |
11967 | return resultobj; | |
11968 | fail: | |
11969 | return NULL; | |
11970 | } | |
11971 | ||
11972 | ||
11973 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
11974 | PyObject *obj; | |
11975 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11976 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
11977 | Py_INCREF(obj); | |
11978 | return Py_BuildValue((char *)""); | |
11979 | } | |
11980 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11981 | PyObject *resultobj; | |
11982 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11983 | wxMouseEvent *result; | |
11984 | char *kwnames[] = { | |
11985 | (char *) "mouseType", NULL | |
11986 | }; | |
11987 | ||
11988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_MouseEvent",kwnames,&arg1)) goto fail; | |
11989 | { | |
11990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11991 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
11992 | ||
11993 | wxPyEndAllowThreads(__tstate); | |
11994 | if (PyErr_Occurred()) SWIG_fail; | |
11995 | } | |
11996 | { | |
11997 | resultobj = wxPyMake_wxObject(result); | |
11998 | } | |
11999 | return resultobj; | |
12000 | fail: | |
12001 | return NULL; | |
12002 | } | |
12003 | ||
12004 | ||
12005 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12006 | PyObject *resultobj; | |
12007 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12008 | bool result; | |
12009 | PyObject * obj0 = 0 ; | |
12010 | char *kwnames[] = { | |
12011 | (char *) "self", NULL | |
12012 | }; | |
12013 | ||
12014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
12015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12016 | { | |
12017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12018 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
12019 | ||
12020 | wxPyEndAllowThreads(__tstate); | |
12021 | if (PyErr_Occurred()) SWIG_fail; | |
12022 | } | |
12023 | resultobj = PyInt_FromLong((long)result); | |
12024 | return resultobj; | |
12025 | fail: | |
12026 | return NULL; | |
12027 | } | |
12028 | ||
12029 | ||
12030 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12031 | PyObject *resultobj; | |
12032 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12033 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
12034 | bool result; | |
12035 | PyObject * obj0 = 0 ; | |
12036 | char *kwnames[] = { | |
12037 | (char *) "self",(char *) "but", NULL | |
12038 | }; | |
12039 | ||
12040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:MouseEvent_ButtonDown",kwnames,&obj0,&arg2)) goto fail; | |
12041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12042 | { | |
12043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12044 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
12045 | ||
12046 | wxPyEndAllowThreads(__tstate); | |
12047 | if (PyErr_Occurred()) SWIG_fail; | |
12048 | } | |
12049 | resultobj = PyInt_FromLong((long)result); | |
12050 | return resultobj; | |
12051 | fail: | |
12052 | return NULL; | |
12053 | } | |
12054 | ||
12055 | ||
12056 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12057 | PyObject *resultobj; | |
12058 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12059 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
12060 | bool result; | |
12061 | PyObject * obj0 = 0 ; | |
12062 | char *kwnames[] = { | |
12063 | (char *) "self",(char *) "but", NULL | |
12064 | }; | |
12065 | ||
12066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:MouseEvent_ButtonDClick",kwnames,&obj0,&arg2)) goto fail; | |
12067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12068 | { | |
12069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12070 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
12071 | ||
12072 | wxPyEndAllowThreads(__tstate); | |
12073 | if (PyErr_Occurred()) SWIG_fail; | |
12074 | } | |
12075 | resultobj = PyInt_FromLong((long)result); | |
12076 | return resultobj; | |
12077 | fail: | |
12078 | return NULL; | |
12079 | } | |
12080 | ||
12081 | ||
12082 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12083 | PyObject *resultobj; | |
12084 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12085 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
12086 | bool result; | |
12087 | PyObject * obj0 = 0 ; | |
12088 | char *kwnames[] = { | |
12089 | (char *) "self",(char *) "but", NULL | |
12090 | }; | |
12091 | ||
12092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:MouseEvent_ButtonUp",kwnames,&obj0,&arg2)) goto fail; | |
12093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12094 | { | |
12095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12096 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
12097 | ||
12098 | wxPyEndAllowThreads(__tstate); | |
12099 | if (PyErr_Occurred()) SWIG_fail; | |
12100 | } | |
12101 | resultobj = PyInt_FromLong((long)result); | |
12102 | return resultobj; | |
12103 | fail: | |
12104 | return NULL; | |
12105 | } | |
12106 | ||
12107 | ||
12108 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12109 | PyObject *resultobj; | |
12110 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12111 | int arg2 ; | |
12112 | bool result; | |
12113 | PyObject * obj0 = 0 ; | |
12114 | char *kwnames[] = { | |
12115 | (char *) "self",(char *) "but", NULL | |
12116 | }; | |
12117 | ||
12118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_Button",kwnames,&obj0,&arg2)) goto fail; | |
12119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12120 | { | |
12121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12122 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
12123 | ||
12124 | wxPyEndAllowThreads(__tstate); | |
12125 | if (PyErr_Occurred()) SWIG_fail; | |
12126 | } | |
12127 | resultobj = PyInt_FromLong((long)result); | |
12128 | return resultobj; | |
12129 | fail: | |
12130 | return NULL; | |
12131 | } | |
12132 | ||
12133 | ||
12134 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12135 | PyObject *resultobj; | |
12136 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12137 | int arg2 ; | |
12138 | bool result; | |
12139 | PyObject * obj0 = 0 ; | |
12140 | char *kwnames[] = { | |
12141 | (char *) "self",(char *) "but", NULL | |
12142 | }; | |
12143 | ||
12144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_ButtonIsDown",kwnames,&obj0,&arg2)) goto fail; | |
12145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12146 | { | |
12147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12148 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
12149 | ||
12150 | wxPyEndAllowThreads(__tstate); | |
12151 | if (PyErr_Occurred()) SWIG_fail; | |
12152 | } | |
12153 | resultobj = PyInt_FromLong((long)result); | |
12154 | return resultobj; | |
12155 | fail: | |
12156 | return NULL; | |
12157 | } | |
12158 | ||
12159 | ||
12160 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12161 | PyObject *resultobj; | |
12162 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12163 | int result; | |
12164 | PyObject * obj0 = 0 ; | |
12165 | char *kwnames[] = { | |
12166 | (char *) "self", NULL | |
12167 | }; | |
12168 | ||
12169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
12170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12171 | { | |
12172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12173 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
12174 | ||
12175 | wxPyEndAllowThreads(__tstate); | |
12176 | if (PyErr_Occurred()) SWIG_fail; | |
12177 | } | |
12178 | resultobj = PyInt_FromLong((long)result); | |
12179 | return resultobj; | |
12180 | fail: | |
12181 | return NULL; | |
12182 | } | |
12183 | ||
12184 | ||
12185 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12186 | PyObject *resultobj; | |
12187 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12188 | bool result; | |
12189 | PyObject * obj0 = 0 ; | |
12190 | char *kwnames[] = { | |
12191 | (char *) "self", NULL | |
12192 | }; | |
12193 | ||
12194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
12195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12196 | { | |
12197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12198 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
12199 | ||
12200 | wxPyEndAllowThreads(__tstate); | |
12201 | if (PyErr_Occurred()) SWIG_fail; | |
12202 | } | |
12203 | resultobj = PyInt_FromLong((long)result); | |
12204 | return resultobj; | |
12205 | fail: | |
12206 | return NULL; | |
12207 | } | |
12208 | ||
12209 | ||
12210 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12211 | PyObject *resultobj; | |
12212 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12213 | bool result; | |
12214 | PyObject * obj0 = 0 ; | |
12215 | char *kwnames[] = { | |
12216 | (char *) "self", NULL | |
12217 | }; | |
12218 | ||
12219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
12220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12221 | { | |
12222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12223 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
12224 | ||
12225 | wxPyEndAllowThreads(__tstate); | |
12226 | if (PyErr_Occurred()) SWIG_fail; | |
12227 | } | |
12228 | resultobj = PyInt_FromLong((long)result); | |
12229 | return resultobj; | |
12230 | fail: | |
12231 | return NULL; | |
12232 | } | |
12233 | ||
12234 | ||
12235 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12236 | PyObject *resultobj; | |
12237 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12238 | bool result; | |
12239 | PyObject * obj0 = 0 ; | |
12240 | char *kwnames[] = { | |
12241 | (char *) "self", NULL | |
12242 | }; | |
12243 | ||
12244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
12245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12246 | { | |
12247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12248 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
12249 | ||
12250 | wxPyEndAllowThreads(__tstate); | |
12251 | if (PyErr_Occurred()) SWIG_fail; | |
12252 | } | |
12253 | resultobj = PyInt_FromLong((long)result); | |
12254 | return resultobj; | |
12255 | fail: | |
12256 | return NULL; | |
12257 | } | |
12258 | ||
12259 | ||
12260 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12261 | PyObject *resultobj; | |
12262 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12263 | bool result; | |
12264 | PyObject * obj0 = 0 ; | |
12265 | char *kwnames[] = { | |
12266 | (char *) "self", NULL | |
12267 | }; | |
12268 | ||
12269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
12270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12271 | { | |
12272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12273 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
12274 | ||
12275 | wxPyEndAllowThreads(__tstate); | |
12276 | if (PyErr_Occurred()) SWIG_fail; | |
12277 | } | |
12278 | resultobj = PyInt_FromLong((long)result); | |
12279 | return resultobj; | |
12280 | fail: | |
12281 | return NULL; | |
12282 | } | |
12283 | ||
12284 | ||
12285 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12286 | PyObject *resultobj; | |
12287 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12288 | bool result; | |
12289 | PyObject * obj0 = 0 ; | |
12290 | char *kwnames[] = { | |
12291 | (char *) "self", NULL | |
12292 | }; | |
12293 | ||
12294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
12295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12296 | { | |
12297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12298 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
12299 | ||
12300 | wxPyEndAllowThreads(__tstate); | |
12301 | if (PyErr_Occurred()) SWIG_fail; | |
12302 | } | |
12303 | resultobj = PyInt_FromLong((long)result); | |
12304 | return resultobj; | |
12305 | fail: | |
12306 | return NULL; | |
12307 | } | |
12308 | ||
12309 | ||
12310 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12311 | PyObject *resultobj; | |
12312 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12313 | bool result; | |
12314 | PyObject * obj0 = 0 ; | |
12315 | char *kwnames[] = { | |
12316 | (char *) "self", NULL | |
12317 | }; | |
12318 | ||
12319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
12320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12321 | { | |
12322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12323 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
12324 | ||
12325 | wxPyEndAllowThreads(__tstate); | |
12326 | if (PyErr_Occurred()) SWIG_fail; | |
12327 | } | |
12328 | resultobj = PyInt_FromLong((long)result); | |
12329 | return resultobj; | |
12330 | fail: | |
12331 | return NULL; | |
12332 | } | |
12333 | ||
12334 | ||
12335 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12336 | PyObject *resultobj; | |
12337 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12338 | bool result; | |
12339 | PyObject * obj0 = 0 ; | |
12340 | char *kwnames[] = { | |
12341 | (char *) "self", NULL | |
12342 | }; | |
12343 | ||
12344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
12345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12346 | { | |
12347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12348 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
12349 | ||
12350 | wxPyEndAllowThreads(__tstate); | |
12351 | if (PyErr_Occurred()) SWIG_fail; | |
12352 | } | |
12353 | resultobj = PyInt_FromLong((long)result); | |
12354 | return resultobj; | |
12355 | fail: | |
12356 | return NULL; | |
12357 | } | |
12358 | ||
12359 | ||
12360 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12361 | PyObject *resultobj; | |
12362 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12363 | bool result; | |
12364 | PyObject * obj0 = 0 ; | |
12365 | char *kwnames[] = { | |
12366 | (char *) "self", NULL | |
12367 | }; | |
12368 | ||
12369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
12370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12371 | { | |
12372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12373 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
12374 | ||
12375 | wxPyEndAllowThreads(__tstate); | |
12376 | if (PyErr_Occurred()) SWIG_fail; | |
12377 | } | |
12378 | resultobj = PyInt_FromLong((long)result); | |
12379 | return resultobj; | |
12380 | fail: | |
12381 | return NULL; | |
12382 | } | |
12383 | ||
12384 | ||
12385 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12386 | PyObject *resultobj; | |
12387 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12388 | bool result; | |
12389 | PyObject * obj0 = 0 ; | |
12390 | char *kwnames[] = { | |
12391 | (char *) "self", NULL | |
12392 | }; | |
12393 | ||
12394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
12395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12396 | { | |
12397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12398 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
12399 | ||
12400 | wxPyEndAllowThreads(__tstate); | |
12401 | if (PyErr_Occurred()) SWIG_fail; | |
12402 | } | |
12403 | resultobj = PyInt_FromLong((long)result); | |
12404 | return resultobj; | |
12405 | fail: | |
12406 | return NULL; | |
12407 | } | |
12408 | ||
12409 | ||
12410 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12411 | PyObject *resultobj; | |
12412 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12413 | bool result; | |
12414 | PyObject * obj0 = 0 ; | |
12415 | char *kwnames[] = { | |
12416 | (char *) "self", NULL | |
12417 | }; | |
12418 | ||
12419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
12420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12421 | { | |
12422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12423 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
12424 | ||
12425 | wxPyEndAllowThreads(__tstate); | |
12426 | if (PyErr_Occurred()) SWIG_fail; | |
12427 | } | |
12428 | resultobj = PyInt_FromLong((long)result); | |
12429 | return resultobj; | |
12430 | fail: | |
12431 | return NULL; | |
12432 | } | |
12433 | ||
12434 | ||
12435 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12436 | PyObject *resultobj; | |
12437 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12438 | bool result; | |
12439 | PyObject * obj0 = 0 ; | |
12440 | char *kwnames[] = { | |
12441 | (char *) "self", NULL | |
12442 | }; | |
12443 | ||
12444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
12445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12446 | { | |
12447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12448 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
12449 | ||
12450 | wxPyEndAllowThreads(__tstate); | |
12451 | if (PyErr_Occurred()) SWIG_fail; | |
12452 | } | |
12453 | resultobj = PyInt_FromLong((long)result); | |
12454 | return resultobj; | |
12455 | fail: | |
12456 | return NULL; | |
12457 | } | |
12458 | ||
12459 | ||
12460 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12461 | PyObject *resultobj; | |
12462 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12463 | bool result; | |
12464 | PyObject * obj0 = 0 ; | |
12465 | char *kwnames[] = { | |
12466 | (char *) "self", NULL | |
12467 | }; | |
12468 | ||
12469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
12470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12471 | { | |
12472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12473 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
12474 | ||
12475 | wxPyEndAllowThreads(__tstate); | |
12476 | if (PyErr_Occurred()) SWIG_fail; | |
12477 | } | |
12478 | resultobj = PyInt_FromLong((long)result); | |
12479 | return resultobj; | |
12480 | fail: | |
12481 | return NULL; | |
12482 | } | |
12483 | ||
12484 | ||
12485 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12486 | PyObject *resultobj; | |
12487 | wxMouseEvent *arg1 = (wxMouseEvent *) 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:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
12495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12496 | { | |
12497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12498 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
12499 | ||
12500 | wxPyEndAllowThreads(__tstate); | |
12501 | if (PyErr_Occurred()) SWIG_fail; | |
12502 | } | |
12503 | resultobj = PyInt_FromLong((long)result); | |
12504 | return resultobj; | |
12505 | fail: | |
12506 | return NULL; | |
12507 | } | |
12508 | ||
12509 | ||
12510 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12511 | PyObject *resultobj; | |
12512 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12513 | bool result; | |
12514 | PyObject * obj0 = 0 ; | |
12515 | char *kwnames[] = { | |
12516 | (char *) "self", NULL | |
12517 | }; | |
12518 | ||
12519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
12520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12521 | { | |
12522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12523 | result = (bool)(arg1)->LeftIsDown(); | |
12524 | ||
12525 | wxPyEndAllowThreads(__tstate); | |
12526 | if (PyErr_Occurred()) SWIG_fail; | |
12527 | } | |
12528 | resultobj = PyInt_FromLong((long)result); | |
12529 | return resultobj; | |
12530 | fail: | |
12531 | return NULL; | |
12532 | } | |
12533 | ||
12534 | ||
12535 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12536 | PyObject *resultobj; | |
12537 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12538 | bool result; | |
12539 | PyObject * obj0 = 0 ; | |
12540 | char *kwnames[] = { | |
12541 | (char *) "self", NULL | |
12542 | }; | |
12543 | ||
12544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
12545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12546 | { | |
12547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12548 | result = (bool)(arg1)->MiddleIsDown(); | |
12549 | ||
12550 | wxPyEndAllowThreads(__tstate); | |
12551 | if (PyErr_Occurred()) SWIG_fail; | |
12552 | } | |
12553 | resultobj = PyInt_FromLong((long)result); | |
12554 | return resultobj; | |
12555 | fail: | |
12556 | return NULL; | |
12557 | } | |
12558 | ||
12559 | ||
12560 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12561 | PyObject *resultobj; | |
12562 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12563 | bool result; | |
12564 | PyObject * obj0 = 0 ; | |
12565 | char *kwnames[] = { | |
12566 | (char *) "self", NULL | |
12567 | }; | |
12568 | ||
12569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
12570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12571 | { | |
12572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12573 | result = (bool)(arg1)->RightIsDown(); | |
12574 | ||
12575 | wxPyEndAllowThreads(__tstate); | |
12576 | if (PyErr_Occurred()) SWIG_fail; | |
12577 | } | |
12578 | resultobj = PyInt_FromLong((long)result); | |
12579 | return resultobj; | |
12580 | fail: | |
12581 | return NULL; | |
12582 | } | |
12583 | ||
12584 | ||
12585 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12586 | PyObject *resultobj; | |
12587 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12588 | bool result; | |
12589 | PyObject * obj0 = 0 ; | |
12590 | char *kwnames[] = { | |
12591 | (char *) "self", NULL | |
12592 | }; | |
12593 | ||
12594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
12595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12596 | { | |
12597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12598 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
12599 | ||
12600 | wxPyEndAllowThreads(__tstate); | |
12601 | if (PyErr_Occurred()) SWIG_fail; | |
12602 | } | |
12603 | resultobj = PyInt_FromLong((long)result); | |
12604 | return resultobj; | |
12605 | fail: | |
12606 | return NULL; | |
12607 | } | |
12608 | ||
12609 | ||
12610 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12611 | PyObject *resultobj; | |
12612 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12613 | bool result; | |
12614 | PyObject * obj0 = 0 ; | |
12615 | char *kwnames[] = { | |
12616 | (char *) "self", NULL | |
12617 | }; | |
12618 | ||
12619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
12620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12621 | { | |
12622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12623 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
12624 | ||
12625 | wxPyEndAllowThreads(__tstate); | |
12626 | if (PyErr_Occurred()) SWIG_fail; | |
12627 | } | |
12628 | resultobj = PyInt_FromLong((long)result); | |
12629 | return resultobj; | |
12630 | fail: | |
12631 | return NULL; | |
12632 | } | |
12633 | ||
12634 | ||
12635 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12636 | PyObject *resultobj; | |
12637 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12638 | bool result; | |
12639 | PyObject * obj0 = 0 ; | |
12640 | char *kwnames[] = { | |
12641 | (char *) "self", NULL | |
12642 | }; | |
12643 | ||
12644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
12645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12646 | { | |
12647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12648 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
12649 | ||
12650 | wxPyEndAllowThreads(__tstate); | |
12651 | if (PyErr_Occurred()) SWIG_fail; | |
12652 | } | |
12653 | resultobj = PyInt_FromLong((long)result); | |
12654 | return resultobj; | |
12655 | fail: | |
12656 | return NULL; | |
12657 | } | |
12658 | ||
12659 | ||
12660 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12661 | PyObject *resultobj; | |
12662 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12663 | bool result; | |
12664 | PyObject * obj0 = 0 ; | |
12665 | char *kwnames[] = { | |
12666 | (char *) "self", NULL | |
12667 | }; | |
12668 | ||
12669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
12670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12671 | { | |
12672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12673 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
12674 | ||
12675 | wxPyEndAllowThreads(__tstate); | |
12676 | if (PyErr_Occurred()) SWIG_fail; | |
12677 | } | |
12678 | resultobj = PyInt_FromLong((long)result); | |
12679 | return resultobj; | |
12680 | fail: | |
12681 | return NULL; | |
12682 | } | |
12683 | ||
12684 | ||
12685 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12686 | PyObject *resultobj; | |
12687 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12688 | wxPoint result; | |
12689 | PyObject * obj0 = 0 ; | |
12690 | char *kwnames[] = { | |
12691 | (char *) "self", NULL | |
12692 | }; | |
12693 | ||
12694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
12695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12696 | { | |
12697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12698 | result = (arg1)->GetPosition(); | |
12699 | ||
12700 | wxPyEndAllowThreads(__tstate); | |
12701 | if (PyErr_Occurred()) SWIG_fail; | |
12702 | } | |
12703 | { | |
12704 | wxPoint * resultptr; | |
12705 | resultptr = new wxPoint((wxPoint &) result); | |
12706 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
12707 | } | |
12708 | return resultobj; | |
12709 | fail: | |
12710 | return NULL; | |
12711 | } | |
12712 | ||
12713 | ||
12714 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12715 | PyObject *resultobj; | |
12716 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12717 | long *arg2 = (long *) 0 ; | |
12718 | long *arg3 = (long *) 0 ; | |
12719 | long temp2 ; | |
12720 | long temp3 ; | |
12721 | PyObject * obj0 = 0 ; | |
12722 | char *kwnames[] = { | |
12723 | (char *) "self", NULL | |
12724 | }; | |
12725 | ||
12726 | arg2 = &temp2; | |
12727 | arg3 = &temp3; | |
12728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
12729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12730 | { | |
12731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12732 | (arg1)->GetPosition(arg2,arg3); | |
12733 | ||
12734 | wxPyEndAllowThreads(__tstate); | |
12735 | if (PyErr_Occurred()) SWIG_fail; | |
12736 | } | |
12737 | Py_INCREF(Py_None); resultobj = Py_None; | |
12738 | { | |
12739 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12740 | resultobj = t_output_helper(resultobj,o); | |
12741 | } | |
12742 | { | |
12743 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12744 | resultobj = t_output_helper(resultobj,o); | |
12745 | } | |
12746 | return resultobj; | |
12747 | fail: | |
12748 | return NULL; | |
12749 | } | |
12750 | ||
12751 | ||
12752 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12753 | PyObject *resultobj; | |
12754 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12755 | wxDC *arg2 = 0 ; | |
12756 | wxPoint result; | |
12757 | PyObject * obj0 = 0 ; | |
12758 | PyObject * obj1 = 0 ; | |
12759 | char *kwnames[] = { | |
12760 | (char *) "self",(char *) "dc", NULL | |
12761 | }; | |
12762 | ||
12763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
12764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12765 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12766 | if (arg2 == NULL) { | |
12767 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12768 | } | |
12769 | { | |
12770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12771 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
12772 | ||
12773 | wxPyEndAllowThreads(__tstate); | |
12774 | if (PyErr_Occurred()) SWIG_fail; | |
12775 | } | |
12776 | { | |
12777 | wxPoint * resultptr; | |
12778 | resultptr = new wxPoint((wxPoint &) result); | |
12779 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
12780 | } | |
12781 | return resultobj; | |
12782 | fail: | |
12783 | return NULL; | |
12784 | } | |
12785 | ||
12786 | ||
12787 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12788 | PyObject *resultobj; | |
12789 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12790 | wxCoord result; | |
12791 | PyObject * obj0 = 0 ; | |
12792 | char *kwnames[] = { | |
12793 | (char *) "self", NULL | |
12794 | }; | |
12795 | ||
12796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
12797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12798 | { | |
12799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12800 | result = (wxCoord)((wxMouseEvent const *)arg1)->GetX(); | |
12801 | ||
12802 | wxPyEndAllowThreads(__tstate); | |
12803 | if (PyErr_Occurred()) SWIG_fail; | |
12804 | } | |
12805 | resultobj = PyInt_FromLong((long)result); | |
12806 | return resultobj; | |
12807 | fail: | |
12808 | return NULL; | |
12809 | } | |
12810 | ||
12811 | ||
12812 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12813 | PyObject *resultobj; | |
12814 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12815 | wxCoord result; | |
12816 | PyObject * obj0 = 0 ; | |
12817 | char *kwnames[] = { | |
12818 | (char *) "self", NULL | |
12819 | }; | |
12820 | ||
12821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
12822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12823 | { | |
12824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12825 | result = (wxCoord)((wxMouseEvent const *)arg1)->GetY(); | |
12826 | ||
12827 | wxPyEndAllowThreads(__tstate); | |
12828 | if (PyErr_Occurred()) SWIG_fail; | |
12829 | } | |
12830 | resultobj = PyInt_FromLong((long)result); | |
12831 | return resultobj; | |
12832 | fail: | |
12833 | return NULL; | |
12834 | } | |
12835 | ||
12836 | ||
12837 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12838 | PyObject *resultobj; | |
12839 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12840 | int result; | |
12841 | PyObject * obj0 = 0 ; | |
12842 | char *kwnames[] = { | |
12843 | (char *) "self", NULL | |
12844 | }; | |
12845 | ||
12846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
12847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12848 | { | |
12849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12850 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
12851 | ||
12852 | wxPyEndAllowThreads(__tstate); | |
12853 | if (PyErr_Occurred()) SWIG_fail; | |
12854 | } | |
12855 | resultobj = PyInt_FromLong((long)result); | |
12856 | return resultobj; | |
12857 | fail: | |
12858 | return NULL; | |
12859 | } | |
12860 | ||
12861 | ||
12862 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12863 | PyObject *resultobj; | |
12864 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12865 | int result; | |
12866 | PyObject * obj0 = 0 ; | |
12867 | char *kwnames[] = { | |
12868 | (char *) "self", NULL | |
12869 | }; | |
12870 | ||
12871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
12872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12873 | { | |
12874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12875 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
12876 | ||
12877 | wxPyEndAllowThreads(__tstate); | |
12878 | if (PyErr_Occurred()) SWIG_fail; | |
12879 | } | |
12880 | resultobj = PyInt_FromLong((long)result); | |
12881 | return resultobj; | |
12882 | fail: | |
12883 | return NULL; | |
12884 | } | |
12885 | ||
12886 | ||
12887 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12888 | PyObject *resultobj; | |
12889 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12890 | int result; | |
12891 | PyObject * obj0 = 0 ; | |
12892 | char *kwnames[] = { | |
12893 | (char *) "self", NULL | |
12894 | }; | |
12895 | ||
12896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
12897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12898 | { | |
12899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12900 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
12901 | ||
12902 | wxPyEndAllowThreads(__tstate); | |
12903 | if (PyErr_Occurred()) SWIG_fail; | |
12904 | } | |
12905 | resultobj = PyInt_FromLong((long)result); | |
12906 | return resultobj; | |
12907 | fail: | |
12908 | return NULL; | |
12909 | } | |
12910 | ||
12911 | ||
12912 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12913 | PyObject *resultobj; | |
12914 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12915 | bool result; | |
12916 | PyObject * obj0 = 0 ; | |
12917 | char *kwnames[] = { | |
12918 | (char *) "self", NULL | |
12919 | }; | |
12920 | ||
12921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
12922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12923 | { | |
12924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12925 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
12926 | ||
12927 | wxPyEndAllowThreads(__tstate); | |
12928 | if (PyErr_Occurred()) SWIG_fail; | |
12929 | } | |
12930 | resultobj = PyInt_FromLong((long)result); | |
12931 | return resultobj; | |
12932 | fail: | |
12933 | return NULL; | |
12934 | } | |
12935 | ||
12936 | ||
12937 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12938 | PyObject *resultobj; | |
12939 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12940 | wxCoord arg2 ; | |
12941 | PyObject * obj0 = 0 ; | |
12942 | char *kwnames[] = { | |
12943 | (char *) "self",(char *) "m_x", NULL | |
12944 | }; | |
12945 | ||
12946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_x_set",kwnames,&obj0,&arg2)) goto fail; | |
12947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12948 | if (arg1) (arg1)->m_x = arg2; | |
12949 | ||
12950 | Py_INCREF(Py_None); resultobj = Py_None; | |
12951 | return resultobj; | |
12952 | fail: | |
12953 | return NULL; | |
12954 | } | |
12955 | ||
12956 | ||
12957 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12958 | PyObject *resultobj; | |
12959 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12960 | wxCoord result; | |
12961 | PyObject * obj0 = 0 ; | |
12962 | char *kwnames[] = { | |
12963 | (char *) "self", NULL | |
12964 | }; | |
12965 | ||
12966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
12967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12968 | result = (wxCoord) ((arg1)->m_x); | |
12969 | ||
12970 | resultobj = PyInt_FromLong((long)result); | |
12971 | return resultobj; | |
12972 | fail: | |
12973 | return NULL; | |
12974 | } | |
12975 | ||
12976 | ||
12977 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12978 | PyObject *resultobj; | |
12979 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12980 | wxCoord arg2 ; | |
12981 | PyObject * obj0 = 0 ; | |
12982 | char *kwnames[] = { | |
12983 | (char *) "self",(char *) "m_y", NULL | |
12984 | }; | |
12985 | ||
12986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_y_set",kwnames,&obj0,&arg2)) goto fail; | |
12987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12988 | if (arg1) (arg1)->m_y = arg2; | |
12989 | ||
12990 | Py_INCREF(Py_None); resultobj = Py_None; | |
12991 | return resultobj; | |
12992 | fail: | |
12993 | return NULL; | |
12994 | } | |
12995 | ||
12996 | ||
12997 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12998 | PyObject *resultobj; | |
12999 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13000 | wxCoord result; | |
13001 | PyObject * obj0 = 0 ; | |
13002 | char *kwnames[] = { | |
13003 | (char *) "self", NULL | |
13004 | }; | |
13005 | ||
13006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
13007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13008 | result = (wxCoord) ((arg1)->m_y); | |
13009 | ||
13010 | resultobj = PyInt_FromLong((long)result); | |
13011 | return resultobj; | |
13012 | fail: | |
13013 | return NULL; | |
13014 | } | |
13015 | ||
13016 | ||
13017 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13018 | PyObject *resultobj; | |
13019 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13020 | bool arg2 ; | |
13021 | PyObject * obj0 = 0 ; | |
13022 | PyObject * obj1 = 0 ; | |
13023 | char *kwnames[] = { | |
13024 | (char *) "self",(char *) "m_leftDown", NULL | |
13025 | }; | |
13026 | ||
13027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13029 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13030 | if (PyErr_Occurred()) SWIG_fail; | |
13031 | if (arg1) (arg1)->m_leftDown = arg2; | |
13032 | ||
13033 | Py_INCREF(Py_None); resultobj = Py_None; | |
13034 | return resultobj; | |
13035 | fail: | |
13036 | return NULL; | |
13037 | } | |
13038 | ||
13039 | ||
13040 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13041 | PyObject *resultobj; | |
13042 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13043 | bool result; | |
13044 | PyObject * obj0 = 0 ; | |
13045 | char *kwnames[] = { | |
13046 | (char *) "self", NULL | |
13047 | }; | |
13048 | ||
13049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
13050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13051 | result = (bool) ((arg1)->m_leftDown); | |
13052 | ||
13053 | resultobj = PyInt_FromLong((long)result); | |
13054 | return resultobj; | |
13055 | fail: | |
13056 | return NULL; | |
13057 | } | |
13058 | ||
13059 | ||
13060 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13061 | PyObject *resultobj; | |
13062 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13063 | bool arg2 ; | |
13064 | PyObject * obj0 = 0 ; | |
13065 | PyObject * obj1 = 0 ; | |
13066 | char *kwnames[] = { | |
13067 | (char *) "self",(char *) "m_middleDown", NULL | |
13068 | }; | |
13069 | ||
13070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13072 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13073 | if (PyErr_Occurred()) SWIG_fail; | |
13074 | if (arg1) (arg1)->m_middleDown = arg2; | |
13075 | ||
13076 | Py_INCREF(Py_None); resultobj = Py_None; | |
13077 | return resultobj; | |
13078 | fail: | |
13079 | return NULL; | |
13080 | } | |
13081 | ||
13082 | ||
13083 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13084 | PyObject *resultobj; | |
13085 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13086 | bool result; | |
13087 | PyObject * obj0 = 0 ; | |
13088 | char *kwnames[] = { | |
13089 | (char *) "self", NULL | |
13090 | }; | |
13091 | ||
13092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
13093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13094 | result = (bool) ((arg1)->m_middleDown); | |
13095 | ||
13096 | resultobj = PyInt_FromLong((long)result); | |
13097 | return resultobj; | |
13098 | fail: | |
13099 | return NULL; | |
13100 | } | |
13101 | ||
13102 | ||
13103 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13104 | PyObject *resultobj; | |
13105 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13106 | bool arg2 ; | |
13107 | PyObject * obj0 = 0 ; | |
13108 | PyObject * obj1 = 0 ; | |
13109 | char *kwnames[] = { | |
13110 | (char *) "self",(char *) "m_rightDown", NULL | |
13111 | }; | |
13112 | ||
13113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13115 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13116 | if (PyErr_Occurred()) SWIG_fail; | |
13117 | if (arg1) (arg1)->m_rightDown = arg2; | |
13118 | ||
13119 | Py_INCREF(Py_None); resultobj = Py_None; | |
13120 | return resultobj; | |
13121 | fail: | |
13122 | return NULL; | |
13123 | } | |
13124 | ||
13125 | ||
13126 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13127 | PyObject *resultobj; | |
13128 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13129 | bool result; | |
13130 | PyObject * obj0 = 0 ; | |
13131 | char *kwnames[] = { | |
13132 | (char *) "self", NULL | |
13133 | }; | |
13134 | ||
13135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
13136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13137 | result = (bool) ((arg1)->m_rightDown); | |
13138 | ||
13139 | resultobj = PyInt_FromLong((long)result); | |
13140 | return resultobj; | |
13141 | fail: | |
13142 | return NULL; | |
13143 | } | |
13144 | ||
13145 | ||
13146 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13147 | PyObject *resultobj; | |
13148 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13149 | bool arg2 ; | |
13150 | PyObject * obj0 = 0 ; | |
13151 | PyObject * obj1 = 0 ; | |
13152 | char *kwnames[] = { | |
13153 | (char *) "self",(char *) "m_controlDown", NULL | |
13154 | }; | |
13155 | ||
13156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13158 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13159 | if (PyErr_Occurred()) SWIG_fail; | |
13160 | if (arg1) (arg1)->m_controlDown = arg2; | |
13161 | ||
13162 | Py_INCREF(Py_None); resultobj = Py_None; | |
13163 | return resultobj; | |
13164 | fail: | |
13165 | return NULL; | |
13166 | } | |
13167 | ||
13168 | ||
13169 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13170 | PyObject *resultobj; | |
13171 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13172 | bool result; | |
13173 | PyObject * obj0 = 0 ; | |
13174 | char *kwnames[] = { | |
13175 | (char *) "self", NULL | |
13176 | }; | |
13177 | ||
13178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
13179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13180 | result = (bool) ((arg1)->m_controlDown); | |
13181 | ||
13182 | resultobj = PyInt_FromLong((long)result); | |
13183 | return resultobj; | |
13184 | fail: | |
13185 | return NULL; | |
13186 | } | |
13187 | ||
13188 | ||
13189 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13190 | PyObject *resultobj; | |
13191 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13192 | bool arg2 ; | |
13193 | PyObject * obj0 = 0 ; | |
13194 | PyObject * obj1 = 0 ; | |
13195 | char *kwnames[] = { | |
13196 | (char *) "self",(char *) "m_shiftDown", NULL | |
13197 | }; | |
13198 | ||
13199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13201 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
13203 | if (arg1) (arg1)->m_shiftDown = arg2; | |
13204 | ||
13205 | Py_INCREF(Py_None); resultobj = Py_None; | |
13206 | return resultobj; | |
13207 | fail: | |
13208 | return NULL; | |
13209 | } | |
13210 | ||
13211 | ||
13212 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13213 | PyObject *resultobj; | |
13214 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13215 | bool result; | |
13216 | PyObject * obj0 = 0 ; | |
13217 | char *kwnames[] = { | |
13218 | (char *) "self", NULL | |
13219 | }; | |
13220 | ||
13221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
13222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13223 | result = (bool) ((arg1)->m_shiftDown); | |
13224 | ||
13225 | resultobj = PyInt_FromLong((long)result); | |
13226 | return resultobj; | |
13227 | fail: | |
13228 | return NULL; | |
13229 | } | |
13230 | ||
13231 | ||
13232 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13233 | PyObject *resultobj; | |
13234 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13235 | bool arg2 ; | |
13236 | PyObject * obj0 = 0 ; | |
13237 | PyObject * obj1 = 0 ; | |
13238 | char *kwnames[] = { | |
13239 | (char *) "self",(char *) "m_altDown", NULL | |
13240 | }; | |
13241 | ||
13242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13244 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13245 | if (PyErr_Occurred()) SWIG_fail; | |
13246 | if (arg1) (arg1)->m_altDown = arg2; | |
13247 | ||
13248 | Py_INCREF(Py_None); resultobj = Py_None; | |
13249 | return resultobj; | |
13250 | fail: | |
13251 | return NULL; | |
13252 | } | |
13253 | ||
13254 | ||
13255 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13256 | PyObject *resultobj; | |
13257 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13258 | bool result; | |
13259 | PyObject * obj0 = 0 ; | |
13260 | char *kwnames[] = { | |
13261 | (char *) "self", NULL | |
13262 | }; | |
13263 | ||
13264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
13265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13266 | result = (bool) ((arg1)->m_altDown); | |
13267 | ||
13268 | resultobj = PyInt_FromLong((long)result); | |
13269 | return resultobj; | |
13270 | fail: | |
13271 | return NULL; | |
13272 | } | |
13273 | ||
13274 | ||
13275 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13276 | PyObject *resultobj; | |
13277 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13278 | bool arg2 ; | |
13279 | PyObject * obj0 = 0 ; | |
13280 | PyObject * obj1 = 0 ; | |
13281 | char *kwnames[] = { | |
13282 | (char *) "self",(char *) "m_metaDown", NULL | |
13283 | }; | |
13284 | ||
13285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13287 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13288 | if (PyErr_Occurred()) SWIG_fail; | |
13289 | if (arg1) (arg1)->m_metaDown = arg2; | |
13290 | ||
13291 | Py_INCREF(Py_None); resultobj = Py_None; | |
13292 | return resultobj; | |
13293 | fail: | |
13294 | return NULL; | |
13295 | } | |
13296 | ||
13297 | ||
13298 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13299 | PyObject *resultobj; | |
13300 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13301 | bool result; | |
13302 | PyObject * obj0 = 0 ; | |
13303 | char *kwnames[] = { | |
13304 | (char *) "self", NULL | |
13305 | }; | |
13306 | ||
13307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
13308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13309 | result = (bool) ((arg1)->m_metaDown); | |
13310 | ||
13311 | resultobj = PyInt_FromLong((long)result); | |
13312 | return resultobj; | |
13313 | fail: | |
13314 | return NULL; | |
13315 | } | |
13316 | ||
13317 | ||
13318 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13319 | PyObject *resultobj; | |
13320 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13321 | int arg2 ; | |
13322 | PyObject * obj0 = 0 ; | |
13323 | char *kwnames[] = { | |
13324 | (char *) "self",(char *) "m_wheelRotation", NULL | |
13325 | }; | |
13326 | ||
13327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&arg2)) goto fail; | |
13328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13329 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
13330 | ||
13331 | Py_INCREF(Py_None); resultobj = Py_None; | |
13332 | return resultobj; | |
13333 | fail: | |
13334 | return NULL; | |
13335 | } | |
13336 | ||
13337 | ||
13338 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13339 | PyObject *resultobj; | |
13340 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13341 | int result; | |
13342 | PyObject * obj0 = 0 ; | |
13343 | char *kwnames[] = { | |
13344 | (char *) "self", NULL | |
13345 | }; | |
13346 | ||
13347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
13348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13349 | result = (int) ((arg1)->m_wheelRotation); | |
13350 | ||
13351 | resultobj = PyInt_FromLong((long)result); | |
13352 | return resultobj; | |
13353 | fail: | |
13354 | return NULL; | |
13355 | } | |
13356 | ||
13357 | ||
13358 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13359 | PyObject *resultobj; | |
13360 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13361 | int arg2 ; | |
13362 | PyObject * obj0 = 0 ; | |
13363 | char *kwnames[] = { | |
13364 | (char *) "self",(char *) "m_wheelDelta", NULL | |
13365 | }; | |
13366 | ||
13367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&arg2)) goto fail; | |
13368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13369 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
13370 | ||
13371 | Py_INCREF(Py_None); resultobj = Py_None; | |
13372 | return resultobj; | |
13373 | fail: | |
13374 | return NULL; | |
13375 | } | |
13376 | ||
13377 | ||
13378 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13379 | PyObject *resultobj; | |
13380 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13381 | int result; | |
13382 | PyObject * obj0 = 0 ; | |
13383 | char *kwnames[] = { | |
13384 | (char *) "self", NULL | |
13385 | }; | |
13386 | ||
13387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
13388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13389 | result = (int) ((arg1)->m_wheelDelta); | |
13390 | ||
13391 | resultobj = PyInt_FromLong((long)result); | |
13392 | return resultobj; | |
13393 | fail: | |
13394 | return NULL; | |
13395 | } | |
13396 | ||
13397 | ||
13398 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13399 | PyObject *resultobj; | |
13400 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13401 | int arg2 ; | |
13402 | PyObject * obj0 = 0 ; | |
13403 | char *kwnames[] = { | |
13404 | (char *) "self",(char *) "m_linesPerAction", NULL | |
13405 | }; | |
13406 | ||
13407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&arg2)) goto fail; | |
13408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13409 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
13410 | ||
13411 | Py_INCREF(Py_None); resultobj = Py_None; | |
13412 | return resultobj; | |
13413 | fail: | |
13414 | return NULL; | |
13415 | } | |
13416 | ||
13417 | ||
13418 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13419 | PyObject *resultobj; | |
13420 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13421 | int result; | |
13422 | PyObject * obj0 = 0 ; | |
13423 | char *kwnames[] = { | |
13424 | (char *) "self", NULL | |
13425 | }; | |
13426 | ||
13427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
13428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13429 | result = (int) ((arg1)->m_linesPerAction); | |
13430 | ||
13431 | resultobj = PyInt_FromLong((long)result); | |
13432 | return resultobj; | |
13433 | fail: | |
13434 | return NULL; | |
13435 | } | |
13436 | ||
13437 | ||
13438 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
13439 | PyObject *obj; | |
13440 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13441 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
13442 | Py_INCREF(obj); | |
13443 | return Py_BuildValue((char *)""); | |
13444 | } | |
13445 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13446 | PyObject *resultobj; | |
13447 | wxCoord arg1 = (wxCoord) 0 ; | |
13448 | wxCoord arg2 = (wxCoord) 0 ; | |
13449 | wxSetCursorEvent *result; | |
13450 | char *kwnames[] = { | |
13451 | (char *) "x",(char *) "y", NULL | |
13452 | }; | |
13453 | ||
13454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_SetCursorEvent",kwnames,&arg1,&arg2)) goto fail; | |
13455 | { | |
13456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13457 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
13458 | ||
13459 | wxPyEndAllowThreads(__tstate); | |
13460 | if (PyErr_Occurred()) SWIG_fail; | |
13461 | } | |
13462 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSetCursorEvent, 1); | |
13463 | return resultobj; | |
13464 | fail: | |
13465 | return NULL; | |
13466 | } | |
13467 | ||
13468 | ||
13469 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13470 | PyObject *resultobj; | |
13471 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13472 | wxCoord result; | |
13473 | PyObject * obj0 = 0 ; | |
13474 | char *kwnames[] = { | |
13475 | (char *) "self", NULL | |
13476 | }; | |
13477 | ||
13478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
13479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13480 | { | |
13481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13482 | result = (wxCoord)((wxSetCursorEvent const *)arg1)->GetX(); | |
13483 | ||
13484 | wxPyEndAllowThreads(__tstate); | |
13485 | if (PyErr_Occurred()) SWIG_fail; | |
13486 | } | |
13487 | resultobj = PyInt_FromLong((long)result); | |
13488 | return resultobj; | |
13489 | fail: | |
13490 | return NULL; | |
13491 | } | |
13492 | ||
13493 | ||
13494 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13495 | PyObject *resultobj; | |
13496 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13497 | wxCoord result; | |
13498 | PyObject * obj0 = 0 ; | |
13499 | char *kwnames[] = { | |
13500 | (char *) "self", NULL | |
13501 | }; | |
13502 | ||
13503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
13504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13505 | { | |
13506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13507 | result = (wxCoord)((wxSetCursorEvent const *)arg1)->GetY(); | |
13508 | ||
13509 | wxPyEndAllowThreads(__tstate); | |
13510 | if (PyErr_Occurred()) SWIG_fail; | |
13511 | } | |
13512 | resultobj = PyInt_FromLong((long)result); | |
13513 | return resultobj; | |
13514 | fail: | |
13515 | return NULL; | |
13516 | } | |
13517 | ||
13518 | ||
13519 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13520 | PyObject *resultobj; | |
13521 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13522 | wxCursor *arg2 = 0 ; | |
13523 | PyObject * obj0 = 0 ; | |
13524 | PyObject * obj1 = 0 ; | |
13525 | char *kwnames[] = { | |
13526 | (char *) "self",(char *) "cursor", NULL | |
13527 | }; | |
13528 | ||
13529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
13530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13531 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13532 | if (arg2 == NULL) { | |
13533 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13534 | } | |
13535 | { | |
13536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13537 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
13538 | ||
13539 | wxPyEndAllowThreads(__tstate); | |
13540 | if (PyErr_Occurred()) SWIG_fail; | |
13541 | } | |
13542 | Py_INCREF(Py_None); resultobj = Py_None; | |
13543 | return resultobj; | |
13544 | fail: | |
13545 | return NULL; | |
13546 | } | |
13547 | ||
13548 | ||
13549 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13550 | PyObject *resultobj; | |
13551 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13552 | wxCursor *result; | |
13553 | PyObject * obj0 = 0 ; | |
13554 | char *kwnames[] = { | |
13555 | (char *) "self", NULL | |
13556 | }; | |
13557 | ||
13558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
13559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13560 | { | |
13561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13562 | { | |
13563 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
13564 | result = (wxCursor *) &_result_ref; | |
13565 | } | |
13566 | ||
13567 | wxPyEndAllowThreads(__tstate); | |
13568 | if (PyErr_Occurred()) SWIG_fail; | |
13569 | } | |
13570 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
13571 | return resultobj; | |
13572 | fail: | |
13573 | return NULL; | |
13574 | } | |
13575 | ||
13576 | ||
13577 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13578 | PyObject *resultobj; | |
13579 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13580 | bool result; | |
13581 | PyObject * obj0 = 0 ; | |
13582 | char *kwnames[] = { | |
13583 | (char *) "self", NULL | |
13584 | }; | |
13585 | ||
13586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
13587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13588 | { | |
13589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13590 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
13591 | ||
13592 | wxPyEndAllowThreads(__tstate); | |
13593 | if (PyErr_Occurred()) SWIG_fail; | |
13594 | } | |
13595 | resultobj = PyInt_FromLong((long)result); | |
13596 | return resultobj; | |
13597 | fail: | |
13598 | return NULL; | |
13599 | } | |
13600 | ||
13601 | ||
13602 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
13603 | PyObject *obj; | |
13604 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13605 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
13606 | Py_INCREF(obj); | |
13607 | return Py_BuildValue((char *)""); | |
13608 | } | |
13609 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13610 | PyObject *resultobj; | |
13611 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13612 | wxKeyEvent *result; | |
13613 | char *kwnames[] = { | |
13614 | (char *) "keyType", NULL | |
13615 | }; | |
13616 | ||
13617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_KeyEvent",kwnames,&arg1)) goto fail; | |
13618 | { | |
13619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13620 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
13621 | ||
13622 | wxPyEndAllowThreads(__tstate); | |
13623 | if (PyErr_Occurred()) SWIG_fail; | |
13624 | } | |
13625 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 1); | |
13626 | return resultobj; | |
13627 | fail: | |
13628 | return NULL; | |
13629 | } | |
13630 | ||
13631 | ||
13632 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13633 | PyObject *resultobj; | |
13634 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13635 | bool result; | |
13636 | PyObject * obj0 = 0 ; | |
13637 | char *kwnames[] = { | |
13638 | (char *) "self", NULL | |
13639 | }; | |
13640 | ||
13641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
13642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13643 | { | |
13644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13645 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
13646 | ||
13647 | wxPyEndAllowThreads(__tstate); | |
13648 | if (PyErr_Occurred()) SWIG_fail; | |
13649 | } | |
13650 | resultobj = PyInt_FromLong((long)result); | |
13651 | return resultobj; | |
13652 | fail: | |
13653 | return NULL; | |
13654 | } | |
13655 | ||
13656 | ||
13657 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13658 | PyObject *resultobj; | |
13659 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13660 | bool result; | |
13661 | PyObject * obj0 = 0 ; | |
13662 | char *kwnames[] = { | |
13663 | (char *) "self", NULL | |
13664 | }; | |
13665 | ||
13666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
13667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13668 | { | |
13669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13670 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
13671 | ||
13672 | wxPyEndAllowThreads(__tstate); | |
13673 | if (PyErr_Occurred()) SWIG_fail; | |
13674 | } | |
13675 | resultobj = PyInt_FromLong((long)result); | |
13676 | return resultobj; | |
13677 | fail: | |
13678 | return NULL; | |
13679 | } | |
13680 | ||
13681 | ||
13682 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13683 | PyObject *resultobj; | |
13684 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13685 | bool result; | |
13686 | PyObject * obj0 = 0 ; | |
13687 | char *kwnames[] = { | |
13688 | (char *) "self", NULL | |
13689 | }; | |
13690 | ||
13691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
13692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13693 | { | |
13694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13695 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
13696 | ||
13697 | wxPyEndAllowThreads(__tstate); | |
13698 | if (PyErr_Occurred()) SWIG_fail; | |
13699 | } | |
13700 | resultobj = PyInt_FromLong((long)result); | |
13701 | return resultobj; | |
13702 | fail: | |
13703 | return NULL; | |
13704 | } | |
13705 | ||
13706 | ||
13707 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13708 | PyObject *resultobj; | |
13709 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13710 | bool result; | |
13711 | PyObject * obj0 = 0 ; | |
13712 | char *kwnames[] = { | |
13713 | (char *) "self", NULL | |
13714 | }; | |
13715 | ||
13716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
13717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13718 | { | |
13719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13720 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
13721 | ||
13722 | wxPyEndAllowThreads(__tstate); | |
13723 | if (PyErr_Occurred()) SWIG_fail; | |
13724 | } | |
13725 | resultobj = PyInt_FromLong((long)result); | |
13726 | return resultobj; | |
13727 | fail: | |
13728 | return NULL; | |
13729 | } | |
13730 | ||
13731 | ||
13732 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13733 | PyObject *resultobj; | |
13734 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13735 | bool result; | |
13736 | PyObject * obj0 = 0 ; | |
13737 | char *kwnames[] = { | |
13738 | (char *) "self", NULL | |
13739 | }; | |
13740 | ||
13741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
13742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13743 | { | |
13744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13745 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
13746 | ||
13747 | wxPyEndAllowThreads(__tstate); | |
13748 | if (PyErr_Occurred()) SWIG_fail; | |
13749 | } | |
13750 | resultobj = PyInt_FromLong((long)result); | |
13751 | return resultobj; | |
13752 | fail: | |
13753 | return NULL; | |
13754 | } | |
13755 | ||
13756 | ||
13757 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13758 | PyObject *resultobj; | |
13759 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13760 | int result; | |
13761 | PyObject * obj0 = 0 ; | |
13762 | char *kwnames[] = { | |
13763 | (char *) "self", NULL | |
13764 | }; | |
13765 | ||
13766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
13767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13768 | { | |
13769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13770 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
13771 | ||
13772 | wxPyEndAllowThreads(__tstate); | |
13773 | if (PyErr_Occurred()) SWIG_fail; | |
13774 | } | |
13775 | resultobj = PyInt_FromLong((long)result); | |
13776 | return resultobj; | |
13777 | fail: | |
13778 | return NULL; | |
13779 | } | |
13780 | ||
13781 | ||
13782 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13783 | PyObject *resultobj; | |
13784 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13785 | int result; | |
13786 | PyObject * obj0 = 0 ; | |
13787 | char *kwnames[] = { | |
13788 | (char *) "self", NULL | |
13789 | }; | |
13790 | ||
13791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
13792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13793 | { | |
13794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13795 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
13796 | ||
13797 | wxPyEndAllowThreads(__tstate); | |
13798 | if (PyErr_Occurred()) SWIG_fail; | |
13799 | } | |
13800 | resultobj = PyInt_FromLong((long)result); | |
13801 | return resultobj; | |
13802 | fail: | |
13803 | return NULL; | |
13804 | } | |
13805 | ||
13806 | ||
13807 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13808 | PyObject *resultobj; | |
13809 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13810 | wxUint32 result; | |
13811 | PyObject * obj0 = 0 ; | |
13812 | char *kwnames[] = { | |
13813 | (char *) "self", NULL | |
13814 | }; | |
13815 | ||
13816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
13817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13818 | { | |
13819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13820 | result = (wxUint32)((wxKeyEvent const *)arg1)->GetRawKeyCode(); | |
13821 | ||
13822 | wxPyEndAllowThreads(__tstate); | |
13823 | if (PyErr_Occurred()) SWIG_fail; | |
13824 | } | |
13825 | resultobj = PyInt_FromLong((long)result); | |
13826 | return resultobj; | |
13827 | fail: | |
13828 | return NULL; | |
13829 | } | |
13830 | ||
13831 | ||
13832 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13833 | PyObject *resultobj; | |
13834 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13835 | wxUint32 result; | |
13836 | PyObject * obj0 = 0 ; | |
13837 | char *kwnames[] = { | |
13838 | (char *) "self", NULL | |
13839 | }; | |
13840 | ||
13841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
13842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13843 | { | |
13844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13845 | result = (wxUint32)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); | |
13846 | ||
13847 | wxPyEndAllowThreads(__tstate); | |
13848 | if (PyErr_Occurred()) SWIG_fail; | |
13849 | } | |
13850 | resultobj = PyInt_FromLong((long)result); | |
13851 | return resultobj; | |
13852 | fail: | |
13853 | return NULL; | |
13854 | } | |
13855 | ||
13856 | ||
13857 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13858 | PyObject *resultobj; | |
13859 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13860 | wxPoint result; | |
13861 | PyObject * obj0 = 0 ; | |
13862 | char *kwnames[] = { | |
13863 | (char *) "self", NULL | |
13864 | }; | |
13865 | ||
13866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13868 | { | |
13869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13870 | result = (arg1)->GetPosition(); | |
13871 | ||
13872 | wxPyEndAllowThreads(__tstate); | |
13873 | if (PyErr_Occurred()) SWIG_fail; | |
13874 | } | |
13875 | { | |
13876 | wxPoint * resultptr; | |
13877 | resultptr = new wxPoint((wxPoint &) result); | |
13878 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
13879 | } | |
13880 | return resultobj; | |
13881 | fail: | |
13882 | return NULL; | |
13883 | } | |
13884 | ||
13885 | ||
13886 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13887 | PyObject *resultobj; | |
13888 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13889 | long *arg2 = (long *) 0 ; | |
13890 | long *arg3 = (long *) 0 ; | |
13891 | long temp2 ; | |
13892 | long temp3 ; | |
13893 | PyObject * obj0 = 0 ; | |
13894 | char *kwnames[] = { | |
13895 | (char *) "self", NULL | |
13896 | }; | |
13897 | ||
13898 | arg2 = &temp2; | |
13899 | arg3 = &temp3; | |
13900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
13901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13902 | { | |
13903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13904 | (arg1)->GetPosition(arg2,arg3); | |
13905 | ||
13906 | wxPyEndAllowThreads(__tstate); | |
13907 | if (PyErr_Occurred()) SWIG_fail; | |
13908 | } | |
13909 | Py_INCREF(Py_None); resultobj = Py_None; | |
13910 | { | |
13911 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13912 | resultobj = t_output_helper(resultobj,o); | |
13913 | } | |
13914 | { | |
13915 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13916 | resultobj = t_output_helper(resultobj,o); | |
13917 | } | |
13918 | return resultobj; | |
13919 | fail: | |
13920 | return NULL; | |
13921 | } | |
13922 | ||
13923 | ||
13924 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13925 | PyObject *resultobj; | |
13926 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13927 | wxCoord result; | |
13928 | PyObject * obj0 = 0 ; | |
13929 | char *kwnames[] = { | |
13930 | (char *) "self", NULL | |
13931 | }; | |
13932 | ||
13933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
13934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13935 | { | |
13936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13937 | result = (wxCoord)((wxKeyEvent const *)arg1)->GetX(); | |
13938 | ||
13939 | wxPyEndAllowThreads(__tstate); | |
13940 | if (PyErr_Occurred()) SWIG_fail; | |
13941 | } | |
13942 | resultobj = PyInt_FromLong((long)result); | |
13943 | return resultobj; | |
13944 | fail: | |
13945 | return NULL; | |
13946 | } | |
13947 | ||
13948 | ||
13949 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13950 | PyObject *resultobj; | |
13951 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13952 | wxCoord result; | |
13953 | PyObject * obj0 = 0 ; | |
13954 | char *kwnames[] = { | |
13955 | (char *) "self", NULL | |
13956 | }; | |
13957 | ||
13958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
13959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13960 | { | |
13961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13962 | result = (wxCoord)((wxKeyEvent const *)arg1)->GetY(); | |
13963 | ||
13964 | wxPyEndAllowThreads(__tstate); | |
13965 | if (PyErr_Occurred()) SWIG_fail; | |
13966 | } | |
13967 | resultobj = PyInt_FromLong((long)result); | |
13968 | return resultobj; | |
13969 | fail: | |
13970 | return NULL; | |
13971 | } | |
13972 | ||
13973 | ||
13974 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13975 | PyObject *resultobj; | |
13976 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13977 | wxCoord arg2 ; | |
13978 | PyObject * obj0 = 0 ; | |
13979 | char *kwnames[] = { | |
13980 | (char *) "self",(char *) "m_x", NULL | |
13981 | }; | |
13982 | ||
13983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:KeyEvent_m_x_set",kwnames,&obj0,&arg2)) goto fail; | |
13984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13985 | if (arg1) (arg1)->m_x = arg2; | |
13986 | ||
13987 | Py_INCREF(Py_None); resultobj = Py_None; | |
13988 | return resultobj; | |
13989 | fail: | |
13990 | return NULL; | |
13991 | } | |
13992 | ||
13993 | ||
13994 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13995 | PyObject *resultobj; | |
13996 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13997 | wxCoord result; | |
13998 | PyObject * obj0 = 0 ; | |
13999 | char *kwnames[] = { | |
14000 | (char *) "self", NULL | |
14001 | }; | |
14002 | ||
14003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
14004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14005 | result = (wxCoord) ((arg1)->m_x); | |
14006 | ||
14007 | resultobj = PyInt_FromLong((long)result); | |
14008 | return resultobj; | |
14009 | fail: | |
14010 | return NULL; | |
14011 | } | |
14012 | ||
14013 | ||
14014 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14015 | PyObject *resultobj; | |
14016 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14017 | wxCoord arg2 ; | |
14018 | PyObject * obj0 = 0 ; | |
14019 | char *kwnames[] = { | |
14020 | (char *) "self",(char *) "m_y", NULL | |
14021 | }; | |
14022 | ||
14023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:KeyEvent_m_y_set",kwnames,&obj0,&arg2)) goto fail; | |
14024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14025 | if (arg1) (arg1)->m_y = arg2; | |
14026 | ||
14027 | Py_INCREF(Py_None); resultobj = Py_None; | |
14028 | return resultobj; | |
14029 | fail: | |
14030 | return NULL; | |
14031 | } | |
14032 | ||
14033 | ||
14034 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14035 | PyObject *resultobj; | |
14036 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14037 | wxCoord result; | |
14038 | PyObject * obj0 = 0 ; | |
14039 | char *kwnames[] = { | |
14040 | (char *) "self", NULL | |
14041 | }; | |
14042 | ||
14043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
14044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14045 | result = (wxCoord) ((arg1)->m_y); | |
14046 | ||
14047 | resultobj = PyInt_FromLong((long)result); | |
14048 | return resultobj; | |
14049 | fail: | |
14050 | return NULL; | |
14051 | } | |
14052 | ||
14053 | ||
14054 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14055 | PyObject *resultobj; | |
14056 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14057 | long arg2 ; | |
14058 | PyObject * obj0 = 0 ; | |
14059 | char *kwnames[] = { | |
14060 | (char *) "self",(char *) "m_keyCode", NULL | |
14061 | }; | |
14062 | ||
14063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:KeyEvent_m_keyCode_set",kwnames,&obj0,&arg2)) goto fail; | |
14064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14065 | if (arg1) (arg1)->m_keyCode = arg2; | |
14066 | ||
14067 | Py_INCREF(Py_None); resultobj = Py_None; | |
14068 | return resultobj; | |
14069 | fail: | |
14070 | return NULL; | |
14071 | } | |
14072 | ||
14073 | ||
14074 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14075 | PyObject *resultobj; | |
14076 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14077 | long result; | |
14078 | PyObject * obj0 = 0 ; | |
14079 | char *kwnames[] = { | |
14080 | (char *) "self", NULL | |
14081 | }; | |
14082 | ||
14083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
14084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14085 | result = (long) ((arg1)->m_keyCode); | |
14086 | ||
14087 | resultobj = PyInt_FromLong((long)result); | |
14088 | return resultobj; | |
14089 | fail: | |
14090 | return NULL; | |
14091 | } | |
14092 | ||
14093 | ||
14094 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14095 | PyObject *resultobj; | |
14096 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14097 | bool arg2 ; | |
14098 | PyObject * obj0 = 0 ; | |
14099 | PyObject * obj1 = 0 ; | |
14100 | char *kwnames[] = { | |
14101 | (char *) "self",(char *) "m_controlDown", NULL | |
14102 | }; | |
14103 | ||
14104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14106 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14107 | if (PyErr_Occurred()) SWIG_fail; | |
14108 | if (arg1) (arg1)->m_controlDown = arg2; | |
14109 | ||
14110 | Py_INCREF(Py_None); resultobj = Py_None; | |
14111 | return resultobj; | |
14112 | fail: | |
14113 | return NULL; | |
14114 | } | |
14115 | ||
14116 | ||
14117 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14118 | PyObject *resultobj; | |
14119 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14120 | bool result; | |
14121 | PyObject * obj0 = 0 ; | |
14122 | char *kwnames[] = { | |
14123 | (char *) "self", NULL | |
14124 | }; | |
14125 | ||
14126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
14127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14128 | result = (bool) ((arg1)->m_controlDown); | |
14129 | ||
14130 | resultobj = PyInt_FromLong((long)result); | |
14131 | return resultobj; | |
14132 | fail: | |
14133 | return NULL; | |
14134 | } | |
14135 | ||
14136 | ||
14137 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14138 | PyObject *resultobj; | |
14139 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14140 | bool arg2 ; | |
14141 | PyObject * obj0 = 0 ; | |
14142 | PyObject * obj1 = 0 ; | |
14143 | char *kwnames[] = { | |
14144 | (char *) "self",(char *) "m_shiftDown", NULL | |
14145 | }; | |
14146 | ||
14147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14149 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14150 | if (PyErr_Occurred()) SWIG_fail; | |
14151 | if (arg1) (arg1)->m_shiftDown = arg2; | |
14152 | ||
14153 | Py_INCREF(Py_None); resultobj = Py_None; | |
14154 | return resultobj; | |
14155 | fail: | |
14156 | return NULL; | |
14157 | } | |
14158 | ||
14159 | ||
14160 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14161 | PyObject *resultobj; | |
14162 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14163 | bool result; | |
14164 | PyObject * obj0 = 0 ; | |
14165 | char *kwnames[] = { | |
14166 | (char *) "self", NULL | |
14167 | }; | |
14168 | ||
14169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
14170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14171 | result = (bool) ((arg1)->m_shiftDown); | |
14172 | ||
14173 | resultobj = PyInt_FromLong((long)result); | |
14174 | return resultobj; | |
14175 | fail: | |
14176 | return NULL; | |
14177 | } | |
14178 | ||
14179 | ||
14180 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14181 | PyObject *resultobj; | |
14182 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14183 | bool arg2 ; | |
14184 | PyObject * obj0 = 0 ; | |
14185 | PyObject * obj1 = 0 ; | |
14186 | char *kwnames[] = { | |
14187 | (char *) "self",(char *) "m_altDown", NULL | |
14188 | }; | |
14189 | ||
14190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14192 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14193 | if (PyErr_Occurred()) SWIG_fail; | |
14194 | if (arg1) (arg1)->m_altDown = arg2; | |
14195 | ||
14196 | Py_INCREF(Py_None); resultobj = Py_None; | |
14197 | return resultobj; | |
14198 | fail: | |
14199 | return NULL; | |
14200 | } | |
14201 | ||
14202 | ||
14203 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14204 | PyObject *resultobj; | |
14205 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14206 | bool result; | |
14207 | PyObject * obj0 = 0 ; | |
14208 | char *kwnames[] = { | |
14209 | (char *) "self", NULL | |
14210 | }; | |
14211 | ||
14212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
14213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14214 | result = (bool) ((arg1)->m_altDown); | |
14215 | ||
14216 | resultobj = PyInt_FromLong((long)result); | |
14217 | return resultobj; | |
14218 | fail: | |
14219 | return NULL; | |
14220 | } | |
14221 | ||
14222 | ||
14223 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14224 | PyObject *resultobj; | |
14225 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14226 | bool arg2 ; | |
14227 | PyObject * obj0 = 0 ; | |
14228 | PyObject * obj1 = 0 ; | |
14229 | char *kwnames[] = { | |
14230 | (char *) "self",(char *) "m_metaDown", NULL | |
14231 | }; | |
14232 | ||
14233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14235 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14236 | if (PyErr_Occurred()) SWIG_fail; | |
14237 | if (arg1) (arg1)->m_metaDown = arg2; | |
14238 | ||
14239 | Py_INCREF(Py_None); resultobj = Py_None; | |
14240 | return resultobj; | |
14241 | fail: | |
14242 | return NULL; | |
14243 | } | |
14244 | ||
14245 | ||
14246 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14247 | PyObject *resultobj; | |
14248 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14249 | bool result; | |
14250 | PyObject * obj0 = 0 ; | |
14251 | char *kwnames[] = { | |
14252 | (char *) "self", NULL | |
14253 | }; | |
14254 | ||
14255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
14256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14257 | result = (bool) ((arg1)->m_metaDown); | |
14258 | ||
14259 | resultobj = PyInt_FromLong((long)result); | |
14260 | return resultobj; | |
14261 | fail: | |
14262 | return NULL; | |
14263 | } | |
14264 | ||
14265 | ||
14266 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14267 | PyObject *resultobj; | |
14268 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14269 | bool arg2 ; | |
14270 | PyObject * obj0 = 0 ; | |
14271 | PyObject * obj1 = 0 ; | |
14272 | char *kwnames[] = { | |
14273 | (char *) "self",(char *) "m_scanCode", NULL | |
14274 | }; | |
14275 | ||
14276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
14277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14278 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14279 | if (PyErr_Occurred()) SWIG_fail; | |
14280 | if (arg1) (arg1)->m_scanCode = arg2; | |
14281 | ||
14282 | Py_INCREF(Py_None); resultobj = Py_None; | |
14283 | return resultobj; | |
14284 | fail: | |
14285 | return NULL; | |
14286 | } | |
14287 | ||
14288 | ||
14289 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14290 | PyObject *resultobj; | |
14291 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14292 | bool result; | |
14293 | PyObject * obj0 = 0 ; | |
14294 | char *kwnames[] = { | |
14295 | (char *) "self", NULL | |
14296 | }; | |
14297 | ||
14298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
14299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14300 | result = (bool) ((arg1)->m_scanCode); | |
14301 | ||
14302 | resultobj = PyInt_FromLong((long)result); | |
14303 | return resultobj; | |
14304 | fail: | |
14305 | return NULL; | |
14306 | } | |
14307 | ||
14308 | ||
14309 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14310 | PyObject *resultobj; | |
14311 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14312 | wxUint32 arg2 ; | |
14313 | PyObject * obj0 = 0 ; | |
14314 | PyObject * obj1 = 0 ; | |
14315 | char *kwnames[] = { | |
14316 | (char *) "self",(char *) "m_rawCode", NULL | |
14317 | }; | |
14318 | ||
14319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
14320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14321 | arg2 = (wxUint32) PyInt_AsLong(obj1); | |
14322 | if (PyErr_Occurred()) SWIG_fail; | |
14323 | if (arg1) (arg1)->m_rawCode = arg2; | |
14324 | ||
14325 | Py_INCREF(Py_None); resultobj = Py_None; | |
14326 | return resultobj; | |
14327 | fail: | |
14328 | return NULL; | |
14329 | } | |
14330 | ||
14331 | ||
14332 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14333 | PyObject *resultobj; | |
14334 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14335 | wxUint32 result; | |
14336 | PyObject * obj0 = 0 ; | |
14337 | char *kwnames[] = { | |
14338 | (char *) "self", NULL | |
14339 | }; | |
14340 | ||
14341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
14342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14343 | result = (wxUint32) ((arg1)->m_rawCode); | |
14344 | ||
14345 | resultobj = PyInt_FromLong((long)result); | |
14346 | return resultobj; | |
14347 | fail: | |
14348 | return NULL; | |
14349 | } | |
14350 | ||
14351 | ||
14352 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14353 | PyObject *resultobj; | |
14354 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14355 | wxUint32 arg2 ; | |
14356 | PyObject * obj0 = 0 ; | |
14357 | PyObject * obj1 = 0 ; | |
14358 | char *kwnames[] = { | |
14359 | (char *) "self",(char *) "m_rawFlags", NULL | |
14360 | }; | |
14361 | ||
14362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
14363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14364 | arg2 = (wxUint32) PyInt_AsLong(obj1); | |
14365 | if (PyErr_Occurred()) SWIG_fail; | |
14366 | if (arg1) (arg1)->m_rawFlags = arg2; | |
14367 | ||
14368 | Py_INCREF(Py_None); resultobj = Py_None; | |
14369 | return resultobj; | |
14370 | fail: | |
14371 | return NULL; | |
14372 | } | |
14373 | ||
14374 | ||
14375 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14376 | PyObject *resultobj; | |
14377 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14378 | wxUint32 result; | |
14379 | PyObject * obj0 = 0 ; | |
14380 | char *kwnames[] = { | |
14381 | (char *) "self", NULL | |
14382 | }; | |
14383 | ||
14384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
14385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14386 | result = (wxUint32) ((arg1)->m_rawFlags); | |
14387 | ||
14388 | resultobj = PyInt_FromLong((long)result); | |
14389 | return resultobj; | |
14390 | fail: | |
14391 | return NULL; | |
14392 | } | |
14393 | ||
14394 | ||
14395 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
14396 | PyObject *obj; | |
14397 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14398 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
14399 | Py_INCREF(obj); | |
14400 | return Py_BuildValue((char *)""); | |
14401 | } | |
14402 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14403 | PyObject *resultobj; | |
14404 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
14405 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
14406 | int arg2 = (int) 0 ; | |
14407 | wxSizeEvent *result; | |
14408 | wxSize temp1 ; | |
14409 | PyObject * obj0 = 0 ; | |
14410 | char *kwnames[] = { | |
14411 | (char *) "sz",(char *) "winid", NULL | |
14412 | }; | |
14413 | ||
14414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_SizeEvent",kwnames,&obj0,&arg2)) goto fail; | |
14415 | if (obj0) { | |
14416 | { | |
14417 | arg1 = &temp1; | |
14418 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14419 | } | |
14420 | } | |
14421 | { | |
14422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14423 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
14424 | ||
14425 | wxPyEndAllowThreads(__tstate); | |
14426 | if (PyErr_Occurred()) SWIG_fail; | |
14427 | } | |
14428 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizeEvent, 1); | |
14429 | return resultobj; | |
14430 | fail: | |
14431 | return NULL; | |
14432 | } | |
14433 | ||
14434 | ||
14435 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14436 | PyObject *resultobj; | |
14437 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14438 | wxSize result; | |
14439 | PyObject * obj0 = 0 ; | |
14440 | char *kwnames[] = { | |
14441 | (char *) "self", NULL | |
14442 | }; | |
14443 | ||
14444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
14445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14446 | { | |
14447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14448 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
14449 | ||
14450 | wxPyEndAllowThreads(__tstate); | |
14451 | if (PyErr_Occurred()) SWIG_fail; | |
14452 | } | |
14453 | { | |
14454 | wxSize * resultptr; | |
14455 | resultptr = new wxSize((wxSize &) result); | |
14456 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14457 | } | |
14458 | return resultobj; | |
14459 | fail: | |
14460 | return NULL; | |
14461 | } | |
14462 | ||
14463 | ||
14464 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14465 | PyObject *resultobj; | |
14466 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14467 | wxRect result; | |
14468 | PyObject * obj0 = 0 ; | |
14469 | char *kwnames[] = { | |
14470 | (char *) "self", NULL | |
14471 | }; | |
14472 | ||
14473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
14474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14475 | { | |
14476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14477 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
14478 | ||
14479 | wxPyEndAllowThreads(__tstate); | |
14480 | if (PyErr_Occurred()) SWIG_fail; | |
14481 | } | |
14482 | { | |
14483 | wxRect * resultptr; | |
14484 | resultptr = new wxRect((wxRect &) result); | |
14485 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
14486 | } | |
14487 | return resultobj; | |
14488 | fail: | |
14489 | return NULL; | |
14490 | } | |
14491 | ||
14492 | ||
14493 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14494 | PyObject *resultobj; | |
14495 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14496 | wxRect arg2 ; | |
14497 | wxRect *argp2 ; | |
14498 | PyObject * obj0 = 0 ; | |
14499 | PyObject * obj1 = 0 ; | |
14500 | char *kwnames[] = { | |
14501 | (char *) "self",(char *) "rect", NULL | |
14502 | }; | |
14503 | ||
14504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
14505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14506 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14507 | arg2 = *argp2; | |
14508 | { | |
14509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14510 | (arg1)->SetRect(arg2); | |
14511 | ||
14512 | wxPyEndAllowThreads(__tstate); | |
14513 | if (PyErr_Occurred()) SWIG_fail; | |
14514 | } | |
14515 | Py_INCREF(Py_None); resultobj = Py_None; | |
14516 | return resultobj; | |
14517 | fail: | |
14518 | return NULL; | |
14519 | } | |
14520 | ||
14521 | ||
14522 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14523 | PyObject *resultobj; | |
14524 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14525 | wxSize arg2 ; | |
14526 | wxSize *argp2 ; | |
14527 | PyObject * obj0 = 0 ; | |
14528 | PyObject * obj1 = 0 ; | |
14529 | char *kwnames[] = { | |
14530 | (char *) "self",(char *) "size", NULL | |
14531 | }; | |
14532 | ||
14533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
14534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14535 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14536 | arg2 = *argp2; | |
14537 | { | |
14538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14539 | wxSizeEvent_SetSize(arg1,arg2); | |
14540 | ||
14541 | wxPyEndAllowThreads(__tstate); | |
14542 | if (PyErr_Occurred()) SWIG_fail; | |
14543 | } | |
14544 | Py_INCREF(Py_None); resultobj = Py_None; | |
14545 | return resultobj; | |
14546 | fail: | |
14547 | return NULL; | |
14548 | } | |
14549 | ||
14550 | ||
14551 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14552 | PyObject *resultobj; | |
14553 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14554 | wxSize *arg2 = (wxSize *) 0 ; | |
14555 | PyObject * obj0 = 0 ; | |
14556 | PyObject * obj1 = 0 ; | |
14557 | char *kwnames[] = { | |
14558 | (char *) "self",(char *) "m_size", NULL | |
14559 | }; | |
14560 | ||
14561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
14562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14563 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14564 | if (arg1) (arg1)->m_size = *arg2; | |
14565 | ||
14566 | Py_INCREF(Py_None); resultobj = Py_None; | |
14567 | return resultobj; | |
14568 | fail: | |
14569 | return NULL; | |
14570 | } | |
14571 | ||
14572 | ||
14573 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14574 | PyObject *resultobj; | |
14575 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14576 | wxSize *result; | |
14577 | PyObject * obj0 = 0 ; | |
14578 | char *kwnames[] = { | |
14579 | (char *) "self", NULL | |
14580 | }; | |
14581 | ||
14582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
14583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14584 | result = (wxSize *)& ((arg1)->m_size); | |
14585 | ||
14586 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
14587 | return resultobj; | |
14588 | fail: | |
14589 | return NULL; | |
14590 | } | |
14591 | ||
14592 | ||
14593 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14594 | PyObject *resultobj; | |
14595 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14596 | wxRect *arg2 = (wxRect *) 0 ; | |
14597 | PyObject * obj0 = 0 ; | |
14598 | PyObject * obj1 = 0 ; | |
14599 | char *kwnames[] = { | |
14600 | (char *) "self",(char *) "m_rect", NULL | |
14601 | }; | |
14602 | ||
14603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
14604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14605 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14606 | if (arg1) (arg1)->m_rect = *arg2; | |
14607 | ||
14608 | Py_INCREF(Py_None); resultobj = Py_None; | |
14609 | return resultobj; | |
14610 | fail: | |
14611 | return NULL; | |
14612 | } | |
14613 | ||
14614 | ||
14615 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14616 | PyObject *resultobj; | |
14617 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14618 | wxRect *result; | |
14619 | PyObject * obj0 = 0 ; | |
14620 | char *kwnames[] = { | |
14621 | (char *) "self", NULL | |
14622 | }; | |
14623 | ||
14624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
14625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14626 | result = (wxRect *)& ((arg1)->m_rect); | |
14627 | ||
14628 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
14629 | return resultobj; | |
14630 | fail: | |
14631 | return NULL; | |
14632 | } | |
14633 | ||
14634 | ||
14635 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
14636 | PyObject *obj; | |
14637 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14638 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
14639 | Py_INCREF(obj); | |
14640 | return Py_BuildValue((char *)""); | |
14641 | } | |
14642 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14643 | PyObject *resultobj; | |
14644 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
14645 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
14646 | int arg2 = (int) 0 ; | |
14647 | wxMoveEvent *result; | |
14648 | wxPoint temp1 ; | |
14649 | PyObject * obj0 = 0 ; | |
14650 | char *kwnames[] = { | |
14651 | (char *) "pos",(char *) "winid", NULL | |
14652 | }; | |
14653 | ||
14654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_MoveEvent",kwnames,&obj0,&arg2)) goto fail; | |
14655 | if (obj0) { | |
14656 | { | |
14657 | arg1 = &temp1; | |
14658 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
14659 | } | |
14660 | } | |
14661 | { | |
14662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14663 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
14664 | ||
14665 | wxPyEndAllowThreads(__tstate); | |
14666 | if (PyErr_Occurred()) SWIG_fail; | |
14667 | } | |
14668 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMoveEvent, 1); | |
14669 | return resultobj; | |
14670 | fail: | |
14671 | return NULL; | |
14672 | } | |
14673 | ||
14674 | ||
14675 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14676 | PyObject *resultobj; | |
14677 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14678 | wxPoint result; | |
14679 | PyObject * obj0 = 0 ; | |
14680 | char *kwnames[] = { | |
14681 | (char *) "self", NULL | |
14682 | }; | |
14683 | ||
14684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14686 | { | |
14687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14688 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
14689 | ||
14690 | wxPyEndAllowThreads(__tstate); | |
14691 | if (PyErr_Occurred()) SWIG_fail; | |
14692 | } | |
14693 | { | |
14694 | wxPoint * resultptr; | |
14695 | resultptr = new wxPoint((wxPoint &) result); | |
14696 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
14697 | } | |
14698 | return resultobj; | |
14699 | fail: | |
14700 | return NULL; | |
14701 | } | |
14702 | ||
14703 | ||
14704 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14705 | PyObject *resultobj; | |
14706 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14707 | wxRect result; | |
14708 | PyObject * obj0 = 0 ; | |
14709 | char *kwnames[] = { | |
14710 | (char *) "self", NULL | |
14711 | }; | |
14712 | ||
14713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
14714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14715 | { | |
14716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14717 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
14718 | ||
14719 | wxPyEndAllowThreads(__tstate); | |
14720 | if (PyErr_Occurred()) SWIG_fail; | |
14721 | } | |
14722 | { | |
14723 | wxRect * resultptr; | |
14724 | resultptr = new wxRect((wxRect &) result); | |
14725 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
14726 | } | |
14727 | return resultobj; | |
14728 | fail: | |
14729 | return NULL; | |
14730 | } | |
14731 | ||
14732 | ||
14733 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14734 | PyObject *resultobj; | |
14735 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14736 | wxRect arg2 ; | |
14737 | wxRect *argp2 ; | |
14738 | PyObject * obj0 = 0 ; | |
14739 | PyObject * obj1 = 0 ; | |
14740 | char *kwnames[] = { | |
14741 | (char *) "self",(char *) "rect", NULL | |
14742 | }; | |
14743 | ||
14744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
14745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14746 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14747 | arg2 = *argp2; | |
14748 | { | |
14749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14750 | (arg1)->SetRect(arg2); | |
14751 | ||
14752 | wxPyEndAllowThreads(__tstate); | |
14753 | if (PyErr_Occurred()) SWIG_fail; | |
14754 | } | |
14755 | Py_INCREF(Py_None); resultobj = Py_None; | |
14756 | return resultobj; | |
14757 | fail: | |
14758 | return NULL; | |
14759 | } | |
14760 | ||
14761 | ||
14762 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14763 | PyObject *resultobj; | |
14764 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14765 | wxPoint arg2 ; | |
14766 | wxPoint *argp2 ; | |
14767 | PyObject * obj0 = 0 ; | |
14768 | PyObject * obj1 = 0 ; | |
14769 | char *kwnames[] = { | |
14770 | (char *) "self",(char *) "pos", NULL | |
14771 | }; | |
14772 | ||
14773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
14774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14775 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14776 | arg2 = *argp2; | |
14777 | { | |
14778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14779 | wxMoveEvent_SetPosition(arg1,arg2); | |
14780 | ||
14781 | wxPyEndAllowThreads(__tstate); | |
14782 | if (PyErr_Occurred()) SWIG_fail; | |
14783 | } | |
14784 | Py_INCREF(Py_None); resultobj = Py_None; | |
14785 | return resultobj; | |
14786 | fail: | |
14787 | return NULL; | |
14788 | } | |
14789 | ||
14790 | ||
14791 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14792 | PyObject *resultobj; | |
14793 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14794 | wxPoint *arg2 = (wxPoint *) 0 ; | |
14795 | PyObject * obj0 = 0 ; | |
14796 | PyObject * obj1 = 0 ; | |
14797 | char *kwnames[] = { | |
14798 | (char *) "self",(char *) "m_pos", NULL | |
14799 | }; | |
14800 | ||
14801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
14802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14803 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14804 | if (arg1) (arg1)->m_pos = *arg2; | |
14805 | ||
14806 | Py_INCREF(Py_None); resultobj = Py_None; | |
14807 | return resultobj; | |
14808 | fail: | |
14809 | return NULL; | |
14810 | } | |
14811 | ||
14812 | ||
14813 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14814 | PyObject *resultobj; | |
14815 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14816 | wxPoint *result; | |
14817 | PyObject * obj0 = 0 ; | |
14818 | char *kwnames[] = { | |
14819 | (char *) "self", NULL | |
14820 | }; | |
14821 | ||
14822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
14823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14824 | result = (wxPoint *)& ((arg1)->m_pos); | |
14825 | ||
14826 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
14827 | return resultobj; | |
14828 | fail: | |
14829 | return NULL; | |
14830 | } | |
14831 | ||
14832 | ||
14833 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14834 | PyObject *resultobj; | |
14835 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14836 | wxRect *arg2 = (wxRect *) 0 ; | |
14837 | PyObject * obj0 = 0 ; | |
14838 | PyObject * obj1 = 0 ; | |
14839 | char *kwnames[] = { | |
14840 | (char *) "self",(char *) "m_rect", NULL | |
14841 | }; | |
14842 | ||
14843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
14844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14845 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14846 | if (arg1) (arg1)->m_rect = *arg2; | |
14847 | ||
14848 | Py_INCREF(Py_None); resultobj = Py_None; | |
14849 | return resultobj; | |
14850 | fail: | |
14851 | return NULL; | |
14852 | } | |
14853 | ||
14854 | ||
14855 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14856 | PyObject *resultobj; | |
14857 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14858 | wxRect *result; | |
14859 | PyObject * obj0 = 0 ; | |
14860 | char *kwnames[] = { | |
14861 | (char *) "self", NULL | |
14862 | }; | |
14863 | ||
14864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
14865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14866 | result = (wxRect *)& ((arg1)->m_rect); | |
14867 | ||
14868 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
14869 | return resultobj; | |
14870 | fail: | |
14871 | return NULL; | |
14872 | } | |
14873 | ||
14874 | ||
14875 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
14876 | PyObject *obj; | |
14877 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14878 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
14879 | Py_INCREF(obj); | |
14880 | return Py_BuildValue((char *)""); | |
14881 | } | |
14882 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14883 | PyObject *resultobj; | |
14884 | int arg1 = (int) 0 ; | |
14885 | wxPaintEvent *result; | |
14886 | char *kwnames[] = { | |
14887 | (char *) "Id", NULL | |
14888 | }; | |
14889 | ||
14890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_PaintEvent",kwnames,&arg1)) goto fail; | |
14891 | { | |
14892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14893 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
14894 | ||
14895 | wxPyEndAllowThreads(__tstate); | |
14896 | if (PyErr_Occurred()) SWIG_fail; | |
14897 | } | |
14898 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintEvent, 1); | |
14899 | return resultobj; | |
14900 | fail: | |
14901 | return NULL; | |
14902 | } | |
14903 | ||
14904 | ||
14905 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
14906 | PyObject *obj; | |
14907 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14908 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
14909 | Py_INCREF(obj); | |
14910 | return Py_BuildValue((char *)""); | |
14911 | } | |
14912 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14913 | PyObject *resultobj; | |
14914 | int arg1 = (int) 0 ; | |
14915 | wxNcPaintEvent *result; | |
14916 | char *kwnames[] = { | |
14917 | (char *) "winid", NULL | |
14918 | }; | |
14919 | ||
14920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_NcPaintEvent",kwnames,&arg1)) goto fail; | |
14921 | { | |
14922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14923 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
14924 | ||
14925 | wxPyEndAllowThreads(__tstate); | |
14926 | if (PyErr_Occurred()) SWIG_fail; | |
14927 | } | |
14928 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNcPaintEvent, 1); | |
14929 | return resultobj; | |
14930 | fail: | |
14931 | return NULL; | |
14932 | } | |
14933 | ||
14934 | ||
14935 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
14936 | PyObject *obj; | |
14937 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14938 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
14939 | Py_INCREF(obj); | |
14940 | return Py_BuildValue((char *)""); | |
14941 | } | |
14942 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14943 | PyObject *resultobj; | |
14944 | int arg1 = (int) 0 ; | |
14945 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
14946 | wxEraseEvent *result; | |
14947 | PyObject * obj1 = 0 ; | |
14948 | char *kwnames[] = { | |
14949 | (char *) "Id",(char *) "dc", NULL | |
14950 | }; | |
14951 | ||
14952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_EraseEvent",kwnames,&arg1,&obj1)) goto fail; | |
14953 | if (obj1) { | |
14954 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14955 | } | |
14956 | { | |
14957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14958 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
14959 | ||
14960 | wxPyEndAllowThreads(__tstate); | |
14961 | if (PyErr_Occurred()) SWIG_fail; | |
14962 | } | |
14963 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEraseEvent, 1); | |
14964 | return resultobj; | |
14965 | fail: | |
14966 | return NULL; | |
14967 | } | |
14968 | ||
14969 | ||
14970 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14971 | PyObject *resultobj; | |
14972 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
14973 | wxDC *result; | |
14974 | PyObject * obj0 = 0 ; | |
14975 | char *kwnames[] = { | |
14976 | (char *) "self", NULL | |
14977 | }; | |
14978 | ||
14979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
14980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEraseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14981 | { | |
14982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14983 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
14984 | ||
14985 | wxPyEndAllowThreads(__tstate); | |
14986 | if (PyErr_Occurred()) SWIG_fail; | |
14987 | } | |
14988 | { | |
14989 | resultobj = wxPyMake_wxObject(result); | |
14990 | } | |
14991 | return resultobj; | |
14992 | fail: | |
14993 | return NULL; | |
14994 | } | |
14995 | ||
14996 | ||
14997 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
14998 | PyObject *obj; | |
14999 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15000 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
15001 | Py_INCREF(obj); | |
15002 | return Py_BuildValue((char *)""); | |
15003 | } | |
15004 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15005 | PyObject *resultobj; | |
15006 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15007 | int arg2 = (int) 0 ; | |
15008 | wxFocusEvent *result; | |
15009 | char *kwnames[] = { | |
15010 | (char *) "type",(char *) "winid", NULL | |
15011 | }; | |
15012 | ||
15013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_FocusEvent",kwnames,&arg1,&arg2)) goto fail; | |
15014 | { | |
15015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15016 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
15017 | ||
15018 | wxPyEndAllowThreads(__tstate); | |
15019 | if (PyErr_Occurred()) SWIG_fail; | |
15020 | } | |
15021 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFocusEvent, 1); | |
15022 | return resultobj; | |
15023 | fail: | |
15024 | return NULL; | |
15025 | } | |
15026 | ||
15027 | ||
15028 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15029 | PyObject *resultobj; | |
15030 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
15031 | wxWindow *result; | |
15032 | PyObject * obj0 = 0 ; | |
15033 | char *kwnames[] = { | |
15034 | (char *) "self", NULL | |
15035 | }; | |
15036 | ||
15037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15039 | { | |
15040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15041 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
15042 | ||
15043 | wxPyEndAllowThreads(__tstate); | |
15044 | if (PyErr_Occurred()) SWIG_fail; | |
15045 | } | |
15046 | { | |
15047 | resultobj = wxPyMake_wxObject(result); | |
15048 | } | |
15049 | return resultobj; | |
15050 | fail: | |
15051 | return NULL; | |
15052 | } | |
15053 | ||
15054 | ||
15055 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15056 | PyObject *resultobj; | |
15057 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
15058 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15059 | PyObject * obj0 = 0 ; | |
15060 | PyObject * obj1 = 0 ; | |
15061 | char *kwnames[] = { | |
15062 | (char *) "self",(char *) "win", NULL | |
15063 | }; | |
15064 | ||
15065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15067 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15068 | { | |
15069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15070 | (arg1)->SetWindow(arg2); | |
15071 | ||
15072 | wxPyEndAllowThreads(__tstate); | |
15073 | if (PyErr_Occurred()) SWIG_fail; | |
15074 | } | |
15075 | Py_INCREF(Py_None); resultobj = Py_None; | |
15076 | return resultobj; | |
15077 | fail: | |
15078 | return NULL; | |
15079 | } | |
15080 | ||
15081 | ||
15082 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
15083 | PyObject *obj; | |
15084 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15085 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
15086 | Py_INCREF(obj); | |
15087 | return Py_BuildValue((char *)""); | |
15088 | } | |
15089 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15090 | PyObject *resultobj; | |
15091 | wxWindow *arg1 = (wxWindow *) NULL ; | |
15092 | wxChildFocusEvent *result; | |
15093 | PyObject * obj0 = 0 ; | |
15094 | char *kwnames[] = { | |
15095 | (char *) "win", NULL | |
15096 | }; | |
15097 | ||
15098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
15099 | if (obj0) { | |
15100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15101 | } | |
15102 | { | |
15103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15104 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
15105 | ||
15106 | wxPyEndAllowThreads(__tstate); | |
15107 | if (PyErr_Occurred()) SWIG_fail; | |
15108 | } | |
15109 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChildFocusEvent, 1); | |
15110 | return resultobj; | |
15111 | fail: | |
15112 | return NULL; | |
15113 | } | |
15114 | ||
15115 | ||
15116 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15117 | PyObject *resultobj; | |
15118 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
15119 | wxWindow *result; | |
15120 | PyObject * obj0 = 0 ; | |
15121 | char *kwnames[] = { | |
15122 | (char *) "self", NULL | |
15123 | }; | |
15124 | ||
15125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChildFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15127 | { | |
15128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15129 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
15130 | ||
15131 | wxPyEndAllowThreads(__tstate); | |
15132 | if (PyErr_Occurred()) SWIG_fail; | |
15133 | } | |
15134 | { | |
15135 | resultobj = wxPyMake_wxObject(result); | |
15136 | } | |
15137 | return resultobj; | |
15138 | fail: | |
15139 | return NULL; | |
15140 | } | |
15141 | ||
15142 | ||
15143 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
15144 | PyObject *obj; | |
15145 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15146 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
15147 | Py_INCREF(obj); | |
15148 | return Py_BuildValue((char *)""); | |
15149 | } | |
15150 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15151 | PyObject *resultobj; | |
15152 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15153 | bool arg2 = (bool) TRUE ; | |
15154 | int arg3 = (int) 0 ; | |
15155 | wxActivateEvent *result; | |
15156 | PyObject * obj1 = 0 ; | |
15157 | char *kwnames[] = { | |
15158 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
15159 | }; | |
15160 | ||
15161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iOi:new_ActivateEvent",kwnames,&arg1,&obj1,&arg3)) goto fail; | |
15162 | if (obj1) { | |
15163 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15164 | if (PyErr_Occurred()) SWIG_fail; | |
15165 | } | |
15166 | { | |
15167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15168 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
15169 | ||
15170 | wxPyEndAllowThreads(__tstate); | |
15171 | if (PyErr_Occurred()) SWIG_fail; | |
15172 | } | |
15173 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxActivateEvent, 1); | |
15174 | return resultobj; | |
15175 | fail: | |
15176 | return NULL; | |
15177 | } | |
15178 | ||
15179 | ||
15180 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15181 | PyObject *resultobj; | |
15182 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
15183 | bool result; | |
15184 | PyObject * obj0 = 0 ; | |
15185 | char *kwnames[] = { | |
15186 | (char *) "self", NULL | |
15187 | }; | |
15188 | ||
15189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
15190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxActivateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15191 | { | |
15192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15193 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
15194 | ||
15195 | wxPyEndAllowThreads(__tstate); | |
15196 | if (PyErr_Occurred()) SWIG_fail; | |
15197 | } | |
15198 | resultobj = PyInt_FromLong((long)result); | |
15199 | return resultobj; | |
15200 | fail: | |
15201 | return NULL; | |
15202 | } | |
15203 | ||
15204 | ||
15205 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
15206 | PyObject *obj; | |
15207 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15208 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
15209 | Py_INCREF(obj); | |
15210 | return Py_BuildValue((char *)""); | |
15211 | } | |
15212 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15213 | PyObject *resultobj; | |
15214 | int arg1 = (int) 0 ; | |
15215 | wxInitDialogEvent *result; | |
15216 | char *kwnames[] = { | |
15217 | (char *) "Id", NULL | |
15218 | }; | |
15219 | ||
15220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_InitDialogEvent",kwnames,&arg1)) goto fail; | |
15221 | { | |
15222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15223 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
15224 | ||
15225 | wxPyEndAllowThreads(__tstate); | |
15226 | if (PyErr_Occurred()) SWIG_fail; | |
15227 | } | |
15228 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInitDialogEvent, 1); | |
15229 | return resultobj; | |
15230 | fail: | |
15231 | return NULL; | |
15232 | } | |
15233 | ||
15234 | ||
15235 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
15236 | PyObject *obj; | |
15237 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15238 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
15239 | Py_INCREF(obj); | |
15240 | return Py_BuildValue((char *)""); | |
15241 | } | |
15242 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15243 | PyObject *resultobj; | |
15244 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15245 | int arg2 = (int) 0 ; | |
15246 | wxMenu *arg3 = (wxMenu *) NULL ; | |
15247 | wxMenuEvent *result; | |
15248 | PyObject * obj2 = 0 ; | |
15249 | char *kwnames[] = { | |
15250 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
15251 | }; | |
15252 | ||
15253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_MenuEvent",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
15254 | if (obj2) { | |
15255 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15256 | } | |
15257 | { | |
15258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15259 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
15260 | ||
15261 | wxPyEndAllowThreads(__tstate); | |
15262 | if (PyErr_Occurred()) SWIG_fail; | |
15263 | } | |
15264 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMenuEvent, 1); | |
15265 | return resultobj; | |
15266 | fail: | |
15267 | return NULL; | |
15268 | } | |
15269 | ||
15270 | ||
15271 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15272 | PyObject *resultobj; | |
15273 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
15274 | int result; | |
15275 | PyObject * obj0 = 0 ; | |
15276 | char *kwnames[] = { | |
15277 | (char *) "self", NULL | |
15278 | }; | |
15279 | ||
15280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
15281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15282 | { | |
15283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15284 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
15285 | ||
15286 | wxPyEndAllowThreads(__tstate); | |
15287 | if (PyErr_Occurred()) SWIG_fail; | |
15288 | } | |
15289 | resultobj = PyInt_FromLong((long)result); | |
15290 | return resultobj; | |
15291 | fail: | |
15292 | return NULL; | |
15293 | } | |
15294 | ||
15295 | ||
15296 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15297 | PyObject *resultobj; | |
15298 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
15299 | bool result; | |
15300 | PyObject * obj0 = 0 ; | |
15301 | char *kwnames[] = { | |
15302 | (char *) "self", NULL | |
15303 | }; | |
15304 | ||
15305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
15306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15307 | { | |
15308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15309 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
15310 | ||
15311 | wxPyEndAllowThreads(__tstate); | |
15312 | if (PyErr_Occurred()) SWIG_fail; | |
15313 | } | |
15314 | resultobj = PyInt_FromLong((long)result); | |
15315 | return resultobj; | |
15316 | fail: | |
15317 | return NULL; | |
15318 | } | |
15319 | ||
15320 | ||
15321 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15322 | PyObject *resultobj; | |
15323 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
15324 | wxMenu *result; | |
15325 | PyObject * obj0 = 0 ; | |
15326 | char *kwnames[] = { | |
15327 | (char *) "self", NULL | |
15328 | }; | |
15329 | ||
15330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
15331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15332 | { | |
15333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15334 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
15335 | ||
15336 | wxPyEndAllowThreads(__tstate); | |
15337 | if (PyErr_Occurred()) SWIG_fail; | |
15338 | } | |
15339 | { | |
15340 | resultobj = wxPyMake_wxObject(result); | |
15341 | } | |
15342 | return resultobj; | |
15343 | fail: | |
15344 | return NULL; | |
15345 | } | |
15346 | ||
15347 | ||
15348 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
15349 | PyObject *obj; | |
15350 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15351 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
15352 | Py_INCREF(obj); | |
15353 | return Py_BuildValue((char *)""); | |
15354 | } | |
15355 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15356 | PyObject *resultobj; | |
15357 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15358 | int arg2 = (int) 0 ; | |
15359 | wxCloseEvent *result; | |
15360 | char *kwnames[] = { | |
15361 | (char *) "type",(char *) "winid", NULL | |
15362 | }; | |
15363 | ||
15364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_CloseEvent",kwnames,&arg1,&arg2)) goto fail; | |
15365 | { | |
15366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15367 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
15368 | ||
15369 | wxPyEndAllowThreads(__tstate); | |
15370 | if (PyErr_Occurred()) SWIG_fail; | |
15371 | } | |
15372 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCloseEvent, 1); | |
15373 | return resultobj; | |
15374 | fail: | |
15375 | return NULL; | |
15376 | } | |
15377 | ||
15378 | ||
15379 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15380 | PyObject *resultobj; | |
15381 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15382 | bool arg2 ; | |
15383 | PyObject * obj0 = 0 ; | |
15384 | PyObject * obj1 = 0 ; | |
15385 | char *kwnames[] = { | |
15386 | (char *) "self",(char *) "logOff", NULL | |
15387 | }; | |
15388 | ||
15389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
15390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15391 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15392 | if (PyErr_Occurred()) SWIG_fail; | |
15393 | { | |
15394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15395 | (arg1)->SetLoggingOff(arg2); | |
15396 | ||
15397 | wxPyEndAllowThreads(__tstate); | |
15398 | if (PyErr_Occurred()) SWIG_fail; | |
15399 | } | |
15400 | Py_INCREF(Py_None); resultobj = Py_None; | |
15401 | return resultobj; | |
15402 | fail: | |
15403 | return NULL; | |
15404 | } | |
15405 | ||
15406 | ||
15407 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15408 | PyObject *resultobj; | |
15409 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15410 | bool result; | |
15411 | PyObject * obj0 = 0 ; | |
15412 | char *kwnames[] = { | |
15413 | (char *) "self", NULL | |
15414 | }; | |
15415 | ||
15416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
15417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15418 | { | |
15419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15420 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
15421 | ||
15422 | wxPyEndAllowThreads(__tstate); | |
15423 | if (PyErr_Occurred()) SWIG_fail; | |
15424 | } | |
15425 | resultobj = PyInt_FromLong((long)result); | |
15426 | return resultobj; | |
15427 | fail: | |
15428 | return NULL; | |
15429 | } | |
15430 | ||
15431 | ||
15432 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15433 | PyObject *resultobj; | |
15434 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15435 | bool arg2 = (bool) TRUE ; | |
15436 | PyObject * obj0 = 0 ; | |
15437 | PyObject * obj1 = 0 ; | |
15438 | char *kwnames[] = { | |
15439 | (char *) "self",(char *) "veto", NULL | |
15440 | }; | |
15441 | ||
15442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
15443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15444 | if (obj1) { | |
15445 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15446 | if (PyErr_Occurred()) SWIG_fail; | |
15447 | } | |
15448 | { | |
15449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15450 | (arg1)->Veto(arg2); | |
15451 | ||
15452 | wxPyEndAllowThreads(__tstate); | |
15453 | if (PyErr_Occurred()) SWIG_fail; | |
15454 | } | |
15455 | Py_INCREF(Py_None); resultobj = Py_None; | |
15456 | return resultobj; | |
15457 | fail: | |
15458 | return NULL; | |
15459 | } | |
15460 | ||
15461 | ||
15462 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15463 | PyObject *resultobj; | |
15464 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15465 | bool arg2 ; | |
15466 | PyObject * obj0 = 0 ; | |
15467 | PyObject * obj1 = 0 ; | |
15468 | char *kwnames[] = { | |
15469 | (char *) "self",(char *) "canVeto", NULL | |
15470 | }; | |
15471 | ||
15472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
15473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15474 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15475 | if (PyErr_Occurred()) SWIG_fail; | |
15476 | { | |
15477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15478 | (arg1)->SetCanVeto(arg2); | |
15479 | ||
15480 | wxPyEndAllowThreads(__tstate); | |
15481 | if (PyErr_Occurred()) SWIG_fail; | |
15482 | } | |
15483 | Py_INCREF(Py_None); resultobj = Py_None; | |
15484 | return resultobj; | |
15485 | fail: | |
15486 | return NULL; | |
15487 | } | |
15488 | ||
15489 | ||
15490 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15491 | PyObject *resultobj; | |
15492 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15493 | bool result; | |
15494 | PyObject * obj0 = 0 ; | |
15495 | char *kwnames[] = { | |
15496 | (char *) "self", NULL | |
15497 | }; | |
15498 | ||
15499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
15500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15501 | { | |
15502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15503 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
15504 | ||
15505 | wxPyEndAllowThreads(__tstate); | |
15506 | if (PyErr_Occurred()) SWIG_fail; | |
15507 | } | |
15508 | resultobj = PyInt_FromLong((long)result); | |
15509 | return resultobj; | |
15510 | fail: | |
15511 | return NULL; | |
15512 | } | |
15513 | ||
15514 | ||
15515 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15516 | PyObject *resultobj; | |
15517 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15518 | bool result; | |
15519 | PyObject * obj0 = 0 ; | |
15520 | char *kwnames[] = { | |
15521 | (char *) "self", NULL | |
15522 | }; | |
15523 | ||
15524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
15525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15526 | { | |
15527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15528 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
15529 | ||
15530 | wxPyEndAllowThreads(__tstate); | |
15531 | if (PyErr_Occurred()) SWIG_fail; | |
15532 | } | |
15533 | resultobj = PyInt_FromLong((long)result); | |
15534 | return resultobj; | |
15535 | fail: | |
15536 | return NULL; | |
15537 | } | |
15538 | ||
15539 | ||
15540 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
15541 | PyObject *obj; | |
15542 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15543 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
15544 | Py_INCREF(obj); | |
15545 | return Py_BuildValue((char *)""); | |
15546 | } | |
15547 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15548 | PyObject *resultobj; | |
15549 | int arg1 = (int) 0 ; | |
15550 | bool arg2 = (bool) FALSE ; | |
15551 | wxShowEvent *result; | |
15552 | PyObject * obj1 = 0 ; | |
15553 | char *kwnames[] = { | |
15554 | (char *) "winid",(char *) "show", NULL | |
15555 | }; | |
15556 | ||
15557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_ShowEvent",kwnames,&arg1,&obj1)) goto fail; | |
15558 | if (obj1) { | |
15559 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15560 | if (PyErr_Occurred()) SWIG_fail; | |
15561 | } | |
15562 | { | |
15563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15564 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
15565 | ||
15566 | wxPyEndAllowThreads(__tstate); | |
15567 | if (PyErr_Occurred()) SWIG_fail; | |
15568 | } | |
15569 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxShowEvent, 1); | |
15570 | return resultobj; | |
15571 | fail: | |
15572 | return NULL; | |
15573 | } | |
15574 | ||
15575 | ||
15576 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15577 | PyObject *resultobj; | |
15578 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
15579 | bool arg2 ; | |
15580 | PyObject * obj0 = 0 ; | |
15581 | PyObject * obj1 = 0 ; | |
15582 | char *kwnames[] = { | |
15583 | (char *) "self",(char *) "show", NULL | |
15584 | }; | |
15585 | ||
15586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
15587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15588 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15589 | if (PyErr_Occurred()) SWIG_fail; | |
15590 | { | |
15591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15592 | (arg1)->SetShow(arg2); | |
15593 | ||
15594 | wxPyEndAllowThreads(__tstate); | |
15595 | if (PyErr_Occurred()) SWIG_fail; | |
15596 | } | |
15597 | Py_INCREF(Py_None); resultobj = Py_None; | |
15598 | return resultobj; | |
15599 | fail: | |
15600 | return NULL; | |
15601 | } | |
15602 | ||
15603 | ||
15604 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15605 | PyObject *resultobj; | |
15606 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
15607 | bool result; | |
15608 | PyObject * obj0 = 0 ; | |
15609 | char *kwnames[] = { | |
15610 | (char *) "self", NULL | |
15611 | }; | |
15612 | ||
15613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
15614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15615 | { | |
15616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15617 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
15618 | ||
15619 | wxPyEndAllowThreads(__tstate); | |
15620 | if (PyErr_Occurred()) SWIG_fail; | |
15621 | } | |
15622 | resultobj = PyInt_FromLong((long)result); | |
15623 | return resultobj; | |
15624 | fail: | |
15625 | return NULL; | |
15626 | } | |
15627 | ||
15628 | ||
15629 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
15630 | PyObject *obj; | |
15631 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15632 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
15633 | Py_INCREF(obj); | |
15634 | return Py_BuildValue((char *)""); | |
15635 | } | |
15636 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15637 | PyObject *resultobj; | |
15638 | int arg1 = (int) 0 ; | |
15639 | bool arg2 = (bool) TRUE ; | |
15640 | wxIconizeEvent *result; | |
15641 | PyObject * obj1 = 0 ; | |
15642 | char *kwnames[] = { | |
15643 | (char *) "id",(char *) "iconized", NULL | |
15644 | }; | |
15645 | ||
15646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_IconizeEvent",kwnames,&arg1,&obj1)) goto fail; | |
15647 | if (obj1) { | |
15648 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15649 | if (PyErr_Occurred()) SWIG_fail; | |
15650 | } | |
15651 | { | |
15652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15653 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
15654 | ||
15655 | wxPyEndAllowThreads(__tstate); | |
15656 | if (PyErr_Occurred()) SWIG_fail; | |
15657 | } | |
15658 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconizeEvent, 1); | |
15659 | return resultobj; | |
15660 | fail: | |
15661 | return NULL; | |
15662 | } | |
15663 | ||
15664 | ||
15665 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15666 | PyObject *resultobj; | |
15667 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
15668 | bool result; | |
15669 | PyObject * obj0 = 0 ; | |
15670 | char *kwnames[] = { | |
15671 | (char *) "self", NULL | |
15672 | }; | |
15673 | ||
15674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
15675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15676 | { | |
15677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15678 | result = (bool)(arg1)->Iconized(); | |
15679 | ||
15680 | wxPyEndAllowThreads(__tstate); | |
15681 | if (PyErr_Occurred()) SWIG_fail; | |
15682 | } | |
15683 | resultobj = PyInt_FromLong((long)result); | |
15684 | return resultobj; | |
15685 | fail: | |
15686 | return NULL; | |
15687 | } | |
15688 | ||
15689 | ||
15690 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
15691 | PyObject *obj; | |
15692 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15693 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
15694 | Py_INCREF(obj); | |
15695 | return Py_BuildValue((char *)""); | |
15696 | } | |
15697 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15698 | PyObject *resultobj; | |
15699 | int arg1 = (int) 0 ; | |
15700 | wxMaximizeEvent *result; | |
15701 | char *kwnames[] = { | |
15702 | (char *) "id", NULL | |
15703 | }; | |
15704 | ||
15705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_MaximizeEvent",kwnames,&arg1)) goto fail; | |
15706 | { | |
15707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15708 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
15709 | ||
15710 | wxPyEndAllowThreads(__tstate); | |
15711 | if (PyErr_Occurred()) SWIG_fail; | |
15712 | } | |
15713 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMaximizeEvent, 1); | |
15714 | return resultobj; | |
15715 | fail: | |
15716 | return NULL; | |
15717 | } | |
15718 | ||
15719 | ||
15720 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
15721 | PyObject *obj; | |
15722 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15723 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
15724 | Py_INCREF(obj); | |
15725 | return Py_BuildValue((char *)""); | |
15726 | } | |
15727 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15728 | PyObject *resultobj; | |
15729 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
15730 | wxPoint result; | |
15731 | PyObject * obj0 = 0 ; | |
15732 | char *kwnames[] = { | |
15733 | (char *) "self", NULL | |
15734 | }; | |
15735 | ||
15736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15738 | { | |
15739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15740 | result = (arg1)->GetPosition(); | |
15741 | ||
15742 | wxPyEndAllowThreads(__tstate); | |
15743 | if (PyErr_Occurred()) SWIG_fail; | |
15744 | } | |
15745 | { | |
15746 | wxPoint * resultptr; | |
15747 | resultptr = new wxPoint((wxPoint &) result); | |
15748 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
15749 | } | |
15750 | return resultobj; | |
15751 | fail: | |
15752 | return NULL; | |
15753 | } | |
15754 | ||
15755 | ||
15756 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15757 | PyObject *resultobj; | |
15758 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
15759 | int result; | |
15760 | PyObject * obj0 = 0 ; | |
15761 | char *kwnames[] = { | |
15762 | (char *) "self", NULL | |
15763 | }; | |
15764 | ||
15765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
15766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15767 | { | |
15768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15769 | result = (int)(arg1)->GetNumberOfFiles(); | |
15770 | ||
15771 | wxPyEndAllowThreads(__tstate); | |
15772 | if (PyErr_Occurred()) SWIG_fail; | |
15773 | } | |
15774 | resultobj = PyInt_FromLong((long)result); | |
15775 | return resultobj; | |
15776 | fail: | |
15777 | return NULL; | |
15778 | } | |
15779 | ||
15780 | ||
15781 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15782 | PyObject *resultobj; | |
15783 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
15784 | PyObject *result; | |
15785 | PyObject * obj0 = 0 ; | |
15786 | char *kwnames[] = { | |
15787 | (char *) "self", NULL | |
15788 | }; | |
15789 | ||
15790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
15791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15792 | { | |
15793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15794 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
15795 | ||
15796 | wxPyEndAllowThreads(__tstate); | |
15797 | if (PyErr_Occurred()) SWIG_fail; | |
15798 | } | |
15799 | resultobj = result; | |
15800 | return resultobj; | |
15801 | fail: | |
15802 | return NULL; | |
15803 | } | |
15804 | ||
15805 | ||
15806 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
15807 | PyObject *obj; | |
15808 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15809 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
15810 | Py_INCREF(obj); | |
15811 | return Py_BuildValue((char *)""); | |
15812 | } | |
15813 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15814 | PyObject *resultobj; | |
15815 | wxWindowID arg1 = (wxWindowID) 0 ; | |
15816 | wxUpdateUIEvent *result; | |
15817 | char *kwnames[] = { | |
15818 | (char *) "commandId", NULL | |
15819 | }; | |
15820 | ||
15821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_UpdateUIEvent",kwnames,&arg1)) goto fail; | |
15822 | { | |
15823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15824 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
15825 | ||
15826 | wxPyEndAllowThreads(__tstate); | |
15827 | if (PyErr_Occurred()) SWIG_fail; | |
15828 | } | |
15829 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxUpdateUIEvent, 1); | |
15830 | return resultobj; | |
15831 | fail: | |
15832 | return NULL; | |
15833 | } | |
15834 | ||
15835 | ||
15836 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15837 | PyObject *resultobj; | |
15838 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15839 | bool result; | |
15840 | PyObject * obj0 = 0 ; | |
15841 | char *kwnames[] = { | |
15842 | (char *) "self", NULL | |
15843 | }; | |
15844 | ||
15845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
15846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15847 | { | |
15848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15849 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
15850 | ||
15851 | wxPyEndAllowThreads(__tstate); | |
15852 | if (PyErr_Occurred()) SWIG_fail; | |
15853 | } | |
15854 | resultobj = PyInt_FromLong((long)result); | |
15855 | return resultobj; | |
15856 | fail: | |
15857 | return NULL; | |
15858 | } | |
15859 | ||
15860 | ||
15861 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15862 | PyObject *resultobj; | |
15863 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15864 | bool result; | |
15865 | PyObject * obj0 = 0 ; | |
15866 | char *kwnames[] = { | |
15867 | (char *) "self", NULL | |
15868 | }; | |
15869 | ||
15870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
15871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15872 | { | |
15873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15874 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
15875 | ||
15876 | wxPyEndAllowThreads(__tstate); | |
15877 | if (PyErr_Occurred()) SWIG_fail; | |
15878 | } | |
15879 | resultobj = PyInt_FromLong((long)result); | |
15880 | return resultobj; | |
15881 | fail: | |
15882 | return NULL; | |
15883 | } | |
15884 | ||
15885 | ||
15886 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15887 | PyObject *resultobj; | |
15888 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15889 | wxString result; | |
15890 | PyObject * obj0 = 0 ; | |
15891 | char *kwnames[] = { | |
15892 | (char *) "self", NULL | |
15893 | }; | |
15894 | ||
15895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
15896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15897 | { | |
15898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15899 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
15900 | ||
15901 | wxPyEndAllowThreads(__tstate); | |
15902 | if (PyErr_Occurred()) SWIG_fail; | |
15903 | } | |
15904 | { | |
15905 | #if wxUSE_UNICODE | |
15906 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15907 | #else | |
15908 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15909 | #endif | |
15910 | } | |
15911 | return resultobj; | |
15912 | fail: | |
15913 | return NULL; | |
15914 | } | |
15915 | ||
15916 | ||
15917 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15918 | PyObject *resultobj; | |
15919 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15920 | bool result; | |
15921 | PyObject * obj0 = 0 ; | |
15922 | char *kwnames[] = { | |
15923 | (char *) "self", NULL | |
15924 | }; | |
15925 | ||
15926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
15927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15928 | { | |
15929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15930 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
15931 | ||
15932 | wxPyEndAllowThreads(__tstate); | |
15933 | if (PyErr_Occurred()) SWIG_fail; | |
15934 | } | |
15935 | resultobj = PyInt_FromLong((long)result); | |
15936 | return resultobj; | |
15937 | fail: | |
15938 | return NULL; | |
15939 | } | |
15940 | ||
15941 | ||
15942 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15943 | PyObject *resultobj; | |
15944 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15945 | bool result; | |
15946 | PyObject * obj0 = 0 ; | |
15947 | char *kwnames[] = { | |
15948 | (char *) "self", NULL | |
15949 | }; | |
15950 | ||
15951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
15952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15953 | { | |
15954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15955 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
15956 | ||
15957 | wxPyEndAllowThreads(__tstate); | |
15958 | if (PyErr_Occurred()) SWIG_fail; | |
15959 | } | |
15960 | resultobj = PyInt_FromLong((long)result); | |
15961 | return resultobj; | |
15962 | fail: | |
15963 | return NULL; | |
15964 | } | |
15965 | ||
15966 | ||
15967 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15968 | PyObject *resultobj; | |
15969 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15970 | bool result; | |
15971 | PyObject * obj0 = 0 ; | |
15972 | char *kwnames[] = { | |
15973 | (char *) "self", NULL | |
15974 | }; | |
15975 | ||
15976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
15977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15978 | { | |
15979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15980 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
15981 | ||
15982 | wxPyEndAllowThreads(__tstate); | |
15983 | if (PyErr_Occurred()) SWIG_fail; | |
15984 | } | |
15985 | resultobj = PyInt_FromLong((long)result); | |
15986 | return resultobj; | |
15987 | fail: | |
15988 | return NULL; | |
15989 | } | |
15990 | ||
15991 | ||
15992 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15993 | PyObject *resultobj; | |
15994 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15995 | bool arg2 ; | |
15996 | PyObject * obj0 = 0 ; | |
15997 | PyObject * obj1 = 0 ; | |
15998 | char *kwnames[] = { | |
15999 | (char *) "self",(char *) "check", NULL | |
16000 | }; | |
16001 | ||
16002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
16003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16004 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16005 | if (PyErr_Occurred()) SWIG_fail; | |
16006 | { | |
16007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16008 | (arg1)->Check(arg2); | |
16009 | ||
16010 | wxPyEndAllowThreads(__tstate); | |
16011 | if (PyErr_Occurred()) SWIG_fail; | |
16012 | } | |
16013 | Py_INCREF(Py_None); resultobj = Py_None; | |
16014 | return resultobj; | |
16015 | fail: | |
16016 | return NULL; | |
16017 | } | |
16018 | ||
16019 | ||
16020 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16021 | PyObject *resultobj; | |
16022 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16023 | bool arg2 ; | |
16024 | PyObject * obj0 = 0 ; | |
16025 | PyObject * obj1 = 0 ; | |
16026 | char *kwnames[] = { | |
16027 | (char *) "self",(char *) "enable", NULL | |
16028 | }; | |
16029 | ||
16030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
16031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16032 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16033 | if (PyErr_Occurred()) SWIG_fail; | |
16034 | { | |
16035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16036 | (arg1)->Enable(arg2); | |
16037 | ||
16038 | wxPyEndAllowThreads(__tstate); | |
16039 | if (PyErr_Occurred()) SWIG_fail; | |
16040 | } | |
16041 | Py_INCREF(Py_None); resultobj = Py_None; | |
16042 | return resultobj; | |
16043 | fail: | |
16044 | return NULL; | |
16045 | } | |
16046 | ||
16047 | ||
16048 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16049 | PyObject *resultobj; | |
16050 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16051 | wxString *arg2 = 0 ; | |
16052 | bool temp2 = false ; | |
16053 | PyObject * obj0 = 0 ; | |
16054 | PyObject * obj1 = 0 ; | |
16055 | char *kwnames[] = { | |
16056 | (char *) "self",(char *) "text", NULL | |
16057 | }; | |
16058 | ||
16059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
16060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16061 | { | |
16062 | arg2 = wxString_in_helper(obj1); | |
16063 | if (arg2 == NULL) SWIG_fail; | |
16064 | temp2 = true; | |
16065 | } | |
16066 | { | |
16067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16068 | (arg1)->SetText((wxString const &)*arg2); | |
16069 | ||
16070 | wxPyEndAllowThreads(__tstate); | |
16071 | if (PyErr_Occurred()) SWIG_fail; | |
16072 | } | |
16073 | Py_INCREF(Py_None); resultobj = Py_None; | |
16074 | { | |
16075 | if (temp2) | |
16076 | delete arg2; | |
16077 | } | |
16078 | return resultobj; | |
16079 | fail: | |
16080 | { | |
16081 | if (temp2) | |
16082 | delete arg2; | |
16083 | } | |
16084 | return NULL; | |
16085 | } | |
16086 | ||
16087 | ||
16088 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16089 | PyObject *resultobj; | |
16090 | long arg1 ; | |
16091 | char *kwnames[] = { | |
16092 | (char *) "updateInterval", NULL | |
16093 | }; | |
16094 | ||
16095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:UpdateUIEvent_SetUpdateInterval",kwnames,&arg1)) goto fail; | |
16096 | { | |
16097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16098 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
16099 | ||
16100 | wxPyEndAllowThreads(__tstate); | |
16101 | if (PyErr_Occurred()) SWIG_fail; | |
16102 | } | |
16103 | Py_INCREF(Py_None); resultobj = Py_None; | |
16104 | return resultobj; | |
16105 | fail: | |
16106 | return NULL; | |
16107 | } | |
16108 | ||
16109 | ||
16110 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16111 | PyObject *resultobj; | |
16112 | long result; | |
16113 | char *kwnames[] = { | |
16114 | NULL | |
16115 | }; | |
16116 | ||
16117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
16118 | { | |
16119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16120 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
16121 | ||
16122 | wxPyEndAllowThreads(__tstate); | |
16123 | if (PyErr_Occurred()) SWIG_fail; | |
16124 | } | |
16125 | resultobj = PyInt_FromLong((long)result); | |
16126 | return resultobj; | |
16127 | fail: | |
16128 | return NULL; | |
16129 | } | |
16130 | ||
16131 | ||
16132 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16133 | PyObject *resultobj; | |
16134 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16135 | bool result; | |
16136 | PyObject * obj0 = 0 ; | |
16137 | char *kwnames[] = { | |
16138 | (char *) "win", NULL | |
16139 | }; | |
16140 | ||
16141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
16142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16143 | { | |
16144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16145 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
16146 | ||
16147 | wxPyEndAllowThreads(__tstate); | |
16148 | if (PyErr_Occurred()) SWIG_fail; | |
16149 | } | |
16150 | resultobj = PyInt_FromLong((long)result); | |
16151 | return resultobj; | |
16152 | fail: | |
16153 | return NULL; | |
16154 | } | |
16155 | ||
16156 | ||
16157 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16158 | PyObject *resultobj; | |
16159 | char *kwnames[] = { | |
16160 | NULL | |
16161 | }; | |
16162 | ||
16163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
16164 | { | |
16165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16166 | wxUpdateUIEvent::ResetUpdateTime(); | |
16167 | ||
16168 | wxPyEndAllowThreads(__tstate); | |
16169 | if (PyErr_Occurred()) SWIG_fail; | |
16170 | } | |
16171 | Py_INCREF(Py_None); resultobj = Py_None; | |
16172 | return resultobj; | |
16173 | fail: | |
16174 | return NULL; | |
16175 | } | |
16176 | ||
16177 | ||
16178 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16179 | PyObject *resultobj; | |
16180 | int arg1 ; | |
16181 | char *kwnames[] = { | |
16182 | (char *) "mode", NULL | |
16183 | }; | |
16184 | ||
16185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:UpdateUIEvent_SetMode",kwnames,&arg1)) goto fail; | |
16186 | { | |
16187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16188 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
16189 | ||
16190 | wxPyEndAllowThreads(__tstate); | |
16191 | if (PyErr_Occurred()) SWIG_fail; | |
16192 | } | |
16193 | Py_INCREF(Py_None); resultobj = Py_None; | |
16194 | return resultobj; | |
16195 | fail: | |
16196 | return NULL; | |
16197 | } | |
16198 | ||
16199 | ||
16200 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16201 | PyObject *resultobj; | |
16202 | int result; | |
16203 | char *kwnames[] = { | |
16204 | NULL | |
16205 | }; | |
16206 | ||
16207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
16208 | { | |
16209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16210 | result = (int)wxUpdateUIEvent::GetMode(); | |
16211 | ||
16212 | wxPyEndAllowThreads(__tstate); | |
16213 | if (PyErr_Occurred()) SWIG_fail; | |
16214 | } | |
16215 | resultobj = PyInt_FromLong((long)result); | |
16216 | return resultobj; | |
16217 | fail: | |
16218 | return NULL; | |
16219 | } | |
16220 | ||
16221 | ||
16222 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
16223 | PyObject *obj; | |
16224 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16225 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
16226 | Py_INCREF(obj); | |
16227 | return Py_BuildValue((char *)""); | |
16228 | } | |
16229 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16230 | PyObject *resultobj; | |
16231 | wxSysColourChangedEvent *result; | |
16232 | char *kwnames[] = { | |
16233 | NULL | |
16234 | }; | |
16235 | ||
16236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
16237 | { | |
16238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16239 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
16240 | ||
16241 | wxPyEndAllowThreads(__tstate); | |
16242 | if (PyErr_Occurred()) SWIG_fail; | |
16243 | } | |
16244 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
16245 | return resultobj; | |
16246 | fail: | |
16247 | return NULL; | |
16248 | } | |
16249 | ||
16250 | ||
16251 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16252 | PyObject *obj; | |
16253 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16254 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
16255 | Py_INCREF(obj); | |
16256 | return Py_BuildValue((char *)""); | |
16257 | } | |
16258 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16259 | PyObject *resultobj; | |
16260 | wxWindowID arg1 = (wxWindowID) 0 ; | |
16261 | wxWindow *arg2 = (wxWindow *) NULL ; | |
16262 | wxMouseCaptureChangedEvent *result; | |
16263 | PyObject * obj1 = 0 ; | |
16264 | char *kwnames[] = { | |
16265 | (char *) "winid",(char *) "gainedCapture", NULL | |
16266 | }; | |
16267 | ||
16268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_MouseCaptureChangedEvent",kwnames,&arg1,&obj1)) goto fail; | |
16269 | if (obj1) { | |
16270 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16271 | } | |
16272 | { | |
16273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16274 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
16275 | ||
16276 | wxPyEndAllowThreads(__tstate); | |
16277 | if (PyErr_Occurred()) SWIG_fail; | |
16278 | } | |
16279 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
16280 | return resultobj; | |
16281 | fail: | |
16282 | return NULL; | |
16283 | } | |
16284 | ||
16285 | ||
16286 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16287 | PyObject *resultobj; | |
16288 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
16289 | wxWindow *result; | |
16290 | PyObject * obj0 = 0 ; | |
16291 | char *kwnames[] = { | |
16292 | (char *) "self", NULL | |
16293 | }; | |
16294 | ||
16295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
16296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseCaptureChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16297 | { | |
16298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16299 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
16300 | ||
16301 | wxPyEndAllowThreads(__tstate); | |
16302 | if (PyErr_Occurred()) SWIG_fail; | |
16303 | } | |
16304 | { | |
16305 | resultobj = wxPyMake_wxObject(result); | |
16306 | } | |
16307 | return resultobj; | |
16308 | fail: | |
16309 | return NULL; | |
16310 | } | |
16311 | ||
16312 | ||
16313 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16314 | PyObject *obj; | |
16315 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16316 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
16317 | Py_INCREF(obj); | |
16318 | return Py_BuildValue((char *)""); | |
16319 | } | |
16320 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16321 | PyObject *resultobj; | |
16322 | wxDisplayChangedEvent *result; | |
16323 | char *kwnames[] = { | |
16324 | NULL | |
16325 | }; | |
16326 | ||
16327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
16328 | { | |
16329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16330 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
16331 | ||
16332 | wxPyEndAllowThreads(__tstate); | |
16333 | if (PyErr_Occurred()) SWIG_fail; | |
16334 | } | |
16335 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
16336 | return resultobj; | |
16337 | fail: | |
16338 | return NULL; | |
16339 | } | |
16340 | ||
16341 | ||
16342 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16343 | PyObject *obj; | |
16344 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16345 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
16346 | Py_INCREF(obj); | |
16347 | return Py_BuildValue((char *)""); | |
16348 | } | |
16349 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16350 | PyObject *resultobj; | |
16351 | wxWindowID arg1 = (wxWindowID) 0 ; | |
16352 | wxPaletteChangedEvent *result; | |
16353 | char *kwnames[] = { | |
16354 | (char *) "id", NULL | |
16355 | }; | |
16356 | ||
16357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_PaletteChangedEvent",kwnames,&arg1)) goto fail; | |
16358 | { | |
16359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16360 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
16361 | ||
16362 | wxPyEndAllowThreads(__tstate); | |
16363 | if (PyErr_Occurred()) SWIG_fail; | |
16364 | } | |
16365 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
16366 | return resultobj; | |
16367 | fail: | |
16368 | return NULL; | |
16369 | } | |
16370 | ||
16371 | ||
16372 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16373 | PyObject *resultobj; | |
16374 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
16375 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16376 | PyObject * obj0 = 0 ; | |
16377 | PyObject * obj1 = 0 ; | |
16378 | char *kwnames[] = { | |
16379 | (char *) "self",(char *) "win", NULL | |
16380 | }; | |
16381 | ||
16382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
16383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16384 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16385 | { | |
16386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16387 | (arg1)->SetChangedWindow(arg2); | |
16388 | ||
16389 | wxPyEndAllowThreads(__tstate); | |
16390 | if (PyErr_Occurred()) SWIG_fail; | |
16391 | } | |
16392 | Py_INCREF(Py_None); resultobj = Py_None; | |
16393 | return resultobj; | |
16394 | fail: | |
16395 | return NULL; | |
16396 | } | |
16397 | ||
16398 | ||
16399 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16400 | PyObject *resultobj; | |
16401 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
16402 | wxWindow *result; | |
16403 | PyObject * obj0 = 0 ; | |
16404 | char *kwnames[] = { | |
16405 | (char *) "self", NULL | |
16406 | }; | |
16407 | ||
16408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
16409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16410 | { | |
16411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16412 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
16413 | ||
16414 | wxPyEndAllowThreads(__tstate); | |
16415 | if (PyErr_Occurred()) SWIG_fail; | |
16416 | } | |
16417 | { | |
16418 | resultobj = wxPyMake_wxObject(result); | |
16419 | } | |
16420 | return resultobj; | |
16421 | fail: | |
16422 | return NULL; | |
16423 | } | |
16424 | ||
16425 | ||
16426 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16427 | PyObject *obj; | |
16428 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16429 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
16430 | Py_INCREF(obj); | |
16431 | return Py_BuildValue((char *)""); | |
16432 | } | |
16433 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16434 | PyObject *resultobj; | |
16435 | wxWindowID arg1 = (wxWindowID) 0 ; | |
16436 | wxQueryNewPaletteEvent *result; | |
16437 | char *kwnames[] = { | |
16438 | (char *) "winid", NULL | |
16439 | }; | |
16440 | ||
16441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_QueryNewPaletteEvent",kwnames,&arg1)) goto fail; | |
16442 | { | |
16443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16444 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
16445 | ||
16446 | wxPyEndAllowThreads(__tstate); | |
16447 | if (PyErr_Occurred()) SWIG_fail; | |
16448 | } | |
16449 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
16450 | return resultobj; | |
16451 | fail: | |
16452 | return NULL; | |
16453 | } | |
16454 | ||
16455 | ||
16456 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16457 | PyObject *resultobj; | |
16458 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
16459 | bool arg2 ; | |
16460 | PyObject * obj0 = 0 ; | |
16461 | PyObject * obj1 = 0 ; | |
16462 | char *kwnames[] = { | |
16463 | (char *) "self",(char *) "realized", NULL | |
16464 | }; | |
16465 | ||
16466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
16467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16468 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16469 | if (PyErr_Occurred()) SWIG_fail; | |
16470 | { | |
16471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16472 | (arg1)->SetPaletteRealized(arg2); | |
16473 | ||
16474 | wxPyEndAllowThreads(__tstate); | |
16475 | if (PyErr_Occurred()) SWIG_fail; | |
16476 | } | |
16477 | Py_INCREF(Py_None); resultobj = Py_None; | |
16478 | return resultobj; | |
16479 | fail: | |
16480 | return NULL; | |
16481 | } | |
16482 | ||
16483 | ||
16484 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16485 | PyObject *resultobj; | |
16486 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
16487 | bool result; | |
16488 | PyObject * obj0 = 0 ; | |
16489 | char *kwnames[] = { | |
16490 | (char *) "self", NULL | |
16491 | }; | |
16492 | ||
16493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
16494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16495 | { | |
16496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16497 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
16498 | ||
16499 | wxPyEndAllowThreads(__tstate); | |
16500 | if (PyErr_Occurred()) SWIG_fail; | |
16501 | } | |
16502 | resultobj = PyInt_FromLong((long)result); | |
16503 | return resultobj; | |
16504 | fail: | |
16505 | return NULL; | |
16506 | } | |
16507 | ||
16508 | ||
16509 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
16510 | PyObject *obj; | |
16511 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16512 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
16513 | Py_INCREF(obj); | |
16514 | return Py_BuildValue((char *)""); | |
16515 | } | |
16516 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16517 | PyObject *resultobj; | |
16518 | wxNavigationKeyEvent *result; | |
16519 | char *kwnames[] = { | |
16520 | NULL | |
16521 | }; | |
16522 | ||
16523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
16524 | { | |
16525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16526 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
16527 | ||
16528 | wxPyEndAllowThreads(__tstate); | |
16529 | if (PyErr_Occurred()) SWIG_fail; | |
16530 | } | |
16531 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
16532 | return resultobj; | |
16533 | fail: | |
16534 | return NULL; | |
16535 | } | |
16536 | ||
16537 | ||
16538 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16539 | PyObject *resultobj; | |
16540 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16541 | bool result; | |
16542 | PyObject * obj0 = 0 ; | |
16543 | char *kwnames[] = { | |
16544 | (char *) "self", NULL | |
16545 | }; | |
16546 | ||
16547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
16548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16549 | { | |
16550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16551 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
16552 | ||
16553 | wxPyEndAllowThreads(__tstate); | |
16554 | if (PyErr_Occurred()) SWIG_fail; | |
16555 | } | |
16556 | resultobj = PyInt_FromLong((long)result); | |
16557 | return resultobj; | |
16558 | fail: | |
16559 | return NULL; | |
16560 | } | |
16561 | ||
16562 | ||
16563 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16564 | PyObject *resultobj; | |
16565 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16566 | bool arg2 ; | |
16567 | PyObject * obj0 = 0 ; | |
16568 | PyObject * obj1 = 0 ; | |
16569 | char *kwnames[] = { | |
16570 | (char *) "self",(char *) "bForward", NULL | |
16571 | }; | |
16572 | ||
16573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
16574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16575 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16576 | if (PyErr_Occurred()) SWIG_fail; | |
16577 | { | |
16578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16579 | (arg1)->SetDirection(arg2); | |
16580 | ||
16581 | wxPyEndAllowThreads(__tstate); | |
16582 | if (PyErr_Occurred()) SWIG_fail; | |
16583 | } | |
16584 | Py_INCREF(Py_None); resultobj = Py_None; | |
16585 | return resultobj; | |
16586 | fail: | |
16587 | return NULL; | |
16588 | } | |
16589 | ||
16590 | ||
16591 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16592 | PyObject *resultobj; | |
16593 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16594 | bool result; | |
16595 | PyObject * obj0 = 0 ; | |
16596 | char *kwnames[] = { | |
16597 | (char *) "self", NULL | |
16598 | }; | |
16599 | ||
16600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
16601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16602 | { | |
16603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16604 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
16605 | ||
16606 | wxPyEndAllowThreads(__tstate); | |
16607 | if (PyErr_Occurred()) SWIG_fail; | |
16608 | } | |
16609 | resultobj = PyInt_FromLong((long)result); | |
16610 | return resultobj; | |
16611 | fail: | |
16612 | return NULL; | |
16613 | } | |
16614 | ||
16615 | ||
16616 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16617 | PyObject *resultobj; | |
16618 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16619 | bool arg2 ; | |
16620 | PyObject * obj0 = 0 ; | |
16621 | PyObject * obj1 = 0 ; | |
16622 | char *kwnames[] = { | |
16623 | (char *) "self",(char *) "bIs", NULL | |
16624 | }; | |
16625 | ||
16626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
16627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16628 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16629 | if (PyErr_Occurred()) SWIG_fail; | |
16630 | { | |
16631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16632 | (arg1)->SetWindowChange(arg2); | |
16633 | ||
16634 | wxPyEndAllowThreads(__tstate); | |
16635 | if (PyErr_Occurred()) SWIG_fail; | |
16636 | } | |
16637 | Py_INCREF(Py_None); resultobj = Py_None; | |
16638 | return resultobj; | |
16639 | fail: | |
16640 | return NULL; | |
16641 | } | |
16642 | ||
16643 | ||
16644 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16645 | PyObject *resultobj; | |
16646 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16647 | wxWindow *result; | |
16648 | PyObject * obj0 = 0 ; | |
16649 | char *kwnames[] = { | |
16650 | (char *) "self", NULL | |
16651 | }; | |
16652 | ||
16653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
16654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16655 | { | |
16656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16657 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
16658 | ||
16659 | wxPyEndAllowThreads(__tstate); | |
16660 | if (PyErr_Occurred()) SWIG_fail; | |
16661 | } | |
16662 | { | |
16663 | resultobj = wxPyMake_wxObject(result); | |
16664 | } | |
16665 | return resultobj; | |
16666 | fail: | |
16667 | return NULL; | |
16668 | } | |
16669 | ||
16670 | ||
16671 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16672 | PyObject *resultobj; | |
16673 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16674 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16675 | PyObject * obj0 = 0 ; | |
16676 | PyObject * obj1 = 0 ; | |
16677 | char *kwnames[] = { | |
16678 | (char *) "self",(char *) "win", NULL | |
16679 | }; | |
16680 | ||
16681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
16682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16683 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16684 | { | |
16685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16686 | (arg1)->SetCurrentFocus(arg2); | |
16687 | ||
16688 | wxPyEndAllowThreads(__tstate); | |
16689 | if (PyErr_Occurred()) SWIG_fail; | |
16690 | } | |
16691 | Py_INCREF(Py_None); resultobj = Py_None; | |
16692 | return resultobj; | |
16693 | fail: | |
16694 | return NULL; | |
16695 | } | |
16696 | ||
16697 | ||
16698 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
16699 | PyObject *obj; | |
16700 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16701 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
16702 | Py_INCREF(obj); | |
16703 | return Py_BuildValue((char *)""); | |
16704 | } | |
16705 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16706 | PyObject *resultobj; | |
16707 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16708 | wxWindowCreateEvent *result; | |
16709 | PyObject * obj0 = 0 ; | |
16710 | char *kwnames[] = { | |
16711 | (char *) "win", NULL | |
16712 | }; | |
16713 | ||
16714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
16715 | if (obj0) { | |
16716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16717 | } | |
16718 | { | |
16719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16720 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
16721 | ||
16722 | wxPyEndAllowThreads(__tstate); | |
16723 | if (PyErr_Occurred()) SWIG_fail; | |
16724 | } | |
16725 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowCreateEvent, 1); | |
16726 | return resultobj; | |
16727 | fail: | |
16728 | return NULL; | |
16729 | } | |
16730 | ||
16731 | ||
16732 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16733 | PyObject *resultobj; | |
16734 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
16735 | wxWindow *result; | |
16736 | PyObject * obj0 = 0 ; | |
16737 | char *kwnames[] = { | |
16738 | (char *) "self", NULL | |
16739 | }; | |
16740 | ||
16741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowCreateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16743 | { | |
16744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16745 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
16746 | ||
16747 | wxPyEndAllowThreads(__tstate); | |
16748 | if (PyErr_Occurred()) SWIG_fail; | |
16749 | } | |
16750 | { | |
16751 | resultobj = wxPyMake_wxObject(result); | |
16752 | } | |
16753 | return resultobj; | |
16754 | fail: | |
16755 | return NULL; | |
16756 | } | |
16757 | ||
16758 | ||
16759 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
16760 | PyObject *obj; | |
16761 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16762 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
16763 | Py_INCREF(obj); | |
16764 | return Py_BuildValue((char *)""); | |
16765 | } | |
16766 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16767 | PyObject *resultobj; | |
16768 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16769 | wxWindowDestroyEvent *result; | |
16770 | PyObject * obj0 = 0 ; | |
16771 | char *kwnames[] = { | |
16772 | (char *) "win", NULL | |
16773 | }; | |
16774 | ||
16775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
16776 | if (obj0) { | |
16777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16778 | } | |
16779 | { | |
16780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16781 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
16782 | ||
16783 | wxPyEndAllowThreads(__tstate); | |
16784 | if (PyErr_Occurred()) SWIG_fail; | |
16785 | } | |
16786 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
16787 | return resultobj; | |
16788 | fail: | |
16789 | return NULL; | |
16790 | } | |
16791 | ||
16792 | ||
16793 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16794 | PyObject *resultobj; | |
16795 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
16796 | wxWindow *result; | |
16797 | PyObject * obj0 = 0 ; | |
16798 | char *kwnames[] = { | |
16799 | (char *) "self", NULL | |
16800 | }; | |
16801 | ||
16802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDestroyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16804 | { | |
16805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16806 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
16807 | ||
16808 | wxPyEndAllowThreads(__tstate); | |
16809 | if (PyErr_Occurred()) SWIG_fail; | |
16810 | } | |
16811 | { | |
16812 | resultobj = wxPyMake_wxObject(result); | |
16813 | } | |
16814 | return resultobj; | |
16815 | fail: | |
16816 | return NULL; | |
16817 | } | |
16818 | ||
16819 | ||
16820 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
16821 | PyObject *obj; | |
16822 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16823 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
16824 | Py_INCREF(obj); | |
16825 | return Py_BuildValue((char *)""); | |
16826 | } | |
16827 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16828 | PyObject *resultobj; | |
16829 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16830 | wxWindowID arg2 = (wxWindowID) 0 ; | |
16831 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
16832 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16833 | wxContextMenuEvent *result; | |
16834 | wxPoint temp3 ; | |
16835 | PyObject * obj2 = 0 ; | |
16836 | char *kwnames[] = { | |
16837 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
16838 | }; | |
16839 | ||
16840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_ContextMenuEvent",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
16841 | if (obj2) { | |
16842 | { | |
16843 | arg3 = &temp3; | |
16844 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16845 | } | |
16846 | } | |
16847 | { | |
16848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16849 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
16850 | ||
16851 | wxPyEndAllowThreads(__tstate); | |
16852 | if (PyErr_Occurred()) SWIG_fail; | |
16853 | } | |
16854 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextMenuEvent, 1); | |
16855 | return resultobj; | |
16856 | fail: | |
16857 | return NULL; | |
16858 | } | |
16859 | ||
16860 | ||
16861 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16862 | PyObject *resultobj; | |
16863 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
16864 | wxPoint *result; | |
16865 | PyObject * obj0 = 0 ; | |
16866 | char *kwnames[] = { | |
16867 | (char *) "self", NULL | |
16868 | }; | |
16869 | ||
16870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16872 | { | |
16873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16874 | { | |
16875 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
16876 | result = (wxPoint *) &_result_ref; | |
16877 | } | |
16878 | ||
16879 | wxPyEndAllowThreads(__tstate); | |
16880 | if (PyErr_Occurred()) SWIG_fail; | |
16881 | } | |
16882 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
16883 | return resultobj; | |
16884 | fail: | |
16885 | return NULL; | |
16886 | } | |
16887 | ||
16888 | ||
16889 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16890 | PyObject *resultobj; | |
16891 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
16892 | wxPoint *arg2 = 0 ; | |
16893 | wxPoint temp2 ; | |
16894 | PyObject * obj0 = 0 ; | |
16895 | PyObject * obj1 = 0 ; | |
16896 | char *kwnames[] = { | |
16897 | (char *) "self",(char *) "pos", NULL | |
16898 | }; | |
16899 | ||
16900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
16901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16902 | { | |
16903 | arg2 = &temp2; | |
16904 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16905 | } | |
16906 | { | |
16907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16908 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
16909 | ||
16910 | wxPyEndAllowThreads(__tstate); | |
16911 | if (PyErr_Occurred()) SWIG_fail; | |
16912 | } | |
16913 | Py_INCREF(Py_None); resultobj = Py_None; | |
16914 | return resultobj; | |
16915 | fail: | |
16916 | return NULL; | |
16917 | } | |
16918 | ||
16919 | ||
16920 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
16921 | PyObject *obj; | |
16922 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16923 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
16924 | Py_INCREF(obj); | |
16925 | return Py_BuildValue((char *)""); | |
16926 | } | |
16927 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16928 | PyObject *resultobj; | |
16929 | wxIdleEvent *result; | |
16930 | char *kwnames[] = { | |
16931 | NULL | |
16932 | }; | |
16933 | ||
16934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
16935 | { | |
16936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16937 | result = (wxIdleEvent *)new wxIdleEvent(); | |
16938 | ||
16939 | wxPyEndAllowThreads(__tstate); | |
16940 | if (PyErr_Occurred()) SWIG_fail; | |
16941 | } | |
16942 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIdleEvent, 1); | |
16943 | return resultobj; | |
16944 | fail: | |
16945 | return NULL; | |
16946 | } | |
16947 | ||
16948 | ||
16949 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16950 | PyObject *resultobj; | |
16951 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
16952 | bool arg2 = (bool) TRUE ; | |
16953 | PyObject * obj0 = 0 ; | |
16954 | PyObject * obj1 = 0 ; | |
16955 | char *kwnames[] = { | |
16956 | (char *) "self",(char *) "needMore", NULL | |
16957 | }; | |
16958 | ||
16959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
16960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16961 | if (obj1) { | |
16962 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16963 | if (PyErr_Occurred()) SWIG_fail; | |
16964 | } | |
16965 | { | |
16966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16967 | (arg1)->RequestMore(arg2); | |
16968 | ||
16969 | wxPyEndAllowThreads(__tstate); | |
16970 | if (PyErr_Occurred()) SWIG_fail; | |
16971 | } | |
16972 | Py_INCREF(Py_None); resultobj = Py_None; | |
16973 | return resultobj; | |
16974 | fail: | |
16975 | return NULL; | |
16976 | } | |
16977 | ||
16978 | ||
16979 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16980 | PyObject *resultobj; | |
16981 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
16982 | bool result; | |
16983 | PyObject * obj0 = 0 ; | |
16984 | char *kwnames[] = { | |
16985 | (char *) "self", NULL | |
16986 | }; | |
16987 | ||
16988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
16989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16990 | { | |
16991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16992 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
16993 | ||
16994 | wxPyEndAllowThreads(__tstate); | |
16995 | if (PyErr_Occurred()) SWIG_fail; | |
16996 | } | |
16997 | resultobj = PyInt_FromLong((long)result); | |
16998 | return resultobj; | |
16999 | fail: | |
17000 | return NULL; | |
17001 | } | |
17002 | ||
17003 | ||
17004 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17005 | PyObject *resultobj; | |
17006 | int arg1 ; | |
17007 | char *kwnames[] = { | |
17008 | (char *) "mode", NULL | |
17009 | }; | |
17010 | ||
17011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:IdleEvent_SetMode",kwnames,&arg1)) goto fail; | |
17012 | { | |
17013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17014 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
17015 | ||
17016 | wxPyEndAllowThreads(__tstate); | |
17017 | if (PyErr_Occurred()) SWIG_fail; | |
17018 | } | |
17019 | Py_INCREF(Py_None); resultobj = Py_None; | |
17020 | return resultobj; | |
17021 | fail: | |
17022 | return NULL; | |
17023 | } | |
17024 | ||
17025 | ||
17026 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17027 | PyObject *resultobj; | |
17028 | int result; | |
17029 | char *kwnames[] = { | |
17030 | NULL | |
17031 | }; | |
17032 | ||
17033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
17034 | { | |
17035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17036 | result = (int)wxIdleEvent::GetMode(); | |
17037 | ||
17038 | wxPyEndAllowThreads(__tstate); | |
17039 | if (PyErr_Occurred()) SWIG_fail; | |
17040 | } | |
17041 | resultobj = PyInt_FromLong((long)result); | |
17042 | return resultobj; | |
17043 | fail: | |
17044 | return NULL; | |
17045 | } | |
17046 | ||
17047 | ||
17048 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17049 | PyObject *resultobj; | |
17050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17051 | bool result; | |
17052 | PyObject * obj0 = 0 ; | |
17053 | char *kwnames[] = { | |
17054 | (char *) "win", NULL | |
17055 | }; | |
17056 | ||
17057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
17058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17059 | { | |
17060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17061 | result = (bool)wxIdleEvent::CanSend(arg1); | |
17062 | ||
17063 | wxPyEndAllowThreads(__tstate); | |
17064 | if (PyErr_Occurred()) SWIG_fail; | |
17065 | } | |
17066 | resultobj = PyInt_FromLong((long)result); | |
17067 | return resultobj; | |
17068 | fail: | |
17069 | return NULL; | |
17070 | } | |
17071 | ||
17072 | ||
17073 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
17074 | PyObject *obj; | |
17075 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17076 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
17077 | Py_INCREF(obj); | |
17078 | return Py_BuildValue((char *)""); | |
17079 | } | |
17080 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17081 | PyObject *resultobj; | |
17082 | int arg1 = (int) 0 ; | |
17083 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
17084 | wxPyEvent *result; | |
17085 | char *kwnames[] = { | |
17086 | (char *) "winid",(char *) "commandType", NULL | |
17087 | }; | |
17088 | ||
17089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_PyEvent",kwnames,&arg1,&arg2)) goto fail; | |
17090 | { | |
17091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17092 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
17093 | ||
17094 | wxPyEndAllowThreads(__tstate); | |
17095 | if (PyErr_Occurred()) SWIG_fail; | |
17096 | } | |
17097 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyEvent, 1); | |
17098 | return resultobj; | |
17099 | fail: | |
17100 | return NULL; | |
17101 | } | |
17102 | ||
17103 | ||
17104 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17105 | PyObject *resultobj; | |
17106 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
17107 | PyObject * obj0 = 0 ; | |
17108 | char *kwnames[] = { | |
17109 | (char *) "self", NULL | |
17110 | }; | |
17111 | ||
17112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
17113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17114 | { | |
17115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17116 | delete arg1; | |
17117 | ||
17118 | wxPyEndAllowThreads(__tstate); | |
17119 | if (PyErr_Occurred()) SWIG_fail; | |
17120 | } | |
17121 | Py_INCREF(Py_None); resultobj = Py_None; | |
17122 | return resultobj; | |
17123 | fail: | |
17124 | return NULL; | |
17125 | } | |
17126 | ||
17127 | ||
17128 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17129 | PyObject *resultobj; | |
17130 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
17131 | PyObject *arg2 = (PyObject *) 0 ; | |
17132 | PyObject * obj0 = 0 ; | |
17133 | PyObject * obj1 = 0 ; | |
17134 | char *kwnames[] = { | |
17135 | (char *) "self",(char *) "self", NULL | |
17136 | }; | |
17137 | ||
17138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
17139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17140 | arg2 = obj1; | |
17141 | { | |
17142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17143 | (arg1)->SetSelf(arg2); | |
17144 | ||
17145 | wxPyEndAllowThreads(__tstate); | |
17146 | if (PyErr_Occurred()) SWIG_fail; | |
17147 | } | |
17148 | Py_INCREF(Py_None); resultobj = Py_None; | |
17149 | return resultobj; | |
17150 | fail: | |
17151 | return NULL; | |
17152 | } | |
17153 | ||
17154 | ||
17155 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17156 | PyObject *resultobj; | |
17157 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
17158 | PyObject *result; | |
17159 | PyObject * obj0 = 0 ; | |
17160 | char *kwnames[] = { | |
17161 | (char *) "self", NULL | |
17162 | }; | |
17163 | ||
17164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
17165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17166 | { | |
17167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17168 | result = (PyObject *)(arg1)->GetSelf(); | |
17169 | ||
17170 | wxPyEndAllowThreads(__tstate); | |
17171 | if (PyErr_Occurred()) SWIG_fail; | |
17172 | } | |
17173 | resultobj = result; | |
17174 | return resultobj; | |
17175 | fail: | |
17176 | return NULL; | |
17177 | } | |
17178 | ||
17179 | ||
17180 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
17181 | PyObject *obj; | |
17182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17183 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
17184 | Py_INCREF(obj); | |
17185 | return Py_BuildValue((char *)""); | |
17186 | } | |
17187 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17188 | PyObject *resultobj; | |
17189 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17190 | int arg2 = (int) 0 ; | |
17191 | wxPyCommandEvent *result; | |
17192 | char *kwnames[] = { | |
17193 | (char *) "commandType",(char *) "id", NULL | |
17194 | }; | |
17195 | ||
17196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_PyCommandEvent",kwnames,&arg1,&arg2)) goto fail; | |
17197 | { | |
17198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17199 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
17200 | ||
17201 | wxPyEndAllowThreads(__tstate); | |
17202 | if (PyErr_Occurred()) SWIG_fail; | |
17203 | } | |
17204 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyCommandEvent, 1); | |
17205 | return resultobj; | |
17206 | fail: | |
17207 | return NULL; | |
17208 | } | |
17209 | ||
17210 | ||
17211 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17212 | PyObject *resultobj; | |
17213 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
17214 | PyObject * obj0 = 0 ; | |
17215 | char *kwnames[] = { | |
17216 | (char *) "self", NULL | |
17217 | }; | |
17218 | ||
17219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
17220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17221 | { | |
17222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17223 | delete arg1; | |
17224 | ||
17225 | wxPyEndAllowThreads(__tstate); | |
17226 | if (PyErr_Occurred()) SWIG_fail; | |
17227 | } | |
17228 | Py_INCREF(Py_None); resultobj = Py_None; | |
17229 | return resultobj; | |
17230 | fail: | |
17231 | return NULL; | |
17232 | } | |
17233 | ||
17234 | ||
17235 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17236 | PyObject *resultobj; | |
17237 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
17238 | PyObject *arg2 = (PyObject *) 0 ; | |
17239 | PyObject * obj0 = 0 ; | |
17240 | PyObject * obj1 = 0 ; | |
17241 | char *kwnames[] = { | |
17242 | (char *) "self",(char *) "self", NULL | |
17243 | }; | |
17244 | ||
17245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
17246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17247 | arg2 = obj1; | |
17248 | { | |
17249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17250 | (arg1)->SetSelf(arg2); | |
17251 | ||
17252 | wxPyEndAllowThreads(__tstate); | |
17253 | if (PyErr_Occurred()) SWIG_fail; | |
17254 | } | |
17255 | Py_INCREF(Py_None); resultobj = Py_None; | |
17256 | return resultobj; | |
17257 | fail: | |
17258 | return NULL; | |
17259 | } | |
17260 | ||
17261 | ||
17262 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17263 | PyObject *resultobj; | |
17264 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
17265 | PyObject *result; | |
17266 | PyObject * obj0 = 0 ; | |
17267 | char *kwnames[] = { | |
17268 | (char *) "self", NULL | |
17269 | }; | |
17270 | ||
17271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
17272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17273 | { | |
17274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17275 | result = (PyObject *)(arg1)->GetSelf(); | |
17276 | ||
17277 | wxPyEndAllowThreads(__tstate); | |
17278 | if (PyErr_Occurred()) SWIG_fail; | |
17279 | } | |
17280 | resultobj = result; | |
17281 | return resultobj; | |
17282 | fail: | |
17283 | return NULL; | |
17284 | } | |
17285 | ||
17286 | ||
17287 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
17288 | PyObject *obj; | |
17289 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17290 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
17291 | Py_INCREF(obj); | |
17292 | return Py_BuildValue((char *)""); | |
17293 | } | |
17294 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17295 | PyObject *resultobj; | |
17296 | wxPyApp *result; | |
17297 | char *kwnames[] = { | |
17298 | NULL | |
17299 | }; | |
17300 | ||
17301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
17302 | { | |
17303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17304 | result = (wxPyApp *)new_wxPyApp(); | |
17305 | ||
17306 | wxPyEndAllowThreads(__tstate); | |
17307 | if (PyErr_Occurred()) SWIG_fail; | |
17308 | } | |
17309 | { | |
17310 | resultobj = wxPyMake_wxObject(result); | |
17311 | } | |
17312 | return resultobj; | |
17313 | fail: | |
17314 | return NULL; | |
17315 | } | |
17316 | ||
17317 | ||
17318 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17319 | PyObject *resultobj; | |
17320 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17321 | PyObject * obj0 = 0 ; | |
17322 | char *kwnames[] = { | |
17323 | (char *) "self", NULL | |
17324 | }; | |
17325 | ||
17326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
17327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17328 | { | |
17329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17330 | delete arg1; | |
17331 | ||
17332 | wxPyEndAllowThreads(__tstate); | |
17333 | if (PyErr_Occurred()) SWIG_fail; | |
17334 | } | |
17335 | Py_INCREF(Py_None); resultobj = Py_None; | |
17336 | return resultobj; | |
17337 | fail: | |
17338 | return NULL; | |
17339 | } | |
17340 | ||
17341 | ||
17342 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17343 | PyObject *resultobj; | |
17344 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17345 | PyObject *arg2 = (PyObject *) 0 ; | |
17346 | PyObject *arg3 = (PyObject *) 0 ; | |
17347 | PyObject * obj0 = 0 ; | |
17348 | PyObject * obj1 = 0 ; | |
17349 | PyObject * obj2 = 0 ; | |
17350 | char *kwnames[] = { | |
17351 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17352 | }; | |
17353 | ||
17354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17356 | arg2 = obj1; | |
17357 | arg3 = obj2; | |
17358 | { | |
17359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17360 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17361 | ||
17362 | wxPyEndAllowThreads(__tstate); | |
17363 | if (PyErr_Occurred()) SWIG_fail; | |
17364 | } | |
17365 | Py_INCREF(Py_None); resultobj = Py_None; | |
17366 | return resultobj; | |
17367 | fail: | |
17368 | return NULL; | |
17369 | } | |
17370 | ||
17371 | ||
17372 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17373 | PyObject *resultobj; | |
17374 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17375 | wxString result; | |
17376 | PyObject * obj0 = 0 ; | |
17377 | char *kwnames[] = { | |
17378 | (char *) "self", NULL | |
17379 | }; | |
17380 | ||
17381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
17382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17383 | { | |
17384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17385 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
17386 | ||
17387 | wxPyEndAllowThreads(__tstate); | |
17388 | if (PyErr_Occurred()) SWIG_fail; | |
17389 | } | |
17390 | { | |
17391 | #if wxUSE_UNICODE | |
17392 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17393 | #else | |
17394 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17395 | #endif | |
17396 | } | |
17397 | return resultobj; | |
17398 | fail: | |
17399 | return NULL; | |
17400 | } | |
17401 | ||
17402 | ||
17403 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17404 | PyObject *resultobj; | |
17405 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17406 | wxString *arg2 = 0 ; | |
17407 | bool temp2 = false ; | |
17408 | PyObject * obj0 = 0 ; | |
17409 | PyObject * obj1 = 0 ; | |
17410 | char *kwnames[] = { | |
17411 | (char *) "self",(char *) "name", NULL | |
17412 | }; | |
17413 | ||
17414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
17415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17416 | { | |
17417 | arg2 = wxString_in_helper(obj1); | |
17418 | if (arg2 == NULL) SWIG_fail; | |
17419 | temp2 = true; | |
17420 | } | |
17421 | { | |
17422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17423 | (arg1)->SetAppName((wxString const &)*arg2); | |
17424 | ||
17425 | wxPyEndAllowThreads(__tstate); | |
17426 | if (PyErr_Occurred()) SWIG_fail; | |
17427 | } | |
17428 | Py_INCREF(Py_None); resultobj = Py_None; | |
17429 | { | |
17430 | if (temp2) | |
17431 | delete arg2; | |
17432 | } | |
17433 | return resultobj; | |
17434 | fail: | |
17435 | { | |
17436 | if (temp2) | |
17437 | delete arg2; | |
17438 | } | |
17439 | return NULL; | |
17440 | } | |
17441 | ||
17442 | ||
17443 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17444 | PyObject *resultobj; | |
17445 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17446 | wxString result; | |
17447 | PyObject * obj0 = 0 ; | |
17448 | char *kwnames[] = { | |
17449 | (char *) "self", NULL | |
17450 | }; | |
17451 | ||
17452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
17453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17454 | { | |
17455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17456 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
17457 | ||
17458 | wxPyEndAllowThreads(__tstate); | |
17459 | if (PyErr_Occurred()) SWIG_fail; | |
17460 | } | |
17461 | { | |
17462 | #if wxUSE_UNICODE | |
17463 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17464 | #else | |
17465 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17466 | #endif | |
17467 | } | |
17468 | return resultobj; | |
17469 | fail: | |
17470 | return NULL; | |
17471 | } | |
17472 | ||
17473 | ||
17474 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17475 | PyObject *resultobj; | |
17476 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17477 | wxString *arg2 = 0 ; | |
17478 | bool temp2 = false ; | |
17479 | PyObject * obj0 = 0 ; | |
17480 | PyObject * obj1 = 0 ; | |
17481 | char *kwnames[] = { | |
17482 | (char *) "self",(char *) "name", NULL | |
17483 | }; | |
17484 | ||
17485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
17486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17487 | { | |
17488 | arg2 = wxString_in_helper(obj1); | |
17489 | if (arg2 == NULL) SWIG_fail; | |
17490 | temp2 = true; | |
17491 | } | |
17492 | { | |
17493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17494 | (arg1)->SetClassName((wxString const &)*arg2); | |
17495 | ||
17496 | wxPyEndAllowThreads(__tstate); | |
17497 | if (PyErr_Occurred()) SWIG_fail; | |
17498 | } | |
17499 | Py_INCREF(Py_None); resultobj = Py_None; | |
17500 | { | |
17501 | if (temp2) | |
17502 | delete arg2; | |
17503 | } | |
17504 | return resultobj; | |
17505 | fail: | |
17506 | { | |
17507 | if (temp2) | |
17508 | delete arg2; | |
17509 | } | |
17510 | return NULL; | |
17511 | } | |
17512 | ||
17513 | ||
17514 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17515 | PyObject *resultobj; | |
17516 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17517 | wxString *result; | |
17518 | PyObject * obj0 = 0 ; | |
17519 | char *kwnames[] = { | |
17520 | (char *) "self", NULL | |
17521 | }; | |
17522 | ||
17523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
17524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17525 | { | |
17526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17527 | { | |
17528 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
17529 | result = (wxString *) &_result_ref; | |
17530 | } | |
17531 | ||
17532 | wxPyEndAllowThreads(__tstate); | |
17533 | if (PyErr_Occurred()) SWIG_fail; | |
17534 | } | |
17535 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
17536 | return resultobj; | |
17537 | fail: | |
17538 | return NULL; | |
17539 | } | |
17540 | ||
17541 | ||
17542 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17543 | PyObject *resultobj; | |
17544 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17545 | wxString *arg2 = 0 ; | |
17546 | bool temp2 = false ; | |
17547 | PyObject * obj0 = 0 ; | |
17548 | PyObject * obj1 = 0 ; | |
17549 | char *kwnames[] = { | |
17550 | (char *) "self",(char *) "name", NULL | |
17551 | }; | |
17552 | ||
17553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
17554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17555 | { | |
17556 | arg2 = wxString_in_helper(obj1); | |
17557 | if (arg2 == NULL) SWIG_fail; | |
17558 | temp2 = true; | |
17559 | } | |
17560 | { | |
17561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17562 | (arg1)->SetVendorName((wxString const &)*arg2); | |
17563 | ||
17564 | wxPyEndAllowThreads(__tstate); | |
17565 | if (PyErr_Occurred()) SWIG_fail; | |
17566 | } | |
17567 | Py_INCREF(Py_None); resultobj = Py_None; | |
17568 | { | |
17569 | if (temp2) | |
17570 | delete arg2; | |
17571 | } | |
17572 | return resultobj; | |
17573 | fail: | |
17574 | { | |
17575 | if (temp2) | |
17576 | delete arg2; | |
17577 | } | |
17578 | return NULL; | |
17579 | } | |
17580 | ||
17581 | ||
17582 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17583 | PyObject *resultobj; | |
17584 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17585 | wxAppTraits *result; | |
17586 | PyObject * obj0 = 0 ; | |
17587 | char *kwnames[] = { | |
17588 | (char *) "self", NULL | |
17589 | }; | |
17590 | ||
17591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
17592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17593 | { | |
17594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17595 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
17596 | ||
17597 | wxPyEndAllowThreads(__tstate); | |
17598 | if (PyErr_Occurred()) SWIG_fail; | |
17599 | } | |
17600 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAppTraits, 0); | |
17601 | return resultobj; | |
17602 | fail: | |
17603 | return NULL; | |
17604 | } | |
17605 | ||
17606 | ||
17607 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17608 | PyObject *resultobj; | |
17609 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17610 | PyObject * obj0 = 0 ; | |
17611 | char *kwnames[] = { | |
17612 | (char *) "self", NULL | |
17613 | }; | |
17614 | ||
17615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
17616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17617 | { | |
17618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17619 | (arg1)->ProcessPendingEvents(); | |
17620 | ||
17621 | wxPyEndAllowThreads(__tstate); | |
17622 | if (PyErr_Occurred()) SWIG_fail; | |
17623 | } | |
17624 | Py_INCREF(Py_None); resultobj = Py_None; | |
17625 | return resultobj; | |
17626 | fail: | |
17627 | return NULL; | |
17628 | } | |
17629 | ||
17630 | ||
17631 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17632 | PyObject *resultobj; | |
17633 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17634 | bool arg2 = (bool) false ; | |
17635 | bool result; | |
17636 | PyObject * obj0 = 0 ; | |
17637 | PyObject * obj1 = 0 ; | |
17638 | char *kwnames[] = { | |
17639 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
17640 | }; | |
17641 | ||
17642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
17643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17644 | if (obj1) { | |
17645 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17646 | if (PyErr_Occurred()) SWIG_fail; | |
17647 | } | |
17648 | { | |
17649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17650 | result = (bool)(arg1)->Yield(arg2); | |
17651 | ||
17652 | wxPyEndAllowThreads(__tstate); | |
17653 | if (PyErr_Occurred()) SWIG_fail; | |
17654 | } | |
17655 | resultobj = PyInt_FromLong((long)result); | |
17656 | return resultobj; | |
17657 | fail: | |
17658 | return NULL; | |
17659 | } | |
17660 | ||
17661 | ||
17662 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17663 | PyObject *resultobj; | |
17664 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17665 | PyObject * obj0 = 0 ; | |
17666 | char *kwnames[] = { | |
17667 | (char *) "self", NULL | |
17668 | }; | |
17669 | ||
17670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
17671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17672 | { | |
17673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17674 | (arg1)->WakeUpIdle(); | |
17675 | ||
17676 | wxPyEndAllowThreads(__tstate); | |
17677 | if (PyErr_Occurred()) SWIG_fail; | |
17678 | } | |
17679 | Py_INCREF(Py_None); resultobj = Py_None; | |
17680 | return resultobj; | |
17681 | fail: | |
17682 | return NULL; | |
17683 | } | |
17684 | ||
17685 | ||
17686 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17687 | PyObject *resultobj; | |
17688 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17689 | int result; | |
17690 | PyObject * obj0 = 0 ; | |
17691 | char *kwnames[] = { | |
17692 | (char *) "self", NULL | |
17693 | }; | |
17694 | ||
17695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
17696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17697 | { | |
17698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17699 | result = (int)(arg1)->MainLoop(); | |
17700 | ||
17701 | wxPyEndAllowThreads(__tstate); | |
17702 | if (PyErr_Occurred()) SWIG_fail; | |
17703 | } | |
17704 | resultobj = PyInt_FromLong((long)result); | |
17705 | return resultobj; | |
17706 | fail: | |
17707 | return NULL; | |
17708 | } | |
17709 | ||
17710 | ||
17711 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17712 | PyObject *resultobj; | |
17713 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17714 | PyObject * obj0 = 0 ; | |
17715 | char *kwnames[] = { | |
17716 | (char *) "self", NULL | |
17717 | }; | |
17718 | ||
17719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
17720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17721 | { | |
17722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17723 | (arg1)->Exit(); | |
17724 | ||
17725 | wxPyEndAllowThreads(__tstate); | |
17726 | if (PyErr_Occurred()) SWIG_fail; | |
17727 | } | |
17728 | Py_INCREF(Py_None); resultobj = Py_None; | |
17729 | return resultobj; | |
17730 | fail: | |
17731 | return NULL; | |
17732 | } | |
17733 | ||
17734 | ||
17735 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17736 | PyObject *resultobj; | |
17737 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17738 | PyObject * obj0 = 0 ; | |
17739 | char *kwnames[] = { | |
17740 | (char *) "self", NULL | |
17741 | }; | |
17742 | ||
17743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
17744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17745 | { | |
17746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17747 | (arg1)->ExitMainLoop(); | |
17748 | ||
17749 | wxPyEndAllowThreads(__tstate); | |
17750 | if (PyErr_Occurred()) SWIG_fail; | |
17751 | } | |
17752 | Py_INCREF(Py_None); resultobj = Py_None; | |
17753 | return resultobj; | |
17754 | fail: | |
17755 | return NULL; | |
17756 | } | |
17757 | ||
17758 | ||
17759 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17760 | PyObject *resultobj; | |
17761 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17762 | bool result; | |
17763 | PyObject * obj0 = 0 ; | |
17764 | char *kwnames[] = { | |
17765 | (char *) "self", NULL | |
17766 | }; | |
17767 | ||
17768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
17769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17770 | { | |
17771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17772 | result = (bool)(arg1)->Pending(); | |
17773 | ||
17774 | wxPyEndAllowThreads(__tstate); | |
17775 | if (PyErr_Occurred()) SWIG_fail; | |
17776 | } | |
17777 | resultobj = PyInt_FromLong((long)result); | |
17778 | return resultobj; | |
17779 | fail: | |
17780 | return NULL; | |
17781 | } | |
17782 | ||
17783 | ||
17784 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17785 | PyObject *resultobj; | |
17786 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17787 | bool result; | |
17788 | PyObject * obj0 = 0 ; | |
17789 | char *kwnames[] = { | |
17790 | (char *) "self", NULL | |
17791 | }; | |
17792 | ||
17793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
17794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17795 | { | |
17796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17797 | result = (bool)(arg1)->Dispatch(); | |
17798 | ||
17799 | wxPyEndAllowThreads(__tstate); | |
17800 | if (PyErr_Occurred()) SWIG_fail; | |
17801 | } | |
17802 | resultobj = PyInt_FromLong((long)result); | |
17803 | return resultobj; | |
17804 | fail: | |
17805 | return NULL; | |
17806 | } | |
17807 | ||
17808 | ||
17809 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17810 | PyObject *resultobj; | |
17811 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17812 | bool result; | |
17813 | PyObject * obj0 = 0 ; | |
17814 | char *kwnames[] = { | |
17815 | (char *) "self", NULL | |
17816 | }; | |
17817 | ||
17818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
17819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17820 | { | |
17821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17822 | result = (bool)(arg1)->ProcessIdle(); | |
17823 | ||
17824 | wxPyEndAllowThreads(__tstate); | |
17825 | if (PyErr_Occurred()) SWIG_fail; | |
17826 | } | |
17827 | resultobj = PyInt_FromLong((long)result); | |
17828 | return resultobj; | |
17829 | fail: | |
17830 | return NULL; | |
17831 | } | |
17832 | ||
17833 | ||
17834 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17835 | PyObject *resultobj; | |
17836 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17837 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17838 | wxIdleEvent *arg3 = 0 ; | |
17839 | bool result; | |
17840 | PyObject * obj0 = 0 ; | |
17841 | PyObject * obj1 = 0 ; | |
17842 | PyObject * obj2 = 0 ; | |
17843 | char *kwnames[] = { | |
17844 | (char *) "self",(char *) "win",(char *) "event", NULL | |
17845 | }; | |
17846 | ||
17847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17849 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17850 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17851 | if (arg3 == NULL) { | |
17852 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17853 | } | |
17854 | { | |
17855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17856 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
17857 | ||
17858 | wxPyEndAllowThreads(__tstate); | |
17859 | if (PyErr_Occurred()) SWIG_fail; | |
17860 | } | |
17861 | resultobj = PyInt_FromLong((long)result); | |
17862 | return resultobj; | |
17863 | fail: | |
17864 | return NULL; | |
17865 | } | |
17866 | ||
17867 | ||
17868 | static PyObject *_wrap_PyApp_OnIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17869 | PyObject *resultobj; | |
17870 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17871 | wxIdleEvent *arg2 = 0 ; | |
17872 | PyObject * obj0 = 0 ; | |
17873 | PyObject * obj1 = 0 ; | |
17874 | char *kwnames[] = { | |
17875 | (char *) "self",(char *) "event", NULL | |
17876 | }; | |
17877 | ||
17878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_OnIdle",kwnames,&obj0,&obj1)) goto fail; | |
17879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17880 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17881 | if (arg2 == NULL) { | |
17882 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17883 | } | |
17884 | { | |
17885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17886 | (arg1)->OnIdle(*arg2); | |
17887 | ||
17888 | wxPyEndAllowThreads(__tstate); | |
17889 | if (PyErr_Occurred()) SWIG_fail; | |
17890 | } | |
17891 | Py_INCREF(Py_None); resultobj = Py_None; | |
17892 | return resultobj; | |
17893 | fail: | |
17894 | return NULL; | |
17895 | } | |
17896 | ||
17897 | ||
17898 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17899 | PyObject *resultobj; | |
17900 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17901 | bool result; | |
17902 | PyObject * obj0 = 0 ; | |
17903 | char *kwnames[] = { | |
17904 | (char *) "self", NULL | |
17905 | }; | |
17906 | ||
17907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
17908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17909 | { | |
17910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17911 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
17912 | ||
17913 | wxPyEndAllowThreads(__tstate); | |
17914 | if (PyErr_Occurred()) SWIG_fail; | |
17915 | } | |
17916 | resultobj = PyInt_FromLong((long)result); | |
17917 | return resultobj; | |
17918 | fail: | |
17919 | return NULL; | |
17920 | } | |
17921 | ||
17922 | ||
17923 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17924 | PyObject *resultobj; | |
17925 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17926 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17927 | PyObject * obj0 = 0 ; | |
17928 | PyObject * obj1 = 0 ; | |
17929 | char *kwnames[] = { | |
17930 | (char *) "self",(char *) "win", NULL | |
17931 | }; | |
17932 | ||
17933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
17934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17935 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17936 | { | |
17937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17938 | (arg1)->SetTopWindow(arg2); | |
17939 | ||
17940 | wxPyEndAllowThreads(__tstate); | |
17941 | if (PyErr_Occurred()) SWIG_fail; | |
17942 | } | |
17943 | Py_INCREF(Py_None); resultobj = Py_None; | |
17944 | return resultobj; | |
17945 | fail: | |
17946 | return NULL; | |
17947 | } | |
17948 | ||
17949 | ||
17950 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17951 | PyObject *resultobj; | |
17952 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17953 | wxWindow *result; | |
17954 | PyObject * obj0 = 0 ; | |
17955 | char *kwnames[] = { | |
17956 | (char *) "self", NULL | |
17957 | }; | |
17958 | ||
17959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
17960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17961 | { | |
17962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17963 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
17964 | ||
17965 | wxPyEndAllowThreads(__tstate); | |
17966 | if (PyErr_Occurred()) SWIG_fail; | |
17967 | } | |
17968 | { | |
17969 | resultobj = wxPyMake_wxObject(result); | |
17970 | } | |
17971 | return resultobj; | |
17972 | fail: | |
17973 | return NULL; | |
17974 | } | |
17975 | ||
17976 | ||
17977 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17978 | PyObject *resultobj; | |
17979 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17980 | bool arg2 ; | |
17981 | PyObject * obj0 = 0 ; | |
17982 | PyObject * obj1 = 0 ; | |
17983 | char *kwnames[] = { | |
17984 | (char *) "self",(char *) "flag", NULL | |
17985 | }; | |
17986 | ||
17987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
17988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17989 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17990 | if (PyErr_Occurred()) SWIG_fail; | |
17991 | { | |
17992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17993 | (arg1)->SetExitOnFrameDelete(arg2); | |
17994 | ||
17995 | wxPyEndAllowThreads(__tstate); | |
17996 | if (PyErr_Occurred()) SWIG_fail; | |
17997 | } | |
17998 | Py_INCREF(Py_None); resultobj = Py_None; | |
17999 | return resultobj; | |
18000 | fail: | |
18001 | return NULL; | |
18002 | } | |
18003 | ||
18004 | ||
18005 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18006 | PyObject *resultobj; | |
18007 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18008 | bool result; | |
18009 | PyObject * obj0 = 0 ; | |
18010 | char *kwnames[] = { | |
18011 | (char *) "self", NULL | |
18012 | }; | |
18013 | ||
18014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
18015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18016 | { | |
18017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18018 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
18019 | ||
18020 | wxPyEndAllowThreads(__tstate); | |
18021 | if (PyErr_Occurred()) SWIG_fail; | |
18022 | } | |
18023 | resultobj = PyInt_FromLong((long)result); | |
18024 | return resultobj; | |
18025 | fail: | |
18026 | return NULL; | |
18027 | } | |
18028 | ||
18029 | ||
18030 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18031 | PyObject *resultobj; | |
18032 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18033 | bool arg2 ; | |
18034 | PyObject * obj0 = 0 ; | |
18035 | PyObject * obj1 = 0 ; | |
18036 | char *kwnames[] = { | |
18037 | (char *) "self",(char *) "flag", NULL | |
18038 | }; | |
18039 | ||
18040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
18041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18042 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
18043 | if (PyErr_Occurred()) SWIG_fail; | |
18044 | { | |
18045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18046 | (arg1)->SetUseBestVisual(arg2); | |
18047 | ||
18048 | wxPyEndAllowThreads(__tstate); | |
18049 | if (PyErr_Occurred()) SWIG_fail; | |
18050 | } | |
18051 | Py_INCREF(Py_None); resultobj = Py_None; | |
18052 | return resultobj; | |
18053 | fail: | |
18054 | return NULL; | |
18055 | } | |
18056 | ||
18057 | ||
18058 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18059 | PyObject *resultobj; | |
18060 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18061 | bool result; | |
18062 | PyObject * obj0 = 0 ; | |
18063 | char *kwnames[] = { | |
18064 | (char *) "self", NULL | |
18065 | }; | |
18066 | ||
18067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
18068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18069 | { | |
18070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18071 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
18072 | ||
18073 | wxPyEndAllowThreads(__tstate); | |
18074 | if (PyErr_Occurred()) SWIG_fail; | |
18075 | } | |
18076 | resultobj = PyInt_FromLong((long)result); | |
18077 | return resultobj; | |
18078 | fail: | |
18079 | return NULL; | |
18080 | } | |
18081 | ||
18082 | ||
18083 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18084 | PyObject *resultobj; | |
18085 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18086 | int arg2 ; | |
18087 | PyObject * obj0 = 0 ; | |
18088 | char *kwnames[] = { | |
18089 | (char *) "self",(char *) "mode", NULL | |
18090 | }; | |
18091 | ||
18092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyApp_SetPrintMode",kwnames,&obj0,&arg2)) goto fail; | |
18093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18094 | { | |
18095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18096 | (arg1)->SetPrintMode(arg2); | |
18097 | ||
18098 | wxPyEndAllowThreads(__tstate); | |
18099 | if (PyErr_Occurred()) SWIG_fail; | |
18100 | } | |
18101 | Py_INCREF(Py_None); resultobj = Py_None; | |
18102 | return resultobj; | |
18103 | fail: | |
18104 | return NULL; | |
18105 | } | |
18106 | ||
18107 | ||
18108 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18109 | PyObject *resultobj; | |
18110 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18111 | int result; | |
18112 | PyObject * obj0 = 0 ; | |
18113 | char *kwnames[] = { | |
18114 | (char *) "self", NULL | |
18115 | }; | |
18116 | ||
18117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
18118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18119 | { | |
18120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18121 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
18122 | ||
18123 | wxPyEndAllowThreads(__tstate); | |
18124 | if (PyErr_Occurred()) SWIG_fail; | |
18125 | } | |
18126 | resultobj = PyInt_FromLong((long)result); | |
18127 | return resultobj; | |
18128 | fail: | |
18129 | return NULL; | |
18130 | } | |
18131 | ||
18132 | ||
18133 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18134 | PyObject *resultobj; | |
18135 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18136 | int result; | |
18137 | PyObject * obj0 = 0 ; | |
18138 | char *kwnames[] = { | |
18139 | (char *) "self", NULL | |
18140 | }; | |
18141 | ||
18142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
18143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18144 | { | |
18145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18146 | result = (int)(arg1)->GetAssertMode(); | |
18147 | ||
18148 | wxPyEndAllowThreads(__tstate); | |
18149 | if (PyErr_Occurred()) SWIG_fail; | |
18150 | } | |
18151 | resultobj = PyInt_FromLong((long)result); | |
18152 | return resultobj; | |
18153 | fail: | |
18154 | return NULL; | |
18155 | } | |
18156 | ||
18157 | ||
18158 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18159 | PyObject *resultobj; | |
18160 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18161 | int arg2 ; | |
18162 | PyObject * obj0 = 0 ; | |
18163 | char *kwnames[] = { | |
18164 | (char *) "self",(char *) "mode", NULL | |
18165 | }; | |
18166 | ||
18167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyApp_SetAssertMode",kwnames,&obj0,&arg2)) goto fail; | |
18168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18169 | { | |
18170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18171 | (arg1)->SetAssertMode(arg2); | |
18172 | ||
18173 | wxPyEndAllowThreads(__tstate); | |
18174 | if (PyErr_Occurred()) SWIG_fail; | |
18175 | } | |
18176 | Py_INCREF(Py_None); resultobj = Py_None; | |
18177 | return resultobj; | |
18178 | fail: | |
18179 | return NULL; | |
18180 | } | |
18181 | ||
18182 | ||
18183 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18184 | PyObject *resultobj; | |
18185 | bool result; | |
18186 | char *kwnames[] = { | |
18187 | NULL | |
18188 | }; | |
18189 | ||
18190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
18191 | { | |
18192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18193 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
18194 | ||
18195 | wxPyEndAllowThreads(__tstate); | |
18196 | if (PyErr_Occurred()) SWIG_fail; | |
18197 | } | |
18198 | resultobj = PyInt_FromLong((long)result); | |
18199 | return resultobj; | |
18200 | fail: | |
18201 | return NULL; | |
18202 | } | |
18203 | ||
18204 | ||
18205 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18206 | PyObject *resultobj; | |
18207 | long result; | |
18208 | char *kwnames[] = { | |
18209 | NULL | |
18210 | }; | |
18211 | ||
18212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
18213 | { | |
18214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18215 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
18216 | ||
18217 | wxPyEndAllowThreads(__tstate); | |
18218 | if (PyErr_Occurred()) SWIG_fail; | |
18219 | } | |
18220 | resultobj = PyInt_FromLong((long)result); | |
18221 | return resultobj; | |
18222 | fail: | |
18223 | return NULL; | |
18224 | } | |
18225 | ||
18226 | ||
18227 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18228 | PyObject *resultobj; | |
18229 | long result; | |
18230 | char *kwnames[] = { | |
18231 | NULL | |
18232 | }; | |
18233 | ||
18234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
18235 | { | |
18236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18237 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
18238 | ||
18239 | wxPyEndAllowThreads(__tstate); | |
18240 | if (PyErr_Occurred()) SWIG_fail; | |
18241 | } | |
18242 | resultobj = PyInt_FromLong((long)result); | |
18243 | return resultobj; | |
18244 | fail: | |
18245 | return NULL; | |
18246 | } | |
18247 | ||
18248 | ||
18249 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18250 | PyObject *resultobj; | |
18251 | long result; | |
18252 | char *kwnames[] = { | |
18253 | NULL | |
18254 | }; | |
18255 | ||
18256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
18257 | { | |
18258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18259 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
18260 | ||
18261 | wxPyEndAllowThreads(__tstate); | |
18262 | if (PyErr_Occurred()) SWIG_fail; | |
18263 | } | |
18264 | resultobj = PyInt_FromLong((long)result); | |
18265 | return resultobj; | |
18266 | fail: | |
18267 | return NULL; | |
18268 | } | |
18269 | ||
18270 | ||
18271 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18272 | PyObject *resultobj; | |
18273 | wxString result; | |
18274 | char *kwnames[] = { | |
18275 | NULL | |
18276 | }; | |
18277 | ||
18278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
18279 | { | |
18280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18281 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
18282 | ||
18283 | wxPyEndAllowThreads(__tstate); | |
18284 | if (PyErr_Occurred()) SWIG_fail; | |
18285 | } | |
18286 | { | |
18287 | #if wxUSE_UNICODE | |
18288 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18289 | #else | |
18290 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18291 | #endif | |
18292 | } | |
18293 | return resultobj; | |
18294 | fail: | |
18295 | return NULL; | |
18296 | } | |
18297 | ||
18298 | ||
18299 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18300 | PyObject *resultobj; | |
18301 | bool arg1 ; | |
18302 | PyObject * obj0 = 0 ; | |
18303 | char *kwnames[] = { | |
18304 | (char *) "val", NULL | |
18305 | }; | |
18306 | ||
18307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
18308 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
18309 | if (PyErr_Occurred()) SWIG_fail; | |
18310 | { | |
18311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18312 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
18313 | ||
18314 | wxPyEndAllowThreads(__tstate); | |
18315 | if (PyErr_Occurred()) SWIG_fail; | |
18316 | } | |
18317 | Py_INCREF(Py_None); resultobj = Py_None; | |
18318 | return resultobj; | |
18319 | fail: | |
18320 | return NULL; | |
18321 | } | |
18322 | ||
18323 | ||
18324 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18325 | PyObject *resultobj; | |
18326 | long arg1 ; | |
18327 | char *kwnames[] = { | |
18328 | (char *) "val", NULL | |
18329 | }; | |
18330 | ||
18331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:PyApp_SetMacAboutMenuItemId",kwnames,&arg1)) goto fail; | |
18332 | { | |
18333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18334 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
18335 | ||
18336 | wxPyEndAllowThreads(__tstate); | |
18337 | if (PyErr_Occurred()) SWIG_fail; | |
18338 | } | |
18339 | Py_INCREF(Py_None); resultobj = Py_None; | |
18340 | return resultobj; | |
18341 | fail: | |
18342 | return NULL; | |
18343 | } | |
18344 | ||
18345 | ||
18346 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18347 | PyObject *resultobj; | |
18348 | long arg1 ; | |
18349 | char *kwnames[] = { | |
18350 | (char *) "val", NULL | |
18351 | }; | |
18352 | ||
18353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:PyApp_SetMacPreferencesMenuItemId",kwnames,&arg1)) goto fail; | |
18354 | { | |
18355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18356 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
18357 | ||
18358 | wxPyEndAllowThreads(__tstate); | |
18359 | if (PyErr_Occurred()) SWIG_fail; | |
18360 | } | |
18361 | Py_INCREF(Py_None); resultobj = Py_None; | |
18362 | return resultobj; | |
18363 | fail: | |
18364 | return NULL; | |
18365 | } | |
18366 | ||
18367 | ||
18368 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18369 | PyObject *resultobj; | |
18370 | long arg1 ; | |
18371 | char *kwnames[] = { | |
18372 | (char *) "val", NULL | |
18373 | }; | |
18374 | ||
18375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:PyApp_SetMacExitMenuItemId",kwnames,&arg1)) goto fail; | |
18376 | { | |
18377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18378 | wxPyApp::SetMacExitMenuItemId(arg1); | |
18379 | ||
18380 | wxPyEndAllowThreads(__tstate); | |
18381 | if (PyErr_Occurred()) SWIG_fail; | |
18382 | } | |
18383 | Py_INCREF(Py_None); resultobj = Py_None; | |
18384 | return resultobj; | |
18385 | fail: | |
18386 | return NULL; | |
18387 | } | |
18388 | ||
18389 | ||
18390 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18391 | PyObject *resultobj; | |
18392 | wxString *arg1 = 0 ; | |
18393 | bool temp1 = false ; | |
18394 | PyObject * obj0 = 0 ; | |
18395 | char *kwnames[] = { | |
18396 | (char *) "val", NULL | |
18397 | }; | |
18398 | ||
18399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
18400 | { | |
18401 | arg1 = wxString_in_helper(obj0); | |
18402 | if (arg1 == NULL) SWIG_fail; | |
18403 | temp1 = true; | |
18404 | } | |
18405 | { | |
18406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18407 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
18408 | ||
18409 | wxPyEndAllowThreads(__tstate); | |
18410 | if (PyErr_Occurred()) SWIG_fail; | |
18411 | } | |
18412 | Py_INCREF(Py_None); resultobj = Py_None; | |
18413 | { | |
18414 | if (temp1) | |
18415 | delete arg1; | |
18416 | } | |
18417 | return resultobj; | |
18418 | fail: | |
18419 | { | |
18420 | if (temp1) | |
18421 | delete arg1; | |
18422 | } | |
18423 | return NULL; | |
18424 | } | |
18425 | ||
18426 | ||
18427 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18428 | PyObject *resultobj; | |
18429 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18430 | PyObject * obj0 = 0 ; | |
18431 | char *kwnames[] = { | |
18432 | (char *) "self", NULL | |
18433 | }; | |
18434 | ||
18435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
18436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18437 | { | |
18438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18439 | (arg1)->_BootstrapApp(); | |
18440 | ||
18441 | wxPyEndAllowThreads(__tstate); | |
18442 | if (PyErr_Occurred()) SWIG_fail; | |
18443 | } | |
18444 | Py_INCREF(Py_None); resultobj = Py_None; | |
18445 | return resultobj; | |
18446 | fail: | |
18447 | return NULL; | |
18448 | } | |
18449 | ||
18450 | ||
18451 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18452 | PyObject *resultobj; | |
18453 | int result; | |
18454 | char *kwnames[] = { | |
18455 | NULL | |
18456 | }; | |
18457 | ||
18458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
18459 | { | |
18460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18461 | result = (int)wxPyApp::GetComCtl32Version(); | |
18462 | ||
18463 | wxPyEndAllowThreads(__tstate); | |
18464 | if (PyErr_Occurred()) SWIG_fail; | |
18465 | } | |
18466 | resultobj = PyInt_FromLong((long)result); | |
18467 | return resultobj; | |
18468 | fail: | |
18469 | return NULL; | |
18470 | } | |
18471 | ||
18472 | ||
18473 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
18474 | PyObject *obj; | |
18475 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18476 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
18477 | Py_INCREF(obj); | |
18478 | return Py_BuildValue((char *)""); | |
18479 | } | |
18480 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18481 | PyObject *resultobj; | |
18482 | char *kwnames[] = { | |
18483 | NULL | |
18484 | }; | |
18485 | ||
18486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
18487 | { | |
18488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18489 | wxExit(); | |
18490 | ||
18491 | wxPyEndAllowThreads(__tstate); | |
18492 | if (PyErr_Occurred()) SWIG_fail; | |
18493 | } | |
18494 | Py_INCREF(Py_None); resultobj = Py_None; | |
18495 | return resultobj; | |
18496 | fail: | |
18497 | return NULL; | |
18498 | } | |
18499 | ||
18500 | ||
18501 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18502 | PyObject *resultobj; | |
18503 | bool result; | |
18504 | char *kwnames[] = { | |
18505 | NULL | |
18506 | }; | |
18507 | ||
18508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
18509 | { | |
18510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18511 | result = (bool)wxYield(); | |
18512 | ||
18513 | wxPyEndAllowThreads(__tstate); | |
18514 | if (PyErr_Occurred()) SWIG_fail; | |
18515 | } | |
18516 | resultobj = PyInt_FromLong((long)result); | |
18517 | return resultobj; | |
18518 | fail: | |
18519 | return NULL; | |
18520 | } | |
18521 | ||
18522 | ||
18523 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18524 | PyObject *resultobj; | |
18525 | bool result; | |
18526 | char *kwnames[] = { | |
18527 | NULL | |
18528 | }; | |
18529 | ||
18530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
18531 | { | |
18532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18533 | result = (bool)wxYieldIfNeeded(); | |
18534 | ||
18535 | wxPyEndAllowThreads(__tstate); | |
18536 | if (PyErr_Occurred()) SWIG_fail; | |
18537 | } | |
18538 | resultobj = PyInt_FromLong((long)result); | |
18539 | return resultobj; | |
18540 | fail: | |
18541 | return NULL; | |
18542 | } | |
18543 | ||
18544 | ||
18545 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18546 | PyObject *resultobj; | |
18547 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18548 | bool arg2 = (bool) FALSE ; | |
18549 | bool result; | |
18550 | PyObject * obj0 = 0 ; | |
18551 | PyObject * obj1 = 0 ; | |
18552 | char *kwnames[] = { | |
18553 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
18554 | }; | |
18555 | ||
18556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
18557 | if (obj0) { | |
18558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18559 | } | |
18560 | if (obj1) { | |
18561 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
18562 | if (PyErr_Occurred()) SWIG_fail; | |
18563 | } | |
18564 | { | |
18565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18566 | result = (bool)wxSafeYield(arg1,arg2); | |
18567 | ||
18568 | wxPyEndAllowThreads(__tstate); | |
18569 | if (PyErr_Occurred()) SWIG_fail; | |
18570 | } | |
18571 | resultobj = PyInt_FromLong((long)result); | |
18572 | return resultobj; | |
18573 | fail: | |
18574 | return NULL; | |
18575 | } | |
18576 | ||
18577 | ||
18578 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18579 | PyObject *resultobj; | |
18580 | char *kwnames[] = { | |
18581 | NULL | |
18582 | }; | |
18583 | ||
18584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
18585 | { | |
18586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18587 | wxWakeUpIdle(); | |
18588 | ||
18589 | wxPyEndAllowThreads(__tstate); | |
18590 | if (PyErr_Occurred()) SWIG_fail; | |
18591 | } | |
18592 | Py_INCREF(Py_None); resultobj = Py_None; | |
18593 | return resultobj; | |
18594 | fail: | |
18595 | return NULL; | |
18596 | } | |
18597 | ||
18598 | ||
18599 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18600 | PyObject *resultobj; | |
18601 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
18602 | wxEvent *arg2 = 0 ; | |
18603 | PyObject * obj0 = 0 ; | |
18604 | PyObject * obj1 = 0 ; | |
18605 | char *kwnames[] = { | |
18606 | (char *) "dest",(char *) "event", NULL | |
18607 | }; | |
18608 | ||
18609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
18610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18611 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18612 | if (arg2 == NULL) { | |
18613 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18614 | } | |
18615 | { | |
18616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18617 | wxPostEvent(arg1,*arg2); | |
18618 | ||
18619 | wxPyEndAllowThreads(__tstate); | |
18620 | if (PyErr_Occurred()) SWIG_fail; | |
18621 | } | |
18622 | Py_INCREF(Py_None); resultobj = Py_None; | |
18623 | return resultobj; | |
18624 | fail: | |
18625 | return NULL; | |
18626 | } | |
18627 | ||
18628 | ||
18629 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18630 | PyObject *resultobj; | |
18631 | char *kwnames[] = { | |
18632 | NULL | |
18633 | }; | |
18634 | ||
18635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
18636 | { | |
18637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18638 | wxApp_CleanUp(); | |
18639 | ||
18640 | wxPyEndAllowThreads(__tstate); | |
18641 | if (PyErr_Occurred()) SWIG_fail; | |
18642 | } | |
18643 | Py_INCREF(Py_None); resultobj = Py_None; | |
18644 | return resultobj; | |
18645 | fail: | |
18646 | return NULL; | |
18647 | } | |
18648 | ||
18649 | ||
18650 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18651 | PyObject *resultobj; | |
18652 | wxPyApp *result; | |
18653 | char *kwnames[] = { | |
18654 | NULL | |
18655 | }; | |
18656 | ||
18657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
18658 | { | |
18659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18660 | result = (wxPyApp *)wxGetApp(); | |
18661 | ||
18662 | wxPyEndAllowThreads(__tstate); | |
18663 | if (PyErr_Occurred()) SWIG_fail; | |
18664 | } | |
18665 | { | |
18666 | resultobj = wxPyMake_wxObject(result); | |
18667 | } | |
18668 | return resultobj; | |
18669 | fail: | |
18670 | return NULL; | |
18671 | } | |
18672 | ||
18673 | ||
18674 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18675 | PyObject *resultobj; | |
18676 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18677 | wxWindowID arg2 ; | |
18678 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
18679 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18680 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18681 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18682 | long arg5 = (long) 0 ; | |
18683 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
18684 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18685 | wxWindow *result; | |
18686 | wxPoint temp3 ; | |
18687 | wxSize temp4 ; | |
18688 | bool temp6 = false ; | |
18689 | PyObject * obj0 = 0 ; | |
18690 | PyObject * obj2 = 0 ; | |
18691 | PyObject * obj3 = 0 ; | |
18692 | PyObject * obj5 = 0 ; | |
18693 | char *kwnames[] = { | |
18694 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18695 | }; | |
18696 | ||
18697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Window",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
18698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18699 | if (obj2) { | |
18700 | { | |
18701 | arg3 = &temp3; | |
18702 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18703 | } | |
18704 | } | |
18705 | if (obj3) { | |
18706 | { | |
18707 | arg4 = &temp4; | |
18708 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18709 | } | |
18710 | } | |
18711 | if (obj5) { | |
18712 | { | |
18713 | arg6 = wxString_in_helper(obj5); | |
18714 | if (arg6 == NULL) SWIG_fail; | |
18715 | temp6 = true; | |
18716 | } | |
18717 | } | |
18718 | { | |
18719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18720 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18721 | ||
18722 | wxPyEndAllowThreads(__tstate); | |
18723 | if (PyErr_Occurred()) SWIG_fail; | |
18724 | } | |
18725 | { | |
18726 | resultobj = wxPyMake_wxObject(result); | |
18727 | } | |
18728 | { | |
18729 | if (temp6) | |
18730 | delete arg6; | |
18731 | } | |
18732 | return resultobj; | |
18733 | fail: | |
18734 | { | |
18735 | if (temp6) | |
18736 | delete arg6; | |
18737 | } | |
18738 | return NULL; | |
18739 | } | |
18740 | ||
18741 | ||
18742 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18743 | PyObject *resultobj; | |
18744 | wxWindow *result; | |
18745 | char *kwnames[] = { | |
18746 | NULL | |
18747 | }; | |
18748 | ||
18749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
18750 | { | |
18751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18752 | result = (wxWindow *)new wxWindow(); | |
18753 | ||
18754 | wxPyEndAllowThreads(__tstate); | |
18755 | if (PyErr_Occurred()) SWIG_fail; | |
18756 | } | |
18757 | { | |
18758 | resultobj = wxPyMake_wxObject(result); | |
18759 | } | |
18760 | return resultobj; | |
18761 | fail: | |
18762 | return NULL; | |
18763 | } | |
18764 | ||
18765 | ||
18766 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18767 | PyObject *resultobj; | |
18768 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18769 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18770 | wxWindowID arg3 ; | |
18771 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
18772 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18773 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18774 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18775 | long arg6 = (long) 0 ; | |
18776 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
18777 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18778 | bool result; | |
18779 | wxPoint temp4 ; | |
18780 | wxSize temp5 ; | |
18781 | bool temp7 = false ; | |
18782 | PyObject * obj0 = 0 ; | |
18783 | PyObject * obj1 = 0 ; | |
18784 | PyObject * obj3 = 0 ; | |
18785 | PyObject * obj4 = 0 ; | |
18786 | PyObject * obj6 = 0 ; | |
18787 | char *kwnames[] = { | |
18788 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18789 | }; | |
18790 | ||
18791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Window_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
18792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18793 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18794 | if (obj3) { | |
18795 | { | |
18796 | arg4 = &temp4; | |
18797 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18798 | } | |
18799 | } | |
18800 | if (obj4) { | |
18801 | { | |
18802 | arg5 = &temp5; | |
18803 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18804 | } | |
18805 | } | |
18806 | if (obj6) { | |
18807 | { | |
18808 | arg7 = wxString_in_helper(obj6); | |
18809 | if (arg7 == NULL) SWIG_fail; | |
18810 | temp7 = true; | |
18811 | } | |
18812 | } | |
18813 | { | |
18814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18815 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18816 | ||
18817 | wxPyEndAllowThreads(__tstate); | |
18818 | if (PyErr_Occurred()) SWIG_fail; | |
18819 | } | |
18820 | resultobj = PyInt_FromLong((long)result); | |
18821 | { | |
18822 | if (temp7) | |
18823 | delete arg7; | |
18824 | } | |
18825 | return resultobj; | |
18826 | fail: | |
18827 | { | |
18828 | if (temp7) | |
18829 | delete arg7; | |
18830 | } | |
18831 | return NULL; | |
18832 | } | |
18833 | ||
18834 | ||
18835 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18836 | PyObject *resultobj; | |
18837 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18838 | bool arg2 = (bool) FALSE ; | |
18839 | bool result; | |
18840 | PyObject * obj0 = 0 ; | |
18841 | PyObject * obj1 = 0 ; | |
18842 | char *kwnames[] = { | |
18843 | (char *) "self",(char *) "force", NULL | |
18844 | }; | |
18845 | ||
18846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
18847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18848 | if (obj1) { | |
18849 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
18850 | if (PyErr_Occurred()) SWIG_fail; | |
18851 | } | |
18852 | { | |
18853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18854 | result = (bool)(arg1)->Close(arg2); | |
18855 | ||
18856 | wxPyEndAllowThreads(__tstate); | |
18857 | if (PyErr_Occurred()) SWIG_fail; | |
18858 | } | |
18859 | resultobj = PyInt_FromLong((long)result); | |
18860 | return resultobj; | |
18861 | fail: | |
18862 | return NULL; | |
18863 | } | |
18864 | ||
18865 | ||
18866 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18867 | PyObject *resultobj; | |
18868 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18869 | bool result; | |
18870 | PyObject * obj0 = 0 ; | |
18871 | char *kwnames[] = { | |
18872 | (char *) "self", NULL | |
18873 | }; | |
18874 | ||
18875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
18876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18877 | { | |
18878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18879 | result = (bool)(arg1)->Destroy(); | |
18880 | ||
18881 | wxPyEndAllowThreads(__tstate); | |
18882 | if (PyErr_Occurred()) SWIG_fail; | |
18883 | } | |
18884 | resultobj = PyInt_FromLong((long)result); | |
18885 | return resultobj; | |
18886 | fail: | |
18887 | return NULL; | |
18888 | } | |
18889 | ||
18890 | ||
18891 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18892 | PyObject *resultobj; | |
18893 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18894 | bool result; | |
18895 | PyObject * obj0 = 0 ; | |
18896 | char *kwnames[] = { | |
18897 | (char *) "self", NULL | |
18898 | }; | |
18899 | ||
18900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
18901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18902 | { | |
18903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18904 | result = (bool)(arg1)->DestroyChildren(); | |
18905 | ||
18906 | wxPyEndAllowThreads(__tstate); | |
18907 | if (PyErr_Occurred()) SWIG_fail; | |
18908 | } | |
18909 | resultobj = PyInt_FromLong((long)result); | |
18910 | return resultobj; | |
18911 | fail: | |
18912 | return NULL; | |
18913 | } | |
18914 | ||
18915 | ||
18916 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18917 | PyObject *resultobj; | |
18918 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18919 | bool result; | |
18920 | PyObject * obj0 = 0 ; | |
18921 | char *kwnames[] = { | |
18922 | (char *) "self", NULL | |
18923 | }; | |
18924 | ||
18925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
18926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18927 | { | |
18928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18929 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
18930 | ||
18931 | wxPyEndAllowThreads(__tstate); | |
18932 | if (PyErr_Occurred()) SWIG_fail; | |
18933 | } | |
18934 | resultobj = PyInt_FromLong((long)result); | |
18935 | return resultobj; | |
18936 | fail: | |
18937 | return NULL; | |
18938 | } | |
18939 | ||
18940 | ||
18941 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18942 | PyObject *resultobj; | |
18943 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18944 | wxString *arg2 = 0 ; | |
18945 | bool temp2 = false ; | |
18946 | PyObject * obj0 = 0 ; | |
18947 | PyObject * obj1 = 0 ; | |
18948 | char *kwnames[] = { | |
18949 | (char *) "self",(char *) "title", NULL | |
18950 | }; | |
18951 | ||
18952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
18953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18954 | { | |
18955 | arg2 = wxString_in_helper(obj1); | |
18956 | if (arg2 == NULL) SWIG_fail; | |
18957 | temp2 = true; | |
18958 | } | |
18959 | { | |
18960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18961 | (arg1)->SetTitle((wxString const &)*arg2); | |
18962 | ||
18963 | wxPyEndAllowThreads(__tstate); | |
18964 | if (PyErr_Occurred()) SWIG_fail; | |
18965 | } | |
18966 | Py_INCREF(Py_None); resultobj = Py_None; | |
18967 | { | |
18968 | if (temp2) | |
18969 | delete arg2; | |
18970 | } | |
18971 | return resultobj; | |
18972 | fail: | |
18973 | { | |
18974 | if (temp2) | |
18975 | delete arg2; | |
18976 | } | |
18977 | return NULL; | |
18978 | } | |
18979 | ||
18980 | ||
18981 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18982 | PyObject *resultobj; | |
18983 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18984 | wxString result; | |
18985 | PyObject * obj0 = 0 ; | |
18986 | char *kwnames[] = { | |
18987 | (char *) "self", NULL | |
18988 | }; | |
18989 | ||
18990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
18991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18992 | { | |
18993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18994 | result = ((wxWindow const *)arg1)->GetTitle(); | |
18995 | ||
18996 | wxPyEndAllowThreads(__tstate); | |
18997 | if (PyErr_Occurred()) SWIG_fail; | |
18998 | } | |
18999 | { | |
19000 | #if wxUSE_UNICODE | |
19001 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19002 | #else | |
19003 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19004 | #endif | |
19005 | } | |
19006 | return resultobj; | |
19007 | fail: | |
19008 | return NULL; | |
19009 | } | |
19010 | ||
19011 | ||
19012 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19013 | PyObject *resultobj; | |
19014 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19015 | wxString *arg2 = 0 ; | |
19016 | bool temp2 = false ; | |
19017 | PyObject * obj0 = 0 ; | |
19018 | PyObject * obj1 = 0 ; | |
19019 | char *kwnames[] = { | |
19020 | (char *) "self",(char *) "label", NULL | |
19021 | }; | |
19022 | ||
19023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
19024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19025 | { | |
19026 | arg2 = wxString_in_helper(obj1); | |
19027 | if (arg2 == NULL) SWIG_fail; | |
19028 | temp2 = true; | |
19029 | } | |
19030 | { | |
19031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19032 | (arg1)->SetLabel((wxString const &)*arg2); | |
19033 | ||
19034 | wxPyEndAllowThreads(__tstate); | |
19035 | if (PyErr_Occurred()) SWIG_fail; | |
19036 | } | |
19037 | Py_INCREF(Py_None); resultobj = Py_None; | |
19038 | { | |
19039 | if (temp2) | |
19040 | delete arg2; | |
19041 | } | |
19042 | return resultobj; | |
19043 | fail: | |
19044 | { | |
19045 | if (temp2) | |
19046 | delete arg2; | |
19047 | } | |
19048 | return NULL; | |
19049 | } | |
19050 | ||
19051 | ||
19052 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19053 | PyObject *resultobj; | |
19054 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19055 | wxString result; | |
19056 | PyObject * obj0 = 0 ; | |
19057 | char *kwnames[] = { | |
19058 | (char *) "self", NULL | |
19059 | }; | |
19060 | ||
19061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
19062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19063 | { | |
19064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19065 | result = ((wxWindow const *)arg1)->GetLabel(); | |
19066 | ||
19067 | wxPyEndAllowThreads(__tstate); | |
19068 | if (PyErr_Occurred()) SWIG_fail; | |
19069 | } | |
19070 | { | |
19071 | #if wxUSE_UNICODE | |
19072 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19073 | #else | |
19074 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19075 | #endif | |
19076 | } | |
19077 | return resultobj; | |
19078 | fail: | |
19079 | return NULL; | |
19080 | } | |
19081 | ||
19082 | ||
19083 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19084 | PyObject *resultobj; | |
19085 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19086 | wxString *arg2 = 0 ; | |
19087 | bool temp2 = false ; | |
19088 | PyObject * obj0 = 0 ; | |
19089 | PyObject * obj1 = 0 ; | |
19090 | char *kwnames[] = { | |
19091 | (char *) "self",(char *) "name", NULL | |
19092 | }; | |
19093 | ||
19094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
19095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19096 | { | |
19097 | arg2 = wxString_in_helper(obj1); | |
19098 | if (arg2 == NULL) SWIG_fail; | |
19099 | temp2 = true; | |
19100 | } | |
19101 | { | |
19102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19103 | (arg1)->SetName((wxString const &)*arg2); | |
19104 | ||
19105 | wxPyEndAllowThreads(__tstate); | |
19106 | if (PyErr_Occurred()) SWIG_fail; | |
19107 | } | |
19108 | Py_INCREF(Py_None); resultobj = Py_None; | |
19109 | { | |
19110 | if (temp2) | |
19111 | delete arg2; | |
19112 | } | |
19113 | return resultobj; | |
19114 | fail: | |
19115 | { | |
19116 | if (temp2) | |
19117 | delete arg2; | |
19118 | } | |
19119 | return NULL; | |
19120 | } | |
19121 | ||
19122 | ||
19123 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19124 | PyObject *resultobj; | |
19125 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19126 | wxString result; | |
19127 | PyObject * obj0 = 0 ; | |
19128 | char *kwnames[] = { | |
19129 | (char *) "self", NULL | |
19130 | }; | |
19131 | ||
19132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
19133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19134 | { | |
19135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19136 | result = ((wxWindow const *)arg1)->GetName(); | |
19137 | ||
19138 | wxPyEndAllowThreads(__tstate); | |
19139 | if (PyErr_Occurred()) SWIG_fail; | |
19140 | } | |
19141 | { | |
19142 | #if wxUSE_UNICODE | |
19143 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19144 | #else | |
19145 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19146 | #endif | |
19147 | } | |
19148 | return resultobj; | |
19149 | fail: | |
19150 | return NULL; | |
19151 | } | |
19152 | ||
19153 | ||
19154 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19155 | PyObject *resultobj; | |
19156 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19157 | wxWindowID arg2 ; | |
19158 | PyObject * obj0 = 0 ; | |
19159 | char *kwnames[] = { | |
19160 | (char *) "self",(char *) "winid", NULL | |
19161 | }; | |
19162 | ||
19163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_SetId",kwnames,&obj0,&arg2)) goto fail; | |
19164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19165 | { | |
19166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19167 | (arg1)->SetId(arg2); | |
19168 | ||
19169 | wxPyEndAllowThreads(__tstate); | |
19170 | if (PyErr_Occurred()) SWIG_fail; | |
19171 | } | |
19172 | Py_INCREF(Py_None); resultobj = Py_None; | |
19173 | return resultobj; | |
19174 | fail: | |
19175 | return NULL; | |
19176 | } | |
19177 | ||
19178 | ||
19179 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19180 | PyObject *resultobj; | |
19181 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19182 | wxWindowID result; | |
19183 | PyObject * obj0 = 0 ; | |
19184 | char *kwnames[] = { | |
19185 | (char *) "self", NULL | |
19186 | }; | |
19187 | ||
19188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
19189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19190 | { | |
19191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19192 | result = (wxWindowID)((wxWindow const *)arg1)->GetId(); | |
19193 | ||
19194 | wxPyEndAllowThreads(__tstate); | |
19195 | if (PyErr_Occurred()) SWIG_fail; | |
19196 | } | |
19197 | resultobj = PyInt_FromLong((long)result); | |
19198 | return resultobj; | |
19199 | fail: | |
19200 | return NULL; | |
19201 | } | |
19202 | ||
19203 | ||
19204 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19205 | PyObject *resultobj; | |
19206 | int result; | |
19207 | char *kwnames[] = { | |
19208 | NULL | |
19209 | }; | |
19210 | ||
19211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
19212 | { | |
19213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19214 | result = (int)wxWindow::NewControlId(); | |
19215 | ||
19216 | wxPyEndAllowThreads(__tstate); | |
19217 | if (PyErr_Occurred()) SWIG_fail; | |
19218 | } | |
19219 | resultobj = PyInt_FromLong((long)result); | |
19220 | return resultobj; | |
19221 | fail: | |
19222 | return NULL; | |
19223 | } | |
19224 | ||
19225 | ||
19226 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19227 | PyObject *resultobj; | |
19228 | int arg1 ; | |
19229 | int result; | |
19230 | char *kwnames[] = { | |
19231 | (char *) "winid", NULL | |
19232 | }; | |
19233 | ||
19234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Window_NextControlId",kwnames,&arg1)) goto fail; | |
19235 | { | |
19236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19237 | result = (int)wxWindow::NextControlId(arg1); | |
19238 | ||
19239 | wxPyEndAllowThreads(__tstate); | |
19240 | if (PyErr_Occurred()) SWIG_fail; | |
19241 | } | |
19242 | resultobj = PyInt_FromLong((long)result); | |
19243 | return resultobj; | |
19244 | fail: | |
19245 | return NULL; | |
19246 | } | |
19247 | ||
19248 | ||
19249 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19250 | PyObject *resultobj; | |
19251 | int arg1 ; | |
19252 | int result; | |
19253 | char *kwnames[] = { | |
19254 | (char *) "winid", NULL | |
19255 | }; | |
19256 | ||
19257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Window_PrevControlId",kwnames,&arg1)) goto fail; | |
19258 | { | |
19259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19260 | result = (int)wxWindow::PrevControlId(arg1); | |
19261 | ||
19262 | wxPyEndAllowThreads(__tstate); | |
19263 | if (PyErr_Occurred()) SWIG_fail; | |
19264 | } | |
19265 | resultobj = PyInt_FromLong((long)result); | |
19266 | return resultobj; | |
19267 | fail: | |
19268 | return NULL; | |
19269 | } | |
19270 | ||
19271 | ||
19272 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19273 | PyObject *resultobj; | |
19274 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19275 | wxSize *arg2 = 0 ; | |
19276 | wxSize temp2 ; | |
19277 | PyObject * obj0 = 0 ; | |
19278 | PyObject * obj1 = 0 ; | |
19279 | char *kwnames[] = { | |
19280 | (char *) "self",(char *) "size", NULL | |
19281 | }; | |
19282 | ||
19283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
19284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19285 | { | |
19286 | arg2 = &temp2; | |
19287 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19288 | } | |
19289 | { | |
19290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19291 | (arg1)->SetSize((wxSize const &)*arg2); | |
19292 | ||
19293 | wxPyEndAllowThreads(__tstate); | |
19294 | if (PyErr_Occurred()) SWIG_fail; | |
19295 | } | |
19296 | Py_INCREF(Py_None); resultobj = Py_None; | |
19297 | return resultobj; | |
19298 | fail: | |
19299 | return NULL; | |
19300 | } | |
19301 | ||
19302 | ||
19303 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19304 | PyObject *resultobj; | |
19305 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19306 | int arg2 ; | |
19307 | int arg3 ; | |
19308 | int arg4 ; | |
19309 | int arg5 ; | |
19310 | int arg6 = (int) wxSIZE_AUTO ; | |
19311 | PyObject * obj0 = 0 ; | |
19312 | char *kwnames[] = { | |
19313 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
19314 | }; | |
19315 | ||
19316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|i:Window_SetDimensions",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
19317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19318 | { | |
19319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19320 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
19321 | ||
19322 | wxPyEndAllowThreads(__tstate); | |
19323 | if (PyErr_Occurred()) SWIG_fail; | |
19324 | } | |
19325 | Py_INCREF(Py_None); resultobj = Py_None; | |
19326 | return resultobj; | |
19327 | fail: | |
19328 | return NULL; | |
19329 | } | |
19330 | ||
19331 | ||
19332 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19333 | PyObject *resultobj; | |
19334 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19335 | wxRect *arg2 = 0 ; | |
19336 | int arg3 = (int) wxSIZE_AUTO ; | |
19337 | wxRect temp2 ; | |
19338 | PyObject * obj0 = 0 ; | |
19339 | PyObject * obj1 = 0 ; | |
19340 | char *kwnames[] = { | |
19341 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
19342 | }; | |
19343 | ||
19344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Window_SetRect",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
19345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19346 | { | |
19347 | arg2 = &temp2; | |
19348 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19349 | } | |
19350 | { | |
19351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19352 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
19353 | ||
19354 | wxPyEndAllowThreads(__tstate); | |
19355 | if (PyErr_Occurred()) SWIG_fail; | |
19356 | } | |
19357 | Py_INCREF(Py_None); resultobj = Py_None; | |
19358 | return resultobj; | |
19359 | fail: | |
19360 | return NULL; | |
19361 | } | |
19362 | ||
19363 | ||
19364 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19365 | PyObject *resultobj; | |
19366 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19367 | int arg2 ; | |
19368 | int arg3 ; | |
19369 | PyObject * obj0 = 0 ; | |
19370 | char *kwnames[] = { | |
19371 | (char *) "self",(char *) "width",(char *) "height", NULL | |
19372 | }; | |
19373 | ||
19374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_SetSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19376 | { | |
19377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19378 | (arg1)->SetSize(arg2,arg3); | |
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_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19391 | PyObject *resultobj; | |
19392 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19393 | wxPoint *arg2 = 0 ; | |
19394 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
19395 | wxPoint temp2 ; | |
19396 | PyObject * obj0 = 0 ; | |
19397 | PyObject * obj1 = 0 ; | |
19398 | char *kwnames[] = { | |
19399 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
19400 | }; | |
19401 | ||
19402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Window_Move",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
19403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19404 | { | |
19405 | arg2 = &temp2; | |
19406 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19407 | } | |
19408 | { | |
19409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19410 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
19411 | ||
19412 | wxPyEndAllowThreads(__tstate); | |
19413 | if (PyErr_Occurred()) SWIG_fail; | |
19414 | } | |
19415 | Py_INCREF(Py_None); resultobj = Py_None; | |
19416 | return resultobj; | |
19417 | fail: | |
19418 | return NULL; | |
19419 | } | |
19420 | ||
19421 | ||
19422 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19423 | PyObject *resultobj; | |
19424 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19425 | int arg2 ; | |
19426 | int arg3 ; | |
19427 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
19428 | PyObject * obj0 = 0 ; | |
19429 | char *kwnames[] = { | |
19430 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
19431 | }; | |
19432 | ||
19433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:Window_MoveXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
19434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19435 | { | |
19436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19437 | (arg1)->Move(arg2,arg3,arg4); | |
19438 | ||
19439 | wxPyEndAllowThreads(__tstate); | |
19440 | if (PyErr_Occurred()) SWIG_fail; | |
19441 | } | |
19442 | Py_INCREF(Py_None); resultobj = Py_None; | |
19443 | return resultobj; | |
19444 | fail: | |
19445 | return NULL; | |
19446 | } | |
19447 | ||
19448 | ||
19449 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19450 | PyObject *resultobj; | |
19451 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19452 | PyObject * obj0 = 0 ; | |
19453 | char *kwnames[] = { | |
19454 | (char *) "self", NULL | |
19455 | }; | |
19456 | ||
19457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
19458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19459 | { | |
19460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19461 | (arg1)->Raise(); | |
19462 | ||
19463 | wxPyEndAllowThreads(__tstate); | |
19464 | if (PyErr_Occurred()) SWIG_fail; | |
19465 | } | |
19466 | Py_INCREF(Py_None); resultobj = Py_None; | |
19467 | return resultobj; | |
19468 | fail: | |
19469 | return NULL; | |
19470 | } | |
19471 | ||
19472 | ||
19473 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19474 | PyObject *resultobj; | |
19475 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19476 | PyObject * obj0 = 0 ; | |
19477 | char *kwnames[] = { | |
19478 | (char *) "self", NULL | |
19479 | }; | |
19480 | ||
19481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
19482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19483 | { | |
19484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19485 | (arg1)->Lower(); | |
19486 | ||
19487 | wxPyEndAllowThreads(__tstate); | |
19488 | if (PyErr_Occurred()) SWIG_fail; | |
19489 | } | |
19490 | Py_INCREF(Py_None); resultobj = Py_None; | |
19491 | return resultobj; | |
19492 | fail: | |
19493 | return NULL; | |
19494 | } | |
19495 | ||
19496 | ||
19497 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19498 | PyObject *resultobj; | |
19499 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19500 | wxSize *arg2 = 0 ; | |
19501 | wxSize temp2 ; | |
19502 | PyObject * obj0 = 0 ; | |
19503 | PyObject * obj1 = 0 ; | |
19504 | char *kwnames[] = { | |
19505 | (char *) "self",(char *) "size", NULL | |
19506 | }; | |
19507 | ||
19508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
19509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19510 | { | |
19511 | arg2 = &temp2; | |
19512 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19513 | } | |
19514 | { | |
19515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19516 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
19517 | ||
19518 | wxPyEndAllowThreads(__tstate); | |
19519 | if (PyErr_Occurred()) SWIG_fail; | |
19520 | } | |
19521 | Py_INCREF(Py_None); resultobj = Py_None; | |
19522 | return resultobj; | |
19523 | fail: | |
19524 | return NULL; | |
19525 | } | |
19526 | ||
19527 | ||
19528 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19529 | PyObject *resultobj; | |
19530 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19531 | int arg2 ; | |
19532 | int arg3 ; | |
19533 | PyObject * obj0 = 0 ; | |
19534 | char *kwnames[] = { | |
19535 | (char *) "self",(char *) "width",(char *) "height", NULL | |
19536 | }; | |
19537 | ||
19538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_SetClientSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19540 | { | |
19541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19542 | (arg1)->SetClientSize(arg2,arg3); | |
19543 | ||
19544 | wxPyEndAllowThreads(__tstate); | |
19545 | if (PyErr_Occurred()) SWIG_fail; | |
19546 | } | |
19547 | Py_INCREF(Py_None); resultobj = Py_None; | |
19548 | return resultobj; | |
19549 | fail: | |
19550 | return NULL; | |
19551 | } | |
19552 | ||
19553 | ||
19554 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19555 | PyObject *resultobj; | |
19556 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19557 | wxRect *arg2 = 0 ; | |
19558 | wxRect temp2 ; | |
19559 | PyObject * obj0 = 0 ; | |
19560 | PyObject * obj1 = 0 ; | |
19561 | char *kwnames[] = { | |
19562 | (char *) "self",(char *) "rect", NULL | |
19563 | }; | |
19564 | ||
19565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
19566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19567 | { | |
19568 | arg2 = &temp2; | |
19569 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19570 | } | |
19571 | { | |
19572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19573 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
19574 | ||
19575 | wxPyEndAllowThreads(__tstate); | |
19576 | if (PyErr_Occurred()) SWIG_fail; | |
19577 | } | |
19578 | Py_INCREF(Py_None); resultobj = Py_None; | |
19579 | return resultobj; | |
19580 | fail: | |
19581 | return NULL; | |
19582 | } | |
19583 | ||
19584 | ||
19585 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19586 | PyObject *resultobj; | |
19587 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19588 | wxPoint result; | |
19589 | PyObject * obj0 = 0 ; | |
19590 | char *kwnames[] = { | |
19591 | (char *) "self", NULL | |
19592 | }; | |
19593 | ||
19594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
19595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19596 | { | |
19597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19598 | result = ((wxWindow const *)arg1)->GetPosition(); | |
19599 | ||
19600 | wxPyEndAllowThreads(__tstate); | |
19601 | if (PyErr_Occurred()) SWIG_fail; | |
19602 | } | |
19603 | { | |
19604 | wxPoint * resultptr; | |
19605 | resultptr = new wxPoint((wxPoint &) result); | |
19606 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
19607 | } | |
19608 | return resultobj; | |
19609 | fail: | |
19610 | return NULL; | |
19611 | } | |
19612 | ||
19613 | ||
19614 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19615 | PyObject *resultobj; | |
19616 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19617 | int *arg2 = (int *) 0 ; | |
19618 | int *arg3 = (int *) 0 ; | |
19619 | int temp2 ; | |
19620 | int temp3 ; | |
19621 | PyObject * obj0 = 0 ; | |
19622 | char *kwnames[] = { | |
19623 | (char *) "self", NULL | |
19624 | }; | |
19625 | ||
19626 | arg2 = &temp2; | |
19627 | arg3 = &temp3; | |
19628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
19629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19630 | { | |
19631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19632 | ((wxWindow const *)arg1)->GetPosition(arg2,arg3); | |
19633 | ||
19634 | wxPyEndAllowThreads(__tstate); | |
19635 | if (PyErr_Occurred()) SWIG_fail; | |
19636 | } | |
19637 | Py_INCREF(Py_None); resultobj = Py_None; | |
19638 | { | |
19639 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
19640 | resultobj = t_output_helper(resultobj,o); | |
19641 | } | |
19642 | { | |
19643 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
19644 | resultobj = t_output_helper(resultobj,o); | |
19645 | } | |
19646 | return resultobj; | |
19647 | fail: | |
19648 | return NULL; | |
19649 | } | |
19650 | ||
19651 | ||
19652 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19653 | PyObject *resultobj; | |
19654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19655 | wxSize result; | |
19656 | PyObject * obj0 = 0 ; | |
19657 | char *kwnames[] = { | |
19658 | (char *) "self", NULL | |
19659 | }; | |
19660 | ||
19661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
19662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19663 | { | |
19664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19665 | result = ((wxWindow const *)arg1)->GetSize(); | |
19666 | ||
19667 | wxPyEndAllowThreads(__tstate); | |
19668 | if (PyErr_Occurred()) SWIG_fail; | |
19669 | } | |
19670 | { | |
19671 | wxSize * resultptr; | |
19672 | resultptr = new wxSize((wxSize &) result); | |
19673 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
19674 | } | |
19675 | return resultobj; | |
19676 | fail: | |
19677 | return NULL; | |
19678 | } | |
19679 | ||
19680 | ||
19681 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19682 | PyObject *resultobj; | |
19683 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19684 | int *arg2 = (int *) 0 ; | |
19685 | int *arg3 = (int *) 0 ; | |
19686 | int temp2 ; | |
19687 | int temp3 ; | |
19688 | PyObject * obj0 = 0 ; | |
19689 | char *kwnames[] = { | |
19690 | (char *) "self", NULL | |
19691 | }; | |
19692 | ||
19693 | arg2 = &temp2; | |
19694 | arg3 = &temp3; | |
19695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
19696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19697 | { | |
19698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19699 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
19700 | ||
19701 | wxPyEndAllowThreads(__tstate); | |
19702 | if (PyErr_Occurred()) SWIG_fail; | |
19703 | } | |
19704 | Py_INCREF(Py_None); resultobj = Py_None; | |
19705 | { | |
19706 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
19707 | resultobj = t_output_helper(resultobj,o); | |
19708 | } | |
19709 | { | |
19710 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
19711 | resultobj = t_output_helper(resultobj,o); | |
19712 | } | |
19713 | return resultobj; | |
19714 | fail: | |
19715 | return NULL; | |
19716 | } | |
19717 | ||
19718 | ||
19719 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19720 | PyObject *resultobj; | |
19721 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19722 | wxRect result; | |
19723 | PyObject * obj0 = 0 ; | |
19724 | char *kwnames[] = { | |
19725 | (char *) "self", NULL | |
19726 | }; | |
19727 | ||
19728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
19729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19730 | { | |
19731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19732 | result = ((wxWindow const *)arg1)->GetRect(); | |
19733 | ||
19734 | wxPyEndAllowThreads(__tstate); | |
19735 | if (PyErr_Occurred()) SWIG_fail; | |
19736 | } | |
19737 | { | |
19738 | wxRect * resultptr; | |
19739 | resultptr = new wxRect((wxRect &) result); | |
19740 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
19741 | } | |
19742 | return resultobj; | |
19743 | fail: | |
19744 | return NULL; | |
19745 | } | |
19746 | ||
19747 | ||
19748 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19749 | PyObject *resultobj; | |
19750 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19751 | wxSize result; | |
19752 | PyObject * obj0 = 0 ; | |
19753 | char *kwnames[] = { | |
19754 | (char *) "self", NULL | |
19755 | }; | |
19756 | ||
19757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
19758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19759 | { | |
19760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19761 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
19762 | ||
19763 | wxPyEndAllowThreads(__tstate); | |
19764 | if (PyErr_Occurred()) SWIG_fail; | |
19765 | } | |
19766 | { | |
19767 | wxSize * resultptr; | |
19768 | resultptr = new wxSize((wxSize &) result); | |
19769 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
19770 | } | |
19771 | return resultobj; | |
19772 | fail: | |
19773 | return NULL; | |
19774 | } | |
19775 | ||
19776 | ||
19777 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19778 | PyObject *resultobj; | |
19779 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19780 | int *arg2 = (int *) 0 ; | |
19781 | int *arg3 = (int *) 0 ; | |
19782 | int temp2 ; | |
19783 | int temp3 ; | |
19784 | PyObject * obj0 = 0 ; | |
19785 | char *kwnames[] = { | |
19786 | (char *) "self", NULL | |
19787 | }; | |
19788 | ||
19789 | arg2 = &temp2; | |
19790 | arg3 = &temp3; | |
19791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
19792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19793 | { | |
19794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19795 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
19796 | ||
19797 | wxPyEndAllowThreads(__tstate); | |
19798 | if (PyErr_Occurred()) SWIG_fail; | |
19799 | } | |
19800 | Py_INCREF(Py_None); resultobj = Py_None; | |
19801 | { | |
19802 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
19803 | resultobj = t_output_helper(resultobj,o); | |
19804 | } | |
19805 | { | |
19806 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
19807 | resultobj = t_output_helper(resultobj,o); | |
19808 | } | |
19809 | return resultobj; | |
19810 | fail: | |
19811 | return NULL; | |
19812 | } | |
19813 | ||
19814 | ||
19815 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19816 | PyObject *resultobj; | |
19817 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19818 | wxPoint result; | |
19819 | PyObject * obj0 = 0 ; | |
19820 | char *kwnames[] = { | |
19821 | (char *) "self", NULL | |
19822 | }; | |
19823 | ||
19824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
19825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19826 | { | |
19827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19828 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
19829 | ||
19830 | wxPyEndAllowThreads(__tstate); | |
19831 | if (PyErr_Occurred()) SWIG_fail; | |
19832 | } | |
19833 | { | |
19834 | wxPoint * resultptr; | |
19835 | resultptr = new wxPoint((wxPoint &) result); | |
19836 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
19837 | } | |
19838 | return resultobj; | |
19839 | fail: | |
19840 | return NULL; | |
19841 | } | |
19842 | ||
19843 | ||
19844 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19845 | PyObject *resultobj; | |
19846 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19847 | wxRect result; | |
19848 | PyObject * obj0 = 0 ; | |
19849 | char *kwnames[] = { | |
19850 | (char *) "self", NULL | |
19851 | }; | |
19852 | ||
19853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
19854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19855 | { | |
19856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19857 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
19858 | ||
19859 | wxPyEndAllowThreads(__tstate); | |
19860 | if (PyErr_Occurred()) SWIG_fail; | |
19861 | } | |
19862 | { | |
19863 | wxRect * resultptr; | |
19864 | resultptr = new wxRect((wxRect &) result); | |
19865 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
19866 | } | |
19867 | return resultobj; | |
19868 | fail: | |
19869 | return NULL; | |
19870 | } | |
19871 | ||
19872 | ||
19873 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19874 | PyObject *resultobj; | |
19875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19876 | wxSize result; | |
19877 | PyObject * obj0 = 0 ; | |
19878 | char *kwnames[] = { | |
19879 | (char *) "self", NULL | |
19880 | }; | |
19881 | ||
19882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
19883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19884 | { | |
19885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19886 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
19887 | ||
19888 | wxPyEndAllowThreads(__tstate); | |
19889 | if (PyErr_Occurred()) SWIG_fail; | |
19890 | } | |
19891 | { | |
19892 | wxSize * resultptr; | |
19893 | resultptr = new wxSize((wxSize &) result); | |
19894 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
19895 | } | |
19896 | return resultobj; | |
19897 | fail: | |
19898 | return NULL; | |
19899 | } | |
19900 | ||
19901 | ||
19902 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19903 | PyObject *resultobj; | |
19904 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19905 | int *arg2 = (int *) 0 ; | |
19906 | int *arg3 = (int *) 0 ; | |
19907 | int temp2 ; | |
19908 | int temp3 ; | |
19909 | PyObject * obj0 = 0 ; | |
19910 | char *kwnames[] = { | |
19911 | (char *) "self", NULL | |
19912 | }; | |
19913 | ||
19914 | arg2 = &temp2; | |
19915 | arg3 = &temp3; | |
19916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
19917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19918 | { | |
19919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19920 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
19921 | ||
19922 | wxPyEndAllowThreads(__tstate); | |
19923 | if (PyErr_Occurred()) SWIG_fail; | |
19924 | } | |
19925 | Py_INCREF(Py_None); resultobj = Py_None; | |
19926 | { | |
19927 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
19928 | resultobj = t_output_helper(resultobj,o); | |
19929 | } | |
19930 | { | |
19931 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
19932 | resultobj = t_output_helper(resultobj,o); | |
19933 | } | |
19934 | return resultobj; | |
19935 | fail: | |
19936 | return NULL; | |
19937 | } | |
19938 | ||
19939 | ||
19940 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19941 | PyObject *resultobj; | |
19942 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19943 | wxSize result; | |
19944 | PyObject * obj0 = 0 ; | |
19945 | char *kwnames[] = { | |
19946 | (char *) "self", NULL | |
19947 | }; | |
19948 | ||
19949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
19950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19951 | { | |
19952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19953 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
19954 | ||
19955 | wxPyEndAllowThreads(__tstate); | |
19956 | if (PyErr_Occurred()) SWIG_fail; | |
19957 | } | |
19958 | { | |
19959 | wxSize * resultptr; | |
19960 | resultptr = new wxSize((wxSize &) result); | |
19961 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
19962 | } | |
19963 | return resultobj; | |
19964 | fail: | |
19965 | return NULL; | |
19966 | } | |
19967 | ||
19968 | ||
19969 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19970 | PyObject *resultobj; | |
19971 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19972 | int arg2 = (int) wxBOTH ; | |
19973 | PyObject * obj0 = 0 ; | |
19974 | char *kwnames[] = { | |
19975 | (char *) "self",(char *) "direction", NULL | |
19976 | }; | |
19977 | ||
19978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Window_Center",kwnames,&obj0,&arg2)) goto fail; | |
19979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19980 | { | |
19981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19982 | (arg1)->Center(arg2); | |
19983 | ||
19984 | wxPyEndAllowThreads(__tstate); | |
19985 | if (PyErr_Occurred()) SWIG_fail; | |
19986 | } | |
19987 | Py_INCREF(Py_None); resultobj = Py_None; | |
19988 | return resultobj; | |
19989 | fail: | |
19990 | return NULL; | |
19991 | } | |
19992 | ||
19993 | ||
19994 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19995 | PyObject *resultobj; | |
19996 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19997 | int arg2 = (int) wxBOTH ; | |
19998 | PyObject * obj0 = 0 ; | |
19999 | char *kwnames[] = { | |
20000 | (char *) "self",(char *) "dir", NULL | |
20001 | }; | |
20002 | ||
20003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Window_CenterOnScreen",kwnames,&obj0,&arg2)) goto fail; | |
20004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20005 | { | |
20006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20007 | (arg1)->CenterOnScreen(arg2); | |
20008 | ||
20009 | wxPyEndAllowThreads(__tstate); | |
20010 | if (PyErr_Occurred()) SWIG_fail; | |
20011 | } | |
20012 | Py_INCREF(Py_None); resultobj = Py_None; | |
20013 | return resultobj; | |
20014 | fail: | |
20015 | return NULL; | |
20016 | } | |
20017 | ||
20018 | ||
20019 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20020 | PyObject *resultobj; | |
20021 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20022 | int arg2 = (int) wxBOTH ; | |
20023 | PyObject * obj0 = 0 ; | |
20024 | char *kwnames[] = { | |
20025 | (char *) "self",(char *) "dir", NULL | |
20026 | }; | |
20027 | ||
20028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Window_CenterOnParent",kwnames,&obj0,&arg2)) goto fail; | |
20029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20030 | { | |
20031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20032 | (arg1)->CenterOnParent(arg2); | |
20033 | ||
20034 | wxPyEndAllowThreads(__tstate); | |
20035 | if (PyErr_Occurred()) SWIG_fail; | |
20036 | } | |
20037 | Py_INCREF(Py_None); resultobj = Py_None; | |
20038 | return resultobj; | |
20039 | fail: | |
20040 | return NULL; | |
20041 | } | |
20042 | ||
20043 | ||
20044 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20045 | PyObject *resultobj; | |
20046 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20047 | PyObject * obj0 = 0 ; | |
20048 | char *kwnames[] = { | |
20049 | (char *) "self", NULL | |
20050 | }; | |
20051 | ||
20052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
20053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20054 | { | |
20055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20056 | (arg1)->Fit(); | |
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_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20069 | PyObject *resultobj; | |
20070 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20071 | PyObject * obj0 = 0 ; | |
20072 | char *kwnames[] = { | |
20073 | (char *) "self", NULL | |
20074 | }; | |
20075 | ||
20076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
20077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20078 | { | |
20079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20080 | (arg1)->FitInside(); | |
20081 | ||
20082 | wxPyEndAllowThreads(__tstate); | |
20083 | if (PyErr_Occurred()) SWIG_fail; | |
20084 | } | |
20085 | Py_INCREF(Py_None); resultobj = Py_None; | |
20086 | return resultobj; | |
20087 | fail: | |
20088 | return NULL; | |
20089 | } | |
20090 | ||
20091 | ||
20092 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20093 | PyObject *resultobj; | |
20094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20095 | int arg2 ; | |
20096 | int arg3 ; | |
20097 | int arg4 = (int) -1 ; | |
20098 | int arg5 = (int) -1 ; | |
20099 | int arg6 = (int) -1 ; | |
20100 | int arg7 = (int) -1 ; | |
20101 | PyObject * obj0 = 0 ; | |
20102 | char *kwnames[] = { | |
20103 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
20104 | }; | |
20105 | ||
20106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiii:Window_SetSizeHints",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
20107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20108 | { | |
20109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20110 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
20111 | ||
20112 | wxPyEndAllowThreads(__tstate); | |
20113 | if (PyErr_Occurred()) SWIG_fail; | |
20114 | } | |
20115 | Py_INCREF(Py_None); resultobj = Py_None; | |
20116 | return resultobj; | |
20117 | fail: | |
20118 | return NULL; | |
20119 | } | |
20120 | ||
20121 | ||
20122 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20123 | PyObject *resultobj; | |
20124 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20125 | int arg2 ; | |
20126 | int arg3 ; | |
20127 | int arg4 = (int) -1 ; | |
20128 | int arg5 = (int) -1 ; | |
20129 | PyObject * obj0 = 0 ; | |
20130 | char *kwnames[] = { | |
20131 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
20132 | }; | |
20133 | ||
20134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|ii:Window_SetVirtualSizeHints",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
20135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20136 | { | |
20137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20138 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
20139 | ||
20140 | wxPyEndAllowThreads(__tstate); | |
20141 | if (PyErr_Occurred()) SWIG_fail; | |
20142 | } | |
20143 | Py_INCREF(Py_None); resultobj = Py_None; | |
20144 | return resultobj; | |
20145 | fail: | |
20146 | return NULL; | |
20147 | } | |
20148 | ||
20149 | ||
20150 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20151 | PyObject *resultobj; | |
20152 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20153 | int result; | |
20154 | PyObject * obj0 = 0 ; | |
20155 | char *kwnames[] = { | |
20156 | (char *) "self", NULL | |
20157 | }; | |
20158 | ||
20159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
20160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20161 | { | |
20162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20163 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
20164 | ||
20165 | wxPyEndAllowThreads(__tstate); | |
20166 | if (PyErr_Occurred()) SWIG_fail; | |
20167 | } | |
20168 | resultobj = PyInt_FromLong((long)result); | |
20169 | return resultobj; | |
20170 | fail: | |
20171 | return NULL; | |
20172 | } | |
20173 | ||
20174 | ||
20175 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20176 | PyObject *resultobj; | |
20177 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20178 | int result; | |
20179 | PyObject * obj0 = 0 ; | |
20180 | char *kwnames[] = { | |
20181 | (char *) "self", NULL | |
20182 | }; | |
20183 | ||
20184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
20185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20186 | { | |
20187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20188 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
20189 | ||
20190 | wxPyEndAllowThreads(__tstate); | |
20191 | if (PyErr_Occurred()) SWIG_fail; | |
20192 | } | |
20193 | resultobj = PyInt_FromLong((long)result); | |
20194 | return resultobj; | |
20195 | fail: | |
20196 | return NULL; | |
20197 | } | |
20198 | ||
20199 | ||
20200 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20201 | PyObject *resultobj; | |
20202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20203 | int result; | |
20204 | PyObject * obj0 = 0 ; | |
20205 | char *kwnames[] = { | |
20206 | (char *) "self", NULL | |
20207 | }; | |
20208 | ||
20209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
20210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20211 | { | |
20212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20213 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
20214 | ||
20215 | wxPyEndAllowThreads(__tstate); | |
20216 | if (PyErr_Occurred()) SWIG_fail; | |
20217 | } | |
20218 | resultobj = PyInt_FromLong((long)result); | |
20219 | return resultobj; | |
20220 | fail: | |
20221 | return NULL; | |
20222 | } | |
20223 | ||
20224 | ||
20225 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20226 | PyObject *resultobj; | |
20227 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20228 | int result; | |
20229 | PyObject * obj0 = 0 ; | |
20230 | char *kwnames[] = { | |
20231 | (char *) "self", NULL | |
20232 | }; | |
20233 | ||
20234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
20235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20236 | { | |
20237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20238 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
20239 | ||
20240 | wxPyEndAllowThreads(__tstate); | |
20241 | if (PyErr_Occurred()) SWIG_fail; | |
20242 | } | |
20243 | resultobj = PyInt_FromLong((long)result); | |
20244 | return resultobj; | |
20245 | fail: | |
20246 | return NULL; | |
20247 | } | |
20248 | ||
20249 | ||
20250 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20251 | PyObject *resultobj; | |
20252 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20253 | wxSize result; | |
20254 | PyObject * obj0 = 0 ; | |
20255 | char *kwnames[] = { | |
20256 | (char *) "self", NULL | |
20257 | }; | |
20258 | ||
20259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
20260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20261 | { | |
20262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20263 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
20264 | ||
20265 | wxPyEndAllowThreads(__tstate); | |
20266 | if (PyErr_Occurred()) SWIG_fail; | |
20267 | } | |
20268 | { | |
20269 | wxSize * resultptr; | |
20270 | resultptr = new wxSize((wxSize &) result); | |
20271 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20272 | } | |
20273 | return resultobj; | |
20274 | fail: | |
20275 | return NULL; | |
20276 | } | |
20277 | ||
20278 | ||
20279 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20280 | PyObject *resultobj; | |
20281 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20282 | wxSize *arg2 = 0 ; | |
20283 | wxSize temp2 ; | |
20284 | PyObject * obj0 = 0 ; | |
20285 | PyObject * obj1 = 0 ; | |
20286 | char *kwnames[] = { | |
20287 | (char *) "self",(char *) "size", NULL | |
20288 | }; | |
20289 | ||
20290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
20291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20292 | { | |
20293 | arg2 = &temp2; | |
20294 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20295 | } | |
20296 | { | |
20297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20298 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
20299 | ||
20300 | wxPyEndAllowThreads(__tstate); | |
20301 | if (PyErr_Occurred()) SWIG_fail; | |
20302 | } | |
20303 | Py_INCREF(Py_None); resultobj = Py_None; | |
20304 | return resultobj; | |
20305 | fail: | |
20306 | return NULL; | |
20307 | } | |
20308 | ||
20309 | ||
20310 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20311 | PyObject *resultobj; | |
20312 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20313 | int arg2 ; | |
20314 | int arg3 ; | |
20315 | PyObject * obj0 = 0 ; | |
20316 | char *kwnames[] = { | |
20317 | (char *) "self",(char *) "w",(char *) "h", NULL | |
20318 | }; | |
20319 | ||
20320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_SetVirtualSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
20321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20322 | { | |
20323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20324 | (arg1)->SetVirtualSize(arg2,arg3); | |
20325 | ||
20326 | wxPyEndAllowThreads(__tstate); | |
20327 | if (PyErr_Occurred()) SWIG_fail; | |
20328 | } | |
20329 | Py_INCREF(Py_None); resultobj = Py_None; | |
20330 | return resultobj; | |
20331 | fail: | |
20332 | return NULL; | |
20333 | } | |
20334 | ||
20335 | ||
20336 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20337 | PyObject *resultobj; | |
20338 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20339 | wxSize result; | |
20340 | PyObject * obj0 = 0 ; | |
20341 | char *kwnames[] = { | |
20342 | (char *) "self", NULL | |
20343 | }; | |
20344 | ||
20345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
20346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20347 | { | |
20348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20349 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
20350 | ||
20351 | wxPyEndAllowThreads(__tstate); | |
20352 | if (PyErr_Occurred()) SWIG_fail; | |
20353 | } | |
20354 | { | |
20355 | wxSize * resultptr; | |
20356 | resultptr = new wxSize((wxSize &) result); | |
20357 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20358 | } | |
20359 | return resultobj; | |
20360 | fail: | |
20361 | return NULL; | |
20362 | } | |
20363 | ||
20364 | ||
20365 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20366 | PyObject *resultobj; | |
20367 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20368 | int *arg2 = (int *) 0 ; | |
20369 | int *arg3 = (int *) 0 ; | |
20370 | int temp2 ; | |
20371 | int temp3 ; | |
20372 | PyObject * obj0 = 0 ; | |
20373 | char *kwnames[] = { | |
20374 | (char *) "self", NULL | |
20375 | }; | |
20376 | ||
20377 | arg2 = &temp2; | |
20378 | arg3 = &temp3; | |
20379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
20380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20381 | { | |
20382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20383 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
20384 | ||
20385 | wxPyEndAllowThreads(__tstate); | |
20386 | if (PyErr_Occurred()) SWIG_fail; | |
20387 | } | |
20388 | Py_INCREF(Py_None); resultobj = Py_None; | |
20389 | { | |
20390 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20391 | resultobj = t_output_helper(resultobj,o); | |
20392 | } | |
20393 | { | |
20394 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20395 | resultobj = t_output_helper(resultobj,o); | |
20396 | } | |
20397 | return resultobj; | |
20398 | fail: | |
20399 | return NULL; | |
20400 | } | |
20401 | ||
20402 | ||
20403 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20404 | PyObject *resultobj; | |
20405 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20406 | wxSize result; | |
20407 | PyObject * obj0 = 0 ; | |
20408 | char *kwnames[] = { | |
20409 | (char *) "self", NULL | |
20410 | }; | |
20411 | ||
20412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
20413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20414 | { | |
20415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20416 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
20417 | ||
20418 | wxPyEndAllowThreads(__tstate); | |
20419 | if (PyErr_Occurred()) SWIG_fail; | |
20420 | } | |
20421 | { | |
20422 | wxSize * resultptr; | |
20423 | resultptr = new wxSize((wxSize &) result); | |
20424 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20425 | } | |
20426 | return resultobj; | |
20427 | fail: | |
20428 | return NULL; | |
20429 | } | |
20430 | ||
20431 | ||
20432 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20433 | PyObject *resultobj; | |
20434 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20435 | bool arg2 = (bool) TRUE ; | |
20436 | bool result; | |
20437 | PyObject * obj0 = 0 ; | |
20438 | PyObject * obj1 = 0 ; | |
20439 | char *kwnames[] = { | |
20440 | (char *) "self",(char *) "show", NULL | |
20441 | }; | |
20442 | ||
20443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
20444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20445 | if (obj1) { | |
20446 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
20447 | if (PyErr_Occurred()) SWIG_fail; | |
20448 | } | |
20449 | { | |
20450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20451 | result = (bool)(arg1)->Show(arg2); | |
20452 | ||
20453 | wxPyEndAllowThreads(__tstate); | |
20454 | if (PyErr_Occurred()) SWIG_fail; | |
20455 | } | |
20456 | resultobj = PyInt_FromLong((long)result); | |
20457 | return resultobj; | |
20458 | fail: | |
20459 | return NULL; | |
20460 | } | |
20461 | ||
20462 | ||
20463 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20464 | PyObject *resultobj; | |
20465 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20466 | bool result; | |
20467 | PyObject * obj0 = 0 ; | |
20468 | char *kwnames[] = { | |
20469 | (char *) "self", NULL | |
20470 | }; | |
20471 | ||
20472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
20473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20474 | { | |
20475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20476 | result = (bool)(arg1)->Hide(); | |
20477 | ||
20478 | wxPyEndAllowThreads(__tstate); | |
20479 | if (PyErr_Occurred()) SWIG_fail; | |
20480 | } | |
20481 | resultobj = PyInt_FromLong((long)result); | |
20482 | return resultobj; | |
20483 | fail: | |
20484 | return NULL; | |
20485 | } | |
20486 | ||
20487 | ||
20488 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20489 | PyObject *resultobj; | |
20490 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20491 | bool arg2 = (bool) TRUE ; | |
20492 | bool result; | |
20493 | PyObject * obj0 = 0 ; | |
20494 | PyObject * obj1 = 0 ; | |
20495 | char *kwnames[] = { | |
20496 | (char *) "self",(char *) "enable", NULL | |
20497 | }; | |
20498 | ||
20499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
20500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20501 | if (obj1) { | |
20502 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
20503 | if (PyErr_Occurred()) SWIG_fail; | |
20504 | } | |
20505 | { | |
20506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20507 | result = (bool)(arg1)->Enable(arg2); | |
20508 | ||
20509 | wxPyEndAllowThreads(__tstate); | |
20510 | if (PyErr_Occurred()) SWIG_fail; | |
20511 | } | |
20512 | resultobj = PyInt_FromLong((long)result); | |
20513 | return resultobj; | |
20514 | fail: | |
20515 | return NULL; | |
20516 | } | |
20517 | ||
20518 | ||
20519 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20520 | PyObject *resultobj; | |
20521 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20522 | bool result; | |
20523 | PyObject * obj0 = 0 ; | |
20524 | char *kwnames[] = { | |
20525 | (char *) "self", NULL | |
20526 | }; | |
20527 | ||
20528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
20529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20530 | { | |
20531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20532 | result = (bool)(arg1)->Disable(); | |
20533 | ||
20534 | wxPyEndAllowThreads(__tstate); | |
20535 | if (PyErr_Occurred()) SWIG_fail; | |
20536 | } | |
20537 | resultobj = PyInt_FromLong((long)result); | |
20538 | return resultobj; | |
20539 | fail: | |
20540 | return NULL; | |
20541 | } | |
20542 | ||
20543 | ||
20544 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20545 | PyObject *resultobj; | |
20546 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20547 | bool result; | |
20548 | PyObject * obj0 = 0 ; | |
20549 | char *kwnames[] = { | |
20550 | (char *) "self", NULL | |
20551 | }; | |
20552 | ||
20553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
20554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20555 | { | |
20556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20557 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
20558 | ||
20559 | wxPyEndAllowThreads(__tstate); | |
20560 | if (PyErr_Occurred()) SWIG_fail; | |
20561 | } | |
20562 | resultobj = PyInt_FromLong((long)result); | |
20563 | return resultobj; | |
20564 | fail: | |
20565 | return NULL; | |
20566 | } | |
20567 | ||
20568 | ||
20569 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20570 | PyObject *resultobj; | |
20571 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20572 | bool result; | |
20573 | PyObject * obj0 = 0 ; | |
20574 | char *kwnames[] = { | |
20575 | (char *) "self", NULL | |
20576 | }; | |
20577 | ||
20578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
20579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20580 | { | |
20581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20582 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
20583 | ||
20584 | wxPyEndAllowThreads(__tstate); | |
20585 | if (PyErr_Occurred()) SWIG_fail; | |
20586 | } | |
20587 | resultobj = PyInt_FromLong((long)result); | |
20588 | return resultobj; | |
20589 | fail: | |
20590 | return NULL; | |
20591 | } | |
20592 | ||
20593 | ||
20594 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20595 | PyObject *resultobj; | |
20596 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20597 | long arg2 ; | |
20598 | PyObject * obj0 = 0 ; | |
20599 | char *kwnames[] = { | |
20600 | (char *) "self",(char *) "style", NULL | |
20601 | }; | |
20602 | ||
20603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_SetWindowStyleFlag",kwnames,&obj0,&arg2)) goto fail; | |
20604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20605 | { | |
20606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20607 | (arg1)->SetWindowStyleFlag(arg2); | |
20608 | ||
20609 | wxPyEndAllowThreads(__tstate); | |
20610 | if (PyErr_Occurred()) SWIG_fail; | |
20611 | } | |
20612 | Py_INCREF(Py_None); resultobj = Py_None; | |
20613 | return resultobj; | |
20614 | fail: | |
20615 | return NULL; | |
20616 | } | |
20617 | ||
20618 | ||
20619 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20620 | PyObject *resultobj; | |
20621 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20622 | long result; | |
20623 | PyObject * obj0 = 0 ; | |
20624 | char *kwnames[] = { | |
20625 | (char *) "self", NULL | |
20626 | }; | |
20627 | ||
20628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
20629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20630 | { | |
20631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20632 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
20633 | ||
20634 | wxPyEndAllowThreads(__tstate); | |
20635 | if (PyErr_Occurred()) SWIG_fail; | |
20636 | } | |
20637 | resultobj = PyInt_FromLong((long)result); | |
20638 | return resultobj; | |
20639 | fail: | |
20640 | return NULL; | |
20641 | } | |
20642 | ||
20643 | ||
20644 | static PyObject *_wrap_Window_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20645 | PyObject *resultobj; | |
20646 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20647 | long arg2 ; | |
20648 | PyObject * obj0 = 0 ; | |
20649 | char *kwnames[] = { | |
20650 | (char *) "self",(char *) "style", NULL | |
20651 | }; | |
20652 | ||
20653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_SetWindowStyle",kwnames,&obj0,&arg2)) goto fail; | |
20654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20655 | { | |
20656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20657 | (arg1)->SetWindowStyle(arg2); | |
20658 | ||
20659 | wxPyEndAllowThreads(__tstate); | |
20660 | if (PyErr_Occurred()) SWIG_fail; | |
20661 | } | |
20662 | Py_INCREF(Py_None); resultobj = Py_None; | |
20663 | return resultobj; | |
20664 | fail: | |
20665 | return NULL; | |
20666 | } | |
20667 | ||
20668 | ||
20669 | static PyObject *_wrap_Window_GetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20670 | PyObject *resultobj; | |
20671 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20672 | long result; | |
20673 | PyObject * obj0 = 0 ; | |
20674 | char *kwnames[] = { | |
20675 | (char *) "self", NULL | |
20676 | }; | |
20677 | ||
20678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyle",kwnames,&obj0)) goto fail; | |
20679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20680 | { | |
20681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20682 | result = (long)((wxWindow const *)arg1)->GetWindowStyle(); | |
20683 | ||
20684 | wxPyEndAllowThreads(__tstate); | |
20685 | if (PyErr_Occurred()) SWIG_fail; | |
20686 | } | |
20687 | resultobj = PyInt_FromLong((long)result); | |
20688 | return resultobj; | |
20689 | fail: | |
20690 | return NULL; | |
20691 | } | |
20692 | ||
20693 | ||
20694 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20695 | PyObject *resultobj; | |
20696 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20697 | int arg2 ; | |
20698 | bool result; | |
20699 | PyObject * obj0 = 0 ; | |
20700 | char *kwnames[] = { | |
20701 | (char *) "self",(char *) "flag", NULL | |
20702 | }; | |
20703 | ||
20704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_HasFlag",kwnames,&obj0,&arg2)) goto fail; | |
20705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20706 | { | |
20707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20708 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
20709 | ||
20710 | wxPyEndAllowThreads(__tstate); | |
20711 | if (PyErr_Occurred()) SWIG_fail; | |
20712 | } | |
20713 | resultobj = PyInt_FromLong((long)result); | |
20714 | return resultobj; | |
20715 | fail: | |
20716 | return NULL; | |
20717 | } | |
20718 | ||
20719 | ||
20720 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20721 | PyObject *resultobj; | |
20722 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20723 | bool result; | |
20724 | PyObject * obj0 = 0 ; | |
20725 | char *kwnames[] = { | |
20726 | (char *) "self", NULL | |
20727 | }; | |
20728 | ||
20729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
20730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20731 | { | |
20732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20733 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
20734 | ||
20735 | wxPyEndAllowThreads(__tstate); | |
20736 | if (PyErr_Occurred()) SWIG_fail; | |
20737 | } | |
20738 | resultobj = PyInt_FromLong((long)result); | |
20739 | return resultobj; | |
20740 | fail: | |
20741 | return NULL; | |
20742 | } | |
20743 | ||
20744 | ||
20745 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20746 | PyObject *resultobj; | |
20747 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20748 | long arg2 ; | |
20749 | PyObject * obj0 = 0 ; | |
20750 | char *kwnames[] = { | |
20751 | (char *) "self",(char *) "exStyle", NULL | |
20752 | }; | |
20753 | ||
20754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_SetExtraStyle",kwnames,&obj0,&arg2)) goto fail; | |
20755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20756 | { | |
20757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20758 | (arg1)->SetExtraStyle(arg2); | |
20759 | ||
20760 | wxPyEndAllowThreads(__tstate); | |
20761 | if (PyErr_Occurred()) SWIG_fail; | |
20762 | } | |
20763 | Py_INCREF(Py_None); resultobj = Py_None; | |
20764 | return resultobj; | |
20765 | fail: | |
20766 | return NULL; | |
20767 | } | |
20768 | ||
20769 | ||
20770 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20771 | PyObject *resultobj; | |
20772 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20773 | long result; | |
20774 | PyObject * obj0 = 0 ; | |
20775 | char *kwnames[] = { | |
20776 | (char *) "self", NULL | |
20777 | }; | |
20778 | ||
20779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
20780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20781 | { | |
20782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20783 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
20784 | ||
20785 | wxPyEndAllowThreads(__tstate); | |
20786 | if (PyErr_Occurred()) SWIG_fail; | |
20787 | } | |
20788 | resultobj = PyInt_FromLong((long)result); | |
20789 | return resultobj; | |
20790 | fail: | |
20791 | return NULL; | |
20792 | } | |
20793 | ||
20794 | ||
20795 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20796 | PyObject *resultobj; | |
20797 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20798 | bool arg2 = (bool) TRUE ; | |
20799 | PyObject * obj0 = 0 ; | |
20800 | PyObject * obj1 = 0 ; | |
20801 | char *kwnames[] = { | |
20802 | (char *) "self",(char *) "modal", NULL | |
20803 | }; | |
20804 | ||
20805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
20806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20807 | if (obj1) { | |
20808 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
20809 | if (PyErr_Occurred()) SWIG_fail; | |
20810 | } | |
20811 | { | |
20812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20813 | (arg1)->MakeModal(arg2); | |
20814 | ||
20815 | wxPyEndAllowThreads(__tstate); | |
20816 | if (PyErr_Occurred()) SWIG_fail; | |
20817 | } | |
20818 | Py_INCREF(Py_None); resultobj = Py_None; | |
20819 | return resultobj; | |
20820 | fail: | |
20821 | return NULL; | |
20822 | } | |
20823 | ||
20824 | ||
20825 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20826 | PyObject *resultobj; | |
20827 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20828 | bool arg2 ; | |
20829 | PyObject * obj0 = 0 ; | |
20830 | PyObject * obj1 = 0 ; | |
20831 | char *kwnames[] = { | |
20832 | (char *) "self",(char *) "enableTheme", NULL | |
20833 | }; | |
20834 | ||
20835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
20836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20837 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
20838 | if (PyErr_Occurred()) SWIG_fail; | |
20839 | { | |
20840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20841 | (arg1)->SetThemeEnabled(arg2); | |
20842 | ||
20843 | wxPyEndAllowThreads(__tstate); | |
20844 | if (PyErr_Occurred()) SWIG_fail; | |
20845 | } | |
20846 | Py_INCREF(Py_None); resultobj = Py_None; | |
20847 | return resultobj; | |
20848 | fail: | |
20849 | return NULL; | |
20850 | } | |
20851 | ||
20852 | ||
20853 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20854 | PyObject *resultobj; | |
20855 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20856 | bool result; | |
20857 | PyObject * obj0 = 0 ; | |
20858 | char *kwnames[] = { | |
20859 | (char *) "self", NULL | |
20860 | }; | |
20861 | ||
20862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
20863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20864 | { | |
20865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20866 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
20867 | ||
20868 | wxPyEndAllowThreads(__tstate); | |
20869 | if (PyErr_Occurred()) SWIG_fail; | |
20870 | } | |
20871 | resultobj = PyInt_FromLong((long)result); | |
20872 | return resultobj; | |
20873 | fail: | |
20874 | return NULL; | |
20875 | } | |
20876 | ||
20877 | ||
20878 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20879 | PyObject *resultobj; | |
20880 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20881 | bool result; | |
20882 | PyObject * obj0 = 0 ; | |
20883 | char *kwnames[] = { | |
20884 | (char *) "self", NULL | |
20885 | }; | |
20886 | ||
20887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
20888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20889 | { | |
20890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20891 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
20892 | ||
20893 | wxPyEndAllowThreads(__tstate); | |
20894 | if (PyErr_Occurred()) SWIG_fail; | |
20895 | } | |
20896 | resultobj = PyInt_FromLong((long)result); | |
20897 | return resultobj; | |
20898 | fail: | |
20899 | return NULL; | |
20900 | } | |
20901 | ||
20902 | ||
20903 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20904 | PyObject *resultobj; | |
20905 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20906 | PyObject * obj0 = 0 ; | |
20907 | char *kwnames[] = { | |
20908 | (char *) "self", NULL | |
20909 | }; | |
20910 | ||
20911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
20912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20913 | { | |
20914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20915 | (arg1)->SetFocus(); | |
20916 | ||
20917 | wxPyEndAllowThreads(__tstate); | |
20918 | if (PyErr_Occurred()) SWIG_fail; | |
20919 | } | |
20920 | Py_INCREF(Py_None); resultobj = Py_None; | |
20921 | return resultobj; | |
20922 | fail: | |
20923 | return NULL; | |
20924 | } | |
20925 | ||
20926 | ||
20927 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20928 | PyObject *resultobj; | |
20929 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20930 | PyObject * obj0 = 0 ; | |
20931 | char *kwnames[] = { | |
20932 | (char *) "self", NULL | |
20933 | }; | |
20934 | ||
20935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
20936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20937 | { | |
20938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20939 | (arg1)->SetFocusFromKbd(); | |
20940 | ||
20941 | wxPyEndAllowThreads(__tstate); | |
20942 | if (PyErr_Occurred()) SWIG_fail; | |
20943 | } | |
20944 | Py_INCREF(Py_None); resultobj = Py_None; | |
20945 | return resultobj; | |
20946 | fail: | |
20947 | return NULL; | |
20948 | } | |
20949 | ||
20950 | ||
20951 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20952 | PyObject *resultobj; | |
20953 | wxWindow *result; | |
20954 | char *kwnames[] = { | |
20955 | NULL | |
20956 | }; | |
20957 | ||
20958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
20959 | { | |
20960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20961 | result = (wxWindow *)wxWindow::FindFocus(); | |
20962 | ||
20963 | wxPyEndAllowThreads(__tstate); | |
20964 | if (PyErr_Occurred()) SWIG_fail; | |
20965 | } | |
20966 | { | |
20967 | resultobj = wxPyMake_wxObject(result); | |
20968 | } | |
20969 | return resultobj; | |
20970 | fail: | |
20971 | return NULL; | |
20972 | } | |
20973 | ||
20974 | ||
20975 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20976 | PyObject *resultobj; | |
20977 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20978 | bool result; | |
20979 | PyObject * obj0 = 0 ; | |
20980 | char *kwnames[] = { | |
20981 | (char *) "self", NULL | |
20982 | }; | |
20983 | ||
20984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
20985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20986 | { | |
20987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20988 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
20989 | ||
20990 | wxPyEndAllowThreads(__tstate); | |
20991 | if (PyErr_Occurred()) SWIG_fail; | |
20992 | } | |
20993 | resultobj = PyInt_FromLong((long)result); | |
20994 | return resultobj; | |
20995 | fail: | |
20996 | return NULL; | |
20997 | } | |
20998 | ||
20999 | ||
21000 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21001 | PyObject *resultobj; | |
21002 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21003 | bool result; | |
21004 | PyObject * obj0 = 0 ; | |
21005 | char *kwnames[] = { | |
21006 | (char *) "self", NULL | |
21007 | }; | |
21008 | ||
21009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
21010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21011 | { | |
21012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21013 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
21014 | ||
21015 | wxPyEndAllowThreads(__tstate); | |
21016 | if (PyErr_Occurred()) SWIG_fail; | |
21017 | } | |
21018 | resultobj = PyInt_FromLong((long)result); | |
21019 | return resultobj; | |
21020 | fail: | |
21021 | return NULL; | |
21022 | } | |
21023 | ||
21024 | ||
21025 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21026 | PyObject *resultobj; | |
21027 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21028 | wxWindow *result; | |
21029 | PyObject * obj0 = 0 ; | |
21030 | char *kwnames[] = { | |
21031 | (char *) "self", NULL | |
21032 | }; | |
21033 | ||
21034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
21035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21036 | { | |
21037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21038 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
21039 | ||
21040 | wxPyEndAllowThreads(__tstate); | |
21041 | if (PyErr_Occurred()) SWIG_fail; | |
21042 | } | |
21043 | { | |
21044 | resultobj = wxPyMake_wxObject(result); | |
21045 | } | |
21046 | return resultobj; | |
21047 | fail: | |
21048 | return NULL; | |
21049 | } | |
21050 | ||
21051 | ||
21052 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21053 | PyObject *resultobj; | |
21054 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21055 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21056 | wxWindow *result; | |
21057 | PyObject * obj0 = 0 ; | |
21058 | PyObject * obj1 = 0 ; | |
21059 | char *kwnames[] = { | |
21060 | (char *) "self",(char *) "child", NULL | |
21061 | }; | |
21062 | ||
21063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
21064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21065 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21066 | { | |
21067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21068 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
21069 | ||
21070 | wxPyEndAllowThreads(__tstate); | |
21071 | if (PyErr_Occurred()) SWIG_fail; | |
21072 | } | |
21073 | { | |
21074 | resultobj = wxPyMake_wxObject(result); | |
21075 | } | |
21076 | return resultobj; | |
21077 | fail: | |
21078 | return NULL; | |
21079 | } | |
21080 | ||
21081 | ||
21082 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21083 | PyObject *resultobj; | |
21084 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21085 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21086 | PyObject * obj0 = 0 ; | |
21087 | PyObject * obj1 = 0 ; | |
21088 | char *kwnames[] = { | |
21089 | (char *) "self",(char *) "win", NULL | |
21090 | }; | |
21091 | ||
21092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
21093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21094 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21095 | { | |
21096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21097 | (arg1)->SetTmpDefaultItem(arg2); | |
21098 | ||
21099 | wxPyEndAllowThreads(__tstate); | |
21100 | if (PyErr_Occurred()) SWIG_fail; | |
21101 | } | |
21102 | Py_INCREF(Py_None); resultobj = Py_None; | |
21103 | return resultobj; | |
21104 | fail: | |
21105 | return NULL; | |
21106 | } | |
21107 | ||
21108 | ||
21109 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21110 | PyObject *resultobj; | |
21111 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21112 | PyObject *result; | |
21113 | PyObject * obj0 = 0 ; | |
21114 | char *kwnames[] = { | |
21115 | (char *) "self", NULL | |
21116 | }; | |
21117 | ||
21118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
21119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21120 | { | |
21121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21122 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
21123 | ||
21124 | wxPyEndAllowThreads(__tstate); | |
21125 | if (PyErr_Occurred()) SWIG_fail; | |
21126 | } | |
21127 | resultobj = result; | |
21128 | return resultobj; | |
21129 | fail: | |
21130 | return NULL; | |
21131 | } | |
21132 | ||
21133 | ||
21134 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21135 | PyObject *resultobj; | |
21136 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21137 | wxWindow *result; | |
21138 | PyObject * obj0 = 0 ; | |
21139 | char *kwnames[] = { | |
21140 | (char *) "self", NULL | |
21141 | }; | |
21142 | ||
21143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
21144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21145 | { | |
21146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21147 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
21148 | ||
21149 | wxPyEndAllowThreads(__tstate); | |
21150 | if (PyErr_Occurred()) SWIG_fail; | |
21151 | } | |
21152 | { | |
21153 | resultobj = wxPyMake_wxObject(result); | |
21154 | } | |
21155 | return resultobj; | |
21156 | fail: | |
21157 | return NULL; | |
21158 | } | |
21159 | ||
21160 | ||
21161 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21162 | PyObject *resultobj; | |
21163 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21164 | wxWindow *result; | |
21165 | PyObject * obj0 = 0 ; | |
21166 | char *kwnames[] = { | |
21167 | (char *) "self", NULL | |
21168 | }; | |
21169 | ||
21170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
21171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21172 | { | |
21173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21174 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
21175 | ||
21176 | wxPyEndAllowThreads(__tstate); | |
21177 | if (PyErr_Occurred()) SWIG_fail; | |
21178 | } | |
21179 | { | |
21180 | resultobj = wxPyMake_wxObject(result); | |
21181 | } | |
21182 | return resultobj; | |
21183 | fail: | |
21184 | return NULL; | |
21185 | } | |
21186 | ||
21187 | ||
21188 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21189 | PyObject *resultobj; | |
21190 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21191 | bool result; | |
21192 | PyObject * obj0 = 0 ; | |
21193 | char *kwnames[] = { | |
21194 | (char *) "self", NULL | |
21195 | }; | |
21196 | ||
21197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
21198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21199 | { | |
21200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21201 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
21202 | ||
21203 | wxPyEndAllowThreads(__tstate); | |
21204 | if (PyErr_Occurred()) SWIG_fail; | |
21205 | } | |
21206 | resultobj = PyInt_FromLong((long)result); | |
21207 | return resultobj; | |
21208 | fail: | |
21209 | return NULL; | |
21210 | } | |
21211 | ||
21212 | ||
21213 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21214 | PyObject *resultobj; | |
21215 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21216 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21217 | bool result; | |
21218 | PyObject * obj0 = 0 ; | |
21219 | PyObject * obj1 = 0 ; | |
21220 | char *kwnames[] = { | |
21221 | (char *) "self",(char *) "newParent", NULL | |
21222 | }; | |
21223 | ||
21224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
21225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21226 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21227 | { | |
21228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21229 | result = (bool)(arg1)->Reparent(arg2); | |
21230 | ||
21231 | wxPyEndAllowThreads(__tstate); | |
21232 | if (PyErr_Occurred()) SWIG_fail; | |
21233 | } | |
21234 | resultobj = PyInt_FromLong((long)result); | |
21235 | return resultobj; | |
21236 | fail: | |
21237 | return NULL; | |
21238 | } | |
21239 | ||
21240 | ||
21241 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21242 | PyObject *resultobj; | |
21243 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21244 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21245 | PyObject * obj0 = 0 ; | |
21246 | PyObject * obj1 = 0 ; | |
21247 | char *kwnames[] = { | |
21248 | (char *) "self",(char *) "child", NULL | |
21249 | }; | |
21250 | ||
21251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
21252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21253 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21254 | { | |
21255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21256 | (arg1)->AddChild(arg2); | |
21257 | ||
21258 | wxPyEndAllowThreads(__tstate); | |
21259 | if (PyErr_Occurred()) SWIG_fail; | |
21260 | } | |
21261 | Py_INCREF(Py_None); resultobj = Py_None; | |
21262 | return resultobj; | |
21263 | fail: | |
21264 | return NULL; | |
21265 | } | |
21266 | ||
21267 | ||
21268 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21269 | PyObject *resultobj; | |
21270 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21271 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21272 | PyObject * obj0 = 0 ; | |
21273 | PyObject * obj1 = 0 ; | |
21274 | char *kwnames[] = { | |
21275 | (char *) "self",(char *) "child", NULL | |
21276 | }; | |
21277 | ||
21278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
21279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21280 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21281 | { | |
21282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21283 | (arg1)->RemoveChild(arg2); | |
21284 | ||
21285 | wxPyEndAllowThreads(__tstate); | |
21286 | if (PyErr_Occurred()) SWIG_fail; | |
21287 | } | |
21288 | Py_INCREF(Py_None); resultobj = Py_None; | |
21289 | return resultobj; | |
21290 | fail: | |
21291 | return NULL; | |
21292 | } | |
21293 | ||
21294 | ||
21295 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21296 | PyObject *resultobj; | |
21297 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21298 | long arg2 ; | |
21299 | wxWindow *result; | |
21300 | PyObject * obj0 = 0 ; | |
21301 | char *kwnames[] = { | |
21302 | (char *) "self",(char *) "winid", NULL | |
21303 | }; | |
21304 | ||
21305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_FindWindowById",kwnames,&obj0,&arg2)) goto fail; | |
21306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21307 | { | |
21308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21309 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
21310 | ||
21311 | wxPyEndAllowThreads(__tstate); | |
21312 | if (PyErr_Occurred()) SWIG_fail; | |
21313 | } | |
21314 | { | |
21315 | resultobj = wxPyMake_wxObject(result); | |
21316 | } | |
21317 | return resultobj; | |
21318 | fail: | |
21319 | return NULL; | |
21320 | } | |
21321 | ||
21322 | ||
21323 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21324 | PyObject *resultobj; | |
21325 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21326 | wxString *arg2 = 0 ; | |
21327 | wxWindow *result; | |
21328 | bool temp2 = false ; | |
21329 | PyObject * obj0 = 0 ; | |
21330 | PyObject * obj1 = 0 ; | |
21331 | char *kwnames[] = { | |
21332 | (char *) "self",(char *) "name", NULL | |
21333 | }; | |
21334 | ||
21335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
21336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21337 | { | |
21338 | arg2 = wxString_in_helper(obj1); | |
21339 | if (arg2 == NULL) SWIG_fail; | |
21340 | temp2 = true; | |
21341 | } | |
21342 | { | |
21343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21344 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
21345 | ||
21346 | wxPyEndAllowThreads(__tstate); | |
21347 | if (PyErr_Occurred()) SWIG_fail; | |
21348 | } | |
21349 | { | |
21350 | resultobj = wxPyMake_wxObject(result); | |
21351 | } | |
21352 | { | |
21353 | if (temp2) | |
21354 | delete arg2; | |
21355 | } | |
21356 | return resultobj; | |
21357 | fail: | |
21358 | { | |
21359 | if (temp2) | |
21360 | delete arg2; | |
21361 | } | |
21362 | return NULL; | |
21363 | } | |
21364 | ||
21365 | ||
21366 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21367 | PyObject *resultobj; | |
21368 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21369 | wxEvtHandler *result; | |
21370 | PyObject * obj0 = 0 ; | |
21371 | char *kwnames[] = { | |
21372 | (char *) "self", NULL | |
21373 | }; | |
21374 | ||
21375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
21376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21377 | { | |
21378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21379 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
21380 | ||
21381 | wxPyEndAllowThreads(__tstate); | |
21382 | if (PyErr_Occurred()) SWIG_fail; | |
21383 | } | |
21384 | { | |
21385 | resultobj = wxPyMake_wxObject(result); | |
21386 | } | |
21387 | return resultobj; | |
21388 | fail: | |
21389 | return NULL; | |
21390 | } | |
21391 | ||
21392 | ||
21393 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21394 | PyObject *resultobj; | |
21395 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21396 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
21397 | PyObject * obj0 = 0 ; | |
21398 | PyObject * obj1 = 0 ; | |
21399 | char *kwnames[] = { | |
21400 | (char *) "self",(char *) "handler", NULL | |
21401 | }; | |
21402 | ||
21403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
21404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21405 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21406 | { | |
21407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21408 | (arg1)->SetEventHandler(arg2); | |
21409 | ||
21410 | wxPyEndAllowThreads(__tstate); | |
21411 | if (PyErr_Occurred()) SWIG_fail; | |
21412 | } | |
21413 | Py_INCREF(Py_None); resultobj = Py_None; | |
21414 | return resultobj; | |
21415 | fail: | |
21416 | return NULL; | |
21417 | } | |
21418 | ||
21419 | ||
21420 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21421 | PyObject *resultobj; | |
21422 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21423 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
21424 | PyObject * obj0 = 0 ; | |
21425 | PyObject * obj1 = 0 ; | |
21426 | char *kwnames[] = { | |
21427 | (char *) "self",(char *) "handler", NULL | |
21428 | }; | |
21429 | ||
21430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
21431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21432 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21433 | { | |
21434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21435 | (arg1)->PushEventHandler(arg2); | |
21436 | ||
21437 | wxPyEndAllowThreads(__tstate); | |
21438 | if (PyErr_Occurred()) SWIG_fail; | |
21439 | } | |
21440 | Py_INCREF(Py_None); resultobj = Py_None; | |
21441 | return resultobj; | |
21442 | fail: | |
21443 | return NULL; | |
21444 | } | |
21445 | ||
21446 | ||
21447 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21448 | PyObject *resultobj; | |
21449 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21450 | bool arg2 = (bool) FALSE ; | |
21451 | wxEvtHandler *result; | |
21452 | PyObject * obj0 = 0 ; | |
21453 | PyObject * obj1 = 0 ; | |
21454 | char *kwnames[] = { | |
21455 | (char *) "self",(char *) "deleteHandler", NULL | |
21456 | }; | |
21457 | ||
21458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
21459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21460 | if (obj1) { | |
21461 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
21462 | if (PyErr_Occurred()) SWIG_fail; | |
21463 | } | |
21464 | { | |
21465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21466 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
21467 | ||
21468 | wxPyEndAllowThreads(__tstate); | |
21469 | if (PyErr_Occurred()) SWIG_fail; | |
21470 | } | |
21471 | { | |
21472 | resultobj = wxPyMake_wxObject(result); | |
21473 | } | |
21474 | return resultobj; | |
21475 | fail: | |
21476 | return NULL; | |
21477 | } | |
21478 | ||
21479 | ||
21480 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21481 | PyObject *resultobj; | |
21482 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21483 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
21484 | bool result; | |
21485 | PyObject * obj0 = 0 ; | |
21486 | PyObject * obj1 = 0 ; | |
21487 | char *kwnames[] = { | |
21488 | (char *) "self",(char *) "handler", NULL | |
21489 | }; | |
21490 | ||
21491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
21492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21493 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21494 | { | |
21495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21496 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
21497 | ||
21498 | wxPyEndAllowThreads(__tstate); | |
21499 | if (PyErr_Occurred()) SWIG_fail; | |
21500 | } | |
21501 | resultobj = PyInt_FromLong((long)result); | |
21502 | return resultobj; | |
21503 | fail: | |
21504 | return NULL; | |
21505 | } | |
21506 | ||
21507 | ||
21508 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21509 | PyObject *resultobj; | |
21510 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21511 | wxValidator *arg2 = 0 ; | |
21512 | PyObject * obj0 = 0 ; | |
21513 | PyObject * obj1 = 0 ; | |
21514 | char *kwnames[] = { | |
21515 | (char *) "self",(char *) "validator", NULL | |
21516 | }; | |
21517 | ||
21518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
21519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21520 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21521 | if (arg2 == NULL) { | |
21522 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21523 | } | |
21524 | { | |
21525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21526 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
21527 | ||
21528 | wxPyEndAllowThreads(__tstate); | |
21529 | if (PyErr_Occurred()) SWIG_fail; | |
21530 | } | |
21531 | Py_INCREF(Py_None); resultobj = Py_None; | |
21532 | return resultobj; | |
21533 | fail: | |
21534 | return NULL; | |
21535 | } | |
21536 | ||
21537 | ||
21538 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21539 | PyObject *resultobj; | |
21540 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21541 | wxValidator *result; | |
21542 | PyObject * obj0 = 0 ; | |
21543 | char *kwnames[] = { | |
21544 | (char *) "self", NULL | |
21545 | }; | |
21546 | ||
21547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
21548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21549 | { | |
21550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21551 | result = (wxValidator *)(arg1)->GetValidator(); | |
21552 | ||
21553 | wxPyEndAllowThreads(__tstate); | |
21554 | if (PyErr_Occurred()) SWIG_fail; | |
21555 | } | |
21556 | { | |
21557 | resultobj = wxPyMake_wxObject(result); | |
21558 | } | |
21559 | return resultobj; | |
21560 | fail: | |
21561 | return NULL; | |
21562 | } | |
21563 | ||
21564 | ||
21565 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21566 | PyObject *resultobj; | |
21567 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21568 | wxAcceleratorTable *arg2 = 0 ; | |
21569 | PyObject * obj0 = 0 ; | |
21570 | PyObject * obj1 = 0 ; | |
21571 | char *kwnames[] = { | |
21572 | (char *) "self",(char *) "accel", NULL | |
21573 | }; | |
21574 | ||
21575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
21576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21577 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21578 | if (arg2 == NULL) { | |
21579 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21580 | } | |
21581 | { | |
21582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21583 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
21584 | ||
21585 | wxPyEndAllowThreads(__tstate); | |
21586 | if (PyErr_Occurred()) SWIG_fail; | |
21587 | } | |
21588 | Py_INCREF(Py_None); resultobj = Py_None; | |
21589 | return resultobj; | |
21590 | fail: | |
21591 | return NULL; | |
21592 | } | |
21593 | ||
21594 | ||
21595 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21596 | PyObject *resultobj; | |
21597 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21598 | wxAcceleratorTable *result; | |
21599 | PyObject * obj0 = 0 ; | |
21600 | char *kwnames[] = { | |
21601 | (char *) "self", NULL | |
21602 | }; | |
21603 | ||
21604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
21605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21606 | { | |
21607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21608 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
21609 | ||
21610 | wxPyEndAllowThreads(__tstate); | |
21611 | if (PyErr_Occurred()) SWIG_fail; | |
21612 | } | |
21613 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 0); | |
21614 | return resultobj; | |
21615 | fail: | |
21616 | return NULL; | |
21617 | } | |
21618 | ||
21619 | ||
21620 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21621 | PyObject *resultobj; | |
21622 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21623 | int arg2 ; | |
21624 | int arg3 ; | |
21625 | int arg4 ; | |
21626 | bool result; | |
21627 | PyObject * obj0 = 0 ; | |
21628 | char *kwnames[] = { | |
21629 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
21630 | }; | |
21631 | ||
21632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:Window_RegisterHotKey",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
21633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21634 | { | |
21635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21636 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
21637 | ||
21638 | wxPyEndAllowThreads(__tstate); | |
21639 | if (PyErr_Occurred()) SWIG_fail; | |
21640 | } | |
21641 | resultobj = PyInt_FromLong((long)result); | |
21642 | return resultobj; | |
21643 | fail: | |
21644 | return NULL; | |
21645 | } | |
21646 | ||
21647 | ||
21648 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21649 | PyObject *resultobj; | |
21650 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21651 | int arg2 ; | |
21652 | bool result; | |
21653 | PyObject * obj0 = 0 ; | |
21654 | char *kwnames[] = { | |
21655 | (char *) "self",(char *) "hotkeyId", NULL | |
21656 | }; | |
21657 | ||
21658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_UnregisterHotKey",kwnames,&obj0,&arg2)) goto fail; | |
21659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21660 | { | |
21661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21662 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
21663 | ||
21664 | wxPyEndAllowThreads(__tstate); | |
21665 | if (PyErr_Occurred()) SWIG_fail; | |
21666 | } | |
21667 | resultobj = PyInt_FromLong((long)result); | |
21668 | return resultobj; | |
21669 | fail: | |
21670 | return NULL; | |
21671 | } | |
21672 | ||
21673 | ||
21674 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21675 | PyObject *resultobj; | |
21676 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21677 | wxPoint *arg2 = 0 ; | |
21678 | wxPoint result; | |
21679 | wxPoint temp2 ; | |
21680 | PyObject * obj0 = 0 ; | |
21681 | PyObject * obj1 = 0 ; | |
21682 | char *kwnames[] = { | |
21683 | (char *) "self",(char *) "pt", NULL | |
21684 | }; | |
21685 | ||
21686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
21687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21688 | { | |
21689 | arg2 = &temp2; | |
21690 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21691 | } | |
21692 | { | |
21693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21694 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
21695 | ||
21696 | wxPyEndAllowThreads(__tstate); | |
21697 | if (PyErr_Occurred()) SWIG_fail; | |
21698 | } | |
21699 | { | |
21700 | wxPoint * resultptr; | |
21701 | resultptr = new wxPoint((wxPoint &) result); | |
21702 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
21703 | } | |
21704 | return resultobj; | |
21705 | fail: | |
21706 | return NULL; | |
21707 | } | |
21708 | ||
21709 | ||
21710 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21711 | PyObject *resultobj; | |
21712 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21713 | wxSize *arg2 = 0 ; | |
21714 | wxSize result; | |
21715 | wxSize temp2 ; | |
21716 | PyObject * obj0 = 0 ; | |
21717 | PyObject * obj1 = 0 ; | |
21718 | char *kwnames[] = { | |
21719 | (char *) "self",(char *) "sz", NULL | |
21720 | }; | |
21721 | ||
21722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
21723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21724 | { | |
21725 | arg2 = &temp2; | |
21726 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21727 | } | |
21728 | { | |
21729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21730 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
21731 | ||
21732 | wxPyEndAllowThreads(__tstate); | |
21733 | if (PyErr_Occurred()) SWIG_fail; | |
21734 | } | |
21735 | { | |
21736 | wxSize * resultptr; | |
21737 | resultptr = new wxSize((wxSize &) result); | |
21738 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21739 | } | |
21740 | return resultobj; | |
21741 | fail: | |
21742 | return NULL; | |
21743 | } | |
21744 | ||
21745 | ||
21746 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21747 | PyObject *resultobj; | |
21748 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21749 | wxPoint *arg2 = 0 ; | |
21750 | wxPoint result; | |
21751 | wxPoint temp2 ; | |
21752 | PyObject * obj0 = 0 ; | |
21753 | PyObject * obj1 = 0 ; | |
21754 | char *kwnames[] = { | |
21755 | (char *) "self",(char *) "pt", NULL | |
21756 | }; | |
21757 | ||
21758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
21759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21760 | { | |
21761 | arg2 = &temp2; | |
21762 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21763 | } | |
21764 | { | |
21765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21766 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
21767 | ||
21768 | wxPyEndAllowThreads(__tstate); | |
21769 | if (PyErr_Occurred()) SWIG_fail; | |
21770 | } | |
21771 | { | |
21772 | wxPoint * resultptr; | |
21773 | resultptr = new wxPoint((wxPoint &) result); | |
21774 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
21775 | } | |
21776 | return resultobj; | |
21777 | fail: | |
21778 | return NULL; | |
21779 | } | |
21780 | ||
21781 | ||
21782 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21783 | PyObject *resultobj; | |
21784 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21785 | wxSize *arg2 = 0 ; | |
21786 | wxSize result; | |
21787 | wxSize temp2 ; | |
21788 | PyObject * obj0 = 0 ; | |
21789 | PyObject * obj1 = 0 ; | |
21790 | char *kwnames[] = { | |
21791 | (char *) "self",(char *) "sz", NULL | |
21792 | }; | |
21793 | ||
21794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
21795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21796 | { | |
21797 | arg2 = &temp2; | |
21798 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21799 | } | |
21800 | { | |
21801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21802 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
21803 | ||
21804 | wxPyEndAllowThreads(__tstate); | |
21805 | if (PyErr_Occurred()) SWIG_fail; | |
21806 | } | |
21807 | { | |
21808 | wxSize * resultptr; | |
21809 | resultptr = new wxSize((wxSize &) result); | |
21810 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21811 | } | |
21812 | return resultobj; | |
21813 | fail: | |
21814 | return NULL; | |
21815 | } | |
21816 | ||
21817 | ||
21818 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21819 | PyObject *resultobj; | |
21820 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21821 | wxPoint *arg2 = 0 ; | |
21822 | wxPoint result; | |
21823 | wxPoint temp2 ; | |
21824 | PyObject * obj0 = 0 ; | |
21825 | PyObject * obj1 = 0 ; | |
21826 | char *kwnames[] = { | |
21827 | (char *) "self",(char *) "pt", NULL | |
21828 | }; | |
21829 | ||
21830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
21831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21832 | { | |
21833 | arg2 = &temp2; | |
21834 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21835 | } | |
21836 | { | |
21837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21838 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
21839 | ||
21840 | wxPyEndAllowThreads(__tstate); | |
21841 | if (PyErr_Occurred()) SWIG_fail; | |
21842 | } | |
21843 | { | |
21844 | wxPoint * resultptr; | |
21845 | resultptr = new wxPoint((wxPoint &) result); | |
21846 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
21847 | } | |
21848 | return resultobj; | |
21849 | fail: | |
21850 | return NULL; | |
21851 | } | |
21852 | ||
21853 | ||
21854 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21855 | PyObject *resultobj; | |
21856 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21857 | wxSize *arg2 = 0 ; | |
21858 | wxSize result; | |
21859 | wxSize temp2 ; | |
21860 | PyObject * obj0 = 0 ; | |
21861 | PyObject * obj1 = 0 ; | |
21862 | char *kwnames[] = { | |
21863 | (char *) "self",(char *) "sz", NULL | |
21864 | }; | |
21865 | ||
21866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
21867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21868 | { | |
21869 | arg2 = &temp2; | |
21870 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21871 | } | |
21872 | { | |
21873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21874 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
21875 | ||
21876 | wxPyEndAllowThreads(__tstate); | |
21877 | if (PyErr_Occurred()) SWIG_fail; | |
21878 | } | |
21879 | { | |
21880 | wxSize * resultptr; | |
21881 | resultptr = new wxSize((wxSize &) result); | |
21882 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21883 | } | |
21884 | return resultobj; | |
21885 | fail: | |
21886 | return NULL; | |
21887 | } | |
21888 | ||
21889 | ||
21890 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21891 | PyObject *resultobj; | |
21892 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21893 | int arg2 ; | |
21894 | int arg3 ; | |
21895 | PyObject * obj0 = 0 ; | |
21896 | char *kwnames[] = { | |
21897 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21898 | }; | |
21899 | ||
21900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_WarpPointer",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
21901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21902 | { | |
21903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21904 | (arg1)->WarpPointer(arg2,arg3); | |
21905 | ||
21906 | wxPyEndAllowThreads(__tstate); | |
21907 | if (PyErr_Occurred()) SWIG_fail; | |
21908 | } | |
21909 | Py_INCREF(Py_None); resultobj = Py_None; | |
21910 | return resultobj; | |
21911 | fail: | |
21912 | return NULL; | |
21913 | } | |
21914 | ||
21915 | ||
21916 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21917 | PyObject *resultobj; | |
21918 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21919 | PyObject * obj0 = 0 ; | |
21920 | char *kwnames[] = { | |
21921 | (char *) "self", NULL | |
21922 | }; | |
21923 | ||
21924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
21925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21926 | { | |
21927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21928 | (arg1)->CaptureMouse(); | |
21929 | ||
21930 | wxPyEndAllowThreads(__tstate); | |
21931 | if (PyErr_Occurred()) SWIG_fail; | |
21932 | } | |
21933 | Py_INCREF(Py_None); resultobj = Py_None; | |
21934 | return resultobj; | |
21935 | fail: | |
21936 | return NULL; | |
21937 | } | |
21938 | ||
21939 | ||
21940 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21941 | PyObject *resultobj; | |
21942 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21943 | PyObject * obj0 = 0 ; | |
21944 | char *kwnames[] = { | |
21945 | (char *) "self", NULL | |
21946 | }; | |
21947 | ||
21948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
21949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21950 | { | |
21951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21952 | (arg1)->ReleaseMouse(); | |
21953 | ||
21954 | wxPyEndAllowThreads(__tstate); | |
21955 | if (PyErr_Occurred()) SWIG_fail; | |
21956 | } | |
21957 | Py_INCREF(Py_None); resultobj = Py_None; | |
21958 | return resultobj; | |
21959 | fail: | |
21960 | return NULL; | |
21961 | } | |
21962 | ||
21963 | ||
21964 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21965 | PyObject *resultobj; | |
21966 | wxWindow *result; | |
21967 | char *kwnames[] = { | |
21968 | NULL | |
21969 | }; | |
21970 | ||
21971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
21972 | { | |
21973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21974 | result = (wxWindow *)wxWindow::GetCapture(); | |
21975 | ||
21976 | wxPyEndAllowThreads(__tstate); | |
21977 | if (PyErr_Occurred()) SWIG_fail; | |
21978 | } | |
21979 | { | |
21980 | resultobj = wxPyMake_wxObject(result); | |
21981 | } | |
21982 | return resultobj; | |
21983 | fail: | |
21984 | return NULL; | |
21985 | } | |
21986 | ||
21987 | ||
21988 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21989 | PyObject *resultobj; | |
21990 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21991 | bool result; | |
21992 | PyObject * obj0 = 0 ; | |
21993 | char *kwnames[] = { | |
21994 | (char *) "self", NULL | |
21995 | }; | |
21996 | ||
21997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
21998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21999 | { | |
22000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22001 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
22002 | ||
22003 | wxPyEndAllowThreads(__tstate); | |
22004 | if (PyErr_Occurred()) SWIG_fail; | |
22005 | } | |
22006 | resultobj = PyInt_FromLong((long)result); | |
22007 | return resultobj; | |
22008 | fail: | |
22009 | return NULL; | |
22010 | } | |
22011 | ||
22012 | ||
22013 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22014 | PyObject *resultobj; | |
22015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22016 | bool arg2 = (bool) TRUE ; | |
22017 | wxRect *arg3 = (wxRect *) NULL ; | |
22018 | PyObject * obj0 = 0 ; | |
22019 | PyObject * obj1 = 0 ; | |
22020 | PyObject * obj2 = 0 ; | |
22021 | char *kwnames[] = { | |
22022 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
22023 | }; | |
22024 | ||
22025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22027 | if (obj1) { | |
22028 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
22029 | if (PyErr_Occurred()) SWIG_fail; | |
22030 | } | |
22031 | if (obj2) { | |
22032 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22033 | } | |
22034 | { | |
22035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22036 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
22037 | ||
22038 | wxPyEndAllowThreads(__tstate); | |
22039 | if (PyErr_Occurred()) SWIG_fail; | |
22040 | } | |
22041 | Py_INCREF(Py_None); resultobj = Py_None; | |
22042 | return resultobj; | |
22043 | fail: | |
22044 | return NULL; | |
22045 | } | |
22046 | ||
22047 | ||
22048 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22049 | PyObject *resultobj; | |
22050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22051 | wxRect *arg2 = 0 ; | |
22052 | wxRect temp2 ; | |
22053 | PyObject * obj0 = 0 ; | |
22054 | PyObject * obj1 = 0 ; | |
22055 | char *kwnames[] = { | |
22056 | (char *) "self",(char *) "rect", NULL | |
22057 | }; | |
22058 | ||
22059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
22060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22061 | { | |
22062 | arg2 = &temp2; | |
22063 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22064 | } | |
22065 | { | |
22066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22067 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
22068 | ||
22069 | wxPyEndAllowThreads(__tstate); | |
22070 | if (PyErr_Occurred()) SWIG_fail; | |
22071 | } | |
22072 | Py_INCREF(Py_None); resultobj = Py_None; | |
22073 | return resultobj; | |
22074 | fail: | |
22075 | return NULL; | |
22076 | } | |
22077 | ||
22078 | ||
22079 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22080 | PyObject *resultobj; | |
22081 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22082 | PyObject * obj0 = 0 ; | |
22083 | char *kwnames[] = { | |
22084 | (char *) "self", NULL | |
22085 | }; | |
22086 | ||
22087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
22088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22089 | { | |
22090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22091 | (arg1)->Update(); | |
22092 | ||
22093 | wxPyEndAllowThreads(__tstate); | |
22094 | if (PyErr_Occurred()) SWIG_fail; | |
22095 | } | |
22096 | Py_INCREF(Py_None); resultobj = Py_None; | |
22097 | return resultobj; | |
22098 | fail: | |
22099 | return NULL; | |
22100 | } | |
22101 | ||
22102 | ||
22103 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22104 | PyObject *resultobj; | |
22105 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22106 | PyObject * obj0 = 0 ; | |
22107 | char *kwnames[] = { | |
22108 | (char *) "self", NULL | |
22109 | }; | |
22110 | ||
22111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
22112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22113 | { | |
22114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22115 | (arg1)->ClearBackground(); | |
22116 | ||
22117 | wxPyEndAllowThreads(__tstate); | |
22118 | if (PyErr_Occurred()) SWIG_fail; | |
22119 | } | |
22120 | Py_INCREF(Py_None); resultobj = Py_None; | |
22121 | return resultobj; | |
22122 | fail: | |
22123 | return NULL; | |
22124 | } | |
22125 | ||
22126 | ||
22127 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22128 | PyObject *resultobj; | |
22129 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22130 | PyObject * obj0 = 0 ; | |
22131 | char *kwnames[] = { | |
22132 | (char *) "self", NULL | |
22133 | }; | |
22134 | ||
22135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
22136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22137 | { | |
22138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22139 | (arg1)->Freeze(); | |
22140 | ||
22141 | wxPyEndAllowThreads(__tstate); | |
22142 | if (PyErr_Occurred()) SWIG_fail; | |
22143 | } | |
22144 | Py_INCREF(Py_None); resultobj = Py_None; | |
22145 | return resultobj; | |
22146 | fail: | |
22147 | return NULL; | |
22148 | } | |
22149 | ||
22150 | ||
22151 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22152 | PyObject *resultobj; | |
22153 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22154 | PyObject * obj0 = 0 ; | |
22155 | char *kwnames[] = { | |
22156 | (char *) "self", NULL | |
22157 | }; | |
22158 | ||
22159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
22160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22161 | { | |
22162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22163 | (arg1)->Thaw(); | |
22164 | ||
22165 | wxPyEndAllowThreads(__tstate); | |
22166 | if (PyErr_Occurred()) SWIG_fail; | |
22167 | } | |
22168 | Py_INCREF(Py_None); resultobj = Py_None; | |
22169 | return resultobj; | |
22170 | fail: | |
22171 | return NULL; | |
22172 | } | |
22173 | ||
22174 | ||
22175 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22176 | PyObject *resultobj; | |
22177 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22178 | wxDC *arg2 = 0 ; | |
22179 | PyObject * obj0 = 0 ; | |
22180 | PyObject * obj1 = 0 ; | |
22181 | char *kwnames[] = { | |
22182 | (char *) "self",(char *) "dc", NULL | |
22183 | }; | |
22184 | ||
22185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
22186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22187 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22188 | if (arg2 == NULL) { | |
22189 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22190 | } | |
22191 | { | |
22192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22193 | (arg1)->PrepareDC(*arg2); | |
22194 | ||
22195 | wxPyEndAllowThreads(__tstate); | |
22196 | if (PyErr_Occurred()) SWIG_fail; | |
22197 | } | |
22198 | Py_INCREF(Py_None); resultobj = Py_None; | |
22199 | return resultobj; | |
22200 | fail: | |
22201 | return NULL; | |
22202 | } | |
22203 | ||
22204 | ||
22205 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22206 | PyObject *resultobj; | |
22207 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22208 | wxRegion *result; | |
22209 | PyObject * obj0 = 0 ; | |
22210 | char *kwnames[] = { | |
22211 | (char *) "self", NULL | |
22212 | }; | |
22213 | ||
22214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
22215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22216 | { | |
22217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22218 | { | |
22219 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
22220 | result = (wxRegion *) &_result_ref; | |
22221 | } | |
22222 | ||
22223 | wxPyEndAllowThreads(__tstate); | |
22224 | if (PyErr_Occurred()) SWIG_fail; | |
22225 | } | |
22226 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 0); | |
22227 | return resultobj; | |
22228 | fail: | |
22229 | return NULL; | |
22230 | } | |
22231 | ||
22232 | ||
22233 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22234 | PyObject *resultobj; | |
22235 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22236 | wxRect result; | |
22237 | PyObject * obj0 = 0 ; | |
22238 | char *kwnames[] = { | |
22239 | (char *) "self", NULL | |
22240 | }; | |
22241 | ||
22242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
22243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22244 | { | |
22245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22246 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
22247 | ||
22248 | wxPyEndAllowThreads(__tstate); | |
22249 | if (PyErr_Occurred()) SWIG_fail; | |
22250 | } | |
22251 | { | |
22252 | wxRect * resultptr; | |
22253 | resultptr = new wxRect((wxRect &) result); | |
22254 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
22255 | } | |
22256 | return resultobj; | |
22257 | fail: | |
22258 | return NULL; | |
22259 | } | |
22260 | ||
22261 | ||
22262 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22263 | PyObject *resultobj; | |
22264 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22265 | int arg2 ; | |
22266 | int arg3 ; | |
22267 | int arg4 = (int) 1 ; | |
22268 | int arg5 = (int) 1 ; | |
22269 | bool result; | |
22270 | PyObject * obj0 = 0 ; | |
22271 | char *kwnames[] = { | |
22272 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
22273 | }; | |
22274 | ||
22275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|ii:Window_IsExposed",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
22276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22277 | { | |
22278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22279 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
22280 | ||
22281 | wxPyEndAllowThreads(__tstate); | |
22282 | if (PyErr_Occurred()) SWIG_fail; | |
22283 | } | |
22284 | resultobj = PyInt_FromLong((long)result); | |
22285 | return resultobj; | |
22286 | fail: | |
22287 | return NULL; | |
22288 | } | |
22289 | ||
22290 | ||
22291 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22292 | PyObject *resultobj; | |
22293 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22294 | wxPoint *arg2 = 0 ; | |
22295 | bool result; | |
22296 | wxPoint temp2 ; | |
22297 | PyObject * obj0 = 0 ; | |
22298 | PyObject * obj1 = 0 ; | |
22299 | char *kwnames[] = { | |
22300 | (char *) "self",(char *) "pt", NULL | |
22301 | }; | |
22302 | ||
22303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
22304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22305 | { | |
22306 | arg2 = &temp2; | |
22307 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22308 | } | |
22309 | { | |
22310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22311 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
22312 | ||
22313 | wxPyEndAllowThreads(__tstate); | |
22314 | if (PyErr_Occurred()) SWIG_fail; | |
22315 | } | |
22316 | resultobj = PyInt_FromLong((long)result); | |
22317 | return resultobj; | |
22318 | fail: | |
22319 | return NULL; | |
22320 | } | |
22321 | ||
22322 | ||
22323 | static PyObject *_wrap_Window_isExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22324 | PyObject *resultobj; | |
22325 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22326 | wxRect *arg2 = 0 ; | |
22327 | bool result; | |
22328 | wxRect temp2 ; | |
22329 | PyObject * obj0 = 0 ; | |
22330 | PyObject * obj1 = 0 ; | |
22331 | char *kwnames[] = { | |
22332 | (char *) "self",(char *) "rect", NULL | |
22333 | }; | |
22334 | ||
22335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_isExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
22336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22337 | { | |
22338 | arg2 = &temp2; | |
22339 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22340 | } | |
22341 | { | |
22342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22343 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
22344 | ||
22345 | wxPyEndAllowThreads(__tstate); | |
22346 | if (PyErr_Occurred()) SWIG_fail; | |
22347 | } | |
22348 | resultobj = PyInt_FromLong((long)result); | |
22349 | return resultobj; | |
22350 | fail: | |
22351 | return NULL; | |
22352 | } | |
22353 | ||
22354 | ||
22355 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22356 | PyObject *resultobj; | |
22357 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22358 | wxColour *arg2 = 0 ; | |
22359 | bool result; | |
22360 | wxColour temp2 ; | |
22361 | PyObject * obj0 = 0 ; | |
22362 | PyObject * obj1 = 0 ; | |
22363 | char *kwnames[] = { | |
22364 | (char *) "self",(char *) "colour", NULL | |
22365 | }; | |
22366 | ||
22367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
22368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22369 | { | |
22370 | arg2 = &temp2; | |
22371 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22372 | } | |
22373 | { | |
22374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22375 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
22376 | ||
22377 | wxPyEndAllowThreads(__tstate); | |
22378 | if (PyErr_Occurred()) SWIG_fail; | |
22379 | } | |
22380 | resultobj = PyInt_FromLong((long)result); | |
22381 | return resultobj; | |
22382 | fail: | |
22383 | return NULL; | |
22384 | } | |
22385 | ||
22386 | ||
22387 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22388 | PyObject *resultobj; | |
22389 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22390 | wxColour *arg2 = 0 ; | |
22391 | bool result; | |
22392 | wxColour temp2 ; | |
22393 | PyObject * obj0 = 0 ; | |
22394 | PyObject * obj1 = 0 ; | |
22395 | char *kwnames[] = { | |
22396 | (char *) "self",(char *) "colour", NULL | |
22397 | }; | |
22398 | ||
22399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
22400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22401 | { | |
22402 | arg2 = &temp2; | |
22403 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22404 | } | |
22405 | { | |
22406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22407 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
22408 | ||
22409 | wxPyEndAllowThreads(__tstate); | |
22410 | if (PyErr_Occurred()) SWIG_fail; | |
22411 | } | |
22412 | resultobj = PyInt_FromLong((long)result); | |
22413 | return resultobj; | |
22414 | fail: | |
22415 | return NULL; | |
22416 | } | |
22417 | ||
22418 | ||
22419 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22420 | PyObject *resultobj; | |
22421 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22422 | wxColour result; | |
22423 | PyObject * obj0 = 0 ; | |
22424 | char *kwnames[] = { | |
22425 | (char *) "self", NULL | |
22426 | }; | |
22427 | ||
22428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
22429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22430 | { | |
22431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22432 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
22433 | ||
22434 | wxPyEndAllowThreads(__tstate); | |
22435 | if (PyErr_Occurred()) SWIG_fail; | |
22436 | } | |
22437 | { | |
22438 | wxColour * resultptr; | |
22439 | resultptr = new wxColour((wxColour &) result); | |
22440 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22441 | } | |
22442 | return resultobj; | |
22443 | fail: | |
22444 | return NULL; | |
22445 | } | |
22446 | ||
22447 | ||
22448 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22449 | PyObject *resultobj; | |
22450 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22451 | wxColour result; | |
22452 | PyObject * obj0 = 0 ; | |
22453 | char *kwnames[] = { | |
22454 | (char *) "self", NULL | |
22455 | }; | |
22456 | ||
22457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
22458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22459 | { | |
22460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22461 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
22462 | ||
22463 | wxPyEndAllowThreads(__tstate); | |
22464 | if (PyErr_Occurred()) SWIG_fail; | |
22465 | } | |
22466 | { | |
22467 | wxColour * resultptr; | |
22468 | resultptr = new wxColour((wxColour &) result); | |
22469 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22470 | } | |
22471 | return resultobj; | |
22472 | fail: | |
22473 | return NULL; | |
22474 | } | |
22475 | ||
22476 | ||
22477 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22478 | PyObject *resultobj; | |
22479 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22480 | wxCursor *arg2 = 0 ; | |
22481 | bool result; | |
22482 | PyObject * obj0 = 0 ; | |
22483 | PyObject * obj1 = 0 ; | |
22484 | char *kwnames[] = { | |
22485 | (char *) "self",(char *) "cursor", NULL | |
22486 | }; | |
22487 | ||
22488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
22489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22490 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22491 | if (arg2 == NULL) { | |
22492 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22493 | } | |
22494 | { | |
22495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22496 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
22497 | ||
22498 | wxPyEndAllowThreads(__tstate); | |
22499 | if (PyErr_Occurred()) SWIG_fail; | |
22500 | } | |
22501 | resultobj = PyInt_FromLong((long)result); | |
22502 | return resultobj; | |
22503 | fail: | |
22504 | return NULL; | |
22505 | } | |
22506 | ||
22507 | ||
22508 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22509 | PyObject *resultobj; | |
22510 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22511 | wxCursor *result; | |
22512 | PyObject * obj0 = 0 ; | |
22513 | char *kwnames[] = { | |
22514 | (char *) "self", NULL | |
22515 | }; | |
22516 | ||
22517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
22518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22519 | { | |
22520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22521 | { | |
22522 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
22523 | result = (wxCursor *) &_result_ref; | |
22524 | } | |
22525 | ||
22526 | wxPyEndAllowThreads(__tstate); | |
22527 | if (PyErr_Occurred()) SWIG_fail; | |
22528 | } | |
22529 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
22530 | return resultobj; | |
22531 | fail: | |
22532 | return NULL; | |
22533 | } | |
22534 | ||
22535 | ||
22536 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22537 | PyObject *resultobj; | |
22538 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22539 | wxFont *arg2 = 0 ; | |
22540 | bool result; | |
22541 | PyObject * obj0 = 0 ; | |
22542 | PyObject * obj1 = 0 ; | |
22543 | char *kwnames[] = { | |
22544 | (char *) "self",(char *) "font", NULL | |
22545 | }; | |
22546 | ||
22547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
22548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22549 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22550 | if (arg2 == NULL) { | |
22551 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22552 | } | |
22553 | { | |
22554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22555 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
22556 | ||
22557 | wxPyEndAllowThreads(__tstate); | |
22558 | if (PyErr_Occurred()) SWIG_fail; | |
22559 | } | |
22560 | resultobj = PyInt_FromLong((long)result); | |
22561 | return resultobj; | |
22562 | fail: | |
22563 | return NULL; | |
22564 | } | |
22565 | ||
22566 | ||
22567 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22568 | PyObject *resultobj; | |
22569 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22570 | wxFont *result; | |
22571 | PyObject * obj0 = 0 ; | |
22572 | char *kwnames[] = { | |
22573 | (char *) "self", NULL | |
22574 | }; | |
22575 | ||
22576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
22577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22578 | { | |
22579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22580 | { | |
22581 | wxFont &_result_ref = (arg1)->GetFont(); | |
22582 | result = (wxFont *) &_result_ref; | |
22583 | } | |
22584 | ||
22585 | wxPyEndAllowThreads(__tstate); | |
22586 | if (PyErr_Occurred()) SWIG_fail; | |
22587 | } | |
22588 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
22589 | return resultobj; | |
22590 | fail: | |
22591 | return NULL; | |
22592 | } | |
22593 | ||
22594 | ||
22595 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22596 | PyObject *resultobj; | |
22597 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22598 | wxCaret *arg2 = (wxCaret *) 0 ; | |
22599 | PyObject * obj0 = 0 ; | |
22600 | PyObject * obj1 = 0 ; | |
22601 | char *kwnames[] = { | |
22602 | (char *) "self",(char *) "caret", NULL | |
22603 | }; | |
22604 | ||
22605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
22606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22607 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22608 | { | |
22609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22610 | (arg1)->SetCaret(arg2); | |
22611 | ||
22612 | wxPyEndAllowThreads(__tstate); | |
22613 | if (PyErr_Occurred()) SWIG_fail; | |
22614 | } | |
22615 | Py_INCREF(Py_None); resultobj = Py_None; | |
22616 | return resultobj; | |
22617 | fail: | |
22618 | return NULL; | |
22619 | } | |
22620 | ||
22621 | ||
22622 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22623 | PyObject *resultobj; | |
22624 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22625 | wxCaret *result; | |
22626 | PyObject * obj0 = 0 ; | |
22627 | char *kwnames[] = { | |
22628 | (char *) "self", NULL | |
22629 | }; | |
22630 | ||
22631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
22632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22633 | { | |
22634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22635 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
22636 | ||
22637 | wxPyEndAllowThreads(__tstate); | |
22638 | if (PyErr_Occurred()) SWIG_fail; | |
22639 | } | |
22640 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 0); | |
22641 | return resultobj; | |
22642 | fail: | |
22643 | return NULL; | |
22644 | } | |
22645 | ||
22646 | ||
22647 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22648 | PyObject *resultobj; | |
22649 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22650 | int result; | |
22651 | PyObject * obj0 = 0 ; | |
22652 | char *kwnames[] = { | |
22653 | (char *) "self", NULL | |
22654 | }; | |
22655 | ||
22656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
22657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22658 | { | |
22659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22660 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
22661 | ||
22662 | wxPyEndAllowThreads(__tstate); | |
22663 | if (PyErr_Occurred()) SWIG_fail; | |
22664 | } | |
22665 | resultobj = PyInt_FromLong((long)result); | |
22666 | return resultobj; | |
22667 | fail: | |
22668 | return NULL; | |
22669 | } | |
22670 | ||
22671 | ||
22672 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22673 | PyObject *resultobj; | |
22674 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22675 | int result; | |
22676 | PyObject * obj0 = 0 ; | |
22677 | char *kwnames[] = { | |
22678 | (char *) "self", NULL | |
22679 | }; | |
22680 | ||
22681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
22682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22683 | { | |
22684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22685 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
22686 | ||
22687 | wxPyEndAllowThreads(__tstate); | |
22688 | if (PyErr_Occurred()) SWIG_fail; | |
22689 | } | |
22690 | resultobj = PyInt_FromLong((long)result); | |
22691 | return resultobj; | |
22692 | fail: | |
22693 | return NULL; | |
22694 | } | |
22695 | ||
22696 | ||
22697 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22698 | PyObject *resultobj; | |
22699 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22700 | wxString *arg2 = 0 ; | |
22701 | int *arg3 = (int *) 0 ; | |
22702 | int *arg4 = (int *) 0 ; | |
22703 | bool temp2 = false ; | |
22704 | int temp3 ; | |
22705 | int temp4 ; | |
22706 | PyObject * obj0 = 0 ; | |
22707 | PyObject * obj1 = 0 ; | |
22708 | char *kwnames[] = { | |
22709 | (char *) "self",(char *) "string", NULL | |
22710 | }; | |
22711 | ||
22712 | arg3 = &temp3; | |
22713 | arg4 = &temp4; | |
22714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
22715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22716 | { | |
22717 | arg2 = wxString_in_helper(obj1); | |
22718 | if (arg2 == NULL) SWIG_fail; | |
22719 | temp2 = true; | |
22720 | } | |
22721 | { | |
22722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22723 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
22724 | ||
22725 | wxPyEndAllowThreads(__tstate); | |
22726 | if (PyErr_Occurred()) SWIG_fail; | |
22727 | } | |
22728 | Py_INCREF(Py_None); resultobj = Py_None; | |
22729 | { | |
22730 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22731 | resultobj = t_output_helper(resultobj,o); | |
22732 | } | |
22733 | { | |
22734 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
22735 | resultobj = t_output_helper(resultobj,o); | |
22736 | } | |
22737 | { | |
22738 | if (temp2) | |
22739 | delete arg2; | |
22740 | } | |
22741 | return resultobj; | |
22742 | fail: | |
22743 | { | |
22744 | if (temp2) | |
22745 | delete arg2; | |
22746 | } | |
22747 | return NULL; | |
22748 | } | |
22749 | ||
22750 | ||
22751 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22752 | PyObject *resultobj; | |
22753 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22754 | wxString *arg2 = 0 ; | |
22755 | int *arg3 = (int *) 0 ; | |
22756 | int *arg4 = (int *) 0 ; | |
22757 | int *arg5 = (int *) 0 ; | |
22758 | int *arg6 = (int *) 0 ; | |
22759 | wxFont *arg7 = (wxFont *) NULL ; | |
22760 | bool temp2 = false ; | |
22761 | int temp3 ; | |
22762 | int temp4 ; | |
22763 | int temp5 ; | |
22764 | int temp6 ; | |
22765 | PyObject * obj0 = 0 ; | |
22766 | PyObject * obj1 = 0 ; | |
22767 | PyObject * obj2 = 0 ; | |
22768 | char *kwnames[] = { | |
22769 | (char *) "self",(char *) "string",(char *) "font", NULL | |
22770 | }; | |
22771 | ||
22772 | arg3 = &temp3; | |
22773 | arg4 = &temp4; | |
22774 | arg5 = &temp5; | |
22775 | arg6 = &temp6; | |
22776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22778 | { | |
22779 | arg2 = wxString_in_helper(obj1); | |
22780 | if (arg2 == NULL) SWIG_fail; | |
22781 | temp2 = true; | |
22782 | } | |
22783 | if (obj2) { | |
22784 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22785 | } | |
22786 | { | |
22787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22788 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
22789 | ||
22790 | wxPyEndAllowThreads(__tstate); | |
22791 | if (PyErr_Occurred()) SWIG_fail; | |
22792 | } | |
22793 | Py_INCREF(Py_None); resultobj = Py_None; | |
22794 | { | |
22795 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22796 | resultobj = t_output_helper(resultobj,o); | |
22797 | } | |
22798 | { | |
22799 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
22800 | resultobj = t_output_helper(resultobj,o); | |
22801 | } | |
22802 | { | |
22803 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
22804 | resultobj = t_output_helper(resultobj,o); | |
22805 | } | |
22806 | { | |
22807 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
22808 | resultobj = t_output_helper(resultobj,o); | |
22809 | } | |
22810 | { | |
22811 | if (temp2) | |
22812 | delete arg2; | |
22813 | } | |
22814 | return resultobj; | |
22815 | fail: | |
22816 | { | |
22817 | if (temp2) | |
22818 | delete arg2; | |
22819 | } | |
22820 | return NULL; | |
22821 | } | |
22822 | ||
22823 | ||
22824 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22825 | PyObject *resultobj; | |
22826 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22827 | int *arg2 = (int *) 0 ; | |
22828 | int *arg3 = (int *) 0 ; | |
22829 | int temp2 ; | |
22830 | int temp3 ; | |
22831 | PyObject * obj0 = 0 ; | |
22832 | PyObject * obj1 = 0 ; | |
22833 | PyObject * obj2 = 0 ; | |
22834 | char *kwnames[] = { | |
22835 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22836 | }; | |
22837 | ||
22838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22840 | { | |
22841 | temp2 = PyInt_AsLong(obj1); | |
22842 | if (PyErr_Occurred()) SWIG_fail; | |
22843 | arg2 = &temp2; | |
22844 | } | |
22845 | { | |
22846 | temp3 = PyInt_AsLong(obj2); | |
22847 | if (PyErr_Occurred()) SWIG_fail; | |
22848 | arg3 = &temp3; | |
22849 | } | |
22850 | { | |
22851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22852 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
22853 | ||
22854 | wxPyEndAllowThreads(__tstate); | |
22855 | if (PyErr_Occurred()) SWIG_fail; | |
22856 | } | |
22857 | Py_INCREF(Py_None); resultobj = Py_None; | |
22858 | { | |
22859 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22860 | resultobj = t_output_helper(resultobj,o); | |
22861 | } | |
22862 | { | |
22863 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22864 | resultobj = t_output_helper(resultobj,o); | |
22865 | } | |
22866 | return resultobj; | |
22867 | fail: | |
22868 | return NULL; | |
22869 | } | |
22870 | ||
22871 | ||
22872 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22873 | PyObject *resultobj; | |
22874 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22875 | int *arg2 = (int *) 0 ; | |
22876 | int *arg3 = (int *) 0 ; | |
22877 | int temp2 ; | |
22878 | int temp3 ; | |
22879 | PyObject * obj0 = 0 ; | |
22880 | PyObject * obj1 = 0 ; | |
22881 | PyObject * obj2 = 0 ; | |
22882 | char *kwnames[] = { | |
22883 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22884 | }; | |
22885 | ||
22886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22888 | { | |
22889 | temp2 = PyInt_AsLong(obj1); | |
22890 | if (PyErr_Occurred()) SWIG_fail; | |
22891 | arg2 = &temp2; | |
22892 | } | |
22893 | { | |
22894 | temp3 = PyInt_AsLong(obj2); | |
22895 | if (PyErr_Occurred()) SWIG_fail; | |
22896 | arg3 = &temp3; | |
22897 | } | |
22898 | { | |
22899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22900 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
22901 | ||
22902 | wxPyEndAllowThreads(__tstate); | |
22903 | if (PyErr_Occurred()) SWIG_fail; | |
22904 | } | |
22905 | Py_INCREF(Py_None); resultobj = Py_None; | |
22906 | { | |
22907 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22908 | resultobj = t_output_helper(resultobj,o); | |
22909 | } | |
22910 | { | |
22911 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22912 | resultobj = t_output_helper(resultobj,o); | |
22913 | } | |
22914 | return resultobj; | |
22915 | fail: | |
22916 | return NULL; | |
22917 | } | |
22918 | ||
22919 | ||
22920 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22921 | PyObject *resultobj; | |
22922 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22923 | wxPoint *arg2 = 0 ; | |
22924 | wxPoint result; | |
22925 | wxPoint temp2 ; | |
22926 | PyObject * obj0 = 0 ; | |
22927 | PyObject * obj1 = 0 ; | |
22928 | char *kwnames[] = { | |
22929 | (char *) "self",(char *) "pt", NULL | |
22930 | }; | |
22931 | ||
22932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
22933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22934 | { | |
22935 | arg2 = &temp2; | |
22936 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22937 | } | |
22938 | { | |
22939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22940 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
22941 | ||
22942 | wxPyEndAllowThreads(__tstate); | |
22943 | if (PyErr_Occurred()) SWIG_fail; | |
22944 | } | |
22945 | { | |
22946 | wxPoint * resultptr; | |
22947 | resultptr = new wxPoint((wxPoint &) result); | |
22948 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
22949 | } | |
22950 | return resultobj; | |
22951 | fail: | |
22952 | return NULL; | |
22953 | } | |
22954 | ||
22955 | ||
22956 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22957 | PyObject *resultobj; | |
22958 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22959 | wxPoint *arg2 = 0 ; | |
22960 | wxPoint result; | |
22961 | wxPoint temp2 ; | |
22962 | PyObject * obj0 = 0 ; | |
22963 | PyObject * obj1 = 0 ; | |
22964 | char *kwnames[] = { | |
22965 | (char *) "self",(char *) "pt", NULL | |
22966 | }; | |
22967 | ||
22968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
22969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22970 | { | |
22971 | arg2 = &temp2; | |
22972 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22973 | } | |
22974 | { | |
22975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22976 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
22977 | ||
22978 | wxPyEndAllowThreads(__tstate); | |
22979 | if (PyErr_Occurred()) SWIG_fail; | |
22980 | } | |
22981 | { | |
22982 | wxPoint * resultptr; | |
22983 | resultptr = new wxPoint((wxPoint &) result); | |
22984 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
22985 | } | |
22986 | return resultobj; | |
22987 | fail: | |
22988 | return NULL; | |
22989 | } | |
22990 | ||
22991 | ||
22992 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22993 | PyObject *resultobj; | |
22994 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22995 | wxCoord arg2 ; | |
22996 | wxCoord arg3 ; | |
22997 | int result; | |
22998 | PyObject * obj0 = 0 ; | |
22999 | char *kwnames[] = { | |
23000 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23001 | }; | |
23002 | ||
23003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_HitTestXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23005 | { | |
23006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23007 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
23008 | ||
23009 | wxPyEndAllowThreads(__tstate); | |
23010 | if (PyErr_Occurred()) SWIG_fail; | |
23011 | } | |
23012 | resultobj = PyInt_FromLong((long)result); | |
23013 | return resultobj; | |
23014 | fail: | |
23015 | return NULL; | |
23016 | } | |
23017 | ||
23018 | ||
23019 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23020 | PyObject *resultobj; | |
23021 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23022 | wxPoint *arg2 = 0 ; | |
23023 | int result; | |
23024 | wxPoint temp2 ; | |
23025 | PyObject * obj0 = 0 ; | |
23026 | PyObject * obj1 = 0 ; | |
23027 | char *kwnames[] = { | |
23028 | (char *) "self",(char *) "pt", NULL | |
23029 | }; | |
23030 | ||
23031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
23032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23033 | { | |
23034 | arg2 = &temp2; | |
23035 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23036 | } | |
23037 | { | |
23038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23039 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
23040 | ||
23041 | wxPyEndAllowThreads(__tstate); | |
23042 | if (PyErr_Occurred()) SWIG_fail; | |
23043 | } | |
23044 | resultobj = PyInt_FromLong((long)result); | |
23045 | return resultobj; | |
23046 | fail: | |
23047 | return NULL; | |
23048 | } | |
23049 | ||
23050 | ||
23051 | static PyObject *_wrap_Window_GetBorderFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23052 | PyObject *resultobj; | |
23053 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23054 | long arg2 ; | |
23055 | int result; | |
23056 | PyObject * obj0 = 0 ; | |
23057 | char *kwnames[] = { | |
23058 | (char *) "self",(char *) "flags", NULL | |
23059 | }; | |
23060 | ||
23061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_GetBorderFlags",kwnames,&obj0,&arg2)) goto fail; | |
23062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23063 | { | |
23064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23065 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
23066 | ||
23067 | wxPyEndAllowThreads(__tstate); | |
23068 | if (PyErr_Occurred()) SWIG_fail; | |
23069 | } | |
23070 | resultobj = PyInt_FromLong((long)result); | |
23071 | return resultobj; | |
23072 | fail: | |
23073 | return NULL; | |
23074 | } | |
23075 | ||
23076 | ||
23077 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23078 | PyObject *resultobj; | |
23079 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23080 | int result; | |
23081 | PyObject * obj0 = 0 ; | |
23082 | char *kwnames[] = { | |
23083 | (char *) "self", NULL | |
23084 | }; | |
23085 | ||
23086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBorder",kwnames,&obj0)) goto fail; | |
23087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23088 | { | |
23089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23090 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
23091 | ||
23092 | wxPyEndAllowThreads(__tstate); | |
23093 | if (PyErr_Occurred()) SWIG_fail; | |
23094 | } | |
23095 | resultobj = PyInt_FromLong((long)result); | |
23096 | return resultobj; | |
23097 | fail: | |
23098 | return NULL; | |
23099 | } | |
23100 | ||
23101 | ||
23102 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23103 | PyObject *resultobj; | |
23104 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23105 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
23106 | PyObject * obj0 = 0 ; | |
23107 | char *kwnames[] = { | |
23108 | (char *) "self",(char *) "flags", NULL | |
23109 | }; | |
23110 | ||
23111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:Window_UpdateWindowUI",kwnames,&obj0,&arg2)) goto fail; | |
23112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23113 | { | |
23114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23115 | (arg1)->UpdateWindowUI(arg2); | |
23116 | ||
23117 | wxPyEndAllowThreads(__tstate); | |
23118 | if (PyErr_Occurred()) SWIG_fail; | |
23119 | } | |
23120 | Py_INCREF(Py_None); resultobj = Py_None; | |
23121 | return resultobj; | |
23122 | fail: | |
23123 | return NULL; | |
23124 | } | |
23125 | ||
23126 | ||
23127 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23128 | PyObject *resultobj; | |
23129 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23130 | wxMenu *arg2 = (wxMenu *) 0 ; | |
23131 | int arg3 ; | |
23132 | int arg4 ; | |
23133 | bool result; | |
23134 | PyObject * obj0 = 0 ; | |
23135 | PyObject * obj1 = 0 ; | |
23136 | char *kwnames[] = { | |
23137 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
23138 | }; | |
23139 | ||
23140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:Window_PopupMenuXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
23141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23142 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23143 | { | |
23144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23145 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
23146 | ||
23147 | wxPyEndAllowThreads(__tstate); | |
23148 | if (PyErr_Occurred()) SWIG_fail; | |
23149 | } | |
23150 | resultobj = PyInt_FromLong((long)result); | |
23151 | return resultobj; | |
23152 | fail: | |
23153 | return NULL; | |
23154 | } | |
23155 | ||
23156 | ||
23157 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23158 | PyObject *resultobj; | |
23159 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23160 | wxMenu *arg2 = (wxMenu *) 0 ; | |
23161 | wxPoint *arg3 = 0 ; | |
23162 | bool result; | |
23163 | wxPoint temp3 ; | |
23164 | PyObject * obj0 = 0 ; | |
23165 | PyObject * obj1 = 0 ; | |
23166 | PyObject * obj2 = 0 ; | |
23167 | char *kwnames[] = { | |
23168 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
23169 | }; | |
23170 | ||
23171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23173 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23174 | { | |
23175 | arg3 = &temp3; | |
23176 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23177 | } | |
23178 | { | |
23179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23180 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
23181 | ||
23182 | wxPyEndAllowThreads(__tstate); | |
23183 | if (PyErr_Occurred()) SWIG_fail; | |
23184 | } | |
23185 | resultobj = PyInt_FromLong((long)result); | |
23186 | return resultobj; | |
23187 | fail: | |
23188 | return NULL; | |
23189 | } | |
23190 | ||
23191 | ||
23192 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23193 | PyObject *resultobj; | |
23194 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23195 | long result; | |
23196 | PyObject * obj0 = 0 ; | |
23197 | char *kwnames[] = { | |
23198 | (char *) "self", NULL | |
23199 | }; | |
23200 | ||
23201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
23202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23203 | { | |
23204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23205 | result = (long)wxWindow_GetHandle(arg1); | |
23206 | ||
23207 | wxPyEndAllowThreads(__tstate); | |
23208 | if (PyErr_Occurred()) SWIG_fail; | |
23209 | } | |
23210 | resultobj = PyInt_FromLong((long)result); | |
23211 | return resultobj; | |
23212 | fail: | |
23213 | return NULL; | |
23214 | } | |
23215 | ||
23216 | ||
23217 | static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23218 | PyObject *resultobj; | |
23219 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23220 | wxPaintEvent *arg2 = 0 ; | |
23221 | PyObject * obj0 = 0 ; | |
23222 | PyObject * obj1 = 0 ; | |
23223 | char *kwnames[] = { | |
23224 | (char *) "self",(char *) "event", NULL | |
23225 | }; | |
23226 | ||
23227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
23228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23229 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPaintEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23230 | if (arg2 == NULL) { | |
23231 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23232 | } | |
23233 | { | |
23234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23235 | (arg1)->OnPaint(*arg2); | |
23236 | ||
23237 | wxPyEndAllowThreads(__tstate); | |
23238 | if (PyErr_Occurred()) SWIG_fail; | |
23239 | } | |
23240 | Py_INCREF(Py_None); resultobj = Py_None; | |
23241 | return resultobj; | |
23242 | fail: | |
23243 | return NULL; | |
23244 | } | |
23245 | ||
23246 | ||
23247 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23248 | PyObject *resultobj; | |
23249 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23250 | int arg2 ; | |
23251 | bool result; | |
23252 | PyObject * obj0 = 0 ; | |
23253 | char *kwnames[] = { | |
23254 | (char *) "self",(char *) "orient", NULL | |
23255 | }; | |
23256 | ||
23257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_HasScrollbar",kwnames,&obj0,&arg2)) goto fail; | |
23258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23259 | { | |
23260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23261 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
23262 | ||
23263 | wxPyEndAllowThreads(__tstate); | |
23264 | if (PyErr_Occurred()) SWIG_fail; | |
23265 | } | |
23266 | resultobj = PyInt_FromLong((long)result); | |
23267 | return resultobj; | |
23268 | fail: | |
23269 | return NULL; | |
23270 | } | |
23271 | ||
23272 | ||
23273 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23274 | PyObject *resultobj; | |
23275 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23276 | int arg2 ; | |
23277 | int arg3 ; | |
23278 | int arg4 ; | |
23279 | int arg5 ; | |
23280 | bool arg6 = (bool) TRUE ; | |
23281 | PyObject * obj0 = 0 ; | |
23282 | PyObject * obj5 = 0 ; | |
23283 | char *kwnames[] = { | |
23284 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL | |
23285 | }; | |
23286 | ||
23287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|O:Window_SetScrollbar",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
23288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23289 | if (obj5) { | |
23290 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
23291 | if (PyErr_Occurred()) SWIG_fail; | |
23292 | } | |
23293 | { | |
23294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23295 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
23296 | ||
23297 | wxPyEndAllowThreads(__tstate); | |
23298 | if (PyErr_Occurred()) SWIG_fail; | |
23299 | } | |
23300 | Py_INCREF(Py_None); resultobj = Py_None; | |
23301 | return resultobj; | |
23302 | fail: | |
23303 | return NULL; | |
23304 | } | |
23305 | ||
23306 | ||
23307 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23308 | PyObject *resultobj; | |
23309 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23310 | int arg2 ; | |
23311 | int arg3 ; | |
23312 | bool arg4 = (bool) TRUE ; | |
23313 | PyObject * obj0 = 0 ; | |
23314 | PyObject * obj3 = 0 ; | |
23315 | char *kwnames[] = { | |
23316 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "refresh", NULL | |
23317 | }; | |
23318 | ||
23319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Window_SetScrollPos",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
23320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23321 | if (obj3) { | |
23322 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
23323 | if (PyErr_Occurred()) SWIG_fail; | |
23324 | } | |
23325 | { | |
23326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23327 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
23328 | ||
23329 | wxPyEndAllowThreads(__tstate); | |
23330 | if (PyErr_Occurred()) SWIG_fail; | |
23331 | } | |
23332 | Py_INCREF(Py_None); resultobj = Py_None; | |
23333 | return resultobj; | |
23334 | fail: | |
23335 | return NULL; | |
23336 | } | |
23337 | ||
23338 | ||
23339 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23340 | PyObject *resultobj; | |
23341 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23342 | int arg2 ; | |
23343 | int result; | |
23344 | PyObject * obj0 = 0 ; | |
23345 | char *kwnames[] = { | |
23346 | (char *) "self",(char *) "orient", NULL | |
23347 | }; | |
23348 | ||
23349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_GetScrollPos",kwnames,&obj0,&arg2)) goto fail; | |
23350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23351 | { | |
23352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23353 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
23354 | ||
23355 | wxPyEndAllowThreads(__tstate); | |
23356 | if (PyErr_Occurred()) SWIG_fail; | |
23357 | } | |
23358 | resultobj = PyInt_FromLong((long)result); | |
23359 | return resultobj; | |
23360 | fail: | |
23361 | return NULL; | |
23362 | } | |
23363 | ||
23364 | ||
23365 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23366 | PyObject *resultobj; | |
23367 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23368 | int arg2 ; | |
23369 | int result; | |
23370 | PyObject * obj0 = 0 ; | |
23371 | char *kwnames[] = { | |
23372 | (char *) "self",(char *) "orient", NULL | |
23373 | }; | |
23374 | ||
23375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_GetScrollThumb",kwnames,&obj0,&arg2)) goto fail; | |
23376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23377 | { | |
23378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23379 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
23380 | ||
23381 | wxPyEndAllowThreads(__tstate); | |
23382 | if (PyErr_Occurred()) SWIG_fail; | |
23383 | } | |
23384 | resultobj = PyInt_FromLong((long)result); | |
23385 | return resultobj; | |
23386 | fail: | |
23387 | return NULL; | |
23388 | } | |
23389 | ||
23390 | ||
23391 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23392 | PyObject *resultobj; | |
23393 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23394 | int arg2 ; | |
23395 | int result; | |
23396 | PyObject * obj0 = 0 ; | |
23397 | char *kwnames[] = { | |
23398 | (char *) "self",(char *) "orient", NULL | |
23399 | }; | |
23400 | ||
23401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_GetScrollRange",kwnames,&obj0,&arg2)) goto fail; | |
23402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23403 | { | |
23404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23405 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
23406 | ||
23407 | wxPyEndAllowThreads(__tstate); | |
23408 | if (PyErr_Occurred()) SWIG_fail; | |
23409 | } | |
23410 | resultobj = PyInt_FromLong((long)result); | |
23411 | return resultobj; | |
23412 | fail: | |
23413 | return NULL; | |
23414 | } | |
23415 | ||
23416 | ||
23417 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23418 | PyObject *resultobj; | |
23419 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23420 | int arg2 ; | |
23421 | int arg3 ; | |
23422 | wxRect *arg4 = (wxRect *) NULL ; | |
23423 | PyObject * obj0 = 0 ; | |
23424 | PyObject * obj3 = 0 ; | |
23425 | char *kwnames[] = { | |
23426 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
23427 | }; | |
23428 | ||
23429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Window_ScrollWindow",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
23430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23431 | if (obj3) { | |
23432 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23433 | } | |
23434 | { | |
23435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23436 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
23437 | ||
23438 | wxPyEndAllowThreads(__tstate); | |
23439 | if (PyErr_Occurred()) SWIG_fail; | |
23440 | } | |
23441 | Py_INCREF(Py_None); resultobj = Py_None; | |
23442 | return resultobj; | |
23443 | fail: | |
23444 | return NULL; | |
23445 | } | |
23446 | ||
23447 | ||
23448 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23449 | PyObject *resultobj; | |
23450 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23451 | int arg2 ; | |
23452 | bool result; | |
23453 | PyObject * obj0 = 0 ; | |
23454 | char *kwnames[] = { | |
23455 | (char *) "self",(char *) "lines", NULL | |
23456 | }; | |
23457 | ||
23458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_ScrollLines",kwnames,&obj0,&arg2)) goto fail; | |
23459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23460 | { | |
23461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23462 | result = (bool)(arg1)->ScrollLines(arg2); | |
23463 | ||
23464 | wxPyEndAllowThreads(__tstate); | |
23465 | if (PyErr_Occurred()) SWIG_fail; | |
23466 | } | |
23467 | resultobj = PyInt_FromLong((long)result); | |
23468 | return resultobj; | |
23469 | fail: | |
23470 | return NULL; | |
23471 | } | |
23472 | ||
23473 | ||
23474 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23475 | PyObject *resultobj; | |
23476 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23477 | int arg2 ; | |
23478 | bool result; | |
23479 | PyObject * obj0 = 0 ; | |
23480 | char *kwnames[] = { | |
23481 | (char *) "self",(char *) "pages", NULL | |
23482 | }; | |
23483 | ||
23484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_ScrollPages",kwnames,&obj0,&arg2)) goto fail; | |
23485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23486 | { | |
23487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23488 | result = (bool)(arg1)->ScrollPages(arg2); | |
23489 | ||
23490 | wxPyEndAllowThreads(__tstate); | |
23491 | if (PyErr_Occurred()) SWIG_fail; | |
23492 | } | |
23493 | resultobj = PyInt_FromLong((long)result); | |
23494 | return resultobj; | |
23495 | fail: | |
23496 | return NULL; | |
23497 | } | |
23498 | ||
23499 | ||
23500 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23501 | PyObject *resultobj; | |
23502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23503 | bool result; | |
23504 | PyObject * obj0 = 0 ; | |
23505 | char *kwnames[] = { | |
23506 | (char *) "self", NULL | |
23507 | }; | |
23508 | ||
23509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
23510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23511 | { | |
23512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23513 | result = (bool)(arg1)->LineUp(); | |
23514 | ||
23515 | wxPyEndAllowThreads(__tstate); | |
23516 | if (PyErr_Occurred()) SWIG_fail; | |
23517 | } | |
23518 | resultobj = PyInt_FromLong((long)result); | |
23519 | return resultobj; | |
23520 | fail: | |
23521 | return NULL; | |
23522 | } | |
23523 | ||
23524 | ||
23525 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23526 | PyObject *resultobj; | |
23527 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23528 | bool result; | |
23529 | PyObject * obj0 = 0 ; | |
23530 | char *kwnames[] = { | |
23531 | (char *) "self", NULL | |
23532 | }; | |
23533 | ||
23534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
23535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23536 | { | |
23537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23538 | result = (bool)(arg1)->LineDown(); | |
23539 | ||
23540 | wxPyEndAllowThreads(__tstate); | |
23541 | if (PyErr_Occurred()) SWIG_fail; | |
23542 | } | |
23543 | resultobj = PyInt_FromLong((long)result); | |
23544 | return resultobj; | |
23545 | fail: | |
23546 | return NULL; | |
23547 | } | |
23548 | ||
23549 | ||
23550 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23551 | PyObject *resultobj; | |
23552 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23553 | bool result; | |
23554 | PyObject * obj0 = 0 ; | |
23555 | char *kwnames[] = { | |
23556 | (char *) "self", NULL | |
23557 | }; | |
23558 | ||
23559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
23560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23561 | { | |
23562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23563 | result = (bool)(arg1)->PageUp(); | |
23564 | ||
23565 | wxPyEndAllowThreads(__tstate); | |
23566 | if (PyErr_Occurred()) SWIG_fail; | |
23567 | } | |
23568 | resultobj = PyInt_FromLong((long)result); | |
23569 | return resultobj; | |
23570 | fail: | |
23571 | return NULL; | |
23572 | } | |
23573 | ||
23574 | ||
23575 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23576 | PyObject *resultobj; | |
23577 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23578 | bool result; | |
23579 | PyObject * obj0 = 0 ; | |
23580 | char *kwnames[] = { | |
23581 | (char *) "self", NULL | |
23582 | }; | |
23583 | ||
23584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
23585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23586 | { | |
23587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23588 | result = (bool)(arg1)->PageDown(); | |
23589 | ||
23590 | wxPyEndAllowThreads(__tstate); | |
23591 | if (PyErr_Occurred()) SWIG_fail; | |
23592 | } | |
23593 | resultobj = PyInt_FromLong((long)result); | |
23594 | return resultobj; | |
23595 | fail: | |
23596 | return NULL; | |
23597 | } | |
23598 | ||
23599 | ||
23600 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23601 | PyObject *resultobj; | |
23602 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23603 | wxString *arg2 = 0 ; | |
23604 | bool temp2 = false ; | |
23605 | PyObject * obj0 = 0 ; | |
23606 | PyObject * obj1 = 0 ; | |
23607 | char *kwnames[] = { | |
23608 | (char *) "self",(char *) "text", NULL | |
23609 | }; | |
23610 | ||
23611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
23612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23613 | { | |
23614 | arg2 = wxString_in_helper(obj1); | |
23615 | if (arg2 == NULL) SWIG_fail; | |
23616 | temp2 = true; | |
23617 | } | |
23618 | { | |
23619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23620 | (arg1)->SetHelpText((wxString const &)*arg2); | |
23621 | ||
23622 | wxPyEndAllowThreads(__tstate); | |
23623 | if (PyErr_Occurred()) SWIG_fail; | |
23624 | } | |
23625 | Py_INCREF(Py_None); resultobj = Py_None; | |
23626 | { | |
23627 | if (temp2) | |
23628 | delete arg2; | |
23629 | } | |
23630 | return resultobj; | |
23631 | fail: | |
23632 | { | |
23633 | if (temp2) | |
23634 | delete arg2; | |
23635 | } | |
23636 | return NULL; | |
23637 | } | |
23638 | ||
23639 | ||
23640 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23641 | PyObject *resultobj; | |
23642 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23643 | wxString *arg2 = 0 ; | |
23644 | bool temp2 = false ; | |
23645 | PyObject * obj0 = 0 ; | |
23646 | PyObject * obj1 = 0 ; | |
23647 | char *kwnames[] = { | |
23648 | (char *) "self",(char *) "text", NULL | |
23649 | }; | |
23650 | ||
23651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
23652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23653 | { | |
23654 | arg2 = wxString_in_helper(obj1); | |
23655 | if (arg2 == NULL) SWIG_fail; | |
23656 | temp2 = true; | |
23657 | } | |
23658 | { | |
23659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23660 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
23661 | ||
23662 | wxPyEndAllowThreads(__tstate); | |
23663 | if (PyErr_Occurred()) SWIG_fail; | |
23664 | } | |
23665 | Py_INCREF(Py_None); resultobj = Py_None; | |
23666 | { | |
23667 | if (temp2) | |
23668 | delete arg2; | |
23669 | } | |
23670 | return resultobj; | |
23671 | fail: | |
23672 | { | |
23673 | if (temp2) | |
23674 | delete arg2; | |
23675 | } | |
23676 | return NULL; | |
23677 | } | |
23678 | ||
23679 | ||
23680 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23681 | PyObject *resultobj; | |
23682 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23683 | wxString result; | |
23684 | PyObject * obj0 = 0 ; | |
23685 | char *kwnames[] = { | |
23686 | (char *) "self", NULL | |
23687 | }; | |
23688 | ||
23689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
23690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23691 | { | |
23692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23693 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
23694 | ||
23695 | wxPyEndAllowThreads(__tstate); | |
23696 | if (PyErr_Occurred()) SWIG_fail; | |
23697 | } | |
23698 | { | |
23699 | #if wxUSE_UNICODE | |
23700 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23701 | #else | |
23702 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23703 | #endif | |
23704 | } | |
23705 | return resultobj; | |
23706 | fail: | |
23707 | return NULL; | |
23708 | } | |
23709 | ||
23710 | ||
23711 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23712 | PyObject *resultobj; | |
23713 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23714 | wxString *arg2 = 0 ; | |
23715 | bool temp2 = false ; | |
23716 | PyObject * obj0 = 0 ; | |
23717 | PyObject * obj1 = 0 ; | |
23718 | char *kwnames[] = { | |
23719 | (char *) "self",(char *) "tip", NULL | |
23720 | }; | |
23721 | ||
23722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
23723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23724 | { | |
23725 | arg2 = wxString_in_helper(obj1); | |
23726 | if (arg2 == NULL) SWIG_fail; | |
23727 | temp2 = true; | |
23728 | } | |
23729 | { | |
23730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23731 | (arg1)->SetToolTip((wxString const &)*arg2); | |
23732 | ||
23733 | wxPyEndAllowThreads(__tstate); | |
23734 | if (PyErr_Occurred()) SWIG_fail; | |
23735 | } | |
23736 | Py_INCREF(Py_None); resultobj = Py_None; | |
23737 | { | |
23738 | if (temp2) | |
23739 | delete arg2; | |
23740 | } | |
23741 | return resultobj; | |
23742 | fail: | |
23743 | { | |
23744 | if (temp2) | |
23745 | delete arg2; | |
23746 | } | |
23747 | return NULL; | |
23748 | } | |
23749 | ||
23750 | ||
23751 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23752 | PyObject *resultobj; | |
23753 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23754 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
23755 | PyObject * obj0 = 0 ; | |
23756 | PyObject * obj1 = 0 ; | |
23757 | char *kwnames[] = { | |
23758 | (char *) "self",(char *) "tip", NULL | |
23759 | }; | |
23760 | ||
23761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
23762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23763 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23764 | { | |
23765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23766 | (arg1)->SetToolTip(arg2); | |
23767 | ||
23768 | wxPyEndAllowThreads(__tstate); | |
23769 | if (PyErr_Occurred()) SWIG_fail; | |
23770 | } | |
23771 | Py_INCREF(Py_None); resultobj = Py_None; | |
23772 | return resultobj; | |
23773 | fail: | |
23774 | return NULL; | |
23775 | } | |
23776 | ||
23777 | ||
23778 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23779 | PyObject *resultobj; | |
23780 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23781 | wxToolTip *result; | |
23782 | PyObject * obj0 = 0 ; | |
23783 | char *kwnames[] = { | |
23784 | (char *) "self", NULL | |
23785 | }; | |
23786 | ||
23787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
23788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23789 | { | |
23790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23791 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
23792 | ||
23793 | wxPyEndAllowThreads(__tstate); | |
23794 | if (PyErr_Occurred()) SWIG_fail; | |
23795 | } | |
23796 | { | |
23797 | resultobj = wxPyMake_wxObject(result); | |
23798 | } | |
23799 | return resultobj; | |
23800 | fail: | |
23801 | return NULL; | |
23802 | } | |
23803 | ||
23804 | ||
23805 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23806 | PyObject *resultobj; | |
23807 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23808 | wxDropTarget *arg2 = (wxDropTarget *) 0 ; | |
23809 | PyObject * obj0 = 0 ; | |
23810 | PyObject * obj1 = 0 ; | |
23811 | char *kwnames[] = { | |
23812 | (char *) "self",(char *) "dropTarget", NULL | |
23813 | }; | |
23814 | ||
23815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
23816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23817 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23818 | { | |
23819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23820 | (arg1)->SetDropTarget(arg2); | |
23821 | ||
23822 | wxPyEndAllowThreads(__tstate); | |
23823 | if (PyErr_Occurred()) SWIG_fail; | |
23824 | } | |
23825 | Py_INCREF(Py_None); resultobj = Py_None; | |
23826 | return resultobj; | |
23827 | fail: | |
23828 | return NULL; | |
23829 | } | |
23830 | ||
23831 | ||
23832 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23833 | PyObject *resultobj; | |
23834 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23835 | wxDropTarget *result; | |
23836 | PyObject * obj0 = 0 ; | |
23837 | char *kwnames[] = { | |
23838 | (char *) "self", NULL | |
23839 | }; | |
23840 | ||
23841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
23842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23843 | { | |
23844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23845 | result = (wxDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
23846 | ||
23847 | wxPyEndAllowThreads(__tstate); | |
23848 | if (PyErr_Occurred()) SWIG_fail; | |
23849 | } | |
23850 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDropTarget, 0); | |
23851 | return resultobj; | |
23852 | fail: | |
23853 | return NULL; | |
23854 | } | |
23855 | ||
23856 | ||
23857 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23858 | PyObject *resultobj; | |
23859 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23860 | bool arg2 ; | |
23861 | PyObject * obj0 = 0 ; | |
23862 | PyObject * obj1 = 0 ; | |
23863 | char *kwnames[] = { | |
23864 | (char *) "self",(char *) "accept", NULL | |
23865 | }; | |
23866 | ||
23867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
23868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23869 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
23870 | if (PyErr_Occurred()) SWIG_fail; | |
23871 | { | |
23872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23873 | (arg1)->DragAcceptFiles(arg2); | |
23874 | ||
23875 | wxPyEndAllowThreads(__tstate); | |
23876 | if (PyErr_Occurred()) SWIG_fail; | |
23877 | } | |
23878 | Py_INCREF(Py_None); resultobj = Py_None; | |
23879 | return resultobj; | |
23880 | fail: | |
23881 | return NULL; | |
23882 | } | |
23883 | ||
23884 | ||
23885 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23886 | PyObject *resultobj; | |
23887 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23888 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
23889 | PyObject * obj0 = 0 ; | |
23890 | PyObject * obj1 = 0 ; | |
23891 | char *kwnames[] = { | |
23892 | (char *) "self",(char *) "constraints", NULL | |
23893 | }; | |
23894 | ||
23895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
23896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23897 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23898 | { | |
23899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23900 | (arg1)->SetConstraints(arg2); | |
23901 | ||
23902 | wxPyEndAllowThreads(__tstate); | |
23903 | if (PyErr_Occurred()) SWIG_fail; | |
23904 | } | |
23905 | Py_INCREF(Py_None); resultobj = Py_None; | |
23906 | return resultobj; | |
23907 | fail: | |
23908 | return NULL; | |
23909 | } | |
23910 | ||
23911 | ||
23912 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23913 | PyObject *resultobj; | |
23914 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23915 | wxLayoutConstraints *result; | |
23916 | PyObject * obj0 = 0 ; | |
23917 | char *kwnames[] = { | |
23918 | (char *) "self", NULL | |
23919 | }; | |
23920 | ||
23921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
23922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23923 | { | |
23924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23925 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
23926 | ||
23927 | wxPyEndAllowThreads(__tstate); | |
23928 | if (PyErr_Occurred()) SWIG_fail; | |
23929 | } | |
23930 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 0); | |
23931 | return resultobj; | |
23932 | fail: | |
23933 | return NULL; | |
23934 | } | |
23935 | ||
23936 | ||
23937 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23938 | PyObject *resultobj; | |
23939 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23940 | bool arg2 ; | |
23941 | PyObject * obj0 = 0 ; | |
23942 | PyObject * obj1 = 0 ; | |
23943 | char *kwnames[] = { | |
23944 | (char *) "self",(char *) "autoLayout", NULL | |
23945 | }; | |
23946 | ||
23947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
23948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23949 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
23950 | if (PyErr_Occurred()) SWIG_fail; | |
23951 | { | |
23952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23953 | (arg1)->SetAutoLayout(arg2); | |
23954 | ||
23955 | wxPyEndAllowThreads(__tstate); | |
23956 | if (PyErr_Occurred()) SWIG_fail; | |
23957 | } | |
23958 | Py_INCREF(Py_None); resultobj = Py_None; | |
23959 | return resultobj; | |
23960 | fail: | |
23961 | return NULL; | |
23962 | } | |
23963 | ||
23964 | ||
23965 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23966 | PyObject *resultobj; | |
23967 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23968 | bool result; | |
23969 | PyObject * obj0 = 0 ; | |
23970 | char *kwnames[] = { | |
23971 | (char *) "self", NULL | |
23972 | }; | |
23973 | ||
23974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
23975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23976 | { | |
23977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23978 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
23979 | ||
23980 | wxPyEndAllowThreads(__tstate); | |
23981 | if (PyErr_Occurred()) SWIG_fail; | |
23982 | } | |
23983 | resultobj = PyInt_FromLong((long)result); | |
23984 | return resultobj; | |
23985 | fail: | |
23986 | return NULL; | |
23987 | } | |
23988 | ||
23989 | ||
23990 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23991 | PyObject *resultobj; | |
23992 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23993 | bool result; | |
23994 | PyObject * obj0 = 0 ; | |
23995 | char *kwnames[] = { | |
23996 | (char *) "self", NULL | |
23997 | }; | |
23998 | ||
23999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
24000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24001 | { | |
24002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24003 | result = (bool)(arg1)->Layout(); | |
24004 | ||
24005 | wxPyEndAllowThreads(__tstate); | |
24006 | if (PyErr_Occurred()) SWIG_fail; | |
24007 | } | |
24008 | resultobj = PyInt_FromLong((long)result); | |
24009 | return resultobj; | |
24010 | fail: | |
24011 | return NULL; | |
24012 | } | |
24013 | ||
24014 | ||
24015 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24016 | PyObject *resultobj; | |
24017 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24018 | wxSizer *arg2 = (wxSizer *) 0 ; | |
24019 | bool arg3 = (bool) TRUE ; | |
24020 | PyObject * obj0 = 0 ; | |
24021 | PyObject * obj1 = 0 ; | |
24022 | PyObject * obj2 = 0 ; | |
24023 | char *kwnames[] = { | |
24024 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
24025 | }; | |
24026 | ||
24027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24029 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24030 | if (obj2) { | |
24031 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
24032 | if (PyErr_Occurred()) SWIG_fail; | |
24033 | } | |
24034 | { | |
24035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24036 | (arg1)->SetSizer(arg2,arg3); | |
24037 | ||
24038 | wxPyEndAllowThreads(__tstate); | |
24039 | if (PyErr_Occurred()) SWIG_fail; | |
24040 | } | |
24041 | Py_INCREF(Py_None); resultobj = Py_None; | |
24042 | return resultobj; | |
24043 | fail: | |
24044 | return NULL; | |
24045 | } | |
24046 | ||
24047 | ||
24048 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24049 | PyObject *resultobj; | |
24050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24051 | wxSizer *arg2 = (wxSizer *) 0 ; | |
24052 | bool arg3 = (bool) TRUE ; | |
24053 | PyObject * obj0 = 0 ; | |
24054 | PyObject * obj1 = 0 ; | |
24055 | PyObject * obj2 = 0 ; | |
24056 | char *kwnames[] = { | |
24057 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
24058 | }; | |
24059 | ||
24060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24062 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24063 | if (obj2) { | |
24064 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
24065 | if (PyErr_Occurred()) SWIG_fail; | |
24066 | } | |
24067 | { | |
24068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24069 | (arg1)->SetSizerAndFit(arg2,arg3); | |
24070 | ||
24071 | wxPyEndAllowThreads(__tstate); | |
24072 | if (PyErr_Occurred()) SWIG_fail; | |
24073 | } | |
24074 | Py_INCREF(Py_None); resultobj = Py_None; | |
24075 | return resultobj; | |
24076 | fail: | |
24077 | return NULL; | |
24078 | } | |
24079 | ||
24080 | ||
24081 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24082 | PyObject *resultobj; | |
24083 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24084 | wxSizer *result; | |
24085 | PyObject * obj0 = 0 ; | |
24086 | char *kwnames[] = { | |
24087 | (char *) "self", NULL | |
24088 | }; | |
24089 | ||
24090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
24091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24092 | { | |
24093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24094 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
24095 | ||
24096 | wxPyEndAllowThreads(__tstate); | |
24097 | if (PyErr_Occurred()) SWIG_fail; | |
24098 | } | |
24099 | { | |
24100 | resultobj = wxPyMake_wxSizer(result); | |
24101 | } | |
24102 | return resultobj; | |
24103 | fail: | |
24104 | return NULL; | |
24105 | } | |
24106 | ||
24107 | ||
24108 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24109 | PyObject *resultobj; | |
24110 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24111 | wxSizer *arg2 = (wxSizer *) 0 ; | |
24112 | PyObject * obj0 = 0 ; | |
24113 | PyObject * obj1 = 0 ; | |
24114 | char *kwnames[] = { | |
24115 | (char *) "self",(char *) "sizer", NULL | |
24116 | }; | |
24117 | ||
24118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
24119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24120 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24121 | { | |
24122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24123 | (arg1)->SetContainingSizer(arg2); | |
24124 | ||
24125 | wxPyEndAllowThreads(__tstate); | |
24126 | if (PyErr_Occurred()) SWIG_fail; | |
24127 | } | |
24128 | Py_INCREF(Py_None); resultobj = Py_None; | |
24129 | return resultobj; | |
24130 | fail: | |
24131 | return NULL; | |
24132 | } | |
24133 | ||
24134 | ||
24135 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24136 | PyObject *resultobj; | |
24137 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24138 | wxSizer *result; | |
24139 | PyObject * obj0 = 0 ; | |
24140 | char *kwnames[] = { | |
24141 | (char *) "self", NULL | |
24142 | }; | |
24143 | ||
24144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
24145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24146 | { | |
24147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24148 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
24149 | ||
24150 | wxPyEndAllowThreads(__tstate); | |
24151 | if (PyErr_Occurred()) SWIG_fail; | |
24152 | } | |
24153 | { | |
24154 | resultobj = wxPyMake_wxSizer(result); | |
24155 | } | |
24156 | return resultobj; | |
24157 | fail: | |
24158 | return NULL; | |
24159 | } | |
24160 | ||
24161 | ||
24162 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
24163 | PyObject *obj; | |
24164 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24165 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
24166 | Py_INCREF(obj); | |
24167 | return Py_BuildValue((char *)""); | |
24168 | } | |
24169 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24170 | PyObject *resultobj; | |
24171 | long arg1 ; | |
24172 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24173 | wxWindow *result; | |
24174 | PyObject * obj1 = 0 ; | |
24175 | char *kwnames[] = { | |
24176 | (char *) "id",(char *) "parent", NULL | |
24177 | }; | |
24178 | ||
24179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l|O:FindWindowById",kwnames,&arg1,&obj1)) goto fail; | |
24180 | if (obj1) { | |
24181 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24182 | } | |
24183 | { | |
24184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24185 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
24186 | ||
24187 | wxPyEndAllowThreads(__tstate); | |
24188 | if (PyErr_Occurred()) SWIG_fail; | |
24189 | } | |
24190 | { | |
24191 | resultobj = wxPyMake_wxObject(result); | |
24192 | } | |
24193 | return resultobj; | |
24194 | fail: | |
24195 | return NULL; | |
24196 | } | |
24197 | ||
24198 | ||
24199 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24200 | PyObject *resultobj; | |
24201 | wxString *arg1 = 0 ; | |
24202 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24203 | wxWindow *result; | |
24204 | bool temp1 = false ; | |
24205 | PyObject * obj0 = 0 ; | |
24206 | PyObject * obj1 = 0 ; | |
24207 | char *kwnames[] = { | |
24208 | (char *) "name",(char *) "parent", NULL | |
24209 | }; | |
24210 | ||
24211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
24212 | { | |
24213 | arg1 = wxString_in_helper(obj0); | |
24214 | if (arg1 == NULL) SWIG_fail; | |
24215 | temp1 = true; | |
24216 | } | |
24217 | if (obj1) { | |
24218 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24219 | } | |
24220 | { | |
24221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24222 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
24223 | ||
24224 | wxPyEndAllowThreads(__tstate); | |
24225 | if (PyErr_Occurred()) SWIG_fail; | |
24226 | } | |
24227 | { | |
24228 | resultobj = wxPyMake_wxObject(result); | |
24229 | } | |
24230 | { | |
24231 | if (temp1) | |
24232 | delete arg1; | |
24233 | } | |
24234 | return resultobj; | |
24235 | fail: | |
24236 | { | |
24237 | if (temp1) | |
24238 | delete arg1; | |
24239 | } | |
24240 | return NULL; | |
24241 | } | |
24242 | ||
24243 | ||
24244 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24245 | PyObject *resultobj; | |
24246 | wxString *arg1 = 0 ; | |
24247 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24248 | wxWindow *result; | |
24249 | bool temp1 = false ; | |
24250 | PyObject * obj0 = 0 ; | |
24251 | PyObject * obj1 = 0 ; | |
24252 | char *kwnames[] = { | |
24253 | (char *) "label",(char *) "parent", NULL | |
24254 | }; | |
24255 | ||
24256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
24257 | { | |
24258 | arg1 = wxString_in_helper(obj0); | |
24259 | if (arg1 == NULL) SWIG_fail; | |
24260 | temp1 = true; | |
24261 | } | |
24262 | if (obj1) { | |
24263 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24264 | } | |
24265 | { | |
24266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24267 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
24268 | ||
24269 | wxPyEndAllowThreads(__tstate); | |
24270 | if (PyErr_Occurred()) SWIG_fail; | |
24271 | } | |
24272 | { | |
24273 | resultobj = wxPyMake_wxObject(result); | |
24274 | } | |
24275 | { | |
24276 | if (temp1) | |
24277 | delete arg1; | |
24278 | } | |
24279 | return resultobj; | |
24280 | fail: | |
24281 | { | |
24282 | if (temp1) | |
24283 | delete arg1; | |
24284 | } | |
24285 | return NULL; | |
24286 | } | |
24287 | ||
24288 | ||
24289 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24290 | PyObject *resultobj; | |
24291 | unsigned long arg1 ; | |
24292 | wxWindow *result; | |
24293 | PyObject * obj0 = 0 ; | |
24294 | char *kwnames[] = { | |
24295 | (char *) "hWnd", NULL | |
24296 | }; | |
24297 | ||
24298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FromHWND",kwnames,&obj0)) goto fail; | |
24299 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
24300 | if (PyErr_Occurred()) SWIG_fail; | |
24301 | { | |
24302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24303 | result = (wxWindow *)wxWindow_FromHWND(arg1); | |
24304 | ||
24305 | wxPyEndAllowThreads(__tstate); | |
24306 | if (PyErr_Occurred()) SWIG_fail; | |
24307 | } | |
24308 | { | |
24309 | resultobj = wxPyMake_wxObject(result); | |
24310 | } | |
24311 | return resultobj; | |
24312 | fail: | |
24313 | return NULL; | |
24314 | } | |
24315 | ||
24316 | ||
24317 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24318 | PyObject *resultobj; | |
24319 | wxValidator *result; | |
24320 | char *kwnames[] = { | |
24321 | NULL | |
24322 | }; | |
24323 | ||
24324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
24325 | { | |
24326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24327 | result = (wxValidator *)new wxValidator(); | |
24328 | ||
24329 | wxPyEndAllowThreads(__tstate); | |
24330 | if (PyErr_Occurred()) SWIG_fail; | |
24331 | } | |
24332 | { | |
24333 | resultobj = wxPyMake_wxObject(result); | |
24334 | } | |
24335 | return resultobj; | |
24336 | fail: | |
24337 | return NULL; | |
24338 | } | |
24339 | ||
24340 | ||
24341 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24342 | PyObject *resultobj; | |
24343 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24344 | wxValidator *result; | |
24345 | PyObject * obj0 = 0 ; | |
24346 | char *kwnames[] = { | |
24347 | (char *) "self", NULL | |
24348 | }; | |
24349 | ||
24350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
24351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24352 | { | |
24353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24354 | result = (wxValidator *)(arg1)->Clone(); | |
24355 | ||
24356 | wxPyEndAllowThreads(__tstate); | |
24357 | if (PyErr_Occurred()) SWIG_fail; | |
24358 | } | |
24359 | { | |
24360 | resultobj = wxPyMake_wxObject(result); | |
24361 | } | |
24362 | return resultobj; | |
24363 | fail: | |
24364 | return NULL; | |
24365 | } | |
24366 | ||
24367 | ||
24368 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24369 | PyObject *resultobj; | |
24370 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24371 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24372 | bool result; | |
24373 | PyObject * obj0 = 0 ; | |
24374 | PyObject * obj1 = 0 ; | |
24375 | char *kwnames[] = { | |
24376 | (char *) "self",(char *) "parent", NULL | |
24377 | }; | |
24378 | ||
24379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
24380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24381 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24382 | { | |
24383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24384 | result = (bool)(arg1)->Validate(arg2); | |
24385 | ||
24386 | wxPyEndAllowThreads(__tstate); | |
24387 | if (PyErr_Occurred()) SWIG_fail; | |
24388 | } | |
24389 | resultobj = PyInt_FromLong((long)result); | |
24390 | return resultobj; | |
24391 | fail: | |
24392 | return NULL; | |
24393 | } | |
24394 | ||
24395 | ||
24396 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24397 | PyObject *resultobj; | |
24398 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24399 | bool result; | |
24400 | PyObject * obj0 = 0 ; | |
24401 | char *kwnames[] = { | |
24402 | (char *) "self", NULL | |
24403 | }; | |
24404 | ||
24405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
24406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24407 | { | |
24408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24409 | result = (bool)(arg1)->TransferToWindow(); | |
24410 | ||
24411 | wxPyEndAllowThreads(__tstate); | |
24412 | if (PyErr_Occurred()) SWIG_fail; | |
24413 | } | |
24414 | resultobj = PyInt_FromLong((long)result); | |
24415 | return resultobj; | |
24416 | fail: | |
24417 | return NULL; | |
24418 | } | |
24419 | ||
24420 | ||
24421 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24422 | PyObject *resultobj; | |
24423 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24424 | bool result; | |
24425 | PyObject * obj0 = 0 ; | |
24426 | char *kwnames[] = { | |
24427 | (char *) "self", NULL | |
24428 | }; | |
24429 | ||
24430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
24431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24432 | { | |
24433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24434 | result = (bool)(arg1)->TransferFromWindow(); | |
24435 | ||
24436 | wxPyEndAllowThreads(__tstate); | |
24437 | if (PyErr_Occurred()) SWIG_fail; | |
24438 | } | |
24439 | resultobj = PyInt_FromLong((long)result); | |
24440 | return resultobj; | |
24441 | fail: | |
24442 | return NULL; | |
24443 | } | |
24444 | ||
24445 | ||
24446 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24447 | PyObject *resultobj; | |
24448 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24449 | wxWindow *result; | |
24450 | PyObject * obj0 = 0 ; | |
24451 | char *kwnames[] = { | |
24452 | (char *) "self", NULL | |
24453 | }; | |
24454 | ||
24455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
24456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24457 | { | |
24458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24459 | result = (wxWindow *)(arg1)->GetWindow(); | |
24460 | ||
24461 | wxPyEndAllowThreads(__tstate); | |
24462 | if (PyErr_Occurred()) SWIG_fail; | |
24463 | } | |
24464 | { | |
24465 | resultobj = wxPyMake_wxObject(result); | |
24466 | } | |
24467 | return resultobj; | |
24468 | fail: | |
24469 | return NULL; | |
24470 | } | |
24471 | ||
24472 | ||
24473 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24474 | PyObject *resultobj; | |
24475 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24476 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24477 | PyObject * obj0 = 0 ; | |
24478 | PyObject * obj1 = 0 ; | |
24479 | char *kwnames[] = { | |
24480 | (char *) "self",(char *) "window", NULL | |
24481 | }; | |
24482 | ||
24483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
24484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24485 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24486 | { | |
24487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24488 | (arg1)->SetWindow(arg2); | |
24489 | ||
24490 | wxPyEndAllowThreads(__tstate); | |
24491 | if (PyErr_Occurred()) SWIG_fail; | |
24492 | } | |
24493 | Py_INCREF(Py_None); resultobj = Py_None; | |
24494 | return resultobj; | |
24495 | fail: | |
24496 | return NULL; | |
24497 | } | |
24498 | ||
24499 | ||
24500 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24501 | PyObject *resultobj; | |
24502 | bool result; | |
24503 | char *kwnames[] = { | |
24504 | NULL | |
24505 | }; | |
24506 | ||
24507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
24508 | { | |
24509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24510 | result = (bool)wxValidator::IsSilent(); | |
24511 | ||
24512 | wxPyEndAllowThreads(__tstate); | |
24513 | if (PyErr_Occurred()) SWIG_fail; | |
24514 | } | |
24515 | resultobj = PyInt_FromLong((long)result); | |
24516 | return resultobj; | |
24517 | fail: | |
24518 | return NULL; | |
24519 | } | |
24520 | ||
24521 | ||
24522 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24523 | PyObject *resultobj; | |
24524 | int arg1 = (int) TRUE ; | |
24525 | char *kwnames[] = { | |
24526 | (char *) "doIt", NULL | |
24527 | }; | |
24528 | ||
24529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:Validator_SetBellOnError",kwnames,&arg1)) goto fail; | |
24530 | { | |
24531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24532 | wxValidator::SetBellOnError(arg1); | |
24533 | ||
24534 | wxPyEndAllowThreads(__tstate); | |
24535 | if (PyErr_Occurred()) SWIG_fail; | |
24536 | } | |
24537 | Py_INCREF(Py_None); resultobj = Py_None; | |
24538 | return resultobj; | |
24539 | fail: | |
24540 | return NULL; | |
24541 | } | |
24542 | ||
24543 | ||
24544 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
24545 | PyObject *obj; | |
24546 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24547 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
24548 | Py_INCREF(obj); | |
24549 | return Py_BuildValue((char *)""); | |
24550 | } | |
24551 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24552 | PyObject *resultobj; | |
24553 | wxPyValidator *result; | |
24554 | char *kwnames[] = { | |
24555 | NULL | |
24556 | }; | |
24557 | ||
24558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
24559 | { | |
24560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24561 | result = (wxPyValidator *)new wxPyValidator(); | |
24562 | ||
24563 | wxPyEndAllowThreads(__tstate); | |
24564 | if (PyErr_Occurred()) SWIG_fail; | |
24565 | } | |
24566 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyValidator, 1); | |
24567 | return resultobj; | |
24568 | fail: | |
24569 | return NULL; | |
24570 | } | |
24571 | ||
24572 | ||
24573 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24574 | PyObject *resultobj; | |
24575 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
24576 | PyObject *arg2 = (PyObject *) 0 ; | |
24577 | PyObject *arg3 = (PyObject *) 0 ; | |
24578 | int arg4 = (int) TRUE ; | |
24579 | PyObject * obj0 = 0 ; | |
24580 | PyObject * obj1 = 0 ; | |
24581 | PyObject * obj2 = 0 ; | |
24582 | char *kwnames[] = { | |
24583 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
24584 | }; | |
24585 | ||
24586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
24587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24588 | arg2 = obj1; | |
24589 | arg3 = obj2; | |
24590 | { | |
24591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24592 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
24593 | ||
24594 | wxPyEndAllowThreads(__tstate); | |
24595 | if (PyErr_Occurred()) SWIG_fail; | |
24596 | } | |
24597 | Py_INCREF(Py_None); resultobj = Py_None; | |
24598 | return resultobj; | |
24599 | fail: | |
24600 | return NULL; | |
24601 | } | |
24602 | ||
24603 | ||
24604 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
24605 | PyObject *obj; | |
24606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24607 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
24608 | Py_INCREF(obj); | |
24609 | return Py_BuildValue((char *)""); | |
24610 | } | |
24611 | static int _wrap_DefaultValidator_set(PyObject *_val) { | |
24612 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); | |
24613 | return 1; | |
24614 | } | |
24615 | ||
24616 | ||
24617 | static PyObject *_wrap_DefaultValidator_get() { | |
24618 | PyObject *pyobj; | |
24619 | ||
24620 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultValidator, SWIGTYPE_p_wxValidator, 0); | |
24621 | return pyobj; | |
24622 | } | |
24623 | ||
24624 | ||
24625 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24626 | PyObject *resultobj; | |
24627 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24628 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24629 | long arg2 = (long) 0 ; | |
24630 | wxMenu *result; | |
24631 | bool temp1 = false ; | |
24632 | PyObject * obj0 = 0 ; | |
24633 | char *kwnames[] = { | |
24634 | (char *) "title",(char *) "style", NULL | |
24635 | }; | |
24636 | ||
24637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Ol:new_Menu",kwnames,&obj0,&arg2)) goto fail; | |
24638 | if (obj0) { | |
24639 | { | |
24640 | arg1 = wxString_in_helper(obj0); | |
24641 | if (arg1 == NULL) SWIG_fail; | |
24642 | temp1 = true; | |
24643 | } | |
24644 | } | |
24645 | { | |
24646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24647 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
24648 | ||
24649 | wxPyEndAllowThreads(__tstate); | |
24650 | if (PyErr_Occurred()) SWIG_fail; | |
24651 | } | |
24652 | { | |
24653 | resultobj = wxPyMake_wxObject(result); | |
24654 | } | |
24655 | { | |
24656 | if (temp1) | |
24657 | delete arg1; | |
24658 | } | |
24659 | return resultobj; | |
24660 | fail: | |
24661 | { | |
24662 | if (temp1) | |
24663 | delete arg1; | |
24664 | } | |
24665 | return NULL; | |
24666 | } | |
24667 | ||
24668 | ||
24669 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24670 | PyObject *resultobj; | |
24671 | wxMenu *arg1 = (wxMenu *) 0 ; | |
24672 | int arg2 ; | |
24673 | wxString *arg3 = 0 ; | |
24674 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
24675 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
24676 | int arg5 = (int) wxITEM_NORMAL ; | |
24677 | bool temp3 = false ; | |
24678 | bool temp4 = false ; | |
24679 | PyObject * obj0 = 0 ; | |
24680 | PyObject * obj2 = 0 ; | |
24681 | PyObject * obj3 = 0 ; | |
24682 | char *kwnames[] = { | |
24683 | (char *) "self",(char *) "itemid",(char *) "text",(char *) "help",(char *) "kind", NULL | |
24684 | }; | |
24685 | ||
24686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|Oi:Menu_Append",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
24687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24688 | { | |
24689 | arg3 = wxString_in_helper(obj2); | |
24690 | if (arg3 == NULL) SWIG_fail; | |
24691 | temp3 = true; | |
24692 | } | |
24693 | if (obj3) { | |
24694 | { | |
24695 | arg4 = wxString_in_helper(obj3); | |
24696 | if (arg4 == NULL) SWIG_fail; | |
24697 | temp4 = true; | |
24698 | } | |
24699 | } | |
24700 | { | |
24701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24702 | (arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
24703 | ||
24704 | wxPyEndAllowThreads(__tstate); | |
24705 | if (PyErr_Occurred()) SWIG_fail; | |
24706 | } | |
24707 | Py_INCREF(Py_None); resultobj = Py_None; | |
24708 | { | |
24709 | if (temp3) | |
24710 | delete arg3; | |
24711 | } | |
24712 | { | |
24713 | if (temp4) | |
24714 | delete arg4; | |
24715 | } | |
24716 | return resultobj; | |
24717 | fail: | |
24718 | { | |
24719 | if (temp3) | |
24720 | delete arg3; | |
24721 | } | |
24722 | { | |
24723 | if (temp4) | |
24724 | delete arg4; | |
24725 | } | |
24726 | return NULL; | |
24727 | } | |
24728 | ||
24729 | ||
24730 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24731 | PyObject *resultobj; | |
24732 | wxMenu *arg1 = (wxMenu *) 0 ; | |
24733 | PyObject * obj0 = 0 ; | |
24734 | char *kwnames[] = { | |
24735 | (char *) "self", NULL | |
24736 | }; | |
24737 | ||
24738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
24739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24740 | { | |
24741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24742 | (arg1)->AppendSeparator(); | |
24743 | ||
24744 | wxPyEndAllowThreads(__tstate); | |
24745 | if (PyErr_Occurred()) SWIG_fail; | |
24746 | } | |
24747 | Py_INCREF(Py_None); resultobj = Py_None; | |
24748 | return resultobj; | |
24749 | fail: | |
24750 | return NULL; | |
24751 | } | |
24752 | ||
24753 | ||
24754 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24755 | PyObject *resultobj; | |
24756 | wxMenu *arg1 = (wxMenu *) 0 ; | |
24757 | int arg2 ; | |
24758 | wxString *arg3 = 0 ; | |
24759 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
24760 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
24761 | bool temp3 = false ; | |
24762 | bool temp4 = false ; | |
24763 | PyObject * obj0 = 0 ; | |
24764 | PyObject * obj2 = 0 ; | |
24765 | PyObject * obj3 = 0 ; | |
24766 | char *kwnames[] = { | |
24767 | (char *) "self",(char *) "itemid",(char *) "text",(char *) "help", NULL | |
24768 | }; | |
24769 | ||
24770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_AppendCheckItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
24771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24772 | { | |
24773 | arg3 = wxString_in_helper(obj2); | |
24774 | if (arg3 == NULL) SWIG_fail; | |
24775 | temp3 = true; | |
24776 | } | |
24777 | if (obj3) { | |
24778 | { | |
24779 | arg4 = wxString_in_helper(obj3); | |
24780 | if (arg4 == NULL) SWIG_fail; | |
24781 | temp4 = true; | |
24782 | } | |
24783 | } | |
24784 | { | |
24785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24786 | (arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
24787 | ||
24788 | wxPyEndAllowThreads(__tstate); | |
24789 | if (PyErr_Occurred()) SWIG_fail; | |
24790 | } | |
24791 | Py_INCREF(Py_None); resultobj = Py_None; | |
24792 | { | |
24793 | if (temp3) | |
24794 | delete arg3; | |
24795 | } | |
24796 | { | |
24797 | if (temp4) | |
24798 | delete arg4; | |
24799 | } | |
24800 | return resultobj; | |
24801 | fail: | |
24802 | { | |
24803 | if (temp3) | |
24804 | delete arg3; | |
24805 | } | |
24806 | { | |
24807 | if (temp4) | |
24808 | delete arg4; | |
24809 | } | |
24810 | return NULL; | |
24811 | } | |
24812 | ||
24813 | ||
24814 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24815 | PyObject *resultobj; | |
24816 | wxMenu *arg1 = (wxMenu *) 0 ; | |
24817 | int arg2 ; | |
24818 | wxString *arg3 = 0 ; | |
24819 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
24820 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
24821 | bool temp3 = false ; | |
24822 | bool temp4 = false ; | |
24823 | PyObject * obj0 = 0 ; | |
24824 | PyObject * obj2 = 0 ; | |
24825 | PyObject * obj3 = 0 ; | |
24826 | char *kwnames[] = { | |
24827 | (char *) "self",(char *) "itemid",(char *) "text",(char *) "help", NULL | |
24828 | }; | |
24829 | ||
24830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_AppendRadioItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
24831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24832 | { | |
24833 | arg3 = wxString_in_helper(obj2); | |
24834 | if (arg3 == NULL) SWIG_fail; | |
24835 | temp3 = true; | |
24836 | } | |
24837 | if (obj3) { | |
24838 | { | |
24839 | arg4 = wxString_in_helper(obj3); | |
24840 | if (arg4 == NULL) SWIG_fail; | |
24841 | temp4 = true; | |
24842 | } | |
24843 | } | |
24844 | { | |
24845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24846 | (arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
24847 | ||
24848 | wxPyEndAllowThreads(__tstate); | |
24849 | if (PyErr_Occurred()) SWIG_fail; | |
24850 | } | |
24851 | Py_INCREF(Py_None); resultobj = Py_None; | |
24852 | { | |
24853 | if (temp3) | |
24854 | delete arg3; | |
24855 | } | |
24856 | { | |
24857 | if (temp4) | |
24858 | delete arg4; | |
24859 | } | |
24860 | return resultobj; | |
24861 | fail: | |
24862 | { | |
24863 | if (temp3) | |
24864 | delete arg3; | |
24865 | } | |
24866 | { | |
24867 | if (temp4) | |
24868 | delete arg4; | |
24869 | } | |
24870 | return NULL; | |
24871 | } | |
24872 | ||
24873 | ||
24874 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24875 | PyObject *resultobj; | |
24876 | wxMenu *arg1 = (wxMenu *) 0 ; | |
24877 | int arg2 ; | |
24878 | wxString *arg3 = 0 ; | |
24879 | wxMenu *arg4 = (wxMenu *) 0 ; | |
24880 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
24881 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
24882 | bool temp3 = false ; | |
24883 | bool temp5 = false ; | |
24884 | PyObject * obj0 = 0 ; | |
24885 | PyObject * obj2 = 0 ; | |
24886 | PyObject * obj3 = 0 ; | |
24887 | PyObject * obj4 = 0 ; | |
24888 | char *kwnames[] = { | |
24889 | (char *) "self",(char *) "itemid",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
24890 | }; | |
24891 | ||
24892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO|O:Menu_AppendMenu",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4)) goto fail; | |
24893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24894 | { | |
24895 | arg3 = wxString_in_helper(obj2); | |
24896 | if (arg3 == NULL) SWIG_fail; | |
24897 | temp3 = true; | |
24898 | } | |
24899 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24900 | if (obj4) { | |
24901 | { | |
24902 | arg5 = wxString_in_helper(obj4); | |
24903 | if (arg5 == NULL) SWIG_fail; | |
24904 | temp5 = true; | |
24905 | } | |
24906 | } | |
24907 | { | |
24908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24909 | (arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
24910 | ||
24911 | wxPyEndAllowThreads(__tstate); | |
24912 | if (PyErr_Occurred()) SWIG_fail; | |
24913 | } | |
24914 | Py_INCREF(Py_None); resultobj = Py_None; | |
24915 | { | |
24916 | if (temp3) | |
24917 | delete arg3; | |
24918 | } | |
24919 | { | |
24920 | if (temp5) | |
24921 | delete arg5; | |
24922 | } | |
24923 | return resultobj; | |
24924 | fail: | |
24925 | { | |
24926 | if (temp3) | |
24927 | delete arg3; | |
24928 | } | |
24929 | { | |
24930 | if (temp5) | |
24931 | delete arg5; | |
24932 | } | |
24933 | return NULL; | |
24934 | } | |
24935 | ||
24936 | ||
24937 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24938 | PyObject *resultobj; | |
24939 | wxMenu *arg1 = (wxMenu *) 0 ; | |
24940 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
24941 | PyObject * obj0 = 0 ; | |
24942 | PyObject * obj1 = 0 ; | |
24943 | char *kwnames[] = { | |
24944 | (char *) "self",(char *) "item", NULL | |
24945 | }; | |
24946 | ||
24947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
24948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24949 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24950 | { | |
24951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24952 | (arg1)->Append(arg2); | |
24953 | ||
24954 | wxPyEndAllowThreads(__tstate); | |
24955 | if (PyErr_Occurred()) SWIG_fail; | |
24956 | } | |
24957 | Py_INCREF(Py_None); resultobj = Py_None; | |
24958 | return resultobj; | |
24959 | fail: | |
24960 | return NULL; | |
24961 | } | |
24962 | ||
24963 | ||
24964 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24965 | PyObject *resultobj; | |
24966 | wxMenu *arg1 = (wxMenu *) 0 ; | |
24967 | PyObject * obj0 = 0 ; | |
24968 | char *kwnames[] = { | |
24969 | (char *) "self", NULL | |
24970 | }; | |
24971 | ||
24972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
24973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24974 | { | |
24975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24976 | (arg1)->Break(); | |
24977 | ||
24978 | wxPyEndAllowThreads(__tstate); | |
24979 | if (PyErr_Occurred()) SWIG_fail; | |
24980 | } | |
24981 | Py_INCREF(Py_None); resultobj = Py_None; | |
24982 | return resultobj; | |
24983 | fail: | |
24984 | return NULL; | |
24985 | } | |
24986 | ||
24987 | ||
24988 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24989 | PyObject *resultobj; | |
24990 | wxMenu *arg1 = (wxMenu *) 0 ; | |
24991 | size_t arg2 ; | |
24992 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
24993 | bool result; | |
24994 | PyObject * obj0 = 0 ; | |
24995 | PyObject * obj1 = 0 ; | |
24996 | PyObject * obj2 = 0 ; | |
24997 | char *kwnames[] = { | |
24998 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
24999 | }; | |
25000 | ||
25001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25003 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25004 | if (PyErr_Occurred()) SWIG_fail; | |
25005 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25006 | { | |
25007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25008 | result = (bool)(arg1)->Insert(arg2,arg3); | |
25009 | ||
25010 | wxPyEndAllowThreads(__tstate); | |
25011 | if (PyErr_Occurred()) SWIG_fail; | |
25012 | } | |
25013 | resultobj = PyInt_FromLong((long)result); | |
25014 | return resultobj; | |
25015 | fail: | |
25016 | return NULL; | |
25017 | } | |
25018 | ||
25019 | ||
25020 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25021 | PyObject *resultobj; | |
25022 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25023 | size_t arg2 ; | |
25024 | int arg3 ; | |
25025 | wxString *arg4 = 0 ; | |
25026 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25027 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
25028 | int arg6 = (int) wxITEM_NORMAL ; | |
25029 | bool temp4 = false ; | |
25030 | bool temp5 = false ; | |
25031 | PyObject * obj0 = 0 ; | |
25032 | PyObject * obj1 = 0 ; | |
25033 | PyObject * obj3 = 0 ; | |
25034 | PyObject * obj4 = 0 ; | |
25035 | char *kwnames[] = { | |
25036 | (char *) "self",(char *) "pos",(char *) "itemid",(char *) "text",(char *) "help",(char *) "kind", NULL | |
25037 | }; | |
25038 | ||
25039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|Oi:Menu_Insert",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6)) goto fail; | |
25040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25041 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25042 | if (PyErr_Occurred()) SWIG_fail; | |
25043 | { | |
25044 | arg4 = wxString_in_helper(obj3); | |
25045 | if (arg4 == NULL) SWIG_fail; | |
25046 | temp4 = true; | |
25047 | } | |
25048 | if (obj4) { | |
25049 | { | |
25050 | arg5 = wxString_in_helper(obj4); | |
25051 | if (arg5 == NULL) SWIG_fail; | |
25052 | temp5 = true; | |
25053 | } | |
25054 | } | |
25055 | { | |
25056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25057 | (arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
25058 | ||
25059 | wxPyEndAllowThreads(__tstate); | |
25060 | if (PyErr_Occurred()) SWIG_fail; | |
25061 | } | |
25062 | Py_INCREF(Py_None); resultobj = Py_None; | |
25063 | { | |
25064 | if (temp4) | |
25065 | delete arg4; | |
25066 | } | |
25067 | { | |
25068 | if (temp5) | |
25069 | delete arg5; | |
25070 | } | |
25071 | return resultobj; | |
25072 | fail: | |
25073 | { | |
25074 | if (temp4) | |
25075 | delete arg4; | |
25076 | } | |
25077 | { | |
25078 | if (temp5) | |
25079 | delete arg5; | |
25080 | } | |
25081 | return NULL; | |
25082 | } | |
25083 | ||
25084 | ||
25085 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25086 | PyObject *resultobj; | |
25087 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25088 | size_t arg2 ; | |
25089 | PyObject * obj0 = 0 ; | |
25090 | PyObject * obj1 = 0 ; | |
25091 | char *kwnames[] = { | |
25092 | (char *) "self",(char *) "pos", NULL | |
25093 | }; | |
25094 | ||
25095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
25096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25097 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25098 | if (PyErr_Occurred()) SWIG_fail; | |
25099 | { | |
25100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25101 | (arg1)->InsertSeparator(arg2); | |
25102 | ||
25103 | wxPyEndAllowThreads(__tstate); | |
25104 | if (PyErr_Occurred()) SWIG_fail; | |
25105 | } | |
25106 | Py_INCREF(Py_None); resultobj = Py_None; | |
25107 | return resultobj; | |
25108 | fail: | |
25109 | return NULL; | |
25110 | } | |
25111 | ||
25112 | ||
25113 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25114 | PyObject *resultobj; | |
25115 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25116 | size_t arg2 ; | |
25117 | int arg3 ; | |
25118 | wxString *arg4 = 0 ; | |
25119 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25120 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
25121 | bool temp4 = false ; | |
25122 | bool temp5 = false ; | |
25123 | PyObject * obj0 = 0 ; | |
25124 | PyObject * obj1 = 0 ; | |
25125 | PyObject * obj3 = 0 ; | |
25126 | PyObject * obj4 = 0 ; | |
25127 | char *kwnames[] = { | |
25128 | (char *) "self",(char *) "pos",(char *) "itemid",(char *) "text",(char *) "help", NULL | |
25129 | }; | |
25130 | ||
25131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
25132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25133 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25134 | if (PyErr_Occurred()) SWIG_fail; | |
25135 | { | |
25136 | arg4 = wxString_in_helper(obj3); | |
25137 | if (arg4 == NULL) SWIG_fail; | |
25138 | temp4 = true; | |
25139 | } | |
25140 | if (obj4) { | |
25141 | { | |
25142 | arg5 = wxString_in_helper(obj4); | |
25143 | if (arg5 == NULL) SWIG_fail; | |
25144 | temp5 = true; | |
25145 | } | |
25146 | } | |
25147 | { | |
25148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25149 | (arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
25150 | ||
25151 | wxPyEndAllowThreads(__tstate); | |
25152 | if (PyErr_Occurred()) SWIG_fail; | |
25153 | } | |
25154 | Py_INCREF(Py_None); resultobj = Py_None; | |
25155 | { | |
25156 | if (temp4) | |
25157 | delete arg4; | |
25158 | } | |
25159 | { | |
25160 | if (temp5) | |
25161 | delete arg5; | |
25162 | } | |
25163 | return resultobj; | |
25164 | fail: | |
25165 | { | |
25166 | if (temp4) | |
25167 | delete arg4; | |
25168 | } | |
25169 | { | |
25170 | if (temp5) | |
25171 | delete arg5; | |
25172 | } | |
25173 | return NULL; | |
25174 | } | |
25175 | ||
25176 | ||
25177 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25178 | PyObject *resultobj; | |
25179 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25180 | size_t arg2 ; | |
25181 | int arg3 ; | |
25182 | wxString *arg4 = 0 ; | |
25183 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25184 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
25185 | bool temp4 = false ; | |
25186 | bool temp5 = false ; | |
25187 | PyObject * obj0 = 0 ; | |
25188 | PyObject * obj1 = 0 ; | |
25189 | PyObject * obj3 = 0 ; | |
25190 | PyObject * obj4 = 0 ; | |
25191 | char *kwnames[] = { | |
25192 | (char *) "self",(char *) "pos",(char *) "itemid",(char *) "text",(char *) "help", NULL | |
25193 | }; | |
25194 | ||
25195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
25196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25197 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25198 | if (PyErr_Occurred()) SWIG_fail; | |
25199 | { | |
25200 | arg4 = wxString_in_helper(obj3); | |
25201 | if (arg4 == NULL) SWIG_fail; | |
25202 | temp4 = true; | |
25203 | } | |
25204 | if (obj4) { | |
25205 | { | |
25206 | arg5 = wxString_in_helper(obj4); | |
25207 | if (arg5 == NULL) SWIG_fail; | |
25208 | temp5 = true; | |
25209 | } | |
25210 | } | |
25211 | { | |
25212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25213 | (arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
25214 | ||
25215 | wxPyEndAllowThreads(__tstate); | |
25216 | if (PyErr_Occurred()) SWIG_fail; | |
25217 | } | |
25218 | Py_INCREF(Py_None); resultobj = Py_None; | |
25219 | { | |
25220 | if (temp4) | |
25221 | delete arg4; | |
25222 | } | |
25223 | { | |
25224 | if (temp5) | |
25225 | delete arg5; | |
25226 | } | |
25227 | return resultobj; | |
25228 | fail: | |
25229 | { | |
25230 | if (temp4) | |
25231 | delete arg4; | |
25232 | } | |
25233 | { | |
25234 | if (temp5) | |
25235 | delete arg5; | |
25236 | } | |
25237 | return NULL; | |
25238 | } | |
25239 | ||
25240 | ||
25241 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25242 | PyObject *resultobj; | |
25243 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25244 | size_t arg2 ; | |
25245 | int arg3 ; | |
25246 | wxString *arg4 = 0 ; | |
25247 | wxMenu *arg5 = (wxMenu *) 0 ; | |
25248 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
25249 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
25250 | bool temp4 = false ; | |
25251 | bool temp6 = false ; | |
25252 | PyObject * obj0 = 0 ; | |
25253 | PyObject * obj1 = 0 ; | |
25254 | PyObject * obj3 = 0 ; | |
25255 | PyObject * obj4 = 0 ; | |
25256 | PyObject * obj5 = 0 ; | |
25257 | char *kwnames[] = { | |
25258 | (char *) "self",(char *) "pos",(char *) "itemid",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
25259 | }; | |
25260 | ||
25261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5)) goto fail; | |
25262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25263 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25264 | if (PyErr_Occurred()) SWIG_fail; | |
25265 | { | |
25266 | arg4 = wxString_in_helper(obj3); | |
25267 | if (arg4 == NULL) SWIG_fail; | |
25268 | temp4 = true; | |
25269 | } | |
25270 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25271 | if (obj5) { | |
25272 | { | |
25273 | arg6 = wxString_in_helper(obj5); | |
25274 | if (arg6 == NULL) SWIG_fail; | |
25275 | temp6 = true; | |
25276 | } | |
25277 | } | |
25278 | { | |
25279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25280 | (arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
25281 | ||
25282 | wxPyEndAllowThreads(__tstate); | |
25283 | if (PyErr_Occurred()) SWIG_fail; | |
25284 | } | |
25285 | Py_INCREF(Py_None); resultobj = Py_None; | |
25286 | { | |
25287 | if (temp4) | |
25288 | delete arg4; | |
25289 | } | |
25290 | { | |
25291 | if (temp6) | |
25292 | delete arg6; | |
25293 | } | |
25294 | return resultobj; | |
25295 | fail: | |
25296 | { | |
25297 | if (temp4) | |
25298 | delete arg4; | |
25299 | } | |
25300 | { | |
25301 | if (temp6) | |
25302 | delete arg6; | |
25303 | } | |
25304 | return NULL; | |
25305 | } | |
25306 | ||
25307 | ||
25308 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25309 | PyObject *resultobj; | |
25310 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25311 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
25312 | PyObject * obj0 = 0 ; | |
25313 | PyObject * obj1 = 0 ; | |
25314 | char *kwnames[] = { | |
25315 | (char *) "self",(char *) "item", NULL | |
25316 | }; | |
25317 | ||
25318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
25319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25320 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25321 | { | |
25322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25323 | (arg1)->Prepend(arg2); | |
25324 | ||
25325 | wxPyEndAllowThreads(__tstate); | |
25326 | if (PyErr_Occurred()) SWIG_fail; | |
25327 | } | |
25328 | Py_INCREF(Py_None); resultobj = Py_None; | |
25329 | return resultobj; | |
25330 | fail: | |
25331 | return NULL; | |
25332 | } | |
25333 | ||
25334 | ||
25335 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25336 | PyObject *resultobj; | |
25337 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25338 | int arg2 ; | |
25339 | wxString *arg3 = 0 ; | |
25340 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25341 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25342 | int arg5 = (int) wxITEM_NORMAL ; | |
25343 | bool temp3 = false ; | |
25344 | bool temp4 = false ; | |
25345 | PyObject * obj0 = 0 ; | |
25346 | PyObject * obj2 = 0 ; | |
25347 | PyObject * obj3 = 0 ; | |
25348 | char *kwnames[] = { | |
25349 | (char *) "self",(char *) "itemid",(char *) "text",(char *) "help",(char *) "kind", NULL | |
25350 | }; | |
25351 | ||
25352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|Oi:Menu_Prepend",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
25353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25354 | { | |
25355 | arg3 = wxString_in_helper(obj2); | |
25356 | if (arg3 == NULL) SWIG_fail; | |
25357 | temp3 = true; | |
25358 | } | |
25359 | if (obj3) { | |
25360 | { | |
25361 | arg4 = wxString_in_helper(obj3); | |
25362 | if (arg4 == NULL) SWIG_fail; | |
25363 | temp4 = true; | |
25364 | } | |
25365 | } | |
25366 | { | |
25367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25368 | (arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
25369 | ||
25370 | wxPyEndAllowThreads(__tstate); | |
25371 | if (PyErr_Occurred()) SWIG_fail; | |
25372 | } | |
25373 | Py_INCREF(Py_None); resultobj = Py_None; | |
25374 | { | |
25375 | if (temp3) | |
25376 | delete arg3; | |
25377 | } | |
25378 | { | |
25379 | if (temp4) | |
25380 | delete arg4; | |
25381 | } | |
25382 | return resultobj; | |
25383 | fail: | |
25384 | { | |
25385 | if (temp3) | |
25386 | delete arg3; | |
25387 | } | |
25388 | { | |
25389 | if (temp4) | |
25390 | delete arg4; | |
25391 | } | |
25392 | return NULL; | |
25393 | } | |
25394 | ||
25395 | ||
25396 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25397 | PyObject *resultobj; | |
25398 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25399 | PyObject * obj0 = 0 ; | |
25400 | char *kwnames[] = { | |
25401 | (char *) "self", NULL | |
25402 | }; | |
25403 | ||
25404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
25405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25406 | { | |
25407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25408 | (arg1)->PrependSeparator(); | |
25409 | ||
25410 | wxPyEndAllowThreads(__tstate); | |
25411 | if (PyErr_Occurred()) SWIG_fail; | |
25412 | } | |
25413 | Py_INCREF(Py_None); resultobj = Py_None; | |
25414 | return resultobj; | |
25415 | fail: | |
25416 | return NULL; | |
25417 | } | |
25418 | ||
25419 | ||
25420 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25421 | PyObject *resultobj; | |
25422 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25423 | int arg2 ; | |
25424 | wxString *arg3 = 0 ; | |
25425 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25426 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25427 | bool temp3 = false ; | |
25428 | bool temp4 = false ; | |
25429 | PyObject * obj0 = 0 ; | |
25430 | PyObject * obj2 = 0 ; | |
25431 | PyObject * obj3 = 0 ; | |
25432 | char *kwnames[] = { | |
25433 | (char *) "self",(char *) "itemid",(char *) "text",(char *) "help", NULL | |
25434 | }; | |
25435 | ||
25436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_PrependCheckItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
25437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25438 | { | |
25439 | arg3 = wxString_in_helper(obj2); | |
25440 | if (arg3 == NULL) SWIG_fail; | |
25441 | temp3 = true; | |
25442 | } | |
25443 | if (obj3) { | |
25444 | { | |
25445 | arg4 = wxString_in_helper(obj3); | |
25446 | if (arg4 == NULL) SWIG_fail; | |
25447 | temp4 = true; | |
25448 | } | |
25449 | } | |
25450 | { | |
25451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25452 | (arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
25453 | ||
25454 | wxPyEndAllowThreads(__tstate); | |
25455 | if (PyErr_Occurred()) SWIG_fail; | |
25456 | } | |
25457 | Py_INCREF(Py_None); resultobj = Py_None; | |
25458 | { | |
25459 | if (temp3) | |
25460 | delete arg3; | |
25461 | } | |
25462 | { | |
25463 | if (temp4) | |
25464 | delete arg4; | |
25465 | } | |
25466 | return resultobj; | |
25467 | fail: | |
25468 | { | |
25469 | if (temp3) | |
25470 | delete arg3; | |
25471 | } | |
25472 | { | |
25473 | if (temp4) | |
25474 | delete arg4; | |
25475 | } | |
25476 | return NULL; | |
25477 | } | |
25478 | ||
25479 | ||
25480 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25481 | PyObject *resultobj; | |
25482 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25483 | int arg2 ; | |
25484 | wxString *arg3 = 0 ; | |
25485 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25486 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25487 | bool temp3 = false ; | |
25488 | bool temp4 = false ; | |
25489 | PyObject * obj0 = 0 ; | |
25490 | PyObject * obj2 = 0 ; | |
25491 | PyObject * obj3 = 0 ; | |
25492 | char *kwnames[] = { | |
25493 | (char *) "self",(char *) "itemid",(char *) "text",(char *) "help", NULL | |
25494 | }; | |
25495 | ||
25496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_PrependRadioItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
25497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25498 | { | |
25499 | arg3 = wxString_in_helper(obj2); | |
25500 | if (arg3 == NULL) SWIG_fail; | |
25501 | temp3 = true; | |
25502 | } | |
25503 | if (obj3) { | |
25504 | { | |
25505 | arg4 = wxString_in_helper(obj3); | |
25506 | if (arg4 == NULL) SWIG_fail; | |
25507 | temp4 = true; | |
25508 | } | |
25509 | } | |
25510 | { | |
25511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25512 | (arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
25513 | ||
25514 | wxPyEndAllowThreads(__tstate); | |
25515 | if (PyErr_Occurred()) SWIG_fail; | |
25516 | } | |
25517 | Py_INCREF(Py_None); resultobj = Py_None; | |
25518 | { | |
25519 | if (temp3) | |
25520 | delete arg3; | |
25521 | } | |
25522 | { | |
25523 | if (temp4) | |
25524 | delete arg4; | |
25525 | } | |
25526 | return resultobj; | |
25527 | fail: | |
25528 | { | |
25529 | if (temp3) | |
25530 | delete arg3; | |
25531 | } | |
25532 | { | |
25533 | if (temp4) | |
25534 | delete arg4; | |
25535 | } | |
25536 | return NULL; | |
25537 | } | |
25538 | ||
25539 | ||
25540 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25541 | PyObject *resultobj; | |
25542 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25543 | int arg2 ; | |
25544 | wxString *arg3 = 0 ; | |
25545 | wxMenu *arg4 = (wxMenu *) 0 ; | |
25546 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25547 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
25548 | bool temp3 = false ; | |
25549 | bool temp5 = false ; | |
25550 | PyObject * obj0 = 0 ; | |
25551 | PyObject * obj2 = 0 ; | |
25552 | PyObject * obj3 = 0 ; | |
25553 | PyObject * obj4 = 0 ; | |
25554 | char *kwnames[] = { | |
25555 | (char *) "self",(char *) "itemid",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
25556 | }; | |
25557 | ||
25558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO|O:Menu_PrependMenu",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4)) goto fail; | |
25559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25560 | { | |
25561 | arg3 = wxString_in_helper(obj2); | |
25562 | if (arg3 == NULL) SWIG_fail; | |
25563 | temp3 = true; | |
25564 | } | |
25565 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25566 | if (obj4) { | |
25567 | { | |
25568 | arg5 = wxString_in_helper(obj4); | |
25569 | if (arg5 == NULL) SWIG_fail; | |
25570 | temp5 = true; | |
25571 | } | |
25572 | } | |
25573 | { | |
25574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25575 | (arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
25576 | ||
25577 | wxPyEndAllowThreads(__tstate); | |
25578 | if (PyErr_Occurred()) SWIG_fail; | |
25579 | } | |
25580 | Py_INCREF(Py_None); resultobj = Py_None; | |
25581 | { | |
25582 | if (temp3) | |
25583 | delete arg3; | |
25584 | } | |
25585 | { | |
25586 | if (temp5) | |
25587 | delete arg5; | |
25588 | } | |
25589 | return resultobj; | |
25590 | fail: | |
25591 | { | |
25592 | if (temp3) | |
25593 | delete arg3; | |
25594 | } | |
25595 | { | |
25596 | if (temp5) | |
25597 | delete arg5; | |
25598 | } | |
25599 | return NULL; | |
25600 | } | |
25601 | ||
25602 | ||
25603 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25604 | PyObject *resultobj; | |
25605 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25606 | int arg2 ; | |
25607 | wxMenuItem *result; | |
25608 | PyObject * obj0 = 0 ; | |
25609 | char *kwnames[] = { | |
25610 | (char *) "self",(char *) "itemid", NULL | |
25611 | }; | |
25612 | ||
25613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_Remove",kwnames,&obj0,&arg2)) goto fail; | |
25614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25615 | { | |
25616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25617 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
25618 | ||
25619 | wxPyEndAllowThreads(__tstate); | |
25620 | if (PyErr_Occurred()) SWIG_fail; | |
25621 | } | |
25622 | { | |
25623 | resultobj = wxPyMake_wxObject(result); | |
25624 | } | |
25625 | return resultobj; | |
25626 | fail: | |
25627 | return NULL; | |
25628 | } | |
25629 | ||
25630 | ||
25631 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25632 | PyObject *resultobj; | |
25633 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25634 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
25635 | wxMenuItem *result; | |
25636 | PyObject * obj0 = 0 ; | |
25637 | PyObject * obj1 = 0 ; | |
25638 | char *kwnames[] = { | |
25639 | (char *) "self",(char *) "item", NULL | |
25640 | }; | |
25641 | ||
25642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
25643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25644 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25645 | { | |
25646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25647 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
25648 | ||
25649 | wxPyEndAllowThreads(__tstate); | |
25650 | if (PyErr_Occurred()) SWIG_fail; | |
25651 | } | |
25652 | { | |
25653 | resultobj = wxPyMake_wxObject(result); | |
25654 | } | |
25655 | return resultobj; | |
25656 | fail: | |
25657 | return NULL; | |
25658 | } | |
25659 | ||
25660 | ||
25661 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25662 | PyObject *resultobj; | |
25663 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25664 | int arg2 ; | |
25665 | bool result; | |
25666 | PyObject * obj0 = 0 ; | |
25667 | char *kwnames[] = { | |
25668 | (char *) "self",(char *) "itemid", NULL | |
25669 | }; | |
25670 | ||
25671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_Delete",kwnames,&obj0,&arg2)) goto fail; | |
25672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25673 | { | |
25674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25675 | result = (bool)(arg1)->Delete(arg2); | |
25676 | ||
25677 | wxPyEndAllowThreads(__tstate); | |
25678 | if (PyErr_Occurred()) SWIG_fail; | |
25679 | } | |
25680 | resultobj = PyInt_FromLong((long)result); | |
25681 | return resultobj; | |
25682 | fail: | |
25683 | return NULL; | |
25684 | } | |
25685 | ||
25686 | ||
25687 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25688 | PyObject *resultobj; | |
25689 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25690 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
25691 | bool result; | |
25692 | PyObject * obj0 = 0 ; | |
25693 | PyObject * obj1 = 0 ; | |
25694 | char *kwnames[] = { | |
25695 | (char *) "self",(char *) "item", NULL | |
25696 | }; | |
25697 | ||
25698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
25699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25700 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25701 | { | |
25702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25703 | result = (bool)(arg1)->Delete(arg2); | |
25704 | ||
25705 | wxPyEndAllowThreads(__tstate); | |
25706 | if (PyErr_Occurred()) SWIG_fail; | |
25707 | } | |
25708 | resultobj = PyInt_FromLong((long)result); | |
25709 | return resultobj; | |
25710 | fail: | |
25711 | return NULL; | |
25712 | } | |
25713 | ||
25714 | ||
25715 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25716 | PyObject *resultobj; | |
25717 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25718 | PyObject * obj0 = 0 ; | |
25719 | char *kwnames[] = { | |
25720 | (char *) "self", NULL | |
25721 | }; | |
25722 | ||
25723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
25724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25725 | { | |
25726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25727 | wxMenu_Destroy(arg1); | |
25728 | ||
25729 | wxPyEndAllowThreads(__tstate); | |
25730 | if (PyErr_Occurred()) SWIG_fail; | |
25731 | } | |
25732 | Py_INCREF(Py_None); resultobj = Py_None; | |
25733 | return resultobj; | |
25734 | fail: | |
25735 | return NULL; | |
25736 | } | |
25737 | ||
25738 | ||
25739 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25740 | PyObject *resultobj; | |
25741 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25742 | int arg2 ; | |
25743 | bool result; | |
25744 | PyObject * obj0 = 0 ; | |
25745 | char *kwnames[] = { | |
25746 | (char *) "self",(char *) "itemid", NULL | |
25747 | }; | |
25748 | ||
25749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_DestroyId",kwnames,&obj0,&arg2)) goto fail; | |
25750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25751 | { | |
25752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25753 | result = (bool)(arg1)->Destroy(arg2); | |
25754 | ||
25755 | wxPyEndAllowThreads(__tstate); | |
25756 | if (PyErr_Occurred()) SWIG_fail; | |
25757 | } | |
25758 | resultobj = PyInt_FromLong((long)result); | |
25759 | return resultobj; | |
25760 | fail: | |
25761 | return NULL; | |
25762 | } | |
25763 | ||
25764 | ||
25765 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25766 | PyObject *resultobj; | |
25767 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25768 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
25769 | bool result; | |
25770 | PyObject * obj0 = 0 ; | |
25771 | PyObject * obj1 = 0 ; | |
25772 | char *kwnames[] = { | |
25773 | (char *) "self",(char *) "item", NULL | |
25774 | }; | |
25775 | ||
25776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
25777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25778 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25779 | { | |
25780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25781 | result = (bool)(arg1)->Destroy(arg2); | |
25782 | ||
25783 | wxPyEndAllowThreads(__tstate); | |
25784 | if (PyErr_Occurred()) SWIG_fail; | |
25785 | } | |
25786 | resultobj = PyInt_FromLong((long)result); | |
25787 | return resultobj; | |
25788 | fail: | |
25789 | return NULL; | |
25790 | } | |
25791 | ||
25792 | ||
25793 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25794 | PyObject *resultobj; | |
25795 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25796 | size_t result; | |
25797 | PyObject * obj0 = 0 ; | |
25798 | char *kwnames[] = { | |
25799 | (char *) "self", NULL | |
25800 | }; | |
25801 | ||
25802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
25803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25804 | { | |
25805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25806 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
25807 | ||
25808 | wxPyEndAllowThreads(__tstate); | |
25809 | if (PyErr_Occurred()) SWIG_fail; | |
25810 | } | |
25811 | resultobj = PyInt_FromLong((long)result); | |
25812 | return resultobj; | |
25813 | fail: | |
25814 | return NULL; | |
25815 | } | |
25816 | ||
25817 | ||
25818 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25819 | PyObject *resultobj; | |
25820 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25821 | PyObject *result; | |
25822 | PyObject * obj0 = 0 ; | |
25823 | char *kwnames[] = { | |
25824 | (char *) "self", NULL | |
25825 | }; | |
25826 | ||
25827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
25828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25829 | { | |
25830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25831 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
25832 | ||
25833 | wxPyEndAllowThreads(__tstate); | |
25834 | if (PyErr_Occurred()) SWIG_fail; | |
25835 | } | |
25836 | resultobj = result; | |
25837 | return resultobj; | |
25838 | fail: | |
25839 | return NULL; | |
25840 | } | |
25841 | ||
25842 | ||
25843 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25844 | PyObject *resultobj; | |
25845 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25846 | wxString *arg2 = 0 ; | |
25847 | int result; | |
25848 | bool temp2 = false ; | |
25849 | PyObject * obj0 = 0 ; | |
25850 | PyObject * obj1 = 0 ; | |
25851 | char *kwnames[] = { | |
25852 | (char *) "self",(char *) "item", NULL | |
25853 | }; | |
25854 | ||
25855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
25856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25857 | { | |
25858 | arg2 = wxString_in_helper(obj1); | |
25859 | if (arg2 == NULL) SWIG_fail; | |
25860 | temp2 = true; | |
25861 | } | |
25862 | { | |
25863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25864 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
25865 | ||
25866 | wxPyEndAllowThreads(__tstate); | |
25867 | if (PyErr_Occurred()) SWIG_fail; | |
25868 | } | |
25869 | resultobj = PyInt_FromLong((long)result); | |
25870 | { | |
25871 | if (temp2) | |
25872 | delete arg2; | |
25873 | } | |
25874 | return resultobj; | |
25875 | fail: | |
25876 | { | |
25877 | if (temp2) | |
25878 | delete arg2; | |
25879 | } | |
25880 | return NULL; | |
25881 | } | |
25882 | ||
25883 | ||
25884 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25885 | PyObject *resultobj; | |
25886 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25887 | int arg2 ; | |
25888 | wxMenuItem *result; | |
25889 | PyObject * obj0 = 0 ; | |
25890 | char *kwnames[] = { | |
25891 | (char *) "self",(char *) "itemid", NULL | |
25892 | }; | |
25893 | ||
25894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_FindItemById",kwnames,&obj0,&arg2)) goto fail; | |
25895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25896 | { | |
25897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25898 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
25899 | ||
25900 | wxPyEndAllowThreads(__tstate); | |
25901 | if (PyErr_Occurred()) SWIG_fail; | |
25902 | } | |
25903 | { | |
25904 | resultobj = wxPyMake_wxObject(result); | |
25905 | } | |
25906 | return resultobj; | |
25907 | fail: | |
25908 | return NULL; | |
25909 | } | |
25910 | ||
25911 | ||
25912 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25913 | PyObject *resultobj; | |
25914 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25915 | size_t arg2 ; | |
25916 | wxMenuItem *result; | |
25917 | PyObject * obj0 = 0 ; | |
25918 | PyObject * obj1 = 0 ; | |
25919 | char *kwnames[] = { | |
25920 | (char *) "self",(char *) "position", NULL | |
25921 | }; | |
25922 | ||
25923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
25924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25925 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25926 | if (PyErr_Occurred()) SWIG_fail; | |
25927 | { | |
25928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25929 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
25930 | ||
25931 | wxPyEndAllowThreads(__tstate); | |
25932 | if (PyErr_Occurred()) SWIG_fail; | |
25933 | } | |
25934 | { | |
25935 | resultobj = wxPyMake_wxObject(result); | |
25936 | } | |
25937 | return resultobj; | |
25938 | fail: | |
25939 | return NULL; | |
25940 | } | |
25941 | ||
25942 | ||
25943 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25944 | PyObject *resultobj; | |
25945 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25946 | int arg2 ; | |
25947 | bool arg3 ; | |
25948 | PyObject * obj0 = 0 ; | |
25949 | PyObject * obj2 = 0 ; | |
25950 | char *kwnames[] = { | |
25951 | (char *) "self",(char *) "itemid",(char *) "enable", NULL | |
25952 | }; | |
25953 | ||
25954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_Enable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
25955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25956 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
25957 | if (PyErr_Occurred()) SWIG_fail; | |
25958 | { | |
25959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25960 | (arg1)->Enable(arg2,arg3); | |
25961 | ||
25962 | wxPyEndAllowThreads(__tstate); | |
25963 | if (PyErr_Occurred()) SWIG_fail; | |
25964 | } | |
25965 | Py_INCREF(Py_None); resultobj = Py_None; | |
25966 | return resultobj; | |
25967 | fail: | |
25968 | return NULL; | |
25969 | } | |
25970 | ||
25971 | ||
25972 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25973 | PyObject *resultobj; | |
25974 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25975 | int arg2 ; | |
25976 | bool result; | |
25977 | PyObject * obj0 = 0 ; | |
25978 | char *kwnames[] = { | |
25979 | (char *) "self",(char *) "itemid", NULL | |
25980 | }; | |
25981 | ||
25982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_IsEnabled",kwnames,&obj0,&arg2)) goto fail; | |
25983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25984 | { | |
25985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25986 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
25987 | ||
25988 | wxPyEndAllowThreads(__tstate); | |
25989 | if (PyErr_Occurred()) SWIG_fail; | |
25990 | } | |
25991 | resultobj = PyInt_FromLong((long)result); | |
25992 | return resultobj; | |
25993 | fail: | |
25994 | return NULL; | |
25995 | } | |
25996 | ||
25997 | ||
25998 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25999 | PyObject *resultobj; | |
26000 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26001 | int arg2 ; | |
26002 | bool arg3 ; | |
26003 | PyObject * obj0 = 0 ; | |
26004 | PyObject * obj2 = 0 ; | |
26005 | char *kwnames[] = { | |
26006 | (char *) "self",(char *) "itemid",(char *) "check", NULL | |
26007 | }; | |
26008 | ||
26009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_Check",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26011 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
26012 | if (PyErr_Occurred()) SWIG_fail; | |
26013 | { | |
26014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26015 | (arg1)->Check(arg2,arg3); | |
26016 | ||
26017 | wxPyEndAllowThreads(__tstate); | |
26018 | if (PyErr_Occurred()) SWIG_fail; | |
26019 | } | |
26020 | Py_INCREF(Py_None); resultobj = Py_None; | |
26021 | return resultobj; | |
26022 | fail: | |
26023 | return NULL; | |
26024 | } | |
26025 | ||
26026 | ||
26027 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26028 | PyObject *resultobj; | |
26029 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26030 | int arg2 ; | |
26031 | bool result; | |
26032 | PyObject * obj0 = 0 ; | |
26033 | char *kwnames[] = { | |
26034 | (char *) "self",(char *) "itemid", NULL | |
26035 | }; | |
26036 | ||
26037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_IsChecked",kwnames,&obj0,&arg2)) goto fail; | |
26038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26039 | { | |
26040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26041 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
26042 | ||
26043 | wxPyEndAllowThreads(__tstate); | |
26044 | if (PyErr_Occurred()) SWIG_fail; | |
26045 | } | |
26046 | resultobj = PyInt_FromLong((long)result); | |
26047 | return resultobj; | |
26048 | fail: | |
26049 | return NULL; | |
26050 | } | |
26051 | ||
26052 | ||
26053 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26054 | PyObject *resultobj; | |
26055 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26056 | int arg2 ; | |
26057 | wxString *arg3 = 0 ; | |
26058 | bool temp3 = false ; | |
26059 | PyObject * obj0 = 0 ; | |
26060 | PyObject * obj2 = 0 ; | |
26061 | char *kwnames[] = { | |
26062 | (char *) "self",(char *) "itemid",(char *) "label", NULL | |
26063 | }; | |
26064 | ||
26065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_SetLabel",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26067 | { | |
26068 | arg3 = wxString_in_helper(obj2); | |
26069 | if (arg3 == NULL) SWIG_fail; | |
26070 | temp3 = true; | |
26071 | } | |
26072 | { | |
26073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26074 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
26075 | ||
26076 | wxPyEndAllowThreads(__tstate); | |
26077 | if (PyErr_Occurred()) SWIG_fail; | |
26078 | } | |
26079 | Py_INCREF(Py_None); resultobj = Py_None; | |
26080 | { | |
26081 | if (temp3) | |
26082 | delete arg3; | |
26083 | } | |
26084 | return resultobj; | |
26085 | fail: | |
26086 | { | |
26087 | if (temp3) | |
26088 | delete arg3; | |
26089 | } | |
26090 | return NULL; | |
26091 | } | |
26092 | ||
26093 | ||
26094 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26095 | PyObject *resultobj; | |
26096 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26097 | int arg2 ; | |
26098 | wxString result; | |
26099 | PyObject * obj0 = 0 ; | |
26100 | char *kwnames[] = { | |
26101 | (char *) "self",(char *) "itemid", NULL | |
26102 | }; | |
26103 | ||
26104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_GetLabel",kwnames,&obj0,&arg2)) goto fail; | |
26105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26106 | { | |
26107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26108 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
26109 | ||
26110 | wxPyEndAllowThreads(__tstate); | |
26111 | if (PyErr_Occurred()) SWIG_fail; | |
26112 | } | |
26113 | { | |
26114 | #if wxUSE_UNICODE | |
26115 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26116 | #else | |
26117 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26118 | #endif | |
26119 | } | |
26120 | return resultobj; | |
26121 | fail: | |
26122 | return NULL; | |
26123 | } | |
26124 | ||
26125 | ||
26126 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26127 | PyObject *resultobj; | |
26128 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26129 | int arg2 ; | |
26130 | wxString *arg3 = 0 ; | |
26131 | bool temp3 = false ; | |
26132 | PyObject * obj0 = 0 ; | |
26133 | PyObject * obj2 = 0 ; | |
26134 | char *kwnames[] = { | |
26135 | (char *) "self",(char *) "itemid",(char *) "helpString", NULL | |
26136 | }; | |
26137 | ||
26138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_SetHelpString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26140 | { | |
26141 | arg3 = wxString_in_helper(obj2); | |
26142 | if (arg3 == NULL) SWIG_fail; | |
26143 | temp3 = true; | |
26144 | } | |
26145 | { | |
26146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26147 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
26148 | ||
26149 | wxPyEndAllowThreads(__tstate); | |
26150 | if (PyErr_Occurred()) SWIG_fail; | |
26151 | } | |
26152 | Py_INCREF(Py_None); resultobj = Py_None; | |
26153 | { | |
26154 | if (temp3) | |
26155 | delete arg3; | |
26156 | } | |
26157 | return resultobj; | |
26158 | fail: | |
26159 | { | |
26160 | if (temp3) | |
26161 | delete arg3; | |
26162 | } | |
26163 | return NULL; | |
26164 | } | |
26165 | ||
26166 | ||
26167 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26168 | PyObject *resultobj; | |
26169 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26170 | int arg2 ; | |
26171 | wxString result; | |
26172 | PyObject * obj0 = 0 ; | |
26173 | char *kwnames[] = { | |
26174 | (char *) "self",(char *) "itemid", NULL | |
26175 | }; | |
26176 | ||
26177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_GetHelpString",kwnames,&obj0,&arg2)) goto fail; | |
26178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26179 | { | |
26180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26181 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
26182 | ||
26183 | wxPyEndAllowThreads(__tstate); | |
26184 | if (PyErr_Occurred()) SWIG_fail; | |
26185 | } | |
26186 | { | |
26187 | #if wxUSE_UNICODE | |
26188 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26189 | #else | |
26190 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26191 | #endif | |
26192 | } | |
26193 | return resultobj; | |
26194 | fail: | |
26195 | return NULL; | |
26196 | } | |
26197 | ||
26198 | ||
26199 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26200 | PyObject *resultobj; | |
26201 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26202 | wxString *arg2 = 0 ; | |
26203 | bool temp2 = false ; | |
26204 | PyObject * obj0 = 0 ; | |
26205 | PyObject * obj1 = 0 ; | |
26206 | char *kwnames[] = { | |
26207 | (char *) "self",(char *) "title", NULL | |
26208 | }; | |
26209 | ||
26210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
26211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26212 | { | |
26213 | arg2 = wxString_in_helper(obj1); | |
26214 | if (arg2 == NULL) SWIG_fail; | |
26215 | temp2 = true; | |
26216 | } | |
26217 | { | |
26218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26219 | (arg1)->SetTitle((wxString const &)*arg2); | |
26220 | ||
26221 | wxPyEndAllowThreads(__tstate); | |
26222 | if (PyErr_Occurred()) SWIG_fail; | |
26223 | } | |
26224 | Py_INCREF(Py_None); resultobj = Py_None; | |
26225 | { | |
26226 | if (temp2) | |
26227 | delete arg2; | |
26228 | } | |
26229 | return resultobj; | |
26230 | fail: | |
26231 | { | |
26232 | if (temp2) | |
26233 | delete arg2; | |
26234 | } | |
26235 | return NULL; | |
26236 | } | |
26237 | ||
26238 | ||
26239 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26240 | PyObject *resultobj; | |
26241 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26242 | wxString result; | |
26243 | PyObject * obj0 = 0 ; | |
26244 | char *kwnames[] = { | |
26245 | (char *) "self", NULL | |
26246 | }; | |
26247 | ||
26248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
26249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26250 | { | |
26251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26252 | result = ((wxMenu const *)arg1)->GetTitle(); | |
26253 | ||
26254 | wxPyEndAllowThreads(__tstate); | |
26255 | if (PyErr_Occurred()) SWIG_fail; | |
26256 | } | |
26257 | { | |
26258 | #if wxUSE_UNICODE | |
26259 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26260 | #else | |
26261 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26262 | #endif | |
26263 | } | |
26264 | return resultobj; | |
26265 | fail: | |
26266 | return NULL; | |
26267 | } | |
26268 | ||
26269 | ||
26270 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26271 | PyObject *resultobj; | |
26272 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26273 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
26274 | PyObject * obj0 = 0 ; | |
26275 | PyObject * obj1 = 0 ; | |
26276 | char *kwnames[] = { | |
26277 | (char *) "self",(char *) "handler", NULL | |
26278 | }; | |
26279 | ||
26280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
26281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26282 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26283 | { | |
26284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26285 | (arg1)->SetEventHandler(arg2); | |
26286 | ||
26287 | wxPyEndAllowThreads(__tstate); | |
26288 | if (PyErr_Occurred()) SWIG_fail; | |
26289 | } | |
26290 | Py_INCREF(Py_None); resultobj = Py_None; | |
26291 | return resultobj; | |
26292 | fail: | |
26293 | return NULL; | |
26294 | } | |
26295 | ||
26296 | ||
26297 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26298 | PyObject *resultobj; | |
26299 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26300 | wxEvtHandler *result; | |
26301 | PyObject * obj0 = 0 ; | |
26302 | char *kwnames[] = { | |
26303 | (char *) "self", NULL | |
26304 | }; | |
26305 | ||
26306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
26307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26308 | { | |
26309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26310 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
26311 | ||
26312 | wxPyEndAllowThreads(__tstate); | |
26313 | if (PyErr_Occurred()) SWIG_fail; | |
26314 | } | |
26315 | { | |
26316 | resultobj = wxPyMake_wxObject(result); | |
26317 | } | |
26318 | return resultobj; | |
26319 | fail: | |
26320 | return NULL; | |
26321 | } | |
26322 | ||
26323 | ||
26324 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26325 | PyObject *resultobj; | |
26326 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26327 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26328 | PyObject * obj0 = 0 ; | |
26329 | PyObject * obj1 = 0 ; | |
26330 | char *kwnames[] = { | |
26331 | (char *) "self",(char *) "win", NULL | |
26332 | }; | |
26333 | ||
26334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
26335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26336 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26337 | { | |
26338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26339 | (arg1)->SetInvokingWindow(arg2); | |
26340 | ||
26341 | wxPyEndAllowThreads(__tstate); | |
26342 | if (PyErr_Occurred()) SWIG_fail; | |
26343 | } | |
26344 | Py_INCREF(Py_None); resultobj = Py_None; | |
26345 | return resultobj; | |
26346 | fail: | |
26347 | return NULL; | |
26348 | } | |
26349 | ||
26350 | ||
26351 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26352 | PyObject *resultobj; | |
26353 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26354 | wxWindow *result; | |
26355 | PyObject * obj0 = 0 ; | |
26356 | char *kwnames[] = { | |
26357 | (char *) "self", NULL | |
26358 | }; | |
26359 | ||
26360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
26361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26362 | { | |
26363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26364 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
26365 | ||
26366 | wxPyEndAllowThreads(__tstate); | |
26367 | if (PyErr_Occurred()) SWIG_fail; | |
26368 | } | |
26369 | { | |
26370 | resultobj = wxPyMake_wxObject(result); | |
26371 | } | |
26372 | return resultobj; | |
26373 | fail: | |
26374 | return NULL; | |
26375 | } | |
26376 | ||
26377 | ||
26378 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26379 | PyObject *resultobj; | |
26380 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26381 | long result; | |
26382 | PyObject * obj0 = 0 ; | |
26383 | char *kwnames[] = { | |
26384 | (char *) "self", NULL | |
26385 | }; | |
26386 | ||
26387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
26388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26389 | { | |
26390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26391 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
26392 | ||
26393 | wxPyEndAllowThreads(__tstate); | |
26394 | if (PyErr_Occurred()) SWIG_fail; | |
26395 | } | |
26396 | resultobj = PyInt_FromLong((long)result); | |
26397 | return resultobj; | |
26398 | fail: | |
26399 | return NULL; | |
26400 | } | |
26401 | ||
26402 | ||
26403 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26404 | PyObject *resultobj; | |
26405 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26406 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
26407 | PyObject * obj0 = 0 ; | |
26408 | PyObject * obj1 = 0 ; | |
26409 | char *kwnames[] = { | |
26410 | (char *) "self",(char *) "source", NULL | |
26411 | }; | |
26412 | ||
26413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
26414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26415 | if (obj1) { | |
26416 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26417 | } | |
26418 | { | |
26419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26420 | (arg1)->UpdateUI(arg2); | |
26421 | ||
26422 | wxPyEndAllowThreads(__tstate); | |
26423 | if (PyErr_Occurred()) SWIG_fail; | |
26424 | } | |
26425 | Py_INCREF(Py_None); resultobj = Py_None; | |
26426 | return resultobj; | |
26427 | fail: | |
26428 | return NULL; | |
26429 | } | |
26430 | ||
26431 | ||
26432 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26433 | PyObject *resultobj; | |
26434 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26435 | wxMenuBar *result; | |
26436 | PyObject * obj0 = 0 ; | |
26437 | char *kwnames[] = { | |
26438 | (char *) "self", NULL | |
26439 | }; | |
26440 | ||
26441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
26442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26443 | { | |
26444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26445 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
26446 | ||
26447 | wxPyEndAllowThreads(__tstate); | |
26448 | if (PyErr_Occurred()) SWIG_fail; | |
26449 | } | |
26450 | { | |
26451 | resultobj = wxPyMake_wxObject(result); | |
26452 | } | |
26453 | return resultobj; | |
26454 | fail: | |
26455 | return NULL; | |
26456 | } | |
26457 | ||
26458 | ||
26459 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26460 | PyObject *resultobj; | |
26461 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26462 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
26463 | PyObject * obj0 = 0 ; | |
26464 | PyObject * obj1 = 0 ; | |
26465 | char *kwnames[] = { | |
26466 | (char *) "self",(char *) "menubar", NULL | |
26467 | }; | |
26468 | ||
26469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
26470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26471 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26472 | { | |
26473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26474 | (arg1)->Attach(arg2); | |
26475 | ||
26476 | wxPyEndAllowThreads(__tstate); | |
26477 | if (PyErr_Occurred()) SWIG_fail; | |
26478 | } | |
26479 | Py_INCREF(Py_None); resultobj = Py_None; | |
26480 | return resultobj; | |
26481 | fail: | |
26482 | return NULL; | |
26483 | } | |
26484 | ||
26485 | ||
26486 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26487 | PyObject *resultobj; | |
26488 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26489 | PyObject * obj0 = 0 ; | |
26490 | char *kwnames[] = { | |
26491 | (char *) "self", NULL | |
26492 | }; | |
26493 | ||
26494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
26495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26496 | { | |
26497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26498 | (arg1)->Detach(); | |
26499 | ||
26500 | wxPyEndAllowThreads(__tstate); | |
26501 | if (PyErr_Occurred()) SWIG_fail; | |
26502 | } | |
26503 | Py_INCREF(Py_None); resultobj = Py_None; | |
26504 | return resultobj; | |
26505 | fail: | |
26506 | return NULL; | |
26507 | } | |
26508 | ||
26509 | ||
26510 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26511 | PyObject *resultobj; | |
26512 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26513 | bool result; | |
26514 | PyObject * obj0 = 0 ; | |
26515 | char *kwnames[] = { | |
26516 | (char *) "self", NULL | |
26517 | }; | |
26518 | ||
26519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
26520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26521 | { | |
26522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26523 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
26524 | ||
26525 | wxPyEndAllowThreads(__tstate); | |
26526 | if (PyErr_Occurred()) SWIG_fail; | |
26527 | } | |
26528 | resultobj = PyInt_FromLong((long)result); | |
26529 | return resultobj; | |
26530 | fail: | |
26531 | return NULL; | |
26532 | } | |
26533 | ||
26534 | ||
26535 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26536 | PyObject *resultobj; | |
26537 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26538 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26539 | PyObject * obj0 = 0 ; | |
26540 | PyObject * obj1 = 0 ; | |
26541 | char *kwnames[] = { | |
26542 | (char *) "self",(char *) "parent", NULL | |
26543 | }; | |
26544 | ||
26545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
26546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26547 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26548 | { | |
26549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26550 | (arg1)->SetParent(arg2); | |
26551 | ||
26552 | wxPyEndAllowThreads(__tstate); | |
26553 | if (PyErr_Occurred()) SWIG_fail; | |
26554 | } | |
26555 | Py_INCREF(Py_None); resultobj = Py_None; | |
26556 | return resultobj; | |
26557 | fail: | |
26558 | return NULL; | |
26559 | } | |
26560 | ||
26561 | ||
26562 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26563 | PyObject *resultobj; | |
26564 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26565 | wxMenu *result; | |
26566 | PyObject * obj0 = 0 ; | |
26567 | char *kwnames[] = { | |
26568 | (char *) "self", NULL | |
26569 | }; | |
26570 | ||
26571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
26572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26573 | { | |
26574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26575 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
26576 | ||
26577 | wxPyEndAllowThreads(__tstate); | |
26578 | if (PyErr_Occurred()) SWIG_fail; | |
26579 | } | |
26580 | { | |
26581 | resultobj = wxPyMake_wxObject(result); | |
26582 | } | |
26583 | return resultobj; | |
26584 | fail: | |
26585 | return NULL; | |
26586 | } | |
26587 | ||
26588 | ||
26589 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
26590 | PyObject *obj; | |
26591 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26592 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
26593 | Py_INCREF(obj); | |
26594 | return Py_BuildValue((char *)""); | |
26595 | } | |
26596 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26597 | PyObject *resultobj; | |
26598 | long arg1 = (long) 0 ; | |
26599 | wxMenuBar *result; | |
26600 | char *kwnames[] = { | |
26601 | (char *) "style", NULL | |
26602 | }; | |
26603 | ||
26604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|l:new_MenuBar",kwnames,&arg1)) goto fail; | |
26605 | { | |
26606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26607 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
26608 | ||
26609 | wxPyEndAllowThreads(__tstate); | |
26610 | if (PyErr_Occurred()) SWIG_fail; | |
26611 | } | |
26612 | { | |
26613 | resultobj = wxPyMake_wxObject(result); | |
26614 | } | |
26615 | return resultobj; | |
26616 | fail: | |
26617 | return NULL; | |
26618 | } | |
26619 | ||
26620 | ||
26621 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26622 | PyObject *resultobj; | |
26623 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
26624 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26625 | wxString *arg3 = 0 ; | |
26626 | bool result; | |
26627 | bool temp3 = false ; | |
26628 | PyObject * obj0 = 0 ; | |
26629 | PyObject * obj1 = 0 ; | |
26630 | PyObject * obj2 = 0 ; | |
26631 | char *kwnames[] = { | |
26632 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
26633 | }; | |
26634 | ||
26635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26637 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26638 | { | |
26639 | arg3 = wxString_in_helper(obj2); | |
26640 | if (arg3 == NULL) SWIG_fail; | |
26641 | temp3 = true; | |
26642 | } | |
26643 | { | |
26644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26645 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
26646 | ||
26647 | wxPyEndAllowThreads(__tstate); | |
26648 | if (PyErr_Occurred()) SWIG_fail; | |
26649 | } | |
26650 | resultobj = PyInt_FromLong((long)result); | |
26651 | { | |
26652 | if (temp3) | |
26653 | delete arg3; | |
26654 | } | |
26655 | return resultobj; | |
26656 | fail: | |
26657 | { | |
26658 | if (temp3) | |
26659 | delete arg3; | |
26660 | } | |
26661 | return NULL; | |
26662 | } | |
26663 | ||
26664 | ||
26665 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26666 | PyObject *resultobj; | |
26667 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
26668 | size_t arg2 ; | |
26669 | wxMenu *arg3 = (wxMenu *) 0 ; | |
26670 | wxString *arg4 = 0 ; | |
26671 | bool result; | |
26672 | bool temp4 = false ; | |
26673 | PyObject * obj0 = 0 ; | |
26674 | PyObject * obj1 = 0 ; | |
26675 | PyObject * obj2 = 0 ; | |
26676 | PyObject * obj3 = 0 ; | |
26677 | char *kwnames[] = { | |
26678 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
26679 | }; | |
26680 | ||
26681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26683 | arg2 = (size_t) PyInt_AsLong(obj1); | |
26684 | if (PyErr_Occurred()) SWIG_fail; | |
26685 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26686 | { | |
26687 | arg4 = wxString_in_helper(obj3); | |
26688 | if (arg4 == NULL) SWIG_fail; | |
26689 | temp4 = true; | |
26690 | } | |
26691 | { | |
26692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26693 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
26694 | ||
26695 | wxPyEndAllowThreads(__tstate); | |
26696 | if (PyErr_Occurred()) SWIG_fail; | |
26697 | } | |
26698 | resultobj = PyInt_FromLong((long)result); | |
26699 | { | |
26700 | if (temp4) | |
26701 | delete arg4; | |
26702 | } | |
26703 | return resultobj; | |
26704 | fail: | |
26705 | { | |
26706 | if (temp4) | |
26707 | delete arg4; | |
26708 | } | |
26709 | return NULL; | |
26710 | } | |
26711 | ||
26712 | ||
26713 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26714 | PyObject *resultobj; | |
26715 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
26716 | size_t result; | |
26717 | PyObject * obj0 = 0 ; | |
26718 | char *kwnames[] = { | |
26719 | (char *) "self", NULL | |
26720 | }; | |
26721 | ||
26722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
26723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26724 | { | |
26725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26726 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
26727 | ||
26728 | wxPyEndAllowThreads(__tstate); | |
26729 | if (PyErr_Occurred()) SWIG_fail; | |
26730 | } | |
26731 | resultobj = PyInt_FromLong((long)result); | |
26732 | return resultobj; | |
26733 | fail: | |
26734 | return NULL; | |
26735 | } | |
26736 | ||
26737 | ||
26738 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26739 | PyObject *resultobj; | |
26740 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
26741 | size_t arg2 ; | |
26742 | wxMenu *result; | |
26743 | PyObject * obj0 = 0 ; | |
26744 | PyObject * obj1 = 0 ; | |
26745 | char *kwnames[] = { | |
26746 | (char *) "self",(char *) "pos", NULL | |
26747 | }; | |
26748 | ||
26749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
26750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26751 | arg2 = (size_t) PyInt_AsLong(obj1); | |
26752 | if (PyErr_Occurred()) SWIG_fail; | |
26753 | { | |
26754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26755 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
26756 | ||
26757 | wxPyEndAllowThreads(__tstate); | |
26758 | if (PyErr_Occurred()) SWIG_fail; | |
26759 | } | |
26760 | { | |
26761 | resultobj = wxPyMake_wxObject(result); | |
26762 | } | |
26763 | return resultobj; | |
26764 | fail: | |
26765 | return NULL; | |
26766 | } | |
26767 | ||
26768 | ||
26769 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26770 | PyObject *resultobj; | |
26771 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
26772 | size_t arg2 ; | |
26773 | wxMenu *arg3 = (wxMenu *) 0 ; | |
26774 | wxString *arg4 = 0 ; | |
26775 | wxMenu *result; | |
26776 | bool temp4 = false ; | |
26777 | PyObject * obj0 = 0 ; | |
26778 | PyObject * obj1 = 0 ; | |
26779 | PyObject * obj2 = 0 ; | |
26780 | PyObject * obj3 = 0 ; | |
26781 | char *kwnames[] = { | |
26782 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
26783 | }; | |
26784 | ||
26785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26787 | arg2 = (size_t) PyInt_AsLong(obj1); | |
26788 | if (PyErr_Occurred()) SWIG_fail; | |
26789 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26790 | { | |
26791 | arg4 = wxString_in_helper(obj3); | |
26792 | if (arg4 == NULL) SWIG_fail; | |
26793 | temp4 = true; | |
26794 | } | |
26795 | { | |
26796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26797 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
26798 | ||
26799 | wxPyEndAllowThreads(__tstate); | |
26800 | if (PyErr_Occurred()) SWIG_fail; | |
26801 | } | |
26802 | { | |
26803 | resultobj = wxPyMake_wxObject(result); | |
26804 | } | |
26805 | { | |
26806 | if (temp4) | |
26807 | delete arg4; | |
26808 | } | |
26809 | return resultobj; | |
26810 | fail: | |
26811 | { | |
26812 | if (temp4) | |
26813 | delete arg4; | |
26814 | } | |
26815 | return NULL; | |
26816 | } | |
26817 | ||
26818 | ||
26819 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26820 | PyObject *resultobj; | |
26821 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
26822 | size_t arg2 ; | |
26823 | wxMenu *result; | |
26824 | PyObject * obj0 = 0 ; | |
26825 | PyObject * obj1 = 0 ; | |
26826 | char *kwnames[] = { | |
26827 | (char *) "self",(char *) "pos", NULL | |
26828 | }; | |
26829 | ||
26830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
26831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26832 | arg2 = (size_t) PyInt_AsLong(obj1); | |
26833 | if (PyErr_Occurred()) SWIG_fail; | |
26834 | { | |
26835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26836 | result = (wxMenu *)(arg1)->Remove(arg2); | |
26837 | ||
26838 | wxPyEndAllowThreads(__tstate); | |
26839 | if (PyErr_Occurred()) SWIG_fail; | |
26840 | } | |
26841 | { | |
26842 | resultobj = wxPyMake_wxObject(result); | |
26843 | } | |
26844 | return resultobj; | |
26845 | fail: | |
26846 | return NULL; | |
26847 | } | |
26848 | ||
26849 | ||
26850 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26851 | PyObject *resultobj; | |
26852 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
26853 | size_t arg2 ; | |
26854 | bool arg3 ; | |
26855 | PyObject * obj0 = 0 ; | |
26856 | PyObject * obj1 = 0 ; | |
26857 | PyObject * obj2 = 0 ; | |
26858 | char *kwnames[] = { | |
26859 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
26860 | }; | |
26861 | ||
26862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26864 | arg2 = (size_t) PyInt_AsLong(obj1); | |
26865 | if (PyErr_Occurred()) SWIG_fail; | |
26866 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
26867 | if (PyErr_Occurred()) SWIG_fail; | |
26868 | { | |
26869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26870 | (arg1)->EnableTop(arg2,arg3); | |
26871 | ||
26872 | wxPyEndAllowThreads(__tstate); | |
26873 | if (PyErr_Occurred()) SWIG_fail; | |
26874 | } | |
26875 | Py_INCREF(Py_None); resultobj = Py_None; | |
26876 | return resultobj; | |
26877 | fail: | |
26878 | return NULL; | |
26879 | } | |
26880 | ||
26881 | ||
26882 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26883 | PyObject *resultobj; | |
26884 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
26885 | size_t arg2 ; | |
26886 | bool result; | |
26887 | PyObject * obj0 = 0 ; | |
26888 | PyObject * obj1 = 0 ; | |
26889 | char *kwnames[] = { | |
26890 | (char *) "self",(char *) "pos", NULL | |
26891 | }; | |
26892 | ||
26893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
26894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26895 | arg2 = (size_t) PyInt_AsLong(obj1); | |
26896 | if (PyErr_Occurred()) SWIG_fail; | |
26897 | { | |
26898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26899 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
26900 | ||
26901 | wxPyEndAllowThreads(__tstate); | |
26902 | if (PyErr_Occurred()) SWIG_fail; | |
26903 | } | |
26904 | resultobj = PyInt_FromLong((long)result); | |
26905 | return resultobj; | |
26906 | fail: | |
26907 | return NULL; | |
26908 | } | |
26909 | ||
26910 | ||
26911 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26912 | PyObject *resultobj; | |
26913 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
26914 | size_t arg2 ; | |
26915 | wxString *arg3 = 0 ; | |
26916 | bool temp3 = false ; | |
26917 | PyObject * obj0 = 0 ; | |
26918 | PyObject * obj1 = 0 ; | |
26919 | PyObject * obj2 = 0 ; | |
26920 | char *kwnames[] = { | |
26921 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
26922 | }; | |
26923 | ||
26924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26926 | arg2 = (size_t) PyInt_AsLong(obj1); | |
26927 | if (PyErr_Occurred()) SWIG_fail; | |
26928 | { | |
26929 | arg3 = wxString_in_helper(obj2); | |
26930 | if (arg3 == NULL) SWIG_fail; | |
26931 | temp3 = true; | |
26932 | } | |
26933 | { | |
26934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26935 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
26936 | ||
26937 | wxPyEndAllowThreads(__tstate); | |
26938 | if (PyErr_Occurred()) SWIG_fail; | |
26939 | } | |
26940 | Py_INCREF(Py_None); resultobj = Py_None; | |
26941 | { | |
26942 | if (temp3) | |
26943 | delete arg3; | |
26944 | } | |
26945 | return resultobj; | |
26946 | fail: | |
26947 | { | |
26948 | if (temp3) | |
26949 | delete arg3; | |
26950 | } | |
26951 | return NULL; | |
26952 | } | |
26953 | ||
26954 | ||
26955 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26956 | PyObject *resultobj; | |
26957 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
26958 | size_t arg2 ; | |
26959 | wxString result; | |
26960 | PyObject * obj0 = 0 ; | |
26961 | PyObject * obj1 = 0 ; | |
26962 | char *kwnames[] = { | |
26963 | (char *) "self",(char *) "pos", NULL | |
26964 | }; | |
26965 | ||
26966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
26967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26968 | arg2 = (size_t) PyInt_AsLong(obj1); | |
26969 | if (PyErr_Occurred()) SWIG_fail; | |
26970 | { | |
26971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26972 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
26973 | ||
26974 | wxPyEndAllowThreads(__tstate); | |
26975 | if (PyErr_Occurred()) SWIG_fail; | |
26976 | } | |
26977 | { | |
26978 | #if wxUSE_UNICODE | |
26979 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26980 | #else | |
26981 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26982 | #endif | |
26983 | } | |
26984 | return resultobj; | |
26985 | fail: | |
26986 | return NULL; | |
26987 | } | |
26988 | ||
26989 | ||
26990 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26991 | PyObject *resultobj; | |
26992 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
26993 | wxString *arg2 = 0 ; | |
26994 | wxString *arg3 = 0 ; | |
26995 | int result; | |
26996 | bool temp2 = false ; | |
26997 | bool temp3 = false ; | |
26998 | PyObject * obj0 = 0 ; | |
26999 | PyObject * obj1 = 0 ; | |
27000 | PyObject * obj2 = 0 ; | |
27001 | char *kwnames[] = { | |
27002 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
27003 | }; | |
27004 | ||
27005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27007 | { | |
27008 | arg2 = wxString_in_helper(obj1); | |
27009 | if (arg2 == NULL) SWIG_fail; | |
27010 | temp2 = true; | |
27011 | } | |
27012 | { | |
27013 | arg3 = wxString_in_helper(obj2); | |
27014 | if (arg3 == NULL) SWIG_fail; | |
27015 | temp3 = true; | |
27016 | } | |
27017 | { | |
27018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27019 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
27020 | ||
27021 | wxPyEndAllowThreads(__tstate); | |
27022 | if (PyErr_Occurred()) SWIG_fail; | |
27023 | } | |
27024 | resultobj = PyInt_FromLong((long)result); | |
27025 | { | |
27026 | if (temp2) | |
27027 | delete arg2; | |
27028 | } | |
27029 | { | |
27030 | if (temp3) | |
27031 | delete arg3; | |
27032 | } | |
27033 | return resultobj; | |
27034 | fail: | |
27035 | { | |
27036 | if (temp2) | |
27037 | delete arg2; | |
27038 | } | |
27039 | { | |
27040 | if (temp3) | |
27041 | delete arg3; | |
27042 | } | |
27043 | return NULL; | |
27044 | } | |
27045 | ||
27046 | ||
27047 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27048 | PyObject *resultobj; | |
27049 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27050 | int arg2 ; | |
27051 | wxMenuItem *result; | |
27052 | PyObject * obj0 = 0 ; | |
27053 | char *kwnames[] = { | |
27054 | (char *) "self",(char *) "itemid", NULL | |
27055 | }; | |
27056 | ||
27057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_FindItemById",kwnames,&obj0,&arg2)) goto fail; | |
27058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27059 | { | |
27060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27061 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
27062 | ||
27063 | wxPyEndAllowThreads(__tstate); | |
27064 | if (PyErr_Occurred()) SWIG_fail; | |
27065 | } | |
27066 | { | |
27067 | resultobj = wxPyMake_wxObject(result); | |
27068 | } | |
27069 | return resultobj; | |
27070 | fail: | |
27071 | return NULL; | |
27072 | } | |
27073 | ||
27074 | ||
27075 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27076 | PyObject *resultobj; | |
27077 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27078 | wxString *arg2 = 0 ; | |
27079 | int result; | |
27080 | bool temp2 = false ; | |
27081 | PyObject * obj0 = 0 ; | |
27082 | PyObject * obj1 = 0 ; | |
27083 | char *kwnames[] = { | |
27084 | (char *) "self",(char *) "title", NULL | |
27085 | }; | |
27086 | ||
27087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
27088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27089 | { | |
27090 | arg2 = wxString_in_helper(obj1); | |
27091 | if (arg2 == NULL) SWIG_fail; | |
27092 | temp2 = true; | |
27093 | } | |
27094 | { | |
27095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27096 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
27097 | ||
27098 | wxPyEndAllowThreads(__tstate); | |
27099 | if (PyErr_Occurred()) SWIG_fail; | |
27100 | } | |
27101 | resultobj = PyInt_FromLong((long)result); | |
27102 | { | |
27103 | if (temp2) | |
27104 | delete arg2; | |
27105 | } | |
27106 | return resultobj; | |
27107 | fail: | |
27108 | { | |
27109 | if (temp2) | |
27110 | delete arg2; | |
27111 | } | |
27112 | return NULL; | |
27113 | } | |
27114 | ||
27115 | ||
27116 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27117 | PyObject *resultobj; | |
27118 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27119 | int arg2 ; | |
27120 | bool arg3 ; | |
27121 | PyObject * obj0 = 0 ; | |
27122 | PyObject * obj2 = 0 ; | |
27123 | char *kwnames[] = { | |
27124 | (char *) "self",(char *) "itemid",(char *) "enable", NULL | |
27125 | }; | |
27126 | ||
27127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_Enable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27129 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
27130 | if (PyErr_Occurred()) SWIG_fail; | |
27131 | { | |
27132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27133 | (arg1)->Enable(arg2,arg3); | |
27134 | ||
27135 | wxPyEndAllowThreads(__tstate); | |
27136 | if (PyErr_Occurred()) SWIG_fail; | |
27137 | } | |
27138 | Py_INCREF(Py_None); resultobj = Py_None; | |
27139 | return resultobj; | |
27140 | fail: | |
27141 | return NULL; | |
27142 | } | |
27143 | ||
27144 | ||
27145 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27146 | PyObject *resultobj; | |
27147 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27148 | int arg2 ; | |
27149 | bool arg3 ; | |
27150 | PyObject * obj0 = 0 ; | |
27151 | PyObject * obj2 = 0 ; | |
27152 | char *kwnames[] = { | |
27153 | (char *) "self",(char *) "itemid",(char *) "check", NULL | |
27154 | }; | |
27155 | ||
27156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_Check",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27158 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
27159 | if (PyErr_Occurred()) SWIG_fail; | |
27160 | { | |
27161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27162 | (arg1)->Check(arg2,arg3); | |
27163 | ||
27164 | wxPyEndAllowThreads(__tstate); | |
27165 | if (PyErr_Occurred()) SWIG_fail; | |
27166 | } | |
27167 | Py_INCREF(Py_None); resultobj = Py_None; | |
27168 | return resultobj; | |
27169 | fail: | |
27170 | return NULL; | |
27171 | } | |
27172 | ||
27173 | ||
27174 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27175 | PyObject *resultobj; | |
27176 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27177 | int arg2 ; | |
27178 | bool result; | |
27179 | PyObject * obj0 = 0 ; | |
27180 | char *kwnames[] = { | |
27181 | (char *) "self",(char *) "itemid", NULL | |
27182 | }; | |
27183 | ||
27184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_IsChecked",kwnames,&obj0,&arg2)) goto fail; | |
27185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27186 | { | |
27187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27188 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
27189 | ||
27190 | wxPyEndAllowThreads(__tstate); | |
27191 | if (PyErr_Occurred()) SWIG_fail; | |
27192 | } | |
27193 | resultobj = PyInt_FromLong((long)result); | |
27194 | return resultobj; | |
27195 | fail: | |
27196 | return NULL; | |
27197 | } | |
27198 | ||
27199 | ||
27200 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27201 | PyObject *resultobj; | |
27202 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27203 | int arg2 ; | |
27204 | bool result; | |
27205 | PyObject * obj0 = 0 ; | |
27206 | char *kwnames[] = { | |
27207 | (char *) "self",(char *) "itemid", NULL | |
27208 | }; | |
27209 | ||
27210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_IsEnabled",kwnames,&obj0,&arg2)) goto fail; | |
27211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27212 | { | |
27213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27214 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
27215 | ||
27216 | wxPyEndAllowThreads(__tstate); | |
27217 | if (PyErr_Occurred()) SWIG_fail; | |
27218 | } | |
27219 | resultobj = PyInt_FromLong((long)result); | |
27220 | return resultobj; | |
27221 | fail: | |
27222 | return NULL; | |
27223 | } | |
27224 | ||
27225 | ||
27226 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27227 | PyObject *resultobj; | |
27228 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27229 | int arg2 ; | |
27230 | wxString *arg3 = 0 ; | |
27231 | bool temp3 = false ; | |
27232 | PyObject * obj0 = 0 ; | |
27233 | PyObject * obj2 = 0 ; | |
27234 | char *kwnames[] = { | |
27235 | (char *) "self",(char *) "itemid",(char *) "label", NULL | |
27236 | }; | |
27237 | ||
27238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_SetLabel",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27240 | { | |
27241 | arg3 = wxString_in_helper(obj2); | |
27242 | if (arg3 == NULL) SWIG_fail; | |
27243 | temp3 = true; | |
27244 | } | |
27245 | { | |
27246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27247 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
27248 | ||
27249 | wxPyEndAllowThreads(__tstate); | |
27250 | if (PyErr_Occurred()) SWIG_fail; | |
27251 | } | |
27252 | Py_INCREF(Py_None); resultobj = Py_None; | |
27253 | { | |
27254 | if (temp3) | |
27255 | delete arg3; | |
27256 | } | |
27257 | return resultobj; | |
27258 | fail: | |
27259 | { | |
27260 | if (temp3) | |
27261 | delete arg3; | |
27262 | } | |
27263 | return NULL; | |
27264 | } | |
27265 | ||
27266 | ||
27267 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27268 | PyObject *resultobj; | |
27269 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27270 | int arg2 ; | |
27271 | wxString result; | |
27272 | PyObject * obj0 = 0 ; | |
27273 | char *kwnames[] = { | |
27274 | (char *) "self",(char *) "itemid", NULL | |
27275 | }; | |
27276 | ||
27277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_GetLabel",kwnames,&obj0,&arg2)) goto fail; | |
27278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27279 | { | |
27280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27281 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
27282 | ||
27283 | wxPyEndAllowThreads(__tstate); | |
27284 | if (PyErr_Occurred()) SWIG_fail; | |
27285 | } | |
27286 | { | |
27287 | #if wxUSE_UNICODE | |
27288 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27289 | #else | |
27290 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27291 | #endif | |
27292 | } | |
27293 | return resultobj; | |
27294 | fail: | |
27295 | return NULL; | |
27296 | } | |
27297 | ||
27298 | ||
27299 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27300 | PyObject *resultobj; | |
27301 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27302 | int arg2 ; | |
27303 | wxString *arg3 = 0 ; | |
27304 | bool temp3 = false ; | |
27305 | PyObject * obj0 = 0 ; | |
27306 | PyObject * obj2 = 0 ; | |
27307 | char *kwnames[] = { | |
27308 | (char *) "self",(char *) "itemid",(char *) "helpString", NULL | |
27309 | }; | |
27310 | ||
27311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_SetHelpString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27313 | { | |
27314 | arg3 = wxString_in_helper(obj2); | |
27315 | if (arg3 == NULL) SWIG_fail; | |
27316 | temp3 = true; | |
27317 | } | |
27318 | { | |
27319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27320 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
27321 | ||
27322 | wxPyEndAllowThreads(__tstate); | |
27323 | if (PyErr_Occurred()) SWIG_fail; | |
27324 | } | |
27325 | Py_INCREF(Py_None); resultobj = Py_None; | |
27326 | { | |
27327 | if (temp3) | |
27328 | delete arg3; | |
27329 | } | |
27330 | return resultobj; | |
27331 | fail: | |
27332 | { | |
27333 | if (temp3) | |
27334 | delete arg3; | |
27335 | } | |
27336 | return NULL; | |
27337 | } | |
27338 | ||
27339 | ||
27340 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27341 | PyObject *resultobj; | |
27342 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27343 | int arg2 ; | |
27344 | wxString result; | |
27345 | PyObject * obj0 = 0 ; | |
27346 | char *kwnames[] = { | |
27347 | (char *) "self",(char *) "itemid", NULL | |
27348 | }; | |
27349 | ||
27350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_GetHelpString",kwnames,&obj0,&arg2)) goto fail; | |
27351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27352 | { | |
27353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27354 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
27355 | ||
27356 | wxPyEndAllowThreads(__tstate); | |
27357 | if (PyErr_Occurred()) SWIG_fail; | |
27358 | } | |
27359 | { | |
27360 | #if wxUSE_UNICODE | |
27361 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27362 | #else | |
27363 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27364 | #endif | |
27365 | } | |
27366 | return resultobj; | |
27367 | fail: | |
27368 | return NULL; | |
27369 | } | |
27370 | ||
27371 | ||
27372 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27373 | PyObject *resultobj; | |
27374 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27375 | wxFrame *result; | |
27376 | PyObject * obj0 = 0 ; | |
27377 | char *kwnames[] = { | |
27378 | (char *) "self", NULL | |
27379 | }; | |
27380 | ||
27381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
27382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27383 | { | |
27384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27385 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
27386 | ||
27387 | wxPyEndAllowThreads(__tstate); | |
27388 | if (PyErr_Occurred()) SWIG_fail; | |
27389 | } | |
27390 | { | |
27391 | resultobj = wxPyMake_wxObject(result); | |
27392 | } | |
27393 | return resultobj; | |
27394 | fail: | |
27395 | return NULL; | |
27396 | } | |
27397 | ||
27398 | ||
27399 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27400 | PyObject *resultobj; | |
27401 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27402 | bool result; | |
27403 | PyObject * obj0 = 0 ; | |
27404 | char *kwnames[] = { | |
27405 | (char *) "self", NULL | |
27406 | }; | |
27407 | ||
27408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
27409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27410 | { | |
27411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27412 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
27413 | ||
27414 | wxPyEndAllowThreads(__tstate); | |
27415 | if (PyErr_Occurred()) SWIG_fail; | |
27416 | } | |
27417 | resultobj = PyInt_FromLong((long)result); | |
27418 | return resultobj; | |
27419 | fail: | |
27420 | return NULL; | |
27421 | } | |
27422 | ||
27423 | ||
27424 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27425 | PyObject *resultobj; | |
27426 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27427 | wxFrame *arg2 = (wxFrame *) 0 ; | |
27428 | PyObject * obj0 = 0 ; | |
27429 | PyObject * obj1 = 0 ; | |
27430 | char *kwnames[] = { | |
27431 | (char *) "self",(char *) "frame", NULL | |
27432 | }; | |
27433 | ||
27434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
27435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27436 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27437 | { | |
27438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27439 | (arg1)->Attach(arg2); | |
27440 | ||
27441 | wxPyEndAllowThreads(__tstate); | |
27442 | if (PyErr_Occurred()) SWIG_fail; | |
27443 | } | |
27444 | Py_INCREF(Py_None); resultobj = Py_None; | |
27445 | return resultobj; | |
27446 | fail: | |
27447 | return NULL; | |
27448 | } | |
27449 | ||
27450 | ||
27451 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27452 | PyObject *resultobj; | |
27453 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27454 | PyObject * obj0 = 0 ; | |
27455 | char *kwnames[] = { | |
27456 | (char *) "self", NULL | |
27457 | }; | |
27458 | ||
27459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
27460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27461 | { | |
27462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27463 | (arg1)->Detach(); | |
27464 | ||
27465 | wxPyEndAllowThreads(__tstate); | |
27466 | if (PyErr_Occurred()) SWIG_fail; | |
27467 | } | |
27468 | Py_INCREF(Py_None); resultobj = Py_None; | |
27469 | return resultobj; | |
27470 | fail: | |
27471 | return NULL; | |
27472 | } | |
27473 | ||
27474 | ||
27475 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
27476 | PyObject *obj; | |
27477 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27478 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
27479 | Py_INCREF(obj); | |
27480 | return Py_BuildValue((char *)""); | |
27481 | } | |
27482 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27483 | PyObject *resultobj; | |
27484 | wxMenu *arg1 = (wxMenu *) NULL ; | |
27485 | int arg2 = (int) wxID_SEPARATOR ; | |
27486 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
27487 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27488 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27489 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27490 | int arg5 = (int) wxITEM_NORMAL ; | |
27491 | wxMenu *arg6 = (wxMenu *) NULL ; | |
27492 | wxMenuItem *result; | |
27493 | bool temp3 = false ; | |
27494 | bool temp4 = false ; | |
27495 | PyObject * obj0 = 0 ; | |
27496 | PyObject * obj2 = 0 ; | |
27497 | PyObject * obj3 = 0 ; | |
27498 | PyObject * obj5 = 0 ; | |
27499 | char *kwnames[] = { | |
27500 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
27501 | }; | |
27502 | ||
27503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiOOiO:new_MenuItem",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
27504 | if (obj0) { | |
27505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27506 | } | |
27507 | if (obj2) { | |
27508 | { | |
27509 | arg3 = wxString_in_helper(obj2); | |
27510 | if (arg3 == NULL) SWIG_fail; | |
27511 | temp3 = true; | |
27512 | } | |
27513 | } | |
27514 | if (obj3) { | |
27515 | { | |
27516 | arg4 = wxString_in_helper(obj3); | |
27517 | if (arg4 == NULL) SWIG_fail; | |
27518 | temp4 = true; | |
27519 | } | |
27520 | } | |
27521 | if (obj5) { | |
27522 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27523 | } | |
27524 | { | |
27525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27526 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
27527 | ||
27528 | wxPyEndAllowThreads(__tstate); | |
27529 | if (PyErr_Occurred()) SWIG_fail; | |
27530 | } | |
27531 | { | |
27532 | resultobj = wxPyMake_wxObject(result); | |
27533 | } | |
27534 | { | |
27535 | if (temp3) | |
27536 | delete arg3; | |
27537 | } | |
27538 | { | |
27539 | if (temp4) | |
27540 | delete arg4; | |
27541 | } | |
27542 | return resultobj; | |
27543 | fail: | |
27544 | { | |
27545 | if (temp3) | |
27546 | delete arg3; | |
27547 | } | |
27548 | { | |
27549 | if (temp4) | |
27550 | delete arg4; | |
27551 | } | |
27552 | return NULL; | |
27553 | } | |
27554 | ||
27555 | ||
27556 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27557 | PyObject *resultobj; | |
27558 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27559 | wxMenu *result; | |
27560 | PyObject * obj0 = 0 ; | |
27561 | char *kwnames[] = { | |
27562 | (char *) "self", NULL | |
27563 | }; | |
27564 | ||
27565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
27566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27567 | { | |
27568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27569 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
27570 | ||
27571 | wxPyEndAllowThreads(__tstate); | |
27572 | if (PyErr_Occurred()) SWIG_fail; | |
27573 | } | |
27574 | { | |
27575 | resultobj = wxPyMake_wxObject(result); | |
27576 | } | |
27577 | return resultobj; | |
27578 | fail: | |
27579 | return NULL; | |
27580 | } | |
27581 | ||
27582 | ||
27583 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27584 | PyObject *resultobj; | |
27585 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27586 | wxMenu *arg2 = (wxMenu *) 0 ; | |
27587 | PyObject * obj0 = 0 ; | |
27588 | PyObject * obj1 = 0 ; | |
27589 | char *kwnames[] = { | |
27590 | (char *) "self",(char *) "menu", NULL | |
27591 | }; | |
27592 | ||
27593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
27594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27595 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27596 | { | |
27597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27598 | (arg1)->SetMenu(arg2); | |
27599 | ||
27600 | wxPyEndAllowThreads(__tstate); | |
27601 | if (PyErr_Occurred()) SWIG_fail; | |
27602 | } | |
27603 | Py_INCREF(Py_None); resultobj = Py_None; | |
27604 | return resultobj; | |
27605 | fail: | |
27606 | return NULL; | |
27607 | } | |
27608 | ||
27609 | ||
27610 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27611 | PyObject *resultobj; | |
27612 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27613 | int arg2 ; | |
27614 | PyObject * obj0 = 0 ; | |
27615 | char *kwnames[] = { | |
27616 | (char *) "self",(char *) "itemid", NULL | |
27617 | }; | |
27618 | ||
27619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuItem_SetId",kwnames,&obj0,&arg2)) goto fail; | |
27620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27621 | { | |
27622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27623 | (arg1)->SetId(arg2); | |
27624 | ||
27625 | wxPyEndAllowThreads(__tstate); | |
27626 | if (PyErr_Occurred()) SWIG_fail; | |
27627 | } | |
27628 | Py_INCREF(Py_None); resultobj = Py_None; | |
27629 | return resultobj; | |
27630 | fail: | |
27631 | return NULL; | |
27632 | } | |
27633 | ||
27634 | ||
27635 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27636 | PyObject *resultobj; | |
27637 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27638 | int result; | |
27639 | PyObject * obj0 = 0 ; | |
27640 | char *kwnames[] = { | |
27641 | (char *) "self", NULL | |
27642 | }; | |
27643 | ||
27644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
27645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27646 | { | |
27647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27648 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
27649 | ||
27650 | wxPyEndAllowThreads(__tstate); | |
27651 | if (PyErr_Occurred()) SWIG_fail; | |
27652 | } | |
27653 | resultobj = PyInt_FromLong((long)result); | |
27654 | return resultobj; | |
27655 | fail: | |
27656 | return NULL; | |
27657 | } | |
27658 | ||
27659 | ||
27660 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27661 | PyObject *resultobj; | |
27662 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27663 | bool result; | |
27664 | PyObject * obj0 = 0 ; | |
27665 | char *kwnames[] = { | |
27666 | (char *) "self", NULL | |
27667 | }; | |
27668 | ||
27669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
27670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27671 | { | |
27672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27673 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
27674 | ||
27675 | wxPyEndAllowThreads(__tstate); | |
27676 | if (PyErr_Occurred()) SWIG_fail; | |
27677 | } | |
27678 | resultobj = PyInt_FromLong((long)result); | |
27679 | return resultobj; | |
27680 | fail: | |
27681 | return NULL; | |
27682 | } | |
27683 | ||
27684 | ||
27685 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27686 | PyObject *resultobj; | |
27687 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27688 | wxString *arg2 = 0 ; | |
27689 | bool temp2 = false ; | |
27690 | PyObject * obj0 = 0 ; | |
27691 | PyObject * obj1 = 0 ; | |
27692 | char *kwnames[] = { | |
27693 | (char *) "self",(char *) "str", NULL | |
27694 | }; | |
27695 | ||
27696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
27697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27698 | { | |
27699 | arg2 = wxString_in_helper(obj1); | |
27700 | if (arg2 == NULL) SWIG_fail; | |
27701 | temp2 = true; | |
27702 | } | |
27703 | { | |
27704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27705 | (arg1)->SetText((wxString const &)*arg2); | |
27706 | ||
27707 | wxPyEndAllowThreads(__tstate); | |
27708 | if (PyErr_Occurred()) SWIG_fail; | |
27709 | } | |
27710 | Py_INCREF(Py_None); resultobj = Py_None; | |
27711 | { | |
27712 | if (temp2) | |
27713 | delete arg2; | |
27714 | } | |
27715 | return resultobj; | |
27716 | fail: | |
27717 | { | |
27718 | if (temp2) | |
27719 | delete arg2; | |
27720 | } | |
27721 | return NULL; | |
27722 | } | |
27723 | ||
27724 | ||
27725 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27726 | PyObject *resultobj; | |
27727 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27728 | wxString result; | |
27729 | PyObject * obj0 = 0 ; | |
27730 | char *kwnames[] = { | |
27731 | (char *) "self", NULL | |
27732 | }; | |
27733 | ||
27734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
27735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27736 | { | |
27737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27738 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
27739 | ||
27740 | wxPyEndAllowThreads(__tstate); | |
27741 | if (PyErr_Occurred()) SWIG_fail; | |
27742 | } | |
27743 | { | |
27744 | #if wxUSE_UNICODE | |
27745 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27746 | #else | |
27747 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27748 | #endif | |
27749 | } | |
27750 | return resultobj; | |
27751 | fail: | |
27752 | return NULL; | |
27753 | } | |
27754 | ||
27755 | ||
27756 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27757 | PyObject *resultobj; | |
27758 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27759 | wxString *result; | |
27760 | PyObject * obj0 = 0 ; | |
27761 | char *kwnames[] = { | |
27762 | (char *) "self", NULL | |
27763 | }; | |
27764 | ||
27765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
27766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27767 | { | |
27768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27769 | { | |
27770 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
27771 | result = (wxString *) &_result_ref; | |
27772 | } | |
27773 | ||
27774 | wxPyEndAllowThreads(__tstate); | |
27775 | if (PyErr_Occurred()) SWIG_fail; | |
27776 | } | |
27777 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
27778 | return resultobj; | |
27779 | fail: | |
27780 | return NULL; | |
27781 | } | |
27782 | ||
27783 | ||
27784 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27785 | PyObject *resultobj; | |
27786 | wxString *arg1 = 0 ; | |
27787 | wxString result; | |
27788 | bool temp1 = false ; | |
27789 | PyObject * obj0 = 0 ; | |
27790 | char *kwnames[] = { | |
27791 | (char *) "text", NULL | |
27792 | }; | |
27793 | ||
27794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
27795 | { | |
27796 | arg1 = wxString_in_helper(obj0); | |
27797 | if (arg1 == NULL) SWIG_fail; | |
27798 | temp1 = true; | |
27799 | } | |
27800 | { | |
27801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27802 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
27803 | ||
27804 | wxPyEndAllowThreads(__tstate); | |
27805 | if (PyErr_Occurred()) SWIG_fail; | |
27806 | } | |
27807 | { | |
27808 | #if wxUSE_UNICODE | |
27809 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27810 | #else | |
27811 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27812 | #endif | |
27813 | } | |
27814 | { | |
27815 | if (temp1) | |
27816 | delete arg1; | |
27817 | } | |
27818 | return resultobj; | |
27819 | fail: | |
27820 | { | |
27821 | if (temp1) | |
27822 | delete arg1; | |
27823 | } | |
27824 | return NULL; | |
27825 | } | |
27826 | ||
27827 | ||
27828 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27829 | PyObject *resultobj; | |
27830 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27831 | int result; | |
27832 | PyObject * obj0 = 0 ; | |
27833 | char *kwnames[] = { | |
27834 | (char *) "self", NULL | |
27835 | }; | |
27836 | ||
27837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
27838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27839 | { | |
27840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27841 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
27842 | ||
27843 | wxPyEndAllowThreads(__tstate); | |
27844 | if (PyErr_Occurred()) SWIG_fail; | |
27845 | } | |
27846 | resultobj = PyInt_FromLong((long)result); | |
27847 | return resultobj; | |
27848 | fail: | |
27849 | return NULL; | |
27850 | } | |
27851 | ||
27852 | ||
27853 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27854 | PyObject *resultobj; | |
27855 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27856 | bool arg2 ; | |
27857 | PyObject * obj0 = 0 ; | |
27858 | PyObject * obj1 = 0 ; | |
27859 | char *kwnames[] = { | |
27860 | (char *) "self",(char *) "checkable", NULL | |
27861 | }; | |
27862 | ||
27863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
27864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27865 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
27866 | if (PyErr_Occurred()) SWIG_fail; | |
27867 | { | |
27868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27869 | (arg1)->SetCheckable(arg2); | |
27870 | ||
27871 | wxPyEndAllowThreads(__tstate); | |
27872 | if (PyErr_Occurred()) SWIG_fail; | |
27873 | } | |
27874 | Py_INCREF(Py_None); resultobj = Py_None; | |
27875 | return resultobj; | |
27876 | fail: | |
27877 | return NULL; | |
27878 | } | |
27879 | ||
27880 | ||
27881 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27882 | PyObject *resultobj; | |
27883 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27884 | bool result; | |
27885 | PyObject * obj0 = 0 ; | |
27886 | char *kwnames[] = { | |
27887 | (char *) "self", NULL | |
27888 | }; | |
27889 | ||
27890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
27891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27892 | { | |
27893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27894 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
27895 | ||
27896 | wxPyEndAllowThreads(__tstate); | |
27897 | if (PyErr_Occurred()) SWIG_fail; | |
27898 | } | |
27899 | resultobj = PyInt_FromLong((long)result); | |
27900 | return resultobj; | |
27901 | fail: | |
27902 | return NULL; | |
27903 | } | |
27904 | ||
27905 | ||
27906 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27907 | PyObject *resultobj; | |
27908 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27909 | bool result; | |
27910 | PyObject * obj0 = 0 ; | |
27911 | char *kwnames[] = { | |
27912 | (char *) "self", NULL | |
27913 | }; | |
27914 | ||
27915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
27916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27917 | { | |
27918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27919 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
27920 | ||
27921 | wxPyEndAllowThreads(__tstate); | |
27922 | if (PyErr_Occurred()) SWIG_fail; | |
27923 | } | |
27924 | resultobj = PyInt_FromLong((long)result); | |
27925 | return resultobj; | |
27926 | fail: | |
27927 | return NULL; | |
27928 | } | |
27929 | ||
27930 | ||
27931 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27932 | PyObject *resultobj; | |
27933 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27934 | wxMenu *arg2 = (wxMenu *) 0 ; | |
27935 | PyObject * obj0 = 0 ; | |
27936 | PyObject * obj1 = 0 ; | |
27937 | char *kwnames[] = { | |
27938 | (char *) "self",(char *) "menu", NULL | |
27939 | }; | |
27940 | ||
27941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
27942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27943 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27944 | { | |
27945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27946 | (arg1)->SetSubMenu(arg2); | |
27947 | ||
27948 | wxPyEndAllowThreads(__tstate); | |
27949 | if (PyErr_Occurred()) SWIG_fail; | |
27950 | } | |
27951 | Py_INCREF(Py_None); resultobj = Py_None; | |
27952 | return resultobj; | |
27953 | fail: | |
27954 | return NULL; | |
27955 | } | |
27956 | ||
27957 | ||
27958 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27959 | PyObject *resultobj; | |
27960 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27961 | wxMenu *result; | |
27962 | PyObject * obj0 = 0 ; | |
27963 | char *kwnames[] = { | |
27964 | (char *) "self", NULL | |
27965 | }; | |
27966 | ||
27967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
27968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27969 | { | |
27970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27971 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
27972 | ||
27973 | wxPyEndAllowThreads(__tstate); | |
27974 | if (PyErr_Occurred()) SWIG_fail; | |
27975 | } | |
27976 | { | |
27977 | resultobj = wxPyMake_wxObject(result); | |
27978 | } | |
27979 | return resultobj; | |
27980 | fail: | |
27981 | return NULL; | |
27982 | } | |
27983 | ||
27984 | ||
27985 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27986 | PyObject *resultobj; | |
27987 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27988 | bool arg2 = (bool) TRUE ; | |
27989 | PyObject * obj0 = 0 ; | |
27990 | PyObject * obj1 = 0 ; | |
27991 | char *kwnames[] = { | |
27992 | (char *) "self",(char *) "enable", NULL | |
27993 | }; | |
27994 | ||
27995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
27996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27997 | if (obj1) { | |
27998 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
27999 | if (PyErr_Occurred()) SWIG_fail; | |
28000 | } | |
28001 | { | |
28002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28003 | (arg1)->Enable(arg2); | |
28004 | ||
28005 | wxPyEndAllowThreads(__tstate); | |
28006 | if (PyErr_Occurred()) SWIG_fail; | |
28007 | } | |
28008 | Py_INCREF(Py_None); resultobj = Py_None; | |
28009 | return resultobj; | |
28010 | fail: | |
28011 | return NULL; | |
28012 | } | |
28013 | ||
28014 | ||
28015 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28016 | PyObject *resultobj; | |
28017 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28018 | bool result; | |
28019 | PyObject * obj0 = 0 ; | |
28020 | char *kwnames[] = { | |
28021 | (char *) "self", NULL | |
28022 | }; | |
28023 | ||
28024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
28025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28026 | { | |
28027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28028 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
28029 | ||
28030 | wxPyEndAllowThreads(__tstate); | |
28031 | if (PyErr_Occurred()) SWIG_fail; | |
28032 | } | |
28033 | resultobj = PyInt_FromLong((long)result); | |
28034 | return resultobj; | |
28035 | fail: | |
28036 | return NULL; | |
28037 | } | |
28038 | ||
28039 | ||
28040 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28041 | PyObject *resultobj; | |
28042 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28043 | bool arg2 = (bool) TRUE ; | |
28044 | PyObject * obj0 = 0 ; | |
28045 | PyObject * obj1 = 0 ; | |
28046 | char *kwnames[] = { | |
28047 | (char *) "self",(char *) "check", NULL | |
28048 | }; | |
28049 | ||
28050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
28051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28052 | if (obj1) { | |
28053 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
28054 | if (PyErr_Occurred()) SWIG_fail; | |
28055 | } | |
28056 | { | |
28057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28058 | (arg1)->Check(arg2); | |
28059 | ||
28060 | wxPyEndAllowThreads(__tstate); | |
28061 | if (PyErr_Occurred()) SWIG_fail; | |
28062 | } | |
28063 | Py_INCREF(Py_None); resultobj = Py_None; | |
28064 | return resultobj; | |
28065 | fail: | |
28066 | return NULL; | |
28067 | } | |
28068 | ||
28069 | ||
28070 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28071 | PyObject *resultobj; | |
28072 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28073 | bool result; | |
28074 | PyObject * obj0 = 0 ; | |
28075 | char *kwnames[] = { | |
28076 | (char *) "self", NULL | |
28077 | }; | |
28078 | ||
28079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
28080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28081 | { | |
28082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28083 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
28084 | ||
28085 | wxPyEndAllowThreads(__tstate); | |
28086 | if (PyErr_Occurred()) SWIG_fail; | |
28087 | } | |
28088 | resultobj = PyInt_FromLong((long)result); | |
28089 | return resultobj; | |
28090 | fail: | |
28091 | return NULL; | |
28092 | } | |
28093 | ||
28094 | ||
28095 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28096 | PyObject *resultobj; | |
28097 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28098 | PyObject * obj0 = 0 ; | |
28099 | char *kwnames[] = { | |
28100 | (char *) "self", NULL | |
28101 | }; | |
28102 | ||
28103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
28104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28105 | { | |
28106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28107 | (arg1)->Toggle(); | |
28108 | ||
28109 | wxPyEndAllowThreads(__tstate); | |
28110 | if (PyErr_Occurred()) SWIG_fail; | |
28111 | } | |
28112 | Py_INCREF(Py_None); resultobj = Py_None; | |
28113 | return resultobj; | |
28114 | fail: | |
28115 | return NULL; | |
28116 | } | |
28117 | ||
28118 | ||
28119 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28120 | PyObject *resultobj; | |
28121 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28122 | wxString *arg2 = 0 ; | |
28123 | bool temp2 = false ; | |
28124 | PyObject * obj0 = 0 ; | |
28125 | PyObject * obj1 = 0 ; | |
28126 | char *kwnames[] = { | |
28127 | (char *) "self",(char *) "str", NULL | |
28128 | }; | |
28129 | ||
28130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
28131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28132 | { | |
28133 | arg2 = wxString_in_helper(obj1); | |
28134 | if (arg2 == NULL) SWIG_fail; | |
28135 | temp2 = true; | |
28136 | } | |
28137 | { | |
28138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28139 | (arg1)->SetHelp((wxString const &)*arg2); | |
28140 | ||
28141 | wxPyEndAllowThreads(__tstate); | |
28142 | if (PyErr_Occurred()) SWIG_fail; | |
28143 | } | |
28144 | Py_INCREF(Py_None); resultobj = Py_None; | |
28145 | { | |
28146 | if (temp2) | |
28147 | delete arg2; | |
28148 | } | |
28149 | return resultobj; | |
28150 | fail: | |
28151 | { | |
28152 | if (temp2) | |
28153 | delete arg2; | |
28154 | } | |
28155 | return NULL; | |
28156 | } | |
28157 | ||
28158 | ||
28159 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28160 | PyObject *resultobj; | |
28161 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28162 | wxString *result; | |
28163 | PyObject * obj0 = 0 ; | |
28164 | char *kwnames[] = { | |
28165 | (char *) "self", NULL | |
28166 | }; | |
28167 | ||
28168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
28169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28170 | { | |
28171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28172 | { | |
28173 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
28174 | result = (wxString *) &_result_ref; | |
28175 | } | |
28176 | ||
28177 | wxPyEndAllowThreads(__tstate); | |
28178 | if (PyErr_Occurred()) SWIG_fail; | |
28179 | } | |
28180 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
28181 | return resultobj; | |
28182 | fail: | |
28183 | return NULL; | |
28184 | } | |
28185 | ||
28186 | ||
28187 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28188 | PyObject *resultobj; | |
28189 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28190 | wxAcceleratorEntry *result; | |
28191 | PyObject * obj0 = 0 ; | |
28192 | char *kwnames[] = { | |
28193 | (char *) "self", NULL | |
28194 | }; | |
28195 | ||
28196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
28197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28198 | { | |
28199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28200 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
28201 | ||
28202 | wxPyEndAllowThreads(__tstate); | |
28203 | if (PyErr_Occurred()) SWIG_fail; | |
28204 | } | |
28205 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0); | |
28206 | return resultobj; | |
28207 | fail: | |
28208 | return NULL; | |
28209 | } | |
28210 | ||
28211 | ||
28212 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28213 | PyObject *resultobj; | |
28214 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28215 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
28216 | PyObject * obj0 = 0 ; | |
28217 | PyObject * obj1 = 0 ; | |
28218 | char *kwnames[] = { | |
28219 | (char *) "self",(char *) "accel", NULL | |
28220 | }; | |
28221 | ||
28222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
28223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28224 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28225 | { | |
28226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28227 | (arg1)->SetAccel(arg2); | |
28228 | ||
28229 | wxPyEndAllowThreads(__tstate); | |
28230 | if (PyErr_Occurred()) SWIG_fail; | |
28231 | } | |
28232 | Py_INCREF(Py_None); resultobj = Py_None; | |
28233 | return resultobj; | |
28234 | fail: | |
28235 | return NULL; | |
28236 | } | |
28237 | ||
28238 | ||
28239 | static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28240 | PyObject *resultobj; | |
28241 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28242 | wxFont *arg2 = 0 ; | |
28243 | PyObject * obj0 = 0 ; | |
28244 | PyObject * obj1 = 0 ; | |
28245 | char *kwnames[] = { | |
28246 | (char *) "self",(char *) "font", NULL | |
28247 | }; | |
28248 | ||
28249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
28250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28251 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28252 | if (arg2 == NULL) { | |
28253 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28254 | } | |
28255 | { | |
28256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28257 | (arg1)->SetFont((wxFont const &)*arg2); | |
28258 | ||
28259 | wxPyEndAllowThreads(__tstate); | |
28260 | if (PyErr_Occurred()) SWIG_fail; | |
28261 | } | |
28262 | Py_INCREF(Py_None); resultobj = Py_None; | |
28263 | return resultobj; | |
28264 | fail: | |
28265 | return NULL; | |
28266 | } | |
28267 | ||
28268 | ||
28269 | static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28270 | PyObject *resultobj; | |
28271 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28272 | wxFont result; | |
28273 | PyObject * obj0 = 0 ; | |
28274 | char *kwnames[] = { | |
28275 | (char *) "self", NULL | |
28276 | }; | |
28277 | ||
28278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
28279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28280 | { | |
28281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28282 | result = (arg1)->GetFont(); | |
28283 | ||
28284 | wxPyEndAllowThreads(__tstate); | |
28285 | if (PyErr_Occurred()) SWIG_fail; | |
28286 | } | |
28287 | { | |
28288 | wxFont * resultptr; | |
28289 | resultptr = new wxFont((wxFont &) result); | |
28290 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
28291 | } | |
28292 | return resultobj; | |
28293 | fail: | |
28294 | return NULL; | |
28295 | } | |
28296 | ||
28297 | ||
28298 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28299 | PyObject *resultobj; | |
28300 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28301 | wxColour *arg2 = 0 ; | |
28302 | wxColour temp2 ; | |
28303 | PyObject * obj0 = 0 ; | |
28304 | PyObject * obj1 = 0 ; | |
28305 | char *kwnames[] = { | |
28306 | (char *) "self",(char *) "colText", NULL | |
28307 | }; | |
28308 | ||
28309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
28310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28311 | { | |
28312 | arg2 = &temp2; | |
28313 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
28314 | } | |
28315 | { | |
28316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28317 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
28318 | ||
28319 | wxPyEndAllowThreads(__tstate); | |
28320 | if (PyErr_Occurred()) SWIG_fail; | |
28321 | } | |
28322 | Py_INCREF(Py_None); resultobj = Py_None; | |
28323 | return resultobj; | |
28324 | fail: | |
28325 | return NULL; | |
28326 | } | |
28327 | ||
28328 | ||
28329 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28330 | PyObject *resultobj; | |
28331 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28332 | wxColour result; | |
28333 | PyObject * obj0 = 0 ; | |
28334 | char *kwnames[] = { | |
28335 | (char *) "self", NULL | |
28336 | }; | |
28337 | ||
28338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
28339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28340 | { | |
28341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28342 | result = (arg1)->GetTextColour(); | |
28343 | ||
28344 | wxPyEndAllowThreads(__tstate); | |
28345 | if (PyErr_Occurred()) SWIG_fail; | |
28346 | } | |
28347 | { | |
28348 | wxColour * resultptr; | |
28349 | resultptr = new wxColour((wxColour &) result); | |
28350 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
28351 | } | |
28352 | return resultobj; | |
28353 | fail: | |
28354 | return NULL; | |
28355 | } | |
28356 | ||
28357 | ||
28358 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28359 | PyObject *resultobj; | |
28360 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28361 | wxColour *arg2 = 0 ; | |
28362 | wxColour temp2 ; | |
28363 | PyObject * obj0 = 0 ; | |
28364 | PyObject * obj1 = 0 ; | |
28365 | char *kwnames[] = { | |
28366 | (char *) "self",(char *) "colBack", NULL | |
28367 | }; | |
28368 | ||
28369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
28370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28371 | { | |
28372 | arg2 = &temp2; | |
28373 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
28374 | } | |
28375 | { | |
28376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28377 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
28378 | ||
28379 | wxPyEndAllowThreads(__tstate); | |
28380 | if (PyErr_Occurred()) SWIG_fail; | |
28381 | } | |
28382 | Py_INCREF(Py_None); resultobj = Py_None; | |
28383 | return resultobj; | |
28384 | fail: | |
28385 | return NULL; | |
28386 | } | |
28387 | ||
28388 | ||
28389 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28390 | PyObject *resultobj; | |
28391 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28392 | wxColour result; | |
28393 | PyObject * obj0 = 0 ; | |
28394 | char *kwnames[] = { | |
28395 | (char *) "self", NULL | |
28396 | }; | |
28397 | ||
28398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
28399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28400 | { | |
28401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28402 | result = (arg1)->GetBackgroundColour(); | |
28403 | ||
28404 | wxPyEndAllowThreads(__tstate); | |
28405 | if (PyErr_Occurred()) SWIG_fail; | |
28406 | } | |
28407 | { | |
28408 | wxColour * resultptr; | |
28409 | resultptr = new wxColour((wxColour &) result); | |
28410 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
28411 | } | |
28412 | return resultobj; | |
28413 | fail: | |
28414 | return NULL; | |
28415 | } | |
28416 | ||
28417 | ||
28418 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28419 | PyObject *resultobj; | |
28420 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28421 | wxBitmap *arg2 = 0 ; | |
28422 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
28423 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
28424 | PyObject * obj0 = 0 ; | |
28425 | PyObject * obj1 = 0 ; | |
28426 | PyObject * obj2 = 0 ; | |
28427 | char *kwnames[] = { | |
28428 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
28429 | }; | |
28430 | ||
28431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28433 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28434 | if (arg2 == NULL) { | |
28435 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28436 | } | |
28437 | if (obj2) { | |
28438 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28439 | if (arg3 == NULL) { | |
28440 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28441 | } | |
28442 | } | |
28443 | { | |
28444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28445 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
28446 | ||
28447 | wxPyEndAllowThreads(__tstate); | |
28448 | if (PyErr_Occurred()) SWIG_fail; | |
28449 | } | |
28450 | Py_INCREF(Py_None); resultobj = Py_None; | |
28451 | return resultobj; | |
28452 | fail: | |
28453 | return NULL; | |
28454 | } | |
28455 | ||
28456 | ||
28457 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28458 | PyObject *resultobj; | |
28459 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28460 | wxBitmap *arg2 = 0 ; | |
28461 | PyObject * obj0 = 0 ; | |
28462 | PyObject * obj1 = 0 ; | |
28463 | char *kwnames[] = { | |
28464 | (char *) "self",(char *) "bmpDisabled", NULL | |
28465 | }; | |
28466 | ||
28467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
28468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28469 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28470 | if (arg2 == NULL) { | |
28471 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28472 | } | |
28473 | { | |
28474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28475 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
28476 | ||
28477 | wxPyEndAllowThreads(__tstate); | |
28478 | if (PyErr_Occurred()) SWIG_fail; | |
28479 | } | |
28480 | Py_INCREF(Py_None); resultobj = Py_None; | |
28481 | return resultobj; | |
28482 | fail: | |
28483 | return NULL; | |
28484 | } | |
28485 | ||
28486 | ||
28487 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28488 | PyObject *resultobj; | |
28489 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28490 | wxBitmap *result; | |
28491 | PyObject * obj0 = 0 ; | |
28492 | char *kwnames[] = { | |
28493 | (char *) "self", NULL | |
28494 | }; | |
28495 | ||
28496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
28497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28498 | { | |
28499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28500 | { | |
28501 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
28502 | result = (wxBitmap *) &_result_ref; | |
28503 | } | |
28504 | ||
28505 | wxPyEndAllowThreads(__tstate); | |
28506 | if (PyErr_Occurred()) SWIG_fail; | |
28507 | } | |
28508 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
28509 | return resultobj; | |
28510 | fail: | |
28511 | return NULL; | |
28512 | } | |
28513 | ||
28514 | ||
28515 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28516 | PyObject *resultobj; | |
28517 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28518 | int arg2 ; | |
28519 | PyObject * obj0 = 0 ; | |
28520 | char *kwnames[] = { | |
28521 | (char *) "self",(char *) "nWidth", NULL | |
28522 | }; | |
28523 | ||
28524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuItem_SetMarginWidth",kwnames,&obj0,&arg2)) goto fail; | |
28525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28526 | { | |
28527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28528 | (arg1)->SetMarginWidth(arg2); | |
28529 | ||
28530 | wxPyEndAllowThreads(__tstate); | |
28531 | if (PyErr_Occurred()) SWIG_fail; | |
28532 | } | |
28533 | Py_INCREF(Py_None); resultobj = Py_None; | |
28534 | return resultobj; | |
28535 | fail: | |
28536 | return NULL; | |
28537 | } | |
28538 | ||
28539 | ||
28540 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28541 | PyObject *resultobj; | |
28542 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28543 | int result; | |
28544 | PyObject * obj0 = 0 ; | |
28545 | char *kwnames[] = { | |
28546 | (char *) "self", NULL | |
28547 | }; | |
28548 | ||
28549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
28550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28551 | { | |
28552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28553 | result = (int)(arg1)->GetMarginWidth(); | |
28554 | ||
28555 | wxPyEndAllowThreads(__tstate); | |
28556 | if (PyErr_Occurred()) SWIG_fail; | |
28557 | } | |
28558 | resultobj = PyInt_FromLong((long)result); | |
28559 | return resultobj; | |
28560 | fail: | |
28561 | return NULL; | |
28562 | } | |
28563 | ||
28564 | ||
28565 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28566 | PyObject *resultobj; | |
28567 | int result; | |
28568 | char *kwnames[] = { | |
28569 | NULL | |
28570 | }; | |
28571 | ||
28572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
28573 | { | |
28574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28575 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
28576 | ||
28577 | wxPyEndAllowThreads(__tstate); | |
28578 | if (PyErr_Occurred()) SWIG_fail; | |
28579 | } | |
28580 | resultobj = PyInt_FromLong((long)result); | |
28581 | return resultobj; | |
28582 | fail: | |
28583 | return NULL; | |
28584 | } | |
28585 | ||
28586 | ||
28587 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28588 | PyObject *resultobj; | |
28589 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28590 | bool result; | |
28591 | PyObject * obj0 = 0 ; | |
28592 | char *kwnames[] = { | |
28593 | (char *) "self", NULL | |
28594 | }; | |
28595 | ||
28596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
28597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28598 | { | |
28599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28600 | result = (bool)(arg1)->IsOwnerDrawn(); | |
28601 | ||
28602 | wxPyEndAllowThreads(__tstate); | |
28603 | if (PyErr_Occurred()) SWIG_fail; | |
28604 | } | |
28605 | resultobj = PyInt_FromLong((long)result); | |
28606 | return resultobj; | |
28607 | fail: | |
28608 | return NULL; | |
28609 | } | |
28610 | ||
28611 | ||
28612 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28613 | PyObject *resultobj; | |
28614 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28615 | bool arg2 = (bool) TRUE ; | |
28616 | PyObject * obj0 = 0 ; | |
28617 | PyObject * obj1 = 0 ; | |
28618 | char *kwnames[] = { | |
28619 | (char *) "self",(char *) "ownerDrawn", NULL | |
28620 | }; | |
28621 | ||
28622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
28623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28624 | if (obj1) { | |
28625 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
28626 | if (PyErr_Occurred()) SWIG_fail; | |
28627 | } | |
28628 | { | |
28629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28630 | (arg1)->SetOwnerDrawn(arg2); | |
28631 | ||
28632 | wxPyEndAllowThreads(__tstate); | |
28633 | if (PyErr_Occurred()) SWIG_fail; | |
28634 | } | |
28635 | Py_INCREF(Py_None); resultobj = Py_None; | |
28636 | return resultobj; | |
28637 | fail: | |
28638 | return NULL; | |
28639 | } | |
28640 | ||
28641 | ||
28642 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28643 | PyObject *resultobj; | |
28644 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28645 | PyObject * obj0 = 0 ; | |
28646 | char *kwnames[] = { | |
28647 | (char *) "self", NULL | |
28648 | }; | |
28649 | ||
28650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
28651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28652 | { | |
28653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28654 | (arg1)->ResetOwnerDrawn(); | |
28655 | ||
28656 | wxPyEndAllowThreads(__tstate); | |
28657 | if (PyErr_Occurred()) SWIG_fail; | |
28658 | } | |
28659 | Py_INCREF(Py_None); resultobj = Py_None; | |
28660 | return resultobj; | |
28661 | fail: | |
28662 | return NULL; | |
28663 | } | |
28664 | ||
28665 | ||
28666 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28667 | PyObject *resultobj; | |
28668 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28669 | wxBitmap *arg2 = 0 ; | |
28670 | PyObject * obj0 = 0 ; | |
28671 | PyObject * obj1 = 0 ; | |
28672 | char *kwnames[] = { | |
28673 | (char *) "self",(char *) "bitmap", NULL | |
28674 | }; | |
28675 | ||
28676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
28677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28678 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28679 | if (arg2 == NULL) { | |
28680 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28681 | } | |
28682 | { | |
28683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28684 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
28685 | ||
28686 | wxPyEndAllowThreads(__tstate); | |
28687 | if (PyErr_Occurred()) SWIG_fail; | |
28688 | } | |
28689 | Py_INCREF(Py_None); resultobj = Py_None; | |
28690 | return resultobj; | |
28691 | fail: | |
28692 | return NULL; | |
28693 | } | |
28694 | ||
28695 | ||
28696 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28697 | PyObject *resultobj; | |
28698 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28699 | wxBitmap *result; | |
28700 | PyObject * obj0 = 0 ; | |
28701 | char *kwnames[] = { | |
28702 | (char *) "self", NULL | |
28703 | }; | |
28704 | ||
28705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
28706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28707 | { | |
28708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28709 | { | |
28710 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
28711 | result = (wxBitmap *) &_result_ref; | |
28712 | } | |
28713 | ||
28714 | wxPyEndAllowThreads(__tstate); | |
28715 | if (PyErr_Occurred()) SWIG_fail; | |
28716 | } | |
28717 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
28718 | return resultobj; | |
28719 | fail: | |
28720 | return NULL; | |
28721 | } | |
28722 | ||
28723 | ||
28724 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
28725 | PyObject *obj; | |
28726 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28727 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
28728 | Py_INCREF(obj); | |
28729 | return Py_BuildValue((char *)""); | |
28730 | } | |
28731 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28732 | PyObject *resultobj; | |
28733 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28734 | wxWindowID arg2 ; | |
28735 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28736 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28737 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28738 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28739 | long arg5 = (long) 0 ; | |
28740 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28741 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28742 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
28743 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28744 | wxControl *result; | |
28745 | wxPoint temp3 ; | |
28746 | wxSize temp4 ; | |
28747 | bool temp7 = false ; | |
28748 | PyObject * obj0 = 0 ; | |
28749 | PyObject * obj2 = 0 ; | |
28750 | PyObject * obj3 = 0 ; | |
28751 | PyObject * obj5 = 0 ; | |
28752 | PyObject * obj6 = 0 ; | |
28753 | char *kwnames[] = { | |
28754 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28755 | }; | |
28756 | ||
28757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlOO:new_Control",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
28758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28759 | if (obj2) { | |
28760 | { | |
28761 | arg3 = &temp3; | |
28762 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28763 | } | |
28764 | } | |
28765 | if (obj3) { | |
28766 | { | |
28767 | arg4 = &temp4; | |
28768 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28769 | } | |
28770 | } | |
28771 | if (obj5) { | |
28772 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28773 | if (arg6 == NULL) { | |
28774 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28775 | } | |
28776 | } | |
28777 | if (obj6) { | |
28778 | { | |
28779 | arg7 = wxString_in_helper(obj6); | |
28780 | if (arg7 == NULL) SWIG_fail; | |
28781 | temp7 = true; | |
28782 | } | |
28783 | } | |
28784 | { | |
28785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28786 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28787 | ||
28788 | wxPyEndAllowThreads(__tstate); | |
28789 | if (PyErr_Occurred()) SWIG_fail; | |
28790 | } | |
28791 | { | |
28792 | resultobj = wxPyMake_wxObject(result); | |
28793 | } | |
28794 | { | |
28795 | if (temp7) | |
28796 | delete arg7; | |
28797 | } | |
28798 | return resultobj; | |
28799 | fail: | |
28800 | { | |
28801 | if (temp7) | |
28802 | delete arg7; | |
28803 | } | |
28804 | return NULL; | |
28805 | } | |
28806 | ||
28807 | ||
28808 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28809 | PyObject *resultobj; | |
28810 | wxControl *result; | |
28811 | char *kwnames[] = { | |
28812 | NULL | |
28813 | }; | |
28814 | ||
28815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
28816 | { | |
28817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28818 | result = (wxControl *)new wxControl(); | |
28819 | ||
28820 | wxPyEndAllowThreads(__tstate); | |
28821 | if (PyErr_Occurred()) SWIG_fail; | |
28822 | } | |
28823 | { | |
28824 | resultobj = wxPyMake_wxObject(result); | |
28825 | } | |
28826 | return resultobj; | |
28827 | fail: | |
28828 | return NULL; | |
28829 | } | |
28830 | ||
28831 | ||
28832 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28833 | PyObject *resultobj; | |
28834 | wxControl *arg1 = (wxControl *) 0 ; | |
28835 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28836 | wxWindowID arg3 ; | |
28837 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28838 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28839 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28840 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28841 | long arg6 = (long) 0 ; | |
28842 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
28843 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
28844 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
28845 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28846 | bool result; | |
28847 | wxPoint temp4 ; | |
28848 | wxSize temp5 ; | |
28849 | bool temp8 = false ; | |
28850 | PyObject * obj0 = 0 ; | |
28851 | PyObject * obj1 = 0 ; | |
28852 | PyObject * obj3 = 0 ; | |
28853 | PyObject * obj4 = 0 ; | |
28854 | PyObject * obj6 = 0 ; | |
28855 | PyObject * obj7 = 0 ; | |
28856 | char *kwnames[] = { | |
28857 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28858 | }; | |
28859 | ||
28860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlOO:Control_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
28861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28862 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28863 | if (obj3) { | |
28864 | { | |
28865 | arg4 = &temp4; | |
28866 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28867 | } | |
28868 | } | |
28869 | if (obj4) { | |
28870 | { | |
28871 | arg5 = &temp5; | |
28872 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28873 | } | |
28874 | } | |
28875 | if (obj6) { | |
28876 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28877 | if (arg7 == NULL) { | |
28878 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28879 | } | |
28880 | } | |
28881 | if (obj7) { | |
28882 | { | |
28883 | arg8 = wxString_in_helper(obj7); | |
28884 | if (arg8 == NULL) SWIG_fail; | |
28885 | temp8 = true; | |
28886 | } | |
28887 | } | |
28888 | { | |
28889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28890 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
28891 | ||
28892 | wxPyEndAllowThreads(__tstate); | |
28893 | if (PyErr_Occurred()) SWIG_fail; | |
28894 | } | |
28895 | resultobj = PyInt_FromLong((long)result); | |
28896 | { | |
28897 | if (temp8) | |
28898 | delete arg8; | |
28899 | } | |
28900 | return resultobj; | |
28901 | fail: | |
28902 | { | |
28903 | if (temp8) | |
28904 | delete arg8; | |
28905 | } | |
28906 | return NULL; | |
28907 | } | |
28908 | ||
28909 | ||
28910 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28911 | PyObject *resultobj; | |
28912 | wxControl *arg1 = (wxControl *) 0 ; | |
28913 | wxCommandEvent *arg2 = 0 ; | |
28914 | PyObject * obj0 = 0 ; | |
28915 | PyObject * obj1 = 0 ; | |
28916 | char *kwnames[] = { | |
28917 | (char *) "self",(char *) "event", NULL | |
28918 | }; | |
28919 | ||
28920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
28921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28922 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28923 | if (arg2 == NULL) { | |
28924 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28925 | } | |
28926 | { | |
28927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28928 | (arg1)->Command(*arg2); | |
28929 | ||
28930 | wxPyEndAllowThreads(__tstate); | |
28931 | if (PyErr_Occurred()) SWIG_fail; | |
28932 | } | |
28933 | Py_INCREF(Py_None); resultobj = Py_None; | |
28934 | return resultobj; | |
28935 | fail: | |
28936 | return NULL; | |
28937 | } | |
28938 | ||
28939 | ||
28940 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28941 | PyObject *resultobj; | |
28942 | wxControl *arg1 = (wxControl *) 0 ; | |
28943 | wxString result; | |
28944 | PyObject * obj0 = 0 ; | |
28945 | char *kwnames[] = { | |
28946 | (char *) "self", NULL | |
28947 | }; | |
28948 | ||
28949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
28950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28951 | { | |
28952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28953 | result = (arg1)->GetLabel(); | |
28954 | ||
28955 | wxPyEndAllowThreads(__tstate); | |
28956 | if (PyErr_Occurred()) SWIG_fail; | |
28957 | } | |
28958 | { | |
28959 | #if wxUSE_UNICODE | |
28960 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28961 | #else | |
28962 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28963 | #endif | |
28964 | } | |
28965 | return resultobj; | |
28966 | fail: | |
28967 | return NULL; | |
28968 | } | |
28969 | ||
28970 | ||
28971 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28972 | PyObject *resultobj; | |
28973 | wxControl *arg1 = (wxControl *) 0 ; | |
28974 | wxString *arg2 = 0 ; | |
28975 | bool temp2 = false ; | |
28976 | PyObject * obj0 = 0 ; | |
28977 | PyObject * obj1 = 0 ; | |
28978 | char *kwnames[] = { | |
28979 | (char *) "self",(char *) "label", NULL | |
28980 | }; | |
28981 | ||
28982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
28983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28984 | { | |
28985 | arg2 = wxString_in_helper(obj1); | |
28986 | if (arg2 == NULL) SWIG_fail; | |
28987 | temp2 = true; | |
28988 | } | |
28989 | { | |
28990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28991 | (arg1)->SetLabel((wxString const &)*arg2); | |
28992 | ||
28993 | wxPyEndAllowThreads(__tstate); | |
28994 | if (PyErr_Occurred()) SWIG_fail; | |
28995 | } | |
28996 | Py_INCREF(Py_None); resultobj = Py_None; | |
28997 | { | |
28998 | if (temp2) | |
28999 | delete arg2; | |
29000 | } | |
29001 | return resultobj; | |
29002 | fail: | |
29003 | { | |
29004 | if (temp2) | |
29005 | delete arg2; | |
29006 | } | |
29007 | return NULL; | |
29008 | } | |
29009 | ||
29010 | ||
29011 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
29012 | PyObject *obj; | |
29013 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29014 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
29015 | Py_INCREF(obj); | |
29016 | return Py_BuildValue((char *)""); | |
29017 | } | |
29018 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29019 | PyObject *resultobj; | |
29020 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29021 | wxString *arg2 = 0 ; | |
29022 | PyObject *arg3 = (PyObject *) NULL ; | |
29023 | int result; | |
29024 | bool temp2 = false ; | |
29025 | PyObject * obj0 = 0 ; | |
29026 | PyObject * obj1 = 0 ; | |
29027 | PyObject * obj2 = 0 ; | |
29028 | char *kwnames[] = { | |
29029 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
29030 | }; | |
29031 | ||
29032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29034 | { | |
29035 | arg2 = wxString_in_helper(obj1); | |
29036 | if (arg2 == NULL) SWIG_fail; | |
29037 | temp2 = true; | |
29038 | } | |
29039 | if (obj2) { | |
29040 | arg3 = obj2; | |
29041 | } | |
29042 | { | |
29043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29044 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
29045 | ||
29046 | wxPyEndAllowThreads(__tstate); | |
29047 | if (PyErr_Occurred()) SWIG_fail; | |
29048 | } | |
29049 | resultobj = PyInt_FromLong((long)result); | |
29050 | { | |
29051 | if (temp2) | |
29052 | delete arg2; | |
29053 | } | |
29054 | return resultobj; | |
29055 | fail: | |
29056 | { | |
29057 | if (temp2) | |
29058 | delete arg2; | |
29059 | } | |
29060 | return NULL; | |
29061 | } | |
29062 | ||
29063 | ||
29064 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29065 | PyObject *resultobj; | |
29066 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29067 | wxArrayString *arg2 = 0 ; | |
29068 | PyObject * obj0 = 0 ; | |
29069 | PyObject * obj1 = 0 ; | |
29070 | char *kwnames[] = { | |
29071 | (char *) "self",(char *) "strings", NULL | |
29072 | }; | |
29073 | ||
29074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
29075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29076 | { | |
29077 | if (! PySequence_Check(obj1)) { | |
29078 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
29079 | SWIG_fail; | |
29080 | } | |
29081 | arg2 = new wxArrayString; | |
29082 | int i, len=PySequence_Length(obj1); | |
29083 | for (i=0; i<len; i++) { | |
29084 | PyObject* item = PySequence_GetItem(obj1, i); | |
29085 | #if wxUSE_UNICODE | |
29086 | PyObject* str = PyObject_Unicode(item); | |
29087 | #else | |
29088 | PyObject* str = PyObject_Str(item); | |
29089 | #endif | |
29090 | arg2->Add(Py2wxString(str)); | |
29091 | Py_DECREF(item); | |
29092 | Py_DECREF(str); | |
29093 | } | |
29094 | } | |
29095 | { | |
29096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29097 | (arg1)->Append((wxArrayString const &)*arg2); | |
29098 | ||
29099 | wxPyEndAllowThreads(__tstate); | |
29100 | if (PyErr_Occurred()) SWIG_fail; | |
29101 | } | |
29102 | Py_INCREF(Py_None); resultobj = Py_None; | |
29103 | { | |
29104 | if (arg2) delete arg2; | |
29105 | } | |
29106 | return resultobj; | |
29107 | fail: | |
29108 | { | |
29109 | if (arg2) delete arg2; | |
29110 | } | |
29111 | return NULL; | |
29112 | } | |
29113 | ||
29114 | ||
29115 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29116 | PyObject *resultobj; | |
29117 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29118 | wxString *arg2 = 0 ; | |
29119 | int arg3 ; | |
29120 | PyObject *arg4 = (PyObject *) NULL ; | |
29121 | int result; | |
29122 | bool temp2 = false ; | |
29123 | PyObject * obj0 = 0 ; | |
29124 | PyObject * obj1 = 0 ; | |
29125 | PyObject * obj3 = 0 ; | |
29126 | char *kwnames[] = { | |
29127 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
29128 | }; | |
29129 | ||
29130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
29131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29132 | { | |
29133 | arg2 = wxString_in_helper(obj1); | |
29134 | if (arg2 == NULL) SWIG_fail; | |
29135 | temp2 = true; | |
29136 | } | |
29137 | if (obj3) { | |
29138 | arg4 = obj3; | |
29139 | } | |
29140 | { | |
29141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29142 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
29143 | ||
29144 | wxPyEndAllowThreads(__tstate); | |
29145 | if (PyErr_Occurred()) SWIG_fail; | |
29146 | } | |
29147 | resultobj = PyInt_FromLong((long)result); | |
29148 | { | |
29149 | if (temp2) | |
29150 | delete arg2; | |
29151 | } | |
29152 | return resultobj; | |
29153 | fail: | |
29154 | { | |
29155 | if (temp2) | |
29156 | delete arg2; | |
29157 | } | |
29158 | return NULL; | |
29159 | } | |
29160 | ||
29161 | ||
29162 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29163 | PyObject *resultobj; | |
29164 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29165 | PyObject * obj0 = 0 ; | |
29166 | char *kwnames[] = { | |
29167 | (char *) "self", NULL | |
29168 | }; | |
29169 | ||
29170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
29171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29172 | { | |
29173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29174 | (arg1)->Clear(); | |
29175 | ||
29176 | wxPyEndAllowThreads(__tstate); | |
29177 | if (PyErr_Occurred()) SWIG_fail; | |
29178 | } | |
29179 | Py_INCREF(Py_None); resultobj = Py_None; | |
29180 | return resultobj; | |
29181 | fail: | |
29182 | return NULL; | |
29183 | } | |
29184 | ||
29185 | ||
29186 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29187 | PyObject *resultobj; | |
29188 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29189 | int arg2 ; | |
29190 | PyObject * obj0 = 0 ; | |
29191 | char *kwnames[] = { | |
29192 | (char *) "self",(char *) "n", NULL | |
29193 | }; | |
29194 | ||
29195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_Delete",kwnames,&obj0,&arg2)) goto fail; | |
29196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29197 | { | |
29198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29199 | (arg1)->Delete(arg2); | |
29200 | ||
29201 | wxPyEndAllowThreads(__tstate); | |
29202 | if (PyErr_Occurred()) SWIG_fail; | |
29203 | } | |
29204 | Py_INCREF(Py_None); resultobj = Py_None; | |
29205 | return resultobj; | |
29206 | fail: | |
29207 | return NULL; | |
29208 | } | |
29209 | ||
29210 | ||
29211 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29212 | PyObject *resultobj; | |
29213 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29214 | int result; | |
29215 | PyObject * obj0 = 0 ; | |
29216 | char *kwnames[] = { | |
29217 | (char *) "self", NULL | |
29218 | }; | |
29219 | ||
29220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
29221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29222 | { | |
29223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29224 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
29225 | ||
29226 | wxPyEndAllowThreads(__tstate); | |
29227 | if (PyErr_Occurred()) SWIG_fail; | |
29228 | } | |
29229 | resultobj = PyInt_FromLong((long)result); | |
29230 | return resultobj; | |
29231 | fail: | |
29232 | return NULL; | |
29233 | } | |
29234 | ||
29235 | ||
29236 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29237 | PyObject *resultobj; | |
29238 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29239 | bool result; | |
29240 | PyObject * obj0 = 0 ; | |
29241 | char *kwnames[] = { | |
29242 | (char *) "self", NULL | |
29243 | }; | |
29244 | ||
29245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
29246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29247 | { | |
29248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29249 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
29250 | ||
29251 | wxPyEndAllowThreads(__tstate); | |
29252 | if (PyErr_Occurred()) SWIG_fail; | |
29253 | } | |
29254 | resultobj = PyInt_FromLong((long)result); | |
29255 | return resultobj; | |
29256 | fail: | |
29257 | return NULL; | |
29258 | } | |
29259 | ||
29260 | ||
29261 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29262 | PyObject *resultobj; | |
29263 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29264 | int arg2 ; | |
29265 | wxString result; | |
29266 | PyObject * obj0 = 0 ; | |
29267 | char *kwnames[] = { | |
29268 | (char *) "self",(char *) "n", NULL | |
29269 | }; | |
29270 | ||
29271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_GetString",kwnames,&obj0,&arg2)) goto fail; | |
29272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29273 | { | |
29274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29275 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
29276 | ||
29277 | wxPyEndAllowThreads(__tstate); | |
29278 | if (PyErr_Occurred()) SWIG_fail; | |
29279 | } | |
29280 | { | |
29281 | #if wxUSE_UNICODE | |
29282 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29283 | #else | |
29284 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29285 | #endif | |
29286 | } | |
29287 | return resultobj; | |
29288 | fail: | |
29289 | return NULL; | |
29290 | } | |
29291 | ||
29292 | ||
29293 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29294 | PyObject *resultobj; | |
29295 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29296 | wxArrayString result; | |
29297 | PyObject * obj0 = 0 ; | |
29298 | char *kwnames[] = { | |
29299 | (char *) "self", NULL | |
29300 | }; | |
29301 | ||
29302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
29303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29304 | { | |
29305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29306 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
29307 | ||
29308 | wxPyEndAllowThreads(__tstate); | |
29309 | if (PyErr_Occurred()) SWIG_fail; | |
29310 | } | |
29311 | { | |
29312 | resultobj = wxArrayString2PyList_helper(result); | |
29313 | } | |
29314 | return resultobj; | |
29315 | fail: | |
29316 | return NULL; | |
29317 | } | |
29318 | ||
29319 | ||
29320 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29321 | PyObject *resultobj; | |
29322 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29323 | int arg2 ; | |
29324 | wxString *arg3 = 0 ; | |
29325 | bool temp3 = false ; | |
29326 | PyObject * obj0 = 0 ; | |
29327 | PyObject * obj2 = 0 ; | |
29328 | char *kwnames[] = { | |
29329 | (char *) "self",(char *) "n",(char *) "s", NULL | |
29330 | }; | |
29331 | ||
29332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ItemContainer_SetString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
29333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29334 | { | |
29335 | arg3 = wxString_in_helper(obj2); | |
29336 | if (arg3 == NULL) SWIG_fail; | |
29337 | temp3 = true; | |
29338 | } | |
29339 | { | |
29340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29341 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
29342 | ||
29343 | wxPyEndAllowThreads(__tstate); | |
29344 | if (PyErr_Occurred()) SWIG_fail; | |
29345 | } | |
29346 | Py_INCREF(Py_None); resultobj = Py_None; | |
29347 | { | |
29348 | if (temp3) | |
29349 | delete arg3; | |
29350 | } | |
29351 | return resultobj; | |
29352 | fail: | |
29353 | { | |
29354 | if (temp3) | |
29355 | delete arg3; | |
29356 | } | |
29357 | return NULL; | |
29358 | } | |
29359 | ||
29360 | ||
29361 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29362 | PyObject *resultobj; | |
29363 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29364 | wxString *arg2 = 0 ; | |
29365 | int result; | |
29366 | bool temp2 = false ; | |
29367 | PyObject * obj0 = 0 ; | |
29368 | PyObject * obj1 = 0 ; | |
29369 | char *kwnames[] = { | |
29370 | (char *) "self",(char *) "s", NULL | |
29371 | }; | |
29372 | ||
29373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
29374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29375 | { | |
29376 | arg2 = wxString_in_helper(obj1); | |
29377 | if (arg2 == NULL) SWIG_fail; | |
29378 | temp2 = true; | |
29379 | } | |
29380 | { | |
29381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29382 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
29383 | ||
29384 | wxPyEndAllowThreads(__tstate); | |
29385 | if (PyErr_Occurred()) SWIG_fail; | |
29386 | } | |
29387 | resultobj = PyInt_FromLong((long)result); | |
29388 | { | |
29389 | if (temp2) | |
29390 | delete arg2; | |
29391 | } | |
29392 | return resultobj; | |
29393 | fail: | |
29394 | { | |
29395 | if (temp2) | |
29396 | delete arg2; | |
29397 | } | |
29398 | return NULL; | |
29399 | } | |
29400 | ||
29401 | ||
29402 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29403 | PyObject *resultobj; | |
29404 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29405 | int arg2 ; | |
29406 | PyObject * obj0 = 0 ; | |
29407 | char *kwnames[] = { | |
29408 | (char *) "self",(char *) "n", NULL | |
29409 | }; | |
29410 | ||
29411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_Select",kwnames,&obj0,&arg2)) goto fail; | |
29412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29413 | { | |
29414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29415 | (arg1)->Select(arg2); | |
29416 | ||
29417 | wxPyEndAllowThreads(__tstate); | |
29418 | if (PyErr_Occurred()) SWIG_fail; | |
29419 | } | |
29420 | Py_INCREF(Py_None); resultobj = Py_None; | |
29421 | return resultobj; | |
29422 | fail: | |
29423 | return NULL; | |
29424 | } | |
29425 | ||
29426 | ||
29427 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29428 | PyObject *resultobj; | |
29429 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29430 | int result; | |
29431 | PyObject * obj0 = 0 ; | |
29432 | char *kwnames[] = { | |
29433 | (char *) "self", NULL | |
29434 | }; | |
29435 | ||
29436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
29437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29438 | { | |
29439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29440 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
29441 | ||
29442 | wxPyEndAllowThreads(__tstate); | |
29443 | if (PyErr_Occurred()) SWIG_fail; | |
29444 | } | |
29445 | resultobj = PyInt_FromLong((long)result); | |
29446 | return resultobj; | |
29447 | fail: | |
29448 | return NULL; | |
29449 | } | |
29450 | ||
29451 | ||
29452 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29453 | PyObject *resultobj; | |
29454 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29455 | wxString result; | |
29456 | PyObject * obj0 = 0 ; | |
29457 | char *kwnames[] = { | |
29458 | (char *) "self", NULL | |
29459 | }; | |
29460 | ||
29461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
29462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29463 | { | |
29464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29465 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
29466 | ||
29467 | wxPyEndAllowThreads(__tstate); | |
29468 | if (PyErr_Occurred()) SWIG_fail; | |
29469 | } | |
29470 | { | |
29471 | #if wxUSE_UNICODE | |
29472 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29473 | #else | |
29474 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29475 | #endif | |
29476 | } | |
29477 | return resultobj; | |
29478 | fail: | |
29479 | return NULL; | |
29480 | } | |
29481 | ||
29482 | ||
29483 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29484 | PyObject *resultobj; | |
29485 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29486 | int arg2 ; | |
29487 | PyObject *result; | |
29488 | PyObject * obj0 = 0 ; | |
29489 | char *kwnames[] = { | |
29490 | (char *) "self",(char *) "n", NULL | |
29491 | }; | |
29492 | ||
29493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_GetClientData",kwnames,&obj0,&arg2)) goto fail; | |
29494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29495 | { | |
29496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29497 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
29498 | ||
29499 | wxPyEndAllowThreads(__tstate); | |
29500 | if (PyErr_Occurred()) SWIG_fail; | |
29501 | } | |
29502 | resultobj = result; | |
29503 | return resultobj; | |
29504 | fail: | |
29505 | return NULL; | |
29506 | } | |
29507 | ||
29508 | ||
29509 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29510 | PyObject *resultobj; | |
29511 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29512 | int arg2 ; | |
29513 | PyObject *arg3 = (PyObject *) 0 ; | |
29514 | PyObject * obj0 = 0 ; | |
29515 | PyObject * obj2 = 0 ; | |
29516 | char *kwnames[] = { | |
29517 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
29518 | }; | |
29519 | ||
29520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ItemContainer_SetClientData",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
29521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29522 | arg3 = obj2; | |
29523 | { | |
29524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29525 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
29526 | ||
29527 | wxPyEndAllowThreads(__tstate); | |
29528 | if (PyErr_Occurred()) SWIG_fail; | |
29529 | } | |
29530 | Py_INCREF(Py_None); resultobj = Py_None; | |
29531 | return resultobj; | |
29532 | fail: | |
29533 | return NULL; | |
29534 | } | |
29535 | ||
29536 | ||
29537 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
29538 | PyObject *obj; | |
29539 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29540 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
29541 | Py_INCREF(obj); | |
29542 | return Py_BuildValue((char *)""); | |
29543 | } | |
29544 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
29545 | PyObject *obj; | |
29546 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29547 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
29548 | Py_INCREF(obj); | |
29549 | return Py_BuildValue((char *)""); | |
29550 | } | |
29551 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29552 | PyObject *resultobj; | |
29553 | wxSizerItem *result; | |
29554 | char *kwnames[] = { | |
29555 | NULL | |
29556 | }; | |
29557 | ||
29558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
29559 | { | |
29560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29561 | result = (wxSizerItem *)new wxSizerItem(); | |
29562 | ||
29563 | wxPyEndAllowThreads(__tstate); | |
29564 | if (PyErr_Occurred()) SWIG_fail; | |
29565 | } | |
29566 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
29567 | return resultobj; | |
29568 | fail: | |
29569 | return NULL; | |
29570 | } | |
29571 | ||
29572 | ||
29573 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29574 | PyObject *resultobj; | |
29575 | int arg1 ; | |
29576 | int arg2 ; | |
29577 | int arg3 ; | |
29578 | int arg4 ; | |
29579 | int arg5 ; | |
29580 | wxObject *arg6 = (wxObject *) 0 ; | |
29581 | wxSizerItem *result; | |
29582 | PyObject * obj5 = 0 ; | |
29583 | char *kwnames[] = { | |
29584 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
29585 | }; | |
29586 | ||
29587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiiiiO:new_SizerItemSpacer",kwnames,&arg1,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
29588 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29589 | { | |
29590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29591 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
29592 | ||
29593 | wxPyEndAllowThreads(__tstate); | |
29594 | if (PyErr_Occurred()) SWIG_fail; | |
29595 | } | |
29596 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
29597 | return resultobj; | |
29598 | fail: | |
29599 | return NULL; | |
29600 | } | |
29601 | ||
29602 | ||
29603 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29604 | PyObject *resultobj; | |
29605 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29606 | int arg2 ; | |
29607 | int arg3 ; | |
29608 | int arg4 ; | |
29609 | wxObject *arg5 = (wxObject *) 0 ; | |
29610 | wxSizerItem *result; | |
29611 | PyObject * obj0 = 0 ; | |
29612 | PyObject * obj4 = 0 ; | |
29613 | char *kwnames[] = { | |
29614 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
29615 | }; | |
29616 | ||
29617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiO:new_SizerItemWindow",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
29618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29619 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29620 | { | |
29621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29622 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
29623 | ||
29624 | wxPyEndAllowThreads(__tstate); | |
29625 | if (PyErr_Occurred()) SWIG_fail; | |
29626 | } | |
29627 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
29628 | return resultobj; | |
29629 | fail: | |
29630 | return NULL; | |
29631 | } | |
29632 | ||
29633 | ||
29634 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29635 | PyObject *resultobj; | |
29636 | wxSizer *arg1 = (wxSizer *) 0 ; | |
29637 | int arg2 ; | |
29638 | int arg3 ; | |
29639 | int arg4 ; | |
29640 | wxObject *arg5 = (wxObject *) 0 ; | |
29641 | wxSizerItem *result; | |
29642 | PyObject * obj0 = 0 ; | |
29643 | PyObject * obj4 = 0 ; | |
29644 | char *kwnames[] = { | |
29645 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
29646 | }; | |
29647 | ||
29648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiO:new_SizerItemSizer",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
29649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29650 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29651 | { | |
29652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29653 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
29654 | ||
29655 | wxPyEndAllowThreads(__tstate); | |
29656 | if (PyErr_Occurred()) SWIG_fail; | |
29657 | } | |
29658 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
29659 | return resultobj; | |
29660 | fail: | |
29661 | return NULL; | |
29662 | } | |
29663 | ||
29664 | ||
29665 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29666 | PyObject *resultobj; | |
29667 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29668 | PyObject * obj0 = 0 ; | |
29669 | char *kwnames[] = { | |
29670 | (char *) "self", NULL | |
29671 | }; | |
29672 | ||
29673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
29674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29675 | { | |
29676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29677 | (arg1)->DeleteWindows(); | |
29678 | ||
29679 | wxPyEndAllowThreads(__tstate); | |
29680 | if (PyErr_Occurred()) SWIG_fail; | |
29681 | } | |
29682 | Py_INCREF(Py_None); resultobj = Py_None; | |
29683 | return resultobj; | |
29684 | fail: | |
29685 | return NULL; | |
29686 | } | |
29687 | ||
29688 | ||
29689 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29690 | PyObject *resultobj; | |
29691 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29692 | PyObject * obj0 = 0 ; | |
29693 | char *kwnames[] = { | |
29694 | (char *) "self", NULL | |
29695 | }; | |
29696 | ||
29697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
29698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29699 | { | |
29700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29701 | (arg1)->DetachSizer(); | |
29702 | ||
29703 | wxPyEndAllowThreads(__tstate); | |
29704 | if (PyErr_Occurred()) SWIG_fail; | |
29705 | } | |
29706 | Py_INCREF(Py_None); resultobj = Py_None; | |
29707 | return resultobj; | |
29708 | fail: | |
29709 | return NULL; | |
29710 | } | |
29711 | ||
29712 | ||
29713 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29714 | PyObject *resultobj; | |
29715 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29716 | wxSize result; | |
29717 | PyObject * obj0 = 0 ; | |
29718 | char *kwnames[] = { | |
29719 | (char *) "self", NULL | |
29720 | }; | |
29721 | ||
29722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
29723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29724 | { | |
29725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29726 | result = (arg1)->GetSize(); | |
29727 | ||
29728 | wxPyEndAllowThreads(__tstate); | |
29729 | if (PyErr_Occurred()) SWIG_fail; | |
29730 | } | |
29731 | { | |
29732 | wxSize * resultptr; | |
29733 | resultptr = new wxSize((wxSize &) result); | |
29734 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
29735 | } | |
29736 | return resultobj; | |
29737 | fail: | |
29738 | return NULL; | |
29739 | } | |
29740 | ||
29741 | ||
29742 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29743 | PyObject *resultobj; | |
29744 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29745 | wxSize result; | |
29746 | PyObject * obj0 = 0 ; | |
29747 | char *kwnames[] = { | |
29748 | (char *) "self", NULL | |
29749 | }; | |
29750 | ||
29751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
29752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29753 | { | |
29754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29755 | result = (arg1)->CalcMin(); | |
29756 | ||
29757 | wxPyEndAllowThreads(__tstate); | |
29758 | if (PyErr_Occurred()) SWIG_fail; | |
29759 | } | |
29760 | { | |
29761 | wxSize * resultptr; | |
29762 | resultptr = new wxSize((wxSize &) result); | |
29763 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
29764 | } | |
29765 | return resultobj; | |
29766 | fail: | |
29767 | return NULL; | |
29768 | } | |
29769 | ||
29770 | ||
29771 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29772 | PyObject *resultobj; | |
29773 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29774 | wxPoint arg2 ; | |
29775 | wxSize arg3 ; | |
29776 | wxPoint *argp2 ; | |
29777 | wxSize *argp3 ; | |
29778 | PyObject * obj0 = 0 ; | |
29779 | PyObject * obj1 = 0 ; | |
29780 | PyObject * obj2 = 0 ; | |
29781 | char *kwnames[] = { | |
29782 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
29783 | }; | |
29784 | ||
29785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29787 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
29788 | arg2 = *argp2; | |
29789 | if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
29790 | arg3 = *argp3; | |
29791 | { | |
29792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29793 | (arg1)->SetDimension(arg2,arg3); | |
29794 | ||
29795 | wxPyEndAllowThreads(__tstate); | |
29796 | if (PyErr_Occurred()) SWIG_fail; | |
29797 | } | |
29798 | Py_INCREF(Py_None); resultobj = Py_None; | |
29799 | return resultobj; | |
29800 | fail: | |
29801 | return NULL; | |
29802 | } | |
29803 | ||
29804 | ||
29805 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29806 | PyObject *resultobj; | |
29807 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29808 | wxSize result; | |
29809 | PyObject * obj0 = 0 ; | |
29810 | char *kwnames[] = { | |
29811 | (char *) "self", NULL | |
29812 | }; | |
29813 | ||
29814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
29815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29816 | { | |
29817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29818 | result = (arg1)->GetMinSize(); | |
29819 | ||
29820 | wxPyEndAllowThreads(__tstate); | |
29821 | if (PyErr_Occurred()) SWIG_fail; | |
29822 | } | |
29823 | { | |
29824 | wxSize * resultptr; | |
29825 | resultptr = new wxSize((wxSize &) result); | |
29826 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
29827 | } | |
29828 | return resultobj; | |
29829 | fail: | |
29830 | return NULL; | |
29831 | } | |
29832 | ||
29833 | ||
29834 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29835 | PyObject *resultobj; | |
29836 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29837 | int arg2 ; | |
29838 | int arg3 ; | |
29839 | PyObject * obj0 = 0 ; | |
29840 | char *kwnames[] = { | |
29841 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29842 | }; | |
29843 | ||
29844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SizerItem_SetInitSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
29845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29846 | { | |
29847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29848 | (arg1)->SetInitSize(arg2,arg3); | |
29849 | ||
29850 | wxPyEndAllowThreads(__tstate); | |
29851 | if (PyErr_Occurred()) SWIG_fail; | |
29852 | } | |
29853 | Py_INCREF(Py_None); resultobj = Py_None; | |
29854 | return resultobj; | |
29855 | fail: | |
29856 | return NULL; | |
29857 | } | |
29858 | ||
29859 | ||
29860 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29861 | PyObject *resultobj; | |
29862 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29863 | int arg2 ; | |
29864 | int arg3 ; | |
29865 | PyObject * obj0 = 0 ; | |
29866 | char *kwnames[] = { | |
29867 | (char *) "self",(char *) "width",(char *) "height", NULL | |
29868 | }; | |
29869 | ||
29870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SizerItem_SetRatioWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
29871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29872 | { | |
29873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29874 | (arg1)->SetRatio(arg2,arg3); | |
29875 | ||
29876 | wxPyEndAllowThreads(__tstate); | |
29877 | if (PyErr_Occurred()) SWIG_fail; | |
29878 | } | |
29879 | Py_INCREF(Py_None); resultobj = Py_None; | |
29880 | return resultobj; | |
29881 | fail: | |
29882 | return NULL; | |
29883 | } | |
29884 | ||
29885 | ||
29886 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29887 | PyObject *resultobj; | |
29888 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29889 | wxSize arg2 ; | |
29890 | wxSize *argp2 ; | |
29891 | PyObject * obj0 = 0 ; | |
29892 | PyObject * obj1 = 0 ; | |
29893 | char *kwnames[] = { | |
29894 | (char *) "self",(char *) "size", NULL | |
29895 | }; | |
29896 | ||
29897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
29898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29899 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
29900 | arg2 = *argp2; | |
29901 | { | |
29902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29903 | (arg1)->SetRatio(arg2); | |
29904 | ||
29905 | wxPyEndAllowThreads(__tstate); | |
29906 | if (PyErr_Occurred()) SWIG_fail; | |
29907 | } | |
29908 | Py_INCREF(Py_None); resultobj = Py_None; | |
29909 | return resultobj; | |
29910 | fail: | |
29911 | return NULL; | |
29912 | } | |
29913 | ||
29914 | ||
29915 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29916 | PyObject *resultobj; | |
29917 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29918 | float arg2 ; | |
29919 | PyObject * obj0 = 0 ; | |
29920 | char *kwnames[] = { | |
29921 | (char *) "self",(char *) "ratio", NULL | |
29922 | }; | |
29923 | ||
29924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Of:SizerItem_SetRatio",kwnames,&obj0,&arg2)) goto fail; | |
29925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29926 | { | |
29927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29928 | (arg1)->SetRatio(arg2); | |
29929 | ||
29930 | wxPyEndAllowThreads(__tstate); | |
29931 | if (PyErr_Occurred()) SWIG_fail; | |
29932 | } | |
29933 | Py_INCREF(Py_None); resultobj = Py_None; | |
29934 | return resultobj; | |
29935 | fail: | |
29936 | return NULL; | |
29937 | } | |
29938 | ||
29939 | ||
29940 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29941 | PyObject *resultobj; | |
29942 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29943 | float result; | |
29944 | PyObject * obj0 = 0 ; | |
29945 | char *kwnames[] = { | |
29946 | (char *) "self", NULL | |
29947 | }; | |
29948 | ||
29949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
29950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29951 | { | |
29952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29953 | result = (float)(arg1)->GetRatio(); | |
29954 | ||
29955 | wxPyEndAllowThreads(__tstate); | |
29956 | if (PyErr_Occurred()) SWIG_fail; | |
29957 | } | |
29958 | resultobj = PyFloat_FromDouble(result); | |
29959 | return resultobj; | |
29960 | fail: | |
29961 | return NULL; | |
29962 | } | |
29963 | ||
29964 | ||
29965 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29966 | PyObject *resultobj; | |
29967 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29968 | bool result; | |
29969 | PyObject * obj0 = 0 ; | |
29970 | char *kwnames[] = { | |
29971 | (char *) "self", NULL | |
29972 | }; | |
29973 | ||
29974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
29975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29976 | { | |
29977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29978 | result = (bool)(arg1)->IsWindow(); | |
29979 | ||
29980 | wxPyEndAllowThreads(__tstate); | |
29981 | if (PyErr_Occurred()) SWIG_fail; | |
29982 | } | |
29983 | resultobj = PyInt_FromLong((long)result); | |
29984 | return resultobj; | |
29985 | fail: | |
29986 | return NULL; | |
29987 | } | |
29988 | ||
29989 | ||
29990 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29991 | PyObject *resultobj; | |
29992 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29993 | bool result; | |
29994 | PyObject * obj0 = 0 ; | |
29995 | char *kwnames[] = { | |
29996 | (char *) "self", NULL | |
29997 | }; | |
29998 | ||
29999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
30000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30001 | { | |
30002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30003 | result = (bool)(arg1)->IsSizer(); | |
30004 | ||
30005 | wxPyEndAllowThreads(__tstate); | |
30006 | if (PyErr_Occurred()) SWIG_fail; | |
30007 | } | |
30008 | resultobj = PyInt_FromLong((long)result); | |
30009 | return resultobj; | |
30010 | fail: | |
30011 | return NULL; | |
30012 | } | |
30013 | ||
30014 | ||
30015 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30016 | PyObject *resultobj; | |
30017 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30018 | bool result; | |
30019 | PyObject * obj0 = 0 ; | |
30020 | char *kwnames[] = { | |
30021 | (char *) "self", NULL | |
30022 | }; | |
30023 | ||
30024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
30025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30026 | { | |
30027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30028 | result = (bool)(arg1)->IsSpacer(); | |
30029 | ||
30030 | wxPyEndAllowThreads(__tstate); | |
30031 | if (PyErr_Occurred()) SWIG_fail; | |
30032 | } | |
30033 | resultobj = PyInt_FromLong((long)result); | |
30034 | return resultobj; | |
30035 | fail: | |
30036 | return NULL; | |
30037 | } | |
30038 | ||
30039 | ||
30040 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30041 | PyObject *resultobj; | |
30042 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30043 | int arg2 ; | |
30044 | PyObject * obj0 = 0 ; | |
30045 | char *kwnames[] = { | |
30046 | (char *) "self",(char *) "proportion", NULL | |
30047 | }; | |
30048 | ||
30049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SizerItem_SetProportion",kwnames,&obj0,&arg2)) goto fail; | |
30050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30051 | { | |
30052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30053 | (arg1)->SetProportion(arg2); | |
30054 | ||
30055 | wxPyEndAllowThreads(__tstate); | |
30056 | if (PyErr_Occurred()) SWIG_fail; | |
30057 | } | |
30058 | Py_INCREF(Py_None); resultobj = Py_None; | |
30059 | return resultobj; | |
30060 | fail: | |
30061 | return NULL; | |
30062 | } | |
30063 | ||
30064 | ||
30065 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30066 | PyObject *resultobj; | |
30067 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30068 | int result; | |
30069 | PyObject * obj0 = 0 ; | |
30070 | char *kwnames[] = { | |
30071 | (char *) "self", NULL | |
30072 | }; | |
30073 | ||
30074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
30075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30076 | { | |
30077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30078 | result = (int)(arg1)->GetProportion(); | |
30079 | ||
30080 | wxPyEndAllowThreads(__tstate); | |
30081 | if (PyErr_Occurred()) SWIG_fail; | |
30082 | } | |
30083 | resultobj = PyInt_FromLong((long)result); | |
30084 | return resultobj; | |
30085 | fail: | |
30086 | return NULL; | |
30087 | } | |
30088 | ||
30089 | ||
30090 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30091 | PyObject *resultobj; | |
30092 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30093 | int arg2 ; | |
30094 | PyObject * obj0 = 0 ; | |
30095 | char *kwnames[] = { | |
30096 | (char *) "self",(char *) "flag", NULL | |
30097 | }; | |
30098 | ||
30099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SizerItem_SetFlag",kwnames,&obj0,&arg2)) goto fail; | |
30100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30101 | { | |
30102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30103 | (arg1)->SetFlag(arg2); | |
30104 | ||
30105 | wxPyEndAllowThreads(__tstate); | |
30106 | if (PyErr_Occurred()) SWIG_fail; | |
30107 | } | |
30108 | Py_INCREF(Py_None); resultobj = Py_None; | |
30109 | return resultobj; | |
30110 | fail: | |
30111 | return NULL; | |
30112 | } | |
30113 | ||
30114 | ||
30115 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30116 | PyObject *resultobj; | |
30117 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30118 | int result; | |
30119 | PyObject * obj0 = 0 ; | |
30120 | char *kwnames[] = { | |
30121 | (char *) "self", NULL | |
30122 | }; | |
30123 | ||
30124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
30125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30126 | { | |
30127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30128 | result = (int)(arg1)->GetFlag(); | |
30129 | ||
30130 | wxPyEndAllowThreads(__tstate); | |
30131 | if (PyErr_Occurred()) SWIG_fail; | |
30132 | } | |
30133 | resultobj = PyInt_FromLong((long)result); | |
30134 | return resultobj; | |
30135 | fail: | |
30136 | return NULL; | |
30137 | } | |
30138 | ||
30139 | ||
30140 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30141 | PyObject *resultobj; | |
30142 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30143 | int arg2 ; | |
30144 | PyObject * obj0 = 0 ; | |
30145 | char *kwnames[] = { | |
30146 | (char *) "self",(char *) "border", NULL | |
30147 | }; | |
30148 | ||
30149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SizerItem_SetBorder",kwnames,&obj0,&arg2)) goto fail; | |
30150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30151 | { | |
30152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30153 | (arg1)->SetBorder(arg2); | |
30154 | ||
30155 | wxPyEndAllowThreads(__tstate); | |
30156 | if (PyErr_Occurred()) SWIG_fail; | |
30157 | } | |
30158 | Py_INCREF(Py_None); resultobj = Py_None; | |
30159 | return resultobj; | |
30160 | fail: | |
30161 | return NULL; | |
30162 | } | |
30163 | ||
30164 | ||
30165 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30166 | PyObject *resultobj; | |
30167 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30168 | int result; | |
30169 | PyObject * obj0 = 0 ; | |
30170 | char *kwnames[] = { | |
30171 | (char *) "self", NULL | |
30172 | }; | |
30173 | ||
30174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
30175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30176 | { | |
30177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30178 | result = (int)(arg1)->GetBorder(); | |
30179 | ||
30180 | wxPyEndAllowThreads(__tstate); | |
30181 | if (PyErr_Occurred()) SWIG_fail; | |
30182 | } | |
30183 | resultobj = PyInt_FromLong((long)result); | |
30184 | return resultobj; | |
30185 | fail: | |
30186 | return NULL; | |
30187 | } | |
30188 | ||
30189 | ||
30190 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30191 | PyObject *resultobj; | |
30192 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30193 | wxWindow *result; | |
30194 | PyObject * obj0 = 0 ; | |
30195 | char *kwnames[] = { | |
30196 | (char *) "self", NULL | |
30197 | }; | |
30198 | ||
30199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
30200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30201 | { | |
30202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30203 | result = (wxWindow *)(arg1)->GetWindow(); | |
30204 | ||
30205 | wxPyEndAllowThreads(__tstate); | |
30206 | if (PyErr_Occurred()) SWIG_fail; | |
30207 | } | |
30208 | { | |
30209 | resultobj = wxPyMake_wxObject(result); | |
30210 | } | |
30211 | return resultobj; | |
30212 | fail: | |
30213 | return NULL; | |
30214 | } | |
30215 | ||
30216 | ||
30217 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30218 | PyObject *resultobj; | |
30219 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30220 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30221 | PyObject * obj0 = 0 ; | |
30222 | PyObject * obj1 = 0 ; | |
30223 | char *kwnames[] = { | |
30224 | (char *) "self",(char *) "window", NULL | |
30225 | }; | |
30226 | ||
30227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
30228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30229 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30230 | { | |
30231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30232 | (arg1)->SetWindow(arg2); | |
30233 | ||
30234 | wxPyEndAllowThreads(__tstate); | |
30235 | if (PyErr_Occurred()) SWIG_fail; | |
30236 | } | |
30237 | Py_INCREF(Py_None); resultobj = Py_None; | |
30238 | return resultobj; | |
30239 | fail: | |
30240 | return NULL; | |
30241 | } | |
30242 | ||
30243 | ||
30244 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30245 | PyObject *resultobj; | |
30246 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30247 | wxSizer *result; | |
30248 | PyObject * obj0 = 0 ; | |
30249 | char *kwnames[] = { | |
30250 | (char *) "self", NULL | |
30251 | }; | |
30252 | ||
30253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
30254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30255 | { | |
30256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30257 | result = (wxSizer *)(arg1)->GetSizer(); | |
30258 | ||
30259 | wxPyEndAllowThreads(__tstate); | |
30260 | if (PyErr_Occurred()) SWIG_fail; | |
30261 | } | |
30262 | { | |
30263 | resultobj = wxPyMake_wxSizer(result); | |
30264 | } | |
30265 | return resultobj; | |
30266 | fail: | |
30267 | return NULL; | |
30268 | } | |
30269 | ||
30270 | ||
30271 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30272 | PyObject *resultobj; | |
30273 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30274 | wxSizer *arg2 = (wxSizer *) 0 ; | |
30275 | PyObject * obj0 = 0 ; | |
30276 | PyObject * obj1 = 0 ; | |
30277 | char *kwnames[] = { | |
30278 | (char *) "self",(char *) "sizer", NULL | |
30279 | }; | |
30280 | ||
30281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
30282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30283 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30284 | { | |
30285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30286 | (arg1)->SetSizer(arg2); | |
30287 | ||
30288 | wxPyEndAllowThreads(__tstate); | |
30289 | if (PyErr_Occurred()) SWIG_fail; | |
30290 | } | |
30291 | Py_INCREF(Py_None); resultobj = Py_None; | |
30292 | return resultobj; | |
30293 | fail: | |
30294 | return NULL; | |
30295 | } | |
30296 | ||
30297 | ||
30298 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30299 | PyObject *resultobj; | |
30300 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30301 | wxSize *result; | |
30302 | PyObject * obj0 = 0 ; | |
30303 | char *kwnames[] = { | |
30304 | (char *) "self", NULL | |
30305 | }; | |
30306 | ||
30307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
30308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30309 | { | |
30310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30311 | { | |
30312 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
30313 | result = (wxSize *) &_result_ref; | |
30314 | } | |
30315 | ||
30316 | wxPyEndAllowThreads(__tstate); | |
30317 | if (PyErr_Occurred()) SWIG_fail; | |
30318 | } | |
30319 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
30320 | return resultobj; | |
30321 | fail: | |
30322 | return NULL; | |
30323 | } | |
30324 | ||
30325 | ||
30326 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30327 | PyObject *resultobj; | |
30328 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30329 | wxSize *arg2 = 0 ; | |
30330 | wxSize temp2 ; | |
30331 | PyObject * obj0 = 0 ; | |
30332 | PyObject * obj1 = 0 ; | |
30333 | char *kwnames[] = { | |
30334 | (char *) "self",(char *) "size", NULL | |
30335 | }; | |
30336 | ||
30337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
30338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30339 | { | |
30340 | arg2 = &temp2; | |
30341 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
30342 | } | |
30343 | { | |
30344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30345 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
30346 | ||
30347 | wxPyEndAllowThreads(__tstate); | |
30348 | if (PyErr_Occurred()) SWIG_fail; | |
30349 | } | |
30350 | Py_INCREF(Py_None); resultobj = Py_None; | |
30351 | return resultobj; | |
30352 | fail: | |
30353 | return NULL; | |
30354 | } | |
30355 | ||
30356 | ||
30357 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30358 | PyObject *resultobj; | |
30359 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30360 | bool arg2 ; | |
30361 | PyObject * obj0 = 0 ; | |
30362 | PyObject * obj1 = 0 ; | |
30363 | char *kwnames[] = { | |
30364 | (char *) "self",(char *) "show", NULL | |
30365 | }; | |
30366 | ||
30367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
30368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30369 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
30370 | if (PyErr_Occurred()) SWIG_fail; | |
30371 | { | |
30372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30373 | (arg1)->Show(arg2); | |
30374 | ||
30375 | wxPyEndAllowThreads(__tstate); | |
30376 | if (PyErr_Occurred()) SWIG_fail; | |
30377 | } | |
30378 | Py_INCREF(Py_None); resultobj = Py_None; | |
30379 | return resultobj; | |
30380 | fail: | |
30381 | return NULL; | |
30382 | } | |
30383 | ||
30384 | ||
30385 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30386 | PyObject *resultobj; | |
30387 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30388 | bool result; | |
30389 | PyObject * obj0 = 0 ; | |
30390 | char *kwnames[] = { | |
30391 | (char *) "self", NULL | |
30392 | }; | |
30393 | ||
30394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
30395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30396 | { | |
30397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30398 | result = (bool)(arg1)->IsShown(); | |
30399 | ||
30400 | wxPyEndAllowThreads(__tstate); | |
30401 | if (PyErr_Occurred()) SWIG_fail; | |
30402 | } | |
30403 | resultobj = PyInt_FromLong((long)result); | |
30404 | return resultobj; | |
30405 | fail: | |
30406 | return NULL; | |
30407 | } | |
30408 | ||
30409 | ||
30410 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30411 | PyObject *resultobj; | |
30412 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30413 | wxPoint result; | |
30414 | PyObject * obj0 = 0 ; | |
30415 | char *kwnames[] = { | |
30416 | (char *) "self", NULL | |
30417 | }; | |
30418 | ||
30419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
30420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30421 | { | |
30422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30423 | result = (arg1)->GetPosition(); | |
30424 | ||
30425 | wxPyEndAllowThreads(__tstate); | |
30426 | if (PyErr_Occurred()) SWIG_fail; | |
30427 | } | |
30428 | { | |
30429 | wxPoint * resultptr; | |
30430 | resultptr = new wxPoint((wxPoint &) result); | |
30431 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
30432 | } | |
30433 | return resultobj; | |
30434 | fail: | |
30435 | return NULL; | |
30436 | } | |
30437 | ||
30438 | ||
30439 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30440 | PyObject *resultobj; | |
30441 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30442 | PyObject *result; | |
30443 | PyObject * obj0 = 0 ; | |
30444 | char *kwnames[] = { | |
30445 | (char *) "self", NULL | |
30446 | }; | |
30447 | ||
30448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
30449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30450 | { | |
30451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30452 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
30453 | ||
30454 | wxPyEndAllowThreads(__tstate); | |
30455 | if (PyErr_Occurred()) SWIG_fail; | |
30456 | } | |
30457 | resultobj = result; | |
30458 | return resultobj; | |
30459 | fail: | |
30460 | return NULL; | |
30461 | } | |
30462 | ||
30463 | ||
30464 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
30465 | PyObject *obj; | |
30466 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30467 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
30468 | Py_INCREF(obj); | |
30469 | return Py_BuildValue((char *)""); | |
30470 | } | |
30471 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30472 | PyObject *resultobj; | |
30473 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30474 | PyObject *arg2 = (PyObject *) 0 ; | |
30475 | PyObject * obj0 = 0 ; | |
30476 | PyObject * obj1 = 0 ; | |
30477 | char *kwnames[] = { | |
30478 | (char *) "self",(char *) "_self", NULL | |
30479 | }; | |
30480 | ||
30481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
30482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30483 | arg2 = obj1; | |
30484 | { | |
30485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30486 | wxSizer__setOORInfo(arg1,arg2); | |
30487 | ||
30488 | wxPyEndAllowThreads(__tstate); | |
30489 | if (PyErr_Occurred()) SWIG_fail; | |
30490 | } | |
30491 | Py_INCREF(Py_None); resultobj = Py_None; | |
30492 | return resultobj; | |
30493 | fail: | |
30494 | return NULL; | |
30495 | } | |
30496 | ||
30497 | ||
30498 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30499 | PyObject *resultobj; | |
30500 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30501 | PyObject *arg2 = (PyObject *) 0 ; | |
30502 | int arg3 = (int) 0 ; | |
30503 | int arg4 = (int) 0 ; | |
30504 | int arg5 = (int) 0 ; | |
30505 | PyObject *arg6 = (PyObject *) NULL ; | |
30506 | PyObject * obj0 = 0 ; | |
30507 | PyObject * obj1 = 0 ; | |
30508 | PyObject * obj5 = 0 ; | |
30509 | char *kwnames[] = { | |
30510 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30511 | }; | |
30512 | ||
30513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiiO:Sizer_Add",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
30514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30515 | arg2 = obj1; | |
30516 | if (obj5) { | |
30517 | arg6 = obj5; | |
30518 | } | |
30519 | { | |
30520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30521 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
30522 | ||
30523 | wxPyEndAllowThreads(__tstate); | |
30524 | if (PyErr_Occurred()) SWIG_fail; | |
30525 | } | |
30526 | Py_INCREF(Py_None); resultobj = Py_None; | |
30527 | return resultobj; | |
30528 | fail: | |
30529 | return NULL; | |
30530 | } | |
30531 | ||
30532 | ||
30533 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30534 | PyObject *resultobj; | |
30535 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30536 | int arg2 ; | |
30537 | PyObject *arg3 = (PyObject *) 0 ; | |
30538 | int arg4 = (int) 0 ; | |
30539 | int arg5 = (int) 0 ; | |
30540 | int arg6 = (int) 0 ; | |
30541 | PyObject *arg7 = (PyObject *) NULL ; | |
30542 | PyObject * obj0 = 0 ; | |
30543 | PyObject * obj2 = 0 ; | |
30544 | PyObject * obj6 = 0 ; | |
30545 | char *kwnames[] = { | |
30546 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30547 | }; | |
30548 | ||
30549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|iiiO:Sizer_Insert",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
30550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30551 | arg3 = obj2; | |
30552 | if (obj6) { | |
30553 | arg7 = obj6; | |
30554 | } | |
30555 | { | |
30556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30557 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
30558 | ||
30559 | wxPyEndAllowThreads(__tstate); | |
30560 | if (PyErr_Occurred()) SWIG_fail; | |
30561 | } | |
30562 | Py_INCREF(Py_None); resultobj = Py_None; | |
30563 | return resultobj; | |
30564 | fail: | |
30565 | return NULL; | |
30566 | } | |
30567 | ||
30568 | ||
30569 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30570 | PyObject *resultobj; | |
30571 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30572 | PyObject *arg2 = (PyObject *) 0 ; | |
30573 | int arg3 = (int) 0 ; | |
30574 | int arg4 = (int) 0 ; | |
30575 | int arg5 = (int) 0 ; | |
30576 | PyObject *arg6 = (PyObject *) NULL ; | |
30577 | PyObject * obj0 = 0 ; | |
30578 | PyObject * obj1 = 0 ; | |
30579 | PyObject * obj5 = 0 ; | |
30580 | char *kwnames[] = { | |
30581 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30582 | }; | |
30583 | ||
30584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiiO:Sizer_Prepend",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
30585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30586 | arg2 = obj1; | |
30587 | if (obj5) { | |
30588 | arg6 = obj5; | |
30589 | } | |
30590 | { | |
30591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30592 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
30593 | ||
30594 | wxPyEndAllowThreads(__tstate); | |
30595 | if (PyErr_Occurred()) SWIG_fail; | |
30596 | } | |
30597 | Py_INCREF(Py_None); resultobj = Py_None; | |
30598 | return resultobj; | |
30599 | fail: | |
30600 | return NULL; | |
30601 | } | |
30602 | ||
30603 | ||
30604 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30605 | PyObject *resultobj; | |
30606 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30607 | PyObject *arg2 = (PyObject *) 0 ; | |
30608 | bool result; | |
30609 | PyObject * obj0 = 0 ; | |
30610 | PyObject * obj1 = 0 ; | |
30611 | char *kwnames[] = { | |
30612 | (char *) "self",(char *) "item", NULL | |
30613 | }; | |
30614 | ||
30615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
30616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30617 | arg2 = obj1; | |
30618 | { | |
30619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30620 | result = (bool)wxSizer_Remove(arg1,arg2); | |
30621 | ||
30622 | wxPyEndAllowThreads(__tstate); | |
30623 | if (PyErr_Occurred()) SWIG_fail; | |
30624 | } | |
30625 | resultobj = PyInt_FromLong((long)result); | |
30626 | return resultobj; | |
30627 | fail: | |
30628 | return NULL; | |
30629 | } | |
30630 | ||
30631 | ||
30632 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30633 | PyObject *resultobj; | |
30634 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30635 | PyObject *arg2 = (PyObject *) 0 ; | |
30636 | wxSize arg3 ; | |
30637 | wxSize *argp3 ; | |
30638 | PyObject * obj0 = 0 ; | |
30639 | PyObject * obj1 = 0 ; | |
30640 | PyObject * obj2 = 0 ; | |
30641 | char *kwnames[] = { | |
30642 | (char *) "self",(char *) "item",(char *) "size", NULL | |
30643 | }; | |
30644 | ||
30645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30647 | arg2 = obj1; | |
30648 | if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
30649 | arg3 = *argp3; | |
30650 | { | |
30651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30652 | wxSizer__SetItemMinSize(arg1,arg2,arg3); | |
30653 | ||
30654 | wxPyEndAllowThreads(__tstate); | |
30655 | if (PyErr_Occurred()) SWIG_fail; | |
30656 | } | |
30657 | Py_INCREF(Py_None); resultobj = Py_None; | |
30658 | return resultobj; | |
30659 | fail: | |
30660 | return NULL; | |
30661 | } | |
30662 | ||
30663 | ||
30664 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30665 | PyObject *resultobj; | |
30666 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30667 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
30668 | PyObject * obj0 = 0 ; | |
30669 | PyObject * obj1 = 0 ; | |
30670 | char *kwnames[] = { | |
30671 | (char *) "self",(char *) "item", NULL | |
30672 | }; | |
30673 | ||
30674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
30675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30676 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30677 | { | |
30678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30679 | (arg1)->Add(arg2); | |
30680 | ||
30681 | wxPyEndAllowThreads(__tstate); | |
30682 | if (PyErr_Occurred()) SWIG_fail; | |
30683 | } | |
30684 | Py_INCREF(Py_None); resultobj = Py_None; | |
30685 | return resultobj; | |
30686 | fail: | |
30687 | return NULL; | |
30688 | } | |
30689 | ||
30690 | ||
30691 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30692 | PyObject *resultobj; | |
30693 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30694 | size_t arg2 ; | |
30695 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
30696 | PyObject * obj0 = 0 ; | |
30697 | PyObject * obj1 = 0 ; | |
30698 | PyObject * obj2 = 0 ; | |
30699 | char *kwnames[] = { | |
30700 | (char *) "self",(char *) "index",(char *) "item", NULL | |
30701 | }; | |
30702 | ||
30703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30705 | arg2 = (size_t) PyInt_AsLong(obj1); | |
30706 | if (PyErr_Occurred()) SWIG_fail; | |
30707 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30708 | { | |
30709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30710 | (arg1)->Insert(arg2,arg3); | |
30711 | ||
30712 | wxPyEndAllowThreads(__tstate); | |
30713 | if (PyErr_Occurred()) SWIG_fail; | |
30714 | } | |
30715 | Py_INCREF(Py_None); resultobj = Py_None; | |
30716 | return resultobj; | |
30717 | fail: | |
30718 | return NULL; | |
30719 | } | |
30720 | ||
30721 | ||
30722 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30723 | PyObject *resultobj; | |
30724 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30725 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
30726 | PyObject * obj0 = 0 ; | |
30727 | PyObject * obj1 = 0 ; | |
30728 | char *kwnames[] = { | |
30729 | (char *) "self",(char *) "item", NULL | |
30730 | }; | |
30731 | ||
30732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
30733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30734 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30735 | { | |
30736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30737 | (arg1)->Prepend(arg2); | |
30738 | ||
30739 | wxPyEndAllowThreads(__tstate); | |
30740 | if (PyErr_Occurred()) SWIG_fail; | |
30741 | } | |
30742 | Py_INCREF(Py_None); resultobj = Py_None; | |
30743 | return resultobj; | |
30744 | fail: | |
30745 | return NULL; | |
30746 | } | |
30747 | ||
30748 | ||
30749 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30750 | PyObject *resultobj; | |
30751 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30752 | int arg2 ; | |
30753 | int arg3 ; | |
30754 | int arg4 ; | |
30755 | int arg5 ; | |
30756 | PyObject * obj0 = 0 ; | |
30757 | char *kwnames[] = { | |
30758 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
30759 | }; | |
30760 | ||
30761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Sizer_SetDimension",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
30762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30763 | { | |
30764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30765 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
30766 | ||
30767 | wxPyEndAllowThreads(__tstate); | |
30768 | if (PyErr_Occurred()) SWIG_fail; | |
30769 | } | |
30770 | Py_INCREF(Py_None); resultobj = Py_None; | |
30771 | return resultobj; | |
30772 | fail: | |
30773 | return NULL; | |
30774 | } | |
30775 | ||
30776 | ||
30777 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30778 | PyObject *resultobj; | |
30779 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30780 | wxSize arg2 ; | |
30781 | wxSize *argp2 ; | |
30782 | PyObject * obj0 = 0 ; | |
30783 | PyObject * obj1 = 0 ; | |
30784 | char *kwnames[] = { | |
30785 | (char *) "self",(char *) "size", NULL | |
30786 | }; | |
30787 | ||
30788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
30789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30790 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
30791 | arg2 = *argp2; | |
30792 | { | |
30793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30794 | (arg1)->SetMinSize(arg2); | |
30795 | ||
30796 | wxPyEndAllowThreads(__tstate); | |
30797 | if (PyErr_Occurred()) SWIG_fail; | |
30798 | } | |
30799 | Py_INCREF(Py_None); resultobj = Py_None; | |
30800 | return resultobj; | |
30801 | fail: | |
30802 | return NULL; | |
30803 | } | |
30804 | ||
30805 | ||
30806 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30807 | PyObject *resultobj; | |
30808 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30809 | wxSize result; | |
30810 | PyObject * obj0 = 0 ; | |
30811 | char *kwnames[] = { | |
30812 | (char *) "self", NULL | |
30813 | }; | |
30814 | ||
30815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
30816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30817 | { | |
30818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30819 | result = (arg1)->GetSize(); | |
30820 | ||
30821 | wxPyEndAllowThreads(__tstate); | |
30822 | if (PyErr_Occurred()) SWIG_fail; | |
30823 | } | |
30824 | { | |
30825 | wxSize * resultptr; | |
30826 | resultptr = new wxSize((wxSize &) result); | |
30827 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30828 | } | |
30829 | return resultobj; | |
30830 | fail: | |
30831 | return NULL; | |
30832 | } | |
30833 | ||
30834 | ||
30835 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30836 | PyObject *resultobj; | |
30837 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30838 | wxPoint result; | |
30839 | PyObject * obj0 = 0 ; | |
30840 | char *kwnames[] = { | |
30841 | (char *) "self", NULL | |
30842 | }; | |
30843 | ||
30844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
30845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30846 | { | |
30847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30848 | result = (arg1)->GetPosition(); | |
30849 | ||
30850 | wxPyEndAllowThreads(__tstate); | |
30851 | if (PyErr_Occurred()) SWIG_fail; | |
30852 | } | |
30853 | { | |
30854 | wxPoint * resultptr; | |
30855 | resultptr = new wxPoint((wxPoint &) result); | |
30856 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
30857 | } | |
30858 | return resultobj; | |
30859 | fail: | |
30860 | return NULL; | |
30861 | } | |
30862 | ||
30863 | ||
30864 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30865 | PyObject *resultobj; | |
30866 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30867 | wxSize result; | |
30868 | PyObject * obj0 = 0 ; | |
30869 | char *kwnames[] = { | |
30870 | (char *) "self", NULL | |
30871 | }; | |
30872 | ||
30873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
30874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30875 | { | |
30876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30877 | result = (arg1)->GetMinSize(); | |
30878 | ||
30879 | wxPyEndAllowThreads(__tstate); | |
30880 | if (PyErr_Occurred()) SWIG_fail; | |
30881 | } | |
30882 | { | |
30883 | wxSize * resultptr; | |
30884 | resultptr = new wxSize((wxSize &) result); | |
30885 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30886 | } | |
30887 | return resultobj; | |
30888 | fail: | |
30889 | return NULL; | |
30890 | } | |
30891 | ||
30892 | ||
30893 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30894 | PyObject *resultobj; | |
30895 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30896 | PyObject * obj0 = 0 ; | |
30897 | char *kwnames[] = { | |
30898 | (char *) "self", NULL | |
30899 | }; | |
30900 | ||
30901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
30902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30903 | { | |
30904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30905 | (arg1)->RecalcSizes(); | |
30906 | ||
30907 | wxPyEndAllowThreads(__tstate); | |
30908 | if (PyErr_Occurred()) SWIG_fail; | |
30909 | } | |
30910 | Py_INCREF(Py_None); resultobj = Py_None; | |
30911 | return resultobj; | |
30912 | fail: | |
30913 | return NULL; | |
30914 | } | |
30915 | ||
30916 | ||
30917 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30918 | PyObject *resultobj; | |
30919 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30920 | wxSize result; | |
30921 | PyObject * obj0 = 0 ; | |
30922 | char *kwnames[] = { | |
30923 | (char *) "self", NULL | |
30924 | }; | |
30925 | ||
30926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
30927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30928 | { | |
30929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30930 | result = (arg1)->CalcMin(); | |
30931 | ||
30932 | wxPyEndAllowThreads(__tstate); | |
30933 | if (PyErr_Occurred()) SWIG_fail; | |
30934 | } | |
30935 | { | |
30936 | wxSize * resultptr; | |
30937 | resultptr = new wxSize((wxSize &) result); | |
30938 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30939 | } | |
30940 | return resultobj; | |
30941 | fail: | |
30942 | return NULL; | |
30943 | } | |
30944 | ||
30945 | ||
30946 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30947 | PyObject *resultobj; | |
30948 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30949 | PyObject * obj0 = 0 ; | |
30950 | char *kwnames[] = { | |
30951 | (char *) "self", NULL | |
30952 | }; | |
30953 | ||
30954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
30955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30956 | { | |
30957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30958 | (arg1)->Layout(); | |
30959 | ||
30960 | wxPyEndAllowThreads(__tstate); | |
30961 | if (PyErr_Occurred()) SWIG_fail; | |
30962 | } | |
30963 | Py_INCREF(Py_None); resultobj = Py_None; | |
30964 | return resultobj; | |
30965 | fail: | |
30966 | return NULL; | |
30967 | } | |
30968 | ||
30969 | ||
30970 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30971 | PyObject *resultobj; | |
30972 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30973 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30974 | wxSize result; | |
30975 | PyObject * obj0 = 0 ; | |
30976 | PyObject * obj1 = 0 ; | |
30977 | char *kwnames[] = { | |
30978 | (char *) "self",(char *) "window", NULL | |
30979 | }; | |
30980 | ||
30981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
30982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30983 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30984 | { | |
30985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30986 | result = (arg1)->Fit(arg2); | |
30987 | ||
30988 | wxPyEndAllowThreads(__tstate); | |
30989 | if (PyErr_Occurred()) SWIG_fail; | |
30990 | } | |
30991 | { | |
30992 | wxSize * resultptr; | |
30993 | resultptr = new wxSize((wxSize &) result); | |
30994 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30995 | } | |
30996 | return resultobj; | |
30997 | fail: | |
30998 | return NULL; | |
30999 | } | |
31000 | ||
31001 | ||
31002 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31003 | PyObject *resultobj; | |
31004 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31005 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31006 | PyObject * obj0 = 0 ; | |
31007 | PyObject * obj1 = 0 ; | |
31008 | char *kwnames[] = { | |
31009 | (char *) "self",(char *) "window", NULL | |
31010 | }; | |
31011 | ||
31012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
31013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31014 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31015 | { | |
31016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31017 | (arg1)->FitInside(arg2); | |
31018 | ||
31019 | wxPyEndAllowThreads(__tstate); | |
31020 | if (PyErr_Occurred()) SWIG_fail; | |
31021 | } | |
31022 | Py_INCREF(Py_None); resultobj = Py_None; | |
31023 | return resultobj; | |
31024 | fail: | |
31025 | return NULL; | |
31026 | } | |
31027 | ||
31028 | ||
31029 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31030 | PyObject *resultobj; | |
31031 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31032 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31033 | PyObject * obj0 = 0 ; | |
31034 | PyObject * obj1 = 0 ; | |
31035 | char *kwnames[] = { | |
31036 | (char *) "self",(char *) "window", NULL | |
31037 | }; | |
31038 | ||
31039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
31040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31041 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31042 | { | |
31043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31044 | (arg1)->SetSizeHints(arg2); | |
31045 | ||
31046 | wxPyEndAllowThreads(__tstate); | |
31047 | if (PyErr_Occurred()) SWIG_fail; | |
31048 | } | |
31049 | Py_INCREF(Py_None); resultobj = Py_None; | |
31050 | return resultobj; | |
31051 | fail: | |
31052 | return NULL; | |
31053 | } | |
31054 | ||
31055 | ||
31056 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31057 | PyObject *resultobj; | |
31058 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31059 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31060 | PyObject * obj0 = 0 ; | |
31061 | PyObject * obj1 = 0 ; | |
31062 | char *kwnames[] = { | |
31063 | (char *) "self",(char *) "window", NULL | |
31064 | }; | |
31065 | ||
31066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
31067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31068 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31069 | { | |
31070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31071 | (arg1)->SetVirtualSizeHints(arg2); | |
31072 | ||
31073 | wxPyEndAllowThreads(__tstate); | |
31074 | if (PyErr_Occurred()) SWIG_fail; | |
31075 | } | |
31076 | Py_INCREF(Py_None); resultobj = Py_None; | |
31077 | return resultobj; | |
31078 | fail: | |
31079 | return NULL; | |
31080 | } | |
31081 | ||
31082 | ||
31083 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31084 | PyObject *resultobj; | |
31085 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31086 | bool arg2 = (bool) FALSE ; | |
31087 | PyObject * obj0 = 0 ; | |
31088 | PyObject * obj1 = 0 ; | |
31089 | char *kwnames[] = { | |
31090 | (char *) "self",(char *) "delete_windows", NULL | |
31091 | }; | |
31092 | ||
31093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
31094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31095 | if (obj1) { | |
31096 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
31097 | if (PyErr_Occurred()) SWIG_fail; | |
31098 | } | |
31099 | { | |
31100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31101 | (arg1)->Clear(arg2); | |
31102 | ||
31103 | wxPyEndAllowThreads(__tstate); | |
31104 | if (PyErr_Occurred()) SWIG_fail; | |
31105 | } | |
31106 | Py_INCREF(Py_None); resultobj = Py_None; | |
31107 | return resultobj; | |
31108 | fail: | |
31109 | return NULL; | |
31110 | } | |
31111 | ||
31112 | ||
31113 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31114 | PyObject *resultobj; | |
31115 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31116 | PyObject * obj0 = 0 ; | |
31117 | char *kwnames[] = { | |
31118 | (char *) "self", NULL | |
31119 | }; | |
31120 | ||
31121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
31122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31123 | { | |
31124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31125 | (arg1)->DeleteWindows(); | |
31126 | ||
31127 | wxPyEndAllowThreads(__tstate); | |
31128 | if (PyErr_Occurred()) SWIG_fail; | |
31129 | } | |
31130 | Py_INCREF(Py_None); resultobj = Py_None; | |
31131 | return resultobj; | |
31132 | fail: | |
31133 | return NULL; | |
31134 | } | |
31135 | ||
31136 | ||
31137 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31138 | PyObject *resultobj; | |
31139 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31140 | PyObject *result; | |
31141 | PyObject * obj0 = 0 ; | |
31142 | char *kwnames[] = { | |
31143 | (char *) "self", NULL | |
31144 | }; | |
31145 | ||
31146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
31147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31148 | { | |
31149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31150 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
31151 | ||
31152 | wxPyEndAllowThreads(__tstate); | |
31153 | if (PyErr_Occurred()) SWIG_fail; | |
31154 | } | |
31155 | resultobj = result; | |
31156 | return resultobj; | |
31157 | fail: | |
31158 | return NULL; | |
31159 | } | |
31160 | ||
31161 | ||
31162 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31163 | PyObject *resultobj; | |
31164 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31165 | PyObject *arg2 = (PyObject *) 0 ; | |
31166 | bool arg3 = (bool) TRUE ; | |
31167 | PyObject * obj0 = 0 ; | |
31168 | PyObject * obj1 = 0 ; | |
31169 | PyObject * obj2 = 0 ; | |
31170 | char *kwnames[] = { | |
31171 | (char *) "self",(char *) "item",(char *) "show", NULL | |
31172 | }; | |
31173 | ||
31174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31176 | arg2 = obj1; | |
31177 | if (obj2) { | |
31178 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
31179 | if (PyErr_Occurred()) SWIG_fail; | |
31180 | } | |
31181 | { | |
31182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31183 | wxSizer_Show(arg1,arg2,arg3); | |
31184 | ||
31185 | wxPyEndAllowThreads(__tstate); | |
31186 | if (PyErr_Occurred()) SWIG_fail; | |
31187 | } | |
31188 | Py_INCREF(Py_None); resultobj = Py_None; | |
31189 | return resultobj; | |
31190 | fail: | |
31191 | return NULL; | |
31192 | } | |
31193 | ||
31194 | ||
31195 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31196 | PyObject *resultobj; | |
31197 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31198 | PyObject *arg2 = (PyObject *) 0 ; | |
31199 | PyObject * obj0 = 0 ; | |
31200 | PyObject * obj1 = 0 ; | |
31201 | char *kwnames[] = { | |
31202 | (char *) "self",(char *) "item", NULL | |
31203 | }; | |
31204 | ||
31205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
31206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31207 | arg2 = obj1; | |
31208 | { | |
31209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31210 | wxSizer_Hide(arg1,arg2); | |
31211 | ||
31212 | wxPyEndAllowThreads(__tstate); | |
31213 | if (PyErr_Occurred()) SWIG_fail; | |
31214 | } | |
31215 | Py_INCREF(Py_None); resultobj = Py_None; | |
31216 | return resultobj; | |
31217 | fail: | |
31218 | return NULL; | |
31219 | } | |
31220 | ||
31221 | ||
31222 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31223 | PyObject *resultobj; | |
31224 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31225 | PyObject *arg2 = (PyObject *) 0 ; | |
31226 | bool result; | |
31227 | PyObject * obj0 = 0 ; | |
31228 | PyObject * obj1 = 0 ; | |
31229 | char *kwnames[] = { | |
31230 | (char *) "self",(char *) "item", NULL | |
31231 | }; | |
31232 | ||
31233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
31234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31235 | arg2 = obj1; | |
31236 | { | |
31237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31238 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
31239 | ||
31240 | wxPyEndAllowThreads(__tstate); | |
31241 | if (PyErr_Occurred()) SWIG_fail; | |
31242 | } | |
31243 | resultobj = PyInt_FromLong((long)result); | |
31244 | return resultobj; | |
31245 | fail: | |
31246 | return NULL; | |
31247 | } | |
31248 | ||
31249 | ||
31250 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31251 | PyObject *resultobj; | |
31252 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31253 | bool arg2 ; | |
31254 | PyObject * obj0 = 0 ; | |
31255 | PyObject * obj1 = 0 ; | |
31256 | char *kwnames[] = { | |
31257 | (char *) "self",(char *) "show", NULL | |
31258 | }; | |
31259 | ||
31260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
31261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31262 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
31263 | if (PyErr_Occurred()) SWIG_fail; | |
31264 | { | |
31265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31266 | (arg1)->ShowItems(arg2); | |
31267 | ||
31268 | wxPyEndAllowThreads(__tstate); | |
31269 | if (PyErr_Occurred()) SWIG_fail; | |
31270 | } | |
31271 | Py_INCREF(Py_None); resultobj = Py_None; | |
31272 | return resultobj; | |
31273 | fail: | |
31274 | return NULL; | |
31275 | } | |
31276 | ||
31277 | ||
31278 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
31279 | PyObject *obj; | |
31280 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31281 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
31282 | Py_INCREF(obj); | |
31283 | return Py_BuildValue((char *)""); | |
31284 | } | |
31285 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31286 | PyObject *resultobj; | |
31287 | wxPySizer *result; | |
31288 | char *kwnames[] = { | |
31289 | NULL | |
31290 | }; | |
31291 | ||
31292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
31293 | { | |
31294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31295 | result = (wxPySizer *)new wxPySizer(); | |
31296 | ||
31297 | wxPyEndAllowThreads(__tstate); | |
31298 | if (PyErr_Occurred()) SWIG_fail; | |
31299 | } | |
31300 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPySizer, 1); | |
31301 | return resultobj; | |
31302 | fail: | |
31303 | return NULL; | |
31304 | } | |
31305 | ||
31306 | ||
31307 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31308 | PyObject *resultobj; | |
31309 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
31310 | PyObject *arg2 = (PyObject *) 0 ; | |
31311 | PyObject *arg3 = (PyObject *) 0 ; | |
31312 | PyObject * obj0 = 0 ; | |
31313 | PyObject * obj1 = 0 ; | |
31314 | PyObject * obj2 = 0 ; | |
31315 | char *kwnames[] = { | |
31316 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
31317 | }; | |
31318 | ||
31319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPySizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31321 | arg2 = obj1; | |
31322 | arg3 = obj2; | |
31323 | { | |
31324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31325 | (arg1)->_setCallbackInfo(arg2,arg3); | |
31326 | ||
31327 | wxPyEndAllowThreads(__tstate); | |
31328 | if (PyErr_Occurred()) SWIG_fail; | |
31329 | } | |
31330 | Py_INCREF(Py_None); resultobj = Py_None; | |
31331 | return resultobj; | |
31332 | fail: | |
31333 | return NULL; | |
31334 | } | |
31335 | ||
31336 | ||
31337 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
31338 | PyObject *obj; | |
31339 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31340 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
31341 | Py_INCREF(obj); | |
31342 | return Py_BuildValue((char *)""); | |
31343 | } | |
31344 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31345 | PyObject *resultobj; | |
31346 | int arg1 = (int) wxHORIZONTAL ; | |
31347 | wxBoxSizer *result; | |
31348 | char *kwnames[] = { | |
31349 | (char *) "orient", NULL | |
31350 | }; | |
31351 | ||
31352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_BoxSizer",kwnames,&arg1)) goto fail; | |
31353 | { | |
31354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31355 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
31356 | ||
31357 | wxPyEndAllowThreads(__tstate); | |
31358 | if (PyErr_Occurred()) SWIG_fail; | |
31359 | } | |
31360 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBoxSizer, 1); | |
31361 | return resultobj; | |
31362 | fail: | |
31363 | return NULL; | |
31364 | } | |
31365 | ||
31366 | ||
31367 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31368 | PyObject *resultobj; | |
31369 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31370 | int result; | |
31371 | PyObject * obj0 = 0 ; | |
31372 | char *kwnames[] = { | |
31373 | (char *) "self", NULL | |
31374 | }; | |
31375 | ||
31376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
31377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31378 | { | |
31379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31380 | result = (int)(arg1)->GetOrientation(); | |
31381 | ||
31382 | wxPyEndAllowThreads(__tstate); | |
31383 | if (PyErr_Occurred()) SWIG_fail; | |
31384 | } | |
31385 | resultobj = PyInt_FromLong((long)result); | |
31386 | return resultobj; | |
31387 | fail: | |
31388 | return NULL; | |
31389 | } | |
31390 | ||
31391 | ||
31392 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31393 | PyObject *resultobj; | |
31394 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31395 | int arg2 ; | |
31396 | PyObject * obj0 = 0 ; | |
31397 | char *kwnames[] = { | |
31398 | (char *) "self",(char *) "orient", NULL | |
31399 | }; | |
31400 | ||
31401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BoxSizer_SetOrientation",kwnames,&obj0,&arg2)) goto fail; | |
31402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31403 | { | |
31404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31405 | (arg1)->SetOrientation(arg2); | |
31406 | ||
31407 | wxPyEndAllowThreads(__tstate); | |
31408 | if (PyErr_Occurred()) SWIG_fail; | |
31409 | } | |
31410 | Py_INCREF(Py_None); resultobj = Py_None; | |
31411 | return resultobj; | |
31412 | fail: | |
31413 | return NULL; | |
31414 | } | |
31415 | ||
31416 | ||
31417 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31418 | PyObject *resultobj; | |
31419 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31420 | PyObject * obj0 = 0 ; | |
31421 | char *kwnames[] = { | |
31422 | (char *) "self", NULL | |
31423 | }; | |
31424 | ||
31425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31427 | { | |
31428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31429 | (arg1)->RecalcSizes(); | |
31430 | ||
31431 | wxPyEndAllowThreads(__tstate); | |
31432 | if (PyErr_Occurred()) SWIG_fail; | |
31433 | } | |
31434 | Py_INCREF(Py_None); resultobj = Py_None; | |
31435 | return resultobj; | |
31436 | fail: | |
31437 | return NULL; | |
31438 | } | |
31439 | ||
31440 | ||
31441 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31442 | PyObject *resultobj; | |
31443 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31444 | wxSize result; | |
31445 | PyObject * obj0 = 0 ; | |
31446 | char *kwnames[] = { | |
31447 | (char *) "self", NULL | |
31448 | }; | |
31449 | ||
31450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
31451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31452 | { | |
31453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31454 | result = (arg1)->CalcMin(); | |
31455 | ||
31456 | wxPyEndAllowThreads(__tstate); | |
31457 | if (PyErr_Occurred()) SWIG_fail; | |
31458 | } | |
31459 | { | |
31460 | wxSize * resultptr; | |
31461 | resultptr = new wxSize((wxSize &) result); | |
31462 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31463 | } | |
31464 | return resultobj; | |
31465 | fail: | |
31466 | return NULL; | |
31467 | } | |
31468 | ||
31469 | ||
31470 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
31471 | PyObject *obj; | |
31472 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31473 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
31474 | Py_INCREF(obj); | |
31475 | return Py_BuildValue((char *)""); | |
31476 | } | |
31477 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31478 | PyObject *resultobj; | |
31479 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
31480 | int arg2 = (int) wxHORIZONTAL ; | |
31481 | wxStaticBoxSizer *result; | |
31482 | PyObject * obj0 = 0 ; | |
31483 | char *kwnames[] = { | |
31484 | (char *) "box",(char *) "orient", NULL | |
31485 | }; | |
31486 | ||
31487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_StaticBoxSizer",kwnames,&obj0,&arg2)) goto fail; | |
31488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31489 | { | |
31490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31491 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
31492 | ||
31493 | wxPyEndAllowThreads(__tstate); | |
31494 | if (PyErr_Occurred()) SWIG_fail; | |
31495 | } | |
31496 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBoxSizer, 1); | |
31497 | return resultobj; | |
31498 | fail: | |
31499 | return NULL; | |
31500 | } | |
31501 | ||
31502 | ||
31503 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31504 | PyObject *resultobj; | |
31505 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
31506 | wxStaticBox *result; | |
31507 | PyObject * obj0 = 0 ; | |
31508 | char *kwnames[] = { | |
31509 | (char *) "self", NULL | |
31510 | }; | |
31511 | ||
31512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
31513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31514 | { | |
31515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31516 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
31517 | ||
31518 | wxPyEndAllowThreads(__tstate); | |
31519 | if (PyErr_Occurred()) SWIG_fail; | |
31520 | } | |
31521 | { | |
31522 | resultobj = wxPyMake_wxObject(result); | |
31523 | } | |
31524 | return resultobj; | |
31525 | fail: | |
31526 | return NULL; | |
31527 | } | |
31528 | ||
31529 | ||
31530 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31531 | PyObject *resultobj; | |
31532 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
31533 | PyObject * obj0 = 0 ; | |
31534 | char *kwnames[] = { | |
31535 | (char *) "self", NULL | |
31536 | }; | |
31537 | ||
31538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31540 | { | |
31541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31542 | (arg1)->RecalcSizes(); | |
31543 | ||
31544 | wxPyEndAllowThreads(__tstate); | |
31545 | if (PyErr_Occurred()) SWIG_fail; | |
31546 | } | |
31547 | Py_INCREF(Py_None); resultobj = Py_None; | |
31548 | return resultobj; | |
31549 | fail: | |
31550 | return NULL; | |
31551 | } | |
31552 | ||
31553 | ||
31554 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31555 | PyObject *resultobj; | |
31556 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
31557 | wxSize result; | |
31558 | PyObject * obj0 = 0 ; | |
31559 | char *kwnames[] = { | |
31560 | (char *) "self", NULL | |
31561 | }; | |
31562 | ||
31563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
31564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31565 | { | |
31566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31567 | result = (arg1)->CalcMin(); | |
31568 | ||
31569 | wxPyEndAllowThreads(__tstate); | |
31570 | if (PyErr_Occurred()) SWIG_fail; | |
31571 | } | |
31572 | { | |
31573 | wxSize * resultptr; | |
31574 | resultptr = new wxSize((wxSize &) result); | |
31575 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31576 | } | |
31577 | return resultobj; | |
31578 | fail: | |
31579 | return NULL; | |
31580 | } | |
31581 | ||
31582 | ||
31583 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
31584 | PyObject *obj; | |
31585 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31586 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
31587 | Py_INCREF(obj); | |
31588 | return Py_BuildValue((char *)""); | |
31589 | } | |
31590 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31591 | PyObject *resultobj; | |
31592 | int arg1 = (int) 1 ; | |
31593 | int arg2 = (int) 0 ; | |
31594 | int arg3 = (int) 0 ; | |
31595 | int arg4 = (int) 0 ; | |
31596 | wxGridSizer *result; | |
31597 | char *kwnames[] = { | |
31598 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
31599 | }; | |
31600 | ||
31601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_GridSizer",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
31602 | { | |
31603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31604 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
31605 | ||
31606 | wxPyEndAllowThreads(__tstate); | |
31607 | if (PyErr_Occurred()) SWIG_fail; | |
31608 | } | |
31609 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizer, 1); | |
31610 | return resultobj; | |
31611 | fail: | |
31612 | return NULL; | |
31613 | } | |
31614 | ||
31615 | ||
31616 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31617 | PyObject *resultobj; | |
31618 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31619 | PyObject * obj0 = 0 ; | |
31620 | char *kwnames[] = { | |
31621 | (char *) "self", NULL | |
31622 | }; | |
31623 | ||
31624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31626 | { | |
31627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31628 | (arg1)->RecalcSizes(); | |
31629 | ||
31630 | wxPyEndAllowThreads(__tstate); | |
31631 | if (PyErr_Occurred()) SWIG_fail; | |
31632 | } | |
31633 | Py_INCREF(Py_None); resultobj = Py_None; | |
31634 | return resultobj; | |
31635 | fail: | |
31636 | return NULL; | |
31637 | } | |
31638 | ||
31639 | ||
31640 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31641 | PyObject *resultobj; | |
31642 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31643 | wxSize result; | |
31644 | PyObject * obj0 = 0 ; | |
31645 | char *kwnames[] = { | |
31646 | (char *) "self", NULL | |
31647 | }; | |
31648 | ||
31649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
31650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31651 | { | |
31652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31653 | result = (arg1)->CalcMin(); | |
31654 | ||
31655 | wxPyEndAllowThreads(__tstate); | |
31656 | if (PyErr_Occurred()) SWIG_fail; | |
31657 | } | |
31658 | { | |
31659 | wxSize * resultptr; | |
31660 | resultptr = new wxSize((wxSize &) result); | |
31661 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31662 | } | |
31663 | return resultobj; | |
31664 | fail: | |
31665 | return NULL; | |
31666 | } | |
31667 | ||
31668 | ||
31669 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31670 | PyObject *resultobj; | |
31671 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31672 | int arg2 ; | |
31673 | PyObject * obj0 = 0 ; | |
31674 | char *kwnames[] = { | |
31675 | (char *) "self",(char *) "cols", NULL | |
31676 | }; | |
31677 | ||
31678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetCols",kwnames,&obj0,&arg2)) goto fail; | |
31679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31680 | { | |
31681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31682 | (arg1)->SetCols(arg2); | |
31683 | ||
31684 | wxPyEndAllowThreads(__tstate); | |
31685 | if (PyErr_Occurred()) SWIG_fail; | |
31686 | } | |
31687 | Py_INCREF(Py_None); resultobj = Py_None; | |
31688 | return resultobj; | |
31689 | fail: | |
31690 | return NULL; | |
31691 | } | |
31692 | ||
31693 | ||
31694 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31695 | PyObject *resultobj; | |
31696 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31697 | int arg2 ; | |
31698 | PyObject * obj0 = 0 ; | |
31699 | char *kwnames[] = { | |
31700 | (char *) "self",(char *) "rows", NULL | |
31701 | }; | |
31702 | ||
31703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetRows",kwnames,&obj0,&arg2)) goto fail; | |
31704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31705 | { | |
31706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31707 | (arg1)->SetRows(arg2); | |
31708 | ||
31709 | wxPyEndAllowThreads(__tstate); | |
31710 | if (PyErr_Occurred()) SWIG_fail; | |
31711 | } | |
31712 | Py_INCREF(Py_None); resultobj = Py_None; | |
31713 | return resultobj; | |
31714 | fail: | |
31715 | return NULL; | |
31716 | } | |
31717 | ||
31718 | ||
31719 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31720 | PyObject *resultobj; | |
31721 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31722 | int arg2 ; | |
31723 | PyObject * obj0 = 0 ; | |
31724 | char *kwnames[] = { | |
31725 | (char *) "self",(char *) "gap", NULL | |
31726 | }; | |
31727 | ||
31728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetVGap",kwnames,&obj0,&arg2)) goto fail; | |
31729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31730 | { | |
31731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31732 | (arg1)->SetVGap(arg2); | |
31733 | ||
31734 | wxPyEndAllowThreads(__tstate); | |
31735 | if (PyErr_Occurred()) SWIG_fail; | |
31736 | } | |
31737 | Py_INCREF(Py_None); resultobj = Py_None; | |
31738 | return resultobj; | |
31739 | fail: | |
31740 | return NULL; | |
31741 | } | |
31742 | ||
31743 | ||
31744 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31745 | PyObject *resultobj; | |
31746 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31747 | int arg2 ; | |
31748 | PyObject * obj0 = 0 ; | |
31749 | char *kwnames[] = { | |
31750 | (char *) "self",(char *) "gap", NULL | |
31751 | }; | |
31752 | ||
31753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetHGap",kwnames,&obj0,&arg2)) goto fail; | |
31754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31755 | { | |
31756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31757 | (arg1)->SetHGap(arg2); | |
31758 | ||
31759 | wxPyEndAllowThreads(__tstate); | |
31760 | if (PyErr_Occurred()) SWIG_fail; | |
31761 | } | |
31762 | Py_INCREF(Py_None); resultobj = Py_None; | |
31763 | return resultobj; | |
31764 | fail: | |
31765 | return NULL; | |
31766 | } | |
31767 | ||
31768 | ||
31769 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31770 | PyObject *resultobj; | |
31771 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31772 | int result; | |
31773 | PyObject * obj0 = 0 ; | |
31774 | char *kwnames[] = { | |
31775 | (char *) "self", NULL | |
31776 | }; | |
31777 | ||
31778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
31779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31780 | { | |
31781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31782 | result = (int)(arg1)->GetCols(); | |
31783 | ||
31784 | wxPyEndAllowThreads(__tstate); | |
31785 | if (PyErr_Occurred()) SWIG_fail; | |
31786 | } | |
31787 | resultobj = PyInt_FromLong((long)result); | |
31788 | return resultobj; | |
31789 | fail: | |
31790 | return NULL; | |
31791 | } | |
31792 | ||
31793 | ||
31794 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31795 | PyObject *resultobj; | |
31796 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31797 | int result; | |
31798 | PyObject * obj0 = 0 ; | |
31799 | char *kwnames[] = { | |
31800 | (char *) "self", NULL | |
31801 | }; | |
31802 | ||
31803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
31804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31805 | { | |
31806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31807 | result = (int)(arg1)->GetRows(); | |
31808 | ||
31809 | wxPyEndAllowThreads(__tstate); | |
31810 | if (PyErr_Occurred()) SWIG_fail; | |
31811 | } | |
31812 | resultobj = PyInt_FromLong((long)result); | |
31813 | return resultobj; | |
31814 | fail: | |
31815 | return NULL; | |
31816 | } | |
31817 | ||
31818 | ||
31819 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31820 | PyObject *resultobj; | |
31821 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31822 | int result; | |
31823 | PyObject * obj0 = 0 ; | |
31824 | char *kwnames[] = { | |
31825 | (char *) "self", NULL | |
31826 | }; | |
31827 | ||
31828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
31829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31830 | { | |
31831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31832 | result = (int)(arg1)->GetVGap(); | |
31833 | ||
31834 | wxPyEndAllowThreads(__tstate); | |
31835 | if (PyErr_Occurred()) SWIG_fail; | |
31836 | } | |
31837 | resultobj = PyInt_FromLong((long)result); | |
31838 | return resultobj; | |
31839 | fail: | |
31840 | return NULL; | |
31841 | } | |
31842 | ||
31843 | ||
31844 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31845 | PyObject *resultobj; | |
31846 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31847 | int result; | |
31848 | PyObject * obj0 = 0 ; | |
31849 | char *kwnames[] = { | |
31850 | (char *) "self", NULL | |
31851 | }; | |
31852 | ||
31853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
31854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31855 | { | |
31856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31857 | result = (int)(arg1)->GetHGap(); | |
31858 | ||
31859 | wxPyEndAllowThreads(__tstate); | |
31860 | if (PyErr_Occurred()) SWIG_fail; | |
31861 | } | |
31862 | resultobj = PyInt_FromLong((long)result); | |
31863 | return resultobj; | |
31864 | fail: | |
31865 | return NULL; | |
31866 | } | |
31867 | ||
31868 | ||
31869 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
31870 | PyObject *obj; | |
31871 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31872 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
31873 | Py_INCREF(obj); | |
31874 | return Py_BuildValue((char *)""); | |
31875 | } | |
31876 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31877 | PyObject *resultobj; | |
31878 | int arg1 = (int) 1 ; | |
31879 | int arg2 = (int) 0 ; | |
31880 | int arg3 = (int) 0 ; | |
31881 | int arg4 = (int) 0 ; | |
31882 | wxFlexGridSizer *result; | |
31883 | char *kwnames[] = { | |
31884 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
31885 | }; | |
31886 | ||
31887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_FlexGridSizer",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
31888 | { | |
31889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31890 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
31891 | ||
31892 | wxPyEndAllowThreads(__tstate); | |
31893 | if (PyErr_Occurred()) SWIG_fail; | |
31894 | } | |
31895 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFlexGridSizer, 1); | |
31896 | return resultobj; | |
31897 | fail: | |
31898 | return NULL; | |
31899 | } | |
31900 | ||
31901 | ||
31902 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31903 | PyObject *resultobj; | |
31904 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
31905 | PyObject * obj0 = 0 ; | |
31906 | char *kwnames[] = { | |
31907 | (char *) "self", NULL | |
31908 | }; | |
31909 | ||
31910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31912 | { | |
31913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31914 | (arg1)->RecalcSizes(); | |
31915 | ||
31916 | wxPyEndAllowThreads(__tstate); | |
31917 | if (PyErr_Occurred()) SWIG_fail; | |
31918 | } | |
31919 | Py_INCREF(Py_None); resultobj = Py_None; | |
31920 | return resultobj; | |
31921 | fail: | |
31922 | return NULL; | |
31923 | } | |
31924 | ||
31925 | ||
31926 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31927 | PyObject *resultobj; | |
31928 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
31929 | wxSize result; | |
31930 | PyObject * obj0 = 0 ; | |
31931 | char *kwnames[] = { | |
31932 | (char *) "self", NULL | |
31933 | }; | |
31934 | ||
31935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
31936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31937 | { | |
31938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31939 | result = (arg1)->CalcMin(); | |
31940 | ||
31941 | wxPyEndAllowThreads(__tstate); | |
31942 | if (PyErr_Occurred()) SWIG_fail; | |
31943 | } | |
31944 | { | |
31945 | wxSize * resultptr; | |
31946 | resultptr = new wxSize((wxSize &) result); | |
31947 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31948 | } | |
31949 | return resultobj; | |
31950 | fail: | |
31951 | return NULL; | |
31952 | } | |
31953 | ||
31954 | ||
31955 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31956 | PyObject *resultobj; | |
31957 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
31958 | size_t arg2 ; | |
31959 | int arg3 = (int) 0 ; | |
31960 | PyObject * obj0 = 0 ; | |
31961 | PyObject * obj1 = 0 ; | |
31962 | char *kwnames[] = { | |
31963 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
31964 | }; | |
31965 | ||
31966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
31967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31968 | arg2 = (size_t) PyInt_AsLong(obj1); | |
31969 | if (PyErr_Occurred()) SWIG_fail; | |
31970 | { | |
31971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31972 | (arg1)->AddGrowableRow(arg2,arg3); | |
31973 | ||
31974 | wxPyEndAllowThreads(__tstate); | |
31975 | if (PyErr_Occurred()) SWIG_fail; | |
31976 | } | |
31977 | Py_INCREF(Py_None); resultobj = Py_None; | |
31978 | return resultobj; | |
31979 | fail: | |
31980 | return NULL; | |
31981 | } | |
31982 | ||
31983 | ||
31984 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31985 | PyObject *resultobj; | |
31986 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
31987 | size_t arg2 ; | |
31988 | PyObject * obj0 = 0 ; | |
31989 | PyObject * obj1 = 0 ; | |
31990 | char *kwnames[] = { | |
31991 | (char *) "self",(char *) "idx", NULL | |
31992 | }; | |
31993 | ||
31994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
31995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31996 | arg2 = (size_t) PyInt_AsLong(obj1); | |
31997 | if (PyErr_Occurred()) SWIG_fail; | |
31998 | { | |
31999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32000 | (arg1)->RemoveGrowableRow(arg2); | |
32001 | ||
32002 | wxPyEndAllowThreads(__tstate); | |
32003 | if (PyErr_Occurred()) SWIG_fail; | |
32004 | } | |
32005 | Py_INCREF(Py_None); resultobj = Py_None; | |
32006 | return resultobj; | |
32007 | fail: | |
32008 | return NULL; | |
32009 | } | |
32010 | ||
32011 | ||
32012 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32013 | PyObject *resultobj; | |
32014 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32015 | size_t arg2 ; | |
32016 | int arg3 = (int) 0 ; | |
32017 | PyObject * obj0 = 0 ; | |
32018 | PyObject * obj1 = 0 ; | |
32019 | char *kwnames[] = { | |
32020 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
32021 | }; | |
32022 | ||
32023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
32024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32025 | arg2 = (size_t) PyInt_AsLong(obj1); | |
32026 | if (PyErr_Occurred()) SWIG_fail; | |
32027 | { | |
32028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32029 | (arg1)->AddGrowableCol(arg2,arg3); | |
32030 | ||
32031 | wxPyEndAllowThreads(__tstate); | |
32032 | if (PyErr_Occurred()) SWIG_fail; | |
32033 | } | |
32034 | Py_INCREF(Py_None); resultobj = Py_None; | |
32035 | return resultobj; | |
32036 | fail: | |
32037 | return NULL; | |
32038 | } | |
32039 | ||
32040 | ||
32041 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32042 | PyObject *resultobj; | |
32043 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32044 | size_t arg2 ; | |
32045 | PyObject * obj0 = 0 ; | |
32046 | PyObject * obj1 = 0 ; | |
32047 | char *kwnames[] = { | |
32048 | (char *) "self",(char *) "idx", NULL | |
32049 | }; | |
32050 | ||
32051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
32052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32053 | arg2 = (size_t) PyInt_AsLong(obj1); | |
32054 | if (PyErr_Occurred()) SWIG_fail; | |
32055 | { | |
32056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32057 | (arg1)->RemoveGrowableCol(arg2); | |
32058 | ||
32059 | wxPyEndAllowThreads(__tstate); | |
32060 | if (PyErr_Occurred()) SWIG_fail; | |
32061 | } | |
32062 | Py_INCREF(Py_None); resultobj = Py_None; | |
32063 | return resultobj; | |
32064 | fail: | |
32065 | return NULL; | |
32066 | } | |
32067 | ||
32068 | ||
32069 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32070 | PyObject *resultobj; | |
32071 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32072 | int arg2 ; | |
32073 | PyObject * obj0 = 0 ; | |
32074 | char *kwnames[] = { | |
32075 | (char *) "self",(char *) "direction", NULL | |
32076 | }; | |
32077 | ||
32078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&arg2)) goto fail; | |
32079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32080 | { | |
32081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32082 | (arg1)->SetFlexibleDirection(arg2); | |
32083 | ||
32084 | wxPyEndAllowThreads(__tstate); | |
32085 | if (PyErr_Occurred()) SWIG_fail; | |
32086 | } | |
32087 | Py_INCREF(Py_None); resultobj = Py_None; | |
32088 | return resultobj; | |
32089 | fail: | |
32090 | return NULL; | |
32091 | } | |
32092 | ||
32093 | ||
32094 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32095 | PyObject *resultobj; | |
32096 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32097 | int result; | |
32098 | PyObject * obj0 = 0 ; | |
32099 | char *kwnames[] = { | |
32100 | (char *) "self", NULL | |
32101 | }; | |
32102 | ||
32103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
32104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32105 | { | |
32106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32107 | result = (int)(arg1)->GetFlexibleDirection(); | |
32108 | ||
32109 | wxPyEndAllowThreads(__tstate); | |
32110 | if (PyErr_Occurred()) SWIG_fail; | |
32111 | } | |
32112 | resultobj = PyInt_FromLong((long)result); | |
32113 | return resultobj; | |
32114 | fail: | |
32115 | return NULL; | |
32116 | } | |
32117 | ||
32118 | ||
32119 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32120 | PyObject *resultobj; | |
32121 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32122 | int arg2 ; | |
32123 | PyObject * obj0 = 0 ; | |
32124 | char *kwnames[] = { | |
32125 | (char *) "self",(char *) "mode", NULL | |
32126 | }; | |
32127 | ||
32128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&arg2)) goto fail; | |
32129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32130 | { | |
32131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32132 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
32133 | ||
32134 | wxPyEndAllowThreads(__tstate); | |
32135 | if (PyErr_Occurred()) SWIG_fail; | |
32136 | } | |
32137 | Py_INCREF(Py_None); resultobj = Py_None; | |
32138 | return resultobj; | |
32139 | fail: | |
32140 | return NULL; | |
32141 | } | |
32142 | ||
32143 | ||
32144 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32145 | PyObject *resultobj; | |
32146 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32147 | int result; | |
32148 | PyObject * obj0 = 0 ; | |
32149 | char *kwnames[] = { | |
32150 | (char *) "self", NULL | |
32151 | }; | |
32152 | ||
32153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
32154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32155 | { | |
32156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32157 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
32158 | ||
32159 | wxPyEndAllowThreads(__tstate); | |
32160 | if (PyErr_Occurred()) SWIG_fail; | |
32161 | } | |
32162 | resultobj = PyInt_FromLong((long)result); | |
32163 | return resultobj; | |
32164 | fail: | |
32165 | return NULL; | |
32166 | } | |
32167 | ||
32168 | ||
32169 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { | |
32170 | PyObject *obj; | |
32171 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32172 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
32173 | Py_INCREF(obj); | |
32174 | return Py_BuildValue((char *)""); | |
32175 | } | |
32176 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32177 | PyObject *resultobj; | |
32178 | int arg1 = (int) 0 ; | |
32179 | int arg2 = (int) 0 ; | |
32180 | wxGBPosition *result; | |
32181 | char *kwnames[] = { | |
32182 | (char *) "row",(char *) "col", NULL | |
32183 | }; | |
32184 | ||
32185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GBPosition",kwnames,&arg1,&arg2)) goto fail; | |
32186 | { | |
32187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32188 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
32189 | ||
32190 | wxPyEndAllowThreads(__tstate); | |
32191 | if (PyErr_Occurred()) SWIG_fail; | |
32192 | } | |
32193 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBPosition, 1); | |
32194 | return resultobj; | |
32195 | fail: | |
32196 | return NULL; | |
32197 | } | |
32198 | ||
32199 | ||
32200 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32201 | PyObject *resultobj; | |
32202 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32203 | int result; | |
32204 | PyObject * obj0 = 0 ; | |
32205 | char *kwnames[] = { | |
32206 | (char *) "self", NULL | |
32207 | }; | |
32208 | ||
32209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
32210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32211 | { | |
32212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32213 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
32214 | ||
32215 | wxPyEndAllowThreads(__tstate); | |
32216 | if (PyErr_Occurred()) SWIG_fail; | |
32217 | } | |
32218 | resultobj = PyInt_FromLong((long)result); | |
32219 | return resultobj; | |
32220 | fail: | |
32221 | return NULL; | |
32222 | } | |
32223 | ||
32224 | ||
32225 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32226 | PyObject *resultobj; | |
32227 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32228 | int result; | |
32229 | PyObject * obj0 = 0 ; | |
32230 | char *kwnames[] = { | |
32231 | (char *) "self", NULL | |
32232 | }; | |
32233 | ||
32234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
32235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32236 | { | |
32237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32238 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
32239 | ||
32240 | wxPyEndAllowThreads(__tstate); | |
32241 | if (PyErr_Occurred()) SWIG_fail; | |
32242 | } | |
32243 | resultobj = PyInt_FromLong((long)result); | |
32244 | return resultobj; | |
32245 | fail: | |
32246 | return NULL; | |
32247 | } | |
32248 | ||
32249 | ||
32250 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32251 | PyObject *resultobj; | |
32252 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32253 | int arg2 ; | |
32254 | PyObject * obj0 = 0 ; | |
32255 | char *kwnames[] = { | |
32256 | (char *) "self",(char *) "row", NULL | |
32257 | }; | |
32258 | ||
32259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBPosition_SetRow",kwnames,&obj0,&arg2)) goto fail; | |
32260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32261 | { | |
32262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32263 | (arg1)->SetRow(arg2); | |
32264 | ||
32265 | wxPyEndAllowThreads(__tstate); | |
32266 | if (PyErr_Occurred()) SWIG_fail; | |
32267 | } | |
32268 | Py_INCREF(Py_None); resultobj = Py_None; | |
32269 | return resultobj; | |
32270 | fail: | |
32271 | return NULL; | |
32272 | } | |
32273 | ||
32274 | ||
32275 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32276 | PyObject *resultobj; | |
32277 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32278 | int arg2 ; | |
32279 | PyObject * obj0 = 0 ; | |
32280 | char *kwnames[] = { | |
32281 | (char *) "self",(char *) "col", NULL | |
32282 | }; | |
32283 | ||
32284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBPosition_SetCol",kwnames,&obj0,&arg2)) goto fail; | |
32285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32286 | { | |
32287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32288 | (arg1)->SetCol(arg2); | |
32289 | ||
32290 | wxPyEndAllowThreads(__tstate); | |
32291 | if (PyErr_Occurred()) SWIG_fail; | |
32292 | } | |
32293 | Py_INCREF(Py_None); resultobj = Py_None; | |
32294 | return resultobj; | |
32295 | fail: | |
32296 | return NULL; | |
32297 | } | |
32298 | ||
32299 | ||
32300 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32301 | PyObject *resultobj; | |
32302 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32303 | wxGBPosition *arg2 = 0 ; | |
32304 | bool result; | |
32305 | wxGBPosition temp2 ; | |
32306 | PyObject * obj0 = 0 ; | |
32307 | PyObject * obj1 = 0 ; | |
32308 | char *kwnames[] = { | |
32309 | (char *) "self",(char *) "p", NULL | |
32310 | }; | |
32311 | ||
32312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
32313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32314 | { | |
32315 | arg2 = &temp2; | |
32316 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32317 | } | |
32318 | { | |
32319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32320 | result = (bool)((wxGBPosition const *)arg1)->operator ==((wxGBPosition const &)*arg2); | |
32321 | ||
32322 | wxPyEndAllowThreads(__tstate); | |
32323 | if (PyErr_Occurred()) SWIG_fail; | |
32324 | } | |
32325 | resultobj = PyInt_FromLong((long)result); | |
32326 | return resultobj; | |
32327 | fail: | |
32328 | return NULL; | |
32329 | } | |
32330 | ||
32331 | ||
32332 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32333 | PyObject *resultobj; | |
32334 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32335 | wxGBPosition *arg2 = 0 ; | |
32336 | bool result; | |
32337 | wxGBPosition temp2 ; | |
32338 | PyObject * obj0 = 0 ; | |
32339 | PyObject * obj1 = 0 ; | |
32340 | char *kwnames[] = { | |
32341 | (char *) "self",(char *) "p", NULL | |
32342 | }; | |
32343 | ||
32344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
32345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32346 | { | |
32347 | arg2 = &temp2; | |
32348 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32349 | } | |
32350 | { | |
32351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32352 | result = (bool)((wxGBPosition const *)arg1)->operator !=((wxGBPosition const &)*arg2); | |
32353 | ||
32354 | wxPyEndAllowThreads(__tstate); | |
32355 | if (PyErr_Occurred()) SWIG_fail; | |
32356 | } | |
32357 | resultobj = PyInt_FromLong((long)result); | |
32358 | return resultobj; | |
32359 | fail: | |
32360 | return NULL; | |
32361 | } | |
32362 | ||
32363 | ||
32364 | static PyObject *_wrap_GBPosition_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32365 | PyObject *resultobj; | |
32366 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32367 | PyObject *result; | |
32368 | PyObject * obj0 = 0 ; | |
32369 | char *kwnames[] = { | |
32370 | (char *) "self", NULL | |
32371 | }; | |
32372 | ||
32373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_asTuple",kwnames,&obj0)) goto fail; | |
32374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32375 | { | |
32376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32377 | result = (PyObject *)wxGBPosition_asTuple(arg1); | |
32378 | ||
32379 | wxPyEndAllowThreads(__tstate); | |
32380 | if (PyErr_Occurred()) SWIG_fail; | |
32381 | } | |
32382 | resultobj = result; | |
32383 | return resultobj; | |
32384 | fail: | |
32385 | return NULL; | |
32386 | } | |
32387 | ||
32388 | ||
32389 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
32390 | PyObject *obj; | |
32391 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32392 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
32393 | Py_INCREF(obj); | |
32394 | return Py_BuildValue((char *)""); | |
32395 | } | |
32396 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32397 | PyObject *resultobj; | |
32398 | int arg1 = (int) 1 ; | |
32399 | int arg2 = (int) 1 ; | |
32400 | wxGBSpan *result; | |
32401 | char *kwnames[] = { | |
32402 | (char *) "rowspan",(char *) "colspan", NULL | |
32403 | }; | |
32404 | ||
32405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GBSpan",kwnames,&arg1,&arg2)) goto fail; | |
32406 | { | |
32407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32408 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
32409 | ||
32410 | wxPyEndAllowThreads(__tstate); | |
32411 | if (PyErr_Occurred()) SWIG_fail; | |
32412 | } | |
32413 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSpan, 1); | |
32414 | return resultobj; | |
32415 | fail: | |
32416 | return NULL; | |
32417 | } | |
32418 | ||
32419 | ||
32420 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32421 | PyObject *resultobj; | |
32422 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32423 | int result; | |
32424 | PyObject * obj0 = 0 ; | |
32425 | char *kwnames[] = { | |
32426 | (char *) "self", NULL | |
32427 | }; | |
32428 | ||
32429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
32430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32431 | { | |
32432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32433 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
32434 | ||
32435 | wxPyEndAllowThreads(__tstate); | |
32436 | if (PyErr_Occurred()) SWIG_fail; | |
32437 | } | |
32438 | resultobj = PyInt_FromLong((long)result); | |
32439 | return resultobj; | |
32440 | fail: | |
32441 | return NULL; | |
32442 | } | |
32443 | ||
32444 | ||
32445 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32446 | PyObject *resultobj; | |
32447 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32448 | int result; | |
32449 | PyObject * obj0 = 0 ; | |
32450 | char *kwnames[] = { | |
32451 | (char *) "self", NULL | |
32452 | }; | |
32453 | ||
32454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
32455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32456 | { | |
32457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32458 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
32459 | ||
32460 | wxPyEndAllowThreads(__tstate); | |
32461 | if (PyErr_Occurred()) SWIG_fail; | |
32462 | } | |
32463 | resultobj = PyInt_FromLong((long)result); | |
32464 | return resultobj; | |
32465 | fail: | |
32466 | return NULL; | |
32467 | } | |
32468 | ||
32469 | ||
32470 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32471 | PyObject *resultobj; | |
32472 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32473 | int arg2 ; | |
32474 | PyObject * obj0 = 0 ; | |
32475 | char *kwnames[] = { | |
32476 | (char *) "self",(char *) "rowspan", NULL | |
32477 | }; | |
32478 | ||
32479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBSpan_SetRowspan",kwnames,&obj0,&arg2)) goto fail; | |
32480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32481 | { | |
32482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32483 | (arg1)->SetRowspan(arg2); | |
32484 | ||
32485 | wxPyEndAllowThreads(__tstate); | |
32486 | if (PyErr_Occurred()) SWIG_fail; | |
32487 | } | |
32488 | Py_INCREF(Py_None); resultobj = Py_None; | |
32489 | return resultobj; | |
32490 | fail: | |
32491 | return NULL; | |
32492 | } | |
32493 | ||
32494 | ||
32495 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32496 | PyObject *resultobj; | |
32497 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32498 | int arg2 ; | |
32499 | PyObject * obj0 = 0 ; | |
32500 | char *kwnames[] = { | |
32501 | (char *) "self",(char *) "colspan", NULL | |
32502 | }; | |
32503 | ||
32504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBSpan_SetColspan",kwnames,&obj0,&arg2)) goto fail; | |
32505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32506 | { | |
32507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32508 | (arg1)->SetColspan(arg2); | |
32509 | ||
32510 | wxPyEndAllowThreads(__tstate); | |
32511 | if (PyErr_Occurred()) SWIG_fail; | |
32512 | } | |
32513 | Py_INCREF(Py_None); resultobj = Py_None; | |
32514 | return resultobj; | |
32515 | fail: | |
32516 | return NULL; | |
32517 | } | |
32518 | ||
32519 | ||
32520 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32521 | PyObject *resultobj; | |
32522 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32523 | wxGBSpan *arg2 = 0 ; | |
32524 | bool result; | |
32525 | wxGBSpan temp2 ; | |
32526 | PyObject * obj0 = 0 ; | |
32527 | PyObject * obj1 = 0 ; | |
32528 | char *kwnames[] = { | |
32529 | (char *) "self",(char *) "o", NULL | |
32530 | }; | |
32531 | ||
32532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
32533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32534 | { | |
32535 | arg2 = &temp2; | |
32536 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
32537 | } | |
32538 | { | |
32539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32540 | result = (bool)((wxGBSpan const *)arg1)->operator ==((wxGBSpan const &)*arg2); | |
32541 | ||
32542 | wxPyEndAllowThreads(__tstate); | |
32543 | if (PyErr_Occurred()) SWIG_fail; | |
32544 | } | |
32545 | resultobj = PyInt_FromLong((long)result); | |
32546 | return resultobj; | |
32547 | fail: | |
32548 | return NULL; | |
32549 | } | |
32550 | ||
32551 | ||
32552 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32553 | PyObject *resultobj; | |
32554 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32555 | wxGBSpan *arg2 = 0 ; | |
32556 | bool result; | |
32557 | wxGBSpan temp2 ; | |
32558 | PyObject * obj0 = 0 ; | |
32559 | PyObject * obj1 = 0 ; | |
32560 | char *kwnames[] = { | |
32561 | (char *) "self",(char *) "o", NULL | |
32562 | }; | |
32563 | ||
32564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
32565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32566 | { | |
32567 | arg2 = &temp2; | |
32568 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
32569 | } | |
32570 | { | |
32571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32572 | result = (bool)((wxGBSpan const *)arg1)->operator !=((wxGBSpan const &)*arg2); | |
32573 | ||
32574 | wxPyEndAllowThreads(__tstate); | |
32575 | if (PyErr_Occurred()) SWIG_fail; | |
32576 | } | |
32577 | resultobj = PyInt_FromLong((long)result); | |
32578 | return resultobj; | |
32579 | fail: | |
32580 | return NULL; | |
32581 | } | |
32582 | ||
32583 | ||
32584 | static PyObject *_wrap_GBSpan_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32585 | PyObject *resultobj; | |
32586 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32587 | PyObject *result; | |
32588 | PyObject * obj0 = 0 ; | |
32589 | char *kwnames[] = { | |
32590 | (char *) "self", NULL | |
32591 | }; | |
32592 | ||
32593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_asTuple",kwnames,&obj0)) goto fail; | |
32594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32595 | { | |
32596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32597 | result = (PyObject *)wxGBSpan_asTuple(arg1); | |
32598 | ||
32599 | wxPyEndAllowThreads(__tstate); | |
32600 | if (PyErr_Occurred()) SWIG_fail; | |
32601 | } | |
32602 | resultobj = result; | |
32603 | return resultobj; | |
32604 | fail: | |
32605 | return NULL; | |
32606 | } | |
32607 | ||
32608 | ||
32609 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
32610 | PyObject *obj; | |
32611 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32612 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
32613 | Py_INCREF(obj); | |
32614 | return Py_BuildValue((char *)""); | |
32615 | } | |
32616 | static int _wrap_DefaultSpan_set(PyObject *_val) { | |
32617 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); | |
32618 | return 1; | |
32619 | } | |
32620 | ||
32621 | ||
32622 | static PyObject *_wrap_DefaultSpan_get() { | |
32623 | PyObject *pyobj; | |
32624 | ||
32625 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSpan, SWIGTYPE_p_wxGBSpan, 0); | |
32626 | return pyobj; | |
32627 | } | |
32628 | ||
32629 | ||
32630 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32631 | PyObject *resultobj; | |
32632 | wxGBSizerItem *result; | |
32633 | char *kwnames[] = { | |
32634 | NULL | |
32635 | }; | |
32636 | ||
32637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
32638 | { | |
32639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32640 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
32641 | ||
32642 | wxPyEndAllowThreads(__tstate); | |
32643 | if (PyErr_Occurred()) SWIG_fail; | |
32644 | } | |
32645 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
32646 | return resultobj; | |
32647 | fail: | |
32648 | return NULL; | |
32649 | } | |
32650 | ||
32651 | ||
32652 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32653 | PyObject *resultobj; | |
32654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32655 | wxGBPosition *arg2 = 0 ; | |
32656 | wxGBSpan *arg3 = 0 ; | |
32657 | int arg4 ; | |
32658 | int arg5 ; | |
32659 | wxObject *arg6 = (wxObject *) 0 ; | |
32660 | wxGBSizerItem *result; | |
32661 | wxGBPosition temp2 ; | |
32662 | wxGBSpan temp3 ; | |
32663 | PyObject * obj0 = 0 ; | |
32664 | PyObject * obj1 = 0 ; | |
32665 | PyObject * obj2 = 0 ; | |
32666 | PyObject * obj5 = 0 ; | |
32667 | char *kwnames[] = { | |
32668 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32669 | }; | |
32670 | ||
32671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOiiO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
32672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32673 | { | |
32674 | arg2 = &temp2; | |
32675 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32676 | } | |
32677 | { | |
32678 | arg3 = &temp3; | |
32679 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
32680 | } | |
32681 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32682 | { | |
32683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32684 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
32685 | ||
32686 | wxPyEndAllowThreads(__tstate); | |
32687 | if (PyErr_Occurred()) SWIG_fail; | |
32688 | } | |
32689 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
32690 | return resultobj; | |
32691 | fail: | |
32692 | return NULL; | |
32693 | } | |
32694 | ||
32695 | ||
32696 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32697 | PyObject *resultobj; | |
32698 | wxSizer *arg1 = (wxSizer *) 0 ; | |
32699 | wxGBPosition *arg2 = 0 ; | |
32700 | wxGBSpan *arg3 = 0 ; | |
32701 | int arg4 ; | |
32702 | int arg5 ; | |
32703 | wxObject *arg6 = (wxObject *) 0 ; | |
32704 | wxGBSizerItem *result; | |
32705 | wxGBPosition temp2 ; | |
32706 | wxGBSpan temp3 ; | |
32707 | PyObject * obj0 = 0 ; | |
32708 | PyObject * obj1 = 0 ; | |
32709 | PyObject * obj2 = 0 ; | |
32710 | PyObject * obj5 = 0 ; | |
32711 | char *kwnames[] = { | |
32712 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32713 | }; | |
32714 | ||
32715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOiiO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
32716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32717 | { | |
32718 | arg2 = &temp2; | |
32719 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32720 | } | |
32721 | { | |
32722 | arg3 = &temp3; | |
32723 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
32724 | } | |
32725 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32726 | { | |
32727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32728 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
32729 | ||
32730 | wxPyEndAllowThreads(__tstate); | |
32731 | if (PyErr_Occurred()) SWIG_fail; | |
32732 | } | |
32733 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
32734 | return resultobj; | |
32735 | fail: | |
32736 | return NULL; | |
32737 | } | |
32738 | ||
32739 | ||
32740 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32741 | PyObject *resultobj; | |
32742 | int arg1 ; | |
32743 | int arg2 ; | |
32744 | wxGBPosition *arg3 = 0 ; | |
32745 | wxGBSpan *arg4 = 0 ; | |
32746 | int arg5 ; | |
32747 | int arg6 ; | |
32748 | wxObject *arg7 = (wxObject *) 0 ; | |
32749 | wxGBSizerItem *result; | |
32750 | wxGBPosition temp3 ; | |
32751 | wxGBSpan temp4 ; | |
32752 | PyObject * obj2 = 0 ; | |
32753 | PyObject * obj3 = 0 ; | |
32754 | PyObject * obj6 = 0 ; | |
32755 | char *kwnames[] = { | |
32756 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32757 | }; | |
32758 | ||
32759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiOOiiO:new_GBSizerItemSpacer",kwnames,&arg1,&arg2,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
32760 | { | |
32761 | arg3 = &temp3; | |
32762 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
32763 | } | |
32764 | { | |
32765 | arg4 = &temp4; | |
32766 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
32767 | } | |
32768 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32769 | { | |
32770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32771 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
32772 | ||
32773 | wxPyEndAllowThreads(__tstate); | |
32774 | if (PyErr_Occurred()) SWIG_fail; | |
32775 | } | |
32776 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
32777 | return resultobj; | |
32778 | fail: | |
32779 | return NULL; | |
32780 | } | |
32781 | ||
32782 | ||
32783 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32784 | PyObject *resultobj; | |
32785 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
32786 | wxGBPosition result; | |
32787 | PyObject * obj0 = 0 ; | |
32788 | char *kwnames[] = { | |
32789 | (char *) "self", NULL | |
32790 | }; | |
32791 | ||
32792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
32793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32794 | { | |
32795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32796 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
32797 | ||
32798 | wxPyEndAllowThreads(__tstate); | |
32799 | if (PyErr_Occurred()) SWIG_fail; | |
32800 | } | |
32801 | { | |
32802 | wxGBPosition * resultptr; | |
32803 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
32804 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
32805 | } | |
32806 | return resultobj; | |
32807 | fail: | |
32808 | return NULL; | |
32809 | } | |
32810 | ||
32811 | ||
32812 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32813 | PyObject *resultobj; | |
32814 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
32815 | wxGBSpan result; | |
32816 | PyObject * obj0 = 0 ; | |
32817 | char *kwnames[] = { | |
32818 | (char *) "self", NULL | |
32819 | }; | |
32820 | ||
32821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
32822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32823 | { | |
32824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32825 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
32826 | ||
32827 | wxPyEndAllowThreads(__tstate); | |
32828 | if (PyErr_Occurred()) SWIG_fail; | |
32829 | } | |
32830 | { | |
32831 | wxGBSpan * resultptr; | |
32832 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
32833 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
32834 | } | |
32835 | return resultobj; | |
32836 | fail: | |
32837 | return NULL; | |
32838 | } | |
32839 | ||
32840 | ||
32841 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32842 | PyObject *resultobj; | |
32843 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
32844 | wxGBPosition *arg2 = 0 ; | |
32845 | bool result; | |
32846 | wxGBPosition temp2 ; | |
32847 | PyObject * obj0 = 0 ; | |
32848 | PyObject * obj1 = 0 ; | |
32849 | char *kwnames[] = { | |
32850 | (char *) "self",(char *) "pos", NULL | |
32851 | }; | |
32852 | ||
32853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
32854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32855 | { | |
32856 | arg2 = &temp2; | |
32857 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32858 | } | |
32859 | { | |
32860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32861 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
32862 | ||
32863 | wxPyEndAllowThreads(__tstate); | |
32864 | if (PyErr_Occurred()) SWIG_fail; | |
32865 | } | |
32866 | resultobj = PyInt_FromLong((long)result); | |
32867 | return resultobj; | |
32868 | fail: | |
32869 | return NULL; | |
32870 | } | |
32871 | ||
32872 | ||
32873 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32874 | PyObject *resultobj; | |
32875 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
32876 | wxGBSpan *arg2 = 0 ; | |
32877 | bool result; | |
32878 | wxGBSpan temp2 ; | |
32879 | PyObject * obj0 = 0 ; | |
32880 | PyObject * obj1 = 0 ; | |
32881 | char *kwnames[] = { | |
32882 | (char *) "self",(char *) "span", NULL | |
32883 | }; | |
32884 | ||
32885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
32886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32887 | { | |
32888 | arg2 = &temp2; | |
32889 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
32890 | } | |
32891 | { | |
32892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32893 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
32894 | ||
32895 | wxPyEndAllowThreads(__tstate); | |
32896 | if (PyErr_Occurred()) SWIG_fail; | |
32897 | } | |
32898 | resultobj = PyInt_FromLong((long)result); | |
32899 | return resultobj; | |
32900 | fail: | |
32901 | return NULL; | |
32902 | } | |
32903 | ||
32904 | ||
32905 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
32906 | PyObject *resultobj; | |
32907 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
32908 | wxGBSizerItem *arg2 = 0 ; | |
32909 | bool result; | |
32910 | PyObject * obj0 = 0 ; | |
32911 | PyObject * obj1 = 0 ; | |
32912 | ||
32913 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
32914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32915 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32916 | if (arg2 == NULL) { | |
32917 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
32918 | } | |
32919 | { | |
32920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32921 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
32922 | ||
32923 | wxPyEndAllowThreads(__tstate); | |
32924 | if (PyErr_Occurred()) SWIG_fail; | |
32925 | } | |
32926 | resultobj = PyInt_FromLong((long)result); | |
32927 | return resultobj; | |
32928 | fail: | |
32929 | return NULL; | |
32930 | } | |
32931 | ||
32932 | ||
32933 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
32934 | PyObject *resultobj; | |
32935 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
32936 | wxGBPosition *arg2 = 0 ; | |
32937 | wxGBSpan *arg3 = 0 ; | |
32938 | bool result; | |
32939 | wxGBPosition temp2 ; | |
32940 | wxGBSpan temp3 ; | |
32941 | PyObject * obj0 = 0 ; | |
32942 | PyObject * obj1 = 0 ; | |
32943 | PyObject * obj2 = 0 ; | |
32944 | ||
32945 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
32946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32947 | { | |
32948 | arg2 = &temp2; | |
32949 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32950 | } | |
32951 | { | |
32952 | arg3 = &temp3; | |
32953 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
32954 | } | |
32955 | { | |
32956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32957 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
32958 | ||
32959 | wxPyEndAllowThreads(__tstate); | |
32960 | if (PyErr_Occurred()) SWIG_fail; | |
32961 | } | |
32962 | resultobj = PyInt_FromLong((long)result); | |
32963 | return resultobj; | |
32964 | fail: | |
32965 | return NULL; | |
32966 | } | |
32967 | ||
32968 | ||
32969 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
32970 | int argc; | |
32971 | PyObject *argv[4]; | |
32972 | int ii; | |
32973 | ||
32974 | argc = PyObject_Length(args); | |
32975 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
32976 | argv[ii] = PyTuple_GetItem(args,ii); | |
32977 | } | |
32978 | if (argc == 2) { | |
32979 | int _v; | |
32980 | { | |
32981 | void *ptr; | |
32982 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
32983 | _v = 0; | |
32984 | PyErr_Clear(); | |
32985 | } else { | |
32986 | _v = 1; | |
32987 | } | |
32988 | } | |
32989 | if (_v) { | |
32990 | { | |
32991 | void *ptr; | |
32992 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
32993 | _v = 0; | |
32994 | PyErr_Clear(); | |
32995 | } else { | |
32996 | _v = 1; | |
32997 | } | |
32998 | } | |
32999 | if (_v) { | |
33000 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
33001 | } | |
33002 | } | |
33003 | } | |
33004 | if (argc == 3) { | |
33005 | int _v; | |
33006 | { | |
33007 | void *ptr; | |
33008 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
33009 | _v = 0; | |
33010 | PyErr_Clear(); | |
33011 | } else { | |
33012 | _v = 1; | |
33013 | } | |
33014 | } | |
33015 | if (_v) { | |
33016 | { | |
33017 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
33018 | } | |
33019 | if (_v) { | |
33020 | { | |
33021 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
33022 | } | |
33023 | if (_v) { | |
33024 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
33025 | } | |
33026 | } | |
33027 | } | |
33028 | } | |
33029 | ||
33030 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
33031 | return NULL; | |
33032 | } | |
33033 | ||
33034 | ||
33035 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33036 | PyObject *resultobj; | |
33037 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33038 | int *arg2 = 0 ; | |
33039 | int *arg3 = 0 ; | |
33040 | PyObject * obj0 = 0 ; | |
33041 | PyObject * obj1 = 0 ; | |
33042 | PyObject * obj2 = 0 ; | |
33043 | char *kwnames[] = { | |
33044 | (char *) "self",(char *) "row",(char *) "col", NULL | |
33045 | }; | |
33046 | ||
33047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33049 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33050 | if (arg2 == NULL) { | |
33051 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
33052 | } | |
33053 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33054 | if (arg3 == NULL) { | |
33055 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
33056 | } | |
33057 | { | |
33058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33059 | (arg1)->GetEndPos(*arg2,*arg3); | |
33060 | ||
33061 | wxPyEndAllowThreads(__tstate); | |
33062 | if (PyErr_Occurred()) SWIG_fail; | |
33063 | } | |
33064 | Py_INCREF(Py_None); resultobj = Py_None; | |
33065 | return resultobj; | |
33066 | fail: | |
33067 | return NULL; | |
33068 | } | |
33069 | ||
33070 | ||
33071 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33072 | PyObject *resultobj; | |
33073 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33074 | wxGridBagSizer *result; | |
33075 | PyObject * obj0 = 0 ; | |
33076 | char *kwnames[] = { | |
33077 | (char *) "self", NULL | |
33078 | }; | |
33079 | ||
33080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
33081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33082 | { | |
33083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33084 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
33085 | ||
33086 | wxPyEndAllowThreads(__tstate); | |
33087 | if (PyErr_Occurred()) SWIG_fail; | |
33088 | } | |
33089 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 0); | |
33090 | return resultobj; | |
33091 | fail: | |
33092 | return NULL; | |
33093 | } | |
33094 | ||
33095 | ||
33096 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33097 | PyObject *resultobj; | |
33098 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33099 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
33100 | PyObject * obj0 = 0 ; | |
33101 | PyObject * obj1 = 0 ; | |
33102 | char *kwnames[] = { | |
33103 | (char *) "self",(char *) "sizer", NULL | |
33104 | }; | |
33105 | ||
33106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
33107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33108 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33109 | { | |
33110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33111 | (arg1)->SetGBSizer(arg2); | |
33112 | ||
33113 | wxPyEndAllowThreads(__tstate); | |
33114 | if (PyErr_Occurred()) SWIG_fail; | |
33115 | } | |
33116 | Py_INCREF(Py_None); resultobj = Py_None; | |
33117 | return resultobj; | |
33118 | fail: | |
33119 | return NULL; | |
33120 | } | |
33121 | ||
33122 | ||
33123 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
33124 | PyObject *obj; | |
33125 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33126 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
33127 | Py_INCREF(obj); | |
33128 | return Py_BuildValue((char *)""); | |
33129 | } | |
33130 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33131 | PyObject *resultobj; | |
33132 | int arg1 = (int) 0 ; | |
33133 | int arg2 = (int) 0 ; | |
33134 | wxGridBagSizer *result; | |
33135 | char *kwnames[] = { | |
33136 | (char *) "vgap",(char *) "hgap", NULL | |
33137 | }; | |
33138 | ||
33139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridBagSizer",kwnames,&arg1,&arg2)) goto fail; | |
33140 | { | |
33141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33142 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
33143 | ||
33144 | wxPyEndAllowThreads(__tstate); | |
33145 | if (PyErr_Occurred()) SWIG_fail; | |
33146 | } | |
33147 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 1); | |
33148 | return resultobj; | |
33149 | fail: | |
33150 | return NULL; | |
33151 | } | |
33152 | ||
33153 | ||
33154 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33155 | PyObject *resultobj; | |
33156 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33157 | PyObject *arg2 = (PyObject *) 0 ; | |
33158 | wxGBPosition *arg3 = 0 ; | |
33159 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
33160 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
33161 | int arg5 = (int) 0 ; | |
33162 | int arg6 = (int) 0 ; | |
33163 | PyObject *arg7 = (PyObject *) NULL ; | |
33164 | bool result; | |
33165 | wxGBPosition temp3 ; | |
33166 | wxGBSpan temp4 ; | |
33167 | PyObject * obj0 = 0 ; | |
33168 | PyObject * obj1 = 0 ; | |
33169 | PyObject * obj2 = 0 ; | |
33170 | PyObject * obj3 = 0 ; | |
33171 | PyObject * obj6 = 0 ; | |
33172 | char *kwnames[] = { | |
33173 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33174 | }; | |
33175 | ||
33176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
33177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33178 | arg2 = obj1; | |
33179 | { | |
33180 | arg3 = &temp3; | |
33181 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
33182 | } | |
33183 | if (obj3) { | |
33184 | { | |
33185 | arg4 = &temp4; | |
33186 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
33187 | } | |
33188 | } | |
33189 | if (obj6) { | |
33190 | arg7 = obj6; | |
33191 | } | |
33192 | { | |
33193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33194 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
33195 | ||
33196 | wxPyEndAllowThreads(__tstate); | |
33197 | if (PyErr_Occurred()) SWIG_fail; | |
33198 | } | |
33199 | resultobj = PyInt_FromLong((long)result); | |
33200 | return resultobj; | |
33201 | fail: | |
33202 | return NULL; | |
33203 | } | |
33204 | ||
33205 | ||
33206 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33207 | PyObject *resultobj; | |
33208 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33209 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
33210 | bool result; | |
33211 | PyObject * obj0 = 0 ; | |
33212 | PyObject * obj1 = 0 ; | |
33213 | char *kwnames[] = { | |
33214 | (char *) "self",(char *) "item", NULL | |
33215 | }; | |
33216 | ||
33217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
33218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33219 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33220 | { | |
33221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33222 | result = (bool)(arg1)->Add(arg2); | |
33223 | ||
33224 | wxPyEndAllowThreads(__tstate); | |
33225 | if (PyErr_Occurred()) SWIG_fail; | |
33226 | } | |
33227 | resultobj = PyInt_FromLong((long)result); | |
33228 | return resultobj; | |
33229 | fail: | |
33230 | return NULL; | |
33231 | } | |
33232 | ||
33233 | ||
33234 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33235 | PyObject *resultobj; | |
33236 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33237 | wxSize result; | |
33238 | PyObject * obj0 = 0 ; | |
33239 | char *kwnames[] = { | |
33240 | (char *) "self", NULL | |
33241 | }; | |
33242 | ||
33243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
33244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33245 | { | |
33246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33247 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
33248 | ||
33249 | wxPyEndAllowThreads(__tstate); | |
33250 | if (PyErr_Occurred()) SWIG_fail; | |
33251 | } | |
33252 | { | |
33253 | wxSize * resultptr; | |
33254 | resultptr = new wxSize((wxSize &) result); | |
33255 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33256 | } | |
33257 | return resultobj; | |
33258 | fail: | |
33259 | return NULL; | |
33260 | } | |
33261 | ||
33262 | ||
33263 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33264 | PyObject *resultobj; | |
33265 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33266 | wxSize *arg2 = 0 ; | |
33267 | wxSize temp2 ; | |
33268 | PyObject * obj0 = 0 ; | |
33269 | PyObject * obj1 = 0 ; | |
33270 | char *kwnames[] = { | |
33271 | (char *) "self",(char *) "sz", NULL | |
33272 | }; | |
33273 | ||
33274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
33275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33276 | { | |
33277 | arg2 = &temp2; | |
33278 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33279 | } | |
33280 | { | |
33281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33282 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
33283 | ||
33284 | wxPyEndAllowThreads(__tstate); | |
33285 | if (PyErr_Occurred()) SWIG_fail; | |
33286 | } | |
33287 | Py_INCREF(Py_None); resultobj = Py_None; | |
33288 | return resultobj; | |
33289 | fail: | |
33290 | return NULL; | |
33291 | } | |
33292 | ||
33293 | ||
33294 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
33295 | PyObject *resultobj; | |
33296 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33297 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33298 | wxGBPosition result; | |
33299 | PyObject * obj0 = 0 ; | |
33300 | PyObject * obj1 = 0 ; | |
33301 | ||
33302 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
33303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33304 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33305 | { | |
33306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33307 | result = (arg1)->GetItemPosition(arg2); | |
33308 | ||
33309 | wxPyEndAllowThreads(__tstate); | |
33310 | if (PyErr_Occurred()) SWIG_fail; | |
33311 | } | |
33312 | { | |
33313 | wxGBPosition * resultptr; | |
33314 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33315 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33316 | } | |
33317 | return resultobj; | |
33318 | fail: | |
33319 | return NULL; | |
33320 | } | |
33321 | ||
33322 | ||
33323 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
33324 | PyObject *resultobj; | |
33325 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33326 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33327 | wxGBPosition result; | |
33328 | PyObject * obj0 = 0 ; | |
33329 | PyObject * obj1 = 0 ; | |
33330 | ||
33331 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
33332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33333 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33334 | { | |
33335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33336 | result = (arg1)->GetItemPosition(arg2); | |
33337 | ||
33338 | wxPyEndAllowThreads(__tstate); | |
33339 | if (PyErr_Occurred()) SWIG_fail; | |
33340 | } | |
33341 | { | |
33342 | wxGBPosition * resultptr; | |
33343 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33344 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33345 | } | |
33346 | return resultobj; | |
33347 | fail: | |
33348 | return NULL; | |
33349 | } | |
33350 | ||
33351 | ||
33352 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
33353 | PyObject *resultobj; | |
33354 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33355 | size_t arg2 ; | |
33356 | wxGBPosition result; | |
33357 | PyObject * obj0 = 0 ; | |
33358 | PyObject * obj1 = 0 ; | |
33359 | ||
33360 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
33361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33362 | arg2 = (size_t) PyInt_AsLong(obj1); | |
33363 | if (PyErr_Occurred()) SWIG_fail; | |
33364 | { | |
33365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33366 | result = (arg1)->GetItemPosition(arg2); | |
33367 | ||
33368 | wxPyEndAllowThreads(__tstate); | |
33369 | if (PyErr_Occurred()) SWIG_fail; | |
33370 | } | |
33371 | { | |
33372 | wxGBPosition * resultptr; | |
33373 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33374 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33375 | } | |
33376 | return resultobj; | |
33377 | fail: | |
33378 | return NULL; | |
33379 | } | |
33380 | ||
33381 | ||
33382 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
33383 | int argc; | |
33384 | PyObject *argv[3]; | |
33385 | int ii; | |
33386 | ||
33387 | argc = PyObject_Length(args); | |
33388 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
33389 | argv[ii] = PyTuple_GetItem(args,ii); | |
33390 | } | |
33391 | if (argc == 2) { | |
33392 | int _v; | |
33393 | { | |
33394 | void *ptr; | |
33395 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33396 | _v = 0; | |
33397 | PyErr_Clear(); | |
33398 | } else { | |
33399 | _v = 1; | |
33400 | } | |
33401 | } | |
33402 | if (_v) { | |
33403 | { | |
33404 | void *ptr; | |
33405 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
33406 | _v = 0; | |
33407 | PyErr_Clear(); | |
33408 | } else { | |
33409 | _v = 1; | |
33410 | } | |
33411 | } | |
33412 | if (_v) { | |
33413 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
33414 | } | |
33415 | } | |
33416 | } | |
33417 | if (argc == 2) { | |
33418 | int _v; | |
33419 | { | |
33420 | void *ptr; | |
33421 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33422 | _v = 0; | |
33423 | PyErr_Clear(); | |
33424 | } else { | |
33425 | _v = 1; | |
33426 | } | |
33427 | } | |
33428 | if (_v) { | |
33429 | { | |
33430 | void *ptr; | |
33431 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
33432 | _v = 0; | |
33433 | PyErr_Clear(); | |
33434 | } else { | |
33435 | _v = 1; | |
33436 | } | |
33437 | } | |
33438 | if (_v) { | |
33439 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
33440 | } | |
33441 | } | |
33442 | } | |
33443 | if (argc == 2) { | |
33444 | int _v; | |
33445 | { | |
33446 | void *ptr; | |
33447 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33448 | _v = 0; | |
33449 | PyErr_Clear(); | |
33450 | } else { | |
33451 | _v = 1; | |
33452 | } | |
33453 | } | |
33454 | if (_v) { | |
33455 | { | |
33456 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
33457 | } | |
33458 | if (_v) { | |
33459 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
33460 | } | |
33461 | } | |
33462 | } | |
33463 | ||
33464 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
33465 | return NULL; | |
33466 | } | |
33467 | ||
33468 | ||
33469 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
33470 | PyObject *resultobj; | |
33471 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33472 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33473 | wxGBPosition *arg3 = 0 ; | |
33474 | bool result; | |
33475 | wxGBPosition temp3 ; | |
33476 | PyObject * obj0 = 0 ; | |
33477 | PyObject * obj1 = 0 ; | |
33478 | PyObject * obj2 = 0 ; | |
33479 | ||
33480 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
33481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33482 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33483 | { | |
33484 | arg3 = &temp3; | |
33485 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
33486 | } | |
33487 | { | |
33488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33489 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
33490 | ||
33491 | wxPyEndAllowThreads(__tstate); | |
33492 | if (PyErr_Occurred()) SWIG_fail; | |
33493 | } | |
33494 | resultobj = PyInt_FromLong((long)result); | |
33495 | return resultobj; | |
33496 | fail: | |
33497 | return NULL; | |
33498 | } | |
33499 | ||
33500 | ||
33501 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
33502 | PyObject *resultobj; | |
33503 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33504 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33505 | wxGBPosition *arg3 = 0 ; | |
33506 | bool result; | |
33507 | wxGBPosition temp3 ; | |
33508 | PyObject * obj0 = 0 ; | |
33509 | PyObject * obj1 = 0 ; | |
33510 | PyObject * obj2 = 0 ; | |
33511 | ||
33512 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
33513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33514 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33515 | { | |
33516 | arg3 = &temp3; | |
33517 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
33518 | } | |
33519 | { | |
33520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33521 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
33522 | ||
33523 | wxPyEndAllowThreads(__tstate); | |
33524 | if (PyErr_Occurred()) SWIG_fail; | |
33525 | } | |
33526 | resultobj = PyInt_FromLong((long)result); | |
33527 | return resultobj; | |
33528 | fail: | |
33529 | return NULL; | |
33530 | } | |
33531 | ||
33532 | ||
33533 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
33534 | PyObject *resultobj; | |
33535 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33536 | size_t arg2 ; | |
33537 | wxGBPosition *arg3 = 0 ; | |
33538 | bool result; | |
33539 | wxGBPosition temp3 ; | |
33540 | PyObject * obj0 = 0 ; | |
33541 | PyObject * obj1 = 0 ; | |
33542 | PyObject * obj2 = 0 ; | |
33543 | ||
33544 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
33545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33546 | arg2 = (size_t) PyInt_AsLong(obj1); | |
33547 | if (PyErr_Occurred()) SWIG_fail; | |
33548 | { | |
33549 | arg3 = &temp3; | |
33550 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
33551 | } | |
33552 | { | |
33553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33554 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
33555 | ||
33556 | wxPyEndAllowThreads(__tstate); | |
33557 | if (PyErr_Occurred()) SWIG_fail; | |
33558 | } | |
33559 | resultobj = PyInt_FromLong((long)result); | |
33560 | return resultobj; | |
33561 | fail: | |
33562 | return NULL; | |
33563 | } | |
33564 | ||
33565 | ||
33566 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
33567 | int argc; | |
33568 | PyObject *argv[4]; | |
33569 | int ii; | |
33570 | ||
33571 | argc = PyObject_Length(args); | |
33572 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
33573 | argv[ii] = PyTuple_GetItem(args,ii); | |
33574 | } | |
33575 | if (argc == 3) { | |
33576 | int _v; | |
33577 | { | |
33578 | void *ptr; | |
33579 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33580 | _v = 0; | |
33581 | PyErr_Clear(); | |
33582 | } else { | |
33583 | _v = 1; | |
33584 | } | |
33585 | } | |
33586 | if (_v) { | |
33587 | { | |
33588 | void *ptr; | |
33589 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
33590 | _v = 0; | |
33591 | PyErr_Clear(); | |
33592 | } else { | |
33593 | _v = 1; | |
33594 | } | |
33595 | } | |
33596 | if (_v) { | |
33597 | { | |
33598 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
33599 | } | |
33600 | if (_v) { | |
33601 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
33602 | } | |
33603 | } | |
33604 | } | |
33605 | } | |
33606 | if (argc == 3) { | |
33607 | int _v; | |
33608 | { | |
33609 | void *ptr; | |
33610 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33611 | _v = 0; | |
33612 | PyErr_Clear(); | |
33613 | } else { | |
33614 | _v = 1; | |
33615 | } | |
33616 | } | |
33617 | if (_v) { | |
33618 | { | |
33619 | void *ptr; | |
33620 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
33621 | _v = 0; | |
33622 | PyErr_Clear(); | |
33623 | } else { | |
33624 | _v = 1; | |
33625 | } | |
33626 | } | |
33627 | if (_v) { | |
33628 | { | |
33629 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
33630 | } | |
33631 | if (_v) { | |
33632 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
33633 | } | |
33634 | } | |
33635 | } | |
33636 | } | |
33637 | if (argc == 3) { | |
33638 | int _v; | |
33639 | { | |
33640 | void *ptr; | |
33641 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33642 | _v = 0; | |
33643 | PyErr_Clear(); | |
33644 | } else { | |
33645 | _v = 1; | |
33646 | } | |
33647 | } | |
33648 | if (_v) { | |
33649 | { | |
33650 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
33651 | } | |
33652 | if (_v) { | |
33653 | { | |
33654 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
33655 | } | |
33656 | if (_v) { | |
33657 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
33658 | } | |
33659 | } | |
33660 | } | |
33661 | } | |
33662 | ||
33663 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
33664 | return NULL; | |
33665 | } | |
33666 | ||
33667 | ||
33668 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
33669 | PyObject *resultobj; | |
33670 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33671 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33672 | wxGBSpan result; | |
33673 | PyObject * obj0 = 0 ; | |
33674 | PyObject * obj1 = 0 ; | |
33675 | ||
33676 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
33677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33678 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33679 | { | |
33680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33681 | result = (arg1)->GetItemSpan(arg2); | |
33682 | ||
33683 | wxPyEndAllowThreads(__tstate); | |
33684 | if (PyErr_Occurred()) SWIG_fail; | |
33685 | } | |
33686 | { | |
33687 | wxGBSpan * resultptr; | |
33688 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
33689 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
33690 | } | |
33691 | return resultobj; | |
33692 | fail: | |
33693 | return NULL; | |
33694 | } | |
33695 | ||
33696 | ||
33697 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
33698 | PyObject *resultobj; | |
33699 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33700 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33701 | wxGBSpan result; | |
33702 | PyObject * obj0 = 0 ; | |
33703 | PyObject * obj1 = 0 ; | |
33704 | ||
33705 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
33706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33707 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33708 | { | |
33709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33710 | result = (arg1)->GetItemSpan(arg2); | |
33711 | ||
33712 | wxPyEndAllowThreads(__tstate); | |
33713 | if (PyErr_Occurred()) SWIG_fail; | |
33714 | } | |
33715 | { | |
33716 | wxGBSpan * resultptr; | |
33717 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
33718 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
33719 | } | |
33720 | return resultobj; | |
33721 | fail: | |
33722 | return NULL; | |
33723 | } | |
33724 | ||
33725 | ||
33726 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
33727 | PyObject *resultobj; | |
33728 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33729 | size_t arg2 ; | |
33730 | wxGBSpan result; | |
33731 | PyObject * obj0 = 0 ; | |
33732 | PyObject * obj1 = 0 ; | |
33733 | ||
33734 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
33735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33736 | arg2 = (size_t) PyInt_AsLong(obj1); | |
33737 | if (PyErr_Occurred()) SWIG_fail; | |
33738 | { | |
33739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33740 | result = (arg1)->GetItemSpan(arg2); | |
33741 | ||
33742 | wxPyEndAllowThreads(__tstate); | |
33743 | if (PyErr_Occurred()) SWIG_fail; | |
33744 | } | |
33745 | { | |
33746 | wxGBSpan * resultptr; | |
33747 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
33748 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
33749 | } | |
33750 | return resultobj; | |
33751 | fail: | |
33752 | return NULL; | |
33753 | } | |
33754 | ||
33755 | ||
33756 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
33757 | int argc; | |
33758 | PyObject *argv[3]; | |
33759 | int ii; | |
33760 | ||
33761 | argc = PyObject_Length(args); | |
33762 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
33763 | argv[ii] = PyTuple_GetItem(args,ii); | |
33764 | } | |
33765 | if (argc == 2) { | |
33766 | int _v; | |
33767 | { | |
33768 | void *ptr; | |
33769 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33770 | _v = 0; | |
33771 | PyErr_Clear(); | |
33772 | } else { | |
33773 | _v = 1; | |
33774 | } | |
33775 | } | |
33776 | if (_v) { | |
33777 | { | |
33778 | void *ptr; | |
33779 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
33780 | _v = 0; | |
33781 | PyErr_Clear(); | |
33782 | } else { | |
33783 | _v = 1; | |
33784 | } | |
33785 | } | |
33786 | if (_v) { | |
33787 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
33788 | } | |
33789 | } | |
33790 | } | |
33791 | if (argc == 2) { | |
33792 | int _v; | |
33793 | { | |
33794 | void *ptr; | |
33795 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33796 | _v = 0; | |
33797 | PyErr_Clear(); | |
33798 | } else { | |
33799 | _v = 1; | |
33800 | } | |
33801 | } | |
33802 | if (_v) { | |
33803 | { | |
33804 | void *ptr; | |
33805 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
33806 | _v = 0; | |
33807 | PyErr_Clear(); | |
33808 | } else { | |
33809 | _v = 1; | |
33810 | } | |
33811 | } | |
33812 | if (_v) { | |
33813 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
33814 | } | |
33815 | } | |
33816 | } | |
33817 | if (argc == 2) { | |
33818 | int _v; | |
33819 | { | |
33820 | void *ptr; | |
33821 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33822 | _v = 0; | |
33823 | PyErr_Clear(); | |
33824 | } else { | |
33825 | _v = 1; | |
33826 | } | |
33827 | } | |
33828 | if (_v) { | |
33829 | { | |
33830 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
33831 | } | |
33832 | if (_v) { | |
33833 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
33834 | } | |
33835 | } | |
33836 | } | |
33837 | ||
33838 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
33839 | return NULL; | |
33840 | } | |
33841 | ||
33842 | ||
33843 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
33844 | PyObject *resultobj; | |
33845 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33846 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33847 | wxGBSpan *arg3 = 0 ; | |
33848 | bool result; | |
33849 | wxGBSpan temp3 ; | |
33850 | PyObject * obj0 = 0 ; | |
33851 | PyObject * obj1 = 0 ; | |
33852 | PyObject * obj2 = 0 ; | |
33853 | ||
33854 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
33855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33856 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33857 | { | |
33858 | arg3 = &temp3; | |
33859 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
33860 | } | |
33861 | { | |
33862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33863 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
33864 | ||
33865 | wxPyEndAllowThreads(__tstate); | |
33866 | if (PyErr_Occurred()) SWIG_fail; | |
33867 | } | |
33868 | resultobj = PyInt_FromLong((long)result); | |
33869 | return resultobj; | |
33870 | fail: | |
33871 | return NULL; | |
33872 | } | |
33873 | ||
33874 | ||
33875 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
33876 | PyObject *resultobj; | |
33877 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33878 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33879 | wxGBSpan *arg3 = 0 ; | |
33880 | bool result; | |
33881 | wxGBSpan temp3 ; | |
33882 | PyObject * obj0 = 0 ; | |
33883 | PyObject * obj1 = 0 ; | |
33884 | PyObject * obj2 = 0 ; | |
33885 | ||
33886 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
33887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33888 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33889 | { | |
33890 | arg3 = &temp3; | |
33891 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
33892 | } | |
33893 | { | |
33894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33895 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
33896 | ||
33897 | wxPyEndAllowThreads(__tstate); | |
33898 | if (PyErr_Occurred()) SWIG_fail; | |
33899 | } | |
33900 | resultobj = PyInt_FromLong((long)result); | |
33901 | return resultobj; | |
33902 | fail: | |
33903 | return NULL; | |
33904 | } | |
33905 | ||
33906 | ||
33907 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
33908 | PyObject *resultobj; | |
33909 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33910 | size_t arg2 ; | |
33911 | wxGBSpan *arg3 = 0 ; | |
33912 | bool result; | |
33913 | wxGBSpan temp3 ; | |
33914 | PyObject * obj0 = 0 ; | |
33915 | PyObject * obj1 = 0 ; | |
33916 | PyObject * obj2 = 0 ; | |
33917 | ||
33918 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
33919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33920 | arg2 = (size_t) PyInt_AsLong(obj1); | |
33921 | if (PyErr_Occurred()) SWIG_fail; | |
33922 | { | |
33923 | arg3 = &temp3; | |
33924 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
33925 | } | |
33926 | { | |
33927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33928 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
33929 | ||
33930 | wxPyEndAllowThreads(__tstate); | |
33931 | if (PyErr_Occurred()) SWIG_fail; | |
33932 | } | |
33933 | resultobj = PyInt_FromLong((long)result); | |
33934 | return resultobj; | |
33935 | fail: | |
33936 | return NULL; | |
33937 | } | |
33938 | ||
33939 | ||
33940 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
33941 | int argc; | |
33942 | PyObject *argv[4]; | |
33943 | int ii; | |
33944 | ||
33945 | argc = PyObject_Length(args); | |
33946 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
33947 | argv[ii] = PyTuple_GetItem(args,ii); | |
33948 | } | |
33949 | if (argc == 3) { | |
33950 | int _v; | |
33951 | { | |
33952 | void *ptr; | |
33953 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33954 | _v = 0; | |
33955 | PyErr_Clear(); | |
33956 | } else { | |
33957 | _v = 1; | |
33958 | } | |
33959 | } | |
33960 | if (_v) { | |
33961 | { | |
33962 | void *ptr; | |
33963 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
33964 | _v = 0; | |
33965 | PyErr_Clear(); | |
33966 | } else { | |
33967 | _v = 1; | |
33968 | } | |
33969 | } | |
33970 | if (_v) { | |
33971 | { | |
33972 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
33973 | } | |
33974 | if (_v) { | |
33975 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
33976 | } | |
33977 | } | |
33978 | } | |
33979 | } | |
33980 | if (argc == 3) { | |
33981 | int _v; | |
33982 | { | |
33983 | void *ptr; | |
33984 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33985 | _v = 0; | |
33986 | PyErr_Clear(); | |
33987 | } else { | |
33988 | _v = 1; | |
33989 | } | |
33990 | } | |
33991 | if (_v) { | |
33992 | { | |
33993 | void *ptr; | |
33994 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
33995 | _v = 0; | |
33996 | PyErr_Clear(); | |
33997 | } else { | |
33998 | _v = 1; | |
33999 | } | |
34000 | } | |
34001 | if (_v) { | |
34002 | { | |
34003 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34004 | } | |
34005 | if (_v) { | |
34006 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
34007 | } | |
34008 | } | |
34009 | } | |
34010 | } | |
34011 | if (argc == 3) { | |
34012 | int _v; | |
34013 | { | |
34014 | void *ptr; | |
34015 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34016 | _v = 0; | |
34017 | PyErr_Clear(); | |
34018 | } else { | |
34019 | _v = 1; | |
34020 | } | |
34021 | } | |
34022 | if (_v) { | |
34023 | { | |
34024 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
34025 | } | |
34026 | if (_v) { | |
34027 | { | |
34028 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34029 | } | |
34030 | if (_v) { | |
34031 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
34032 | } | |
34033 | } | |
34034 | } | |
34035 | } | |
34036 | ||
34037 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
34038 | return NULL; | |
34039 | } | |
34040 | ||
34041 | ||
34042 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
34043 | PyObject *resultobj; | |
34044 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34045 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34046 | wxGBSizerItem *result; | |
34047 | PyObject * obj0 = 0 ; | |
34048 | PyObject * obj1 = 0 ; | |
34049 | ||
34050 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
34051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34052 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34053 | { | |
34054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34055 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
34056 | ||
34057 | wxPyEndAllowThreads(__tstate); | |
34058 | if (PyErr_Occurred()) SWIG_fail; | |
34059 | } | |
34060 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34061 | return resultobj; | |
34062 | fail: | |
34063 | return NULL; | |
34064 | } | |
34065 | ||
34066 | ||
34067 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
34068 | PyObject *resultobj; | |
34069 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34070 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34071 | wxGBSizerItem *result; | |
34072 | PyObject * obj0 = 0 ; | |
34073 | PyObject * obj1 = 0 ; | |
34074 | ||
34075 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
34076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34077 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34078 | { | |
34079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34080 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
34081 | ||
34082 | wxPyEndAllowThreads(__tstate); | |
34083 | if (PyErr_Occurred()) SWIG_fail; | |
34084 | } | |
34085 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34086 | return resultobj; | |
34087 | fail: | |
34088 | return NULL; | |
34089 | } | |
34090 | ||
34091 | ||
34092 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
34093 | int argc; | |
34094 | PyObject *argv[3]; | |
34095 | int ii; | |
34096 | ||
34097 | argc = PyObject_Length(args); | |
34098 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
34099 | argv[ii] = PyTuple_GetItem(args,ii); | |
34100 | } | |
34101 | if (argc == 2) { | |
34102 | int _v; | |
34103 | { | |
34104 | void *ptr; | |
34105 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34106 | _v = 0; | |
34107 | PyErr_Clear(); | |
34108 | } else { | |
34109 | _v = 1; | |
34110 | } | |
34111 | } | |
34112 | if (_v) { | |
34113 | { | |
34114 | void *ptr; | |
34115 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
34116 | _v = 0; | |
34117 | PyErr_Clear(); | |
34118 | } else { | |
34119 | _v = 1; | |
34120 | } | |
34121 | } | |
34122 | if (_v) { | |
34123 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
34124 | } | |
34125 | } | |
34126 | } | |
34127 | if (argc == 2) { | |
34128 | int _v; | |
34129 | { | |
34130 | void *ptr; | |
34131 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34132 | _v = 0; | |
34133 | PyErr_Clear(); | |
34134 | } else { | |
34135 | _v = 1; | |
34136 | } | |
34137 | } | |
34138 | if (_v) { | |
34139 | { | |
34140 | void *ptr; | |
34141 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
34142 | _v = 0; | |
34143 | PyErr_Clear(); | |
34144 | } else { | |
34145 | _v = 1; | |
34146 | } | |
34147 | } | |
34148 | if (_v) { | |
34149 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
34150 | } | |
34151 | } | |
34152 | } | |
34153 | ||
34154 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
34155 | return NULL; | |
34156 | } | |
34157 | ||
34158 | ||
34159 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34160 | PyObject *resultobj; | |
34161 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34162 | wxGBPosition *arg2 = 0 ; | |
34163 | wxGBSizerItem *result; | |
34164 | wxGBPosition temp2 ; | |
34165 | PyObject * obj0 = 0 ; | |
34166 | PyObject * obj1 = 0 ; | |
34167 | char *kwnames[] = { | |
34168 | (char *) "self",(char *) "pos", NULL | |
34169 | }; | |
34170 | ||
34171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
34172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34173 | { | |
34174 | arg2 = &temp2; | |
34175 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
34176 | } | |
34177 | { | |
34178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34179 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
34180 | ||
34181 | wxPyEndAllowThreads(__tstate); | |
34182 | if (PyErr_Occurred()) SWIG_fail; | |
34183 | } | |
34184 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34185 | return resultobj; | |
34186 | fail: | |
34187 | return NULL; | |
34188 | } | |
34189 | ||
34190 | ||
34191 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34192 | PyObject *resultobj; | |
34193 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34194 | wxObject *arg2 = (wxObject *) 0 ; | |
34195 | wxGBSizerItem *result; | |
34196 | PyObject * obj0 = 0 ; | |
34197 | PyObject * obj1 = 0 ; | |
34198 | char *kwnames[] = { | |
34199 | (char *) "self",(char *) "userData", NULL | |
34200 | }; | |
34201 | ||
34202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
34203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34204 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34205 | { | |
34206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34207 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
34208 | ||
34209 | wxPyEndAllowThreads(__tstate); | |
34210 | if (PyErr_Occurred()) SWIG_fail; | |
34211 | } | |
34212 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34213 | return resultobj; | |
34214 | fail: | |
34215 | return NULL; | |
34216 | } | |
34217 | ||
34218 | ||
34219 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34220 | PyObject *resultobj; | |
34221 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34222 | PyObject * obj0 = 0 ; | |
34223 | char *kwnames[] = { | |
34224 | (char *) "self", NULL | |
34225 | }; | |
34226 | ||
34227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34229 | { | |
34230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34231 | (arg1)->RecalcSizes(); | |
34232 | ||
34233 | wxPyEndAllowThreads(__tstate); | |
34234 | if (PyErr_Occurred()) SWIG_fail; | |
34235 | } | |
34236 | Py_INCREF(Py_None); resultobj = Py_None; | |
34237 | return resultobj; | |
34238 | fail: | |
34239 | return NULL; | |
34240 | } | |
34241 | ||
34242 | ||
34243 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34244 | PyObject *resultobj; | |
34245 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34246 | wxSize result; | |
34247 | PyObject * obj0 = 0 ; | |
34248 | char *kwnames[] = { | |
34249 | (char *) "self", NULL | |
34250 | }; | |
34251 | ||
34252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34254 | { | |
34255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34256 | result = (arg1)->CalcMin(); | |
34257 | ||
34258 | wxPyEndAllowThreads(__tstate); | |
34259 | if (PyErr_Occurred()) SWIG_fail; | |
34260 | } | |
34261 | { | |
34262 | wxSize * resultptr; | |
34263 | resultptr = new wxSize((wxSize &) result); | |
34264 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34265 | } | |
34266 | return resultobj; | |
34267 | fail: | |
34268 | return NULL; | |
34269 | } | |
34270 | ||
34271 | ||
34272 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
34273 | PyObject *resultobj; | |
34274 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34275 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
34276 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
34277 | bool result; | |
34278 | PyObject * obj0 = 0 ; | |
34279 | PyObject * obj1 = 0 ; | |
34280 | PyObject * obj2 = 0 ; | |
34281 | ||
34282 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
34283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34284 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34285 | if (obj2) { | |
34286 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34287 | } | |
34288 | { | |
34289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34290 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
34291 | ||
34292 | wxPyEndAllowThreads(__tstate); | |
34293 | if (PyErr_Occurred()) SWIG_fail; | |
34294 | } | |
34295 | resultobj = PyInt_FromLong((long)result); | |
34296 | return resultobj; | |
34297 | fail: | |
34298 | return NULL; | |
34299 | } | |
34300 | ||
34301 | ||
34302 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
34303 | PyObject *resultobj; | |
34304 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34305 | wxGBPosition *arg2 = 0 ; | |
34306 | wxGBSpan *arg3 = 0 ; | |
34307 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
34308 | bool result; | |
34309 | wxGBPosition temp2 ; | |
34310 | wxGBSpan temp3 ; | |
34311 | PyObject * obj0 = 0 ; | |
34312 | PyObject * obj1 = 0 ; | |
34313 | PyObject * obj2 = 0 ; | |
34314 | PyObject * obj3 = 0 ; | |
34315 | ||
34316 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
34317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34318 | { | |
34319 | arg2 = &temp2; | |
34320 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
34321 | } | |
34322 | { | |
34323 | arg3 = &temp3; | |
34324 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
34325 | } | |
34326 | if (obj3) { | |
34327 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34328 | } | |
34329 | { | |
34330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34331 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
34332 | ||
34333 | wxPyEndAllowThreads(__tstate); | |
34334 | if (PyErr_Occurred()) SWIG_fail; | |
34335 | } | |
34336 | resultobj = PyInt_FromLong((long)result); | |
34337 | return resultobj; | |
34338 | fail: | |
34339 | return NULL; | |
34340 | } | |
34341 | ||
34342 | ||
34343 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
34344 | int argc; | |
34345 | PyObject *argv[5]; | |
34346 | int ii; | |
34347 | ||
34348 | argc = PyObject_Length(args); | |
34349 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
34350 | argv[ii] = PyTuple_GetItem(args,ii); | |
34351 | } | |
34352 | if ((argc >= 2) && (argc <= 3)) { | |
34353 | int _v; | |
34354 | { | |
34355 | void *ptr; | |
34356 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34357 | _v = 0; | |
34358 | PyErr_Clear(); | |
34359 | } else { | |
34360 | _v = 1; | |
34361 | } | |
34362 | } | |
34363 | if (_v) { | |
34364 | { | |
34365 | void *ptr; | |
34366 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
34367 | _v = 0; | |
34368 | PyErr_Clear(); | |
34369 | } else { | |
34370 | _v = 1; | |
34371 | } | |
34372 | } | |
34373 | if (_v) { | |
34374 | if (argc <= 2) { | |
34375 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
34376 | } | |
34377 | { | |
34378 | void *ptr; | |
34379 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
34380 | _v = 0; | |
34381 | PyErr_Clear(); | |
34382 | } else { | |
34383 | _v = 1; | |
34384 | } | |
34385 | } | |
34386 | if (_v) { | |
34387 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
34388 | } | |
34389 | } | |
34390 | } | |
34391 | } | |
34392 | if ((argc >= 3) && (argc <= 4)) { | |
34393 | int _v; | |
34394 | { | |
34395 | void *ptr; | |
34396 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34397 | _v = 0; | |
34398 | PyErr_Clear(); | |
34399 | } else { | |
34400 | _v = 1; | |
34401 | } | |
34402 | } | |
34403 | if (_v) { | |
34404 | { | |
34405 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
34406 | } | |
34407 | if (_v) { | |
34408 | { | |
34409 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34410 | } | |
34411 | if (_v) { | |
34412 | if (argc <= 3) { | |
34413 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
34414 | } | |
34415 | { | |
34416 | void *ptr; | |
34417 | if (SWIG_ConvertPtr(argv[3], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
34418 | _v = 0; | |
34419 | PyErr_Clear(); | |
34420 | } else { | |
34421 | _v = 1; | |
34422 | } | |
34423 | } | |
34424 | if (_v) { | |
34425 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
34426 | } | |
34427 | } | |
34428 | } | |
34429 | } | |
34430 | } | |
34431 | ||
34432 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
34433 | return NULL; | |
34434 | } | |
34435 | ||
34436 | ||
34437 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
34438 | PyObject *obj; | |
34439 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34440 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
34441 | Py_INCREF(obj); | |
34442 | return Py_BuildValue((char *)""); | |
34443 | } | |
34444 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34445 | PyObject *resultobj; | |
34446 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34447 | int arg2 ; | |
34448 | wxWindow *arg3 = (wxWindow *) 0 ; | |
34449 | int arg4 ; | |
34450 | int arg5 = (int) 0 ; | |
34451 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
34452 | PyObject * obj0 = 0 ; | |
34453 | PyObject * obj2 = 0 ; | |
34454 | char *kwnames[] = { | |
34455 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
34456 | }; | |
34457 | ||
34458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOi|ii:IndividualLayoutConstraint_Set",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6)) goto fail; | |
34459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34460 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34461 | { | |
34462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34463 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
34464 | ||
34465 | wxPyEndAllowThreads(__tstate); | |
34466 | if (PyErr_Occurred()) SWIG_fail; | |
34467 | } | |
34468 | Py_INCREF(Py_None); resultobj = Py_None; | |
34469 | return resultobj; | |
34470 | fail: | |
34471 | return NULL; | |
34472 | } | |
34473 | ||
34474 | ||
34475 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34476 | PyObject *resultobj; | |
34477 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34478 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34479 | int arg3 = (int) 0 ; | |
34480 | PyObject * obj0 = 0 ; | |
34481 | PyObject * obj1 = 0 ; | |
34482 | char *kwnames[] = { | |
34483 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
34484 | }; | |
34485 | ||
34486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
34487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34488 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34489 | { | |
34490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34491 | (arg1)->LeftOf(arg2,arg3); | |
34492 | ||
34493 | wxPyEndAllowThreads(__tstate); | |
34494 | if (PyErr_Occurred()) SWIG_fail; | |
34495 | } | |
34496 | Py_INCREF(Py_None); resultobj = Py_None; | |
34497 | return resultobj; | |
34498 | fail: | |
34499 | return NULL; | |
34500 | } | |
34501 | ||
34502 | ||
34503 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34504 | PyObject *resultobj; | |
34505 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34506 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34507 | int arg3 = (int) 0 ; | |
34508 | PyObject * obj0 = 0 ; | |
34509 | PyObject * obj1 = 0 ; | |
34510 | char *kwnames[] = { | |
34511 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
34512 | }; | |
34513 | ||
34514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
34515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34516 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34517 | { | |
34518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34519 | (arg1)->RightOf(arg2,arg3); | |
34520 | ||
34521 | wxPyEndAllowThreads(__tstate); | |
34522 | if (PyErr_Occurred()) SWIG_fail; | |
34523 | } | |
34524 | Py_INCREF(Py_None); resultobj = Py_None; | |
34525 | return resultobj; | |
34526 | fail: | |
34527 | return NULL; | |
34528 | } | |
34529 | ||
34530 | ||
34531 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34532 | PyObject *resultobj; | |
34533 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34534 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34535 | int arg3 = (int) 0 ; | |
34536 | PyObject * obj0 = 0 ; | |
34537 | PyObject * obj1 = 0 ; | |
34538 | char *kwnames[] = { | |
34539 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
34540 | }; | |
34541 | ||
34542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
34543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34544 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34545 | { | |
34546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34547 | (arg1)->Above(arg2,arg3); | |
34548 | ||
34549 | wxPyEndAllowThreads(__tstate); | |
34550 | if (PyErr_Occurred()) SWIG_fail; | |
34551 | } | |
34552 | Py_INCREF(Py_None); resultobj = Py_None; | |
34553 | return resultobj; | |
34554 | fail: | |
34555 | return NULL; | |
34556 | } | |
34557 | ||
34558 | ||
34559 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34560 | PyObject *resultobj; | |
34561 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34562 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34563 | int arg3 = (int) 0 ; | |
34564 | PyObject * obj0 = 0 ; | |
34565 | PyObject * obj1 = 0 ; | |
34566 | char *kwnames[] = { | |
34567 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
34568 | }; | |
34569 | ||
34570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
34571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34572 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34573 | { | |
34574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34575 | (arg1)->Below(arg2,arg3); | |
34576 | ||
34577 | wxPyEndAllowThreads(__tstate); | |
34578 | if (PyErr_Occurred()) SWIG_fail; | |
34579 | } | |
34580 | Py_INCREF(Py_None); resultobj = Py_None; | |
34581 | return resultobj; | |
34582 | fail: | |
34583 | return NULL; | |
34584 | } | |
34585 | ||
34586 | ||
34587 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34588 | PyObject *resultobj; | |
34589 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34590 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34591 | int arg3 ; | |
34592 | int arg4 = (int) 0 ; | |
34593 | PyObject * obj0 = 0 ; | |
34594 | PyObject * obj1 = 0 ; | |
34595 | char *kwnames[] = { | |
34596 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
34597 | }; | |
34598 | ||
34599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|i:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
34600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34601 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34602 | { | |
34603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34604 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
34605 | ||
34606 | wxPyEndAllowThreads(__tstate); | |
34607 | if (PyErr_Occurred()) SWIG_fail; | |
34608 | } | |
34609 | Py_INCREF(Py_None); resultobj = Py_None; | |
34610 | return resultobj; | |
34611 | fail: | |
34612 | return NULL; | |
34613 | } | |
34614 | ||
34615 | ||
34616 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34617 | PyObject *resultobj; | |
34618 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34619 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34620 | int arg3 ; | |
34621 | int arg4 ; | |
34622 | PyObject * obj0 = 0 ; | |
34623 | PyObject * obj1 = 0 ; | |
34624 | char *kwnames[] = { | |
34625 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
34626 | }; | |
34627 | ||
34628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
34629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34630 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34631 | { | |
34632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34633 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
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_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34646 | PyObject *resultobj; | |
34647 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34648 | int arg2 ; | |
34649 | PyObject * obj0 = 0 ; | |
34650 | char *kwnames[] = { | |
34651 | (char *) "self",(char *) "val", NULL | |
34652 | }; | |
34653 | ||
34654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&arg2)) goto fail; | |
34655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34656 | { | |
34657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34658 | (arg1)->Absolute(arg2); | |
34659 | ||
34660 | wxPyEndAllowThreads(__tstate); | |
34661 | if (PyErr_Occurred()) SWIG_fail; | |
34662 | } | |
34663 | Py_INCREF(Py_None); resultobj = Py_None; | |
34664 | return resultobj; | |
34665 | fail: | |
34666 | return NULL; | |
34667 | } | |
34668 | ||
34669 | ||
34670 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34671 | PyObject *resultobj; | |
34672 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34673 | PyObject * obj0 = 0 ; | |
34674 | char *kwnames[] = { | |
34675 | (char *) "self", NULL | |
34676 | }; | |
34677 | ||
34678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
34679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34680 | { | |
34681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34682 | (arg1)->Unconstrained(); | |
34683 | ||
34684 | wxPyEndAllowThreads(__tstate); | |
34685 | if (PyErr_Occurred()) SWIG_fail; | |
34686 | } | |
34687 | Py_INCREF(Py_None); resultobj = Py_None; | |
34688 | return resultobj; | |
34689 | fail: | |
34690 | return NULL; | |
34691 | } | |
34692 | ||
34693 | ||
34694 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34695 | PyObject *resultobj; | |
34696 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34697 | PyObject * obj0 = 0 ; | |
34698 | char *kwnames[] = { | |
34699 | (char *) "self", NULL | |
34700 | }; | |
34701 | ||
34702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
34703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34704 | { | |
34705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34706 | (arg1)->AsIs(); | |
34707 | ||
34708 | wxPyEndAllowThreads(__tstate); | |
34709 | if (PyErr_Occurred()) SWIG_fail; | |
34710 | } | |
34711 | Py_INCREF(Py_None); resultobj = Py_None; | |
34712 | return resultobj; | |
34713 | fail: | |
34714 | return NULL; | |
34715 | } | |
34716 | ||
34717 | ||
34718 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34719 | PyObject *resultobj; | |
34720 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34721 | wxWindow *result; | |
34722 | PyObject * obj0 = 0 ; | |
34723 | char *kwnames[] = { | |
34724 | (char *) "self", NULL | |
34725 | }; | |
34726 | ||
34727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
34728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34729 | { | |
34730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34731 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
34732 | ||
34733 | wxPyEndAllowThreads(__tstate); | |
34734 | if (PyErr_Occurred()) SWIG_fail; | |
34735 | } | |
34736 | { | |
34737 | resultobj = wxPyMake_wxObject(result); | |
34738 | } | |
34739 | return resultobj; | |
34740 | fail: | |
34741 | return NULL; | |
34742 | } | |
34743 | ||
34744 | ||
34745 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34746 | PyObject *resultobj; | |
34747 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34748 | int result; | |
34749 | PyObject * obj0 = 0 ; | |
34750 | char *kwnames[] = { | |
34751 | (char *) "self", NULL | |
34752 | }; | |
34753 | ||
34754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
34755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34756 | { | |
34757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34758 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
34759 | ||
34760 | wxPyEndAllowThreads(__tstate); | |
34761 | if (PyErr_Occurred()) SWIG_fail; | |
34762 | } | |
34763 | resultobj = PyInt_FromLong((long)result); | |
34764 | return resultobj; | |
34765 | fail: | |
34766 | return NULL; | |
34767 | } | |
34768 | ||
34769 | ||
34770 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34771 | PyObject *resultobj; | |
34772 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34773 | int arg2 ; | |
34774 | PyObject * obj0 = 0 ; | |
34775 | char *kwnames[] = { | |
34776 | (char *) "self",(char *) "which", NULL | |
34777 | }; | |
34778 | ||
34779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&arg2)) goto fail; | |
34780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34781 | { | |
34782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34783 | (arg1)->SetEdge((wxEdge )arg2); | |
34784 | ||
34785 | wxPyEndAllowThreads(__tstate); | |
34786 | if (PyErr_Occurred()) SWIG_fail; | |
34787 | } | |
34788 | Py_INCREF(Py_None); resultobj = Py_None; | |
34789 | return resultobj; | |
34790 | fail: | |
34791 | return NULL; | |
34792 | } | |
34793 | ||
34794 | ||
34795 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34796 | PyObject *resultobj; | |
34797 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34798 | int arg2 ; | |
34799 | PyObject * obj0 = 0 ; | |
34800 | char *kwnames[] = { | |
34801 | (char *) "self",(char *) "v", NULL | |
34802 | }; | |
34803 | ||
34804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
34805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34806 | { | |
34807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34808 | (arg1)->SetValue(arg2); | |
34809 | ||
34810 | wxPyEndAllowThreads(__tstate); | |
34811 | if (PyErr_Occurred()) SWIG_fail; | |
34812 | } | |
34813 | Py_INCREF(Py_None); resultobj = Py_None; | |
34814 | return resultobj; | |
34815 | fail: | |
34816 | return NULL; | |
34817 | } | |
34818 | ||
34819 | ||
34820 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34821 | PyObject *resultobj; | |
34822 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34823 | int result; | |
34824 | PyObject * obj0 = 0 ; | |
34825 | char *kwnames[] = { | |
34826 | (char *) "self", NULL | |
34827 | }; | |
34828 | ||
34829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
34830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34831 | { | |
34832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34833 | result = (int)(arg1)->GetMargin(); | |
34834 | ||
34835 | wxPyEndAllowThreads(__tstate); | |
34836 | if (PyErr_Occurred()) SWIG_fail; | |
34837 | } | |
34838 | resultobj = PyInt_FromLong((long)result); | |
34839 | return resultobj; | |
34840 | fail: | |
34841 | return NULL; | |
34842 | } | |
34843 | ||
34844 | ||
34845 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34846 | PyObject *resultobj; | |
34847 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34848 | int arg2 ; | |
34849 | PyObject * obj0 = 0 ; | |
34850 | char *kwnames[] = { | |
34851 | (char *) "self",(char *) "m", NULL | |
34852 | }; | |
34853 | ||
34854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&arg2)) goto fail; | |
34855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34856 | { | |
34857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34858 | (arg1)->SetMargin(arg2); | |
34859 | ||
34860 | wxPyEndAllowThreads(__tstate); | |
34861 | if (PyErr_Occurred()) SWIG_fail; | |
34862 | } | |
34863 | Py_INCREF(Py_None); resultobj = Py_None; | |
34864 | return resultobj; | |
34865 | fail: | |
34866 | return NULL; | |
34867 | } | |
34868 | ||
34869 | ||
34870 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34871 | PyObject *resultobj; | |
34872 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34873 | int result; | |
34874 | PyObject * obj0 = 0 ; | |
34875 | char *kwnames[] = { | |
34876 | (char *) "self", NULL | |
34877 | }; | |
34878 | ||
34879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
34880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34881 | { | |
34882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34883 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
34884 | ||
34885 | wxPyEndAllowThreads(__tstate); | |
34886 | if (PyErr_Occurred()) SWIG_fail; | |
34887 | } | |
34888 | resultobj = PyInt_FromLong((long)result); | |
34889 | return resultobj; | |
34890 | fail: | |
34891 | return NULL; | |
34892 | } | |
34893 | ||
34894 | ||
34895 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34896 | PyObject *resultobj; | |
34897 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34898 | int result; | |
34899 | PyObject * obj0 = 0 ; | |
34900 | char *kwnames[] = { | |
34901 | (char *) "self", NULL | |
34902 | }; | |
34903 | ||
34904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
34905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34906 | { | |
34907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34908 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
34909 | ||
34910 | wxPyEndAllowThreads(__tstate); | |
34911 | if (PyErr_Occurred()) SWIG_fail; | |
34912 | } | |
34913 | resultobj = PyInt_FromLong((long)result); | |
34914 | return resultobj; | |
34915 | fail: | |
34916 | return NULL; | |
34917 | } | |
34918 | ||
34919 | ||
34920 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34921 | PyObject *resultobj; | |
34922 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34923 | int result; | |
34924 | PyObject * obj0 = 0 ; | |
34925 | char *kwnames[] = { | |
34926 | (char *) "self", NULL | |
34927 | }; | |
34928 | ||
34929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
34930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34931 | { | |
34932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34933 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
34934 | ||
34935 | wxPyEndAllowThreads(__tstate); | |
34936 | if (PyErr_Occurred()) SWIG_fail; | |
34937 | } | |
34938 | resultobj = PyInt_FromLong((long)result); | |
34939 | return resultobj; | |
34940 | fail: | |
34941 | return NULL; | |
34942 | } | |
34943 | ||
34944 | ||
34945 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34946 | PyObject *resultobj; | |
34947 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34948 | bool result; | |
34949 | PyObject * obj0 = 0 ; | |
34950 | char *kwnames[] = { | |
34951 | (char *) "self", NULL | |
34952 | }; | |
34953 | ||
34954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
34955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34956 | { | |
34957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34958 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
34959 | ||
34960 | wxPyEndAllowThreads(__tstate); | |
34961 | if (PyErr_Occurred()) SWIG_fail; | |
34962 | } | |
34963 | resultobj = PyInt_FromLong((long)result); | |
34964 | return resultobj; | |
34965 | fail: | |
34966 | return NULL; | |
34967 | } | |
34968 | ||
34969 | ||
34970 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34971 | PyObject *resultobj; | |
34972 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34973 | bool arg2 ; | |
34974 | PyObject * obj0 = 0 ; | |
34975 | PyObject * obj1 = 0 ; | |
34976 | char *kwnames[] = { | |
34977 | (char *) "self",(char *) "d", NULL | |
34978 | }; | |
34979 | ||
34980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
34981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34982 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
34983 | if (PyErr_Occurred()) SWIG_fail; | |
34984 | { | |
34985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34986 | (arg1)->SetDone(arg2); | |
34987 | ||
34988 | wxPyEndAllowThreads(__tstate); | |
34989 | if (PyErr_Occurred()) SWIG_fail; | |
34990 | } | |
34991 | Py_INCREF(Py_None); resultobj = Py_None; | |
34992 | return resultobj; | |
34993 | fail: | |
34994 | return NULL; | |
34995 | } | |
34996 | ||
34997 | ||
34998 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34999 | PyObject *resultobj; | |
35000 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35001 | int result; | |
35002 | PyObject * obj0 = 0 ; | |
35003 | char *kwnames[] = { | |
35004 | (char *) "self", NULL | |
35005 | }; | |
35006 | ||
35007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
35008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35009 | { | |
35010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35011 | result = (int)(arg1)->GetRelationship(); | |
35012 | ||
35013 | wxPyEndAllowThreads(__tstate); | |
35014 | if (PyErr_Occurred()) SWIG_fail; | |
35015 | } | |
35016 | resultobj = PyInt_FromLong((long)result); | |
35017 | return resultobj; | |
35018 | fail: | |
35019 | return NULL; | |
35020 | } | |
35021 | ||
35022 | ||
35023 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35024 | PyObject *resultobj; | |
35025 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35026 | int arg2 ; | |
35027 | PyObject * obj0 = 0 ; | |
35028 | char *kwnames[] = { | |
35029 | (char *) "self",(char *) "r", NULL | |
35030 | }; | |
35031 | ||
35032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&arg2)) goto fail; | |
35033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35034 | { | |
35035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35036 | (arg1)->SetRelationship((wxRelationship )arg2); | |
35037 | ||
35038 | wxPyEndAllowThreads(__tstate); | |
35039 | if (PyErr_Occurred()) SWIG_fail; | |
35040 | } | |
35041 | Py_INCREF(Py_None); resultobj = Py_None; | |
35042 | return resultobj; | |
35043 | fail: | |
35044 | return NULL; | |
35045 | } | |
35046 | ||
35047 | ||
35048 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35049 | PyObject *resultobj; | |
35050 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35051 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35052 | bool result; | |
35053 | PyObject * obj0 = 0 ; | |
35054 | PyObject * obj1 = 0 ; | |
35055 | char *kwnames[] = { | |
35056 | (char *) "self",(char *) "otherW", NULL | |
35057 | }; | |
35058 | ||
35059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
35060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35061 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35062 | { | |
35063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35064 | result = (bool)(arg1)->ResetIfWin(arg2); | |
35065 | ||
35066 | wxPyEndAllowThreads(__tstate); | |
35067 | if (PyErr_Occurred()) SWIG_fail; | |
35068 | } | |
35069 | resultobj = PyInt_FromLong((long)result); | |
35070 | return resultobj; | |
35071 | fail: | |
35072 | return NULL; | |
35073 | } | |
35074 | ||
35075 | ||
35076 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35077 | PyObject *resultobj; | |
35078 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35079 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
35080 | wxWindow *arg3 = (wxWindow *) 0 ; | |
35081 | bool result; | |
35082 | PyObject * obj0 = 0 ; | |
35083 | PyObject * obj1 = 0 ; | |
35084 | PyObject * obj2 = 0 ; | |
35085 | char *kwnames[] = { | |
35086 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
35087 | }; | |
35088 | ||
35089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35091 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35092 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35093 | { | |
35094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35095 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
35096 | ||
35097 | wxPyEndAllowThreads(__tstate); | |
35098 | if (PyErr_Occurred()) SWIG_fail; | |
35099 | } | |
35100 | resultobj = PyInt_FromLong((long)result); | |
35101 | return resultobj; | |
35102 | fail: | |
35103 | return NULL; | |
35104 | } | |
35105 | ||
35106 | ||
35107 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35108 | PyObject *resultobj; | |
35109 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35110 | int arg2 ; | |
35111 | wxWindow *arg3 = (wxWindow *) 0 ; | |
35112 | wxWindow *arg4 = (wxWindow *) 0 ; | |
35113 | int result; | |
35114 | PyObject * obj0 = 0 ; | |
35115 | PyObject * obj2 = 0 ; | |
35116 | PyObject * obj3 = 0 ; | |
35117 | char *kwnames[] = { | |
35118 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
35119 | }; | |
35120 | ||
35121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
35122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35123 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35124 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35125 | { | |
35126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35127 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
35128 | ||
35129 | wxPyEndAllowThreads(__tstate); | |
35130 | if (PyErr_Occurred()) SWIG_fail; | |
35131 | } | |
35132 | resultobj = PyInt_FromLong((long)result); | |
35133 | return resultobj; | |
35134 | fail: | |
35135 | return NULL; | |
35136 | } | |
35137 | ||
35138 | ||
35139 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
35140 | PyObject *obj; | |
35141 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35142 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
35143 | Py_INCREF(obj); | |
35144 | return Py_BuildValue((char *)""); | |
35145 | } | |
35146 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35147 | PyObject *resultobj; | |
35148 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35149 | wxIndividualLayoutConstraint *result; | |
35150 | PyObject * obj0 = 0 ; | |
35151 | char *kwnames[] = { | |
35152 | (char *) "self", NULL | |
35153 | }; | |
35154 | ||
35155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
35156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35157 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
35158 | ||
35159 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35160 | return resultobj; | |
35161 | fail: | |
35162 | return NULL; | |
35163 | } | |
35164 | ||
35165 | ||
35166 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35167 | PyObject *resultobj; | |
35168 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35169 | wxIndividualLayoutConstraint *result; | |
35170 | PyObject * obj0 = 0 ; | |
35171 | char *kwnames[] = { | |
35172 | (char *) "self", NULL | |
35173 | }; | |
35174 | ||
35175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
35176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35177 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
35178 | ||
35179 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35180 | return resultobj; | |
35181 | fail: | |
35182 | return NULL; | |
35183 | } | |
35184 | ||
35185 | ||
35186 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35187 | PyObject *resultobj; | |
35188 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35189 | wxIndividualLayoutConstraint *result; | |
35190 | PyObject * obj0 = 0 ; | |
35191 | char *kwnames[] = { | |
35192 | (char *) "self", NULL | |
35193 | }; | |
35194 | ||
35195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
35196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35197 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
35198 | ||
35199 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35200 | return resultobj; | |
35201 | fail: | |
35202 | return NULL; | |
35203 | } | |
35204 | ||
35205 | ||
35206 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35207 | PyObject *resultobj; | |
35208 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35209 | wxIndividualLayoutConstraint *result; | |
35210 | PyObject * obj0 = 0 ; | |
35211 | char *kwnames[] = { | |
35212 | (char *) "self", NULL | |
35213 | }; | |
35214 | ||
35215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
35216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35217 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
35218 | ||
35219 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35220 | return resultobj; | |
35221 | fail: | |
35222 | return NULL; | |
35223 | } | |
35224 | ||
35225 | ||
35226 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35227 | PyObject *resultobj; | |
35228 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35229 | wxIndividualLayoutConstraint *result; | |
35230 | PyObject * obj0 = 0 ; | |
35231 | char *kwnames[] = { | |
35232 | (char *) "self", NULL | |
35233 | }; | |
35234 | ||
35235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
35236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35237 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
35238 | ||
35239 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35240 | return resultobj; | |
35241 | fail: | |
35242 | return NULL; | |
35243 | } | |
35244 | ||
35245 | ||
35246 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35247 | PyObject *resultobj; | |
35248 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35249 | wxIndividualLayoutConstraint *result; | |
35250 | PyObject * obj0 = 0 ; | |
35251 | char *kwnames[] = { | |
35252 | (char *) "self", NULL | |
35253 | }; | |
35254 | ||
35255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
35256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35257 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
35258 | ||
35259 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35260 | return resultobj; | |
35261 | fail: | |
35262 | return NULL; | |
35263 | } | |
35264 | ||
35265 | ||
35266 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35267 | PyObject *resultobj; | |
35268 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35269 | wxIndividualLayoutConstraint *result; | |
35270 | PyObject * obj0 = 0 ; | |
35271 | char *kwnames[] = { | |
35272 | (char *) "self", NULL | |
35273 | }; | |
35274 | ||
35275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
35276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35277 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
35278 | ||
35279 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35280 | return resultobj; | |
35281 | fail: | |
35282 | return NULL; | |
35283 | } | |
35284 | ||
35285 | ||
35286 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35287 | PyObject *resultobj; | |
35288 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35289 | wxIndividualLayoutConstraint *result; | |
35290 | PyObject * obj0 = 0 ; | |
35291 | char *kwnames[] = { | |
35292 | (char *) "self", NULL | |
35293 | }; | |
35294 | ||
35295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
35296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35297 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
35298 | ||
35299 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35300 | return resultobj; | |
35301 | fail: | |
35302 | return NULL; | |
35303 | } | |
35304 | ||
35305 | ||
35306 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35307 | PyObject *resultobj; | |
35308 | wxLayoutConstraints *result; | |
35309 | char *kwnames[] = { | |
35310 | NULL | |
35311 | }; | |
35312 | ||
35313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
35314 | { | |
35315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35316 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
35317 | ||
35318 | wxPyEndAllowThreads(__tstate); | |
35319 | if (PyErr_Occurred()) SWIG_fail; | |
35320 | } | |
35321 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 1); | |
35322 | return resultobj; | |
35323 | fail: | |
35324 | return NULL; | |
35325 | } | |
35326 | ||
35327 | ||
35328 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35329 | PyObject *resultobj; | |
35330 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35331 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35332 | int *arg3 = (int *) 0 ; | |
35333 | bool result; | |
35334 | int temp3 ; | |
35335 | PyObject * obj0 = 0 ; | |
35336 | PyObject * obj1 = 0 ; | |
35337 | char *kwnames[] = { | |
35338 | (char *) "self",(char *) "win", NULL | |
35339 | }; | |
35340 | ||
35341 | arg3 = &temp3; | |
35342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
35343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35344 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35345 | { | |
35346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35347 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
35348 | ||
35349 | wxPyEndAllowThreads(__tstate); | |
35350 | if (PyErr_Occurred()) SWIG_fail; | |
35351 | } | |
35352 | resultobj = PyInt_FromLong((long)result); | |
35353 | { | |
35354 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
35355 | resultobj = t_output_helper(resultobj,o); | |
35356 | } | |
35357 | return resultobj; | |
35358 | fail: | |
35359 | return NULL; | |
35360 | } | |
35361 | ||
35362 | ||
35363 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35364 | PyObject *resultobj; | |
35365 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35366 | bool result; | |
35367 | PyObject * obj0 = 0 ; | |
35368 | char *kwnames[] = { | |
35369 | (char *) "self", NULL | |
35370 | }; | |
35371 | ||
35372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
35373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35374 | { | |
35375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35376 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
35377 | ||
35378 | wxPyEndAllowThreads(__tstate); | |
35379 | if (PyErr_Occurred()) SWIG_fail; | |
35380 | } | |
35381 | resultobj = PyInt_FromLong((long)result); | |
35382 | return resultobj; | |
35383 | fail: | |
35384 | return NULL; | |
35385 | } | |
35386 | ||
35387 | ||
35388 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
35389 | PyObject *obj; | |
35390 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35391 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
35392 | Py_INCREF(obj); | |
35393 | return Py_BuildValue((char *)""); | |
35394 | } | |
35395 | static PyMethodDef SwigMethods[] = { | |
35396 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
35397 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
35398 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
35399 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
35400 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
35401 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
35402 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
35403 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
35404 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
35405 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
35406 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
35407 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
35408 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
35409 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
35410 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
35411 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
35412 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
35413 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
35414 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
35415 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
35416 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
35417 | { (char *)"Size_GetX", (PyCFunction) _wrap_Size_GetX, METH_VARARGS | METH_KEYWORDS }, | |
35418 | { (char *)"Size_GetY", (PyCFunction) _wrap_Size_GetY, METH_VARARGS | METH_KEYWORDS }, | |
35419 | { (char *)"Size_asTuple", (PyCFunction) _wrap_Size_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
35420 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, | |
35421 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
35422 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35423 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35424 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35425 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
35426 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
35427 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, | |
35428 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
35429 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, | |
35430 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
35431 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, | |
35432 | { (char *)"RealPoint_asTuple", (PyCFunction) _wrap_RealPoint_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
35433 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, | |
35434 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
35435 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35436 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35437 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35438 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
35439 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
35440 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
35441 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
35442 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
35443 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
35444 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
35445 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
35446 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
35447 | { (char *)"Point_asTuple", (PyCFunction) _wrap_Point_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
35448 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, | |
35449 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
35450 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
35451 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
35452 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
35453 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
35454 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
35455 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
35456 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
35457 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
35458 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
35459 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
35460 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
35461 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35462 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35463 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
35464 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
35465 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, | |
35466 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
35467 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
35468 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
35469 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
35470 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
35471 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
35472 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
35473 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
35474 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
35475 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
35476 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
35477 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
35478 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
35479 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
35480 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
35481 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
35482 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
35483 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
35484 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
35485 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
35486 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35487 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35488 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35489 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
35490 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
35491 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
35492 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
35493 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
35494 | { (char *)"Rect_asTuple", (PyCFunction) _wrap_Rect_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
35495 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, | |
35496 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
35497 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
35498 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
35499 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
35500 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
35501 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
35502 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
35503 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
35504 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
35505 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
35506 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
35507 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
35508 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
35509 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
35510 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
35511 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
35512 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
35513 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
35514 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
35515 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
35516 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
35517 | { (char *)"Point2D_m_x_set", (PyCFunction) _wrap_Point2D_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
35518 | { (char *)"Point2D_m_x_get", (PyCFunction) _wrap_Point2D_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35519 | { (char *)"Point2D_m_y_set", (PyCFunction) _wrap_Point2D_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35520 | { (char *)"Point2D_m_y_get", (PyCFunction) _wrap_Point2D_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35521 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, | |
35522 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35523 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35524 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35525 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
35526 | { (char *)"Point2D_asTuple", (PyCFunction) _wrap_Point2D_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
35527 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, | |
35528 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
35529 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
35530 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
35531 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
35532 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
35533 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
35534 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
35535 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
35536 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
35537 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
35538 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
35539 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
35540 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
35541 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
35542 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
35543 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
35544 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
35545 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
35546 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
35547 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
35548 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
35549 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
35550 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
35551 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
35552 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
35553 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
35554 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
35555 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
35556 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
35557 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
35558 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
35559 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
35560 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
35561 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
35562 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
35563 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
35564 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
35565 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
35566 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
35567 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
35568 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
35569 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
35570 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
35571 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
35572 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
35573 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
35574 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
35575 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
35576 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
35577 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
35578 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
35579 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
35580 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
35581 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
35582 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
35583 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
35584 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
35585 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
35586 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
35587 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
35588 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
35589 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
35590 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
35591 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
35592 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
35593 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
35594 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
35595 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
35596 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
35597 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
35598 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
35599 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
35600 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
35601 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
35602 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
35603 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
35604 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
35605 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
35606 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
35607 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
35608 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
35609 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
35610 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
35611 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
35612 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
35613 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
35614 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
35615 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
35616 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
35617 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
35618 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
35619 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
35620 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, | |
35621 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
35622 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
35623 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
35624 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
35625 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
35626 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
35627 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
35628 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
35629 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
35630 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
35631 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
35632 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
35633 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
35634 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
35635 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
35636 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
35637 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
35638 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
35639 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
35640 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
35641 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
35642 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
35643 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
35644 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
35645 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
35646 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
35647 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
35648 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
35649 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
35650 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
35651 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
35652 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
35653 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
35654 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
35655 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
35656 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
35657 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
35658 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
35659 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
35660 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
35661 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
35662 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
35663 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
35664 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
35665 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
35666 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
35667 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
35668 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
35669 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
35670 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
35671 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
35672 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
35673 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
35674 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
35675 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
35676 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
35677 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
35678 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
35679 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
35680 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
35681 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
35682 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
35683 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
35684 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
35685 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
35686 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
35687 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
35688 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
35689 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
35690 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
35691 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
35692 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
35693 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
35694 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
35695 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
35696 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
35697 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
35698 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
35699 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
35700 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
35701 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
35702 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
35703 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
35704 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
35705 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
35706 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
35707 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
35708 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
35709 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
35710 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
35711 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
35712 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
35713 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
35714 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
35715 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
35716 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
35717 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
35718 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
35719 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
35720 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
35721 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
35722 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
35723 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
35724 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
35725 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
35726 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
35727 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
35728 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
35729 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
35730 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
35731 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
35732 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
35733 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
35734 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
35735 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
35736 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
35737 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
35738 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
35739 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
35740 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
35741 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
35742 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
35743 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
35744 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
35745 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
35746 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
35747 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
35748 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
35749 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
35750 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
35751 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
35752 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
35753 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
35754 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
35755 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
35756 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
35757 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
35758 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
35759 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
35760 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
35761 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
35762 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
35763 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
35764 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
35765 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35766 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
35767 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35768 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
35769 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
35770 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
35771 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35772 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
35773 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35774 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
35775 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
35776 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
35777 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
35778 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
35779 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
35780 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
35781 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
35782 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
35783 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
35784 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
35785 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
35786 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
35787 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
35788 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
35789 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
35790 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
35791 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
35792 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
35793 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
35794 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
35795 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
35796 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
35797 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
35798 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
35799 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
35800 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
35801 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
35802 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
35803 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35804 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
35805 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
35806 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
35807 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
35808 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
35809 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
35810 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
35811 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
35812 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
35813 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35814 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35815 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35816 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35817 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35818 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35819 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35820 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35821 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35822 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35823 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35824 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35825 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35826 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35827 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35828 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35829 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35830 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
35831 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
35832 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
35833 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
35834 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
35835 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
35836 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
35837 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
35838 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
35839 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
35840 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
35841 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
35842 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
35843 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
35844 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
35845 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
35846 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
35847 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
35848 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
35849 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
35850 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
35851 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
35852 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
35853 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
35854 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35855 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
35856 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
35857 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
35858 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
35859 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35860 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35861 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35862 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
35863 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
35864 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35865 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35866 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35867 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35868 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35869 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35870 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35871 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35872 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
35873 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
35874 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
35875 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
35876 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
35877 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
35878 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
35879 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
35880 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
35881 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
35882 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
35883 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
35884 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
35885 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
35886 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
35887 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
35888 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
35889 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
35890 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35891 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
35892 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
35893 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35894 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
35895 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
35896 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
35897 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
35898 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
35899 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
35900 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
35901 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
35902 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
35903 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
35904 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
35905 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
35906 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
35907 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
35908 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
35909 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
35910 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
35911 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
35912 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
35913 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
35914 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
35915 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
35916 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
35917 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
35918 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
35919 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
35920 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
35921 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
35922 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
35923 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
35924 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
35925 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
35926 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
35927 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
35928 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
35929 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
35930 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
35931 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
35932 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
35933 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
35934 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
35935 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
35936 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
35937 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
35938 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
35939 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
35940 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35941 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
35942 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
35943 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
35944 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
35945 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
35946 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
35947 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
35948 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
35949 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
35950 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
35951 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
35952 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
35953 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
35954 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
35955 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
35956 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
35957 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
35958 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
35959 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
35960 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
35961 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
35962 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
35963 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
35964 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
35965 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
35966 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
35967 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
35968 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
35969 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
35970 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
35971 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
35972 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
35973 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
35974 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
35975 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
35976 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
35977 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
35978 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
35979 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
35980 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
35981 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
35982 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
35983 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
35984 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
35985 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
35986 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
35987 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
35988 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
35989 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
35990 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
35991 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35992 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35993 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
35994 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
35995 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
35996 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
35997 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
35998 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
35999 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
36000 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
36001 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36002 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36003 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36004 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36005 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
36006 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
36007 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
36008 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36009 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36010 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
36011 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
36012 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
36013 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
36014 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
36015 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
36016 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
36017 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
36018 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
36019 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
36020 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
36021 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
36022 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
36023 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
36024 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
36025 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
36026 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
36027 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
36028 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
36029 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
36030 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
36031 | { (char *)"PyApp_OnIdle", (PyCFunction) _wrap_PyApp_OnIdle, METH_VARARGS | METH_KEYWORDS }, | |
36032 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, | |
36033 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
36034 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
36035 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
36036 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
36037 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
36038 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
36039 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
36040 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
36041 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, | |
36042 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, | |
36043 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
36044 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36045 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36046 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36047 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
36048 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
36049 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36050 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36051 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36052 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
36053 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
36054 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
36055 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
36056 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
36057 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
36058 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
36059 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
36060 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
36061 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
36062 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
36063 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
36064 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, | |
36065 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
36066 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
36067 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
36068 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
36069 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
36070 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
36071 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36072 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36073 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36074 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36075 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
36076 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
36077 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, | |
36078 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
36079 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
36080 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
36081 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
36082 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
36083 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
36084 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
36085 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
36086 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
36087 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
36088 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
36089 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
36090 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
36091 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
36092 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
36093 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36094 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
36095 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
36096 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36097 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
36098 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
36099 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36100 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
36101 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
36102 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
36103 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36104 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
36105 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
36106 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
36107 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
36108 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
36109 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
36110 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
36111 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
36112 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, | |
36113 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
36114 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
36115 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
36116 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
36117 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
36118 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
36119 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
36120 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36121 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
36122 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
36123 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
36124 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36125 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
36126 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
36127 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36128 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
36129 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
36130 | { (char *)"Window_SetWindowStyle", (PyCFunction) _wrap_Window_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
36131 | { (char *)"Window_GetWindowStyle", (PyCFunction) _wrap_Window_GetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
36132 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
36133 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
36134 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
36135 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
36136 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
36137 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36138 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36139 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
36140 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
36141 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
36142 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
36143 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
36144 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
36145 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
36146 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
36147 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
36148 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
36149 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
36150 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
36151 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
36152 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
36153 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
36154 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
36155 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
36156 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
36157 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36158 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36159 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36160 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36161 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36162 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
36163 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
36164 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36165 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36166 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
36167 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
36168 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
36169 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
36170 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
36171 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
36172 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
36173 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
36174 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
36175 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
36176 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
36177 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
36178 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
36179 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
36180 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
36181 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
36182 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
36183 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
36184 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
36185 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
36186 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
36187 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
36188 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
36189 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
36190 | { (char *)"Window_isExposedRect", (PyCFunction) _wrap_Window_isExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
36191 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36192 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36193 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36194 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36195 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
36196 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
36197 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
36198 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
36199 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
36200 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
36201 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
36202 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
36203 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
36204 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
36205 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
36206 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
36207 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
36208 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
36209 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
36210 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
36211 | { (char *)"Window_GetBorderFlags", (PyCFunction) _wrap_Window_GetBorderFlags, METH_VARARGS | METH_KEYWORDS }, | |
36212 | { (char *)"Window_GetBorder", (PyCFunction) _wrap_Window_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
36213 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, | |
36214 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
36215 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
36216 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
36217 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS }, | |
36218 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
36219 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
36220 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
36221 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
36222 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
36223 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
36224 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
36225 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
36226 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
36227 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
36228 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
36229 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
36230 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
36231 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
36232 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
36233 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
36234 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
36235 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
36236 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
36237 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
36238 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
36239 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
36240 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
36241 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
36242 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
36243 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
36244 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
36245 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
36246 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
36247 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
36248 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
36249 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
36250 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
36251 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
36252 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
36253 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
36254 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
36255 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
36256 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
36257 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
36258 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
36259 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
36260 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36261 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36262 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
36263 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
36264 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
36265 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
36266 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
36267 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
36268 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
36269 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
36270 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36271 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
36272 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
36273 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
36274 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
36275 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
36276 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
36277 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
36278 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36279 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
36280 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
36281 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
36282 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
36283 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
36284 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36285 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
36286 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
36287 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
36288 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
36289 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
36290 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
36291 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
36292 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
36293 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
36294 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
36295 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
36296 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
36297 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
36298 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
36299 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
36300 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36301 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36302 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
36303 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36304 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36305 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36306 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36307 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36308 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36309 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36310 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36311 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36312 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
36313 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
36314 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
36315 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
36316 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
36317 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
36318 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
36319 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
36320 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
36321 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
36322 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
36323 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
36324 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
36325 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
36326 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
36327 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36328 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
36329 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
36330 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
36331 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
36332 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
36333 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
36334 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36335 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
36336 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
36337 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36338 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
36339 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36340 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36341 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36342 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36343 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36344 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36345 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
36346 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
36347 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
36348 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
36349 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
36350 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36351 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36352 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36353 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
36354 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
36355 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36356 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
36357 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36358 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
36359 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
36360 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
36361 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
36362 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
36363 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
36364 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
36365 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
36366 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36367 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36368 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
36369 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36370 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
36371 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
36372 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
36373 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
36374 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
36375 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
36376 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
36377 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
36378 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
36379 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36380 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36381 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
36382 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36383 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36384 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
36385 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
36386 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
36387 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
36388 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
36389 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
36390 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36391 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36392 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
36393 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
36394 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
36395 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
36396 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
36397 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36398 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36399 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
36400 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
36401 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
36402 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
36403 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
36404 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
36405 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
36406 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
36407 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
36408 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
36409 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
36410 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
36411 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
36412 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
36413 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
36414 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
36415 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
36416 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
36417 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
36418 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
36419 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
36420 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
36421 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
36422 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
36423 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
36424 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
36425 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36426 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
36427 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
36428 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
36429 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
36430 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
36431 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
36432 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
36433 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
36434 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
36435 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
36436 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
36437 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
36438 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
36439 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
36440 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
36441 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
36442 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36443 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36444 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
36445 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
36446 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
36447 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
36448 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
36449 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
36450 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36451 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
36452 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
36453 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
36454 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
36455 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
36456 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
36457 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
36458 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, | |
36459 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
36460 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
36461 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
36462 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
36463 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
36464 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
36465 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36466 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
36467 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
36468 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36469 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
36470 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
36471 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
36472 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
36473 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
36474 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
36475 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
36476 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
36477 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
36478 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
36479 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
36480 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
36481 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
36482 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
36483 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
36484 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
36485 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
36486 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
36487 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
36488 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
36489 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36490 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
36491 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
36492 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
36493 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
36494 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36495 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
36496 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
36497 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
36498 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36499 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
36500 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
36501 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
36502 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
36503 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
36504 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
36505 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
36506 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
36507 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
36508 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
36509 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
36510 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36511 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
36512 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
36513 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
36514 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
36515 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
36516 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
36517 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
36518 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
36519 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, | |
36520 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
36521 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
36522 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
36523 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
36524 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
36525 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
36526 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
36527 | { (char *)"GBPosition_asTuple", (PyCFunction) _wrap_GBPosition_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
36528 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, | |
36529 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
36530 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
36531 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
36532 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
36533 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
36534 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
36535 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
36536 | { (char *)"GBSpan_asTuple", (PyCFunction) _wrap_GBSpan_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
36537 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, | |
36538 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
36539 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
36540 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
36541 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
36542 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
36543 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
36544 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
36545 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
36546 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
36547 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
36548 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
36549 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
36550 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
36551 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
36552 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
36553 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
36554 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
36555 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
36556 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
36557 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
36558 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
36559 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
36560 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
36561 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
36562 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, | |
36563 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
36564 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36565 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
36566 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
36567 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
36568 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
36569 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
36570 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
36571 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
36572 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
36573 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
36574 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
36575 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
36576 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
36577 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
36578 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
36579 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
36580 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
36581 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
36582 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
36583 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
36584 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
36585 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
36586 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
36587 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
36588 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
36589 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
36590 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
36591 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
36592 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
36593 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
36594 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
36595 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
36596 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
36597 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
36598 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
36599 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
36600 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
36601 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
36602 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
36603 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
36604 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
36605 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
36606 | { NULL, NULL } | |
36607 | }; | |
36608 | ||
36609 | ||
36610 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
36611 | ||
36612 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
36613 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
36614 | } | |
36615 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
36616 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
36617 | } | |
36618 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
36619 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
36620 | } | |
36621 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
36622 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
36623 | } | |
36624 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
36625 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
36626 | } | |
36627 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
36628 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
36629 | } | |
36630 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
36631 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
36632 | } | |
36633 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
36634 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
36635 | } | |
36636 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
36637 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36638 | } | |
36639 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
36640 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
36641 | } | |
36642 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
36643 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
36644 | } | |
36645 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
36646 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
36647 | } | |
36648 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
36649 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
36650 | } | |
36651 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
36652 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
36653 | } | |
36654 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
36655 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
36656 | } | |
36657 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
36658 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
36659 | } | |
36660 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
36661 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
36662 | } | |
36663 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
36664 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36665 | } | |
36666 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
36667 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
36668 | } | |
36669 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
36670 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36671 | } | |
36672 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
36673 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
36674 | } | |
36675 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
36676 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
36677 | } | |
36678 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
36679 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
36680 | } | |
36681 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
36682 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
36683 | } | |
36684 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
36685 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
36686 | } | |
36687 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
36688 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
36689 | } | |
36690 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
36691 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
36692 | } | |
36693 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
36694 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
36695 | } | |
36696 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
36697 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36698 | } | |
36699 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
36700 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
36701 | } | |
36702 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
36703 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
36704 | } | |
36705 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
36706 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
36707 | } | |
36708 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
36709 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
36710 | } | |
36711 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
36712 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
36713 | } | |
36714 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
36715 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
36716 | } | |
36717 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
36718 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36719 | } | |
36720 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
36721 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
36722 | } | |
36723 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
36724 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
36725 | } | |
36726 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
36727 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36728 | } | |
36729 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
36730 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36731 | } | |
36732 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
36733 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
36734 | } | |
36735 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
36736 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
36737 | } | |
36738 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
36739 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
36740 | } | |
36741 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
36742 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
36743 | } | |
36744 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
36745 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
36746 | } | |
36747 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
36748 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
36749 | } | |
36750 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
36751 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
36752 | } | |
36753 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
36754 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
36755 | } | |
36756 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
36757 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
36758 | } | |
36759 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
36760 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
36761 | } | |
36762 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
36763 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36764 | } | |
36765 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
36766 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
36767 | } | |
36768 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
36769 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
36770 | } | |
36771 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
36772 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
36773 | } | |
36774 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
36775 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
36776 | } | |
36777 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
36778 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
36779 | } | |
36780 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
36781 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
36782 | } | |
36783 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
36784 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
36785 | } | |
36786 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
36787 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
36788 | } | |
36789 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
36790 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
36791 | } | |
36792 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
36793 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
36794 | } | |
36795 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
36796 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
36797 | } | |
36798 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
36799 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
36800 | } | |
36801 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
36802 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
36803 | } | |
36804 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
36805 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
36806 | } | |
36807 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
36808 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
36809 | } | |
36810 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
36811 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
36812 | } | |
36813 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
36814 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
36815 | } | |
36816 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
36817 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
36818 | } | |
36819 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
36820 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
36821 | } | |
36822 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
36823 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
36824 | } | |
36825 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
36826 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
36827 | } | |
36828 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
36829 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
36830 | } | |
36831 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
36832 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
36833 | } | |
36834 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
36835 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
36836 | } | |
36837 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
36838 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
36839 | } | |
36840 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
36841 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
36842 | } | |
36843 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
36844 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
36845 | } | |
36846 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
36847 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
36848 | } | |
36849 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
36850 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36851 | } | |
36852 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
36853 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
36854 | } | |
36855 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
36856 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
36857 | } | |
36858 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
36859 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
36860 | } | |
36861 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
36862 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
36863 | } | |
36864 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
36865 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
36866 | } | |
36867 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
36868 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
36869 | } | |
36870 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
36871 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
36872 | } | |
36873 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
36874 | return (void *)((wxObject *) ((wxSizer *) x)); | |
36875 | } | |
36876 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
36877 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
36878 | } | |
36879 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
36880 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
36881 | } | |
36882 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
36883 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
36884 | } | |
36885 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
36886 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
36887 | } | |
36888 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
36889 | return (void *)((wxObject *) ((wxImage *) x)); | |
36890 | } | |
36891 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
36892 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
36893 | } | |
36894 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
36895 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36896 | } | |
36897 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
36898 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
36899 | } | |
36900 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
36901 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
36902 | } | |
36903 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
36904 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
36905 | } | |
36906 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
36907 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
36908 | } | |
36909 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
36910 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
36911 | } | |
36912 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
36913 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
36914 | } | |
36915 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
36916 | return (void *)((wxObject *) ((wxEvent *) x)); | |
36917 | } | |
36918 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
36919 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
36920 | } | |
36921 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
36922 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
36923 | } | |
36924 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
36925 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
36926 | } | |
36927 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
36928 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
36929 | } | |
36930 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
36931 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
36932 | } | |
36933 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
36934 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
36935 | } | |
36936 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
36937 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36938 | } | |
36939 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
36940 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
36941 | } | |
36942 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
36943 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36944 | } | |
36945 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
36946 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
36947 | } | |
36948 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
36949 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
36950 | } | |
36951 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
36952 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
36953 | } | |
36954 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
36955 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
36956 | } | |
36957 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
36958 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
36959 | } | |
36960 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
36961 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
36962 | } | |
36963 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
36964 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
36965 | } | |
36966 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
36967 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
36968 | } | |
36969 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
36970 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
36971 | } | |
36972 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
36973 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
36974 | } | |
36975 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
36976 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
36977 | } | |
36978 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
36979 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
36980 | } | |
36981 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
36982 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
36983 | } | |
36984 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
36985 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
36986 | } | |
36987 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
36988 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
36989 | } | |
36990 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
36991 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36992 | } | |
36993 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
36994 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
36995 | } | |
36996 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
36997 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
36998 | } | |
36999 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
37000 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
37001 | } | |
37002 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
37003 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
37004 | } | |
37005 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
37006 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
37007 | } | |
37008 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
37009 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
37010 | } | |
37011 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
37012 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
37013 | } | |
37014 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
37015 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
37016 | } | |
37017 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
37018 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
37019 | } | |
37020 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
37021 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
37022 | } | |
37023 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
37024 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
37025 | } | |
37026 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
37027 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
37028 | } | |
37029 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
37030 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
37031 | } | |
37032 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
37033 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
37034 | } | |
37035 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
37036 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
37037 | } | |
37038 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
37039 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
37040 | } | |
37041 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
37042 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
37043 | } | |
37044 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
37045 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
37046 | } | |
37047 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
37048 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
37049 | } | |
37050 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
37051 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
37052 | } | |
37053 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
37054 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
37055 | } | |
37056 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
37057 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
37058 | } | |
37059 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
37060 | return (void *)((wxWindow *) ((wxControl *) x)); | |
37061 | } | |
37062 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
37063 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
37064 | } | |
37065 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
37066 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
37067 | } | |
37068 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
37069 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
37070 | } | |
37071 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
37072 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
37073 | } | |
37074 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
37075 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
37076 | } | |
37077 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
37078 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
37079 | } | |
37080 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
37081 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
37082 | } | |
37083 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
37084 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
37085 | } | |
37086 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
37087 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
37088 | } | |
37089 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
37090 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
37091 | } | |
37092 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
37093 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
37094 | } | |
37095 | static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0},{"_p_wxLayoutConstraints"},{0}}; | |
37096 | static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0},{"_p_wxRealPoint"},{0}}; | |
37097 | static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0},{"_p_wxSizerItem"},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem},{0}}; | |
37098 | static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0},{"_p_wxGBSizerItem"},{0}}; | |
37099 | static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0},{"_p_wxScrollEvent"},{0}}; | |
37100 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0},{"_p_wxIndividualLayoutConstraint"},{0}}; | |
37101 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0},{"_p_wxSizer"},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer},{0}}; | |
37102 | static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0},{"_p_wxBoxSizer"},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer},{0}}; | |
37103 | static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0},{"_p_wxStaticBoxSizer"},{0}}; | |
37104 | static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0},{"_p_wxGridBagSizer"},{0}}; | |
37105 | static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0},{"_p_wxAcceleratorEntry"},{0}}; | |
37106 | static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0},{"_p_wxUpdateUIEvent"},{0}}; | |
37107 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
37108 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}}; | |
37109 | static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer},{"_p_wxGridSizer"},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer},{0}}; | |
37110 | static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer},{"_p_wxFlexGridSizer"},{0}}; | |
37111 | static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0},{"_p_wxInitDialogEvent"},{0}}; | |
37112 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer},{"_p_wxItemContainer"},{0}}; | |
37113 | static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0},{"_p_wxNcPaintEvent"},{0}}; | |
37114 | static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0},{"_p_wxPaintEvent"},{0}}; | |
37115 | static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0},{"_p_wxSysColourChangedEvent"},{0}}; | |
37116 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0},{"_p_wxMouseCaptureChangedEvent"},{0}}; | |
37117 | static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0},{"_p_wxDisplayChangedEvent"},{0}}; | |
37118 | static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0},{"_p_wxPaletteChangedEvent"},{0}}; | |
37119 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}}; | |
37120 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
37121 | static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0},{"_p_wxMenuBarBase"},{0}}; | |
37122 | static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0},{"_p_wxSetCursorEvent"},{0}}; | |
37123 | static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0},{"_p_wxFSFile"},{0}}; | |
37124 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
37125 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
37126 | static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0},{"_p_wxPoint2D"},{0}}; | |
37127 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
37128 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
37129 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
37130 | static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0},{"_p_wxPySizer"},{0}}; | |
37131 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxNotifyEvent"},{0}}; | |
37132 | static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0},{"_p_wxPyEvent"},{0}}; | |
37133 | static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0},{"_p_wxPropagationDisabler"},{0}}; | |
37134 | static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0},{"_p_wxAppTraits"},{0}}; | |
37135 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
37136 | static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0},{"_p_wxShowEvent"},{0}}; | |
37137 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
37138 | static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0},{"_p_wxMaximizeEvent"},{0}}; | |
37139 | static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0},{"_p_wxIconizeEvent"},{0}}; | |
37140 | static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0},{"_p_wxActivateEvent"},{0}}; | |
37141 | static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0},{"_p_wxMoveEvent"},{0}}; | |
37142 | static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0},{"_p_wxSizeEvent"},{0}}; | |
37143 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0},{"_p_wxQueryNewPaletteEvent"},{0}}; | |
37144 | static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0},{"_p_wxWindowCreateEvent"},{0}}; | |
37145 | static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0},{"_p_wxIdleEvent"},{0}}; | |
37146 | static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0},{"_p_wxMenuItem"},{0}}; | |
37147 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
37148 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
37149 | static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0},{"_p_wxTIFFHandler"},{0}}; | |
37150 | static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0},{"_p_wxXPMHandler"},{0}}; | |
37151 | static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0},{"_p_wxPNMHandler"},{0}}; | |
37152 | static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0},{"_p_wxJPEGHandler"},{0}}; | |
37153 | static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0},{"_p_wxPCXHandler"},{0}}; | |
37154 | static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0},{"_p_wxGIFHandler"},{0}}; | |
37155 | static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0},{"_p_wxPNGHandler"},{0}}; | |
37156 | static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0},{"_p_wxANIHandler"},{0}}; | |
37157 | static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0},{"_p_wxMemoryFSHandler"},{0}}; | |
37158 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{0}}; | |
37159 | static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0},{"_p_wxCURHandler"},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler},{0}}; | |
37160 | static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0},{"_p_wxICOHandler"},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler},{0}}; | |
37161 | static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0},{"_p_wxBMPHandler"},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler},{0}}; | |
37162 | static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0},{"_p_wxImageHandler"},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler},{0}}; | |
37163 | static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0},{"_p_wxFileSystemHandler"},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler},{0}}; | |
37164 | static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0},{"_p_wxPyFileSystemHandler"},{0}}; | |
37165 | static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0},{"_p_wxInternetFSHandler"},{0}}; | |
37166 | static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0},{"_p_wxZipFSHandler"},{0}}; | |
37167 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
37168 | static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0},{"_p_wxGBSpan"},{0}}; | |
37169 | static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0},{"_p_wxPropagateOnce"},{0}}; | |
37170 | static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0},{"_p_wxAcceleratorTable"},{0}}; | |
37171 | static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0},{"_p_wxGBPosition"},{0}}; | |
37172 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
37173 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
37174 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0},{"_p_wxScrollWinEvent"},{0}}; | |
37175 | static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0},{"_p_wxImageHistogram"},{0}}; | |
37176 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
37177 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
37178 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
37179 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{0}}; | |
37180 | static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0},{"_p_wxPyInputStream"},{0}}; | |
37181 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; | |
37182 | static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}}; | |
37183 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
37184 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; | |
37185 | static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0},{"_p_wxNavigationKeyEvent"},{0}}; | |
37186 | static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0},{"_p_wxWindowDestroyEvent"},{0}}; | |
37187 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{0}}; | |
37188 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0},{"_p_wxMenuBar"},{0}}; | |
37189 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
37190 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}}; | |
37191 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
37192 | static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0},{"_p_wxMenuEvent"},{0}}; | |
37193 | static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0},{"_p_wxContextMenuEvent"},{0}}; | |
37194 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
37195 | static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0},{"_p_wxCloseEvent"},{0}}; | |
37196 | static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0},{"_p_wxEraseEvent"},{0}}; | |
37197 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
37198 | static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0},{"_p_wxPyApp"},{0}}; | |
37199 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{0}}; | |
37200 | static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0},{"_p_wxPyCommandEvent"},{0}}; | |
37201 | static swig_type_info _swigt__p_wxDropTarget[] = {{"_p_wxDropTarget", 0, "wxDropTarget *", 0},{"_p_wxDropTarget"},{0}}; | |
37202 | static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0},{"_p_wxChildFocusEvent"},{0}}; | |
37203 | static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0},{"_p_wxFocusEvent"},{0}}; | |
37204 | static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0},{"_p_wxDropFilesEvent"},{0}}; | |
37205 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxControlWithItems"},{0}}; | |
37206 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
37207 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
37208 | static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0},{"_p_wxPyValidator"},{0}}; | |
37209 | ||
37210 | static swig_type_info *swig_types_initial[] = { | |
37211 | _swigt__p_wxLayoutConstraints, | |
37212 | _swigt__p_wxRealPoint, | |
37213 | _swigt__p_wxSizerItem, | |
37214 | _swigt__p_wxGBSizerItem, | |
37215 | _swigt__p_wxScrollEvent, | |
37216 | _swigt__p_wxIndividualLayoutConstraint, | |
37217 | _swigt__p_wxSizer, | |
37218 | _swigt__p_wxBoxSizer, | |
37219 | _swigt__p_wxStaticBoxSizer, | |
37220 | _swigt__p_wxGridBagSizer, | |
37221 | _swigt__p_wxAcceleratorEntry, | |
37222 | _swigt__p_wxUpdateUIEvent, | |
37223 | _swigt__p_wxMenu, | |
37224 | _swigt__p_wxEvent, | |
37225 | _swigt__p_wxGridSizer, | |
37226 | _swigt__p_wxFlexGridSizer, | |
37227 | _swigt__p_wxInitDialogEvent, | |
37228 | _swigt__p_wxItemContainer, | |
37229 | _swigt__p_wxNcPaintEvent, | |
37230 | _swigt__p_wxPaintEvent, | |
37231 | _swigt__p_wxSysColourChangedEvent, | |
37232 | _swigt__p_wxMouseCaptureChangedEvent, | |
37233 | _swigt__p_wxDisplayChangedEvent, | |
37234 | _swigt__p_wxPaletteChangedEvent, | |
37235 | _swigt__p_wxControl, | |
37236 | _swigt__p_wxFont, | |
37237 | _swigt__p_wxMenuBarBase, | |
37238 | _swigt__p_wxSetCursorEvent, | |
37239 | _swigt__p_wxFSFile, | |
37240 | _swigt__p_wxCaret, | |
37241 | _swigt__p_wxRegion, | |
37242 | _swigt__p_wxPoint2D, | |
37243 | _swigt__p_int, | |
37244 | _swigt__p_wxSize, | |
37245 | _swigt__p_wxDC, | |
37246 | _swigt__p_wxPySizer, | |
37247 | _swigt__p_wxNotifyEvent, | |
37248 | _swigt__p_wxPyEvent, | |
37249 | _swigt__p_wxPropagationDisabler, | |
37250 | _swigt__p_wxAppTraits, | |
37251 | _swigt__p_wxArrayString, | |
37252 | _swigt__p_wxShowEvent, | |
37253 | _swigt__p_wxToolTip, | |
37254 | _swigt__p_wxMaximizeEvent, | |
37255 | _swigt__p_wxIconizeEvent, | |
37256 | _swigt__p_wxActivateEvent, | |
37257 | _swigt__p_wxMoveEvent, | |
37258 | _swigt__p_wxSizeEvent, | |
37259 | _swigt__p_wxQueryNewPaletteEvent, | |
37260 | _swigt__p_wxWindowCreateEvent, | |
37261 | _swigt__p_wxIdleEvent, | |
37262 | _swigt__p_wxMenuItem, | |
37263 | _swigt__p_wxStaticBox, | |
37264 | _swigt__p_long, | |
37265 | _swigt__p_wxTIFFHandler, | |
37266 | _swigt__p_wxXPMHandler, | |
37267 | _swigt__p_wxPNMHandler, | |
37268 | _swigt__p_wxJPEGHandler, | |
37269 | _swigt__p_wxPCXHandler, | |
37270 | _swigt__p_wxGIFHandler, | |
37271 | _swigt__p_wxPNGHandler, | |
37272 | _swigt__p_wxANIHandler, | |
37273 | _swigt__p_wxMemoryFSHandler, | |
37274 | _swigt__p_wxEvtHandler, | |
37275 | _swigt__p_wxCURHandler, | |
37276 | _swigt__p_wxICOHandler, | |
37277 | _swigt__p_wxBMPHandler, | |
37278 | _swigt__p_wxImageHandler, | |
37279 | _swigt__p_wxFileSystemHandler, | |
37280 | _swigt__p_wxPyFileSystemHandler, | |
37281 | _swigt__p_wxInternetFSHandler, | |
37282 | _swigt__p_wxZipFSHandler, | |
37283 | _swigt__p_wxRect, | |
37284 | _swigt__p_wxGBSpan, | |
37285 | _swigt__p_wxPropagateOnce, | |
37286 | _swigt__p_wxAcceleratorTable, | |
37287 | _swigt__p_wxGBPosition, | |
37288 | _swigt__p_wxImage, | |
37289 | _swigt__p_wxFrame, | |
37290 | _swigt__p_wxScrollWinEvent, | |
37291 | _swigt__p_wxImageHistogram, | |
37292 | _swigt__p_byte, | |
37293 | _swigt__p_wxPoint, | |
37294 | _swigt__p_wxCursor, | |
37295 | _swigt__p_wxObject, | |
37296 | _swigt__p_wxPyInputStream, | |
37297 | _swigt__p_wxOutputStream, | |
37298 | _swigt__p_wxInputStream, | |
37299 | _swigt__p_wxDateTime, | |
37300 | _swigt__p_wxKeyEvent, | |
37301 | _swigt__p_wxNavigationKeyEvent, | |
37302 | _swigt__p_wxWindowDestroyEvent, | |
37303 | _swigt__p_wxWindow, | |
37304 | _swigt__p_wxMenuBar, | |
37305 | _swigt__p_wxString, | |
37306 | _swigt__p_wxFileSystem, | |
37307 | _swigt__p_wxBitmap, | |
37308 | _swigt__p_wxMenuEvent, | |
37309 | _swigt__p_wxContextMenuEvent, | |
37310 | _swigt__p_unsigned_char, | |
37311 | _swigt__p_wxCloseEvent, | |
37312 | _swigt__p_wxEraseEvent, | |
37313 | _swigt__p_wxMouseEvent, | |
37314 | _swigt__p_wxPyApp, | |
37315 | _swigt__p_wxCommandEvent, | |
37316 | _swigt__p_wxPyCommandEvent, | |
37317 | _swigt__p_wxDropTarget, | |
37318 | _swigt__p_wxChildFocusEvent, | |
37319 | _swigt__p_wxFocusEvent, | |
37320 | _swigt__p_wxDropFilesEvent, | |
37321 | _swigt__p_wxControlWithItems, | |
37322 | _swigt__p_wxColour, | |
37323 | _swigt__p_wxValidator, | |
37324 | _swigt__p_wxPyValidator, | |
37325 | 0 | |
37326 | }; | |
37327 | ||
37328 | ||
37329 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
37330 | ||
37331 | static swig_const_info swig_const_table[] = { | |
37332 | { SWIG_PY_INT, (char *)"NOT_FOUND", (long) wxNOT_FOUND, 0, 0, 0}, | |
37333 | { SWIG_PY_INT, (char *)"VSCROLL", (long) wxVSCROLL, 0, 0, 0}, | |
37334 | { SWIG_PY_INT, (char *)"HSCROLL", (long) wxHSCROLL, 0, 0, 0}, | |
37335 | { SWIG_PY_INT, (char *)"CAPTION", (long) wxCAPTION, 0, 0, 0}, | |
37336 | { SWIG_PY_INT, (char *)"DOUBLE_BORDER", (long) wxDOUBLE_BORDER, 0, 0, 0}, | |
37337 | { SWIG_PY_INT, (char *)"SUNKEN_BORDER", (long) wxSUNKEN_BORDER, 0, 0, 0}, | |
37338 | { SWIG_PY_INT, (char *)"RAISED_BORDER", (long) wxRAISED_BORDER, 0, 0, 0}, | |
37339 | { SWIG_PY_INT, (char *)"BORDER", (long) wxBORDER, 0, 0, 0}, | |
37340 | { SWIG_PY_INT, (char *)"SIMPLE_BORDER", (long) wxSIMPLE_BORDER, 0, 0, 0}, | |
37341 | { SWIG_PY_INT, (char *)"STATIC_BORDER", (long) wxSTATIC_BORDER, 0, 0, 0}, | |
37342 | { SWIG_PY_INT, (char *)"TRANSPARENT_WINDOW", (long) wxTRANSPARENT_WINDOW, 0, 0, 0}, | |
37343 | { SWIG_PY_INT, (char *)"NO_BORDER", (long) wxNO_BORDER, 0, 0, 0}, | |
37344 | { SWIG_PY_INT, (char *)"USER_COLOURS", (long) wxUSER_COLOURS, 0, 0, 0}, | |
37345 | { SWIG_PY_INT, (char *)"NO_3D", (long) wxNO_3D, 0, 0, 0}, | |
37346 | { SWIG_PY_INT, (char *)"TAB_TRAVERSAL", (long) wxTAB_TRAVERSAL, 0, 0, 0}, | |
37347 | { SWIG_PY_INT, (char *)"WANTS_CHARS", (long) wxWANTS_CHARS, 0, 0, 0}, | |
37348 | { SWIG_PY_INT, (char *)"POPUP_WINDOW", (long) wxPOPUP_WINDOW, 0, 0, 0}, | |
37349 | { SWIG_PY_INT, (char *)"CENTER_FRAME", (long) wxCENTER_FRAME, 0, 0, 0}, | |
37350 | { SWIG_PY_INT, (char *)"CENTRE_ON_SCREEN", (long) wxCENTRE_ON_SCREEN, 0, 0, 0}, | |
37351 | { SWIG_PY_INT, (char *)"CENTER_ON_SCREEN", (long) wxCENTER_ON_SCREEN, 0, 0, 0}, | |
37352 | { SWIG_PY_INT, (char *)"STAY_ON_TOP", (long) wxSTAY_ON_TOP, 0, 0, 0}, | |
37353 | { SWIG_PY_INT, (char *)"ICONIZE", (long) wxICONIZE, 0, 0, 0}, | |
37354 | { SWIG_PY_INT, (char *)"MINIMIZE", (long) wxMINIMIZE, 0, 0, 0}, | |
37355 | { SWIG_PY_INT, (char *)"MAXIMIZE", (long) wxMAXIMIZE, 0, 0, 0}, | |
37356 | { SWIG_PY_INT, (char *)"CLOSE_BOX", (long) wxCLOSE_BOX, 0, 0, 0}, | |
37357 | { SWIG_PY_INT, (char *)"THICK_FRAME", (long) wxTHICK_FRAME, 0, 0, 0}, | |
37358 | { SWIG_PY_INT, (char *)"SYSTEM_MENU", (long) wxSYSTEM_MENU, 0, 0, 0}, | |
37359 | { SWIG_PY_INT, (char *)"MINIMIZE_BOX", (long) wxMINIMIZE_BOX, 0, 0, 0}, | |
37360 | { SWIG_PY_INT, (char *)"MAXIMIZE_BOX", (long) wxMAXIMIZE_BOX, 0, 0, 0}, | |
37361 | { SWIG_PY_INT, (char *)"TINY_CAPTION_HORIZ", (long) wxTINY_CAPTION_HORIZ, 0, 0, 0}, | |
37362 | { SWIG_PY_INT, (char *)"TINY_CAPTION_VERT", (long) wxTINY_CAPTION_VERT, 0, 0, 0}, | |
37363 | { SWIG_PY_INT, (char *)"RESIZE_BOX", (long) wxRESIZE_BOX, 0, 0, 0}, | |
37364 | { SWIG_PY_INT, (char *)"RESIZE_BORDER", (long) wxRESIZE_BORDER, 0, 0, 0}, | |
37365 | { SWIG_PY_INT, (char *)"DIALOG_MODAL", (long) wxDIALOG_MODAL, 0, 0, 0}, | |
37366 | { SWIG_PY_INT, (char *)"DIALOG_MODELESS", (long) wxDIALOG_MODELESS, 0, 0, 0}, | |
37367 | { SWIG_PY_INT, (char *)"DIALOG_NO_PARENT", (long) wxDIALOG_NO_PARENT, 0, 0, 0}, | |
37368 | { SWIG_PY_INT, (char *)"DEFAULT_FRAME_STYLE", (long) wxDEFAULT_FRAME_STYLE, 0, 0, 0}, | |
37369 | { SWIG_PY_INT, (char *)"DEFAULT_DIALOG_STYLE", (long) wxDEFAULT_DIALOG_STYLE, 0, 0, 0}, | |
37370 | { SWIG_PY_INT, (char *)"FRAME_TOOL_WINDOW", (long) wxFRAME_TOOL_WINDOW, 0, 0, 0}, | |
37371 | { SWIG_PY_INT, (char *)"FRAME_FLOAT_ON_PARENT", (long) wxFRAME_FLOAT_ON_PARENT, 0, 0, 0}, | |
37372 | { SWIG_PY_INT, (char *)"FRAME_NO_WINDOW_MENU", (long) wxFRAME_NO_WINDOW_MENU, 0, 0, 0}, | |
37373 | { SWIG_PY_INT, (char *)"FRAME_NO_TASKBAR", (long) wxFRAME_NO_TASKBAR, 0, 0, 0}, | |
37374 | { SWIG_PY_INT, (char *)"FRAME_SHAPED", (long) wxFRAME_SHAPED, 0, 0, 0}, | |
37375 | { SWIG_PY_INT, (char *)"ED_CLIENT_MARGIN", (long) wxED_CLIENT_MARGIN, 0, 0, 0}, | |
37376 | { SWIG_PY_INT, (char *)"ED_BUTTONS_BOTTOM", (long) wxED_BUTTONS_BOTTOM, 0, 0, 0}, | |
37377 | { SWIG_PY_INT, (char *)"ED_BUTTONS_RIGHT", (long) wxED_BUTTONS_RIGHT, 0, 0, 0}, | |
37378 | { SWIG_PY_INT, (char *)"ED_STATIC_LINE", (long) wxED_STATIC_LINE, 0, 0, 0}, | |
37379 | { SWIG_PY_INT, (char *)"EXT_DIALOG_STYLE", (long) wxEXT_DIALOG_STYLE, 0, 0, 0}, | |
37380 | { SWIG_PY_INT, (char *)"CLIP_CHILDREN", (long) wxCLIP_CHILDREN, 0, 0, 0}, | |
37381 | { SWIG_PY_INT, (char *)"CLIP_SIBLINGS", (long) wxCLIP_SIBLINGS, 0, 0, 0}, | |
37382 | { SWIG_PY_INT, (char *)"RETAINED", (long) wxRETAINED, 0, 0, 0}, | |
37383 | { SWIG_PY_INT, (char *)"BACKINGSTORE", (long) wxBACKINGSTORE, 0, 0, 0}, | |
37384 | { SWIG_PY_INT, (char *)"COLOURED", (long) wxCOLOURED, 0, 0, 0}, | |
37385 | { SWIG_PY_INT, (char *)"FIXED_LENGTH", (long) wxFIXED_LENGTH, 0, 0, 0}, | |
37386 | { SWIG_PY_INT, (char *)"LB_NEEDED_SB", (long) wxLB_NEEDED_SB, 0, 0, 0}, | |
37387 | { SWIG_PY_INT, (char *)"LB_ALWAYS_SB", (long) wxLB_ALWAYS_SB, 0, 0, 0}, | |
37388 | { SWIG_PY_INT, (char *)"LB_SORT", (long) wxLB_SORT, 0, 0, 0}, | |
37389 | { SWIG_PY_INT, (char *)"LB_SINGLE", (long) wxLB_SINGLE, 0, 0, 0}, | |
37390 | { SWIG_PY_INT, (char *)"LB_MULTIPLE", (long) wxLB_MULTIPLE, 0, 0, 0}, | |
37391 | { SWIG_PY_INT, (char *)"LB_EXTENDED", (long) wxLB_EXTENDED, 0, 0, 0}, | |
37392 | { SWIG_PY_INT, (char *)"LB_OWNERDRAW", (long) wxLB_OWNERDRAW, 0, 0, 0}, | |
37393 | { SWIG_PY_INT, (char *)"LB_HSCROLL", (long) wxLB_HSCROLL, 0, 0, 0}, | |
37394 | { SWIG_PY_INT, (char *)"PROCESS_ENTER", (long) wxPROCESS_ENTER, 0, 0, 0}, | |
37395 | { SWIG_PY_INT, (char *)"PASSWORD", (long) wxPASSWORD, 0, 0, 0}, | |
37396 | { SWIG_PY_INT, (char *)"CB_SIMPLE", (long) wxCB_SIMPLE, 0, 0, 0}, | |
37397 | { SWIG_PY_INT, (char *)"CB_DROPDOWN", (long) wxCB_DROPDOWN, 0, 0, 0}, | |
37398 | { SWIG_PY_INT, (char *)"CB_SORT", (long) wxCB_SORT, 0, 0, 0}, | |
37399 | { SWIG_PY_INT, (char *)"CB_READONLY", (long) wxCB_READONLY, 0, 0, 0}, | |
37400 | { SWIG_PY_INT, (char *)"RA_HORIZONTAL", (long) wxRA_HORIZONTAL, 0, 0, 0}, | |
37401 | { SWIG_PY_INT, (char *)"RA_VERTICAL", (long) wxRA_VERTICAL, 0, 0, 0}, | |
37402 | { SWIG_PY_INT, (char *)"RA_SPECIFY_ROWS", (long) wxRA_SPECIFY_ROWS, 0, 0, 0}, | |
37403 | { SWIG_PY_INT, (char *)"RA_SPECIFY_COLS", (long) wxRA_SPECIFY_COLS, 0, 0, 0}, | |
37404 | { SWIG_PY_INT, (char *)"RB_GROUP", (long) wxRB_GROUP, 0, 0, 0}, | |
37405 | { SWIG_PY_INT, (char *)"RB_SINGLE", (long) wxRB_SINGLE, 0, 0, 0}, | |
37406 | { SWIG_PY_INT, (char *)"SL_HORIZONTAL", (long) wxSL_HORIZONTAL, 0, 0, 0}, | |
37407 | { SWIG_PY_INT, (char *)"SL_VERTICAL", (long) wxSL_VERTICAL, 0, 0, 0}, | |
37408 | { SWIG_PY_INT, (char *)"SL_AUTOTICKS", (long) wxSL_AUTOTICKS, 0, 0, 0}, | |
37409 | { SWIG_PY_INT, (char *)"SL_LABELS", (long) wxSL_LABELS, 0, 0, 0}, | |
37410 | { SWIG_PY_INT, (char *)"SL_LEFT", (long) wxSL_LEFT, 0, 0, 0}, | |
37411 | { SWIG_PY_INT, (char *)"SL_TOP", (long) wxSL_TOP, 0, 0, 0}, | |
37412 | { SWIG_PY_INT, (char *)"SL_RIGHT", (long) wxSL_RIGHT, 0, 0, 0}, | |
37413 | { SWIG_PY_INT, (char *)"SL_BOTTOM", (long) wxSL_BOTTOM, 0, 0, 0}, | |
37414 | { SWIG_PY_INT, (char *)"SL_BOTH", (long) wxSL_BOTH, 0, 0, 0}, | |
37415 | { SWIG_PY_INT, (char *)"SL_SELRANGE", (long) wxSL_SELRANGE, 0, 0, 0}, | |
37416 | { SWIG_PY_INT, (char *)"SB_HORIZONTAL", (long) wxSB_HORIZONTAL, 0, 0, 0}, | |
37417 | { SWIG_PY_INT, (char *)"SB_VERTICAL", (long) wxSB_VERTICAL, 0, 0, 0}, | |
37418 | { SWIG_PY_INT, (char *)"ST_SIZEGRIP", (long) wxST_SIZEGRIP, 0, 0, 0}, | |
37419 | { SWIG_PY_INT, (char *)"ST_NO_AUTORESIZE", (long) wxST_NO_AUTORESIZE, 0, 0, 0}, | |
37420 | { SWIG_PY_INT, (char *)"FLOOD_SURFACE", (long) wxFLOOD_SURFACE, 0, 0, 0}, | |
37421 | { SWIG_PY_INT, (char *)"FLOOD_BORDER", (long) wxFLOOD_BORDER, 0, 0, 0}, | |
37422 | { SWIG_PY_INT, (char *)"ODDEVEN_RULE", (long) wxODDEVEN_RULE, 0, 0, 0}, | |
37423 | { SWIG_PY_INT, (char *)"WINDING_RULE", (long) wxWINDING_RULE, 0, 0, 0}, | |
37424 | { SWIG_PY_INT, (char *)"TOOL_TOP", (long) wxTOOL_TOP, 0, 0, 0}, | |
37425 | { SWIG_PY_INT, (char *)"TOOL_BOTTOM", (long) wxTOOL_BOTTOM, 0, 0, 0}, | |
37426 | { SWIG_PY_INT, (char *)"TOOL_LEFT", (long) wxTOOL_LEFT, 0, 0, 0}, | |
37427 | { SWIG_PY_INT, (char *)"TOOL_RIGHT", (long) wxTOOL_RIGHT, 0, 0, 0}, | |
37428 | { SWIG_PY_INT, (char *)"OK", (long) wxOK, 0, 0, 0}, | |
37429 | { SWIG_PY_INT, (char *)"YES_NO", (long) wxYES_NO, 0, 0, 0}, | |
37430 | { SWIG_PY_INT, (char *)"CANCEL", (long) wxCANCEL, 0, 0, 0}, | |
37431 | { SWIG_PY_INT, (char *)"YES", (long) wxYES, 0, 0, 0}, | |
37432 | { SWIG_PY_INT, (char *)"NO", (long) wxNO, 0, 0, 0}, | |
37433 | { SWIG_PY_INT, (char *)"NO_DEFAULT", (long) wxNO_DEFAULT, 0, 0, 0}, | |
37434 | { SWIG_PY_INT, (char *)"YES_DEFAULT", (long) wxYES_DEFAULT, 0, 0, 0}, | |
37435 | { SWIG_PY_INT, (char *)"ICON_EXCLAMATION", (long) wxICON_EXCLAMATION, 0, 0, 0}, | |
37436 | { SWIG_PY_INT, (char *)"ICON_HAND", (long) wxICON_HAND, 0, 0, 0}, | |
37437 | { SWIG_PY_INT, (char *)"ICON_QUESTION", (long) wxICON_QUESTION, 0, 0, 0}, | |
37438 | { SWIG_PY_INT, (char *)"ICON_INFORMATION", (long) wxICON_INFORMATION, 0, 0, 0}, | |
37439 | { SWIG_PY_INT, (char *)"ICON_STOP", (long) wxICON_STOP, 0, 0, 0}, | |
37440 | { SWIG_PY_INT, (char *)"ICON_ASTERISK", (long) wxICON_ASTERISK, 0, 0, 0}, | |
37441 | { SWIG_PY_INT, (char *)"ICON_MASK", (long) wxICON_MASK, 0, 0, 0}, | |
37442 | { SWIG_PY_INT, (char *)"ICON_WARNING", (long) wxICON_WARNING, 0, 0, 0}, | |
37443 | { SWIG_PY_INT, (char *)"ICON_ERROR", (long) wxICON_ERROR, 0, 0, 0}, | |
37444 | { SWIG_PY_INT, (char *)"FORWARD", (long) wxFORWARD, 0, 0, 0}, | |
37445 | { SWIG_PY_INT, (char *)"BACKWARD", (long) wxBACKWARD, 0, 0, 0}, | |
37446 | { SWIG_PY_INT, (char *)"RESET", (long) wxRESET, 0, 0, 0}, | |
37447 | { SWIG_PY_INT, (char *)"HELP", (long) wxHELP, 0, 0, 0}, | |
37448 | { SWIG_PY_INT, (char *)"MORE", (long) wxMORE, 0, 0, 0}, | |
37449 | { SWIG_PY_INT, (char *)"SETUP", (long) wxSETUP, 0, 0, 0}, | |
37450 | { SWIG_PY_INT, (char *)"SIZE_AUTO_WIDTH", (long) wxSIZE_AUTO_WIDTH, 0, 0, 0}, | |
37451 | { SWIG_PY_INT, (char *)"SIZE_AUTO_HEIGHT", (long) wxSIZE_AUTO_HEIGHT, 0, 0, 0}, | |
37452 | { SWIG_PY_INT, (char *)"SIZE_AUTO", (long) wxSIZE_AUTO, 0, 0, 0}, | |
37453 | { SWIG_PY_INT, (char *)"SIZE_USE_EXISTING", (long) wxSIZE_USE_EXISTING, 0, 0, 0}, | |
37454 | { SWIG_PY_INT, (char *)"SIZE_ALLOW_MINUS_ONE", (long) wxSIZE_ALLOW_MINUS_ONE, 0, 0, 0}, | |
37455 | { SWIG_PY_INT, (char *)"PORTRAIT", (long) wxPORTRAIT, 0, 0, 0}, | |
37456 | { SWIG_PY_INT, (char *)"LANDSCAPE", (long) wxLANDSCAPE, 0, 0, 0}, | |
37457 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_HIGH", (long) wxPRINT_QUALITY_HIGH, 0, 0, 0}, | |
37458 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_MEDIUM", (long) wxPRINT_QUALITY_MEDIUM, 0, 0, 0}, | |
37459 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_LOW", (long) wxPRINT_QUALITY_LOW, 0, 0, 0}, | |
37460 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_DRAFT", (long) wxPRINT_QUALITY_DRAFT, 0, 0, 0}, | |
37461 | { SWIG_PY_INT, (char *)"ID_ANY", (long) wxID_ANY, 0, 0, 0}, | |
37462 | { SWIG_PY_INT, (char *)"ID_SEPARATOR", (long) wxID_SEPARATOR, 0, 0, 0}, | |
37463 | { SWIG_PY_INT, (char *)"ID_LOWEST", (long) wxID_LOWEST, 0, 0, 0}, | |
37464 | { SWIG_PY_INT, (char *)"ID_OPEN", (long) wxID_OPEN, 0, 0, 0}, | |
37465 | { SWIG_PY_INT, (char *)"ID_CLOSE", (long) wxID_CLOSE, 0, 0, 0}, | |
37466 | { SWIG_PY_INT, (char *)"ID_NEW", (long) wxID_NEW, 0, 0, 0}, | |
37467 | { SWIG_PY_INT, (char *)"ID_SAVE", (long) wxID_SAVE, 0, 0, 0}, | |
37468 | { SWIG_PY_INT, (char *)"ID_SAVEAS", (long) wxID_SAVEAS, 0, 0, 0}, | |
37469 | { SWIG_PY_INT, (char *)"ID_REVERT", (long) wxID_REVERT, 0, 0, 0}, | |
37470 | { SWIG_PY_INT, (char *)"ID_EXIT", (long) wxID_EXIT, 0, 0, 0}, | |
37471 | { SWIG_PY_INT, (char *)"ID_UNDO", (long) wxID_UNDO, 0, 0, 0}, | |
37472 | { SWIG_PY_INT, (char *)"ID_REDO", (long) wxID_REDO, 0, 0, 0}, | |
37473 | { SWIG_PY_INT, (char *)"ID_HELP", (long) wxID_HELP, 0, 0, 0}, | |
37474 | { SWIG_PY_INT, (char *)"ID_PRINT", (long) wxID_PRINT, 0, 0, 0}, | |
37475 | { SWIG_PY_INT, (char *)"ID_PRINT_SETUP", (long) wxID_PRINT_SETUP, 0, 0, 0}, | |
37476 | { SWIG_PY_INT, (char *)"ID_PREVIEW", (long) wxID_PREVIEW, 0, 0, 0}, | |
37477 | { SWIG_PY_INT, (char *)"ID_ABOUT", (long) wxID_ABOUT, 0, 0, 0}, | |
37478 | { SWIG_PY_INT, (char *)"ID_HELP_CONTENTS", (long) wxID_HELP_CONTENTS, 0, 0, 0}, | |
37479 | { SWIG_PY_INT, (char *)"ID_HELP_COMMANDS", (long) wxID_HELP_COMMANDS, 0, 0, 0}, | |
37480 | { SWIG_PY_INT, (char *)"ID_HELP_PROCEDURES", (long) wxID_HELP_PROCEDURES, 0, 0, 0}, | |
37481 | { SWIG_PY_INT, (char *)"ID_HELP_CONTEXT", (long) wxID_HELP_CONTEXT, 0, 0, 0}, | |
37482 | { SWIG_PY_INT, (char *)"ID_CLOSE_ALL", (long) wxID_CLOSE_ALL, 0, 0, 0}, | |
37483 | { SWIG_PY_INT, (char *)"ID_PREFERENCES", (long) wxID_PREFERENCES, 0, 0, 0}, | |
37484 | { SWIG_PY_INT, (char *)"ID_CUT", (long) wxID_CUT, 0, 0, 0}, | |
37485 | { SWIG_PY_INT, (char *)"ID_COPY", (long) wxID_COPY, 0, 0, 0}, | |
37486 | { SWIG_PY_INT, (char *)"ID_PASTE", (long) wxID_PASTE, 0, 0, 0}, | |
37487 | { SWIG_PY_INT, (char *)"ID_CLEAR", (long) wxID_CLEAR, 0, 0, 0}, | |
37488 | { SWIG_PY_INT, (char *)"ID_FIND", (long) wxID_FIND, 0, 0, 0}, | |
37489 | { SWIG_PY_INT, (char *)"ID_DUPLICATE", (long) wxID_DUPLICATE, 0, 0, 0}, | |
37490 | { SWIG_PY_INT, (char *)"ID_SELECTALL", (long) wxID_SELECTALL, 0, 0, 0}, | |
37491 | { SWIG_PY_INT, (char *)"ID_DELETE", (long) wxID_DELETE, 0, 0, 0}, | |
37492 | { SWIG_PY_INT, (char *)"ID_REPLACE", (long) wxID_REPLACE, 0, 0, 0}, | |
37493 | { SWIG_PY_INT, (char *)"ID_REPLACE_ALL", (long) wxID_REPLACE_ALL, 0, 0, 0}, | |
37494 | { SWIG_PY_INT, (char *)"ID_PROPERTIES", (long) wxID_PROPERTIES, 0, 0, 0}, | |
37495 | { SWIG_PY_INT, (char *)"ID_VIEW_DETAILS", (long) wxID_VIEW_DETAILS, 0, 0, 0}, | |
37496 | { SWIG_PY_INT, (char *)"ID_VIEW_LARGEICONS", (long) wxID_VIEW_LARGEICONS, 0, 0, 0}, | |
37497 | { SWIG_PY_INT, (char *)"ID_VIEW_SMALLICONS", (long) wxID_VIEW_SMALLICONS, 0, 0, 0}, | |
37498 | { SWIG_PY_INT, (char *)"ID_VIEW_LIST", (long) wxID_VIEW_LIST, 0, 0, 0}, | |
37499 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTDATE", (long) wxID_VIEW_SORTDATE, 0, 0, 0}, | |
37500 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTNAME", (long) wxID_VIEW_SORTNAME, 0, 0, 0}, | |
37501 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTSIZE", (long) wxID_VIEW_SORTSIZE, 0, 0, 0}, | |
37502 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTTYPE", (long) wxID_VIEW_SORTTYPE, 0, 0, 0}, | |
37503 | { SWIG_PY_INT, (char *)"ID_FILE1", (long) wxID_FILE1, 0, 0, 0}, | |
37504 | { SWIG_PY_INT, (char *)"ID_FILE2", (long) wxID_FILE2, 0, 0, 0}, | |
37505 | { SWIG_PY_INT, (char *)"ID_FILE3", (long) wxID_FILE3, 0, 0, 0}, | |
37506 | { SWIG_PY_INT, (char *)"ID_FILE4", (long) wxID_FILE4, 0, 0, 0}, | |
37507 | { SWIG_PY_INT, (char *)"ID_FILE5", (long) wxID_FILE5, 0, 0, 0}, | |
37508 | { SWIG_PY_INT, (char *)"ID_FILE6", (long) wxID_FILE6, 0, 0, 0}, | |
37509 | { SWIG_PY_INT, (char *)"ID_FILE7", (long) wxID_FILE7, 0, 0, 0}, | |
37510 | { SWIG_PY_INT, (char *)"ID_FILE8", (long) wxID_FILE8, 0, 0, 0}, | |
37511 | { SWIG_PY_INT, (char *)"ID_FILE9", (long) wxID_FILE9, 0, 0, 0}, | |
37512 | { SWIG_PY_INT, (char *)"ID_OK", (long) wxID_OK, 0, 0, 0}, | |
37513 | { SWIG_PY_INT, (char *)"ID_CANCEL", (long) wxID_CANCEL, 0, 0, 0}, | |
37514 | { SWIG_PY_INT, (char *)"ID_APPLY", (long) wxID_APPLY, 0, 0, 0}, | |
37515 | { SWIG_PY_INT, (char *)"ID_YES", (long) wxID_YES, 0, 0, 0}, | |
37516 | { SWIG_PY_INT, (char *)"ID_NO", (long) wxID_NO, 0, 0, 0}, | |
37517 | { SWIG_PY_INT, (char *)"ID_STATIC", (long) wxID_STATIC, 0, 0, 0}, | |
37518 | { SWIG_PY_INT, (char *)"ID_FORWARD", (long) wxID_FORWARD, 0, 0, 0}, | |
37519 | { SWIG_PY_INT, (char *)"ID_BACKWARD", (long) wxID_BACKWARD, 0, 0, 0}, | |
37520 | { SWIG_PY_INT, (char *)"ID_DEFAULT", (long) wxID_DEFAULT, 0, 0, 0}, | |
37521 | { SWIG_PY_INT, (char *)"ID_MORE", (long) wxID_MORE, 0, 0, 0}, | |
37522 | { SWIG_PY_INT, (char *)"ID_SETUP", (long) wxID_SETUP, 0, 0, 0}, | |
37523 | { SWIG_PY_INT, (char *)"ID_RESET", (long) wxID_RESET, 0, 0, 0}, | |
37524 | { SWIG_PY_INT, (char *)"ID_CONTEXT_HELP", (long) wxID_CONTEXT_HELP, 0, 0, 0}, | |
37525 | { SWIG_PY_INT, (char *)"ID_YESTOALL", (long) wxID_YESTOALL, 0, 0, 0}, | |
37526 | { SWIG_PY_INT, (char *)"ID_NOTOALL", (long) wxID_NOTOALL, 0, 0, 0}, | |
37527 | { SWIG_PY_INT, (char *)"ID_ABORT", (long) wxID_ABORT, 0, 0, 0}, | |
37528 | { SWIG_PY_INT, (char *)"ID_RETRY", (long) wxID_RETRY, 0, 0, 0}, | |
37529 | { SWIG_PY_INT, (char *)"ID_IGNORE", (long) wxID_IGNORE, 0, 0, 0}, | |
37530 | { SWIG_PY_INT, (char *)"ID_HIGHEST", (long) wxID_HIGHEST, 0, 0, 0}, | |
37531 | { SWIG_PY_INT, (char *)"OPEN", (long) wxOPEN, 0, 0, 0}, | |
37532 | { SWIG_PY_INT, (char *)"SAVE", (long) wxSAVE, 0, 0, 0}, | |
37533 | { SWIG_PY_INT, (char *)"HIDE_READONLY", (long) wxHIDE_READONLY, 0, 0, 0}, | |
37534 | { SWIG_PY_INT, (char *)"OVERWRITE_PROMPT", (long) wxOVERWRITE_PROMPT, 0, 0, 0}, | |
37535 | { SWIG_PY_INT, (char *)"FILE_MUST_EXIST", (long) wxFILE_MUST_EXIST, 0, 0, 0}, | |
37536 | { SWIG_PY_INT, (char *)"MULTIPLE", (long) wxMULTIPLE, 0, 0, 0}, | |
37537 | { SWIG_PY_INT, (char *)"CHANGE_DIR", (long) wxCHANGE_DIR, 0, 0, 0}, | |
37538 | { SWIG_PY_INT, (char *)"ACCEL_ALT", (long) wxACCEL_ALT, 0, 0, 0}, | |
37539 | { SWIG_PY_INT, (char *)"ACCEL_CTRL", (long) wxACCEL_CTRL, 0, 0, 0}, | |
37540 | { SWIG_PY_INT, (char *)"ACCEL_SHIFT", (long) wxACCEL_SHIFT, 0, 0, 0}, | |
37541 | { SWIG_PY_INT, (char *)"ACCEL_NORMAL", (long) wxACCEL_NORMAL, 0, 0, 0}, | |
37542 | { SWIG_PY_INT, (char *)"PD_AUTO_HIDE", (long) wxPD_AUTO_HIDE, 0, 0, 0}, | |
37543 | { SWIG_PY_INT, (char *)"PD_APP_MODAL", (long) wxPD_APP_MODAL, 0, 0, 0}, | |
37544 | { SWIG_PY_INT, (char *)"PD_CAN_ABORT", (long) wxPD_CAN_ABORT, 0, 0, 0}, | |
37545 | { SWIG_PY_INT, (char *)"PD_ELAPSED_TIME", (long) wxPD_ELAPSED_TIME, 0, 0, 0}, | |
37546 | { SWIG_PY_INT, (char *)"PD_ESTIMATED_TIME", (long) wxPD_ESTIMATED_TIME, 0, 0, 0}, | |
37547 | { SWIG_PY_INT, (char *)"PD_REMAINING_TIME", (long) wxPD_REMAINING_TIME, 0, 0, 0}, | |
37548 | { SWIG_PY_INT, (char *)"DD_NEW_DIR_BUTTON", (long) wxDD_NEW_DIR_BUTTON, 0, 0, 0}, | |
37549 | { SWIG_PY_INT, (char *)"DD_DEFAULT_STYLE", (long) wxDD_DEFAULT_STYLE, 0, 0, 0}, | |
37550 | { SWIG_PY_INT, (char *)"MENU_TEAROFF", (long) wxMENU_TEAROFF, 0, 0, 0}, | |
37551 | { SWIG_PY_INT, (char *)"MB_DOCKABLE", (long) wxMB_DOCKABLE, 0, 0, 0}, | |
37552 | { SWIG_PY_INT, (char *)"NO_FULL_REPAINT_ON_RESIZE", (long) wxNO_FULL_REPAINT_ON_RESIZE, 0, 0, 0}, | |
37553 | { SWIG_PY_INT, (char *)"LI_HORIZONTAL", (long) wxLI_HORIZONTAL, 0, 0, 0}, | |
37554 | { SWIG_PY_INT, (char *)"LI_VERTICAL", (long) wxLI_VERTICAL, 0, 0, 0}, | |
37555 | { SWIG_PY_INT, (char *)"WS_EX_VALIDATE_RECURSIVELY", (long) wxWS_EX_VALIDATE_RECURSIVELY, 0, 0, 0}, | |
37556 | { SWIG_PY_INT, (char *)"WS_EX_BLOCK_EVENTS", (long) wxWS_EX_BLOCK_EVENTS, 0, 0, 0}, | |
37557 | { SWIG_PY_INT, (char *)"WS_EX_TRANSIENT", (long) wxWS_EX_TRANSIENT, 0, 0, 0}, | |
37558 | { SWIG_PY_INT, (char *)"WS_EX_THEMED_BACKGROUND", (long) wxWS_EX_THEMED_BACKGROUND, 0, 0, 0}, | |
37559 | { SWIG_PY_INT, (char *)"WS_EX_PROCESS_IDLE", (long) wxWS_EX_PROCESS_IDLE, 0, 0, 0}, | |
37560 | { SWIG_PY_INT, (char *)"WS_EX_PROCESS_UI_UPDATES", (long) wxWS_EX_PROCESS_UI_UPDATES, 0, 0, 0}, | |
37561 | { SWIG_PY_INT, (char *)"MM_TEXT", (long) wxMM_TEXT, 0, 0, 0}, | |
37562 | { SWIG_PY_INT, (char *)"MM_LOMETRIC", (long) wxMM_LOMETRIC, 0, 0, 0}, | |
37563 | { SWIG_PY_INT, (char *)"MM_HIMETRIC", (long) wxMM_HIMETRIC, 0, 0, 0}, | |
37564 | { SWIG_PY_INT, (char *)"MM_LOENGLISH", (long) wxMM_LOENGLISH, 0, 0, 0}, | |
37565 | { SWIG_PY_INT, (char *)"MM_HIENGLISH", (long) wxMM_HIENGLISH, 0, 0, 0}, | |
37566 | { SWIG_PY_INT, (char *)"MM_TWIPS", (long) wxMM_TWIPS, 0, 0, 0}, | |
37567 | { SWIG_PY_INT, (char *)"MM_ISOTROPIC", (long) wxMM_ISOTROPIC, 0, 0, 0}, | |
37568 | { SWIG_PY_INT, (char *)"MM_ANISOTROPIC", (long) wxMM_ANISOTROPIC, 0, 0, 0}, | |
37569 | { SWIG_PY_INT, (char *)"MM_POINTS", (long) wxMM_POINTS, 0, 0, 0}, | |
37570 | { SWIG_PY_INT, (char *)"MM_METRIC", (long) wxMM_METRIC, 0, 0, 0}, | |
37571 | { SWIG_PY_INT, (char *)"CENTRE", (long) wxCENTRE, 0, 0, 0}, | |
37572 | { SWIG_PY_INT, (char *)"CENTER", (long) wxCENTER, 0, 0, 0}, | |
37573 | { SWIG_PY_INT, (char *)"HORIZONTAL", (long) wxHORIZONTAL, 0, 0, 0}, | |
37574 | { SWIG_PY_INT, (char *)"VERTICAL", (long) wxVERTICAL, 0, 0, 0}, | |
37575 | { SWIG_PY_INT, (char *)"BOTH", (long) wxBOTH, 0, 0, 0}, | |
37576 | { SWIG_PY_INT, (char *)"LEFT", (long) wxLEFT, 0, 0, 0}, | |
37577 | { SWIG_PY_INT, (char *)"RIGHT", (long) wxRIGHT, 0, 0, 0}, | |
37578 | { SWIG_PY_INT, (char *)"UP", (long) wxUP, 0, 0, 0}, | |
37579 | { SWIG_PY_INT, (char *)"DOWN", (long) wxDOWN, 0, 0, 0}, | |
37580 | { SWIG_PY_INT, (char *)"TOP", (long) wxTOP, 0, 0, 0}, | |
37581 | { SWIG_PY_INT, (char *)"BOTTOM", (long) wxBOTTOM, 0, 0, 0}, | |
37582 | { SWIG_PY_INT, (char *)"NORTH", (long) wxNORTH, 0, 0, 0}, | |
37583 | { SWIG_PY_INT, (char *)"SOUTH", (long) wxSOUTH, 0, 0, 0}, | |
37584 | { SWIG_PY_INT, (char *)"WEST", (long) wxWEST, 0, 0, 0}, | |
37585 | { SWIG_PY_INT, (char *)"EAST", (long) wxEAST, 0, 0, 0}, | |
37586 | { SWIG_PY_INT, (char *)"ALL", (long) wxALL, 0, 0, 0}, | |
37587 | { SWIG_PY_INT, (char *)"ALIGN_NOT", (long) wxALIGN_NOT, 0, 0, 0}, | |
37588 | { SWIG_PY_INT, (char *)"ALIGN_CENTER_HORIZONTAL", (long) wxALIGN_CENTER_HORIZONTAL, 0, 0, 0}, | |
37589 | { SWIG_PY_INT, (char *)"ALIGN_CENTRE_HORIZONTAL", (long) wxALIGN_CENTRE_HORIZONTAL, 0, 0, 0}, | |
37590 | { SWIG_PY_INT, (char *)"ALIGN_LEFT", (long) wxALIGN_LEFT, 0, 0, 0}, | |
37591 | { SWIG_PY_INT, (char *)"ALIGN_TOP", (long) wxALIGN_TOP, 0, 0, 0}, | |
37592 | { SWIG_PY_INT, (char *)"ALIGN_RIGHT", (long) wxALIGN_RIGHT, 0, 0, 0}, | |
37593 | { SWIG_PY_INT, (char *)"ALIGN_BOTTOM", (long) wxALIGN_BOTTOM, 0, 0, 0}, | |
37594 | { SWIG_PY_INT, (char *)"ALIGN_CENTER_VERTICAL", (long) wxALIGN_CENTER_VERTICAL, 0, 0, 0}, | |
37595 | { SWIG_PY_INT, (char *)"ALIGN_CENTRE_VERTICAL", (long) wxALIGN_CENTRE_VERTICAL, 0, 0, 0}, | |
37596 | { SWIG_PY_INT, (char *)"ALIGN_CENTER", (long) wxALIGN_CENTER, 0, 0, 0}, | |
37597 | { SWIG_PY_INT, (char *)"ALIGN_CENTRE", (long) wxALIGN_CENTRE, 0, 0, 0}, | |
37598 | { SWIG_PY_INT, (char *)"ALIGN_MASK", (long) wxALIGN_MASK, 0, 0, 0}, | |
37599 | { SWIG_PY_INT, (char *)"STRETCH_NOT", (long) wxSTRETCH_NOT, 0, 0, 0}, | |
37600 | { SWIG_PY_INT, (char *)"SHRINK", (long) wxSHRINK, 0, 0, 0}, | |
37601 | { SWIG_PY_INT, (char *)"GROW", (long) wxGROW, 0, 0, 0}, | |
37602 | { SWIG_PY_INT, (char *)"EXPAND", (long) wxEXPAND, 0, 0, 0}, | |
37603 | { SWIG_PY_INT, (char *)"SHAPED", (long) wxSHAPED, 0, 0, 0}, | |
37604 | { SWIG_PY_INT, (char *)"ADJUST_MINSIZE", (long) wxADJUST_MINSIZE, 0, 0, 0}, | |
37605 | { SWIG_PY_INT, (char *)"TILE", (long) wxTILE, 0, 0, 0}, | |
37606 | { SWIG_PY_INT, (char *)"BORDER_DEFAULT", (long) wxBORDER_DEFAULT, 0, 0, 0}, | |
37607 | { SWIG_PY_INT, (char *)"BORDER_NONE", (long) wxBORDER_NONE, 0, 0, 0}, | |
37608 | { SWIG_PY_INT, (char *)"BORDER_STATIC", (long) wxBORDER_STATIC, 0, 0, 0}, | |
37609 | { SWIG_PY_INT, (char *)"BORDER_SIMPLE", (long) wxBORDER_SIMPLE, 0, 0, 0}, | |
37610 | { SWIG_PY_INT, (char *)"BORDER_RAISED", (long) wxBORDER_RAISED, 0, 0, 0}, | |
37611 | { SWIG_PY_INT, (char *)"BORDER_SUNKEN", (long) wxBORDER_SUNKEN, 0, 0, 0}, | |
37612 | { SWIG_PY_INT, (char *)"BORDER_DOUBLE", (long) wxBORDER_DOUBLE, 0, 0, 0}, | |
37613 | { SWIG_PY_INT, (char *)"BORDER_MASK", (long) wxBORDER_MASK, 0, 0, 0}, | |
37614 | { SWIG_PY_INT, (char *)"DEFAULT", (long) wxDEFAULT, 0, 0, 0}, | |
37615 | { SWIG_PY_INT, (char *)"DECORATIVE", (long) wxDECORATIVE, 0, 0, 0}, | |
37616 | { SWIG_PY_INT, (char *)"ROMAN", (long) wxROMAN, 0, 0, 0}, | |
37617 | { SWIG_PY_INT, (char *)"SCRIPT", (long) wxSCRIPT, 0, 0, 0}, | |
37618 | { SWIG_PY_INT, (char *)"SWISS", (long) wxSWISS, 0, 0, 0}, | |
37619 | { SWIG_PY_INT, (char *)"MODERN", (long) wxMODERN, 0, 0, 0}, | |
37620 | { SWIG_PY_INT, (char *)"TELETYPE", (long) wxTELETYPE, 0, 0, 0}, | |
37621 | { SWIG_PY_INT, (char *)"VARIABLE", (long) wxVARIABLE, 0, 0, 0}, | |
37622 | { SWIG_PY_INT, (char *)"FIXED", (long) wxFIXED, 0, 0, 0}, | |
37623 | { SWIG_PY_INT, (char *)"NORMAL", (long) wxNORMAL, 0, 0, 0}, | |
37624 | { SWIG_PY_INT, (char *)"LIGHT", (long) wxLIGHT, 0, 0, 0}, | |
37625 | { SWIG_PY_INT, (char *)"BOLD", (long) wxBOLD, 0, 0, 0}, | |
37626 | { SWIG_PY_INT, (char *)"ITALIC", (long) wxITALIC, 0, 0, 0}, | |
37627 | { SWIG_PY_INT, (char *)"SLANT", (long) wxSLANT, 0, 0, 0}, | |
37628 | { SWIG_PY_INT, (char *)"SOLID", (long) wxSOLID, 0, 0, 0}, | |
37629 | { SWIG_PY_INT, (char *)"DOT", (long) wxDOT, 0, 0, 0}, | |
37630 | { SWIG_PY_INT, (char *)"LONG_DASH", (long) wxLONG_DASH, 0, 0, 0}, | |
37631 | { SWIG_PY_INT, (char *)"SHORT_DASH", (long) wxSHORT_DASH, 0, 0, 0}, | |
37632 | { SWIG_PY_INT, (char *)"DOT_DASH", (long) wxDOT_DASH, 0, 0, 0}, | |
37633 | { SWIG_PY_INT, (char *)"USER_DASH", (long) wxUSER_DASH, 0, 0, 0}, | |
37634 | { SWIG_PY_INT, (char *)"TRANSPARENT", (long) wxTRANSPARENT, 0, 0, 0}, | |
37635 | { SWIG_PY_INT, (char *)"STIPPLE", (long) wxSTIPPLE, 0, 0, 0}, | |
37636 | { SWIG_PY_INT, (char *)"BDIAGONAL_HATCH", (long) wxBDIAGONAL_HATCH, 0, 0, 0}, | |
37637 | { SWIG_PY_INT, (char *)"CROSSDIAG_HATCH", (long) wxCROSSDIAG_HATCH, 0, 0, 0}, | |
37638 | { SWIG_PY_INT, (char *)"FDIAGONAL_HATCH", (long) wxFDIAGONAL_HATCH, 0, 0, 0}, | |
37639 | { SWIG_PY_INT, (char *)"CROSS_HATCH", (long) wxCROSS_HATCH, 0, 0, 0}, | |
37640 | { SWIG_PY_INT, (char *)"HORIZONTAL_HATCH", (long) wxHORIZONTAL_HATCH, 0, 0, 0}, | |
37641 | { SWIG_PY_INT, (char *)"VERTICAL_HATCH", (long) wxVERTICAL_HATCH, 0, 0, 0}, | |
37642 | { SWIG_PY_INT, (char *)"JOIN_BEVEL", (long) wxJOIN_BEVEL, 0, 0, 0}, | |
37643 | { SWIG_PY_INT, (char *)"JOIN_MITER", (long) wxJOIN_MITER, 0, 0, 0}, | |
37644 | { SWIG_PY_INT, (char *)"JOIN_ROUND", (long) wxJOIN_ROUND, 0, 0, 0}, | |
37645 | { SWIG_PY_INT, (char *)"CAP_ROUND", (long) wxCAP_ROUND, 0, 0, 0}, | |
37646 | { SWIG_PY_INT, (char *)"CAP_PROJECTING", (long) wxCAP_PROJECTING, 0, 0, 0}, | |
37647 | { SWIG_PY_INT, (char *)"CAP_BUTT", (long) wxCAP_BUTT, 0, 0, 0}, | |
37648 | { SWIG_PY_INT, (char *)"CLEAR", (long) wxCLEAR, 0, 0, 0}, | |
37649 | { SWIG_PY_INT, (char *)"XOR", (long) wxXOR, 0, 0, 0}, | |
37650 | { SWIG_PY_INT, (char *)"INVERT", (long) wxINVERT, 0, 0, 0}, | |
37651 | { SWIG_PY_INT, (char *)"OR_REVERSE", (long) wxOR_REVERSE, 0, 0, 0}, | |
37652 | { SWIG_PY_INT, (char *)"AND_REVERSE", (long) wxAND_REVERSE, 0, 0, 0}, | |
37653 | { SWIG_PY_INT, (char *)"COPY", (long) wxCOPY, 0, 0, 0}, | |
37654 | { SWIG_PY_INT, (char *)"AND", (long) wxAND, 0, 0, 0}, | |
37655 | { SWIG_PY_INT, (char *)"AND_INVERT", (long) wxAND_INVERT, 0, 0, 0}, | |
37656 | { SWIG_PY_INT, (char *)"NO_OP", (long) wxNO_OP, 0, 0, 0}, | |
37657 | { SWIG_PY_INT, (char *)"NOR", (long) wxNOR, 0, 0, 0}, | |
37658 | { SWIG_PY_INT, (char *)"EQUIV", (long) wxEQUIV, 0, 0, 0}, | |
37659 | { SWIG_PY_INT, (char *)"SRC_INVERT", (long) wxSRC_INVERT, 0, 0, 0}, | |
37660 | { SWIG_PY_INT, (char *)"OR_INVERT", (long) wxOR_INVERT, 0, 0, 0}, | |
37661 | { SWIG_PY_INT, (char *)"NAND", (long) wxNAND, 0, 0, 0}, | |
37662 | { SWIG_PY_INT, (char *)"OR", (long) wxOR, 0, 0, 0}, | |
37663 | { SWIG_PY_INT, (char *)"SET", (long) wxSET, 0, 0, 0}, | |
37664 | { SWIG_PY_INT, (char *)"WXK_BACK", (long) WXK_BACK, 0, 0, 0}, | |
37665 | { SWIG_PY_INT, (char *)"WXK_TAB", (long) WXK_TAB, 0, 0, 0}, | |
37666 | { SWIG_PY_INT, (char *)"WXK_RETURN", (long) WXK_RETURN, 0, 0, 0}, | |
37667 | { SWIG_PY_INT, (char *)"WXK_ESCAPE", (long) WXK_ESCAPE, 0, 0, 0}, | |
37668 | { SWIG_PY_INT, (char *)"WXK_SPACE", (long) WXK_SPACE, 0, 0, 0}, | |
37669 | { SWIG_PY_INT, (char *)"WXK_DELETE", (long) WXK_DELETE, 0, 0, 0}, | |
37670 | { SWIG_PY_INT, (char *)"WXK_START", (long) WXK_START, 0, 0, 0}, | |
37671 | { SWIG_PY_INT, (char *)"WXK_LBUTTON", (long) WXK_LBUTTON, 0, 0, 0}, | |
37672 | { SWIG_PY_INT, (char *)"WXK_RBUTTON", (long) WXK_RBUTTON, 0, 0, 0}, | |
37673 | { SWIG_PY_INT, (char *)"WXK_CANCEL", (long) WXK_CANCEL, 0, 0, 0}, | |
37674 | { SWIG_PY_INT, (char *)"WXK_MBUTTON", (long) WXK_MBUTTON, 0, 0, 0}, | |
37675 | { SWIG_PY_INT, (char *)"WXK_CLEAR", (long) WXK_CLEAR, 0, 0, 0}, | |
37676 | { SWIG_PY_INT, (char *)"WXK_SHIFT", (long) WXK_SHIFT, 0, 0, 0}, | |
37677 | { SWIG_PY_INT, (char *)"WXK_ALT", (long) WXK_ALT, 0, 0, 0}, | |
37678 | { SWIG_PY_INT, (char *)"WXK_CONTROL", (long) WXK_CONTROL, 0, 0, 0}, | |
37679 | { SWIG_PY_INT, (char *)"WXK_MENU", (long) WXK_MENU, 0, 0, 0}, | |
37680 | { SWIG_PY_INT, (char *)"WXK_PAUSE", (long) WXK_PAUSE, 0, 0, 0}, | |
37681 | { SWIG_PY_INT, (char *)"WXK_CAPITAL", (long) WXK_CAPITAL, 0, 0, 0}, | |
37682 | { SWIG_PY_INT, (char *)"WXK_PRIOR", (long) WXK_PRIOR, 0, 0, 0}, | |
37683 | { SWIG_PY_INT, (char *)"WXK_NEXT", (long) WXK_NEXT, 0, 0, 0}, | |
37684 | { SWIG_PY_INT, (char *)"WXK_END", (long) WXK_END, 0, 0, 0}, | |
37685 | { SWIG_PY_INT, (char *)"WXK_HOME", (long) WXK_HOME, 0, 0, 0}, | |
37686 | { SWIG_PY_INT, (char *)"WXK_LEFT", (long) WXK_LEFT, 0, 0, 0}, | |
37687 | { SWIG_PY_INT, (char *)"WXK_UP", (long) WXK_UP, 0, 0, 0}, | |
37688 | { SWIG_PY_INT, (char *)"WXK_RIGHT", (long) WXK_RIGHT, 0, 0, 0}, | |
37689 | { SWIG_PY_INT, (char *)"WXK_DOWN", (long) WXK_DOWN, 0, 0, 0}, | |
37690 | { SWIG_PY_INT, (char *)"WXK_SELECT", (long) WXK_SELECT, 0, 0, 0}, | |
37691 | { SWIG_PY_INT, (char *)"WXK_PRINT", (long) WXK_PRINT, 0, 0, 0}, | |
37692 | { SWIG_PY_INT, (char *)"WXK_EXECUTE", (long) WXK_EXECUTE, 0, 0, 0}, | |
37693 | { SWIG_PY_INT, (char *)"WXK_SNAPSHOT", (long) WXK_SNAPSHOT, 0, 0, 0}, | |
37694 | { SWIG_PY_INT, (char *)"WXK_INSERT", (long) WXK_INSERT, 0, 0, 0}, | |
37695 | { SWIG_PY_INT, (char *)"WXK_HELP", (long) WXK_HELP, 0, 0, 0}, | |
37696 | { SWIG_PY_INT, (char *)"WXK_NUMPAD0", (long) WXK_NUMPAD0, 0, 0, 0}, | |
37697 | { SWIG_PY_INT, (char *)"WXK_NUMPAD1", (long) WXK_NUMPAD1, 0, 0, 0}, | |
37698 | { SWIG_PY_INT, (char *)"WXK_NUMPAD2", (long) WXK_NUMPAD2, 0, 0, 0}, | |
37699 | { SWIG_PY_INT, (char *)"WXK_NUMPAD3", (long) WXK_NUMPAD3, 0, 0, 0}, | |
37700 | { SWIG_PY_INT, (char *)"WXK_NUMPAD4", (long) WXK_NUMPAD4, 0, 0, 0}, | |
37701 | { SWIG_PY_INT, (char *)"WXK_NUMPAD5", (long) WXK_NUMPAD5, 0, 0, 0}, | |
37702 | { SWIG_PY_INT, (char *)"WXK_NUMPAD6", (long) WXK_NUMPAD6, 0, 0, 0}, | |
37703 | { SWIG_PY_INT, (char *)"WXK_NUMPAD7", (long) WXK_NUMPAD7, 0, 0, 0}, | |
37704 | { SWIG_PY_INT, (char *)"WXK_NUMPAD8", (long) WXK_NUMPAD8, 0, 0, 0}, | |
37705 | { SWIG_PY_INT, (char *)"WXK_NUMPAD9", (long) WXK_NUMPAD9, 0, 0, 0}, | |
37706 | { SWIG_PY_INT, (char *)"WXK_MULTIPLY", (long) WXK_MULTIPLY, 0, 0, 0}, | |
37707 | { SWIG_PY_INT, (char *)"WXK_ADD", (long) WXK_ADD, 0, 0, 0}, | |
37708 | { SWIG_PY_INT, (char *)"WXK_SEPARATOR", (long) WXK_SEPARATOR, 0, 0, 0}, | |
37709 | { SWIG_PY_INT, (char *)"WXK_SUBTRACT", (long) WXK_SUBTRACT, 0, 0, 0}, | |
37710 | { SWIG_PY_INT, (char *)"WXK_DECIMAL", (long) WXK_DECIMAL, 0, 0, 0}, | |
37711 | { SWIG_PY_INT, (char *)"WXK_DIVIDE", (long) WXK_DIVIDE, 0, 0, 0}, | |
37712 | { SWIG_PY_INT, (char *)"WXK_F1", (long) WXK_F1, 0, 0, 0}, | |
37713 | { SWIG_PY_INT, (char *)"WXK_F2", (long) WXK_F2, 0, 0, 0}, | |
37714 | { SWIG_PY_INT, (char *)"WXK_F3", (long) WXK_F3, 0, 0, 0}, | |
37715 | { SWIG_PY_INT, (char *)"WXK_F4", (long) WXK_F4, 0, 0, 0}, | |
37716 | { SWIG_PY_INT, (char *)"WXK_F5", (long) WXK_F5, 0, 0, 0}, | |
37717 | { SWIG_PY_INT, (char *)"WXK_F6", (long) WXK_F6, 0, 0, 0}, | |
37718 | { SWIG_PY_INT, (char *)"WXK_F7", (long) WXK_F7, 0, 0, 0}, | |
37719 | { SWIG_PY_INT, (char *)"WXK_F8", (long) WXK_F8, 0, 0, 0}, | |
37720 | { SWIG_PY_INT, (char *)"WXK_F9", (long) WXK_F9, 0, 0, 0}, | |
37721 | { SWIG_PY_INT, (char *)"WXK_F10", (long) WXK_F10, 0, 0, 0}, | |
37722 | { SWIG_PY_INT, (char *)"WXK_F11", (long) WXK_F11, 0, 0, 0}, | |
37723 | { SWIG_PY_INT, (char *)"WXK_F12", (long) WXK_F12, 0, 0, 0}, | |
37724 | { SWIG_PY_INT, (char *)"WXK_F13", (long) WXK_F13, 0, 0, 0}, | |
37725 | { SWIG_PY_INT, (char *)"WXK_F14", (long) WXK_F14, 0, 0, 0}, | |
37726 | { SWIG_PY_INT, (char *)"WXK_F15", (long) WXK_F15, 0, 0, 0}, | |
37727 | { SWIG_PY_INT, (char *)"WXK_F16", (long) WXK_F16, 0, 0, 0}, | |
37728 | { SWIG_PY_INT, (char *)"WXK_F17", (long) WXK_F17, 0, 0, 0}, | |
37729 | { SWIG_PY_INT, (char *)"WXK_F18", (long) WXK_F18, 0, 0, 0}, | |
37730 | { SWIG_PY_INT, (char *)"WXK_F19", (long) WXK_F19, 0, 0, 0}, | |
37731 | { SWIG_PY_INT, (char *)"WXK_F20", (long) WXK_F20, 0, 0, 0}, | |
37732 | { SWIG_PY_INT, (char *)"WXK_F21", (long) WXK_F21, 0, 0, 0}, | |
37733 | { SWIG_PY_INT, (char *)"WXK_F22", (long) WXK_F22, 0, 0, 0}, | |
37734 | { SWIG_PY_INT, (char *)"WXK_F23", (long) WXK_F23, 0, 0, 0}, | |
37735 | { SWIG_PY_INT, (char *)"WXK_F24", (long) WXK_F24, 0, 0, 0}, | |
37736 | { SWIG_PY_INT, (char *)"WXK_NUMLOCK", (long) WXK_NUMLOCK, 0, 0, 0}, | |
37737 | { SWIG_PY_INT, (char *)"WXK_SCROLL", (long) WXK_SCROLL, 0, 0, 0}, | |
37738 | { SWIG_PY_INT, (char *)"WXK_PAGEUP", (long) WXK_PAGEUP, 0, 0, 0}, | |
37739 | { SWIG_PY_INT, (char *)"WXK_PAGEDOWN", (long) WXK_PAGEDOWN, 0, 0, 0}, | |
37740 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_SPACE", (long) WXK_NUMPAD_SPACE, 0, 0, 0}, | |
37741 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_TAB", (long) WXK_NUMPAD_TAB, 0, 0, 0}, | |
37742 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_ENTER", (long) WXK_NUMPAD_ENTER, 0, 0, 0}, | |
37743 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F1", (long) WXK_NUMPAD_F1, 0, 0, 0}, | |
37744 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F2", (long) WXK_NUMPAD_F2, 0, 0, 0}, | |
37745 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F3", (long) WXK_NUMPAD_F3, 0, 0, 0}, | |
37746 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F4", (long) WXK_NUMPAD_F4, 0, 0, 0}, | |
37747 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_HOME", (long) WXK_NUMPAD_HOME, 0, 0, 0}, | |
37748 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_LEFT", (long) WXK_NUMPAD_LEFT, 0, 0, 0}, | |
37749 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_UP", (long) WXK_NUMPAD_UP, 0, 0, 0}, | |
37750 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_RIGHT", (long) WXK_NUMPAD_RIGHT, 0, 0, 0}, | |
37751 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DOWN", (long) WXK_NUMPAD_DOWN, 0, 0, 0}, | |
37752 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_PRIOR", (long) WXK_NUMPAD_PRIOR, 0, 0, 0}, | |
37753 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_PAGEUP", (long) WXK_NUMPAD_PAGEUP, 0, 0, 0}, | |
37754 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_NEXT", (long) WXK_NUMPAD_NEXT, 0, 0, 0}, | |
37755 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_PAGEDOWN", (long) WXK_NUMPAD_PAGEDOWN, 0, 0, 0}, | |
37756 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_END", (long) WXK_NUMPAD_END, 0, 0, 0}, | |
37757 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_BEGIN", (long) WXK_NUMPAD_BEGIN, 0, 0, 0}, | |
37758 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_INSERT", (long) WXK_NUMPAD_INSERT, 0, 0, 0}, | |
37759 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DELETE", (long) WXK_NUMPAD_DELETE, 0, 0, 0}, | |
37760 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_EQUAL", (long) WXK_NUMPAD_EQUAL, 0, 0, 0}, | |
37761 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_MULTIPLY", (long) WXK_NUMPAD_MULTIPLY, 0, 0, 0}, | |
37762 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_ADD", (long) WXK_NUMPAD_ADD, 0, 0, 0}, | |
37763 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_SEPARATOR", (long) WXK_NUMPAD_SEPARATOR, 0, 0, 0}, | |
37764 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_SUBTRACT", (long) WXK_NUMPAD_SUBTRACT, 0, 0, 0}, | |
37765 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DECIMAL", (long) WXK_NUMPAD_DECIMAL, 0, 0, 0}, | |
37766 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DIVIDE", (long) WXK_NUMPAD_DIVIDE, 0, 0, 0}, | |
37767 | { SWIG_PY_INT, (char *)"WXK_WINDOWS_LEFT", (long) WXK_WINDOWS_LEFT, 0, 0, 0}, | |
37768 | { SWIG_PY_INT, (char *)"WXK_WINDOWS_RIGHT", (long) WXK_WINDOWS_RIGHT, 0, 0, 0}, | |
37769 | { SWIG_PY_INT, (char *)"WXK_WINDOWS_MENU", (long) WXK_WINDOWS_MENU, 0, 0, 0}, | |
37770 | { SWIG_PY_INT, (char *)"PAPER_NONE", (long) wxPAPER_NONE, 0, 0, 0}, | |
37771 | { SWIG_PY_INT, (char *)"PAPER_LETTER", (long) wxPAPER_LETTER, 0, 0, 0}, | |
37772 | { SWIG_PY_INT, (char *)"PAPER_LEGAL", (long) wxPAPER_LEGAL, 0, 0, 0}, | |
37773 | { SWIG_PY_INT, (char *)"PAPER_A4", (long) wxPAPER_A4, 0, 0, 0}, | |
37774 | { SWIG_PY_INT, (char *)"PAPER_CSHEET", (long) wxPAPER_CSHEET, 0, 0, 0}, | |
37775 | { SWIG_PY_INT, (char *)"PAPER_DSHEET", (long) wxPAPER_DSHEET, 0, 0, 0}, | |
37776 | { SWIG_PY_INT, (char *)"PAPER_ESHEET", (long) wxPAPER_ESHEET, 0, 0, 0}, | |
37777 | { SWIG_PY_INT, (char *)"PAPER_LETTERSMALL", (long) wxPAPER_LETTERSMALL, 0, 0, 0}, | |
37778 | { SWIG_PY_INT, (char *)"PAPER_TABLOID", (long) wxPAPER_TABLOID, 0, 0, 0}, | |
37779 | { SWIG_PY_INT, (char *)"PAPER_LEDGER", (long) wxPAPER_LEDGER, 0, 0, 0}, | |
37780 | { SWIG_PY_INT, (char *)"PAPER_STATEMENT", (long) wxPAPER_STATEMENT, 0, 0, 0}, | |
37781 | { SWIG_PY_INT, (char *)"PAPER_EXECUTIVE", (long) wxPAPER_EXECUTIVE, 0, 0, 0}, | |
37782 | { SWIG_PY_INT, (char *)"PAPER_A3", (long) wxPAPER_A3, 0, 0, 0}, | |
37783 | { SWIG_PY_INT, (char *)"PAPER_A4SMALL", (long) wxPAPER_A4SMALL, 0, 0, 0}, | |
37784 | { SWIG_PY_INT, (char *)"PAPER_A5", (long) wxPAPER_A5, 0, 0, 0}, | |
37785 | { SWIG_PY_INT, (char *)"PAPER_B4", (long) wxPAPER_B4, 0, 0, 0}, | |
37786 | { SWIG_PY_INT, (char *)"PAPER_B5", (long) wxPAPER_B5, 0, 0, 0}, | |
37787 | { SWIG_PY_INT, (char *)"PAPER_FOLIO", (long) wxPAPER_FOLIO, 0, 0, 0}, | |
37788 | { SWIG_PY_INT, (char *)"PAPER_QUARTO", (long) wxPAPER_QUARTO, 0, 0, 0}, | |
37789 | { SWIG_PY_INT, (char *)"PAPER_10X14", (long) wxPAPER_10X14, 0, 0, 0}, | |
37790 | { SWIG_PY_INT, (char *)"PAPER_11X17", (long) wxPAPER_11X17, 0, 0, 0}, | |
37791 | { SWIG_PY_INT, (char *)"PAPER_NOTE", (long) wxPAPER_NOTE, 0, 0, 0}, | |
37792 | { SWIG_PY_INT, (char *)"PAPER_ENV_9", (long) wxPAPER_ENV_9, 0, 0, 0}, | |
37793 | { SWIG_PY_INT, (char *)"PAPER_ENV_10", (long) wxPAPER_ENV_10, 0, 0, 0}, | |
37794 | { SWIG_PY_INT, (char *)"PAPER_ENV_11", (long) wxPAPER_ENV_11, 0, 0, 0}, | |
37795 | { SWIG_PY_INT, (char *)"PAPER_ENV_12", (long) wxPAPER_ENV_12, 0, 0, 0}, | |
37796 | { SWIG_PY_INT, (char *)"PAPER_ENV_14", (long) wxPAPER_ENV_14, 0, 0, 0}, | |
37797 | { SWIG_PY_INT, (char *)"PAPER_ENV_DL", (long) wxPAPER_ENV_DL, 0, 0, 0}, | |
37798 | { SWIG_PY_INT, (char *)"PAPER_ENV_C5", (long) wxPAPER_ENV_C5, 0, 0, 0}, | |
37799 | { SWIG_PY_INT, (char *)"PAPER_ENV_C3", (long) wxPAPER_ENV_C3, 0, 0, 0}, | |
37800 | { SWIG_PY_INT, (char *)"PAPER_ENV_C4", (long) wxPAPER_ENV_C4, 0, 0, 0}, | |
37801 | { SWIG_PY_INT, (char *)"PAPER_ENV_C6", (long) wxPAPER_ENV_C6, 0, 0, 0}, | |
37802 | { SWIG_PY_INT, (char *)"PAPER_ENV_C65", (long) wxPAPER_ENV_C65, 0, 0, 0}, | |
37803 | { SWIG_PY_INT, (char *)"PAPER_ENV_B4", (long) wxPAPER_ENV_B4, 0, 0, 0}, | |
37804 | { SWIG_PY_INT, (char *)"PAPER_ENV_B5", (long) wxPAPER_ENV_B5, 0, 0, 0}, | |
37805 | { SWIG_PY_INT, (char *)"PAPER_ENV_B6", (long) wxPAPER_ENV_B6, 0, 0, 0}, | |
37806 | { SWIG_PY_INT, (char *)"PAPER_ENV_ITALY", (long) wxPAPER_ENV_ITALY, 0, 0, 0}, | |
37807 | { SWIG_PY_INT, (char *)"PAPER_ENV_MONARCH", (long) wxPAPER_ENV_MONARCH, 0, 0, 0}, | |
37808 | { SWIG_PY_INT, (char *)"PAPER_ENV_PERSONAL", (long) wxPAPER_ENV_PERSONAL, 0, 0, 0}, | |
37809 | { SWIG_PY_INT, (char *)"PAPER_FANFOLD_US", (long) wxPAPER_FANFOLD_US, 0, 0, 0}, | |
37810 | { SWIG_PY_INT, (char *)"PAPER_FANFOLD_STD_GERMAN", (long) wxPAPER_FANFOLD_STD_GERMAN, 0, 0, 0}, | |
37811 | { SWIG_PY_INT, (char *)"PAPER_FANFOLD_LGL_GERMAN", (long) wxPAPER_FANFOLD_LGL_GERMAN, 0, 0, 0}, | |
37812 | { SWIG_PY_INT, (char *)"PAPER_ISO_B4", (long) wxPAPER_ISO_B4, 0, 0, 0}, | |
37813 | { SWIG_PY_INT, (char *)"PAPER_JAPANESE_POSTCARD", (long) wxPAPER_JAPANESE_POSTCARD, 0, 0, 0}, | |
37814 | { SWIG_PY_INT, (char *)"PAPER_9X11", (long) wxPAPER_9X11, 0, 0, 0}, | |
37815 | { SWIG_PY_INT, (char *)"PAPER_10X11", (long) wxPAPER_10X11, 0, 0, 0}, | |
37816 | { SWIG_PY_INT, (char *)"PAPER_15X11", (long) wxPAPER_15X11, 0, 0, 0}, | |
37817 | { SWIG_PY_INT, (char *)"PAPER_ENV_INVITE", (long) wxPAPER_ENV_INVITE, 0, 0, 0}, | |
37818 | { SWIG_PY_INT, (char *)"PAPER_LETTER_EXTRA", (long) wxPAPER_LETTER_EXTRA, 0, 0, 0}, | |
37819 | { SWIG_PY_INT, (char *)"PAPER_LEGAL_EXTRA", (long) wxPAPER_LEGAL_EXTRA, 0, 0, 0}, | |
37820 | { SWIG_PY_INT, (char *)"PAPER_TABLOID_EXTRA", (long) wxPAPER_TABLOID_EXTRA, 0, 0, 0}, | |
37821 | { SWIG_PY_INT, (char *)"PAPER_A4_EXTRA", (long) wxPAPER_A4_EXTRA, 0, 0, 0}, | |
37822 | { SWIG_PY_INT, (char *)"PAPER_LETTER_TRANSVERSE", (long) wxPAPER_LETTER_TRANSVERSE, 0, 0, 0}, | |
37823 | { SWIG_PY_INT, (char *)"PAPER_A4_TRANSVERSE", (long) wxPAPER_A4_TRANSVERSE, 0, 0, 0}, | |
37824 | { SWIG_PY_INT, (char *)"PAPER_LETTER_EXTRA_TRANSVERSE", (long) wxPAPER_LETTER_EXTRA_TRANSVERSE, 0, 0, 0}, | |
37825 | { SWIG_PY_INT, (char *)"PAPER_A_PLUS", (long) wxPAPER_A_PLUS, 0, 0, 0}, | |
37826 | { SWIG_PY_INT, (char *)"PAPER_B_PLUS", (long) wxPAPER_B_PLUS, 0, 0, 0}, | |
37827 | { SWIG_PY_INT, (char *)"PAPER_LETTER_PLUS", (long) wxPAPER_LETTER_PLUS, 0, 0, 0}, | |
37828 | { SWIG_PY_INT, (char *)"PAPER_A4_PLUS", (long) wxPAPER_A4_PLUS, 0, 0, 0}, | |
37829 | { SWIG_PY_INT, (char *)"PAPER_A5_TRANSVERSE", (long) wxPAPER_A5_TRANSVERSE, 0, 0, 0}, | |
37830 | { SWIG_PY_INT, (char *)"PAPER_B5_TRANSVERSE", (long) wxPAPER_B5_TRANSVERSE, 0, 0, 0}, | |
37831 | { SWIG_PY_INT, (char *)"PAPER_A3_EXTRA", (long) wxPAPER_A3_EXTRA, 0, 0, 0}, | |
37832 | { SWIG_PY_INT, (char *)"PAPER_A5_EXTRA", (long) wxPAPER_A5_EXTRA, 0, 0, 0}, | |
37833 | { SWIG_PY_INT, (char *)"PAPER_B5_EXTRA", (long) wxPAPER_B5_EXTRA, 0, 0, 0}, | |
37834 | { SWIG_PY_INT, (char *)"PAPER_A2", (long) wxPAPER_A2, 0, 0, 0}, | |
37835 | { SWIG_PY_INT, (char *)"PAPER_A3_TRANSVERSE", (long) wxPAPER_A3_TRANSVERSE, 0, 0, 0}, | |
37836 | { SWIG_PY_INT, (char *)"PAPER_A3_EXTRA_TRANSVERSE", (long) wxPAPER_A3_EXTRA_TRANSVERSE, 0, 0, 0}, | |
37837 | { SWIG_PY_INT, (char *)"DUPLEX_SIMPLEX", (long) wxDUPLEX_SIMPLEX, 0, 0, 0}, | |
37838 | { SWIG_PY_INT, (char *)"DUPLEX_HORIZONTAL", (long) wxDUPLEX_HORIZONTAL, 0, 0, 0}, | |
37839 | { SWIG_PY_INT, (char *)"DUPLEX_VERTICAL", (long) wxDUPLEX_VERTICAL, 0, 0, 0}, | |
37840 | { SWIG_PY_INT, (char *)"ITEM_SEPARATOR", (long) wxITEM_SEPARATOR, 0, 0, 0}, | |
37841 | { SWIG_PY_INT, (char *)"ITEM_NORMAL", (long) wxITEM_NORMAL, 0, 0, 0}, | |
37842 | { SWIG_PY_INT, (char *)"ITEM_CHECK", (long) wxITEM_CHECK, 0, 0, 0}, | |
37843 | { SWIG_PY_INT, (char *)"ITEM_RADIO", (long) wxITEM_RADIO, 0, 0, 0}, | |
37844 | { SWIG_PY_INT, (char *)"ITEM_MAX", (long) wxITEM_MAX, 0, 0, 0}, | |
37845 | { SWIG_PY_INT, (char *)"HT_NOWHERE", (long) wxHT_NOWHERE, 0, 0, 0}, | |
37846 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_FIRST", (long) wxHT_SCROLLBAR_FIRST, 0, 0, 0}, | |
37847 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_LINE_1", (long) wxHT_SCROLLBAR_ARROW_LINE_1, 0, 0, 0}, | |
37848 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_LINE_2", (long) wxHT_SCROLLBAR_ARROW_LINE_2, 0, 0, 0}, | |
37849 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_PAGE_1", (long) wxHT_SCROLLBAR_ARROW_PAGE_1, 0, 0, 0}, | |
37850 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_PAGE_2", (long) wxHT_SCROLLBAR_ARROW_PAGE_2, 0, 0, 0}, | |
37851 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_THUMB", (long) wxHT_SCROLLBAR_THUMB, 0, 0, 0}, | |
37852 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_BAR_1", (long) wxHT_SCROLLBAR_BAR_1, 0, 0, 0}, | |
37853 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_BAR_2", (long) wxHT_SCROLLBAR_BAR_2, 0, 0, 0}, | |
37854 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_LAST", (long) wxHT_SCROLLBAR_LAST, 0, 0, 0}, | |
37855 | { SWIG_PY_INT, (char *)"HT_WINDOW_OUTSIDE", (long) wxHT_WINDOW_OUTSIDE, 0, 0, 0}, | |
37856 | { SWIG_PY_INT, (char *)"HT_WINDOW_INSIDE", (long) wxHT_WINDOW_INSIDE, 0, 0, 0}, | |
37857 | { SWIG_PY_INT, (char *)"HT_WINDOW_VERT_SCROLLBAR", (long) wxHT_WINDOW_VERT_SCROLLBAR, 0, 0, 0}, | |
37858 | { SWIG_PY_INT, (char *)"HT_WINDOW_HORZ_SCROLLBAR", (long) wxHT_WINDOW_HORZ_SCROLLBAR, 0, 0, 0}, | |
37859 | { SWIG_PY_INT, (char *)"HT_WINDOW_CORNER", (long) wxHT_WINDOW_CORNER, 0, 0, 0}, | |
37860 | { SWIG_PY_INT, (char *)"HT_MAX", (long) wxHT_MAX, 0, 0, 0}, | |
37861 | { SWIG_PY_INT, (char *)"MOD_NONE", (long) wxMOD_NONE, 0, 0, 0}, | |
37862 | { SWIG_PY_INT, (char *)"MOD_ALT", (long) wxMOD_ALT, 0, 0, 0}, | |
37863 | { SWIG_PY_INT, (char *)"MOD_CONTROL", (long) wxMOD_CONTROL, 0, 0, 0}, | |
37864 | { SWIG_PY_INT, (char *)"MOD_SHIFT", (long) wxMOD_SHIFT, 0, 0, 0}, | |
37865 | { SWIG_PY_INT, (char *)"MOD_WIN", (long) wxMOD_WIN, 0, 0, 0}, | |
37866 | { SWIG_PY_INT, (char *)"UPDATE_UI_NONE", (long) wxUPDATE_UI_NONE, 0, 0, 0}, | |
37867 | { SWIG_PY_INT, (char *)"UPDATE_UI_RECURSE", (long) wxUPDATE_UI_RECURSE, 0, 0, 0}, | |
37868 | { SWIG_PY_INT, (char *)"UPDATE_UI_FROMIDLE", (long) wxUPDATE_UI_FROMIDLE, 0, 0, 0}, | |
37869 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_INVALID", (long) wxBITMAP_TYPE_INVALID, 0, 0, 0}, | |
37870 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_BMP", (long) wxBITMAP_TYPE_BMP, 0, 0, 0}, | |
37871 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_BMP_RESOURCE", (long) wxBITMAP_TYPE_BMP_RESOURCE, 0, 0, 0}, | |
37872 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_RESOURCE", (long) wxBITMAP_TYPE_RESOURCE, 0, 0, 0}, | |
37873 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ICO", (long) wxBITMAP_TYPE_ICO, 0, 0, 0}, | |
37874 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ICO_RESOURCE", (long) wxBITMAP_TYPE_ICO_RESOURCE, 0, 0, 0}, | |
37875 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_CUR", (long) wxBITMAP_TYPE_CUR, 0, 0, 0}, | |
37876 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_CUR_RESOURCE", (long) wxBITMAP_TYPE_CUR_RESOURCE, 0, 0, 0}, | |
37877 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XBM", (long) wxBITMAP_TYPE_XBM, 0, 0, 0}, | |
37878 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XBM_DATA", (long) wxBITMAP_TYPE_XBM_DATA, 0, 0, 0}, | |
37879 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XPM", (long) wxBITMAP_TYPE_XPM, 0, 0, 0}, | |
37880 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XPM_DATA", (long) wxBITMAP_TYPE_XPM_DATA, 0, 0, 0}, | |
37881 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_TIF", (long) wxBITMAP_TYPE_TIF, 0, 0, 0}, | |
37882 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_TIF_RESOURCE", (long) wxBITMAP_TYPE_TIF_RESOURCE, 0, 0, 0}, | |
37883 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_GIF", (long) wxBITMAP_TYPE_GIF, 0, 0, 0}, | |
37884 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_GIF_RESOURCE", (long) wxBITMAP_TYPE_GIF_RESOURCE, 0, 0, 0}, | |
37885 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PNG", (long) wxBITMAP_TYPE_PNG, 0, 0, 0}, | |
37886 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PNG_RESOURCE", (long) wxBITMAP_TYPE_PNG_RESOURCE, 0, 0, 0}, | |
37887 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_JPEG", (long) wxBITMAP_TYPE_JPEG, 0, 0, 0}, | |
37888 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_JPEG_RESOURCE", (long) wxBITMAP_TYPE_JPEG_RESOURCE, 0, 0, 0}, | |
37889 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PNM", (long) wxBITMAP_TYPE_PNM, 0, 0, 0}, | |
37890 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PNM_RESOURCE", (long) wxBITMAP_TYPE_PNM_RESOURCE, 0, 0, 0}, | |
37891 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PCX", (long) wxBITMAP_TYPE_PCX, 0, 0, 0}, | |
37892 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PCX_RESOURCE", (long) wxBITMAP_TYPE_PCX_RESOURCE, 0, 0, 0}, | |
37893 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PICT", (long) wxBITMAP_TYPE_PICT, 0, 0, 0}, | |
37894 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PICT_RESOURCE", (long) wxBITMAP_TYPE_PICT_RESOURCE, 0, 0, 0}, | |
37895 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ICON", (long) wxBITMAP_TYPE_ICON, 0, 0, 0}, | |
37896 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ICON_RESOURCE", (long) wxBITMAP_TYPE_ICON_RESOURCE, 0, 0, 0}, | |
37897 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ANI", (long) wxBITMAP_TYPE_ANI, 0, 0, 0}, | |
37898 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_IFF", (long) wxBITMAP_TYPE_IFF, 0, 0, 0}, | |
37899 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_MACCURSOR", (long) wxBITMAP_TYPE_MACCURSOR, 0, 0, 0}, | |
37900 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_MACCURSOR_RESOURCE", (long) wxBITMAP_TYPE_MACCURSOR_RESOURCE, 0, 0, 0}, | |
37901 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ANY", (long) wxBITMAP_TYPE_ANY, 0, 0, 0}, | |
37902 | { SWIG_PY_INT, (char *)"CURSOR_NONE", (long) wxCURSOR_NONE, 0, 0, 0}, | |
37903 | { SWIG_PY_INT, (char *)"CURSOR_ARROW", (long) wxCURSOR_ARROW, 0, 0, 0}, | |
37904 | { SWIG_PY_INT, (char *)"CURSOR_RIGHT_ARROW", (long) wxCURSOR_RIGHT_ARROW, 0, 0, 0}, | |
37905 | { SWIG_PY_INT, (char *)"CURSOR_BULLSEYE", (long) wxCURSOR_BULLSEYE, 0, 0, 0}, | |
37906 | { SWIG_PY_INT, (char *)"CURSOR_CHAR", (long) wxCURSOR_CHAR, 0, 0, 0}, | |
37907 | { SWIG_PY_INT, (char *)"CURSOR_CROSS", (long) wxCURSOR_CROSS, 0, 0, 0}, | |
37908 | { SWIG_PY_INT, (char *)"CURSOR_HAND", (long) wxCURSOR_HAND, 0, 0, 0}, | |
37909 | { SWIG_PY_INT, (char *)"CURSOR_IBEAM", (long) wxCURSOR_IBEAM, 0, 0, 0}, | |
37910 | { SWIG_PY_INT, (char *)"CURSOR_LEFT_BUTTON", (long) wxCURSOR_LEFT_BUTTON, 0, 0, 0}, | |
37911 | { SWIG_PY_INT, (char *)"CURSOR_MAGNIFIER", (long) wxCURSOR_MAGNIFIER, 0, 0, 0}, | |
37912 | { SWIG_PY_INT, (char *)"CURSOR_MIDDLE_BUTTON", (long) wxCURSOR_MIDDLE_BUTTON, 0, 0, 0}, | |
37913 | { SWIG_PY_INT, (char *)"CURSOR_NO_ENTRY", (long) wxCURSOR_NO_ENTRY, 0, 0, 0}, | |
37914 | { SWIG_PY_INT, (char *)"CURSOR_PAINT_BRUSH", (long) wxCURSOR_PAINT_BRUSH, 0, 0, 0}, | |
37915 | { SWIG_PY_INT, (char *)"CURSOR_PENCIL", (long) wxCURSOR_PENCIL, 0, 0, 0}, | |
37916 | { SWIG_PY_INT, (char *)"CURSOR_POINT_LEFT", (long) wxCURSOR_POINT_LEFT, 0, 0, 0}, | |
37917 | { SWIG_PY_INT, (char *)"CURSOR_POINT_RIGHT", (long) wxCURSOR_POINT_RIGHT, 0, 0, 0}, | |
37918 | { SWIG_PY_INT, (char *)"CURSOR_QUESTION_ARROW", (long) wxCURSOR_QUESTION_ARROW, 0, 0, 0}, | |
37919 | { SWIG_PY_INT, (char *)"CURSOR_RIGHT_BUTTON", (long) wxCURSOR_RIGHT_BUTTON, 0, 0, 0}, | |
37920 | { SWIG_PY_INT, (char *)"CURSOR_SIZENESW", (long) wxCURSOR_SIZENESW, 0, 0, 0}, | |
37921 | { SWIG_PY_INT, (char *)"CURSOR_SIZENS", (long) wxCURSOR_SIZENS, 0, 0, 0}, | |
37922 | { SWIG_PY_INT, (char *)"CURSOR_SIZENWSE", (long) wxCURSOR_SIZENWSE, 0, 0, 0}, | |
37923 | { SWIG_PY_INT, (char *)"CURSOR_SIZEWE", (long) wxCURSOR_SIZEWE, 0, 0, 0}, | |
37924 | { SWIG_PY_INT, (char *)"CURSOR_SIZING", (long) wxCURSOR_SIZING, 0, 0, 0}, | |
37925 | { SWIG_PY_INT, (char *)"CURSOR_SPRAYCAN", (long) wxCURSOR_SPRAYCAN, 0, 0, 0}, | |
37926 | { SWIG_PY_INT, (char *)"CURSOR_WAIT", (long) wxCURSOR_WAIT, 0, 0, 0}, | |
37927 | { SWIG_PY_INT, (char *)"CURSOR_WATCH", (long) wxCURSOR_WATCH, 0, 0, 0}, | |
37928 | { SWIG_PY_INT, (char *)"CURSOR_BLANK", (long) wxCURSOR_BLANK, 0, 0, 0}, | |
37929 | { SWIG_PY_INT, (char *)"CURSOR_DEFAULT", (long) wxCURSOR_DEFAULT, 0, 0, 0}, | |
37930 | { SWIG_PY_INT, (char *)"CURSOR_COPY_ARROW", (long) wxCURSOR_COPY_ARROW, 0, 0, 0}, | |
37931 | { SWIG_PY_INT, (char *)"CURSOR_ARROWWAIT", (long) wxCURSOR_ARROWWAIT, 0, 0, 0}, | |
37932 | { SWIG_PY_INT, (char *)"CURSOR_MAX", (long) wxCURSOR_MAX, 0, 0, 0}, | |
37933 | { SWIG_PY_INT, (char *)"FromStart", (long) wxFromStart, 0, 0, 0}, | |
37934 | { SWIG_PY_INT, (char *)"FromCurrent", (long) wxFromCurrent, 0, 0, 0}, | |
37935 | { SWIG_PY_INT, (char *)"FromEnd", (long) wxFromEnd, 0, 0, 0}, | |
37936 | { SWIG_PY_INT, (char *)"IMAGE_RESOLUTION_INCHES", (long) wxIMAGE_RESOLUTION_INCHES, 0, 0, 0}, | |
37937 | { SWIG_PY_INT, (char *)"IMAGE_RESOLUTION_CM", (long) wxIMAGE_RESOLUTION_CM, 0, 0, 0}, | |
37938 | { SWIG_PY_INT, (char *)"BMP_24BPP", (long) wxBMP_24BPP, 0, 0, 0}, | |
37939 | { SWIG_PY_INT, (char *)"BMP_8BPP", (long) wxBMP_8BPP, 0, 0, 0}, | |
37940 | { SWIG_PY_INT, (char *)"BMP_8BPP_GREY", (long) wxBMP_8BPP_GREY, 0, 0, 0}, | |
37941 | { SWIG_PY_INT, (char *)"BMP_8BPP_GRAY", (long) wxBMP_8BPP_GRAY, 0, 0, 0}, | |
37942 | { SWIG_PY_INT, (char *)"BMP_8BPP_RED", (long) wxBMP_8BPP_RED, 0, 0, 0}, | |
37943 | { SWIG_PY_INT, (char *)"BMP_8BPP_PALETTE", (long) wxBMP_8BPP_PALETTE, 0, 0, 0}, | |
37944 | { SWIG_PY_INT, (char *)"BMP_4BPP", (long) wxBMP_4BPP, 0, 0, 0}, | |
37945 | { SWIG_PY_INT, (char *)"BMP_1BPP", (long) wxBMP_1BPP, 0, 0, 0}, | |
37946 | { SWIG_PY_INT, (char *)"BMP_1BPP_BW", (long) wxBMP_1BPP_BW, 0, 0, 0}, | |
37947 | { SWIG_PY_INT, (char *)"EVENT_PROPAGATE_NONE", (long) wxEVENT_PROPAGATE_NONE, 0, 0, 0}, | |
37948 | { SWIG_PY_INT, (char *)"EVENT_PROPAGATE_MAX", (long) wxEVENT_PROPAGATE_MAX, 0, 0, 0}, | |
37949 | { SWIG_PY_INT, (char *)"wxEVT_NULL", (long) wxEVT_NULL, 0, 0, 0}, | |
37950 | { SWIG_PY_INT, (char *)"wxEVT_FIRST", (long) wxEVT_FIRST, 0, 0, 0}, | |
37951 | { SWIG_PY_INT, (char *)"wxEVT_USER_FIRST", (long) wxEVT_USER_FIRST, 0, 0, 0}, | |
37952 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_BUTTON_CLICKED", (long) wxEVT_COMMAND_BUTTON_CLICKED, 0, 0, 0}, | |
37953 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_CHECKBOX_CLICKED", (long) wxEVT_COMMAND_CHECKBOX_CLICKED, 0, 0, 0}, | |
37954 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_CHOICE_SELECTED", (long) wxEVT_COMMAND_CHOICE_SELECTED, 0, 0, 0}, | |
37955 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOX_SELECTED", (long) wxEVT_COMMAND_LISTBOX_SELECTED, 0, 0, 0}, | |
37956 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", (long) wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, 0, 0, 0}, | |
37957 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", (long) wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, 0, 0, 0}, | |
37958 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_MENU_SELECTED", (long) wxEVT_COMMAND_MENU_SELECTED, 0, 0, 0}, | |
37959 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOOL_CLICKED", (long) wxEVT_COMMAND_TOOL_CLICKED, 0, 0, 0}, | |
37960 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SLIDER_UPDATED", (long) wxEVT_COMMAND_SLIDER_UPDATED, 0, 0, 0}, | |
37961 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RADIOBOX_SELECTED", (long) wxEVT_COMMAND_RADIOBOX_SELECTED, 0, 0, 0}, | |
37962 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RADIOBUTTON_SELECTED", (long) wxEVT_COMMAND_RADIOBUTTON_SELECTED, 0, 0, 0}, | |
37963 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SCROLLBAR_UPDATED", (long) wxEVT_COMMAND_SCROLLBAR_UPDATED, 0, 0, 0}, | |
37964 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_VLBOX_SELECTED", (long) wxEVT_COMMAND_VLBOX_SELECTED, 0, 0, 0}, | |
37965 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_COMBOBOX_SELECTED", (long) wxEVT_COMMAND_COMBOBOX_SELECTED, 0, 0, 0}, | |
37966 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOOL_RCLICKED", (long) wxEVT_COMMAND_TOOL_RCLICKED, 0, 0, 0}, | |
37967 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOOL_ENTER", (long) wxEVT_COMMAND_TOOL_ENTER, 0, 0, 0}, | |
37968 | { SWIG_PY_INT, (char *)"wxEVT_LEFT_DOWN", (long) wxEVT_LEFT_DOWN, 0, 0, 0}, | |
37969 | { SWIG_PY_INT, (char *)"wxEVT_LEFT_UP", (long) wxEVT_LEFT_UP, 0, 0, 0}, | |
37970 | { SWIG_PY_INT, (char *)"wxEVT_MIDDLE_DOWN", (long) wxEVT_MIDDLE_DOWN, 0, 0, 0}, | |
37971 | { SWIG_PY_INT, (char *)"wxEVT_MIDDLE_UP", (long) wxEVT_MIDDLE_UP, 0, 0, 0}, | |
37972 | { SWIG_PY_INT, (char *)"wxEVT_RIGHT_DOWN", (long) wxEVT_RIGHT_DOWN, 0, 0, 0}, | |
37973 | { SWIG_PY_INT, (char *)"wxEVT_RIGHT_UP", (long) wxEVT_RIGHT_UP, 0, 0, 0}, | |
37974 | { SWIG_PY_INT, (char *)"wxEVT_MOTION", (long) wxEVT_MOTION, 0, 0, 0}, | |
37975 | { SWIG_PY_INT, (char *)"wxEVT_ENTER_WINDOW", (long) wxEVT_ENTER_WINDOW, 0, 0, 0}, | |
37976 | { SWIG_PY_INT, (char *)"wxEVT_LEAVE_WINDOW", (long) wxEVT_LEAVE_WINDOW, 0, 0, 0}, | |
37977 | { SWIG_PY_INT, (char *)"wxEVT_LEFT_DCLICK", (long) wxEVT_LEFT_DCLICK, 0, 0, 0}, | |
37978 | { SWIG_PY_INT, (char *)"wxEVT_MIDDLE_DCLICK", (long) wxEVT_MIDDLE_DCLICK, 0, 0, 0}, | |
37979 | { SWIG_PY_INT, (char *)"wxEVT_RIGHT_DCLICK", (long) wxEVT_RIGHT_DCLICK, 0, 0, 0}, | |
37980 | { SWIG_PY_INT, (char *)"wxEVT_SET_FOCUS", (long) wxEVT_SET_FOCUS, 0, 0, 0}, | |
37981 | { SWIG_PY_INT, (char *)"wxEVT_KILL_FOCUS", (long) wxEVT_KILL_FOCUS, 0, 0, 0}, | |
37982 | { SWIG_PY_INT, (char *)"wxEVT_CHILD_FOCUS", (long) wxEVT_CHILD_FOCUS, 0, 0, 0}, | |
37983 | { SWIG_PY_INT, (char *)"wxEVT_MOUSEWHEEL", (long) wxEVT_MOUSEWHEEL, 0, 0, 0}, | |
37984 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEFT_DOWN", (long) wxEVT_NC_LEFT_DOWN, 0, 0, 0}, | |
37985 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEFT_UP", (long) wxEVT_NC_LEFT_UP, 0, 0, 0}, | |
37986 | { SWIG_PY_INT, (char *)"wxEVT_NC_MIDDLE_DOWN", (long) wxEVT_NC_MIDDLE_DOWN, 0, 0, 0}, | |
37987 | { SWIG_PY_INT, (char *)"wxEVT_NC_MIDDLE_UP", (long) wxEVT_NC_MIDDLE_UP, 0, 0, 0}, | |
37988 | { SWIG_PY_INT, (char *)"wxEVT_NC_RIGHT_DOWN", (long) wxEVT_NC_RIGHT_DOWN, 0, 0, 0}, | |
37989 | { SWIG_PY_INT, (char *)"wxEVT_NC_RIGHT_UP", (long) wxEVT_NC_RIGHT_UP, 0, 0, 0}, | |
37990 | { SWIG_PY_INT, (char *)"wxEVT_NC_MOTION", (long) wxEVT_NC_MOTION, 0, 0, 0}, | |
37991 | { SWIG_PY_INT, (char *)"wxEVT_NC_ENTER_WINDOW", (long) wxEVT_NC_ENTER_WINDOW, 0, 0, 0}, | |
37992 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEAVE_WINDOW", (long) wxEVT_NC_LEAVE_WINDOW, 0, 0, 0}, | |
37993 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEFT_DCLICK", (long) wxEVT_NC_LEFT_DCLICK, 0, 0, 0}, | |
37994 | { SWIG_PY_INT, (char *)"wxEVT_NC_MIDDLE_DCLICK", (long) wxEVT_NC_MIDDLE_DCLICK, 0, 0, 0}, | |
37995 | { SWIG_PY_INT, (char *)"wxEVT_NC_RIGHT_DCLICK", (long) wxEVT_NC_RIGHT_DCLICK, 0, 0, 0}, | |
37996 | { SWIG_PY_INT, (char *)"wxEVT_CHAR", (long) wxEVT_CHAR, 0, 0, 0}, | |
37997 | { SWIG_PY_INT, (char *)"wxEVT_CHAR_HOOK", (long) wxEVT_CHAR_HOOK, 0, 0, 0}, | |
37998 | { SWIG_PY_INT, (char *)"wxEVT_NAVIGATION_KEY", (long) wxEVT_NAVIGATION_KEY, 0, 0, 0}, | |
37999 | { SWIG_PY_INT, (char *)"wxEVT_KEY_DOWN", (long) wxEVT_KEY_DOWN, 0, 0, 0}, | |
38000 | { SWIG_PY_INT, (char *)"wxEVT_KEY_UP", (long) wxEVT_KEY_UP, 0, 0, 0}, | |
38001 | { SWIG_PY_INT, (char *)"wxEVT_HOTKEY", (long) wxEVT_HOTKEY, 0, 0, 0}, | |
38002 | { SWIG_PY_INT, (char *)"wxEVT_SET_CURSOR", (long) wxEVT_SET_CURSOR, 0, 0, 0}, | |
38003 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_TOP", (long) wxEVT_SCROLL_TOP, 0, 0, 0}, | |
38004 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_BOTTOM", (long) wxEVT_SCROLL_BOTTOM, 0, 0, 0}, | |
38005 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_LINEUP", (long) wxEVT_SCROLL_LINEUP, 0, 0, 0}, | |
38006 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_LINEDOWN", (long) wxEVT_SCROLL_LINEDOWN, 0, 0, 0}, | |
38007 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_PAGEUP", (long) wxEVT_SCROLL_PAGEUP, 0, 0, 0}, | |
38008 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_PAGEDOWN", (long) wxEVT_SCROLL_PAGEDOWN, 0, 0, 0}, | |
38009 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_THUMBTRACK", (long) wxEVT_SCROLL_THUMBTRACK, 0, 0, 0}, | |
38010 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_THUMBRELEASE", (long) wxEVT_SCROLL_THUMBRELEASE, 0, 0, 0}, | |
38011 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_ENDSCROLL", (long) wxEVT_SCROLL_ENDSCROLL, 0, 0, 0}, | |
38012 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_TOP", (long) wxEVT_SCROLLWIN_TOP, 0, 0, 0}, | |
38013 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_BOTTOM", (long) wxEVT_SCROLLWIN_BOTTOM, 0, 0, 0}, | |
38014 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_LINEUP", (long) wxEVT_SCROLLWIN_LINEUP, 0, 0, 0}, | |
38015 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_LINEDOWN", (long) wxEVT_SCROLLWIN_LINEDOWN, 0, 0, 0}, | |
38016 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_PAGEUP", (long) wxEVT_SCROLLWIN_PAGEUP, 0, 0, 0}, | |
38017 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_PAGEDOWN", (long) wxEVT_SCROLLWIN_PAGEDOWN, 0, 0, 0}, | |
38018 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_THUMBTRACK", (long) wxEVT_SCROLLWIN_THUMBTRACK, 0, 0, 0}, | |
38019 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_THUMBRELEASE", (long) wxEVT_SCROLLWIN_THUMBRELEASE, 0, 0, 0}, | |
38020 | { SWIG_PY_INT, (char *)"wxEVT_SIZE", (long) wxEVT_SIZE, 0, 0, 0}, | |
38021 | { SWIG_PY_INT, (char *)"wxEVT_MOVE", (long) wxEVT_MOVE, 0, 0, 0}, | |
38022 | { SWIG_PY_INT, (char *)"wxEVT_CLOSE_WINDOW", (long) wxEVT_CLOSE_WINDOW, 0, 0, 0}, | |
38023 | { SWIG_PY_INT, (char *)"wxEVT_END_SESSION", (long) wxEVT_END_SESSION, 0, 0, 0}, | |
38024 | { SWIG_PY_INT, (char *)"wxEVT_QUERY_END_SESSION", (long) wxEVT_QUERY_END_SESSION, 0, 0, 0}, | |
38025 | { SWIG_PY_INT, (char *)"wxEVT_ACTIVATE_APP", (long) wxEVT_ACTIVATE_APP, 0, 0, 0}, | |
38026 | { SWIG_PY_INT, (char *)"wxEVT_POWER", (long) wxEVT_POWER, 0, 0, 0}, | |
38027 | { SWIG_PY_INT, (char *)"wxEVT_ACTIVATE", (long) wxEVT_ACTIVATE, 0, 0, 0}, | |
38028 | { SWIG_PY_INT, (char *)"wxEVT_CREATE", (long) wxEVT_CREATE, 0, 0, 0}, | |
38029 | { SWIG_PY_INT, (char *)"wxEVT_DESTROY", (long) wxEVT_DESTROY, 0, 0, 0}, | |
38030 | { SWIG_PY_INT, (char *)"wxEVT_SHOW", (long) wxEVT_SHOW, 0, 0, 0}, | |
38031 | { SWIG_PY_INT, (char *)"wxEVT_ICONIZE", (long) wxEVT_ICONIZE, 0, 0, 0}, | |
38032 | { SWIG_PY_INT, (char *)"wxEVT_MAXIMIZE", (long) wxEVT_MAXIMIZE, 0, 0, 0}, | |
38033 | { SWIG_PY_INT, (char *)"wxEVT_MOUSE_CAPTURE_CHANGED", (long) wxEVT_MOUSE_CAPTURE_CHANGED, 0, 0, 0}, | |
38034 | { SWIG_PY_INT, (char *)"wxEVT_PAINT", (long) wxEVT_PAINT, 0, 0, 0}, | |
38035 | { SWIG_PY_INT, (char *)"wxEVT_ERASE_BACKGROUND", (long) wxEVT_ERASE_BACKGROUND, 0, 0, 0}, | |
38036 | { SWIG_PY_INT, (char *)"wxEVT_NC_PAINT", (long) wxEVT_NC_PAINT, 0, 0, 0}, | |
38037 | { SWIG_PY_INT, (char *)"wxEVT_PAINT_ICON", (long) wxEVT_PAINT_ICON, 0, 0, 0}, | |
38038 | { SWIG_PY_INT, (char *)"wxEVT_MENU_OPEN", (long) wxEVT_MENU_OPEN, 0, 0, 0}, | |
38039 | { SWIG_PY_INT, (char *)"wxEVT_MENU_CLOSE", (long) wxEVT_MENU_CLOSE, 0, 0, 0}, | |
38040 | { SWIG_PY_INT, (char *)"wxEVT_MENU_HIGHLIGHT", (long) wxEVT_MENU_HIGHLIGHT, 0, 0, 0}, | |
38041 | { SWIG_PY_INT, (char *)"wxEVT_CONTEXT_MENU", (long) wxEVT_CONTEXT_MENU, 0, 0, 0}, | |
38042 | { SWIG_PY_INT, (char *)"wxEVT_SYS_COLOUR_CHANGED", (long) wxEVT_SYS_COLOUR_CHANGED, 0, 0, 0}, | |
38043 | { SWIG_PY_INT, (char *)"wxEVT_DISPLAY_CHANGED", (long) wxEVT_DISPLAY_CHANGED, 0, 0, 0}, | |
38044 | { SWIG_PY_INT, (char *)"wxEVT_SETTING_CHANGED", (long) wxEVT_SETTING_CHANGED, 0, 0, 0}, | |
38045 | { SWIG_PY_INT, (char *)"wxEVT_QUERY_NEW_PALETTE", (long) wxEVT_QUERY_NEW_PALETTE, 0, 0, 0}, | |
38046 | { SWIG_PY_INT, (char *)"wxEVT_PALETTE_CHANGED", (long) wxEVT_PALETTE_CHANGED, 0, 0, 0}, | |
38047 | { SWIG_PY_INT, (char *)"wxEVT_DROP_FILES", (long) wxEVT_DROP_FILES, 0, 0, 0}, | |
38048 | { SWIG_PY_INT, (char *)"wxEVT_DRAW_ITEM", (long) wxEVT_DRAW_ITEM, 0, 0, 0}, | |
38049 | { SWIG_PY_INT, (char *)"wxEVT_MEASURE_ITEM", (long) wxEVT_MEASURE_ITEM, 0, 0, 0}, | |
38050 | { SWIG_PY_INT, (char *)"wxEVT_COMPARE_ITEM", (long) wxEVT_COMPARE_ITEM, 0, 0, 0}, | |
38051 | { SWIG_PY_INT, (char *)"wxEVT_INIT_DIALOG", (long) wxEVT_INIT_DIALOG, 0, 0, 0}, | |
38052 | { SWIG_PY_INT, (char *)"wxEVT_IDLE", (long) wxEVT_IDLE, 0, 0, 0}, | |
38053 | { SWIG_PY_INT, (char *)"wxEVT_UPDATE_UI", (long) wxEVT_UPDATE_UI, 0, 0, 0}, | |
38054 | { SWIG_PY_INT, (char *)"wxEVT_SIZING", (long) wxEVT_SIZING, 0, 0, 0}, | |
38055 | { SWIG_PY_INT, (char *)"wxEVT_MOVING", (long) wxEVT_MOVING, 0, 0, 0}, | |
38056 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LEFT_CLICK", (long) wxEVT_COMMAND_LEFT_CLICK, 0, 0, 0}, | |
38057 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LEFT_DCLICK", (long) wxEVT_COMMAND_LEFT_DCLICK, 0, 0, 0}, | |
38058 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RIGHT_CLICK", (long) wxEVT_COMMAND_RIGHT_CLICK, 0, 0, 0}, | |
38059 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RIGHT_DCLICK", (long) wxEVT_COMMAND_RIGHT_DCLICK, 0, 0, 0}, | |
38060 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SET_FOCUS", (long) wxEVT_COMMAND_SET_FOCUS, 0, 0, 0}, | |
38061 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_KILL_FOCUS", (long) wxEVT_COMMAND_KILL_FOCUS, 0, 0, 0}, | |
38062 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_ENTER", (long) wxEVT_COMMAND_ENTER, 0, 0, 0}, | |
38063 | { SWIG_PY_INT, (char *)"MOUSE_BTN_ANY", (long) wxMOUSE_BTN_ANY, 0, 0, 0}, | |
38064 | { SWIG_PY_INT, (char *)"MOUSE_BTN_NONE", (long) wxMOUSE_BTN_NONE, 0, 0, 0}, | |
38065 | { SWIG_PY_INT, (char *)"MOUSE_BTN_LEFT", (long) wxMOUSE_BTN_LEFT, 0, 0, 0}, | |
38066 | { SWIG_PY_INT, (char *)"MOUSE_BTN_MIDDLE", (long) wxMOUSE_BTN_MIDDLE, 0, 0, 0}, | |
38067 | { SWIG_PY_INT, (char *)"MOUSE_BTN_RIGHT", (long) wxMOUSE_BTN_RIGHT, 0, 0, 0}, | |
38068 | { SWIG_PY_INT, (char *)"UPDATE_UI_PROCESS_ALL", (long) wxUPDATE_UI_PROCESS_ALL, 0, 0, 0}, | |
38069 | { SWIG_PY_INT, (char *)"UPDATE_UI_PROCESS_SPECIFIED", (long) wxUPDATE_UI_PROCESS_SPECIFIED, 0, 0, 0}, | |
38070 | { SWIG_PY_INT, (char *)"IDLE_PROCESS_ALL", (long) wxIDLE_PROCESS_ALL, 0, 0, 0}, | |
38071 | { SWIG_PY_INT, (char *)"IDLE_PROCESS_SPECIFIED", (long) wxIDLE_PROCESS_SPECIFIED, 0, 0, 0}, | |
38072 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_SUPPRESS", (long) wxPYAPP_ASSERT_SUPPRESS, 0, 0, 0}, | |
38073 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_EXCEPTION", (long) wxPYAPP_ASSERT_EXCEPTION, 0, 0, 0}, | |
38074 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_DIALOG", (long) wxPYAPP_ASSERT_DIALOG, 0, 0, 0}, | |
38075 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_LOG", (long) wxPYAPP_ASSERT_LOG, 0, 0, 0}, | |
38076 | { SWIG_PY_INT, (char *)"PRINT_WINDOWS", (long) wxPRINT_WINDOWS, 0, 0, 0}, | |
38077 | { SWIG_PY_INT, (char *)"PRINT_POSTSCRIPT", (long) wxPRINT_POSTSCRIPT, 0, 0, 0}, | |
38078 | { SWIG_PY_INT, (char *)"FLEX_GROWMODE_NONE", (long) wxFLEX_GROWMODE_NONE, 0, 0, 0}, | |
38079 | { SWIG_PY_INT, (char *)"FLEX_GROWMODE_SPECIFIED", (long) wxFLEX_GROWMODE_SPECIFIED, 0, 0, 0}, | |
38080 | { SWIG_PY_INT, (char *)"FLEX_GROWMODE_ALL", (long) wxFLEX_GROWMODE_ALL, 0, 0, 0}, | |
38081 | { SWIG_PY_INT, (char *)"Left", (long) wxLeft, 0, 0, 0}, | |
38082 | { SWIG_PY_INT, (char *)"Top", (long) wxTop, 0, 0, 0}, | |
38083 | { SWIG_PY_INT, (char *)"Right", (long) wxRight, 0, 0, 0}, | |
38084 | { SWIG_PY_INT, (char *)"Bottom", (long) wxBottom, 0, 0, 0}, | |
38085 | { SWIG_PY_INT, (char *)"Width", (long) wxWidth, 0, 0, 0}, | |
38086 | { SWIG_PY_INT, (char *)"Height", (long) wxHeight, 0, 0, 0}, | |
38087 | { SWIG_PY_INT, (char *)"Centre", (long) wxCentre, 0, 0, 0}, | |
38088 | { SWIG_PY_INT, (char *)"Center", (long) wxCenter, 0, 0, 0}, | |
38089 | { SWIG_PY_INT, (char *)"CentreX", (long) wxCentreX, 0, 0, 0}, | |
38090 | { SWIG_PY_INT, (char *)"CentreY", (long) wxCentreY, 0, 0, 0}, | |
38091 | { SWIG_PY_INT, (char *)"Unconstrained", (long) wxUnconstrained, 0, 0, 0}, | |
38092 | { SWIG_PY_INT, (char *)"AsIs", (long) wxAsIs, 0, 0, 0}, | |
38093 | { SWIG_PY_INT, (char *)"PercentOf", (long) wxPercentOf, 0, 0, 0}, | |
38094 | { SWIG_PY_INT, (char *)"Above", (long) wxAbove, 0, 0, 0}, | |
38095 | { SWIG_PY_INT, (char *)"Below", (long) wxBelow, 0, 0, 0}, | |
38096 | { SWIG_PY_INT, (char *)"LeftOf", (long) wxLeftOf, 0, 0, 0}, | |
38097 | { SWIG_PY_INT, (char *)"RightOf", (long) wxRightOf, 0, 0, 0}, | |
38098 | { SWIG_PY_INT, (char *)"SameAs", (long) wxSameAs, 0, 0, 0}, | |
38099 | { SWIG_PY_INT, (char *)"Absolute", (long) wxAbsolute, 0, 0, 0}, | |
38100 | {0}}; | |
38101 | ||
38102 | #ifdef __cplusplus | |
38103 | } | |
38104 | #endif | |
38105 | ||
38106 | #ifdef __cplusplus | |
38107 | extern "C" | |
38108 | #endif | |
38109 | SWIGEXPORT(void) SWIG_init(void) { | |
38110 | static PyObject *SWIG_globals = 0; | |
38111 | static int typeinit = 0; | |
38112 | PyObject *m, *d; | |
38113 | int i; | |
38114 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
38115 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
38116 | d = PyModule_GetDict(m); | |
38117 | ||
38118 | if (!typeinit) { | |
38119 | for (i = 0; swig_types_initial[i]; i++) { | |
38120 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
38121 | } | |
38122 | typeinit = 1; | |
38123 | } | |
38124 | SWIG_InstallConstants(d,swig_const_table); | |
38125 | ||
38126 | ||
38127 | #ifndef wxPyUSE_EXPORT | |
38128 | // Make our API structure a CObject so other modules can import it | |
38129 | // from this module. | |
38130 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
38131 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
38132 | Py_XDECREF(cobj); | |
38133 | #endif | |
38134 | ||
38135 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
38136 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); | |
38137 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
38138 | ||
38139 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
38140 | ||
38141 | ||
38142 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
38143 | ||
38144 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
38145 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
38146 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
38147 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
38148 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
38149 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
38150 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); | |
38151 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
38152 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
38153 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
38154 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
38155 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
38156 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
38157 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
38158 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
38159 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
38160 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
38161 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
38162 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
38163 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
38164 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
38165 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
38166 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
38167 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
38168 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
38169 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
38170 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
38171 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
38172 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
38173 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
38174 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
38175 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
38176 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
38177 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
38178 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
38179 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
38180 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
38181 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
38182 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
38183 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
38184 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
38185 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
38186 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
38187 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
38188 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
38189 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
38190 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
38191 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
38192 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
38193 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
38194 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
38195 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
38196 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
38197 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
38198 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
38199 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
38200 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
38201 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
38202 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
38203 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
38204 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
38205 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
38206 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
38207 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
38208 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
38209 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
38210 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
38211 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
38212 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
38213 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
38214 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
38215 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
38216 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
38217 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
38218 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
38219 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
38220 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
38221 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
38222 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
38223 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
38224 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
38225 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
38226 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
38227 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
38228 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
38229 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
38230 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
38231 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
38232 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
38233 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
38234 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
38235 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
38236 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
38237 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
38238 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
38239 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
38240 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
38241 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
38242 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
38243 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
38244 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
38245 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
38246 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
38247 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
38248 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
38249 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
38250 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
38251 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
38252 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
38253 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
38254 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
38255 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
38256 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
38257 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
38258 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
38259 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
38260 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
38261 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
38262 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
38263 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
38264 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); | |
38265 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); | |
38266 | ||
38267 | // Initialize threading, some globals and such | |
38268 | __wxPyPreStart(d); | |
38269 | ||
38270 | ||
38271 | // Although these are defined in __version__ they need to be here too so | |
38272 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
38273 | // versions match. | |
38274 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
38275 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
38276 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
38277 | ||
38278 | } | |
38279 |