]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
51 | ||
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
93 | #ifdef __cplusplus | |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
105 | swig_dycast_func dcast; | |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
120 | ||
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
136 | #include "Python.h" | |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
166 | /* Common SWIG API */ | |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
173 | ||
174 | /* Python-specific SWIG API */ | |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
186 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
187 | ||
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
196 | ||
197 | ||
198 | /* Contract support */ | |
199 | ||
200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
201 | ||
202 | #ifdef __cplusplus | |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
207 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
208 | ||
209 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[0] | |
210 | #define SWIGTYPE_p_wxRealPoint swig_types[1] | |
211 | #define SWIGTYPE_p_wxSizerItem swig_types[2] | |
212 | #define SWIGTYPE_p_wxGBSizerItem swig_types[3] | |
213 | #define SWIGTYPE_p_wxScrollEvent swig_types[4] | |
214 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5] | |
215 | #define SWIGTYPE_p_wxSizer swig_types[6] | |
216 | #define SWIGTYPE_p_wxBoxSizer swig_types[7] | |
217 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[8] | |
218 | #define SWIGTYPE_p_wxGridBagSizer swig_types[9] | |
219 | #define SWIGTYPE_p_wxAcceleratorEntry swig_types[10] | |
220 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[11] | |
221 | #define SWIGTYPE_p_wxMenu swig_types[12] | |
222 | #define SWIGTYPE_p_wxEvent swig_types[13] | |
223 | #define SWIGTYPE_p_wxGridSizer swig_types[14] | |
224 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[15] | |
225 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[16] | |
226 | #define SWIGTYPE_p_wxItemContainer swig_types[17] | |
227 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[18] | |
228 | #define SWIGTYPE_p_wxPaintEvent swig_types[19] | |
229 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20] | |
230 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21] | |
231 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22] | |
232 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23] | |
233 | #define SWIGTYPE_p_wxControl swig_types[24] | |
234 | #define SWIGTYPE_p_wxFont swig_types[25] | |
235 | #define SWIGTYPE_p_wxMenuBarBase swig_types[26] | |
236 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[27] | |
237 | #define SWIGTYPE_p_wxFSFile swig_types[28] | |
238 | #define SWIGTYPE_p_wxCaret swig_types[29] | |
239 | #define SWIGTYPE_p_wxRegion swig_types[30] | |
240 | #define SWIGTYPE_p_wxPoint2D swig_types[31] | |
241 | #define SWIGTYPE_p_int swig_types[32] | |
242 | #define SWIGTYPE_p_wxSize swig_types[33] | |
243 | #define SWIGTYPE_p_wxDC swig_types[34] | |
244 | #define SWIGTYPE_p_wxPySizer swig_types[35] | |
245 | #define SWIGTYPE_p_wxVisualAttributes swig_types[36] | |
246 | #define SWIGTYPE_p_wxNotifyEvent swig_types[37] | |
247 | #define SWIGTYPE_p_wxPyEvent swig_types[38] | |
248 | #define SWIGTYPE_p_wxPropagationDisabler swig_types[39] | |
249 | #define SWIGTYPE_p_wxAppTraits swig_types[40] | |
250 | #define SWIGTYPE_p_wxArrayString swig_types[41] | |
251 | #define SWIGTYPE_p_wxShowEvent swig_types[42] | |
252 | #define SWIGTYPE_p_wxToolTip swig_types[43] | |
c0de73ae RD |
253 | #define SWIGTYPE_p_wxIconizeEvent swig_types[44] |
254 | #define SWIGTYPE_p_wxActivateEvent swig_types[45] | |
255 | #define SWIGTYPE_p_wxMoveEvent swig_types[46] | |
256 | #define SWIGTYPE_p_wxSizeEvent swig_types[47] | |
257 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[48] | |
d55e5bfc RD |
258 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[49] |
259 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[50] | |
260 | #define SWIGTYPE_p_wxIdleEvent swig_types[51] | |
261 | #define SWIGTYPE_p_wxMenuItem swig_types[52] | |
262 | #define SWIGTYPE_p_wxStaticBox swig_types[53] | |
263 | #define SWIGTYPE_p_long swig_types[54] | |
264 | #define SWIGTYPE_p_wxTIFFHandler swig_types[55] | |
265 | #define SWIGTYPE_p_wxXPMHandler swig_types[56] | |
266 | #define SWIGTYPE_p_wxPNMHandler swig_types[57] | |
267 | #define SWIGTYPE_p_wxJPEGHandler swig_types[58] | |
268 | #define SWIGTYPE_p_wxPCXHandler swig_types[59] | |
269 | #define SWIGTYPE_p_wxGIFHandler swig_types[60] | |
270 | #define SWIGTYPE_p_wxPNGHandler swig_types[61] | |
271 | #define SWIGTYPE_p_wxANIHandler swig_types[62] | |
272 | #define SWIGTYPE_p_wxMemoryFSHandler swig_types[63] | |
273 | #define SWIGTYPE_p_wxEvtHandler swig_types[64] | |
274 | #define SWIGTYPE_p_wxCURHandler swig_types[65] | |
275 | #define SWIGTYPE_p_wxICOHandler swig_types[66] | |
276 | #define SWIGTYPE_p_wxBMPHandler swig_types[67] | |
277 | #define SWIGTYPE_p_wxImageHandler swig_types[68] | |
278 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[69] | |
279 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[70] | |
280 | #define SWIGTYPE_p_wxInternetFSHandler swig_types[71] | |
281 | #define SWIGTYPE_p_wxZipFSHandler swig_types[72] | |
282 | #define SWIGTYPE_p_wxRect swig_types[73] | |
283 | #define SWIGTYPE_p_wxGBSpan swig_types[74] | |
284 | #define SWIGTYPE_p_wxPropagateOnce swig_types[75] | |
285 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[76] | |
286 | #define SWIGTYPE_p_char swig_types[77] | |
287 | #define SWIGTYPE_p_wxGBPosition swig_types[78] | |
288 | #define SWIGTYPE_p_wxImage swig_types[79] | |
289 | #define SWIGTYPE_p_wxFrame swig_types[80] | |
290 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[81] | |
291 | #define SWIGTYPE_p_wxImageHistogram swig_types[82] | |
292 | #define SWIGTYPE_p_byte swig_types[83] | |
293 | #define SWIGTYPE_p_wxPoint swig_types[84] | |
294 | #define SWIGTYPE_p_wxCursor swig_types[85] | |
295 | #define SWIGTYPE_p_wxObject swig_types[86] | |
296 | #define SWIGTYPE_p_wxPyInputStream swig_types[87] | |
297 | #define SWIGTYPE_p_wxOutputStream swig_types[88] | |
298 | #define SWIGTYPE_p_wxInputStream swig_types[89] | |
299 | #define SWIGTYPE_p_wxDateTime swig_types[90] | |
300 | #define SWIGTYPE_p_wxKeyEvent swig_types[91] | |
301 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92] | |
302 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[93] | |
303 | #define SWIGTYPE_p_wxWindow swig_types[94] | |
304 | #define SWIGTYPE_p_wxMenuBar swig_types[95] | |
305 | #define SWIGTYPE_p_wxFileSystem swig_types[96] | |
306 | #define SWIGTYPE_p_wxBitmap swig_types[97] | |
307 | #define SWIGTYPE_p_wxMenuEvent swig_types[98] | |
308 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[99] | |
309 | #define SWIGTYPE_p_unsigned_char swig_types[100] | |
310 | #define SWIGTYPE_p_wxCloseEvent swig_types[101] | |
311 | #define SWIGTYPE_p_wxEraseEvent swig_types[102] | |
312 | #define SWIGTYPE_p_wxMouseEvent swig_types[103] | |
313 | #define SWIGTYPE_p_wxPyApp swig_types[104] | |
314 | #define SWIGTYPE_p_wxCommandEvent swig_types[105] | |
315 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[106] | |
316 | #define SWIGTYPE_p_wxPyDropTarget swig_types[107] | |
c0de73ae RD |
317 | #define SWIGTYPE_p_wxQuantize swig_types[108] |
318 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[109] | |
319 | #define SWIGTYPE_p_wxFocusEvent swig_types[110] | |
320 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[111] | |
321 | #define SWIGTYPE_p_wxControlWithItems swig_types[112] | |
322 | #define SWIGTYPE_p_wxColour swig_types[113] | |
323 | #define SWIGTYPE_p_wxValidator swig_types[114] | |
324 | #define SWIGTYPE_p_wxPyValidator swig_types[115] | |
325 | static swig_type_info *swig_types[117]; | |
d55e5bfc RD |
326 | |
327 | /* -------- TYPES TABLE (END) -------- */ | |
328 | ||
329 | ||
330 | /*----------------------------------------------- | |
331 | @(target):= _core_.so | |
332 | ------------------------------------------------*/ | |
333 | #define SWIG_init init_core_ | |
334 | ||
335 | #define SWIG_name "_core_" | |
336 | ||
337 | /* Auxiliar swig macros */ | |
338 | ||
339 | #ifdef __cplusplus | |
340 | #define SWIGSTATICINLINE(a) static inline a | |
341 | #define SWIGSTATIC(a) static a | |
342 | #define swig_new_array(type, size) (new type[(size)]) | |
343 | #define swig_delete_array(cptr) delete[] cptr | |
344 | #define swig_const_cast(type,a) const_cast<type>(a) | |
345 | #define swig_static_cast(type,a) static_cast<type>(a) | |
346 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
347 | ||
348 | #ifdef HAVE_NUMERIC_CAST | |
349 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
350 | #else | |
351 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
352 | #endif | |
353 | ||
354 | #else /* C case */ | |
355 | ||
356 | #define SWIGSTATICINLINE(a) static a | |
357 | #define SWIGSTATIC(a) static a | |
358 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
359 | #define swig_delete_array(cptr) free((char*)cptr) | |
360 | #define swig_const_cast(type,a) (type)(a) | |
361 | #define swig_static_cast(type,a) (type)(a) | |
362 | #define swig_reinterpret_cast(type,a) (type)(a) | |
363 | #define swig_numeric_cast(type,a) (type)(a) | |
364 | ||
365 | #endif /* __cplusplus */ | |
366 | ||
367 | ||
368 | #define SWIG_FromSignedChar PyInt_FromLong | |
369 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
370 | #define SWIG_FromShort PyInt_FromLong | |
371 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
372 | #define SWIG_FromInt PyInt_FromLong | |
373 | #define SWIG_FromLong PyInt_FromLong | |
374 | #define SWIG_FromFloat PyFloat_FromDouble | |
375 | #define SWIG_FromDouble PyFloat_FromDouble | |
376 | #define SWIG_FromFloat PyFloat_FromDouble | |
377 | #define SWIG_FromDouble PyFloat_FromDouble | |
378 | ||
379 | ||
380 | #include "wx/wxPython/wxPython_int.h" | |
381 | #include "wx/wxPython/pyclasses.h" | |
382 | ||
383 | ||
384 | #ifndef wxPyUSE_EXPORT | |
385 | // Helper functions for dealing with SWIG objects and such. These are | |
386 | // located here so they know about the SWIG types and functions declared | |
387 | // in the wrapper code. | |
388 | ||
389 | #include <wx/hashmap.h> | |
390 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
391 | ||
392 | ||
393 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
394 | // name of a class either looks up the type info in the cache, or scans the | |
395 | // SWIG tables for it. | |
396 | extern PyObject* wxPyPtrTypeMap; | |
397 | static | |
398 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
399 | ||
400 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
401 | ||
402 | if (typeInfoCache == NULL) | |
403 | typeInfoCache = new wxPyTypeInfoHashMap; | |
404 | ||
405 | wxString name(className); | |
406 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
407 | ||
408 | if (! swigType) { | |
409 | // it wasn't in the cache, so look it up from SWIG | |
410 | name.Append(wxT(" *")); | |
411 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
412 | ||
413 | // if it still wasn't found, try looking for a mapped name | |
414 | if (!swigType) { | |
415 | PyObject* item; | |
416 | name = className; | |
417 | ||
418 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
419 | (char*)(const char*)name.mbc_str())) != NULL) { | |
420 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
421 | name.Append(wxT(" *")); | |
422 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
423 | } | |
424 | } | |
425 | if (swigType) { | |
426 | // and add it to the map if found | |
427 | (*typeInfoCache)[className] = swigType; | |
428 | } | |
429 | } | |
430 | return swigType; | |
431 | } | |
432 | ||
433 | ||
434 | // Check if a class name is a type known to SWIG | |
435 | bool wxPyCheckSwigType(const wxChar* className) { | |
436 | ||
437 | swig_type_info* swigType = wxPyFindSwigType(className); | |
438 | return swigType != NULL; | |
439 | } | |
440 | ||
441 | ||
442 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
443 | // object for it. | |
444 | PyObject* wxPyConstructObject(void* ptr, | |
445 | const wxChar* className, | |
446 | int setThisOwn) { | |
447 | ||
448 | swig_type_info* swigType = wxPyFindSwigType(className); | |
449 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
450 | ||
451 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
452 | } | |
453 | ||
454 | ||
455 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
456 | // Ensures that the proxy object is of the specified (or derived) type. If | |
457 | // not able to perform the conversion then a Python exception is set and the | |
458 | // error should be handled properly in the caller. Returns True on success. | |
459 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, | |
460 | const wxChar* className) { | |
461 | ||
462 | swig_type_info* swigType = wxPyFindSwigType(className); | |
463 | wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr")); | |
464 | ||
465 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
466 | } | |
467 | ||
468 | ||
469 | // Make a SWIGified pointer object suitable for a .this attribute | |
470 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
471 | ||
472 | PyObject* robj = NULL; | |
473 | ||
474 | swig_type_info* swigType = wxPyFindSwigType(className); | |
475 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
476 | ||
477 | #ifdef SWIG_COBJECT_TYPES | |
478 | robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); | |
479 | #else | |
480 | { | |
481 | char result[1024]; | |
482 | char *r = result; | |
483 | *(r++) = '_'; | |
484 | r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); | |
485 | strcpy(r, swigType->name); | |
486 | robj = PyString_FromString(result); | |
487 | } | |
488 | #endif | |
489 | ||
490 | return robj; | |
491 | } | |
492 | ||
493 | ||
494 | ||
495 | ||
496 | // Export a C API in a struct. Other modules will be able to load this from | |
497 | // the wx._core_ module and will then have safe access to these functions, | |
498 | // even if they are located in another shared library. | |
499 | static wxPyCoreAPI API = { | |
500 | ||
501 | (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, | |
502 | (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, | |
503 | (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, | |
504 | (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, | |
505 | (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, | |
506 | (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, | |
507 | (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, | |
508 | (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, | |
509 | (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, | |
510 | (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, | |
511 | (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, | |
512 | (p_SWIG_Python_PackData_t)SWIG_Python_PackData, | |
513 | (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, | |
514 | (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, | |
515 | (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, | |
516 | (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, | |
517 | (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, | |
518 | ||
519 | wxPyCheckSwigType, | |
520 | wxPyConstructObject, | |
521 | wxPyConvertSwigPtr, | |
522 | wxPyMakeSwigPtr, | |
523 | ||
524 | wxPyBeginAllowThreads, | |
525 | wxPyEndAllowThreads, | |
526 | wxPyBeginBlockThreads, | |
527 | wxPyEndBlockThreads, | |
528 | ||
529 | wxPy_ConvertList, | |
530 | ||
531 | wxString_in_helper, | |
532 | Py2wxString, | |
533 | wx2PyString, | |
534 | ||
535 | byte_LIST_helper, | |
536 | int_LIST_helper, | |
537 | long_LIST_helper, | |
538 | string_LIST_helper, | |
539 | wxPoint_LIST_helper, | |
540 | wxBitmap_LIST_helper, | |
541 | wxString_LIST_helper, | |
542 | wxAcceleratorEntry_LIST_helper, | |
543 | ||
544 | wxSize_helper, | |
545 | wxPoint_helper, | |
546 | wxRealPoint_helper, | |
547 | wxRect_helper, | |
548 | wxColour_helper, | |
549 | wxPoint2D_helper, | |
550 | ||
551 | wxPySimple_typecheck, | |
552 | wxColour_typecheck, | |
553 | ||
554 | wxPyCBH_setCallbackInfo, | |
555 | wxPyCBH_findCallback, | |
556 | wxPyCBH_callCallback, | |
557 | wxPyCBH_callCallbackObj, | |
558 | wxPyCBH_delete, | |
559 | ||
560 | wxPyMake_wxObject, | |
561 | wxPyMake_wxSizer, | |
562 | wxPyPtrTypeMap_Add, | |
563 | wxPy2int_seq_helper, | |
564 | wxPy4int_seq_helper, | |
565 | wxArrayString2PyList_helper, | |
566 | wxArrayInt2PyList_helper, | |
567 | ||
568 | wxPyClientData_dtor, | |
569 | wxPyUserData_dtor, | |
570 | wxPyOORClientData_dtor, | |
571 | ||
572 | wxPyCBInputStream_create, | |
573 | ||
574 | wxPyInstance_Check, | |
0439c23b RD |
575 | wxPySwigInstance_Check, |
576 | ||
577 | wxPyCheckForApp | |
d55e5bfc RD |
578 | |
579 | }; | |
580 | ||
581 | #endif | |
582 | ||
583 | ||
584 | #if ! wxUSE_HOTKEY | |
585 | enum wxHotkeyModifier | |
586 | { | |
587 | wxMOD_NONE = 0, | |
588 | wxMOD_ALT = 1, | |
589 | wxMOD_CONTROL = 2, | |
590 | wxMOD_SHIFT = 4, | |
591 | wxMOD_WIN = 8 | |
592 | }; | |
593 | #define wxEVT_HOTKEY 9999 | |
594 | #endif | |
595 | ||
596 | static const wxString wxPyEmptyString(wxEmptyString); | |
597 | wxString wxObject_GetClassName(wxObject *self){ | |
598 | return self->GetClassInfo()->GetClassName(); | |
599 | } | |
600 | void wxObject_Destroy(wxObject *self){ | |
601 | delete self; | |
602 | } | |
603 | ||
604 | #ifndef __WXMAC__ | |
605 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
606 | #endif | |
607 | ||
608 | ||
609 | #include <limits.h> | |
610 | ||
611 | ||
612 | SWIGSTATICINLINE(long) | |
613 | SWIG_CheckLongInRange(long value, const char* type, | |
614 | long min_value, long max_value) | |
615 | { | |
616 | if (!PyErr_Occurred()) { | |
617 | if (value < min_value) { | |
618 | PyObject *err = | |
619 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
620 | value, type, min_value); | |
621 | ||
622 | PyErr_SetObject(PyExc_OverflowError, err); | |
623 | Py_DECREF(err); | |
624 | } else if (value > max_value) { | |
625 | PyObject *err = | |
626 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
627 | value, type, max_value); | |
628 | PyErr_SetObject(PyExc_OverflowError, err); | |
629 | Py_DECREF(err); | |
630 | } | |
631 | } | |
632 | return value; | |
633 | } | |
634 | ||
635 | ||
636 | SWIGSTATICINLINE(long) | |
637 | SWIG_AsLong(PyObject * obj) | |
638 | { | |
639 | if (PyNumber_Check(obj)) | |
640 | return PyInt_AsLong(obj); | |
641 | else { | |
642 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
643 | obj->ob_type->tp_name); | |
644 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
645 | Py_DECREF(errmsg); | |
646 | return 0; | |
647 | } | |
648 | } | |
649 | ||
650 | ||
651 | #if INT_MAX != LONG_MAX | |
652 | SWIGSTATICINLINE(int) | |
653 | SWIG_AsInt(PyObject *obj) | |
654 | { | |
655 | return swig_numeric_cast(int, | |
656 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
657 | "int", INT_MIN, INT_MAX)); | |
658 | } | |
659 | #else | |
660 | #define SWIG_AsInt SWIG_AsLong | |
661 | #endif | |
662 | ||
663 | ||
664 | SWIGSTATICINLINE(int) | |
665 | SWIG_CheckInt(PyObject* obj) | |
666 | { | |
667 | SWIG_AsInt(obj); | |
668 | if (PyErr_Occurred()) { | |
669 | PyErr_Clear(); | |
670 | return 0; | |
671 | } else { | |
672 | return 1; | |
673 | } | |
674 | } | |
675 | ||
676 | PyObject *wxSize_Get(wxSize *self){ | |
677 | bool blocked = wxPyBeginBlockThreads(); | |
678 | PyObject* tup = PyTuple_New(2); | |
679 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
680 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
681 | wxPyEndBlockThreads(blocked); | |
682 | return tup; | |
683 | } | |
684 | ||
685 | SWIGSTATICINLINE(double) | |
686 | SWIG_AsDouble(PyObject *obj) | |
687 | { | |
688 | if (PyNumber_Check(obj)) | |
689 | return PyFloat_AsDouble(obj); | |
690 | else { | |
691 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
692 | obj->ob_type->tp_name); | |
693 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
694 | Py_DECREF(errmsg); | |
695 | return 0; | |
696 | } | |
697 | } | |
698 | ||
699 | ||
700 | SWIGSTATICINLINE(int) | |
701 | SWIG_CheckDouble(PyObject* obj) | |
702 | { | |
703 | SWIG_AsDouble(obj); | |
704 | if (PyErr_Occurred()) { | |
705 | PyErr_Clear(); | |
706 | return 0; | |
707 | } else { | |
708 | return 1; | |
709 | } | |
710 | } | |
711 | ||
712 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ | |
713 | self->x = x; | |
714 | self->y = y; | |
715 | } | |
716 | PyObject *wxRealPoint_Get(wxRealPoint *self){ | |
717 | bool blocked = wxPyBeginBlockThreads(); | |
718 | PyObject* tup = PyTuple_New(2); | |
719 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
720 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
721 | wxPyEndBlockThreads(blocked); | |
722 | return tup; | |
723 | } | |
724 | ||
725 | SWIGSTATICINLINE(int) | |
726 | SWIG_CheckLong(PyObject* obj) | |
727 | { | |
728 | SWIG_AsLong(obj); | |
729 | if (PyErr_Occurred()) { | |
730 | PyErr_Clear(); | |
731 | return 0; | |
732 | } else { | |
733 | return 1; | |
734 | } | |
735 | } | |
736 | ||
737 | void wxPoint_Set(wxPoint *self,long x,long y){ | |
738 | self->x = x; | |
739 | self->y = y; | |
740 | } | |
741 | PyObject *wxPoint_Get(wxPoint *self){ | |
742 | bool blocked = wxPyBeginBlockThreads(); | |
743 | PyObject* tup = PyTuple_New(2); | |
744 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
745 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
746 | wxPyEndBlockThreads(blocked); | |
747 | return tup; | |
748 | } | |
749 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
750 | self->x = x; | |
751 | self->y = y; | |
752 | self->width = width; | |
753 | self->height = height; | |
754 | } | |
755 | PyObject *wxRect_Get(wxRect *self){ | |
756 | bool blocked = wxPyBeginBlockThreads(); | |
757 | PyObject* tup = PyTuple_New(4); | |
758 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
759 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
760 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
761 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
762 | wxPyEndBlockThreads(blocked); | |
763 | return tup; | |
764 | } | |
765 | ||
766 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
767 | wxRegion reg1(*r1); | |
768 | wxRegion reg2(*r2); | |
769 | wxRect dest(0,0,0,0); | |
770 | PyObject* obj; | |
771 | ||
772 | reg1.Intersect(reg2); | |
773 | dest = reg1.GetBox(); | |
774 | ||
775 | if (dest != wxRect(0,0,0,0)) { | |
776 | bool blocked = wxPyBeginBlockThreads(); | |
777 | wxRect* newRect = new wxRect(dest); | |
778 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); | |
779 | wxPyEndBlockThreads(blocked); | |
780 | return obj; | |
781 | } | |
782 | Py_INCREF(Py_None); | |
783 | return Py_None; | |
784 | } | |
785 | ||
786 | ||
787 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
788 | PyObject* o2; | |
789 | PyObject* o3; | |
790 | ||
791 | if (!target) { | |
792 | target = o; | |
793 | } else if (target == Py_None) { | |
794 | Py_DECREF(Py_None); | |
795 | target = o; | |
796 | } else { | |
797 | if (!PyTuple_Check(target)) { | |
798 | o2 = target; | |
799 | target = PyTuple_New(1); | |
800 | PyTuple_SetItem(target, 0, o2); | |
801 | } | |
802 | o3 = PyTuple_New(1); | |
803 | PyTuple_SetItem(o3, 0, o); | |
804 | ||
805 | o2 = target; | |
806 | target = PySequence_Concat(o2, o3); | |
807 | Py_DECREF(o2); | |
808 | Py_DECREF(o3); | |
809 | } | |
810 | return target; | |
811 | } | |
812 | ||
813 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
814 | self->m_x = x; | |
815 | self->m_y = y; | |
816 | } | |
817 | PyObject *wxPoint2D_Get(wxPoint2D *self){ | |
818 | bool blocked = wxPyBeginBlockThreads(); | |
819 | PyObject* tup = PyTuple_New(2); | |
820 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
821 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
822 | wxPyEndBlockThreads(blocked); | |
823 | return tup; | |
824 | } | |
825 | ||
826 | #include "wx/wxPython/pyistream.h" | |
827 | ||
828 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
829 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
830 | if (wxis) | |
831 | return new wxPyInputStream(wxis); | |
832 | else | |
833 | return NULL; | |
834 | } | |
835 | ||
836 | SWIGSTATICINLINE(PyObject*) | |
837 | SWIG_FromChar(char c) | |
838 | { | |
839 | return PyString_FromStringAndSize(&c,1); | |
840 | } | |
841 | ||
842 | ||
843 | SWIGSTATICINLINE(PyObject* ) | |
844 | SWIG_FromUnsignedLong(unsigned long value) | |
845 | { | |
846 | return (value > LONG_MAX) ? | |
847 | PyLong_FromUnsignedLong(value) | |
848 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
849 | } | |
850 | ||
851 | ||
852 | /* returns '1' if the input is a raw char*, '0' if is a PyString */ | |
853 | SWIGSTATIC(int) | |
854 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size) | |
855 | { | |
856 | static swig_type_info* pchar_info = 0; | |
857 | int psize = 0; | |
858 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); | |
859 | ||
860 | if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) { | |
861 | PyErr_Clear(); | |
862 | PyString_AsStringAndSize(obj, cptr, &psize); | |
863 | if (PyErr_Occurred()) { | |
864 | PyErr_Clear(); | |
865 | PyErr_SetString(PyExc_TypeError,"a string is expected"); | |
866 | } | |
867 | if (size) *size = psize; | |
868 | return 0; | |
869 | } else { | |
870 | if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0; | |
871 | return 1; | |
872 | } | |
873 | } | |
874 | ||
875 | ||
876 | SWIGSTATIC(void) | |
877 | SWIG_AsCharArray(PyObject *obj, char* carray, size_t size) | |
878 | { | |
879 | char* cptr; size_t csize; | |
880 | SWIG_AsCharPtrAndSize(obj, &cptr, &csize); | |
881 | if (PyErr_Occurred()) { | |
882 | PyErr_Clear(); | |
883 | PyObject *err = | |
884 | PyString_FromFormat("a char array of size %d is expected", size); | |
885 | PyErr_SetObject(PyExc_TypeError, err); | |
886 | Py_DECREF(err); | |
887 | } else { | |
888 | /* in C (but not in C++) you can do: | |
889 | ||
890 | char x[5] = "hello"; | |
891 | ||
892 | ie, assing the array using an extra '0' char. | |
893 | */ | |
894 | #ifndef __cplusplus | |
895 | if ((csize == size + 1) && !(cptr[csize-1])) --csize; | |
896 | #endif | |
897 | if (csize > size) { | |
898 | PyObject *err = | |
899 | PyString_FromFormat("a char array of maximum size %d is expected", | |
900 | size); | |
901 | PyErr_SetObject(PyExc_TypeError, err); | |
902 | Py_DECREF(err); | |
903 | } else { | |
904 | if (csize) memcpy(carray, cptr, csize); | |
905 | if (csize < size) memset(carray + csize, 0, size - csize); | |
906 | } | |
907 | } | |
908 | } | |
909 | ||
910 | ||
911 | SWIGSTATICINLINE(char) | |
912 | SWIG_AsChar(PyObject *obj) | |
913 | { | |
914 | char c = 0; | |
915 | if (PyInt_Check(obj) || PyLong_Check(obj)) { | |
916 | c = swig_numeric_cast(char, | |
917 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
918 | "char", CHAR_MIN, CHAR_MAX)); | |
919 | } else { | |
920 | SWIG_AsCharArray(obj, &c, 1); | |
921 | if (PyErr_Occurred()) { | |
922 | PyErr_Clear(); | |
923 | PyErr_SetString(PyExc_TypeError, "a char is expected"); | |
924 | } | |
925 | } | |
926 | return c; | |
927 | } | |
928 | ||
929 | ||
930 | SWIGSTATICINLINE(int) | |
931 | SWIG_CheckChar(PyObject* obj) | |
932 | { | |
933 | SWIG_AsChar(obj); | |
934 | if (PyErr_Occurred()) { | |
935 | PyErr_Clear(); | |
936 | return 0; | |
937 | } else { | |
938 | return 1; | |
939 | } | |
940 | } | |
941 | ||
942 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ | |
943 | // We use only strings for the streams, not unicode | |
944 | PyObject* str = PyObject_Str(obj); | |
945 | if (! str) { | |
946 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
947 | return; | |
948 | } | |
949 | self->Write(PyString_AS_STRING(str), | |
950 | PyString_GET_SIZE(str)); | |
951 | Py_DECREF(str); | |
952 | } | |
953 | ||
954 | #include "wx/wxPython/pyistream.h" | |
955 | ||
956 | ||
957 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
958 | { | |
959 | public: | |
960 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
961 | ||
962 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
963 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
964 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
965 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
966 | ||
967 | wxString GetProtocol(const wxString& location) { | |
968 | return wxFileSystemHandler::GetProtocol(location); | |
969 | } | |
970 | ||
971 | wxString GetLeftLocation(const wxString& location) { | |
972 | return wxFileSystemHandler::GetLeftLocation(location); | |
973 | } | |
974 | ||
975 | wxString GetAnchor(const wxString& location) { | |
976 | return wxFileSystemHandler::GetAnchor(location); | |
977 | } | |
978 | ||
979 | wxString GetRightLocation(const wxString& location) { | |
980 | return wxFileSystemHandler::GetRightLocation(location); | |
981 | } | |
982 | ||
983 | wxString GetMimeTypeFromExt(const wxString& location) { | |
984 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
985 | } | |
986 | ||
987 | PYPRIVATE; | |
988 | }; | |
989 | ||
990 | ||
991 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
992 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
993 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
994 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
995 | ||
996 | ||
997 | SWIGSTATICINLINE(bool) | |
998 | SWIG_AsBool(PyObject *obj) | |
999 | { | |
1000 | return PyObject_IsTrue(obj) ? true : false; | |
1001 | } | |
1002 | ||
1003 | ||
1004 | SWIGSTATICINLINE(int) | |
1005 | SWIG_CheckBool(PyObject* obj) | |
1006 | { | |
1007 | SWIG_AsBool(obj); | |
1008 | if (PyErr_Occurred()) { | |
1009 | PyErr_Clear(); | |
1010 | return 0; | |
1011 | } else { | |
1012 | return 1; | |
1013 | } | |
1014 | } | |
1015 | ||
1016 | ||
1017 | wxString wxFileSystem_URLToFileName(const wxString& url) { | |
1018 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
1019 | return fname.GetFullPath(); | |
1020 | } | |
1021 | ||
1022 | ||
1023 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
1024 | wxImage& image, | |
1025 | long type) { | |
1026 | wxMemoryFSHandler::AddFile(filename, image, type); | |
1027 | } | |
1028 | ||
1029 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
1030 | const wxBitmap& bitmap, | |
1031 | long type) { | |
1032 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
1033 | } | |
1034 | ||
1035 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
1036 | PyObject* data) { | |
1037 | wxMemoryFSHandler::AddFile(filename, | |
1038 | // TODO: Verify data type | |
1039 | (void*)PyString_AsString(data), | |
1040 | (size_t)PyString_Size(data)); | |
1041 | } | |
1042 | ||
1043 | ||
1044 | #include "wx/wxPython/pyistream.h" | |
1045 | ||
1046 | ||
1047 | SWIGSTATICINLINE(unsigned long) | |
1048 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
1049 | unsigned long max_value) | |
1050 | { | |
1051 | if (!PyErr_Occurred()) { | |
1052 | if (value > max_value) { | |
1053 | PyObject *err = | |
1054 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
1055 | value, type, max_value); | |
1056 | PyErr_SetObject(PyExc_OverflowError, err); | |
1057 | Py_DECREF(err); | |
1058 | } | |
1059 | } | |
1060 | return value; | |
1061 | } | |
1062 | ||
1063 | ||
1064 | SWIGSTATICINLINE(unsigned long) | |
1065 | SWIG_AsUnsignedLong(PyObject * obj) | |
1066 | { | |
1067 | if (PyLong_Check(obj)) { | |
1068 | return PyLong_AsUnsignedLong(obj); | |
1069 | } else { | |
1070 | long i = SWIG_AsLong(obj); | |
1071 | if ( !PyErr_Occurred() && (i < 0)) { | |
1072 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
1073 | } | |
1074 | return i; | |
1075 | } | |
1076 | } | |
1077 | ||
1078 | ||
1079 | SWIGSTATICINLINE(unsigned char) | |
1080 | SWIG_AsUnsignedChar(PyObject *obj) | |
1081 | { | |
1082 | return swig_numeric_cast(unsigned char, | |
1083 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1084 | "unsigned char", UCHAR_MAX)); | |
1085 | } | |
1086 | ||
1087 | ||
1088 | SWIGSTATICINLINE(int) | |
1089 | SWIG_CheckUnsignedChar(PyObject* obj) | |
1090 | { | |
1091 | SWIG_AsUnsignedChar(obj); | |
1092 | if (PyErr_Occurred()) { | |
1093 | PyErr_Clear(); | |
1094 | return 0; | |
1095 | } else { | |
1096 | return 1; | |
1097 | } | |
1098 | } | |
1099 | ||
c24da6d6 | 1100 | wxImage *new_wxImage(int width,int height,bool clear){ |
d55e5bfc RD |
1101 | if (width > 0 && height > 0) |
1102 | return new wxImage(width, height, clear); | |
1103 | else | |
1104 | return new wxImage; | |
1105 | } | |
d55e5bfc RD |
1106 | wxImage *new_wxImage(wxBitmap const &bitmap){ |
1107 | return new wxImage(bitmap.ConvertToImage()); | |
1108 | } | |
1109 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
1110 | // Copy the source data so the wxImage can clean it up later | |
1111 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
1112 | if (copy == NULL) { | |
1113 | PyErr_NoMemory(); | |
1114 | return NULL; | |
1115 | } | |
1116 | memcpy(copy, data, width*height*3); | |
1117 | return new wxImage(width, height, copy, False); | |
1118 | } | |
1119 | wxSize wxImage_GetSize(wxImage *self){ | |
1120 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1121 | return size; | |
1122 | } | |
1123 | PyObject *wxImage_GetData(wxImage *self){ | |
1124 | unsigned char* data = self->GetData(); | |
1125 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1126 | PyObject* rv; | |
1127 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1128 | return rv; | |
1129 | } | |
1130 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1131 | unsigned char* dataPtr; | |
1132 | ||
1133 | if (! PyString_Check(data)) { | |
1134 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1135 | return /* NULL */ ; | |
1136 | } | |
1137 | ||
1138 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1139 | dataPtr = (unsigned char*) malloc(len); | |
1140 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1141 | self->SetData(dataPtr); | |
1142 | // wxImage takes ownership of dataPtr... | |
1143 | } | |
1144 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1145 | unsigned char* data = self->GetData(); | |
1146 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1147 | PyObject* rv; | |
1148 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1149 | return rv; | |
1150 | } | |
1151 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1152 | unsigned char* buffer; | |
1153 | int size; | |
1154 | ||
1155 | bool blocked = wxPyBeginBlockThreads(); | |
1156 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1157 | goto done; | |
1158 | ||
1159 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1160 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1161 | goto done; | |
1162 | } | |
1163 | self->SetData(buffer); | |
1164 | done: | |
1165 | wxPyEndBlockThreads(blocked); | |
1166 | } | |
1167 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1168 | unsigned char* data = self->GetAlpha(); | |
1169 | if (! data) { | |
1170 | RETURN_NONE(); | |
1171 | } else { | |
1172 | int len = self->GetWidth() * self->GetHeight(); | |
1173 | PyObject* rv; | |
1174 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1175 | return rv; | |
1176 | } | |
1177 | } | |
1178 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1179 | unsigned char* dataPtr; | |
1180 | ||
1181 | if (! PyString_Check(data)) { | |
1182 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1183 | return /* NULL */ ; | |
1184 | } | |
1185 | ||
1186 | size_t len = self->GetWidth() * self->GetHeight(); | |
1187 | dataPtr = (unsigned char*) malloc(len); | |
1188 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1189 | self->SetAlpha(dataPtr); | |
1190 | // wxImage takes ownership of dataPtr... | |
1191 | } | |
1192 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1193 | unsigned char* data = self->GetAlpha(); | |
1194 | int len = self->GetWidth() * self->GetHeight(); | |
1195 | PyObject* rv; | |
1196 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1197 | return rv; | |
1198 | } | |
1199 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1200 | unsigned char* buffer; | |
1201 | int size; | |
1202 | ||
1203 | bool blocked = wxPyBeginBlockThreads(); | |
1204 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1205 | goto done; | |
1206 | ||
1207 | if (size != self->GetWidth() * self->GetHeight()) { | |
1208 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1209 | goto done; | |
1210 | } | |
1211 | self->SetAlpha(buffer); | |
1212 | done: | |
1213 | wxPyEndBlockThreads(blocked); | |
1214 | } | |
1215 | ||
1216 | SWIGSTATICINLINE(int) | |
1217 | SWIG_CheckUnsignedLong(PyObject* obj) | |
1218 | { | |
1219 | SWIG_AsUnsignedLong(obj); | |
1220 | if (PyErr_Occurred()) { | |
1221 | PyErr_Clear(); | |
1222 | return 0; | |
1223 | } else { | |
1224 | return 1; | |
1225 | } | |
1226 | } | |
1227 | ||
1228 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ | |
1229 | wxBitmap bitmap(*self); | |
1230 | return bitmap; | |
1231 | } | |
1232 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1233 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1234 | wxBitmap bitmap( mono, 1 ); | |
1235 | return bitmap; | |
1236 | } | |
1237 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1238 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1239 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1240 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1241 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
c0de73ae RD |
1242 | |
1243 | #include <wx/quantize.h> | |
1244 | ||
1245 | bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours,int flags){ | |
1246 | return wxQuantize::Quantize(src, dest, | |
1247 | //NULL, // palette | |
1248 | desiredNoColours, | |
1249 | NULL, // eightBitData | |
1250 | flags); | |
1251 | } | |
d55e5bfc RD |
1252 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ |
1253 | if (PyCallable_Check(func)) { | |
1254 | self->Connect(id, lastId, eventType, | |
1255 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1256 | new wxPyCallback(func)); | |
1257 | } | |
1258 | else if (func == Py_None) { | |
1259 | self->Disconnect(id, lastId, eventType, | |
1260 | (wxObjectEventFunction) | |
1261 | &wxPyCallback::EventThunker); | |
1262 | } | |
1263 | else { | |
1264 | wxPyBLOCK_THREADS( | |
1265 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
1266 | } | |
1267 | } | |
1268 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1269 | return self->Disconnect(id, lastId, eventType, | |
1270 | (wxObjectEventFunction) | |
1271 | &wxPyCallback::EventThunker); | |
1272 | } | |
1273 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1274 | if (_self && _self != Py_None) { | |
1275 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1276 | } | |
1277 | else { | |
1278 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1279 | if (data) { | |
1280 | self->SetClientObject(NULL); // This will delete it too | |
1281 | } | |
1282 | } | |
1283 | } | |
19272049 | 1284 | int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){ |
d55e5bfc | 1285 | #if wxUSE_UNICODE |
19272049 | 1286 | return self->GetUnicodeKey(); |
d55e5bfc RD |
1287 | #else |
1288 | return 0; | |
1289 | #endif | |
1290 | } | |
1291 | ||
1292 | #if UINT_MAX < LONG_MAX | |
1293 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1294 | #else | |
1295 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1296 | #endif | |
1297 | ||
1298 | ||
1299 | #if UINT_MAX != ULONG_MAX | |
1300 | SWIGSTATICINLINE(unsigned int) | |
1301 | SWIG_AsUnsignedInt(PyObject *obj) | |
1302 | { | |
1303 | return swig_numeric_cast(unsigned int, | |
1304 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1305 | "unsigned int", UINT_MAX)); | |
1306 | } | |
1307 | #else | |
1308 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
1309 | #endif | |
1310 | ||
1311 | ||
1312 | SWIGSTATICINLINE(int) | |
1313 | SWIG_CheckUnsignedInt(PyObject* obj) | |
1314 | { | |
1315 | SWIG_AsUnsignedInt(obj); | |
1316 | if (PyErr_Occurred()) { | |
1317 | PyErr_Clear(); | |
1318 | return 0; | |
1319 | } else { | |
1320 | return 1; | |
1321 | } | |
1322 | } | |
1323 | ||
1324 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ | |
1325 | self->m_size = size; | |
1326 | } | |
1327 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1328 | self->m_pos = pos; | |
1329 | } | |
1330 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1331 | int count = self->GetNumberOfFiles(); | |
1332 | wxString* files = self->GetFiles(); | |
1333 | PyObject* list = PyList_New(count); | |
1334 | ||
1335 | if (!list) { | |
1336 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1337 | return NULL; | |
1338 | } | |
1339 | ||
1340 | for (int i=0; i<count; i++) { | |
1341 | PyList_SetItem(list, i, wx2PyString(files[i])); | |
1342 | } | |
1343 | return list; | |
1344 | } | |
1345 | ||
1346 | ||
1347 | wxPyApp *new_wxPyApp(){ | |
1348 | wxPythonApp = new wxPyApp(); | |
1349 | return wxPythonApp; | |
1350 | } | |
1351 | ||
1352 | void wxApp_CleanUp() { | |
1353 | __wxPyCleanup(); | |
1354 | } | |
1355 | ||
1356 | ||
caef1a4d | 1357 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d55e5bfc RD |
1358 | |
1359 | ||
1360 | ||
1361 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1362 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } | |
f20a2e1f | 1363 | void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } |
d55e5bfc RD |
1364 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1365 | wxWindowList& list = self->GetChildren(); | |
1366 | return wxPy_ConvertList(&list); | |
1367 | } | |
1368 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1369 | #if wxUSE_HOTKEY | |
1370 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1371 | #else | |
1372 | return False; | |
1373 | #endif | |
1374 | } | |
1375 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1376 | ||
1377 | ||
1378 | ||
1379 | return False; | |
1380 | ||
1381 | } | |
1382 | long wxWindow_GetHandle(wxWindow *self){ | |
1383 | return wxPyGetWinHandle(self); | |
1384 | } | |
1385 | ||
1386 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1387 | return wxWindow::FindWindowById(id, parent); | |
1388 | } | |
1389 | ||
1390 | wxWindow* wxFindWindowByName( const wxString& name, | |
1391 | const wxWindow *parent = NULL ) { | |
1392 | return wxWindow::FindWindowByName(name, parent); | |
1393 | } | |
1394 | ||
1395 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1396 | const wxWindow *parent = NULL ) { | |
1397 | return wxWindow::FindWindowByLabel(label, parent); | |
1398 | } | |
1399 | ||
1400 | ||
1401 | #ifdef __WXMSW__ | |
1402 | #include <wx/msw/private.h> // to get wxGetWindowId | |
1403 | #endif | |
1404 | ||
1405 | ||
1406 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1407 | #ifdef __WXMSW__ | |
1408 | WXHWND hWnd = (WXHWND)_hWnd; | |
1409 | long id = wxGetWindowId(hWnd); | |
1410 | wxWindow* win = new wxWindow; | |
1411 | parent->AddChild(win); | |
1412 | win->SetEventHandler(win); | |
1413 | win->SetHWND(hWnd); | |
1414 | win->SetId(id); | |
1415 | win->SubclassWin(hWnd); | |
1416 | win->AdoptAttributesFromHWND(); | |
1417 | win->SetupColours(); | |
1418 | return win; | |
1419 | #else | |
1420 | wxPyRaiseNotImplemented(); | |
1421 | return NULL; | |
1422 | #endif | |
1423 | } | |
1424 | ||
1425 | ||
1426 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1427 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1428 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1429 | ||
1430 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1431 | ||
1432 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1433 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1434 | wxMenuItemList& list = self->GetMenuItems(); | |
1435 | return wxPy_ConvertList(&list); | |
1436 | } | |
1437 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1438 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ | |
1439 | if (clientData) { | |
1440 | wxPyClientData* data = new wxPyClientData(clientData); | |
1441 | return self->Append(item, data); | |
1442 | } else | |
1443 | return self->Append(item); | |
1444 | } | |
1445 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1446 | if (clientData) { | |
1447 | wxPyClientData* data = new wxPyClientData(clientData); | |
1448 | return self->Insert(item, pos, data); | |
1449 | } else | |
1450 | return self->Insert(item, pos); | |
1451 | } | |
1452 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1453 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1454 | if (data) { | |
1455 | Py_INCREF(data->m_obj); | |
1456 | return data->m_obj; | |
1457 | } else { | |
1458 | Py_INCREF(Py_None); | |
1459 | return Py_None; | |
1460 | } | |
1461 | } | |
1462 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1463 | wxPyClientData* data = new wxPyClientData(clientData); | |
1464 | self->SetClientObject(n, data); | |
1465 | } | |
1466 | ||
1467 | ||
248ed943 RD |
1468 | wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData){ |
1469 | wxPyUserData* data = NULL; | |
1470 | if ( userData ) { | |
1471 | bool blocked = wxPyBeginBlockThreads(); | |
1472 | data = new wxPyUserData(userData); | |
1473 | wxPyEndBlockThreads(blocked); | |
1474 | } | |
1475 | return new wxSizerItem(window, proportion, flag, border, data); | |
1476 | } | |
1477 | wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData){ | |
1478 | wxPyUserData* data = NULL; | |
1479 | if ( userData ) { | |
1480 | bool blocked = wxPyBeginBlockThreads(); | |
1481 | data = new wxPyUserData(userData); | |
1482 | wxPyEndBlockThreads(blocked); | |
1483 | } | |
1484 | return new wxSizerItem(width, height, proportion, flag, border, data); | |
1485 | } | |
1486 | wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData){ | |
1487 | wxPyUserData* data = NULL; | |
1488 | if ( userData ) { | |
1489 | bool blocked = wxPyBeginBlockThreads(); | |
1490 | data = new wxPyUserData(userData); | |
1491 | wxPyEndBlockThreads(blocked); | |
1492 | } | |
1493 | return new wxSizerItem(sizer, proportion, flag, border, data); | |
1494 | } | |
d55e5bfc RD |
1495 | |
1496 | #include <float.h> | |
1497 | ||
1498 | SWIGSTATIC(float) | |
1499 | SWIG_FloatCast(double value) | |
1500 | { | |
1501 | float f = 0; | |
1502 | if (!PyErr_Occurred()) { | |
1503 | if (value < FLT_MIN) { | |
1504 | PyObject *err = | |
1505 | PyString_FromFormat("value %g is less than float minimum %g", | |
1506 | value, FLT_MIN); | |
1507 | PyErr_SetObject(PyExc_OverflowError, err); | |
1508 | Py_DECREF(err); | |
1509 | } else if (value > FLT_MAX) { | |
1510 | PyObject *err = | |
1511 | PyString_FromFormat("value %g is greater than float maximum %g", | |
1512 | value, FLT_MAX); | |
1513 | PyErr_SetObject(PyExc_OverflowError, err); | |
1514 | Py_DECREF(err); | |
1515 | } else { | |
1516 | f = swig_numeric_cast(float, value); | |
1517 | } | |
1518 | } | |
1519 | return f; | |
1520 | } | |
1521 | ||
1522 | ||
1523 | SWIGSTATICINLINE(float) | |
1524 | SWIG_AsFloat(PyObject *obj) | |
1525 | { | |
1526 | return SWIG_FloatCast(SWIG_AsDouble(obj)); | |
1527 | } | |
1528 | ||
1529 | ||
1530 | SWIGSTATICINLINE(int) | |
1531 | SWIG_CheckFloat(PyObject* obj) | |
1532 | { | |
1533 | SWIG_AsFloat(obj); | |
1534 | if (PyErr_Occurred()) { | |
1535 | PyErr_Clear(); | |
1536 | return 0; | |
1537 | } else { | |
1538 | return 1; | |
1539 | } | |
1540 | } | |
1541 | ||
1542 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
1543 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1544 | if (data) { | |
1545 | Py_INCREF(data->m_obj); | |
1546 | return data->m_obj; | |
1547 | } else { | |
1548 | Py_INCREF(Py_None); | |
1549 | return Py_None; | |
1550 | } | |
1551 | } | |
1552 | ||
1553 | // Figure out the type of the sizer item | |
1554 | ||
1555 | struct wxPySizerItemInfo { | |
1556 | wxPySizerItemInfo() | |
1557 | : window(NULL), sizer(NULL), gotSize(False), | |
1558 | size(wxDefaultSize), gotPos(False), pos(-1) | |
1559 | {} | |
1560 | ||
1561 | wxWindow* window; | |
1562 | wxSizer* sizer; | |
1563 | bool gotSize; | |
1564 | wxSize size; | |
1565 | bool gotPos; | |
1566 | int pos; | |
1567 | }; | |
1568 | ||
1569 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1570 | ||
1571 | wxPySizerItemInfo info; | |
1572 | wxSize size; | |
1573 | wxSize* sizePtr = &size; | |
1574 | ||
1575 | // Find out what the type of the item is | |
1576 | // try wxWindow | |
1577 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1578 | PyErr_Clear(); | |
1579 | info.window = NULL; | |
1580 | ||
1581 | // try wxSizer | |
1582 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1583 | PyErr_Clear(); | |
1584 | info.sizer = NULL; | |
1585 | ||
1586 | // try wxSize or (w,h) | |
1587 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1588 | info.size = *sizePtr; | |
1589 | info.gotSize = True; | |
1590 | } | |
1591 | ||
1592 | // or a single int | |
1593 | if (checkIdx && PyInt_Check(item)) { | |
1594 | info.pos = PyInt_AsLong(item); | |
1595 | info.gotPos = True; | |
1596 | } | |
1597 | } | |
1598 | } | |
1599 | ||
1600 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1601 | // no expected type, figure out what kind of error message to generate | |
1602 | if ( !checkSize && !checkIdx ) | |
1603 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1604 | else if ( checkSize && !checkIdx ) | |
1605 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1606 | else if ( !checkSize && checkIdx) | |
1607 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1608 | else | |
1609 | // can this one happen? | |
1610 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1611 | } | |
1612 | ||
1613 | return info; | |
1614 | } | |
1615 | ||
1616 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
b0f7404b RD |
1617 | if (!self->GetClientObject()) |
1618 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d55e5bfc RD |
1619 | } |
1620 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1621 | ||
1622 | wxPyUserData* data = NULL; | |
1623 | bool blocked = wxPyBeginBlockThreads(); | |
1624 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1625 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1626 | data = new wxPyUserData(userData); | |
1627 | wxPyEndBlockThreads(blocked); | |
1628 | ||
1629 | // Now call the real Add method if a valid item type was found | |
1630 | if ( info.window ) | |
1631 | self->Add(info.window, proportion, flag, border, data); | |
1632 | else if ( info.sizer ) | |
1633 | self->Add(info.sizer, proportion, flag, border, data); | |
1634 | else if (info.gotSize) | |
1635 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1636 | proportion, flag, border, data); | |
1637 | } | |
1638 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1639 | ||
1640 | wxPyUserData* data = NULL; | |
1641 | bool blocked = wxPyBeginBlockThreads(); | |
1642 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1643 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1644 | data = new wxPyUserData(userData); | |
1645 | wxPyEndBlockThreads(blocked); | |
1646 | ||
1647 | // Now call the real Insert method if a valid item type was found | |
1648 | if ( info.window ) | |
1649 | self->Insert(before, info.window, proportion, flag, border, data); | |
1650 | else if ( info.sizer ) | |
1651 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1652 | else if (info.gotSize) | |
1653 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1654 | proportion, flag, border, data); | |
1655 | } | |
1656 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1657 | ||
1658 | wxPyUserData* data = NULL; | |
1659 | bool blocked = wxPyBeginBlockThreads(); | |
1660 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1661 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1662 | data = new wxPyUserData(userData); | |
1663 | wxPyEndBlockThreads(blocked); | |
1664 | ||
1665 | // Now call the real Prepend method if a valid item type was found | |
1666 | if ( info.window ) | |
1667 | self->Prepend(info.window, proportion, flag, border, data); | |
1668 | else if ( info.sizer ) | |
1669 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1670 | else if (info.gotSize) | |
1671 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1672 | proportion, flag, border, data); | |
1673 | } | |
1674 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1675 | bool blocked = wxPyBeginBlockThreads(); | |
1676 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); | |
1677 | wxPyEndBlockThreads(blocked); | |
1678 | if ( info.window ) | |
1679 | return self->Remove(info.window); | |
1680 | else if ( info.sizer ) | |
1681 | return self->Remove(info.sizer); | |
1682 | else if ( info.gotPos ) | |
1683 | return self->Remove(info.pos); | |
1684 | else | |
1685 | return False; | |
1686 | } | |
1a6bba1e RD |
1687 | bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
1688 | bool blocked = wxPyBeginBlockThreads(); | |
1689 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); | |
1690 | wxPyEndBlockThreads(blocked); | |
1691 | if ( info.window ) | |
1692 | return self->Detach(info.window); | |
1693 | else if ( info.sizer ) | |
1694 | return self->Detach(info.sizer); | |
1695 | else if ( info.gotPos ) | |
1696 | return self->Detach(info.pos); | |
1697 | else | |
1698 | return False; | |
1699 | } | |
d55e5bfc RD |
1700 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
1701 | bool blocked = wxPyBeginBlockThreads(); | |
1702 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); | |
1703 | wxPyEndBlockThreads(blocked); | |
1704 | if ( info.window ) | |
1705 | self->SetItemMinSize(info.window, size); | |
1706 | else if ( info.sizer ) | |
1707 | self->SetItemMinSize(info.sizer, size); | |
1708 | else if ( info.gotPos ) | |
1709 | self->SetItemMinSize(info.pos, size); | |
1710 | } | |
1711 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1712 | wxSizerItemList& list = self->GetChildren(); | |
1713 | return wxPy_ConvertList(&list); | |
1714 | } | |
1715 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
c24da6d6 | 1716 | bool blocked = wxPyBeginBlockThreads(); |
248ed943 | 1717 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
c24da6d6 | 1718 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1719 | if ( info.window ) |
1720 | self->Show(info.window, show); | |
1721 | else if ( info.sizer ) | |
1722 | self->Show(info.sizer, show); | |
248ed943 RD |
1723 | else if ( info.gotPos ) |
1724 | self->Show(info.pos, show); | |
d55e5bfc RD |
1725 | } |
1726 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
c24da6d6 | 1727 | bool blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 1728 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
c24da6d6 | 1729 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1730 | if ( info.window ) |
1731 | return self->IsShown(info.window); | |
1732 | else if ( info.sizer ) | |
1733 | return self->IsShown(info.sizer); | |
248ed943 RD |
1734 | else if ( info.gotPos ) |
1735 | return self->IsShown(info.pos); | |
d55e5bfc RD |
1736 | else |
1737 | return False; | |
1738 | } | |
1739 | ||
1740 | // See pyclasses.h | |
1741 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1742 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1743 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1744 | ||
1745 | ||
1746 | ||
1747 | ||
1748 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1749 | { | |
1750 | if (source == Py_None) { | |
1751 | **obj = wxGBPosition(-1,-1); | |
1752 | return True; | |
1753 | } | |
1754 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1755 | } | |
1756 | ||
1757 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1758 | { | |
1759 | if (source == Py_None) { | |
1760 | **obj = wxGBSpan(-1,-1); | |
1761 | return True; | |
1762 | } | |
1763 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1764 | } | |
1765 | ||
1766 | ||
1767 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ | |
1768 | self->SetRow(row); | |
1769 | self->SetCol(col); | |
1770 | } | |
1771 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
1772 | bool blocked = wxPyBeginBlockThreads(); | |
1773 | PyObject* tup = PyTuple_New(2); | |
1774 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1775 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1776 | wxPyEndBlockThreads(blocked); | |
1777 | return tup; | |
1778 | } | |
1779 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ | |
1780 | self->SetRowspan(rowspan); | |
1781 | self->SetColspan(colspan); | |
1782 | } | |
1783 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
1784 | bool blocked = wxPyBeginBlockThreads(); | |
1785 | PyObject* tup = PyTuple_New(2); | |
1786 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1787 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
1788 | wxPyEndBlockThreads(blocked); | |
1789 | return tup; | |
1790 | } | |
248ed943 RD |
1791 | wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
1792 | wxPyUserData* data = NULL; | |
1793 | if ( userData ) { | |
1794 | bool blocked = wxPyBeginBlockThreads(); | |
1795 | data = new wxPyUserData(userData); | |
1796 | wxPyEndBlockThreads(blocked); | |
1797 | } | |
1798 | return new wxGBSizerItem(window, pos, span, flag, border, data); | |
1799 | } | |
1800 | wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1801 | wxPyUserData* data = NULL; | |
1802 | if ( userData ) { | |
1803 | bool blocked = wxPyBeginBlockThreads(); | |
1804 | data = new wxPyUserData(userData); | |
1805 | wxPyEndBlockThreads(blocked); | |
1806 | } | |
1807 | return new wxGBSizerItem(sizer, pos, span, flag, border, data); | |
1808 | } | |
1809 | wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1810 | wxPyUserData* data = NULL; | |
1811 | if ( userData ) { | |
1812 | bool blocked = wxPyBeginBlockThreads(); | |
1813 | data = new wxPyUserData(userData); | |
1814 | wxPyEndBlockThreads(blocked); | |
1815 | } | |
1816 | return new wxGBSizerItem(width, height, pos, span, flag, border, data); | |
1817 | } | |
1818 | wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){ | |
1819 | int row, col; | |
1820 | self->GetEndPos(row, col); | |
1821 | return wxGBPosition(row, col); | |
1822 | } | |
d55e5bfc RD |
1823 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
1824 | ||
1825 | wxPyUserData* data = NULL; | |
1826 | bool blocked = wxPyBeginBlockThreads(); | |
1827 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1828 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1829 | data = new wxPyUserData(userData); | |
1830 | wxPyEndBlockThreads(blocked); | |
1831 | ||
1832 | // Now call the real Add method if a valid item type was found | |
1833 | if ( info.window ) | |
1834 | return self->Add(info.window, pos, span, flag, border, data); | |
1835 | else if ( info.sizer ) | |
1836 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1837 | else if (info.gotSize) | |
1838 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1839 | pos, span, flag, border, data); | |
1840 | return False; | |
1841 | } | |
1842 | ||
1843 | ||
1844 | #ifdef __cplusplus | |
1845 | extern "C" { | |
1846 | #endif | |
1847 | static int _wrap_EmptyString_set(PyObject *_val) { | |
1848 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); | |
1849 | return 1; | |
1850 | } | |
1851 | ||
1852 | ||
1853 | static PyObject *_wrap_EmptyString_get() { | |
1854 | PyObject *pyobj; | |
1855 | ||
1856 | { | |
1857 | #if wxUSE_UNICODE | |
1858 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1859 | #else | |
1860 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1861 | #endif | |
1862 | } | |
1863 | return pyobj; | |
1864 | } | |
1865 | ||
1866 | ||
1867 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1868 | PyObject *resultobj; | |
1869 | wxObject *arg1 = (wxObject *) 0 ; | |
1870 | wxString result; | |
1871 | PyObject * obj0 = 0 ; | |
1872 | char *kwnames[] = { | |
1873 | (char *) "self", NULL | |
1874 | }; | |
1875 | ||
1876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
1877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
1878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1879 | { | |
1880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1881 | result = wxObject_GetClassName(arg1); | |
1882 | ||
1883 | wxPyEndAllowThreads(__tstate); | |
1884 | if (PyErr_Occurred()) SWIG_fail; | |
1885 | } | |
1886 | { | |
1887 | #if wxUSE_UNICODE | |
1888 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1889 | #else | |
1890 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1891 | #endif | |
1892 | } | |
1893 | return resultobj; | |
1894 | fail: | |
1895 | return NULL; | |
1896 | } | |
1897 | ||
1898 | ||
1899 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1900 | PyObject *resultobj; | |
1901 | wxObject *arg1 = (wxObject *) 0 ; | |
1902 | PyObject * obj0 = 0 ; | |
1903 | char *kwnames[] = { | |
1904 | (char *) "self", NULL | |
1905 | }; | |
1906 | ||
1907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
1908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
1909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1910 | { | |
1911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1912 | wxObject_Destroy(arg1); | |
1913 | ||
1914 | wxPyEndAllowThreads(__tstate); | |
1915 | if (PyErr_Occurred()) SWIG_fail; | |
1916 | } | |
1917 | Py_INCREF(Py_None); resultobj = Py_None; | |
1918 | return resultobj; | |
1919 | fail: | |
1920 | return NULL; | |
1921 | } | |
1922 | ||
1923 | ||
1924 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1925 | PyObject *obj; | |
1926 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1927 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1928 | Py_INCREF(obj); | |
1929 | return Py_BuildValue((char *)""); | |
1930 | } | |
1931 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1932 | PyObject *resultobj; | |
1933 | wxSize *arg1 = (wxSize *) 0 ; | |
1934 | int arg2 ; | |
1935 | PyObject * obj0 = 0 ; | |
1936 | PyObject * obj1 = 0 ; | |
1937 | char *kwnames[] = { | |
1938 | (char *) "self",(char *) "x", NULL | |
1939 | }; | |
1940 | ||
1941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; | |
1942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1944 | arg2 = (int) SWIG_AsInt(obj1); | |
1945 | if (PyErr_Occurred()) SWIG_fail; | |
1946 | if (arg1) (arg1)->x = arg2; | |
1947 | ||
1948 | Py_INCREF(Py_None); resultobj = Py_None; | |
1949 | return resultobj; | |
1950 | fail: | |
1951 | return NULL; | |
1952 | } | |
1953 | ||
1954 | ||
1955 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1956 | PyObject *resultobj; | |
1957 | wxSize *arg1 = (wxSize *) 0 ; | |
1958 | int result; | |
1959 | PyObject * obj0 = 0 ; | |
1960 | char *kwnames[] = { | |
1961 | (char *) "self", NULL | |
1962 | }; | |
1963 | ||
1964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
1965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1967 | result = (int) ((arg1)->x); | |
1968 | ||
1969 | resultobj = SWIG_FromInt((int)result); | |
1970 | return resultobj; | |
1971 | fail: | |
1972 | return NULL; | |
1973 | } | |
1974 | ||
1975 | ||
1976 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1977 | PyObject *resultobj; | |
1978 | wxSize *arg1 = (wxSize *) 0 ; | |
1979 | int arg2 ; | |
1980 | PyObject * obj0 = 0 ; | |
1981 | PyObject * obj1 = 0 ; | |
1982 | char *kwnames[] = { | |
1983 | (char *) "self",(char *) "y", NULL | |
1984 | }; | |
1985 | ||
1986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; | |
1987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1989 | arg2 = (int) SWIG_AsInt(obj1); | |
1990 | if (PyErr_Occurred()) SWIG_fail; | |
1991 | if (arg1) (arg1)->y = arg2; | |
1992 | ||
1993 | Py_INCREF(Py_None); resultobj = Py_None; | |
1994 | return resultobj; | |
1995 | fail: | |
1996 | return NULL; | |
1997 | } | |
1998 | ||
1999 | ||
2000 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2001 | PyObject *resultobj; | |
2002 | wxSize *arg1 = (wxSize *) 0 ; | |
2003 | int result; | |
2004 | PyObject * obj0 = 0 ; | |
2005 | char *kwnames[] = { | |
2006 | (char *) "self", NULL | |
2007 | }; | |
2008 | ||
2009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
2010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2012 | result = (int) ((arg1)->y); | |
2013 | ||
2014 | resultobj = SWIG_FromInt((int)result); | |
2015 | return resultobj; | |
2016 | fail: | |
2017 | return NULL; | |
2018 | } | |
2019 | ||
2020 | ||
2021 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2022 | PyObject *resultobj; | |
2023 | int arg1 = (int) 0 ; | |
2024 | int arg2 = (int) 0 ; | |
2025 | wxSize *result; | |
2026 | PyObject * obj0 = 0 ; | |
2027 | PyObject * obj1 = 0 ; | |
2028 | char *kwnames[] = { | |
2029 | (char *) "w",(char *) "h", NULL | |
2030 | }; | |
2031 | ||
2032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; | |
2033 | if (obj0) { | |
2034 | arg1 = (int) SWIG_AsInt(obj0); | |
2035 | if (PyErr_Occurred()) SWIG_fail; | |
2036 | } | |
2037 | if (obj1) { | |
2038 | arg2 = (int) SWIG_AsInt(obj1); | |
2039 | if (PyErr_Occurred()) SWIG_fail; | |
2040 | } | |
2041 | { | |
2042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2043 | result = (wxSize *)new wxSize(arg1,arg2); | |
2044 | ||
2045 | wxPyEndAllowThreads(__tstate); | |
2046 | if (PyErr_Occurred()) SWIG_fail; | |
2047 | } | |
2048 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); | |
2049 | return resultobj; | |
2050 | fail: | |
2051 | return NULL; | |
2052 | } | |
2053 | ||
2054 | ||
2055 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2056 | PyObject *resultobj; | |
2057 | wxSize *arg1 = (wxSize *) 0 ; | |
2058 | PyObject * obj0 = 0 ; | |
2059 | char *kwnames[] = { | |
2060 | (char *) "self", NULL | |
2061 | }; | |
2062 | ||
2063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
2064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2066 | { | |
2067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2068 | delete arg1; | |
2069 | ||
2070 | wxPyEndAllowThreads(__tstate); | |
2071 | if (PyErr_Occurred()) SWIG_fail; | |
2072 | } | |
2073 | Py_INCREF(Py_None); resultobj = Py_None; | |
2074 | return resultobj; | |
2075 | fail: | |
2076 | return NULL; | |
2077 | } | |
2078 | ||
2079 | ||
2080 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2081 | PyObject *resultobj; | |
2082 | wxSize *arg1 = (wxSize *) 0 ; | |
2083 | wxSize *arg2 = 0 ; | |
2084 | bool result; | |
2085 | wxSize temp2 ; | |
2086 | PyObject * obj0 = 0 ; | |
2087 | PyObject * obj1 = 0 ; | |
2088 | char *kwnames[] = { | |
2089 | (char *) "self",(char *) "sz", NULL | |
2090 | }; | |
2091 | ||
2092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2095 | { | |
2096 | arg2 = &temp2; | |
2097 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2098 | } | |
2099 | { | |
2100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2101 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); | |
2102 | ||
2103 | wxPyEndAllowThreads(__tstate); | |
2104 | if (PyErr_Occurred()) SWIG_fail; | |
2105 | } | |
2106 | { | |
2107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2108 | } | |
2109 | return resultobj; | |
2110 | fail: | |
2111 | return NULL; | |
2112 | } | |
2113 | ||
2114 | ||
2115 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2116 | PyObject *resultobj; | |
2117 | wxSize *arg1 = (wxSize *) 0 ; | |
2118 | wxSize *arg2 = 0 ; | |
2119 | bool result; | |
2120 | wxSize temp2 ; | |
2121 | PyObject * obj0 = 0 ; | |
2122 | PyObject * obj1 = 0 ; | |
2123 | char *kwnames[] = { | |
2124 | (char *) "self",(char *) "sz", NULL | |
2125 | }; | |
2126 | ||
2127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2130 | { | |
2131 | arg2 = &temp2; | |
2132 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2133 | } | |
2134 | { | |
2135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2136 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); | |
2137 | ||
2138 | wxPyEndAllowThreads(__tstate); | |
2139 | if (PyErr_Occurred()) SWIG_fail; | |
2140 | } | |
2141 | { | |
2142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2143 | } | |
2144 | return resultobj; | |
2145 | fail: | |
2146 | return NULL; | |
2147 | } | |
2148 | ||
2149 | ||
2150 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2151 | PyObject *resultobj; | |
2152 | wxSize *arg1 = (wxSize *) 0 ; | |
2153 | wxSize *arg2 = 0 ; | |
2154 | wxSize result; | |
2155 | wxSize temp2 ; | |
2156 | PyObject * obj0 = 0 ; | |
2157 | PyObject * obj1 = 0 ; | |
2158 | char *kwnames[] = { | |
2159 | (char *) "self",(char *) "sz", NULL | |
2160 | }; | |
2161 | ||
2162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2165 | { | |
2166 | arg2 = &temp2; | |
2167 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2168 | } | |
2169 | { | |
2170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2171 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2172 | ||
2173 | wxPyEndAllowThreads(__tstate); | |
2174 | if (PyErr_Occurred()) SWIG_fail; | |
2175 | } | |
2176 | { | |
2177 | wxSize * resultptr; | |
2178 | resultptr = new wxSize((wxSize &) result); | |
2179 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2180 | } | |
2181 | return resultobj; | |
2182 | fail: | |
2183 | return NULL; | |
2184 | } | |
2185 | ||
2186 | ||
2187 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2188 | PyObject *resultobj; | |
2189 | wxSize *arg1 = (wxSize *) 0 ; | |
2190 | wxSize *arg2 = 0 ; | |
2191 | wxSize result; | |
2192 | wxSize temp2 ; | |
2193 | PyObject * obj0 = 0 ; | |
2194 | PyObject * obj1 = 0 ; | |
2195 | char *kwnames[] = { | |
2196 | (char *) "self",(char *) "sz", NULL | |
2197 | }; | |
2198 | ||
2199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2202 | { | |
2203 | arg2 = &temp2; | |
2204 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2205 | } | |
2206 | { | |
2207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2208 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2209 | ||
2210 | wxPyEndAllowThreads(__tstate); | |
2211 | if (PyErr_Occurred()) SWIG_fail; | |
2212 | } | |
2213 | { | |
2214 | wxSize * resultptr; | |
2215 | resultptr = new wxSize((wxSize &) result); | |
2216 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2217 | } | |
2218 | return resultobj; | |
2219 | fail: | |
2220 | return NULL; | |
2221 | } | |
2222 | ||
2223 | ||
2224 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2225 | PyObject *resultobj; | |
2226 | wxSize *arg1 = (wxSize *) 0 ; | |
2227 | wxSize *arg2 = 0 ; | |
2228 | wxSize temp2 ; | |
2229 | PyObject * obj0 = 0 ; | |
2230 | PyObject * obj1 = 0 ; | |
2231 | char *kwnames[] = { | |
2232 | (char *) "self",(char *) "sz", NULL | |
2233 | }; | |
2234 | ||
2235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2238 | { | |
2239 | arg2 = &temp2; | |
2240 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2241 | } | |
2242 | { | |
2243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2244 | (arg1)->IncTo((wxSize const &)*arg2); | |
2245 | ||
2246 | wxPyEndAllowThreads(__tstate); | |
2247 | if (PyErr_Occurred()) SWIG_fail; | |
2248 | } | |
2249 | Py_INCREF(Py_None); resultobj = Py_None; | |
2250 | return resultobj; | |
2251 | fail: | |
2252 | return NULL; | |
2253 | } | |
2254 | ||
2255 | ||
2256 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2257 | PyObject *resultobj; | |
2258 | wxSize *arg1 = (wxSize *) 0 ; | |
2259 | wxSize *arg2 = 0 ; | |
2260 | wxSize temp2 ; | |
2261 | PyObject * obj0 = 0 ; | |
2262 | PyObject * obj1 = 0 ; | |
2263 | char *kwnames[] = { | |
2264 | (char *) "self",(char *) "sz", NULL | |
2265 | }; | |
2266 | ||
2267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2270 | { | |
2271 | arg2 = &temp2; | |
2272 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2273 | } | |
2274 | { | |
2275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2276 | (arg1)->DecTo((wxSize const &)*arg2); | |
2277 | ||
2278 | wxPyEndAllowThreads(__tstate); | |
2279 | if (PyErr_Occurred()) SWIG_fail; | |
2280 | } | |
2281 | Py_INCREF(Py_None); resultobj = Py_None; | |
2282 | return resultobj; | |
2283 | fail: | |
2284 | return NULL; | |
2285 | } | |
2286 | ||
2287 | ||
2288 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2289 | PyObject *resultobj; | |
2290 | wxSize *arg1 = (wxSize *) 0 ; | |
2291 | int arg2 ; | |
2292 | int arg3 ; | |
2293 | PyObject * obj0 = 0 ; | |
2294 | PyObject * obj1 = 0 ; | |
2295 | PyObject * obj2 = 0 ; | |
2296 | char *kwnames[] = { | |
2297 | (char *) "self",(char *) "w",(char *) "h", NULL | |
2298 | }; | |
2299 | ||
2300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2303 | arg2 = (int) SWIG_AsInt(obj1); | |
2304 | if (PyErr_Occurred()) SWIG_fail; | |
2305 | arg3 = (int) SWIG_AsInt(obj2); | |
2306 | if (PyErr_Occurred()) SWIG_fail; | |
2307 | { | |
2308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2309 | (arg1)->Set(arg2,arg3); | |
2310 | ||
2311 | wxPyEndAllowThreads(__tstate); | |
2312 | if (PyErr_Occurred()) SWIG_fail; | |
2313 | } | |
2314 | Py_INCREF(Py_None); resultobj = Py_None; | |
2315 | return resultobj; | |
2316 | fail: | |
2317 | return NULL; | |
2318 | } | |
2319 | ||
2320 | ||
2321 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2322 | PyObject *resultobj; | |
2323 | wxSize *arg1 = (wxSize *) 0 ; | |
2324 | int arg2 ; | |
2325 | PyObject * obj0 = 0 ; | |
2326 | PyObject * obj1 = 0 ; | |
2327 | char *kwnames[] = { | |
2328 | (char *) "self",(char *) "w", NULL | |
2329 | }; | |
2330 | ||
2331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2334 | arg2 = (int) SWIG_AsInt(obj1); | |
2335 | if (PyErr_Occurred()) SWIG_fail; | |
2336 | { | |
2337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2338 | (arg1)->SetWidth(arg2); | |
2339 | ||
2340 | wxPyEndAllowThreads(__tstate); | |
2341 | if (PyErr_Occurred()) SWIG_fail; | |
2342 | } | |
2343 | Py_INCREF(Py_None); resultobj = Py_None; | |
2344 | return resultobj; | |
2345 | fail: | |
2346 | return NULL; | |
2347 | } | |
2348 | ||
2349 | ||
2350 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2351 | PyObject *resultobj; | |
2352 | wxSize *arg1 = (wxSize *) 0 ; | |
2353 | int arg2 ; | |
2354 | PyObject * obj0 = 0 ; | |
2355 | PyObject * obj1 = 0 ; | |
2356 | char *kwnames[] = { | |
2357 | (char *) "self",(char *) "h", NULL | |
2358 | }; | |
2359 | ||
2360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
2361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2363 | arg2 = (int) SWIG_AsInt(obj1); | |
2364 | if (PyErr_Occurred()) SWIG_fail; | |
2365 | { | |
2366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2367 | (arg1)->SetHeight(arg2); | |
2368 | ||
2369 | wxPyEndAllowThreads(__tstate); | |
2370 | if (PyErr_Occurred()) SWIG_fail; | |
2371 | } | |
2372 | Py_INCREF(Py_None); resultobj = Py_None; | |
2373 | return resultobj; | |
2374 | fail: | |
2375 | return NULL; | |
2376 | } | |
2377 | ||
2378 | ||
2379 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2380 | PyObject *resultobj; | |
2381 | wxSize *arg1 = (wxSize *) 0 ; | |
2382 | int result; | |
2383 | PyObject * obj0 = 0 ; | |
2384 | char *kwnames[] = { | |
2385 | (char *) "self", NULL | |
2386 | }; | |
2387 | ||
2388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2391 | { | |
2392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2393 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2394 | ||
2395 | wxPyEndAllowThreads(__tstate); | |
2396 | if (PyErr_Occurred()) SWIG_fail; | |
2397 | } | |
2398 | resultobj = SWIG_FromInt((int)result); | |
2399 | return resultobj; | |
2400 | fail: | |
2401 | return NULL; | |
2402 | } | |
2403 | ||
2404 | ||
2405 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2406 | PyObject *resultobj; | |
2407 | wxSize *arg1 = (wxSize *) 0 ; | |
2408 | int result; | |
2409 | PyObject * obj0 = 0 ; | |
2410 | char *kwnames[] = { | |
2411 | (char *) "self", NULL | |
2412 | }; | |
2413 | ||
2414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2417 | { | |
2418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2419 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2420 | ||
2421 | wxPyEndAllowThreads(__tstate); | |
2422 | if (PyErr_Occurred()) SWIG_fail; | |
2423 | } | |
2424 | resultobj = SWIG_FromInt((int)result); | |
2425 | return resultobj; | |
2426 | fail: | |
2427 | return NULL; | |
2428 | } | |
2429 | ||
2430 | ||
2431 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2432 | PyObject *resultobj; | |
2433 | wxSize *arg1 = (wxSize *) 0 ; | |
2434 | bool result; | |
2435 | PyObject * obj0 = 0 ; | |
2436 | char *kwnames[] = { | |
2437 | (char *) "self", NULL | |
2438 | }; | |
2439 | ||
2440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2443 | { | |
2444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2445 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2446 | ||
2447 | wxPyEndAllowThreads(__tstate); | |
2448 | if (PyErr_Occurred()) SWIG_fail; | |
2449 | } | |
2450 | { | |
2451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2452 | } | |
2453 | return resultobj; | |
2454 | fail: | |
2455 | return NULL; | |
2456 | } | |
2457 | ||
2458 | ||
2459 | static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2460 | PyObject *resultobj; | |
2461 | wxSize *arg1 = (wxSize *) 0 ; | |
2462 | wxSize *arg2 = 0 ; | |
2463 | wxSize temp2 ; | |
2464 | PyObject * obj0 = 0 ; | |
2465 | PyObject * obj1 = 0 ; | |
2466 | char *kwnames[] = { | |
2467 | (char *) "self",(char *) "size", NULL | |
2468 | }; | |
2469 | ||
2470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2473 | { | |
2474 | arg2 = &temp2; | |
2475 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2476 | } | |
2477 | { | |
2478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2479 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2480 | ||
2481 | wxPyEndAllowThreads(__tstate); | |
2482 | if (PyErr_Occurred()) SWIG_fail; | |
2483 | } | |
2484 | Py_INCREF(Py_None); resultobj = Py_None; | |
2485 | return resultobj; | |
2486 | fail: | |
2487 | return NULL; | |
2488 | } | |
2489 | ||
2490 | ||
2491 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2492 | PyObject *resultobj; | |
2493 | wxSize *arg1 = (wxSize *) 0 ; | |
2494 | PyObject *result; | |
2495 | PyObject * obj0 = 0 ; | |
2496 | char *kwnames[] = { | |
2497 | (char *) "self", NULL | |
2498 | }; | |
2499 | ||
2500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; | |
2501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2503 | { | |
2504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2505 | result = (PyObject *)wxSize_Get(arg1); | |
2506 | ||
2507 | wxPyEndAllowThreads(__tstate); | |
2508 | if (PyErr_Occurred()) SWIG_fail; | |
2509 | } | |
2510 | resultobj = result; | |
2511 | return resultobj; | |
2512 | fail: | |
2513 | return NULL; | |
2514 | } | |
2515 | ||
2516 | ||
2517 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2518 | PyObject *obj; | |
2519 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2520 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2521 | Py_INCREF(obj); | |
2522 | return Py_BuildValue((char *)""); | |
2523 | } | |
2524 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2525 | PyObject *resultobj; | |
2526 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2527 | double arg2 ; | |
2528 | PyObject * obj0 = 0 ; | |
2529 | PyObject * obj1 = 0 ; | |
2530 | char *kwnames[] = { | |
2531 | (char *) "self",(char *) "x", NULL | |
2532 | }; | |
2533 | ||
2534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2537 | arg2 = (double) SWIG_AsDouble(obj1); | |
2538 | if (PyErr_Occurred()) SWIG_fail; | |
2539 | if (arg1) (arg1)->x = arg2; | |
2540 | ||
2541 | Py_INCREF(Py_None); resultobj = Py_None; | |
2542 | return resultobj; | |
2543 | fail: | |
2544 | return NULL; | |
2545 | } | |
2546 | ||
2547 | ||
2548 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2549 | PyObject *resultobj; | |
2550 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2551 | double result; | |
2552 | PyObject * obj0 = 0 ; | |
2553 | char *kwnames[] = { | |
2554 | (char *) "self", NULL | |
2555 | }; | |
2556 | ||
2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2560 | result = (double) ((arg1)->x); | |
2561 | ||
2562 | resultobj = SWIG_FromDouble((double)result); | |
2563 | return resultobj; | |
2564 | fail: | |
2565 | return NULL; | |
2566 | } | |
2567 | ||
2568 | ||
2569 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2570 | PyObject *resultobj; | |
2571 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2572 | double arg2 ; | |
2573 | PyObject * obj0 = 0 ; | |
2574 | PyObject * obj1 = 0 ; | |
2575 | char *kwnames[] = { | |
2576 | (char *) "self",(char *) "y", NULL | |
2577 | }; | |
2578 | ||
2579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2582 | arg2 = (double) SWIG_AsDouble(obj1); | |
2583 | if (PyErr_Occurred()) SWIG_fail; | |
2584 | if (arg1) (arg1)->y = arg2; | |
2585 | ||
2586 | Py_INCREF(Py_None); resultobj = Py_None; | |
2587 | return resultobj; | |
2588 | fail: | |
2589 | return NULL; | |
2590 | } | |
2591 | ||
2592 | ||
2593 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2594 | PyObject *resultobj; | |
2595 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2596 | double result; | |
2597 | PyObject * obj0 = 0 ; | |
2598 | char *kwnames[] = { | |
2599 | (char *) "self", NULL | |
2600 | }; | |
2601 | ||
2602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2605 | result = (double) ((arg1)->y); | |
2606 | ||
2607 | resultobj = SWIG_FromDouble((double)result); | |
2608 | return resultobj; | |
2609 | fail: | |
2610 | return NULL; | |
2611 | } | |
2612 | ||
2613 | ||
2614 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2615 | PyObject *resultobj; | |
2616 | double arg1 = (double) 0.0 ; | |
2617 | double arg2 = (double) 0.0 ; | |
2618 | wxRealPoint *result; | |
2619 | PyObject * obj0 = 0 ; | |
2620 | PyObject * obj1 = 0 ; | |
2621 | char *kwnames[] = { | |
2622 | (char *) "x",(char *) "y", NULL | |
2623 | }; | |
2624 | ||
2625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; | |
2626 | if (obj0) { | |
2627 | arg1 = (double) SWIG_AsDouble(obj0); | |
2628 | if (PyErr_Occurred()) SWIG_fail; | |
2629 | } | |
2630 | if (obj1) { | |
2631 | arg2 = (double) SWIG_AsDouble(obj1); | |
2632 | if (PyErr_Occurred()) SWIG_fail; | |
2633 | } | |
2634 | { | |
2635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2636 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2637 | ||
2638 | wxPyEndAllowThreads(__tstate); | |
2639 | if (PyErr_Occurred()) SWIG_fail; | |
2640 | } | |
2641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); | |
2642 | return resultobj; | |
2643 | fail: | |
2644 | return NULL; | |
2645 | } | |
2646 | ||
2647 | ||
2648 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2649 | PyObject *resultobj; | |
2650 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2651 | PyObject * obj0 = 0 ; | |
2652 | char *kwnames[] = { | |
2653 | (char *) "self", NULL | |
2654 | }; | |
2655 | ||
2656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2659 | { | |
2660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2661 | delete arg1; | |
2662 | ||
2663 | wxPyEndAllowThreads(__tstate); | |
2664 | if (PyErr_Occurred()) SWIG_fail; | |
2665 | } | |
2666 | Py_INCREF(Py_None); resultobj = Py_None; | |
2667 | return resultobj; | |
2668 | fail: | |
2669 | return NULL; | |
2670 | } | |
2671 | ||
2672 | ||
2673 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2674 | PyObject *resultobj; | |
2675 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2676 | wxRealPoint *arg2 = 0 ; | |
2677 | bool result; | |
2678 | wxRealPoint temp2 ; | |
2679 | PyObject * obj0 = 0 ; | |
2680 | PyObject * obj1 = 0 ; | |
2681 | char *kwnames[] = { | |
2682 | (char *) "self",(char *) "pt", NULL | |
2683 | }; | |
2684 | ||
2685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2688 | { | |
2689 | arg2 = &temp2; | |
2690 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2691 | } | |
2692 | { | |
2693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2694 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); | |
2695 | ||
2696 | wxPyEndAllowThreads(__tstate); | |
2697 | if (PyErr_Occurred()) SWIG_fail; | |
2698 | } | |
2699 | { | |
2700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2701 | } | |
2702 | return resultobj; | |
2703 | fail: | |
2704 | return NULL; | |
2705 | } | |
2706 | ||
2707 | ||
2708 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2709 | PyObject *resultobj; | |
2710 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2711 | wxRealPoint *arg2 = 0 ; | |
2712 | bool result; | |
2713 | wxRealPoint temp2 ; | |
2714 | PyObject * obj0 = 0 ; | |
2715 | PyObject * obj1 = 0 ; | |
2716 | char *kwnames[] = { | |
2717 | (char *) "self",(char *) "pt", NULL | |
2718 | }; | |
2719 | ||
2720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2723 | { | |
2724 | arg2 = &temp2; | |
2725 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2726 | } | |
2727 | { | |
2728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2729 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); | |
2730 | ||
2731 | wxPyEndAllowThreads(__tstate); | |
2732 | if (PyErr_Occurred()) SWIG_fail; | |
2733 | } | |
2734 | { | |
2735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2736 | } | |
2737 | return resultobj; | |
2738 | fail: | |
2739 | return NULL; | |
2740 | } | |
2741 | ||
2742 | ||
2743 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2744 | PyObject *resultobj; | |
2745 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2746 | wxRealPoint *arg2 = 0 ; | |
2747 | wxRealPoint result; | |
2748 | wxRealPoint temp2 ; | |
2749 | PyObject * obj0 = 0 ; | |
2750 | PyObject * obj1 = 0 ; | |
2751 | char *kwnames[] = { | |
2752 | (char *) "self",(char *) "pt", NULL | |
2753 | }; | |
2754 | ||
2755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; | |
2756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2758 | { | |
2759 | arg2 = &temp2; | |
2760 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2761 | } | |
2762 | { | |
2763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2764 | result = (arg1)->operator +((wxRealPoint const &)*arg2); | |
2765 | ||
2766 | wxPyEndAllowThreads(__tstate); | |
2767 | if (PyErr_Occurred()) SWIG_fail; | |
2768 | } | |
2769 | { | |
2770 | wxRealPoint * resultptr; | |
2771 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2772 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
2773 | } | |
2774 | return resultobj; | |
2775 | fail: | |
2776 | return NULL; | |
2777 | } | |
2778 | ||
2779 | ||
2780 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2781 | PyObject *resultobj; | |
2782 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2783 | wxRealPoint *arg2 = 0 ; | |
2784 | wxRealPoint result; | |
2785 | wxRealPoint temp2 ; | |
2786 | PyObject * obj0 = 0 ; | |
2787 | PyObject * obj1 = 0 ; | |
2788 | char *kwnames[] = { | |
2789 | (char *) "self",(char *) "pt", NULL | |
2790 | }; | |
2791 | ||
2792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2795 | { | |
2796 | arg2 = &temp2; | |
2797 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2798 | } | |
2799 | { | |
2800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2801 | result = (arg1)->operator -((wxRealPoint const &)*arg2); | |
2802 | ||
2803 | wxPyEndAllowThreads(__tstate); | |
2804 | if (PyErr_Occurred()) SWIG_fail; | |
2805 | } | |
2806 | { | |
2807 | wxRealPoint * resultptr; | |
2808 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2809 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
2810 | } | |
2811 | return resultobj; | |
2812 | fail: | |
2813 | return NULL; | |
2814 | } | |
2815 | ||
2816 | ||
2817 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2818 | PyObject *resultobj; | |
2819 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2820 | double arg2 ; | |
2821 | double arg3 ; | |
2822 | PyObject * obj0 = 0 ; | |
2823 | PyObject * obj1 = 0 ; | |
2824 | PyObject * obj2 = 0 ; | |
2825 | char *kwnames[] = { | |
2826 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2827 | }; | |
2828 | ||
2829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2832 | arg2 = (double) SWIG_AsDouble(obj1); | |
2833 | if (PyErr_Occurred()) SWIG_fail; | |
2834 | arg3 = (double) SWIG_AsDouble(obj2); | |
2835 | if (PyErr_Occurred()) SWIG_fail; | |
2836 | { | |
2837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2838 | wxRealPoint_Set(arg1,arg2,arg3); | |
2839 | ||
2840 | wxPyEndAllowThreads(__tstate); | |
2841 | if (PyErr_Occurred()) SWIG_fail; | |
2842 | } | |
2843 | Py_INCREF(Py_None); resultobj = Py_None; | |
2844 | return resultobj; | |
2845 | fail: | |
2846 | return NULL; | |
2847 | } | |
2848 | ||
2849 | ||
2850 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2851 | PyObject *resultobj; | |
2852 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2853 | PyObject *result; | |
2854 | PyObject * obj0 = 0 ; | |
2855 | char *kwnames[] = { | |
2856 | (char *) "self", NULL | |
2857 | }; | |
2858 | ||
2859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; | |
2860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2862 | { | |
2863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2864 | result = (PyObject *)wxRealPoint_Get(arg1); | |
2865 | ||
2866 | wxPyEndAllowThreads(__tstate); | |
2867 | if (PyErr_Occurred()) SWIG_fail; | |
2868 | } | |
2869 | resultobj = result; | |
2870 | return resultobj; | |
2871 | fail: | |
2872 | return NULL; | |
2873 | } | |
2874 | ||
2875 | ||
2876 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2877 | PyObject *obj; | |
2878 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2879 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2880 | Py_INCREF(obj); | |
2881 | return Py_BuildValue((char *)""); | |
2882 | } | |
2883 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2884 | PyObject *resultobj; | |
2885 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2886 | int arg2 ; | |
2887 | PyObject * obj0 = 0 ; | |
2888 | PyObject * obj1 = 0 ; | |
2889 | char *kwnames[] = { | |
2890 | (char *) "self",(char *) "x", NULL | |
2891 | }; | |
2892 | ||
2893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2896 | arg2 = (int) SWIG_AsInt(obj1); | |
2897 | if (PyErr_Occurred()) SWIG_fail; | |
2898 | if (arg1) (arg1)->x = arg2; | |
2899 | ||
2900 | Py_INCREF(Py_None); resultobj = Py_None; | |
2901 | return resultobj; | |
2902 | fail: | |
2903 | return NULL; | |
2904 | } | |
2905 | ||
2906 | ||
2907 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2908 | PyObject *resultobj; | |
2909 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2910 | int result; | |
2911 | PyObject * obj0 = 0 ; | |
2912 | char *kwnames[] = { | |
2913 | (char *) "self", NULL | |
2914 | }; | |
2915 | ||
2916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2919 | result = (int) ((arg1)->x); | |
2920 | ||
2921 | resultobj = SWIG_FromInt((int)result); | |
2922 | return resultobj; | |
2923 | fail: | |
2924 | return NULL; | |
2925 | } | |
2926 | ||
2927 | ||
2928 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2929 | PyObject *resultobj; | |
2930 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2931 | int arg2 ; | |
2932 | PyObject * obj0 = 0 ; | |
2933 | PyObject * obj1 = 0 ; | |
2934 | char *kwnames[] = { | |
2935 | (char *) "self",(char *) "y", NULL | |
2936 | }; | |
2937 | ||
2938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2941 | arg2 = (int) SWIG_AsInt(obj1); | |
2942 | if (PyErr_Occurred()) SWIG_fail; | |
2943 | if (arg1) (arg1)->y = arg2; | |
2944 | ||
2945 | Py_INCREF(Py_None); resultobj = Py_None; | |
2946 | return resultobj; | |
2947 | fail: | |
2948 | return NULL; | |
2949 | } | |
2950 | ||
2951 | ||
2952 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2953 | PyObject *resultobj; | |
2954 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2955 | int result; | |
2956 | PyObject * obj0 = 0 ; | |
2957 | char *kwnames[] = { | |
2958 | (char *) "self", NULL | |
2959 | }; | |
2960 | ||
2961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2964 | result = (int) ((arg1)->y); | |
2965 | ||
2966 | resultobj = SWIG_FromInt((int)result); | |
2967 | return resultobj; | |
2968 | fail: | |
2969 | return NULL; | |
2970 | } | |
2971 | ||
2972 | ||
2973 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2974 | PyObject *resultobj; | |
2975 | int arg1 = (int) 0 ; | |
2976 | int arg2 = (int) 0 ; | |
2977 | wxPoint *result; | |
2978 | PyObject * obj0 = 0 ; | |
2979 | PyObject * obj1 = 0 ; | |
2980 | char *kwnames[] = { | |
2981 | (char *) "x",(char *) "y", NULL | |
2982 | }; | |
2983 | ||
2984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; | |
2985 | if (obj0) { | |
2986 | arg1 = (int) SWIG_AsInt(obj0); | |
2987 | if (PyErr_Occurred()) SWIG_fail; | |
2988 | } | |
2989 | if (obj1) { | |
2990 | arg2 = (int) SWIG_AsInt(obj1); | |
2991 | if (PyErr_Occurred()) SWIG_fail; | |
2992 | } | |
2993 | { | |
2994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2995 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2996 | ||
2997 | wxPyEndAllowThreads(__tstate); | |
2998 | if (PyErr_Occurred()) SWIG_fail; | |
2999 | } | |
3000 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); | |
3001 | return resultobj; | |
3002 | fail: | |
3003 | return NULL; | |
3004 | } | |
3005 | ||
3006 | ||
3007 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3008 | PyObject *resultobj; | |
3009 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3010 | PyObject * obj0 = 0 ; | |
3011 | char *kwnames[] = { | |
3012 | (char *) "self", NULL | |
3013 | }; | |
3014 | ||
3015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
3016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3018 | { | |
3019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3020 | delete arg1; | |
3021 | ||
3022 | wxPyEndAllowThreads(__tstate); | |
3023 | if (PyErr_Occurred()) SWIG_fail; | |
3024 | } | |
3025 | Py_INCREF(Py_None); resultobj = Py_None; | |
3026 | return resultobj; | |
3027 | fail: | |
3028 | return NULL; | |
3029 | } | |
3030 | ||
3031 | ||
3032 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3033 | PyObject *resultobj; | |
3034 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3035 | wxPoint *arg2 = 0 ; | |
3036 | bool result; | |
3037 | wxPoint temp2 ; | |
3038 | PyObject * obj0 = 0 ; | |
3039 | PyObject * obj1 = 0 ; | |
3040 | char *kwnames[] = { | |
3041 | (char *) "self",(char *) "pt", NULL | |
3042 | }; | |
3043 | ||
3044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3047 | { | |
3048 | arg2 = &temp2; | |
3049 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3050 | } | |
3051 | { | |
3052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3053 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); | |
3054 | ||
3055 | wxPyEndAllowThreads(__tstate); | |
3056 | if (PyErr_Occurred()) SWIG_fail; | |
3057 | } | |
3058 | { | |
3059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3060 | } | |
3061 | return resultobj; | |
3062 | fail: | |
3063 | return NULL; | |
3064 | } | |
3065 | ||
3066 | ||
3067 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3068 | PyObject *resultobj; | |
3069 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3070 | wxPoint *arg2 = 0 ; | |
3071 | bool result; | |
3072 | wxPoint temp2 ; | |
3073 | PyObject * obj0 = 0 ; | |
3074 | PyObject * obj1 = 0 ; | |
3075 | char *kwnames[] = { | |
3076 | (char *) "self",(char *) "pt", NULL | |
3077 | }; | |
3078 | ||
3079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3082 | { | |
3083 | arg2 = &temp2; | |
3084 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3085 | } | |
3086 | { | |
3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3088 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); | |
3089 | ||
3090 | wxPyEndAllowThreads(__tstate); | |
3091 | if (PyErr_Occurred()) SWIG_fail; | |
3092 | } | |
3093 | { | |
3094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3095 | } | |
3096 | return resultobj; | |
3097 | fail: | |
3098 | return NULL; | |
3099 | } | |
3100 | ||
3101 | ||
3102 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3103 | PyObject *resultobj; | |
3104 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3105 | wxPoint *arg2 = 0 ; | |
3106 | wxPoint result; | |
3107 | wxPoint temp2 ; | |
3108 | PyObject * obj0 = 0 ; | |
3109 | PyObject * obj1 = 0 ; | |
3110 | char *kwnames[] = { | |
3111 | (char *) "self",(char *) "pt", NULL | |
3112 | }; | |
3113 | ||
3114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
3115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3117 | { | |
3118 | arg2 = &temp2; | |
3119 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3120 | } | |
3121 | { | |
3122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3123 | result = (arg1)->operator +((wxPoint const &)*arg2); | |
3124 | ||
3125 | wxPyEndAllowThreads(__tstate); | |
3126 | if (PyErr_Occurred()) SWIG_fail; | |
3127 | } | |
3128 | { | |
3129 | wxPoint * resultptr; | |
3130 | resultptr = new wxPoint((wxPoint &) result); | |
3131 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3132 | } | |
3133 | return resultobj; | |
3134 | fail: | |
3135 | return NULL; | |
3136 | } | |
3137 | ||
3138 | ||
3139 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3140 | PyObject *resultobj; | |
3141 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3142 | wxPoint *arg2 = 0 ; | |
3143 | wxPoint result; | |
3144 | wxPoint temp2 ; | |
3145 | PyObject * obj0 = 0 ; | |
3146 | PyObject * obj1 = 0 ; | |
3147 | char *kwnames[] = { | |
3148 | (char *) "self",(char *) "pt", NULL | |
3149 | }; | |
3150 | ||
3151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3154 | { | |
3155 | arg2 = &temp2; | |
3156 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3157 | } | |
3158 | { | |
3159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3160 | result = (arg1)->operator -((wxPoint const &)*arg2); | |
3161 | ||
3162 | wxPyEndAllowThreads(__tstate); | |
3163 | if (PyErr_Occurred()) SWIG_fail; | |
3164 | } | |
3165 | { | |
3166 | wxPoint * resultptr; | |
3167 | resultptr = new wxPoint((wxPoint &) result); | |
3168 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3169 | } | |
3170 | return resultobj; | |
3171 | fail: | |
3172 | return NULL; | |
3173 | } | |
3174 | ||
3175 | ||
3176 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3177 | PyObject *resultobj; | |
3178 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3179 | wxPoint *arg2 = 0 ; | |
3180 | wxPoint *result; | |
3181 | wxPoint temp2 ; | |
3182 | PyObject * obj0 = 0 ; | |
3183 | PyObject * obj1 = 0 ; | |
3184 | char *kwnames[] = { | |
3185 | (char *) "self",(char *) "pt", NULL | |
3186 | }; | |
3187 | ||
3188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3191 | { | |
3192 | arg2 = &temp2; | |
3193 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3194 | } | |
3195 | { | |
3196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3197 | { | |
3198 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3199 | result = (wxPoint *) &_result_ref; | |
3200 | } | |
3201 | ||
3202 | wxPyEndAllowThreads(__tstate); | |
3203 | if (PyErr_Occurred()) SWIG_fail; | |
3204 | } | |
3205 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
3206 | return resultobj; | |
3207 | fail: | |
3208 | return NULL; | |
3209 | } | |
3210 | ||
3211 | ||
3212 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3213 | PyObject *resultobj; | |
3214 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3215 | wxPoint *arg2 = 0 ; | |
3216 | wxPoint *result; | |
3217 | wxPoint temp2 ; | |
3218 | PyObject * obj0 = 0 ; | |
3219 | PyObject * obj1 = 0 ; | |
3220 | char *kwnames[] = { | |
3221 | (char *) "self",(char *) "pt", NULL | |
3222 | }; | |
3223 | ||
3224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
3225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3227 | { | |
3228 | arg2 = &temp2; | |
3229 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3230 | } | |
3231 | { | |
3232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3233 | { | |
3234 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3235 | result = (wxPoint *) &_result_ref; | |
3236 | } | |
3237 | ||
3238 | wxPyEndAllowThreads(__tstate); | |
3239 | if (PyErr_Occurred()) SWIG_fail; | |
3240 | } | |
3241 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
3242 | return resultobj; | |
3243 | fail: | |
3244 | return NULL; | |
3245 | } | |
3246 | ||
3247 | ||
3248 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3249 | PyObject *resultobj; | |
3250 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3251 | long arg2 ; | |
3252 | long arg3 ; | |
3253 | PyObject * obj0 = 0 ; | |
3254 | PyObject * obj1 = 0 ; | |
3255 | PyObject * obj2 = 0 ; | |
3256 | char *kwnames[] = { | |
3257 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3258 | }; | |
3259 | ||
3260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3263 | arg2 = (long) SWIG_AsLong(obj1); | |
3264 | if (PyErr_Occurred()) SWIG_fail; | |
3265 | arg3 = (long) SWIG_AsLong(obj2); | |
3266 | if (PyErr_Occurred()) SWIG_fail; | |
3267 | { | |
3268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3269 | wxPoint_Set(arg1,arg2,arg3); | |
3270 | ||
3271 | wxPyEndAllowThreads(__tstate); | |
3272 | if (PyErr_Occurred()) SWIG_fail; | |
3273 | } | |
3274 | Py_INCREF(Py_None); resultobj = Py_None; | |
3275 | return resultobj; | |
3276 | fail: | |
3277 | return NULL; | |
3278 | } | |
3279 | ||
3280 | ||
3281 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3282 | PyObject *resultobj; | |
3283 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3284 | PyObject *result; | |
3285 | PyObject * obj0 = 0 ; | |
3286 | char *kwnames[] = { | |
3287 | (char *) "self", NULL | |
3288 | }; | |
3289 | ||
3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; | |
3291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3293 | { | |
3294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3295 | result = (PyObject *)wxPoint_Get(arg1); | |
3296 | ||
3297 | wxPyEndAllowThreads(__tstate); | |
3298 | if (PyErr_Occurred()) SWIG_fail; | |
3299 | } | |
3300 | resultobj = result; | |
3301 | return resultobj; | |
3302 | fail: | |
3303 | return NULL; | |
3304 | } | |
3305 | ||
3306 | ||
3307 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
3308 | PyObject *obj; | |
3309 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3310 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3311 | Py_INCREF(obj); | |
3312 | return Py_BuildValue((char *)""); | |
3313 | } | |
3314 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3315 | PyObject *resultobj; | |
3316 | int arg1 = (int) 0 ; | |
3317 | int arg2 = (int) 0 ; | |
3318 | int arg3 = (int) 0 ; | |
3319 | int arg4 = (int) 0 ; | |
3320 | wxRect *result; | |
3321 | PyObject * obj0 = 0 ; | |
3322 | PyObject * obj1 = 0 ; | |
3323 | PyObject * obj2 = 0 ; | |
3324 | PyObject * obj3 = 0 ; | |
3325 | char *kwnames[] = { | |
3326 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3327 | }; | |
3328 | ||
3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3330 | if (obj0) { | |
3331 | arg1 = (int) SWIG_AsInt(obj0); | |
3332 | if (PyErr_Occurred()) SWIG_fail; | |
3333 | } | |
3334 | if (obj1) { | |
3335 | arg2 = (int) SWIG_AsInt(obj1); | |
3336 | if (PyErr_Occurred()) SWIG_fail; | |
3337 | } | |
3338 | if (obj2) { | |
3339 | arg3 = (int) SWIG_AsInt(obj2); | |
3340 | if (PyErr_Occurred()) SWIG_fail; | |
3341 | } | |
3342 | if (obj3) { | |
3343 | arg4 = (int) SWIG_AsInt(obj3); | |
3344 | if (PyErr_Occurred()) SWIG_fail; | |
3345 | } | |
3346 | { | |
3347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3348 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3349 | ||
3350 | wxPyEndAllowThreads(__tstate); | |
3351 | if (PyErr_Occurred()) SWIG_fail; | |
3352 | } | |
3353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3354 | return resultobj; | |
3355 | fail: | |
3356 | return NULL; | |
3357 | } | |
3358 | ||
3359 | ||
3360 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3361 | PyObject *resultobj; | |
3362 | wxPoint *arg1 = 0 ; | |
3363 | wxPoint *arg2 = 0 ; | |
3364 | wxRect *result; | |
3365 | wxPoint temp1 ; | |
3366 | wxPoint temp2 ; | |
3367 | PyObject * obj0 = 0 ; | |
3368 | PyObject * obj1 = 0 ; | |
3369 | char *kwnames[] = { | |
3370 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3371 | }; | |
3372 | ||
3373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3374 | { | |
3375 | arg1 = &temp1; | |
3376 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3377 | } | |
3378 | { | |
3379 | arg2 = &temp2; | |
3380 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3381 | } | |
3382 | { | |
3383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3384 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3385 | ||
3386 | wxPyEndAllowThreads(__tstate); | |
3387 | if (PyErr_Occurred()) SWIG_fail; | |
3388 | } | |
3389 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3390 | return resultobj; | |
3391 | fail: | |
3392 | return NULL; | |
3393 | } | |
3394 | ||
3395 | ||
3396 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3397 | PyObject *resultobj; | |
3398 | wxPoint *arg1 = 0 ; | |
3399 | wxSize *arg2 = 0 ; | |
3400 | wxRect *result; | |
3401 | wxPoint temp1 ; | |
3402 | wxSize temp2 ; | |
3403 | PyObject * obj0 = 0 ; | |
3404 | PyObject * obj1 = 0 ; | |
3405 | char *kwnames[] = { | |
3406 | (char *) "pos",(char *) "size", NULL | |
3407 | }; | |
3408 | ||
3409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3410 | { | |
3411 | arg1 = &temp1; | |
3412 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3413 | } | |
3414 | { | |
3415 | arg2 = &temp2; | |
3416 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3417 | } | |
3418 | { | |
3419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3420 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3421 | ||
3422 | wxPyEndAllowThreads(__tstate); | |
3423 | if (PyErr_Occurred()) SWIG_fail; | |
3424 | } | |
3425 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3426 | return resultobj; | |
3427 | fail: | |
3428 | return NULL; | |
3429 | } | |
3430 | ||
3431 | ||
3432 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3433 | PyObject *resultobj; | |
3434 | wxRect *arg1 = (wxRect *) 0 ; | |
3435 | PyObject * obj0 = 0 ; | |
3436 | char *kwnames[] = { | |
3437 | (char *) "self", NULL | |
3438 | }; | |
3439 | ||
3440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
3441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3443 | { | |
3444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3445 | delete arg1; | |
3446 | ||
3447 | wxPyEndAllowThreads(__tstate); | |
3448 | if (PyErr_Occurred()) SWIG_fail; | |
3449 | } | |
3450 | Py_INCREF(Py_None); resultobj = Py_None; | |
3451 | return resultobj; | |
3452 | fail: | |
3453 | return NULL; | |
3454 | } | |
3455 | ||
3456 | ||
3457 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3458 | PyObject *resultobj; | |
3459 | wxRect *arg1 = (wxRect *) 0 ; | |
3460 | int result; | |
3461 | PyObject * obj0 = 0 ; | |
3462 | char *kwnames[] = { | |
3463 | (char *) "self", NULL | |
3464 | }; | |
3465 | ||
3466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
3467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3469 | { | |
3470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3471 | result = (int)((wxRect const *)arg1)->GetX(); | |
3472 | ||
3473 | wxPyEndAllowThreads(__tstate); | |
3474 | if (PyErr_Occurred()) SWIG_fail; | |
3475 | } | |
3476 | resultobj = SWIG_FromInt((int)result); | |
3477 | return resultobj; | |
3478 | fail: | |
3479 | return NULL; | |
3480 | } | |
3481 | ||
3482 | ||
3483 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3484 | PyObject *resultobj; | |
3485 | wxRect *arg1 = (wxRect *) 0 ; | |
3486 | int arg2 ; | |
3487 | PyObject * obj0 = 0 ; | |
3488 | PyObject * obj1 = 0 ; | |
3489 | char *kwnames[] = { | |
3490 | (char *) "self",(char *) "x", NULL | |
3491 | }; | |
3492 | ||
3493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; | |
3494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3496 | arg2 = (int) SWIG_AsInt(obj1); | |
3497 | if (PyErr_Occurred()) SWIG_fail; | |
3498 | { | |
3499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3500 | (arg1)->SetX(arg2); | |
3501 | ||
3502 | wxPyEndAllowThreads(__tstate); | |
3503 | if (PyErr_Occurred()) SWIG_fail; | |
3504 | } | |
3505 | Py_INCREF(Py_None); resultobj = Py_None; | |
3506 | return resultobj; | |
3507 | fail: | |
3508 | return NULL; | |
3509 | } | |
3510 | ||
3511 | ||
3512 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3513 | PyObject *resultobj; | |
3514 | wxRect *arg1 = (wxRect *) 0 ; | |
3515 | int result; | |
3516 | PyObject * obj0 = 0 ; | |
3517 | char *kwnames[] = { | |
3518 | (char *) "self", NULL | |
3519 | }; | |
3520 | ||
3521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
3522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3524 | { | |
3525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3526 | result = (int)(arg1)->GetY(); | |
3527 | ||
3528 | wxPyEndAllowThreads(__tstate); | |
3529 | if (PyErr_Occurred()) SWIG_fail; | |
3530 | } | |
3531 | resultobj = SWIG_FromInt((int)result); | |
3532 | return resultobj; | |
3533 | fail: | |
3534 | return NULL; | |
3535 | } | |
3536 | ||
3537 | ||
3538 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3539 | PyObject *resultobj; | |
3540 | wxRect *arg1 = (wxRect *) 0 ; | |
3541 | int arg2 ; | |
3542 | PyObject * obj0 = 0 ; | |
3543 | PyObject * obj1 = 0 ; | |
3544 | char *kwnames[] = { | |
3545 | (char *) "self",(char *) "y", NULL | |
3546 | }; | |
3547 | ||
3548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; | |
3549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3551 | arg2 = (int) SWIG_AsInt(obj1); | |
3552 | if (PyErr_Occurred()) SWIG_fail; | |
3553 | { | |
3554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3555 | (arg1)->SetY(arg2); | |
3556 | ||
3557 | wxPyEndAllowThreads(__tstate); | |
3558 | if (PyErr_Occurred()) SWIG_fail; | |
3559 | } | |
3560 | Py_INCREF(Py_None); resultobj = Py_None; | |
3561 | return resultobj; | |
3562 | fail: | |
3563 | return NULL; | |
3564 | } | |
3565 | ||
3566 | ||
3567 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3568 | PyObject *resultobj; | |
3569 | wxRect *arg1 = (wxRect *) 0 ; | |
3570 | int result; | |
3571 | PyObject * obj0 = 0 ; | |
3572 | char *kwnames[] = { | |
3573 | (char *) "self", NULL | |
3574 | }; | |
3575 | ||
3576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
3577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3579 | { | |
3580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3581 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3582 | ||
3583 | wxPyEndAllowThreads(__tstate); | |
3584 | if (PyErr_Occurred()) SWIG_fail; | |
3585 | } | |
3586 | resultobj = SWIG_FromInt((int)result); | |
3587 | return resultobj; | |
3588 | fail: | |
3589 | return NULL; | |
3590 | } | |
3591 | ||
3592 | ||
3593 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3594 | PyObject *resultobj; | |
3595 | wxRect *arg1 = (wxRect *) 0 ; | |
3596 | int arg2 ; | |
3597 | PyObject * obj0 = 0 ; | |
3598 | PyObject * obj1 = 0 ; | |
3599 | char *kwnames[] = { | |
3600 | (char *) "self",(char *) "w", NULL | |
3601 | }; | |
3602 | ||
3603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3606 | arg2 = (int) SWIG_AsInt(obj1); | |
3607 | if (PyErr_Occurred()) SWIG_fail; | |
3608 | { | |
3609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3610 | (arg1)->SetWidth(arg2); | |
3611 | ||
3612 | wxPyEndAllowThreads(__tstate); | |
3613 | if (PyErr_Occurred()) SWIG_fail; | |
3614 | } | |
3615 | Py_INCREF(Py_None); resultobj = Py_None; | |
3616 | return resultobj; | |
3617 | fail: | |
3618 | return NULL; | |
3619 | } | |
3620 | ||
3621 | ||
3622 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3623 | PyObject *resultobj; | |
3624 | wxRect *arg1 = (wxRect *) 0 ; | |
3625 | int result; | |
3626 | PyObject * obj0 = 0 ; | |
3627 | char *kwnames[] = { | |
3628 | (char *) "self", NULL | |
3629 | }; | |
3630 | ||
3631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3634 | { | |
3635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3636 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3637 | ||
3638 | wxPyEndAllowThreads(__tstate); | |
3639 | if (PyErr_Occurred()) SWIG_fail; | |
3640 | } | |
3641 | resultobj = SWIG_FromInt((int)result); | |
3642 | return resultobj; | |
3643 | fail: | |
3644 | return NULL; | |
3645 | } | |
3646 | ||
3647 | ||
3648 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3649 | PyObject *resultobj; | |
3650 | wxRect *arg1 = (wxRect *) 0 ; | |
3651 | int arg2 ; | |
3652 | PyObject * obj0 = 0 ; | |
3653 | PyObject * obj1 = 0 ; | |
3654 | char *kwnames[] = { | |
3655 | (char *) "self",(char *) "h", NULL | |
3656 | }; | |
3657 | ||
3658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3661 | arg2 = (int) SWIG_AsInt(obj1); | |
3662 | if (PyErr_Occurred()) SWIG_fail; | |
3663 | { | |
3664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3665 | (arg1)->SetHeight(arg2); | |
3666 | ||
3667 | wxPyEndAllowThreads(__tstate); | |
3668 | if (PyErr_Occurred()) SWIG_fail; | |
3669 | } | |
3670 | Py_INCREF(Py_None); resultobj = Py_None; | |
3671 | return resultobj; | |
3672 | fail: | |
3673 | return NULL; | |
3674 | } | |
3675 | ||
3676 | ||
3677 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3678 | PyObject *resultobj; | |
3679 | wxRect *arg1 = (wxRect *) 0 ; | |
3680 | wxPoint result; | |
3681 | PyObject * obj0 = 0 ; | |
3682 | char *kwnames[] = { | |
3683 | (char *) "self", NULL | |
3684 | }; | |
3685 | ||
3686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
3687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3689 | { | |
3690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3691 | result = ((wxRect const *)arg1)->GetPosition(); | |
3692 | ||
3693 | wxPyEndAllowThreads(__tstate); | |
3694 | if (PyErr_Occurred()) SWIG_fail; | |
3695 | } | |
3696 | { | |
3697 | wxPoint * resultptr; | |
3698 | resultptr = new wxPoint((wxPoint &) result); | |
3699 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3700 | } | |
3701 | return resultobj; | |
3702 | fail: | |
3703 | return NULL; | |
3704 | } | |
3705 | ||
3706 | ||
3707 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3708 | PyObject *resultobj; | |
3709 | wxRect *arg1 = (wxRect *) 0 ; | |
3710 | wxPoint *arg2 = 0 ; | |
3711 | wxPoint temp2 ; | |
3712 | PyObject * obj0 = 0 ; | |
3713 | PyObject * obj1 = 0 ; | |
3714 | char *kwnames[] = { | |
3715 | (char *) "self",(char *) "p", NULL | |
3716 | }; | |
3717 | ||
3718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
3719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3721 | { | |
3722 | arg2 = &temp2; | |
3723 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3724 | } | |
3725 | { | |
3726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3727 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3728 | ||
3729 | wxPyEndAllowThreads(__tstate); | |
3730 | if (PyErr_Occurred()) SWIG_fail; | |
3731 | } | |
3732 | Py_INCREF(Py_None); resultobj = Py_None; | |
3733 | return resultobj; | |
3734 | fail: | |
3735 | return NULL; | |
3736 | } | |
3737 | ||
3738 | ||
3739 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3740 | PyObject *resultobj; | |
3741 | wxRect *arg1 = (wxRect *) 0 ; | |
3742 | wxSize result; | |
3743 | PyObject * obj0 = 0 ; | |
3744 | char *kwnames[] = { | |
3745 | (char *) "self", NULL | |
3746 | }; | |
3747 | ||
3748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
3749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3751 | { | |
3752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3753 | result = ((wxRect const *)arg1)->GetSize(); | |
3754 | ||
3755 | wxPyEndAllowThreads(__tstate); | |
3756 | if (PyErr_Occurred()) SWIG_fail; | |
3757 | } | |
3758 | { | |
3759 | wxSize * resultptr; | |
3760 | resultptr = new wxSize((wxSize &) result); | |
3761 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3762 | } | |
3763 | return resultobj; | |
3764 | fail: | |
3765 | return NULL; | |
3766 | } | |
3767 | ||
3768 | ||
3769 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3770 | PyObject *resultobj; | |
3771 | wxRect *arg1 = (wxRect *) 0 ; | |
3772 | wxSize *arg2 = 0 ; | |
3773 | wxSize temp2 ; | |
3774 | PyObject * obj0 = 0 ; | |
3775 | PyObject * obj1 = 0 ; | |
3776 | char *kwnames[] = { | |
3777 | (char *) "self",(char *) "s", NULL | |
3778 | }; | |
3779 | ||
3780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3783 | { | |
3784 | arg2 = &temp2; | |
3785 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3786 | } | |
3787 | { | |
3788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3789 | (arg1)->SetSize((wxSize const &)*arg2); | |
3790 | ||
3791 | wxPyEndAllowThreads(__tstate); | |
3792 | if (PyErr_Occurred()) SWIG_fail; | |
3793 | } | |
3794 | Py_INCREF(Py_None); resultobj = Py_None; | |
3795 | return resultobj; | |
3796 | fail: | |
3797 | return NULL; | |
3798 | } | |
3799 | ||
3800 | ||
3801 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3802 | PyObject *resultobj; | |
3803 | wxRect *arg1 = (wxRect *) 0 ; | |
3804 | wxPoint result; | |
3805 | PyObject * obj0 = 0 ; | |
3806 | char *kwnames[] = { | |
3807 | (char *) "self", NULL | |
3808 | }; | |
3809 | ||
3810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
3811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3813 | { | |
3814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3815 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3816 | ||
3817 | wxPyEndAllowThreads(__tstate); | |
3818 | if (PyErr_Occurred()) SWIG_fail; | |
3819 | } | |
3820 | { | |
3821 | wxPoint * resultptr; | |
3822 | resultptr = new wxPoint((wxPoint &) result); | |
3823 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3824 | } | |
3825 | return resultobj; | |
3826 | fail: | |
3827 | return NULL; | |
3828 | } | |
3829 | ||
3830 | ||
3831 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3832 | PyObject *resultobj; | |
3833 | wxRect *arg1 = (wxRect *) 0 ; | |
3834 | wxPoint *arg2 = 0 ; | |
3835 | wxPoint temp2 ; | |
3836 | PyObject * obj0 = 0 ; | |
3837 | PyObject * obj1 = 0 ; | |
3838 | char *kwnames[] = { | |
3839 | (char *) "self",(char *) "p", NULL | |
3840 | }; | |
3841 | ||
3842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
3843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3845 | { | |
3846 | arg2 = &temp2; | |
3847 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3848 | } | |
3849 | { | |
3850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3851 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3852 | ||
3853 | wxPyEndAllowThreads(__tstate); | |
3854 | if (PyErr_Occurred()) SWIG_fail; | |
3855 | } | |
3856 | Py_INCREF(Py_None); resultobj = Py_None; | |
3857 | return resultobj; | |
3858 | fail: | |
3859 | return NULL; | |
3860 | } | |
3861 | ||
3862 | ||
3863 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3864 | PyObject *resultobj; | |
3865 | wxRect *arg1 = (wxRect *) 0 ; | |
3866 | wxPoint result; | |
3867 | PyObject * obj0 = 0 ; | |
3868 | char *kwnames[] = { | |
3869 | (char *) "self", NULL | |
3870 | }; | |
3871 | ||
3872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
3873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3875 | { | |
3876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3877 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3878 | ||
3879 | wxPyEndAllowThreads(__tstate); | |
3880 | if (PyErr_Occurred()) SWIG_fail; | |
3881 | } | |
3882 | { | |
3883 | wxPoint * resultptr; | |
3884 | resultptr = new wxPoint((wxPoint &) result); | |
3885 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3886 | } | |
3887 | return resultobj; | |
3888 | fail: | |
3889 | return NULL; | |
3890 | } | |
3891 | ||
3892 | ||
3893 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3894 | PyObject *resultobj; | |
3895 | wxRect *arg1 = (wxRect *) 0 ; | |
3896 | wxPoint *arg2 = 0 ; | |
3897 | wxPoint temp2 ; | |
3898 | PyObject * obj0 = 0 ; | |
3899 | PyObject * obj1 = 0 ; | |
3900 | char *kwnames[] = { | |
3901 | (char *) "self",(char *) "p", NULL | |
3902 | }; | |
3903 | ||
3904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
3905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3907 | { | |
3908 | arg2 = &temp2; | |
3909 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3910 | } | |
3911 | { | |
3912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3913 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3914 | ||
3915 | wxPyEndAllowThreads(__tstate); | |
3916 | if (PyErr_Occurred()) SWIG_fail; | |
3917 | } | |
3918 | Py_INCREF(Py_None); resultobj = Py_None; | |
3919 | return resultobj; | |
3920 | fail: | |
3921 | return NULL; | |
3922 | } | |
3923 | ||
3924 | ||
3925 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3926 | PyObject *resultobj; | |
3927 | wxRect *arg1 = (wxRect *) 0 ; | |
3928 | int result; | |
3929 | PyObject * obj0 = 0 ; | |
3930 | char *kwnames[] = { | |
3931 | (char *) "self", NULL | |
3932 | }; | |
3933 | ||
3934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
3935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3937 | { | |
3938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3939 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3940 | ||
3941 | wxPyEndAllowThreads(__tstate); | |
3942 | if (PyErr_Occurred()) SWIG_fail; | |
3943 | } | |
3944 | resultobj = SWIG_FromInt((int)result); | |
3945 | return resultobj; | |
3946 | fail: | |
3947 | return NULL; | |
3948 | } | |
3949 | ||
3950 | ||
3951 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3952 | PyObject *resultobj; | |
3953 | wxRect *arg1 = (wxRect *) 0 ; | |
3954 | int result; | |
3955 | PyObject * obj0 = 0 ; | |
3956 | char *kwnames[] = { | |
3957 | (char *) "self", NULL | |
3958 | }; | |
3959 | ||
3960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
3961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3963 | { | |
3964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3965 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3966 | ||
3967 | wxPyEndAllowThreads(__tstate); | |
3968 | if (PyErr_Occurred()) SWIG_fail; | |
3969 | } | |
3970 | resultobj = SWIG_FromInt((int)result); | |
3971 | return resultobj; | |
3972 | fail: | |
3973 | return NULL; | |
3974 | } | |
3975 | ||
3976 | ||
3977 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3978 | PyObject *resultobj; | |
3979 | wxRect *arg1 = (wxRect *) 0 ; | |
3980 | int result; | |
3981 | PyObject * obj0 = 0 ; | |
3982 | char *kwnames[] = { | |
3983 | (char *) "self", NULL | |
3984 | }; | |
3985 | ||
3986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
3987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3989 | { | |
3990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3991 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3992 | ||
3993 | wxPyEndAllowThreads(__tstate); | |
3994 | if (PyErr_Occurred()) SWIG_fail; | |
3995 | } | |
3996 | resultobj = SWIG_FromInt((int)result); | |
3997 | return resultobj; | |
3998 | fail: | |
3999 | return NULL; | |
4000 | } | |
4001 | ||
4002 | ||
4003 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4004 | PyObject *resultobj; | |
4005 | wxRect *arg1 = (wxRect *) 0 ; | |
4006 | int result; | |
4007 | PyObject * obj0 = 0 ; | |
4008 | char *kwnames[] = { | |
4009 | (char *) "self", NULL | |
4010 | }; | |
4011 | ||
4012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
4013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4015 | { | |
4016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4017 | result = (int)((wxRect const *)arg1)->GetRight(); | |
4018 | ||
4019 | wxPyEndAllowThreads(__tstate); | |
4020 | if (PyErr_Occurred()) SWIG_fail; | |
4021 | } | |
4022 | resultobj = SWIG_FromInt((int)result); | |
4023 | return resultobj; | |
4024 | fail: | |
4025 | return NULL; | |
4026 | } | |
4027 | ||
4028 | ||
4029 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4030 | PyObject *resultobj; | |
4031 | wxRect *arg1 = (wxRect *) 0 ; | |
4032 | int arg2 ; | |
4033 | PyObject * obj0 = 0 ; | |
4034 | PyObject * obj1 = 0 ; | |
4035 | char *kwnames[] = { | |
4036 | (char *) "self",(char *) "left", NULL | |
4037 | }; | |
4038 | ||
4039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; | |
4040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4042 | arg2 = (int) SWIG_AsInt(obj1); | |
4043 | if (PyErr_Occurred()) SWIG_fail; | |
4044 | { | |
4045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4046 | (arg1)->SetLeft(arg2); | |
4047 | ||
4048 | wxPyEndAllowThreads(__tstate); | |
4049 | if (PyErr_Occurred()) SWIG_fail; | |
4050 | } | |
4051 | Py_INCREF(Py_None); resultobj = Py_None; | |
4052 | return resultobj; | |
4053 | fail: | |
4054 | return NULL; | |
4055 | } | |
4056 | ||
4057 | ||
4058 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4059 | PyObject *resultobj; | |
4060 | wxRect *arg1 = (wxRect *) 0 ; | |
4061 | int arg2 ; | |
4062 | PyObject * obj0 = 0 ; | |
4063 | PyObject * obj1 = 0 ; | |
4064 | char *kwnames[] = { | |
4065 | (char *) "self",(char *) "right", NULL | |
4066 | }; | |
4067 | ||
4068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; | |
4069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4071 | arg2 = (int) SWIG_AsInt(obj1); | |
4072 | if (PyErr_Occurred()) SWIG_fail; | |
4073 | { | |
4074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4075 | (arg1)->SetRight(arg2); | |
4076 | ||
4077 | wxPyEndAllowThreads(__tstate); | |
4078 | if (PyErr_Occurred()) SWIG_fail; | |
4079 | } | |
4080 | Py_INCREF(Py_None); resultobj = Py_None; | |
4081 | return resultobj; | |
4082 | fail: | |
4083 | return NULL; | |
4084 | } | |
4085 | ||
4086 | ||
4087 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4088 | PyObject *resultobj; | |
4089 | wxRect *arg1 = (wxRect *) 0 ; | |
4090 | int arg2 ; | |
4091 | PyObject * obj0 = 0 ; | |
4092 | PyObject * obj1 = 0 ; | |
4093 | char *kwnames[] = { | |
4094 | (char *) "self",(char *) "top", NULL | |
4095 | }; | |
4096 | ||
4097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; | |
4098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4100 | arg2 = (int) SWIG_AsInt(obj1); | |
4101 | if (PyErr_Occurred()) SWIG_fail; | |
4102 | { | |
4103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4104 | (arg1)->SetTop(arg2); | |
4105 | ||
4106 | wxPyEndAllowThreads(__tstate); | |
4107 | if (PyErr_Occurred()) SWIG_fail; | |
4108 | } | |
4109 | Py_INCREF(Py_None); resultobj = Py_None; | |
4110 | return resultobj; | |
4111 | fail: | |
4112 | return NULL; | |
4113 | } | |
4114 | ||
4115 | ||
4116 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4117 | PyObject *resultobj; | |
4118 | wxRect *arg1 = (wxRect *) 0 ; | |
4119 | int arg2 ; | |
4120 | PyObject * obj0 = 0 ; | |
4121 | PyObject * obj1 = 0 ; | |
4122 | char *kwnames[] = { | |
4123 | (char *) "self",(char *) "bottom", NULL | |
4124 | }; | |
4125 | ||
4126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; | |
4127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4129 | arg2 = (int) SWIG_AsInt(obj1); | |
4130 | if (PyErr_Occurred()) SWIG_fail; | |
4131 | { | |
4132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4133 | (arg1)->SetBottom(arg2); | |
4134 | ||
4135 | wxPyEndAllowThreads(__tstate); | |
4136 | if (PyErr_Occurred()) SWIG_fail; | |
4137 | } | |
4138 | Py_INCREF(Py_None); resultobj = Py_None; | |
4139 | return resultobj; | |
4140 | fail: | |
4141 | return NULL; | |
4142 | } | |
4143 | ||
4144 | ||
4145 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4146 | PyObject *resultobj; | |
4147 | wxRect *arg1 = (wxRect *) 0 ; | |
4148 | int arg2 ; | |
4149 | int arg3 ; | |
4150 | wxRect *result; | |
4151 | PyObject * obj0 = 0 ; | |
4152 | PyObject * obj1 = 0 ; | |
4153 | PyObject * obj2 = 0 ; | |
4154 | char *kwnames[] = { | |
4155 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4156 | }; | |
4157 | ||
4158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4161 | arg2 = (int) SWIG_AsInt(obj1); | |
4162 | if (PyErr_Occurred()) SWIG_fail; | |
4163 | arg3 = (int) SWIG_AsInt(obj2); | |
4164 | if (PyErr_Occurred()) SWIG_fail; | |
4165 | { | |
4166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4167 | { | |
4168 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4169 | result = (wxRect *) &_result_ref; | |
4170 | } | |
4171 | ||
4172 | wxPyEndAllowThreads(__tstate); | |
4173 | if (PyErr_Occurred()) SWIG_fail; | |
4174 | } | |
4175 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4176 | return resultobj; | |
4177 | fail: | |
4178 | return NULL; | |
4179 | } | |
4180 | ||
4181 | ||
4182 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4183 | PyObject *resultobj; | |
4184 | wxRect *arg1 = (wxRect *) 0 ; | |
4185 | int arg2 ; | |
4186 | int arg3 ; | |
4187 | wxRect *result; | |
4188 | PyObject * obj0 = 0 ; | |
4189 | PyObject * obj1 = 0 ; | |
4190 | PyObject * obj2 = 0 ; | |
4191 | char *kwnames[] = { | |
4192 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4193 | }; | |
4194 | ||
4195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4198 | arg2 = (int) SWIG_AsInt(obj1); | |
4199 | if (PyErr_Occurred()) SWIG_fail; | |
4200 | arg3 = (int) SWIG_AsInt(obj2); | |
4201 | if (PyErr_Occurred()) SWIG_fail; | |
4202 | { | |
4203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4204 | { | |
4205 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4206 | result = (wxRect *) &_result_ref; | |
4207 | } | |
4208 | ||
4209 | wxPyEndAllowThreads(__tstate); | |
4210 | if (PyErr_Occurred()) SWIG_fail; | |
4211 | } | |
4212 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4213 | return resultobj; | |
4214 | fail: | |
4215 | return NULL; | |
4216 | } | |
4217 | ||
4218 | ||
4219 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4220 | PyObject *resultobj; | |
4221 | wxRect *arg1 = (wxRect *) 0 ; | |
4222 | int arg2 ; | |
4223 | int arg3 ; | |
4224 | PyObject * obj0 = 0 ; | |
4225 | PyObject * obj1 = 0 ; | |
4226 | PyObject * obj2 = 0 ; | |
4227 | char *kwnames[] = { | |
4228 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4229 | }; | |
4230 | ||
4231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4234 | arg2 = (int) SWIG_AsInt(obj1); | |
4235 | if (PyErr_Occurred()) SWIG_fail; | |
4236 | arg3 = (int) SWIG_AsInt(obj2); | |
4237 | if (PyErr_Occurred()) SWIG_fail; | |
4238 | { | |
4239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4240 | (arg1)->Offset(arg2,arg3); | |
4241 | ||
4242 | wxPyEndAllowThreads(__tstate); | |
4243 | if (PyErr_Occurred()) SWIG_fail; | |
4244 | } | |
4245 | Py_INCREF(Py_None); resultobj = Py_None; | |
4246 | return resultobj; | |
4247 | fail: | |
4248 | return NULL; | |
4249 | } | |
4250 | ||
4251 | ||
4252 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4253 | PyObject *resultobj; | |
4254 | wxRect *arg1 = (wxRect *) 0 ; | |
4255 | wxPoint *arg2 = 0 ; | |
4256 | wxPoint temp2 ; | |
4257 | PyObject * obj0 = 0 ; | |
4258 | PyObject * obj1 = 0 ; | |
4259 | char *kwnames[] = { | |
4260 | (char *) "self",(char *) "pt", NULL | |
4261 | }; | |
4262 | ||
4263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
4264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4266 | { | |
4267 | arg2 = &temp2; | |
4268 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4269 | } | |
4270 | { | |
4271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4272 | (arg1)->Offset((wxPoint const &)*arg2); | |
4273 | ||
4274 | wxPyEndAllowThreads(__tstate); | |
4275 | if (PyErr_Occurred()) SWIG_fail; | |
4276 | } | |
4277 | Py_INCREF(Py_None); resultobj = Py_None; | |
4278 | return resultobj; | |
4279 | fail: | |
4280 | return NULL; | |
4281 | } | |
4282 | ||
4283 | ||
4284 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4285 | PyObject *resultobj; | |
4286 | wxRect *arg1 = (wxRect *) 0 ; | |
4287 | wxRect *arg2 = 0 ; | |
4288 | wxRect *result; | |
4289 | wxRect temp2 ; | |
4290 | PyObject * obj0 = 0 ; | |
4291 | PyObject * obj1 = 0 ; | |
4292 | char *kwnames[] = { | |
4293 | (char *) "self",(char *) "rect", NULL | |
4294 | }; | |
4295 | ||
4296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
4297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4299 | { | |
4300 | arg2 = &temp2; | |
4301 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4302 | } | |
4303 | { | |
4304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4305 | { | |
4306 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4307 | result = (wxRect *) &_result_ref; | |
4308 | } | |
4309 | ||
4310 | wxPyEndAllowThreads(__tstate); | |
4311 | if (PyErr_Occurred()) SWIG_fail; | |
4312 | } | |
4313 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4314 | return resultobj; | |
4315 | fail: | |
4316 | return NULL; | |
4317 | } | |
4318 | ||
4319 | ||
4320 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4321 | PyObject *resultobj; | |
4322 | wxRect *arg1 = (wxRect *) 0 ; | |
4323 | wxRect *arg2 = 0 ; | |
4324 | wxRect result; | |
4325 | wxRect temp2 ; | |
4326 | PyObject * obj0 = 0 ; | |
4327 | PyObject * obj1 = 0 ; | |
4328 | char *kwnames[] = { | |
4329 | (char *) "self",(char *) "rect", NULL | |
4330 | }; | |
4331 | ||
4332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
4333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4335 | { | |
4336 | arg2 = &temp2; | |
4337 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4338 | } | |
4339 | { | |
4340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4341 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4342 | ||
4343 | wxPyEndAllowThreads(__tstate); | |
4344 | if (PyErr_Occurred()) SWIG_fail; | |
4345 | } | |
4346 | { | |
4347 | wxRect * resultptr; | |
4348 | resultptr = new wxRect((wxRect &) result); | |
4349 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4350 | } | |
4351 | return resultobj; | |
4352 | fail: | |
4353 | return NULL; | |
4354 | } | |
4355 | ||
4356 | ||
4357 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4358 | PyObject *resultobj; | |
4359 | wxRect *arg1 = (wxRect *) 0 ; | |
4360 | wxRect *arg2 = 0 ; | |
4361 | wxRect *result; | |
4362 | wxRect temp2 ; | |
4363 | PyObject * obj0 = 0 ; | |
4364 | PyObject * obj1 = 0 ; | |
4365 | char *kwnames[] = { | |
4366 | (char *) "self",(char *) "rect", NULL | |
4367 | }; | |
4368 | ||
4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4372 | { | |
4373 | arg2 = &temp2; | |
4374 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4375 | } | |
4376 | { | |
4377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4378 | { | |
4379 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4380 | result = (wxRect *) &_result_ref; | |
4381 | } | |
4382 | ||
4383 | wxPyEndAllowThreads(__tstate); | |
4384 | if (PyErr_Occurred()) SWIG_fail; | |
4385 | } | |
4386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4387 | return resultobj; | |
4388 | fail: | |
4389 | return NULL; | |
4390 | } | |
4391 | ||
4392 | ||
4393 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4394 | PyObject *resultobj; | |
4395 | wxRect *arg1 = (wxRect *) 0 ; | |
4396 | wxRect *arg2 = 0 ; | |
4397 | bool result; | |
4398 | wxRect temp2 ; | |
4399 | PyObject * obj0 = 0 ; | |
4400 | PyObject * obj1 = 0 ; | |
4401 | char *kwnames[] = { | |
4402 | (char *) "self",(char *) "rect", NULL | |
4403 | }; | |
4404 | ||
4405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4408 | { | |
4409 | arg2 = &temp2; | |
4410 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4411 | } | |
4412 | { | |
4413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4414 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4415 | ||
4416 | wxPyEndAllowThreads(__tstate); | |
4417 | if (PyErr_Occurred()) SWIG_fail; | |
4418 | } | |
4419 | { | |
4420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4421 | } | |
4422 | return resultobj; | |
4423 | fail: | |
4424 | return NULL; | |
4425 | } | |
4426 | ||
4427 | ||
4428 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4429 | PyObject *resultobj; | |
4430 | wxRect *arg1 = (wxRect *) 0 ; | |
4431 | wxRect *arg2 = 0 ; | |
4432 | bool result; | |
4433 | wxRect temp2 ; | |
4434 | PyObject * obj0 = 0 ; | |
4435 | PyObject * obj1 = 0 ; | |
4436 | char *kwnames[] = { | |
4437 | (char *) "self",(char *) "rect", NULL | |
4438 | }; | |
4439 | ||
4440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4443 | { | |
4444 | arg2 = &temp2; | |
4445 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4446 | } | |
4447 | { | |
4448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4449 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4450 | ||
4451 | wxPyEndAllowThreads(__tstate); | |
4452 | if (PyErr_Occurred()) SWIG_fail; | |
4453 | } | |
4454 | { | |
4455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4456 | } | |
4457 | return resultobj; | |
4458 | fail: | |
4459 | return NULL; | |
4460 | } | |
4461 | ||
4462 | ||
4463 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4464 | PyObject *resultobj; | |
4465 | wxRect *arg1 = (wxRect *) 0 ; | |
4466 | int arg2 ; | |
4467 | int arg3 ; | |
4468 | bool result; | |
4469 | PyObject * obj0 = 0 ; | |
4470 | PyObject * obj1 = 0 ; | |
4471 | PyObject * obj2 = 0 ; | |
4472 | char *kwnames[] = { | |
4473 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4474 | }; | |
4475 | ||
4476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4479 | arg2 = (int) SWIG_AsInt(obj1); | |
4480 | if (PyErr_Occurred()) SWIG_fail; | |
4481 | arg3 = (int) SWIG_AsInt(obj2); | |
4482 | if (PyErr_Occurred()) SWIG_fail; | |
4483 | { | |
4484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4485 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4486 | ||
4487 | wxPyEndAllowThreads(__tstate); | |
4488 | if (PyErr_Occurred()) SWIG_fail; | |
4489 | } | |
4490 | { | |
4491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4492 | } | |
4493 | return resultobj; | |
4494 | fail: | |
4495 | return NULL; | |
4496 | } | |
4497 | ||
4498 | ||
4499 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4500 | PyObject *resultobj; | |
4501 | wxRect *arg1 = (wxRect *) 0 ; | |
4502 | wxPoint *arg2 = 0 ; | |
4503 | bool result; | |
4504 | wxPoint temp2 ; | |
4505 | PyObject * obj0 = 0 ; | |
4506 | PyObject * obj1 = 0 ; | |
4507 | char *kwnames[] = { | |
4508 | (char *) "self",(char *) "pt", NULL | |
4509 | }; | |
4510 | ||
4511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
4512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4514 | { | |
4515 | arg2 = &temp2; | |
4516 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4517 | } | |
4518 | { | |
4519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4520 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4521 | ||
4522 | wxPyEndAllowThreads(__tstate); | |
4523 | if (PyErr_Occurred()) SWIG_fail; | |
4524 | } | |
4525 | { | |
4526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4527 | } | |
4528 | return resultobj; | |
4529 | fail: | |
4530 | return NULL; | |
4531 | } | |
4532 | ||
4533 | ||
4534 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4535 | PyObject *resultobj; | |
4536 | wxRect *arg1 = (wxRect *) 0 ; | |
4537 | wxRect *arg2 = 0 ; | |
4538 | bool result; | |
4539 | wxRect temp2 ; | |
4540 | PyObject * obj0 = 0 ; | |
4541 | PyObject * obj1 = 0 ; | |
4542 | char *kwnames[] = { | |
4543 | (char *) "self",(char *) "rect", NULL | |
4544 | }; | |
4545 | ||
4546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
4547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4549 | { | |
4550 | arg2 = &temp2; | |
4551 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4552 | } | |
4553 | { | |
4554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4555 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4556 | ||
4557 | wxPyEndAllowThreads(__tstate); | |
4558 | if (PyErr_Occurred()) SWIG_fail; | |
4559 | } | |
4560 | { | |
4561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4562 | } | |
4563 | return resultobj; | |
4564 | fail: | |
4565 | return NULL; | |
4566 | } | |
4567 | ||
4568 | ||
4569 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4570 | PyObject *resultobj; | |
4571 | wxRect *arg1 = (wxRect *) 0 ; | |
4572 | int arg2 ; | |
4573 | PyObject * obj0 = 0 ; | |
4574 | PyObject * obj1 = 0 ; | |
4575 | char *kwnames[] = { | |
4576 | (char *) "self",(char *) "x", NULL | |
4577 | }; | |
4578 | ||
4579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; | |
4580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4582 | arg2 = (int) SWIG_AsInt(obj1); | |
4583 | if (PyErr_Occurred()) SWIG_fail; | |
4584 | if (arg1) (arg1)->x = arg2; | |
4585 | ||
4586 | Py_INCREF(Py_None); resultobj = Py_None; | |
4587 | return resultobj; | |
4588 | fail: | |
4589 | return NULL; | |
4590 | } | |
4591 | ||
4592 | ||
4593 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4594 | PyObject *resultobj; | |
4595 | wxRect *arg1 = (wxRect *) 0 ; | |
4596 | int result; | |
4597 | PyObject * obj0 = 0 ; | |
4598 | char *kwnames[] = { | |
4599 | (char *) "self", NULL | |
4600 | }; | |
4601 | ||
4602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
4603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4605 | result = (int) ((arg1)->x); | |
4606 | ||
4607 | resultobj = SWIG_FromInt((int)result); | |
4608 | return resultobj; | |
4609 | fail: | |
4610 | return NULL; | |
4611 | } | |
4612 | ||
4613 | ||
4614 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4615 | PyObject *resultobj; | |
4616 | wxRect *arg1 = (wxRect *) 0 ; | |
4617 | int arg2 ; | |
4618 | PyObject * obj0 = 0 ; | |
4619 | PyObject * obj1 = 0 ; | |
4620 | char *kwnames[] = { | |
4621 | (char *) "self",(char *) "y", NULL | |
4622 | }; | |
4623 | ||
4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; | |
4625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4627 | arg2 = (int) SWIG_AsInt(obj1); | |
4628 | if (PyErr_Occurred()) SWIG_fail; | |
4629 | if (arg1) (arg1)->y = arg2; | |
4630 | ||
4631 | Py_INCREF(Py_None); resultobj = Py_None; | |
4632 | return resultobj; | |
4633 | fail: | |
4634 | return NULL; | |
4635 | } | |
4636 | ||
4637 | ||
4638 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4639 | PyObject *resultobj; | |
4640 | wxRect *arg1 = (wxRect *) 0 ; | |
4641 | int result; | |
4642 | PyObject * obj0 = 0 ; | |
4643 | char *kwnames[] = { | |
4644 | (char *) "self", NULL | |
4645 | }; | |
4646 | ||
4647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
4648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4650 | result = (int) ((arg1)->y); | |
4651 | ||
4652 | resultobj = SWIG_FromInt((int)result); | |
4653 | return resultobj; | |
4654 | fail: | |
4655 | return NULL; | |
4656 | } | |
4657 | ||
4658 | ||
4659 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4660 | PyObject *resultobj; | |
4661 | wxRect *arg1 = (wxRect *) 0 ; | |
4662 | int arg2 ; | |
4663 | PyObject * obj0 = 0 ; | |
4664 | PyObject * obj1 = 0 ; | |
4665 | char *kwnames[] = { | |
4666 | (char *) "self",(char *) "width", NULL | |
4667 | }; | |
4668 | ||
4669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; | |
4670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4672 | arg2 = (int) SWIG_AsInt(obj1); | |
4673 | if (PyErr_Occurred()) SWIG_fail; | |
4674 | if (arg1) (arg1)->width = arg2; | |
4675 | ||
4676 | Py_INCREF(Py_None); resultobj = Py_None; | |
4677 | return resultobj; | |
4678 | fail: | |
4679 | return NULL; | |
4680 | } | |
4681 | ||
4682 | ||
4683 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4684 | PyObject *resultobj; | |
4685 | wxRect *arg1 = (wxRect *) 0 ; | |
4686 | int result; | |
4687 | PyObject * obj0 = 0 ; | |
4688 | char *kwnames[] = { | |
4689 | (char *) "self", NULL | |
4690 | }; | |
4691 | ||
4692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
4693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4695 | result = (int) ((arg1)->width); | |
4696 | ||
4697 | resultobj = SWIG_FromInt((int)result); | |
4698 | return resultobj; | |
4699 | fail: | |
4700 | return NULL; | |
4701 | } | |
4702 | ||
4703 | ||
4704 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4705 | PyObject *resultobj; | |
4706 | wxRect *arg1 = (wxRect *) 0 ; | |
4707 | int arg2 ; | |
4708 | PyObject * obj0 = 0 ; | |
4709 | PyObject * obj1 = 0 ; | |
4710 | char *kwnames[] = { | |
4711 | (char *) "self",(char *) "height", NULL | |
4712 | }; | |
4713 | ||
4714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; | |
4715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4717 | arg2 = (int) SWIG_AsInt(obj1); | |
4718 | if (PyErr_Occurred()) SWIG_fail; | |
4719 | if (arg1) (arg1)->height = arg2; | |
4720 | ||
4721 | Py_INCREF(Py_None); resultobj = Py_None; | |
4722 | return resultobj; | |
4723 | fail: | |
4724 | return NULL; | |
4725 | } | |
4726 | ||
4727 | ||
4728 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4729 | PyObject *resultobj; | |
4730 | wxRect *arg1 = (wxRect *) 0 ; | |
4731 | int result; | |
4732 | PyObject * obj0 = 0 ; | |
4733 | char *kwnames[] = { | |
4734 | (char *) "self", NULL | |
4735 | }; | |
4736 | ||
4737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
4738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4740 | result = (int) ((arg1)->height); | |
4741 | ||
4742 | resultobj = SWIG_FromInt((int)result); | |
4743 | return resultobj; | |
4744 | fail: | |
4745 | return NULL; | |
4746 | } | |
4747 | ||
4748 | ||
4749 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4750 | PyObject *resultobj; | |
4751 | wxRect *arg1 = (wxRect *) 0 ; | |
4752 | int arg2 = (int) 0 ; | |
4753 | int arg3 = (int) 0 ; | |
4754 | int arg4 = (int) 0 ; | |
4755 | int arg5 = (int) 0 ; | |
4756 | PyObject * obj0 = 0 ; | |
4757 | PyObject * obj1 = 0 ; | |
4758 | PyObject * obj2 = 0 ; | |
4759 | PyObject * obj3 = 0 ; | |
4760 | PyObject * obj4 = 0 ; | |
4761 | char *kwnames[] = { | |
4762 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4763 | }; | |
4764 | ||
4765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
4766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4768 | if (obj1) { | |
4769 | arg2 = (int) SWIG_AsInt(obj1); | |
4770 | if (PyErr_Occurred()) SWIG_fail; | |
4771 | } | |
4772 | if (obj2) { | |
4773 | arg3 = (int) SWIG_AsInt(obj2); | |
4774 | if (PyErr_Occurred()) SWIG_fail; | |
4775 | } | |
4776 | if (obj3) { | |
4777 | arg4 = (int) SWIG_AsInt(obj3); | |
4778 | if (PyErr_Occurred()) SWIG_fail; | |
4779 | } | |
4780 | if (obj4) { | |
4781 | arg5 = (int) SWIG_AsInt(obj4); | |
4782 | if (PyErr_Occurred()) SWIG_fail; | |
4783 | } | |
4784 | { | |
4785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4786 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4787 | ||
4788 | wxPyEndAllowThreads(__tstate); | |
4789 | if (PyErr_Occurred()) SWIG_fail; | |
4790 | } | |
4791 | Py_INCREF(Py_None); resultobj = Py_None; | |
4792 | return resultobj; | |
4793 | fail: | |
4794 | return NULL; | |
4795 | } | |
4796 | ||
4797 | ||
4798 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4799 | PyObject *resultobj; | |
4800 | wxRect *arg1 = (wxRect *) 0 ; | |
4801 | PyObject *result; | |
4802 | PyObject * obj0 = 0 ; | |
4803 | char *kwnames[] = { | |
4804 | (char *) "self", NULL | |
4805 | }; | |
4806 | ||
4807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; | |
4808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4810 | { | |
4811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4812 | result = (PyObject *)wxRect_Get(arg1); | |
4813 | ||
4814 | wxPyEndAllowThreads(__tstate); | |
4815 | if (PyErr_Occurred()) SWIG_fail; | |
4816 | } | |
4817 | resultobj = result; | |
4818 | return resultobj; | |
4819 | fail: | |
4820 | return NULL; | |
4821 | } | |
4822 | ||
4823 | ||
4824 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4825 | PyObject *obj; | |
4826 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4827 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4828 | Py_INCREF(obj); | |
4829 | return Py_BuildValue((char *)""); | |
4830 | } | |
4831 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4832 | PyObject *resultobj; | |
4833 | wxRect *arg1 = (wxRect *) 0 ; | |
4834 | wxRect *arg2 = (wxRect *) 0 ; | |
4835 | PyObject *result; | |
4836 | PyObject * obj0 = 0 ; | |
4837 | PyObject * obj1 = 0 ; | |
4838 | char *kwnames[] = { | |
4839 | (char *) "r1",(char *) "r2", NULL | |
4840 | }; | |
4841 | ||
4842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4845 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
4846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4847 | { | |
0439c23b | 4848 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4850 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4851 | ||
4852 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4853 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4854 | } |
4855 | resultobj = result; | |
4856 | return resultobj; | |
4857 | fail: | |
4858 | return NULL; | |
4859 | } | |
4860 | ||
4861 | ||
4862 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4863 | PyObject *resultobj; | |
4864 | double arg1 = (double) 0.0 ; | |
4865 | double arg2 = (double) 0.0 ; | |
4866 | wxPoint2D *result; | |
4867 | PyObject * obj0 = 0 ; | |
4868 | PyObject * obj1 = 0 ; | |
4869 | char *kwnames[] = { | |
4870 | (char *) "x",(char *) "y", NULL | |
4871 | }; | |
4872 | ||
4873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; | |
4874 | if (obj0) { | |
4875 | arg1 = (double) SWIG_AsDouble(obj0); | |
4876 | if (PyErr_Occurred()) SWIG_fail; | |
4877 | } | |
4878 | if (obj1) { | |
4879 | arg2 = (double) SWIG_AsDouble(obj1); | |
4880 | if (PyErr_Occurred()) SWIG_fail; | |
4881 | } | |
4882 | { | |
4883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4884 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4885 | ||
4886 | wxPyEndAllowThreads(__tstate); | |
4887 | if (PyErr_Occurred()) SWIG_fail; | |
4888 | } | |
4889 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
4890 | return resultobj; | |
4891 | fail: | |
4892 | return NULL; | |
4893 | } | |
4894 | ||
4895 | ||
4896 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4897 | PyObject *resultobj; | |
4898 | wxPoint2D *arg1 = 0 ; | |
4899 | wxPoint2D *result; | |
4900 | wxPoint2D temp1 ; | |
4901 | PyObject * obj0 = 0 ; | |
4902 | char *kwnames[] = { | |
4903 | (char *) "pt", NULL | |
4904 | }; | |
4905 | ||
4906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4907 | { | |
4908 | arg1 = &temp1; | |
4909 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4910 | } | |
4911 | { | |
4912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4913 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4914 | ||
4915 | wxPyEndAllowThreads(__tstate); | |
4916 | if (PyErr_Occurred()) SWIG_fail; | |
4917 | } | |
4918 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
4919 | return resultobj; | |
4920 | fail: | |
4921 | return NULL; | |
4922 | } | |
4923 | ||
4924 | ||
4925 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4926 | PyObject *resultobj; | |
4927 | wxPoint *arg1 = 0 ; | |
4928 | wxPoint2D *result; | |
4929 | wxPoint temp1 ; | |
4930 | PyObject * obj0 = 0 ; | |
4931 | char *kwnames[] = { | |
4932 | (char *) "pt", NULL | |
4933 | }; | |
4934 | ||
4935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4936 | { | |
4937 | arg1 = &temp1; | |
4938 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4939 | } | |
4940 | { | |
4941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4942 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4943 | ||
4944 | wxPyEndAllowThreads(__tstate); | |
4945 | if (PyErr_Occurred()) SWIG_fail; | |
4946 | } | |
4947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
4948 | return resultobj; | |
4949 | fail: | |
4950 | return NULL; | |
4951 | } | |
4952 | ||
4953 | ||
4954 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4955 | PyObject *resultobj; | |
4956 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4957 | int *arg2 = (int *) 0 ; | |
4958 | int *arg3 = (int *) 0 ; | |
4959 | int temp2 ; | |
4960 | int temp3 ; | |
4961 | PyObject * obj0 = 0 ; | |
4962 | char *kwnames[] = { | |
4963 | (char *) "self", NULL | |
4964 | }; | |
4965 | ||
4966 | arg2 = &temp2; | |
4967 | arg3 = &temp3; | |
4968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
4969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
4970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4971 | { | |
4972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4973 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4974 | ||
4975 | wxPyEndAllowThreads(__tstate); | |
4976 | if (PyErr_Occurred()) SWIG_fail; | |
4977 | } | |
4978 | Py_INCREF(Py_None); resultobj = Py_None; | |
4979 | { | |
4980 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4981 | resultobj = t_output_helper(resultobj,o); | |
4982 | } | |
4983 | { | |
4984 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4985 | resultobj = t_output_helper(resultobj,o); | |
4986 | } | |
4987 | return resultobj; | |
4988 | fail: | |
4989 | return NULL; | |
4990 | } | |
4991 | ||
4992 | ||
4993 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4994 | PyObject *resultobj; | |
4995 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4996 | int *arg2 = (int *) 0 ; | |
4997 | int *arg3 = (int *) 0 ; | |
4998 | int temp2 ; | |
4999 | int temp3 ; | |
5000 | PyObject * obj0 = 0 ; | |
5001 | char *kwnames[] = { | |
5002 | (char *) "self", NULL | |
5003 | }; | |
5004 | ||
5005 | arg2 = &temp2; | |
5006 | arg3 = &temp3; | |
5007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
5008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5010 | { | |
5011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5012 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
5013 | ||
5014 | wxPyEndAllowThreads(__tstate); | |
5015 | if (PyErr_Occurred()) SWIG_fail; | |
5016 | } | |
5017 | Py_INCREF(Py_None); resultobj = Py_None; | |
5018 | { | |
5019 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
5020 | resultobj = t_output_helper(resultobj,o); | |
5021 | } | |
5022 | { | |
5023 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
5024 | resultobj = t_output_helper(resultobj,o); | |
5025 | } | |
5026 | return resultobj; | |
5027 | fail: | |
5028 | return NULL; | |
5029 | } | |
5030 | ||
5031 | ||
5032 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5033 | PyObject *resultobj; | |
5034 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5035 | double result; | |
5036 | PyObject * obj0 = 0 ; | |
5037 | char *kwnames[] = { | |
5038 | (char *) "self", NULL | |
5039 | }; | |
5040 | ||
5041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
5042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5044 | { | |
5045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5046 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
5047 | ||
5048 | wxPyEndAllowThreads(__tstate); | |
5049 | if (PyErr_Occurred()) SWIG_fail; | |
5050 | } | |
5051 | resultobj = SWIG_FromDouble((double)result); | |
5052 | return resultobj; | |
5053 | fail: | |
5054 | return NULL; | |
5055 | } | |
5056 | ||
5057 | ||
5058 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5059 | PyObject *resultobj; | |
5060 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5061 | double result; | |
5062 | PyObject * obj0 = 0 ; | |
5063 | char *kwnames[] = { | |
5064 | (char *) "self", NULL | |
5065 | }; | |
5066 | ||
5067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
5068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5070 | { | |
5071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5072 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
5073 | ||
5074 | wxPyEndAllowThreads(__tstate); | |
5075 | if (PyErr_Occurred()) SWIG_fail; | |
5076 | } | |
5077 | resultobj = SWIG_FromDouble((double)result); | |
5078 | return resultobj; | |
5079 | fail: | |
5080 | return NULL; | |
5081 | } | |
5082 | ||
5083 | ||
5084 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5085 | PyObject *resultobj; | |
5086 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5087 | double arg2 ; | |
5088 | PyObject * obj0 = 0 ; | |
5089 | PyObject * obj1 = 0 ; | |
5090 | char *kwnames[] = { | |
5091 | (char *) "self",(char *) "length", NULL | |
5092 | }; | |
5093 | ||
5094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; | |
5095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5097 | arg2 = (double) SWIG_AsDouble(obj1); | |
5098 | if (PyErr_Occurred()) SWIG_fail; | |
5099 | { | |
5100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5101 | (arg1)->SetVectorLength(arg2); | |
5102 | ||
5103 | wxPyEndAllowThreads(__tstate); | |
5104 | if (PyErr_Occurred()) SWIG_fail; | |
5105 | } | |
5106 | Py_INCREF(Py_None); resultobj = Py_None; | |
5107 | return resultobj; | |
5108 | fail: | |
5109 | return NULL; | |
5110 | } | |
5111 | ||
5112 | ||
5113 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5114 | PyObject *resultobj; | |
5115 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5116 | double arg2 ; | |
5117 | PyObject * obj0 = 0 ; | |
5118 | PyObject * obj1 = 0 ; | |
5119 | char *kwnames[] = { | |
5120 | (char *) "self",(char *) "degrees", NULL | |
5121 | }; | |
5122 | ||
5123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; | |
5124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5126 | arg2 = (double) SWIG_AsDouble(obj1); | |
5127 | if (PyErr_Occurred()) SWIG_fail; | |
5128 | { | |
5129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5130 | (arg1)->SetVectorAngle(arg2); | |
5131 | ||
5132 | wxPyEndAllowThreads(__tstate); | |
5133 | if (PyErr_Occurred()) SWIG_fail; | |
5134 | } | |
5135 | Py_INCREF(Py_None); resultobj = Py_None; | |
5136 | return resultobj; | |
5137 | fail: | |
5138 | return NULL; | |
5139 | } | |
5140 | ||
5141 | ||
5142 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5143 | PyObject *resultobj; | |
5144 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5145 | wxPoint2D *arg2 = 0 ; | |
5146 | double result; | |
5147 | wxPoint2D temp2 ; | |
5148 | PyObject * obj0 = 0 ; | |
5149 | PyObject * obj1 = 0 ; | |
5150 | char *kwnames[] = { | |
5151 | (char *) "self",(char *) "pt", NULL | |
5152 | }; | |
5153 | ||
5154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
5155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5157 | { | |
5158 | arg2 = &temp2; | |
5159 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5160 | } | |
5161 | { | |
5162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5163 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5164 | ||
5165 | wxPyEndAllowThreads(__tstate); | |
5166 | if (PyErr_Occurred()) SWIG_fail; | |
5167 | } | |
5168 | resultobj = SWIG_FromDouble((double)result); | |
5169 | return resultobj; | |
5170 | fail: | |
5171 | return NULL; | |
5172 | } | |
5173 | ||
5174 | ||
5175 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5176 | PyObject *resultobj; | |
5177 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5178 | wxPoint2D *arg2 = 0 ; | |
5179 | double result; | |
5180 | wxPoint2D temp2 ; | |
5181 | PyObject * obj0 = 0 ; | |
5182 | PyObject * obj1 = 0 ; | |
5183 | char *kwnames[] = { | |
5184 | (char *) "self",(char *) "pt", NULL | |
5185 | }; | |
5186 | ||
5187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
5188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5190 | { | |
5191 | arg2 = &temp2; | |
5192 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5193 | } | |
5194 | { | |
5195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5196 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5197 | ||
5198 | wxPyEndAllowThreads(__tstate); | |
5199 | if (PyErr_Occurred()) SWIG_fail; | |
5200 | } | |
5201 | resultobj = SWIG_FromDouble((double)result); | |
5202 | return resultobj; | |
5203 | fail: | |
5204 | return NULL; | |
5205 | } | |
5206 | ||
5207 | ||
5208 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5209 | PyObject *resultobj; | |
5210 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5211 | wxPoint2D *arg2 = 0 ; | |
5212 | double result; | |
5213 | wxPoint2D temp2 ; | |
5214 | PyObject * obj0 = 0 ; | |
5215 | PyObject * obj1 = 0 ; | |
5216 | char *kwnames[] = { | |
5217 | (char *) "self",(char *) "vec", NULL | |
5218 | }; | |
5219 | ||
5220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
5221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5223 | { | |
5224 | arg2 = &temp2; | |
5225 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5226 | } | |
5227 | { | |
5228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5229 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5230 | ||
5231 | wxPyEndAllowThreads(__tstate); | |
5232 | if (PyErr_Occurred()) SWIG_fail; | |
5233 | } | |
5234 | resultobj = SWIG_FromDouble((double)result); | |
5235 | return resultobj; | |
5236 | fail: | |
5237 | return NULL; | |
5238 | } | |
5239 | ||
5240 | ||
5241 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5242 | PyObject *resultobj; | |
5243 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5244 | wxPoint2D *arg2 = 0 ; | |
5245 | double result; | |
5246 | wxPoint2D temp2 ; | |
5247 | PyObject * obj0 = 0 ; | |
5248 | PyObject * obj1 = 0 ; | |
5249 | char *kwnames[] = { | |
5250 | (char *) "self",(char *) "vec", NULL | |
5251 | }; | |
5252 | ||
5253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
5254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5256 | { | |
5257 | arg2 = &temp2; | |
5258 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5259 | } | |
5260 | { | |
5261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5262 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5263 | ||
5264 | wxPyEndAllowThreads(__tstate); | |
5265 | if (PyErr_Occurred()) SWIG_fail; | |
5266 | } | |
5267 | resultobj = SWIG_FromDouble((double)result); | |
5268 | return resultobj; | |
5269 | fail: | |
5270 | return NULL; | |
5271 | } | |
5272 | ||
5273 | ||
5274 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5275 | PyObject *resultobj; | |
5276 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5277 | wxPoint2D result; | |
5278 | PyObject * obj0 = 0 ; | |
5279 | char *kwnames[] = { | |
5280 | (char *) "self", NULL | |
5281 | }; | |
5282 | ||
5283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
5284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5286 | { | |
5287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5288 | result = (arg1)->operator -(); | |
5289 | ||
5290 | wxPyEndAllowThreads(__tstate); | |
5291 | if (PyErr_Occurred()) SWIG_fail; | |
5292 | } | |
5293 | { | |
5294 | wxPoint2D * resultptr; | |
5295 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
5296 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); | |
5297 | } | |
5298 | return resultobj; | |
5299 | fail: | |
5300 | return NULL; | |
5301 | } | |
5302 | ||
5303 | ||
5304 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5305 | PyObject *resultobj; | |
5306 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5307 | wxPoint2D *arg2 = 0 ; | |
5308 | wxPoint2D *result; | |
5309 | wxPoint2D temp2 ; | |
5310 | PyObject * obj0 = 0 ; | |
5311 | PyObject * obj1 = 0 ; | |
5312 | char *kwnames[] = { | |
5313 | (char *) "self",(char *) "pt", NULL | |
5314 | }; | |
5315 | ||
5316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
5317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5319 | { | |
5320 | arg2 = &temp2; | |
5321 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5322 | } | |
5323 | { | |
5324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5325 | { | |
5326 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5327 | result = (wxPoint2D *) &_result_ref; | |
5328 | } | |
5329 | ||
5330 | wxPyEndAllowThreads(__tstate); | |
5331 | if (PyErr_Occurred()) SWIG_fail; | |
5332 | } | |
5333 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5334 | return resultobj; | |
5335 | fail: | |
5336 | return NULL; | |
5337 | } | |
5338 | ||
5339 | ||
5340 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5341 | PyObject *resultobj; | |
5342 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5343 | wxPoint2D *arg2 = 0 ; | |
5344 | wxPoint2D *result; | |
5345 | wxPoint2D temp2 ; | |
5346 | PyObject * obj0 = 0 ; | |
5347 | PyObject * obj1 = 0 ; | |
5348 | char *kwnames[] = { | |
5349 | (char *) "self",(char *) "pt", NULL | |
5350 | }; | |
5351 | ||
5352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
5353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5355 | { | |
5356 | arg2 = &temp2; | |
5357 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5358 | } | |
5359 | { | |
5360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5361 | { | |
5362 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5363 | result = (wxPoint2D *) &_result_ref; | |
5364 | } | |
5365 | ||
5366 | wxPyEndAllowThreads(__tstate); | |
5367 | if (PyErr_Occurred()) SWIG_fail; | |
5368 | } | |
5369 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5370 | return resultobj; | |
5371 | fail: | |
5372 | return NULL; | |
5373 | } | |
5374 | ||
5375 | ||
5376 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5377 | PyObject *resultobj; | |
5378 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5379 | wxPoint2D *arg2 = 0 ; | |
5380 | wxPoint2D *result; | |
5381 | wxPoint2D temp2 ; | |
5382 | PyObject * obj0 = 0 ; | |
5383 | PyObject * obj1 = 0 ; | |
5384 | char *kwnames[] = { | |
5385 | (char *) "self",(char *) "pt", NULL | |
5386 | }; | |
5387 | ||
5388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
5389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5391 | { | |
5392 | arg2 = &temp2; | |
5393 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5394 | } | |
5395 | { | |
5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5397 | { | |
5398 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5399 | result = (wxPoint2D *) &_result_ref; | |
5400 | } | |
5401 | ||
5402 | wxPyEndAllowThreads(__tstate); | |
5403 | if (PyErr_Occurred()) SWIG_fail; | |
5404 | } | |
5405 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5406 | return resultobj; | |
5407 | fail: | |
5408 | return NULL; | |
5409 | } | |
5410 | ||
5411 | ||
5412 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5413 | PyObject *resultobj; | |
5414 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5415 | wxPoint2D *arg2 = 0 ; | |
5416 | wxPoint2D *result; | |
5417 | wxPoint2D temp2 ; | |
5418 | PyObject * obj0 = 0 ; | |
5419 | PyObject * obj1 = 0 ; | |
5420 | char *kwnames[] = { | |
5421 | (char *) "self",(char *) "pt", NULL | |
5422 | }; | |
5423 | ||
5424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
5425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5427 | { | |
5428 | arg2 = &temp2; | |
5429 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5430 | } | |
5431 | { | |
5432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5433 | { | |
5434 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5435 | result = (wxPoint2D *) &_result_ref; | |
5436 | } | |
5437 | ||
5438 | wxPyEndAllowThreads(__tstate); | |
5439 | if (PyErr_Occurred()) SWIG_fail; | |
5440 | } | |
5441 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5442 | return resultobj; | |
5443 | fail: | |
5444 | return NULL; | |
5445 | } | |
5446 | ||
5447 | ||
5448 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5449 | PyObject *resultobj; | |
5450 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5451 | wxPoint2D *arg2 = 0 ; | |
5452 | bool result; | |
5453 | wxPoint2D temp2 ; | |
5454 | PyObject * obj0 = 0 ; | |
5455 | PyObject * obj1 = 0 ; | |
5456 | char *kwnames[] = { | |
5457 | (char *) "self",(char *) "pt", NULL | |
5458 | }; | |
5459 | ||
5460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
5461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5463 | { | |
5464 | arg2 = &temp2; | |
5465 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5466 | } | |
5467 | { | |
5468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5469 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5470 | ||
5471 | wxPyEndAllowThreads(__tstate); | |
5472 | if (PyErr_Occurred()) SWIG_fail; | |
5473 | } | |
5474 | { | |
5475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5476 | } | |
5477 | return resultobj; | |
5478 | fail: | |
5479 | return NULL; | |
5480 | } | |
5481 | ||
5482 | ||
5483 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5484 | PyObject *resultobj; | |
5485 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5486 | wxPoint2D *arg2 = 0 ; | |
5487 | bool result; | |
5488 | wxPoint2D temp2 ; | |
5489 | PyObject * obj0 = 0 ; | |
5490 | PyObject * obj1 = 0 ; | |
5491 | char *kwnames[] = { | |
5492 | (char *) "self",(char *) "pt", NULL | |
5493 | }; | |
5494 | ||
5495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
5496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5498 | { | |
5499 | arg2 = &temp2; | |
5500 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5501 | } | |
5502 | { | |
5503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5504 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5505 | ||
5506 | wxPyEndAllowThreads(__tstate); | |
5507 | if (PyErr_Occurred()) SWIG_fail; | |
5508 | } | |
5509 | { | |
5510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5511 | } | |
5512 | return resultobj; | |
5513 | fail: | |
5514 | return NULL; | |
5515 | } | |
5516 | ||
5517 | ||
5518 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5519 | PyObject *resultobj; | |
5520 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5521 | double arg2 ; | |
5522 | PyObject * obj0 = 0 ; | |
5523 | PyObject * obj1 = 0 ; | |
5524 | char *kwnames[] = { | |
5525 | (char *) "self",(char *) "m_x", NULL | |
5526 | }; | |
5527 | ||
5528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; | |
5529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5531 | arg2 = (double) SWIG_AsDouble(obj1); | |
5532 | if (PyErr_Occurred()) SWIG_fail; | |
5533 | if (arg1) (arg1)->m_x = arg2; | |
5534 | ||
5535 | Py_INCREF(Py_None); resultobj = Py_None; | |
5536 | return resultobj; | |
5537 | fail: | |
5538 | return NULL; | |
5539 | } | |
5540 | ||
5541 | ||
5542 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5543 | PyObject *resultobj; | |
5544 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5545 | double result; | |
5546 | PyObject * obj0 = 0 ; | |
5547 | char *kwnames[] = { | |
5548 | (char *) "self", NULL | |
5549 | }; | |
5550 | ||
5551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
5552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5554 | result = (double) ((arg1)->m_x); | |
5555 | ||
5556 | resultobj = SWIG_FromDouble((double)result); | |
5557 | return resultobj; | |
5558 | fail: | |
5559 | return NULL; | |
5560 | } | |
5561 | ||
5562 | ||
5563 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5564 | PyObject *resultobj; | |
5565 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5566 | double arg2 ; | |
5567 | PyObject * obj0 = 0 ; | |
5568 | PyObject * obj1 = 0 ; | |
5569 | char *kwnames[] = { | |
5570 | (char *) "self",(char *) "m_y", NULL | |
5571 | }; | |
5572 | ||
5573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; | |
5574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5576 | arg2 = (double) SWIG_AsDouble(obj1); | |
5577 | if (PyErr_Occurred()) SWIG_fail; | |
5578 | if (arg1) (arg1)->m_y = arg2; | |
5579 | ||
5580 | Py_INCREF(Py_None); resultobj = Py_None; | |
5581 | return resultobj; | |
5582 | fail: | |
5583 | return NULL; | |
5584 | } | |
5585 | ||
5586 | ||
5587 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5588 | PyObject *resultobj; | |
5589 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5590 | double result; | |
5591 | PyObject * obj0 = 0 ; | |
5592 | char *kwnames[] = { | |
5593 | (char *) "self", NULL | |
5594 | }; | |
5595 | ||
5596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
5597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5599 | result = (double) ((arg1)->m_y); | |
5600 | ||
5601 | resultobj = SWIG_FromDouble((double)result); | |
5602 | return resultobj; | |
5603 | fail: | |
5604 | return NULL; | |
5605 | } | |
5606 | ||
5607 | ||
5608 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5609 | PyObject *resultobj; | |
5610 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5611 | double arg2 = (double) 0 ; | |
5612 | double arg3 = (double) 0 ; | |
5613 | PyObject * obj0 = 0 ; | |
5614 | PyObject * obj1 = 0 ; | |
5615 | PyObject * obj2 = 0 ; | |
5616 | char *kwnames[] = { | |
5617 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5618 | }; | |
5619 | ||
5620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5623 | if (obj1) { | |
5624 | arg2 = (double) SWIG_AsDouble(obj1); | |
5625 | if (PyErr_Occurred()) SWIG_fail; | |
5626 | } | |
5627 | if (obj2) { | |
5628 | arg3 = (double) SWIG_AsDouble(obj2); | |
5629 | if (PyErr_Occurred()) SWIG_fail; | |
5630 | } | |
5631 | { | |
5632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5633 | wxPoint2D_Set(arg1,arg2,arg3); | |
5634 | ||
5635 | wxPyEndAllowThreads(__tstate); | |
5636 | if (PyErr_Occurred()) SWIG_fail; | |
5637 | } | |
5638 | Py_INCREF(Py_None); resultobj = Py_None; | |
5639 | return resultobj; | |
5640 | fail: | |
5641 | return NULL; | |
5642 | } | |
5643 | ||
5644 | ||
5645 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5646 | PyObject *resultobj; | |
5647 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5648 | PyObject *result; | |
5649 | PyObject * obj0 = 0 ; | |
5650 | char *kwnames[] = { | |
5651 | (char *) "self", NULL | |
5652 | }; | |
5653 | ||
5654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; | |
5655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5657 | { | |
5658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5659 | result = (PyObject *)wxPoint2D_Get(arg1); | |
5660 | ||
5661 | wxPyEndAllowThreads(__tstate); | |
5662 | if (PyErr_Occurred()) SWIG_fail; | |
5663 | } | |
5664 | resultobj = result; | |
5665 | return resultobj; | |
5666 | fail: | |
5667 | return NULL; | |
5668 | } | |
5669 | ||
5670 | ||
5671 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5672 | PyObject *obj; | |
5673 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5674 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5675 | Py_INCREF(obj); | |
5676 | return Py_BuildValue((char *)""); | |
5677 | } | |
5678 | static int _wrap_DefaultPosition_set(PyObject *_val) { | |
5679 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); | |
5680 | return 1; | |
5681 | } | |
5682 | ||
5683 | ||
5684 | static PyObject *_wrap_DefaultPosition_get() { | |
5685 | PyObject *pyobj; | |
5686 | ||
5687 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); | |
5688 | return pyobj; | |
5689 | } | |
5690 | ||
5691 | ||
5692 | static int _wrap_DefaultSize_set(PyObject *_val) { | |
5693 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); | |
5694 | return 1; | |
5695 | } | |
5696 | ||
5697 | ||
5698 | static PyObject *_wrap_DefaultSize_get() { | |
5699 | PyObject *pyobj; | |
5700 | ||
5701 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); | |
5702 | return pyobj; | |
5703 | } | |
5704 | ||
5705 | ||
5706 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5707 | PyObject *resultobj; | |
5708 | PyObject *arg1 = (PyObject *) 0 ; | |
5709 | wxPyInputStream *result; | |
5710 | PyObject * obj0 = 0 ; | |
5711 | char *kwnames[] = { | |
5712 | (char *) "p", NULL | |
5713 | }; | |
5714 | ||
5715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5716 | arg1 = obj0; | |
5717 | { | |
5718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5719 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5720 | ||
5721 | wxPyEndAllowThreads(__tstate); | |
5722 | if (PyErr_Occurred()) SWIG_fail; | |
5723 | } | |
5724 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); | |
5725 | return resultobj; | |
5726 | fail: | |
5727 | return NULL; | |
5728 | } | |
5729 | ||
5730 | ||
5731 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5732 | PyObject *resultobj; | |
5733 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5734 | PyObject * obj0 = 0 ; | |
5735 | char *kwnames[] = { | |
5736 | (char *) "self", NULL | |
5737 | }; | |
5738 | ||
5739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
5740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5742 | { | |
5743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5744 | (arg1)->close(); | |
5745 | ||
5746 | wxPyEndAllowThreads(__tstate); | |
5747 | if (PyErr_Occurred()) SWIG_fail; | |
5748 | } | |
5749 | Py_INCREF(Py_None); resultobj = Py_None; | |
5750 | return resultobj; | |
5751 | fail: | |
5752 | return NULL; | |
5753 | } | |
5754 | ||
5755 | ||
5756 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5757 | PyObject *resultobj; | |
5758 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5759 | PyObject * obj0 = 0 ; | |
5760 | char *kwnames[] = { | |
5761 | (char *) "self", NULL | |
5762 | }; | |
5763 | ||
5764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
5765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5767 | { | |
5768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5769 | (arg1)->flush(); | |
5770 | ||
5771 | wxPyEndAllowThreads(__tstate); | |
5772 | if (PyErr_Occurred()) SWIG_fail; | |
5773 | } | |
5774 | Py_INCREF(Py_None); resultobj = Py_None; | |
5775 | return resultobj; | |
5776 | fail: | |
5777 | return NULL; | |
5778 | } | |
5779 | ||
5780 | ||
5781 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5782 | PyObject *resultobj; | |
5783 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5784 | bool result; | |
5785 | PyObject * obj0 = 0 ; | |
5786 | char *kwnames[] = { | |
5787 | (char *) "self", NULL | |
5788 | }; | |
5789 | ||
5790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
5791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5793 | { | |
5794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5795 | result = (bool)(arg1)->eof(); | |
5796 | ||
5797 | wxPyEndAllowThreads(__tstate); | |
5798 | if (PyErr_Occurred()) SWIG_fail; | |
5799 | } | |
5800 | { | |
5801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5802 | } | |
5803 | return resultobj; | |
5804 | fail: | |
5805 | return NULL; | |
5806 | } | |
5807 | ||
5808 | ||
5809 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5810 | PyObject *resultobj; | |
5811 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5812 | int arg2 = (int) -1 ; | |
5813 | PyObject *result; | |
5814 | PyObject * obj0 = 0 ; | |
5815 | PyObject * obj1 = 0 ; | |
5816 | char *kwnames[] = { | |
5817 | (char *) "self",(char *) "size", NULL | |
5818 | }; | |
5819 | ||
5820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; | |
5821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5823 | if (obj1) { | |
5824 | arg2 = (int) SWIG_AsInt(obj1); | |
5825 | if (PyErr_Occurred()) SWIG_fail; | |
5826 | } | |
5827 | { | |
5828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5829 | result = (PyObject *)(arg1)->read(arg2); | |
5830 | ||
5831 | wxPyEndAllowThreads(__tstate); | |
5832 | if (PyErr_Occurred()) SWIG_fail; | |
5833 | } | |
5834 | resultobj = result; | |
5835 | return resultobj; | |
5836 | fail: | |
5837 | return NULL; | |
5838 | } | |
5839 | ||
5840 | ||
5841 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5842 | PyObject *resultobj; | |
5843 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5844 | int arg2 = (int) -1 ; | |
5845 | PyObject *result; | |
5846 | PyObject * obj0 = 0 ; | |
5847 | PyObject * obj1 = 0 ; | |
5848 | char *kwnames[] = { | |
5849 | (char *) "self",(char *) "size", NULL | |
5850 | }; | |
5851 | ||
5852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; | |
5853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5855 | if (obj1) { | |
5856 | arg2 = (int) SWIG_AsInt(obj1); | |
5857 | if (PyErr_Occurred()) SWIG_fail; | |
5858 | } | |
5859 | { | |
5860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5861 | result = (PyObject *)(arg1)->readline(arg2); | |
5862 | ||
5863 | wxPyEndAllowThreads(__tstate); | |
5864 | if (PyErr_Occurred()) SWIG_fail; | |
5865 | } | |
5866 | resultobj = result; | |
5867 | return resultobj; | |
5868 | fail: | |
5869 | return NULL; | |
5870 | } | |
5871 | ||
5872 | ||
5873 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5874 | PyObject *resultobj; | |
5875 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5876 | int arg2 = (int) -1 ; | |
5877 | PyObject *result; | |
5878 | PyObject * obj0 = 0 ; | |
5879 | PyObject * obj1 = 0 ; | |
5880 | char *kwnames[] = { | |
5881 | (char *) "self",(char *) "sizehint", NULL | |
5882 | }; | |
5883 | ||
5884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; | |
5885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5887 | if (obj1) { | |
5888 | arg2 = (int) SWIG_AsInt(obj1); | |
5889 | if (PyErr_Occurred()) SWIG_fail; | |
5890 | } | |
5891 | { | |
5892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5893 | result = (PyObject *)(arg1)->readlines(arg2); | |
5894 | ||
5895 | wxPyEndAllowThreads(__tstate); | |
5896 | if (PyErr_Occurred()) SWIG_fail; | |
5897 | } | |
5898 | resultobj = result; | |
5899 | return resultobj; | |
5900 | fail: | |
5901 | return NULL; | |
5902 | } | |
5903 | ||
5904 | ||
5905 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5906 | PyObject *resultobj; | |
5907 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5908 | int arg2 ; | |
5909 | int arg3 = (int) 0 ; | |
5910 | PyObject * obj0 = 0 ; | |
5911 | PyObject * obj1 = 0 ; | |
5912 | PyObject * obj2 = 0 ; | |
5913 | char *kwnames[] = { | |
5914 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5915 | }; | |
5916 | ||
5917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5920 | arg2 = (int) SWIG_AsInt(obj1); | |
5921 | if (PyErr_Occurred()) SWIG_fail; | |
5922 | if (obj2) { | |
5923 | arg3 = (int) SWIG_AsInt(obj2); | |
5924 | if (PyErr_Occurred()) SWIG_fail; | |
5925 | } | |
5926 | { | |
5927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5928 | (arg1)->seek(arg2,arg3); | |
5929 | ||
5930 | wxPyEndAllowThreads(__tstate); | |
5931 | if (PyErr_Occurred()) SWIG_fail; | |
5932 | } | |
5933 | Py_INCREF(Py_None); resultobj = Py_None; | |
5934 | return resultobj; | |
5935 | fail: | |
5936 | return NULL; | |
5937 | } | |
5938 | ||
5939 | ||
5940 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5941 | PyObject *resultobj; | |
5942 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5943 | int result; | |
5944 | PyObject * obj0 = 0 ; | |
5945 | char *kwnames[] = { | |
5946 | (char *) "self", NULL | |
5947 | }; | |
5948 | ||
5949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
5950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5952 | { | |
5953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5954 | result = (int)(arg1)->tell(); | |
5955 | ||
5956 | wxPyEndAllowThreads(__tstate); | |
5957 | if (PyErr_Occurred()) SWIG_fail; | |
5958 | } | |
5959 | resultobj = SWIG_FromInt((int)result); | |
5960 | return resultobj; | |
5961 | fail: | |
5962 | return NULL; | |
5963 | } | |
5964 | ||
5965 | ||
5966 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5967 | PyObject *resultobj; | |
5968 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5969 | char result; | |
5970 | PyObject * obj0 = 0 ; | |
5971 | char *kwnames[] = { | |
5972 | (char *) "self", NULL | |
5973 | }; | |
5974 | ||
5975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
5976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5978 | { | |
5979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5980 | result = (char)(arg1)->Peek(); | |
5981 | ||
5982 | wxPyEndAllowThreads(__tstate); | |
5983 | if (PyErr_Occurred()) SWIG_fail; | |
5984 | } | |
5985 | resultobj = SWIG_FromChar((char)result); | |
5986 | return resultobj; | |
5987 | fail: | |
5988 | return NULL; | |
5989 | } | |
5990 | ||
5991 | ||
5992 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5993 | PyObject *resultobj; | |
5994 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5995 | char result; | |
5996 | PyObject * obj0 = 0 ; | |
5997 | char *kwnames[] = { | |
5998 | (char *) "self", NULL | |
5999 | }; | |
6000 | ||
6001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
6002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6004 | { | |
6005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6006 | result = (char)(arg1)->GetC(); | |
6007 | ||
6008 | wxPyEndAllowThreads(__tstate); | |
6009 | if (PyErr_Occurred()) SWIG_fail; | |
6010 | } | |
6011 | resultobj = SWIG_FromChar((char)result); | |
6012 | return resultobj; | |
6013 | fail: | |
6014 | return NULL; | |
6015 | } | |
6016 | ||
6017 | ||
6018 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6019 | PyObject *resultobj; | |
6020 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6021 | size_t result; | |
6022 | PyObject * obj0 = 0 ; | |
6023 | char *kwnames[] = { | |
6024 | (char *) "self", NULL | |
6025 | }; | |
6026 | ||
6027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
6028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6030 | { | |
6031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6032 | result = (size_t)(arg1)->LastRead(); | |
6033 | ||
6034 | wxPyEndAllowThreads(__tstate); | |
6035 | if (PyErr_Occurred()) SWIG_fail; | |
6036 | } | |
6037 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
6038 | return resultobj; | |
6039 | fail: | |
6040 | return NULL; | |
6041 | } | |
6042 | ||
6043 | ||
6044 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6045 | PyObject *resultobj; | |
6046 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6047 | bool result; | |
6048 | PyObject * obj0 = 0 ; | |
6049 | char *kwnames[] = { | |
6050 | (char *) "self", NULL | |
6051 | }; | |
6052 | ||
6053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
6054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6056 | { | |
6057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6058 | result = (bool)(arg1)->CanRead(); | |
6059 | ||
6060 | wxPyEndAllowThreads(__tstate); | |
6061 | if (PyErr_Occurred()) SWIG_fail; | |
6062 | } | |
6063 | { | |
6064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6065 | } | |
6066 | return resultobj; | |
6067 | fail: | |
6068 | return NULL; | |
6069 | } | |
6070 | ||
6071 | ||
6072 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6073 | PyObject *resultobj; | |
6074 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6075 | bool result; | |
6076 | PyObject * obj0 = 0 ; | |
6077 | char *kwnames[] = { | |
6078 | (char *) "self", NULL | |
6079 | }; | |
6080 | ||
6081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
6082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6084 | { | |
6085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6086 | result = (bool)(arg1)->Eof(); | |
6087 | ||
6088 | wxPyEndAllowThreads(__tstate); | |
6089 | if (PyErr_Occurred()) SWIG_fail; | |
6090 | } | |
6091 | { | |
6092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6093 | } | |
6094 | return resultobj; | |
6095 | fail: | |
6096 | return NULL; | |
6097 | } | |
6098 | ||
6099 | ||
6100 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6101 | PyObject *resultobj; | |
6102 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6103 | char arg2 ; | |
6104 | bool result; | |
6105 | PyObject * obj0 = 0 ; | |
6106 | PyObject * obj1 = 0 ; | |
6107 | char *kwnames[] = { | |
6108 | (char *) "self",(char *) "c", NULL | |
6109 | }; | |
6110 | ||
6111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; | |
6112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6114 | arg2 = (char) SWIG_AsChar(obj1); | |
6115 | if (PyErr_Occurred()) SWIG_fail; | |
6116 | { | |
6117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6118 | result = (bool)(arg1)->Ungetch(arg2); | |
6119 | ||
6120 | wxPyEndAllowThreads(__tstate); | |
6121 | if (PyErr_Occurred()) SWIG_fail; | |
6122 | } | |
6123 | { | |
6124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6125 | } | |
6126 | return resultobj; | |
6127 | fail: | |
6128 | return NULL; | |
6129 | } | |
6130 | ||
6131 | ||
6132 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6133 | PyObject *resultobj; | |
6134 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6135 | long arg2 ; | |
6136 | int arg3 = (int) wxFromStart ; | |
6137 | long result; | |
6138 | PyObject * obj0 = 0 ; | |
6139 | PyObject * obj1 = 0 ; | |
6140 | PyObject * obj2 = 0 ; | |
6141 | char *kwnames[] = { | |
6142 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6143 | }; | |
6144 | ||
6145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6148 | arg2 = (long) SWIG_AsLong(obj1); | |
6149 | if (PyErr_Occurred()) SWIG_fail; | |
6150 | if (obj2) { | |
6151 | arg3 = (wxSeekMode) SWIG_AsInt(obj2); | |
6152 | if (PyErr_Occurred()) SWIG_fail; | |
6153 | } | |
6154 | { | |
6155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6156 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6157 | ||
6158 | wxPyEndAllowThreads(__tstate); | |
6159 | if (PyErr_Occurred()) SWIG_fail; | |
6160 | } | |
6161 | resultobj = SWIG_FromLong((long)result); | |
6162 | return resultobj; | |
6163 | fail: | |
6164 | return NULL; | |
6165 | } | |
6166 | ||
6167 | ||
6168 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6169 | PyObject *resultobj; | |
6170 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6171 | long result; | |
6172 | PyObject * obj0 = 0 ; | |
6173 | char *kwnames[] = { | |
6174 | (char *) "self", NULL | |
6175 | }; | |
6176 | ||
6177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
6178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6180 | { | |
6181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6182 | result = (long)(arg1)->TellI(); | |
6183 | ||
6184 | wxPyEndAllowThreads(__tstate); | |
6185 | if (PyErr_Occurred()) SWIG_fail; | |
6186 | } | |
6187 | resultobj = SWIG_FromLong((long)result); | |
6188 | return resultobj; | |
6189 | fail: | |
6190 | return NULL; | |
6191 | } | |
6192 | ||
6193 | ||
6194 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
6195 | PyObject *obj; | |
6196 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6197 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6198 | Py_INCREF(obj); | |
6199 | return Py_BuildValue((char *)""); | |
6200 | } | |
6201 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6202 | PyObject *resultobj; | |
6203 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6204 | PyObject *arg2 = (PyObject *) 0 ; | |
6205 | PyObject * obj0 = 0 ; | |
6206 | PyObject * obj1 = 0 ; | |
6207 | char *kwnames[] = { | |
6208 | (char *) "self",(char *) "obj", NULL | |
6209 | }; | |
6210 | ||
6211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
6212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, | |
6213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6214 | arg2 = obj1; | |
6215 | { | |
6216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6217 | wxOutputStream_write(arg1,arg2); | |
6218 | ||
6219 | wxPyEndAllowThreads(__tstate); | |
6220 | if (PyErr_Occurred()) SWIG_fail; | |
6221 | } | |
6222 | Py_INCREF(Py_None); resultobj = Py_None; | |
6223 | return resultobj; | |
6224 | fail: | |
6225 | return NULL; | |
6226 | } | |
6227 | ||
6228 | ||
6229 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
6230 | PyObject *obj; | |
6231 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6232 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6233 | Py_INCREF(obj); | |
6234 | return Py_BuildValue((char *)""); | |
6235 | } | |
6236 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6237 | PyObject *resultobj; | |
6238 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6239 | wxString *arg2 = 0 ; | |
6240 | wxString *arg3 = 0 ; | |
6241 | wxString *arg4 = 0 ; | |
6242 | wxDateTime arg5 ; | |
6243 | wxFSFile *result; | |
6244 | wxPyInputStream *temp1 ; | |
6245 | bool created1 ; | |
6246 | bool temp2 = False ; | |
6247 | bool temp3 = False ; | |
6248 | bool temp4 = False ; | |
6249 | wxDateTime *argp5 ; | |
6250 | PyObject * obj0 = 0 ; | |
6251 | PyObject * obj1 = 0 ; | |
6252 | PyObject * obj2 = 0 ; | |
6253 | PyObject * obj3 = 0 ; | |
6254 | PyObject * obj4 = 0 ; | |
6255 | char *kwnames[] = { | |
6256 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6257 | }; | |
6258 | ||
6259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6260 | { | |
6261 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6262 | arg1 = temp1->m_wxis; | |
6263 | created1 = False; | |
6264 | } else { | |
6265 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
6266 | arg1 = wxPyCBInputStream_create(obj0, False); | |
6267 | if (arg1 == NULL) { | |
6268 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6269 | SWIG_fail; | |
6270 | } | |
6271 | created1 = True; | |
6272 | } | |
6273 | } | |
6274 | { | |
6275 | arg2 = wxString_in_helper(obj1); | |
6276 | if (arg2 == NULL) SWIG_fail; | |
6277 | temp2 = True; | |
6278 | } | |
6279 | { | |
6280 | arg3 = wxString_in_helper(obj2); | |
6281 | if (arg3 == NULL) SWIG_fail; | |
6282 | temp3 = True; | |
6283 | } | |
6284 | { | |
6285 | arg4 = wxString_in_helper(obj3); | |
6286 | if (arg4 == NULL) SWIG_fail; | |
6287 | temp4 = True; | |
6288 | } | |
6289 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, | |
6290 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6291 | arg5 = *argp5; | |
6292 | { | |
6293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6294 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6295 | ||
6296 | wxPyEndAllowThreads(__tstate); | |
6297 | if (PyErr_Occurred()) SWIG_fail; | |
6298 | } | |
6299 | { | |
412d302d | 6300 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
6301 | } |
6302 | { | |
6303 | if (created1) | |
6304 | delete arg1; | |
6305 | } | |
6306 | { | |
6307 | if (temp2) | |
6308 | delete arg2; | |
6309 | } | |
6310 | { | |
6311 | if (temp3) | |
6312 | delete arg3; | |
6313 | } | |
6314 | { | |
6315 | if (temp4) | |
6316 | delete arg4; | |
6317 | } | |
6318 | return resultobj; | |
6319 | fail: | |
6320 | { | |
6321 | if (created1) | |
6322 | delete arg1; | |
6323 | } | |
6324 | { | |
6325 | if (temp2) | |
6326 | delete arg2; | |
6327 | } | |
6328 | { | |
6329 | if (temp3) | |
6330 | delete arg3; | |
6331 | } | |
6332 | { | |
6333 | if (temp4) | |
6334 | delete arg4; | |
6335 | } | |
6336 | return NULL; | |
6337 | } | |
6338 | ||
6339 | ||
6340 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6341 | PyObject *resultobj; | |
6342 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6343 | PyObject * obj0 = 0 ; | |
6344 | char *kwnames[] = { | |
6345 | (char *) "self", NULL | |
6346 | }; | |
6347 | ||
6348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
6349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6351 | { | |
6352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6353 | delete arg1; | |
6354 | ||
6355 | wxPyEndAllowThreads(__tstate); | |
6356 | if (PyErr_Occurred()) SWIG_fail; | |
6357 | } | |
6358 | Py_INCREF(Py_None); resultobj = Py_None; | |
6359 | return resultobj; | |
6360 | fail: | |
6361 | return NULL; | |
6362 | } | |
6363 | ||
6364 | ||
6365 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6366 | PyObject *resultobj; | |
6367 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6368 | wxInputStream *result; | |
6369 | PyObject * obj0 = 0 ; | |
6370 | char *kwnames[] = { | |
6371 | (char *) "self", NULL | |
6372 | }; | |
6373 | ||
6374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
6375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6377 | { | |
6378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6379 | result = (wxInputStream *)(arg1)->GetStream(); | |
6380 | ||
6381 | wxPyEndAllowThreads(__tstate); | |
6382 | if (PyErr_Occurred()) SWIG_fail; | |
6383 | } | |
6384 | { | |
6385 | wxPyInputStream * _ptr = NULL; | |
6386 | ||
6387 | if (result) { | |
6388 | _ptr = new wxPyInputStream(result); | |
6389 | } | |
6390 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
6391 | } | |
6392 | return resultobj; | |
6393 | fail: | |
6394 | return NULL; | |
6395 | } | |
6396 | ||
6397 | ||
6398 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6399 | PyObject *resultobj; | |
6400 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6401 | wxString *result; | |
6402 | PyObject * obj0 = 0 ; | |
6403 | char *kwnames[] = { | |
6404 | (char *) "self", NULL | |
6405 | }; | |
6406 | ||
6407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
6408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6410 | { | |
6411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6412 | { | |
6413 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6414 | result = (wxString *) &_result_ref; | |
6415 | } | |
6416 | ||
6417 | wxPyEndAllowThreads(__tstate); | |
6418 | if (PyErr_Occurred()) SWIG_fail; | |
6419 | } | |
6420 | { | |
6421 | #if wxUSE_UNICODE | |
6422 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6423 | #else | |
6424 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6425 | #endif | |
6426 | } | |
6427 | return resultobj; | |
6428 | fail: | |
6429 | return NULL; | |
6430 | } | |
6431 | ||
6432 | ||
6433 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6434 | PyObject *resultobj; | |
6435 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6436 | wxString *result; | |
6437 | PyObject * obj0 = 0 ; | |
6438 | char *kwnames[] = { | |
6439 | (char *) "self", NULL | |
6440 | }; | |
6441 | ||
6442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
6443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6445 | { | |
6446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6447 | { | |
6448 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6449 | result = (wxString *) &_result_ref; | |
6450 | } | |
6451 | ||
6452 | wxPyEndAllowThreads(__tstate); | |
6453 | if (PyErr_Occurred()) SWIG_fail; | |
6454 | } | |
6455 | { | |
6456 | #if wxUSE_UNICODE | |
6457 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6458 | #else | |
6459 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6460 | #endif | |
6461 | } | |
6462 | return resultobj; | |
6463 | fail: | |
6464 | return NULL; | |
6465 | } | |
6466 | ||
6467 | ||
6468 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6469 | PyObject *resultobj; | |
6470 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6471 | wxString *result; | |
6472 | PyObject * obj0 = 0 ; | |
6473 | char *kwnames[] = { | |
6474 | (char *) "self", NULL | |
6475 | }; | |
6476 | ||
6477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
6478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6480 | { | |
6481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6482 | { | |
6483 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6484 | result = (wxString *) &_result_ref; | |
6485 | } | |
6486 | ||
6487 | wxPyEndAllowThreads(__tstate); | |
6488 | if (PyErr_Occurred()) SWIG_fail; | |
6489 | } | |
6490 | { | |
6491 | #if wxUSE_UNICODE | |
6492 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6493 | #else | |
6494 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6495 | #endif | |
6496 | } | |
6497 | return resultobj; | |
6498 | fail: | |
6499 | return NULL; | |
6500 | } | |
6501 | ||
6502 | ||
6503 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6504 | PyObject *resultobj; | |
6505 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6506 | wxDateTime result; | |
6507 | PyObject * obj0 = 0 ; | |
6508 | char *kwnames[] = { | |
6509 | (char *) "self", NULL | |
6510 | }; | |
6511 | ||
6512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
6513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6515 | { | |
6516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6517 | result = (arg1)->GetModificationTime(); | |
6518 | ||
6519 | wxPyEndAllowThreads(__tstate); | |
6520 | if (PyErr_Occurred()) SWIG_fail; | |
6521 | } | |
6522 | { | |
6523 | wxDateTime * resultptr; | |
6524 | resultptr = new wxDateTime((wxDateTime &) result); | |
6525 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
6526 | } | |
6527 | return resultobj; | |
6528 | fail: | |
6529 | return NULL; | |
6530 | } | |
6531 | ||
6532 | ||
6533 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6534 | PyObject *obj; | |
6535 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6536 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6537 | Py_INCREF(obj); | |
6538 | return Py_BuildValue((char *)""); | |
6539 | } | |
6540 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6541 | PyObject *obj; | |
6542 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6543 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6544 | Py_INCREF(obj); | |
6545 | return Py_BuildValue((char *)""); | |
6546 | } | |
6547 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6548 | PyObject *resultobj; | |
6549 | wxPyFileSystemHandler *result; | |
6550 | char *kwnames[] = { | |
6551 | NULL | |
6552 | }; | |
6553 | ||
6554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6555 | { | |
6556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6557 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6558 | ||
6559 | wxPyEndAllowThreads(__tstate); | |
6560 | if (PyErr_Occurred()) SWIG_fail; | |
6561 | } | |
6562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
6563 | return resultobj; | |
6564 | fail: | |
6565 | return NULL; | |
6566 | } | |
6567 | ||
6568 | ||
6569 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6570 | PyObject *resultobj; | |
6571 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6572 | PyObject *arg2 = (PyObject *) 0 ; | |
6573 | PyObject *arg3 = (PyObject *) 0 ; | |
6574 | PyObject * obj0 = 0 ; | |
6575 | PyObject * obj1 = 0 ; | |
6576 | PyObject * obj2 = 0 ; | |
6577 | char *kwnames[] = { | |
6578 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6579 | }; | |
6580 | ||
6581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6584 | arg2 = obj1; | |
6585 | arg3 = obj2; | |
6586 | { | |
6587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6588 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6589 | ||
6590 | wxPyEndAllowThreads(__tstate); | |
6591 | if (PyErr_Occurred()) SWIG_fail; | |
6592 | } | |
6593 | Py_INCREF(Py_None); resultobj = Py_None; | |
6594 | return resultobj; | |
6595 | fail: | |
6596 | return NULL; | |
6597 | } | |
6598 | ||
6599 | ||
6600 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6601 | PyObject *resultobj; | |
6602 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6603 | wxString *arg2 = 0 ; | |
6604 | bool result; | |
6605 | bool temp2 = False ; | |
6606 | PyObject * obj0 = 0 ; | |
6607 | PyObject * obj1 = 0 ; | |
6608 | char *kwnames[] = { | |
6609 | (char *) "self",(char *) "location", NULL | |
6610 | }; | |
6611 | ||
6612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6615 | { | |
6616 | arg2 = wxString_in_helper(obj1); | |
6617 | if (arg2 == NULL) SWIG_fail; | |
6618 | temp2 = True; | |
6619 | } | |
6620 | { | |
6621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6622 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6623 | ||
6624 | wxPyEndAllowThreads(__tstate); | |
6625 | if (PyErr_Occurred()) SWIG_fail; | |
6626 | } | |
6627 | { | |
6628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6629 | } | |
6630 | { | |
6631 | if (temp2) | |
6632 | delete arg2; | |
6633 | } | |
6634 | return resultobj; | |
6635 | fail: | |
6636 | { | |
6637 | if (temp2) | |
6638 | delete arg2; | |
6639 | } | |
6640 | return NULL; | |
6641 | } | |
6642 | ||
6643 | ||
6644 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6645 | PyObject *resultobj; | |
6646 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6647 | wxFileSystem *arg2 = 0 ; | |
6648 | wxString *arg3 = 0 ; | |
6649 | wxFSFile *result; | |
6650 | bool temp3 = False ; | |
6651 | PyObject * obj0 = 0 ; | |
6652 | PyObject * obj1 = 0 ; | |
6653 | PyObject * obj2 = 0 ; | |
6654 | char *kwnames[] = { | |
6655 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6656 | }; | |
6657 | ||
6658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6661 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6662 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6663 | SWIG_fail; | |
6664 | if (arg2 == NULL) { | |
6665 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6666 | SWIG_fail; | |
6667 | } | |
6668 | { | |
6669 | arg3 = wxString_in_helper(obj2); | |
6670 | if (arg3 == NULL) SWIG_fail; | |
6671 | temp3 = True; | |
6672 | } | |
6673 | { | |
6674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6675 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6676 | ||
6677 | wxPyEndAllowThreads(__tstate); | |
6678 | if (PyErr_Occurred()) SWIG_fail; | |
6679 | } | |
6680 | { | |
4cf4100f | 6681 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
6682 | } |
6683 | { | |
6684 | if (temp3) | |
6685 | delete arg3; | |
6686 | } | |
6687 | return resultobj; | |
6688 | fail: | |
6689 | { | |
6690 | if (temp3) | |
6691 | delete arg3; | |
6692 | } | |
6693 | return NULL; | |
6694 | } | |
6695 | ||
6696 | ||
6697 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6698 | PyObject *resultobj; | |
6699 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6700 | wxString *arg2 = 0 ; | |
6701 | int arg3 = (int) 0 ; | |
6702 | wxString result; | |
6703 | bool temp2 = False ; | |
6704 | PyObject * obj0 = 0 ; | |
6705 | PyObject * obj1 = 0 ; | |
6706 | PyObject * obj2 = 0 ; | |
6707 | char *kwnames[] = { | |
6708 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6709 | }; | |
6710 | ||
6711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6714 | { | |
6715 | arg2 = wxString_in_helper(obj1); | |
6716 | if (arg2 == NULL) SWIG_fail; | |
6717 | temp2 = True; | |
6718 | } | |
6719 | if (obj2) { | |
6720 | arg3 = (int) SWIG_AsInt(obj2); | |
6721 | if (PyErr_Occurred()) SWIG_fail; | |
6722 | } | |
6723 | { | |
6724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6725 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6726 | ||
6727 | wxPyEndAllowThreads(__tstate); | |
6728 | if (PyErr_Occurred()) SWIG_fail; | |
6729 | } | |
6730 | { | |
6731 | #if wxUSE_UNICODE | |
6732 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6733 | #else | |
6734 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6735 | #endif | |
6736 | } | |
6737 | { | |
6738 | if (temp2) | |
6739 | delete arg2; | |
6740 | } | |
6741 | return resultobj; | |
6742 | fail: | |
6743 | { | |
6744 | if (temp2) | |
6745 | delete arg2; | |
6746 | } | |
6747 | return NULL; | |
6748 | } | |
6749 | ||
6750 | ||
6751 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6752 | PyObject *resultobj; | |
6753 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6754 | wxString result; | |
6755 | PyObject * obj0 = 0 ; | |
6756 | char *kwnames[] = { | |
6757 | (char *) "self", NULL | |
6758 | }; | |
6759 | ||
6760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
6761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6763 | { | |
6764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6765 | result = (arg1)->FindNext(); | |
6766 | ||
6767 | wxPyEndAllowThreads(__tstate); | |
6768 | if (PyErr_Occurred()) SWIG_fail; | |
6769 | } | |
6770 | { | |
6771 | #if wxUSE_UNICODE | |
6772 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6773 | #else | |
6774 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6775 | #endif | |
6776 | } | |
6777 | return resultobj; | |
6778 | fail: | |
6779 | return NULL; | |
6780 | } | |
6781 | ||
6782 | ||
6783 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6784 | PyObject *resultobj; | |
6785 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6786 | wxString *arg2 = 0 ; | |
6787 | wxString result; | |
6788 | bool temp2 = False ; | |
6789 | PyObject * obj0 = 0 ; | |
6790 | PyObject * obj1 = 0 ; | |
6791 | char *kwnames[] = { | |
6792 | (char *) "self",(char *) "location", NULL | |
6793 | }; | |
6794 | ||
6795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
6796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6798 | { | |
6799 | arg2 = wxString_in_helper(obj1); | |
6800 | if (arg2 == NULL) SWIG_fail; | |
6801 | temp2 = True; | |
6802 | } | |
6803 | { | |
6804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6805 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6806 | ||
6807 | wxPyEndAllowThreads(__tstate); | |
6808 | if (PyErr_Occurred()) SWIG_fail; | |
6809 | } | |
6810 | { | |
6811 | #if wxUSE_UNICODE | |
6812 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6813 | #else | |
6814 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6815 | #endif | |
6816 | } | |
6817 | { | |
6818 | if (temp2) | |
6819 | delete arg2; | |
6820 | } | |
6821 | return resultobj; | |
6822 | fail: | |
6823 | { | |
6824 | if (temp2) | |
6825 | delete arg2; | |
6826 | } | |
6827 | return NULL; | |
6828 | } | |
6829 | ||
6830 | ||
6831 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6832 | PyObject *resultobj; | |
6833 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6834 | wxString *arg2 = 0 ; | |
6835 | wxString result; | |
6836 | bool temp2 = False ; | |
6837 | PyObject * obj0 = 0 ; | |
6838 | PyObject * obj1 = 0 ; | |
6839 | char *kwnames[] = { | |
6840 | (char *) "self",(char *) "location", NULL | |
6841 | }; | |
6842 | ||
6843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
6844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6846 | { | |
6847 | arg2 = wxString_in_helper(obj1); | |
6848 | if (arg2 == NULL) SWIG_fail; | |
6849 | temp2 = True; | |
6850 | } | |
6851 | { | |
6852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6853 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6854 | ||
6855 | wxPyEndAllowThreads(__tstate); | |
6856 | if (PyErr_Occurred()) SWIG_fail; | |
6857 | } | |
6858 | { | |
6859 | #if wxUSE_UNICODE | |
6860 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6861 | #else | |
6862 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6863 | #endif | |
6864 | } | |
6865 | { | |
6866 | if (temp2) | |
6867 | delete arg2; | |
6868 | } | |
6869 | return resultobj; | |
6870 | fail: | |
6871 | { | |
6872 | if (temp2) | |
6873 | delete arg2; | |
6874 | } | |
6875 | return NULL; | |
6876 | } | |
6877 | ||
6878 | ||
6879 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6880 | PyObject *resultobj; | |
6881 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6882 | wxString *arg2 = 0 ; | |
6883 | wxString result; | |
6884 | bool temp2 = False ; | |
6885 | PyObject * obj0 = 0 ; | |
6886 | PyObject * obj1 = 0 ; | |
6887 | char *kwnames[] = { | |
6888 | (char *) "self",(char *) "location", NULL | |
6889 | }; | |
6890 | ||
6891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
6892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6894 | { | |
6895 | arg2 = wxString_in_helper(obj1); | |
6896 | if (arg2 == NULL) SWIG_fail; | |
6897 | temp2 = True; | |
6898 | } | |
6899 | { | |
6900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6901 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6902 | ||
6903 | wxPyEndAllowThreads(__tstate); | |
6904 | if (PyErr_Occurred()) SWIG_fail; | |
6905 | } | |
6906 | { | |
6907 | #if wxUSE_UNICODE | |
6908 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6909 | #else | |
6910 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6911 | #endif | |
6912 | } | |
6913 | { | |
6914 | if (temp2) | |
6915 | delete arg2; | |
6916 | } | |
6917 | return resultobj; | |
6918 | fail: | |
6919 | { | |
6920 | if (temp2) | |
6921 | delete arg2; | |
6922 | } | |
6923 | return NULL; | |
6924 | } | |
6925 | ||
6926 | ||
6927 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6928 | PyObject *resultobj; | |
6929 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6930 | wxString *arg2 = 0 ; | |
6931 | wxString result; | |
6932 | bool temp2 = False ; | |
6933 | PyObject * obj0 = 0 ; | |
6934 | PyObject * obj1 = 0 ; | |
6935 | char *kwnames[] = { | |
6936 | (char *) "self",(char *) "location", NULL | |
6937 | }; | |
6938 | ||
6939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
6940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6942 | { | |
6943 | arg2 = wxString_in_helper(obj1); | |
6944 | if (arg2 == NULL) SWIG_fail; | |
6945 | temp2 = True; | |
6946 | } | |
6947 | { | |
6948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6949 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6950 | ||
6951 | wxPyEndAllowThreads(__tstate); | |
6952 | if (PyErr_Occurred()) SWIG_fail; | |
6953 | } | |
6954 | { | |
6955 | #if wxUSE_UNICODE | |
6956 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6957 | #else | |
6958 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6959 | #endif | |
6960 | } | |
6961 | { | |
6962 | if (temp2) | |
6963 | delete arg2; | |
6964 | } | |
6965 | return resultobj; | |
6966 | fail: | |
6967 | { | |
6968 | if (temp2) | |
6969 | delete arg2; | |
6970 | } | |
6971 | return NULL; | |
6972 | } | |
6973 | ||
6974 | ||
6975 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6976 | PyObject *resultobj; | |
6977 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6978 | wxString *arg2 = 0 ; | |
6979 | wxString result; | |
6980 | bool temp2 = False ; | |
6981 | PyObject * obj0 = 0 ; | |
6982 | PyObject * obj1 = 0 ; | |
6983 | char *kwnames[] = { | |
6984 | (char *) "self",(char *) "location", NULL | |
6985 | }; | |
6986 | ||
6987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
6988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6990 | { | |
6991 | arg2 = wxString_in_helper(obj1); | |
6992 | if (arg2 == NULL) SWIG_fail; | |
6993 | temp2 = True; | |
6994 | } | |
6995 | { | |
6996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6997 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6998 | ||
6999 | wxPyEndAllowThreads(__tstate); | |
7000 | if (PyErr_Occurred()) SWIG_fail; | |
7001 | } | |
7002 | { | |
7003 | #if wxUSE_UNICODE | |
7004 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7005 | #else | |
7006 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7007 | #endif | |
7008 | } | |
7009 | { | |
7010 | if (temp2) | |
7011 | delete arg2; | |
7012 | } | |
7013 | return resultobj; | |
7014 | fail: | |
7015 | { | |
7016 | if (temp2) | |
7017 | delete arg2; | |
7018 | } | |
7019 | return NULL; | |
7020 | } | |
7021 | ||
7022 | ||
7023 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
7024 | PyObject *obj; | |
7025 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7026 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
7027 | Py_INCREF(obj); | |
7028 | return Py_BuildValue((char *)""); | |
7029 | } | |
7030 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7031 | PyObject *resultobj; | |
7032 | wxFileSystem *result; | |
7033 | char *kwnames[] = { | |
7034 | NULL | |
7035 | }; | |
7036 | ||
7037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
7038 | { | |
7039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7040 | result = (wxFileSystem *)new wxFileSystem(); | |
7041 | ||
7042 | wxPyEndAllowThreads(__tstate); | |
7043 | if (PyErr_Occurred()) SWIG_fail; | |
7044 | } | |
7045 | { | |
412d302d | 7046 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7047 | } |
7048 | return resultobj; | |
7049 | fail: | |
7050 | return NULL; | |
7051 | } | |
7052 | ||
7053 | ||
7054 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7055 | PyObject *resultobj; | |
7056 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7057 | PyObject * obj0 = 0 ; | |
7058 | char *kwnames[] = { | |
7059 | (char *) "self", NULL | |
7060 | }; | |
7061 | ||
7062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
7063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7065 | { | |
7066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7067 | delete arg1; | |
7068 | ||
7069 | wxPyEndAllowThreads(__tstate); | |
7070 | if (PyErr_Occurred()) SWIG_fail; | |
7071 | } | |
7072 | Py_INCREF(Py_None); resultobj = Py_None; | |
7073 | return resultobj; | |
7074 | fail: | |
7075 | return NULL; | |
7076 | } | |
7077 | ||
7078 | ||
7079 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7080 | PyObject *resultobj; | |
7081 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7082 | wxString *arg2 = 0 ; | |
7083 | bool arg3 = (bool) False ; | |
7084 | bool temp2 = False ; | |
7085 | PyObject * obj0 = 0 ; | |
7086 | PyObject * obj1 = 0 ; | |
7087 | PyObject * obj2 = 0 ; | |
7088 | char *kwnames[] = { | |
7089 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7090 | }; | |
7091 | ||
7092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7095 | { | |
7096 | arg2 = wxString_in_helper(obj1); | |
7097 | if (arg2 == NULL) SWIG_fail; | |
7098 | temp2 = True; | |
7099 | } | |
7100 | if (obj2) { | |
7101 | arg3 = (bool) SWIG_AsBool(obj2); | |
7102 | if (PyErr_Occurred()) SWIG_fail; | |
7103 | } | |
7104 | { | |
7105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7106 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7107 | ||
7108 | wxPyEndAllowThreads(__tstate); | |
7109 | if (PyErr_Occurred()) SWIG_fail; | |
7110 | } | |
7111 | Py_INCREF(Py_None); resultobj = Py_None; | |
7112 | { | |
7113 | if (temp2) | |
7114 | delete arg2; | |
7115 | } | |
7116 | return resultobj; | |
7117 | fail: | |
7118 | { | |
7119 | if (temp2) | |
7120 | delete arg2; | |
7121 | } | |
7122 | return NULL; | |
7123 | } | |
7124 | ||
7125 | ||
7126 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7127 | PyObject *resultobj; | |
7128 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7129 | wxString result; | |
7130 | PyObject * obj0 = 0 ; | |
7131 | char *kwnames[] = { | |
7132 | (char *) "self", NULL | |
7133 | }; | |
7134 | ||
7135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
7136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7138 | { | |
7139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7140 | result = (arg1)->GetPath(); | |
7141 | ||
7142 | wxPyEndAllowThreads(__tstate); | |
7143 | if (PyErr_Occurred()) SWIG_fail; | |
7144 | } | |
7145 | { | |
7146 | #if wxUSE_UNICODE | |
7147 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7148 | #else | |
7149 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7150 | #endif | |
7151 | } | |
7152 | return resultobj; | |
7153 | fail: | |
7154 | return NULL; | |
7155 | } | |
7156 | ||
7157 | ||
7158 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7159 | PyObject *resultobj; | |
7160 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7161 | wxString *arg2 = 0 ; | |
7162 | wxFSFile *result; | |
7163 | bool temp2 = False ; | |
7164 | PyObject * obj0 = 0 ; | |
7165 | PyObject * obj1 = 0 ; | |
7166 | char *kwnames[] = { | |
7167 | (char *) "self",(char *) "location", NULL | |
7168 | }; | |
7169 | ||
7170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
7171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7173 | { | |
7174 | arg2 = wxString_in_helper(obj1); | |
7175 | if (arg2 == NULL) SWIG_fail; | |
7176 | temp2 = True; | |
7177 | } | |
7178 | { | |
7179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7180 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7181 | ||
7182 | wxPyEndAllowThreads(__tstate); | |
7183 | if (PyErr_Occurred()) SWIG_fail; | |
7184 | } | |
7185 | { | |
4cf4100f | 7186 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7187 | } |
7188 | { | |
7189 | if (temp2) | |
7190 | delete arg2; | |
7191 | } | |
7192 | return resultobj; | |
7193 | fail: | |
7194 | { | |
7195 | if (temp2) | |
7196 | delete arg2; | |
7197 | } | |
7198 | return NULL; | |
7199 | } | |
7200 | ||
7201 | ||
7202 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7203 | PyObject *resultobj; | |
7204 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7205 | wxString *arg2 = 0 ; | |
7206 | int arg3 = (int) 0 ; | |
7207 | wxString result; | |
7208 | bool temp2 = False ; | |
7209 | PyObject * obj0 = 0 ; | |
7210 | PyObject * obj1 = 0 ; | |
7211 | PyObject * obj2 = 0 ; | |
7212 | char *kwnames[] = { | |
7213 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7214 | }; | |
7215 | ||
7216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7219 | { | |
7220 | arg2 = wxString_in_helper(obj1); | |
7221 | if (arg2 == NULL) SWIG_fail; | |
7222 | temp2 = True; | |
7223 | } | |
7224 | if (obj2) { | |
7225 | arg3 = (int) SWIG_AsInt(obj2); | |
7226 | if (PyErr_Occurred()) SWIG_fail; | |
7227 | } | |
7228 | { | |
7229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7230 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7231 | ||
7232 | wxPyEndAllowThreads(__tstate); | |
7233 | if (PyErr_Occurred()) SWIG_fail; | |
7234 | } | |
7235 | { | |
7236 | #if wxUSE_UNICODE | |
7237 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7238 | #else | |
7239 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7240 | #endif | |
7241 | } | |
7242 | { | |
7243 | if (temp2) | |
7244 | delete arg2; | |
7245 | } | |
7246 | return resultobj; | |
7247 | fail: | |
7248 | { | |
7249 | if (temp2) | |
7250 | delete arg2; | |
7251 | } | |
7252 | return NULL; | |
7253 | } | |
7254 | ||
7255 | ||
7256 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7257 | PyObject *resultobj; | |
7258 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7259 | wxString result; | |
7260 | PyObject * obj0 = 0 ; | |
7261 | char *kwnames[] = { | |
7262 | (char *) "self", NULL | |
7263 | }; | |
7264 | ||
7265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
7266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7268 | { | |
7269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7270 | result = (arg1)->FindNext(); | |
7271 | ||
7272 | wxPyEndAllowThreads(__tstate); | |
7273 | if (PyErr_Occurred()) SWIG_fail; | |
7274 | } | |
7275 | { | |
7276 | #if wxUSE_UNICODE | |
7277 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7278 | #else | |
7279 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7280 | #endif | |
7281 | } | |
7282 | return resultobj; | |
7283 | fail: | |
7284 | return NULL; | |
7285 | } | |
7286 | ||
7287 | ||
7288 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7289 | PyObject *resultobj; | |
7290 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7291 | PyObject * obj0 = 0 ; | |
7292 | char *kwnames[] = { | |
7293 | (char *) "handler", NULL | |
7294 | }; | |
7295 | ||
7296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
7297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, | |
7298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7299 | { | |
7300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7301 | wxFileSystem::AddHandler(arg1); | |
7302 | ||
7303 | wxPyEndAllowThreads(__tstate); | |
7304 | if (PyErr_Occurred()) SWIG_fail; | |
7305 | } | |
7306 | Py_INCREF(Py_None); resultobj = Py_None; | |
7307 | return resultobj; | |
7308 | fail: | |
7309 | return NULL; | |
7310 | } | |
7311 | ||
7312 | ||
7313 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7314 | PyObject *resultobj; | |
7315 | char *kwnames[] = { | |
7316 | NULL | |
7317 | }; | |
7318 | ||
7319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7320 | { | |
7321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7322 | wxFileSystem::CleanUpHandlers(); | |
7323 | ||
7324 | wxPyEndAllowThreads(__tstate); | |
7325 | if (PyErr_Occurred()) SWIG_fail; | |
7326 | } | |
7327 | Py_INCREF(Py_None); resultobj = Py_None; | |
7328 | return resultobj; | |
7329 | fail: | |
7330 | return NULL; | |
7331 | } | |
7332 | ||
7333 | ||
7334 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7335 | PyObject *resultobj; | |
7336 | wxString *arg1 = 0 ; | |
7337 | wxString result; | |
7338 | bool temp1 = False ; | |
7339 | PyObject * obj0 = 0 ; | |
7340 | char *kwnames[] = { | |
7341 | (char *) "filename", NULL | |
7342 | }; | |
7343 | ||
7344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7345 | { | |
7346 | arg1 = wxString_in_helper(obj0); | |
7347 | if (arg1 == NULL) SWIG_fail; | |
7348 | temp1 = True; | |
7349 | } | |
7350 | { | |
7351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7352 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7353 | ||
7354 | wxPyEndAllowThreads(__tstate); | |
7355 | if (PyErr_Occurred()) SWIG_fail; | |
7356 | } | |
7357 | { | |
7358 | #if wxUSE_UNICODE | |
7359 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7360 | #else | |
7361 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7362 | #endif | |
7363 | } | |
7364 | { | |
7365 | if (temp1) | |
7366 | delete arg1; | |
7367 | } | |
7368 | return resultobj; | |
7369 | fail: | |
7370 | { | |
7371 | if (temp1) | |
7372 | delete arg1; | |
7373 | } | |
7374 | return NULL; | |
7375 | } | |
7376 | ||
7377 | ||
7378 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
7379 | PyObject *obj; | |
7380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7381 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7382 | Py_INCREF(obj); | |
7383 | return Py_BuildValue((char *)""); | |
7384 | } | |
7385 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7386 | PyObject *resultobj; | |
7387 | wxString *arg1 = 0 ; | |
7388 | wxString result; | |
7389 | bool temp1 = False ; | |
7390 | PyObject * obj0 = 0 ; | |
7391 | char *kwnames[] = { | |
7392 | (char *) "url", NULL | |
7393 | }; | |
7394 | ||
7395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7396 | { | |
7397 | arg1 = wxString_in_helper(obj0); | |
7398 | if (arg1 == NULL) SWIG_fail; | |
7399 | temp1 = True; | |
7400 | } | |
7401 | { | |
7402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7403 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
7404 | ||
7405 | wxPyEndAllowThreads(__tstate); | |
7406 | if (PyErr_Occurred()) SWIG_fail; | |
7407 | } | |
7408 | { | |
7409 | #if wxUSE_UNICODE | |
7410 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7411 | #else | |
7412 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7413 | #endif | |
7414 | } | |
7415 | { | |
7416 | if (temp1) | |
7417 | delete arg1; | |
7418 | } | |
7419 | return resultobj; | |
7420 | fail: | |
7421 | { | |
7422 | if (temp1) | |
7423 | delete arg1; | |
7424 | } | |
7425 | return NULL; | |
7426 | } | |
7427 | ||
7428 | ||
7429 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7430 | PyObject *resultobj; | |
7431 | wxInternetFSHandler *result; | |
7432 | char *kwnames[] = { | |
7433 | NULL | |
7434 | }; | |
7435 | ||
7436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7437 | { | |
7438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7439 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7440 | ||
7441 | wxPyEndAllowThreads(__tstate); | |
7442 | if (PyErr_Occurred()) SWIG_fail; | |
7443 | } | |
7444 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); | |
7445 | return resultobj; | |
7446 | fail: | |
7447 | return NULL; | |
7448 | } | |
7449 | ||
7450 | ||
7451 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7452 | PyObject *resultobj; | |
7453 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7454 | wxString *arg2 = 0 ; | |
7455 | bool result; | |
7456 | bool temp2 = False ; | |
7457 | PyObject * obj0 = 0 ; | |
7458 | PyObject * obj1 = 0 ; | |
7459 | char *kwnames[] = { | |
7460 | (char *) "self",(char *) "location", NULL | |
7461 | }; | |
7462 | ||
7463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7466 | { | |
7467 | arg2 = wxString_in_helper(obj1); | |
7468 | if (arg2 == NULL) SWIG_fail; | |
7469 | temp2 = True; | |
7470 | } | |
7471 | { | |
7472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7473 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7474 | ||
7475 | wxPyEndAllowThreads(__tstate); | |
7476 | if (PyErr_Occurred()) SWIG_fail; | |
7477 | } | |
7478 | { | |
7479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7480 | } | |
7481 | { | |
7482 | if (temp2) | |
7483 | delete arg2; | |
7484 | } | |
7485 | return resultobj; | |
7486 | fail: | |
7487 | { | |
7488 | if (temp2) | |
7489 | delete arg2; | |
7490 | } | |
7491 | return NULL; | |
7492 | } | |
7493 | ||
7494 | ||
7495 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7496 | PyObject *resultobj; | |
7497 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7498 | wxFileSystem *arg2 = 0 ; | |
7499 | wxString *arg3 = 0 ; | |
7500 | wxFSFile *result; | |
7501 | bool temp3 = False ; | |
7502 | PyObject * obj0 = 0 ; | |
7503 | PyObject * obj1 = 0 ; | |
7504 | PyObject * obj2 = 0 ; | |
7505 | char *kwnames[] = { | |
7506 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7507 | }; | |
7508 | ||
7509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7512 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7513 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7514 | SWIG_fail; | |
7515 | if (arg2 == NULL) { | |
7516 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7517 | SWIG_fail; | |
7518 | } | |
7519 | { | |
7520 | arg3 = wxString_in_helper(obj2); | |
7521 | if (arg3 == NULL) SWIG_fail; | |
7522 | temp3 = True; | |
7523 | } | |
7524 | { | |
7525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7526 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7527 | ||
7528 | wxPyEndAllowThreads(__tstate); | |
7529 | if (PyErr_Occurred()) SWIG_fail; | |
7530 | } | |
7531 | { | |
4cf4100f | 7532 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7533 | } |
7534 | { | |
7535 | if (temp3) | |
7536 | delete arg3; | |
7537 | } | |
7538 | return resultobj; | |
7539 | fail: | |
7540 | { | |
7541 | if (temp3) | |
7542 | delete arg3; | |
7543 | } | |
7544 | return NULL; | |
7545 | } | |
7546 | ||
7547 | ||
7548 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7549 | PyObject *obj; | |
7550 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7551 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7552 | Py_INCREF(obj); | |
7553 | return Py_BuildValue((char *)""); | |
7554 | } | |
7555 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7556 | PyObject *resultobj; | |
7557 | wxZipFSHandler *result; | |
7558 | char *kwnames[] = { | |
7559 | NULL | |
7560 | }; | |
7561 | ||
7562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7563 | { | |
7564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7565 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7566 | ||
7567 | wxPyEndAllowThreads(__tstate); | |
7568 | if (PyErr_Occurred()) SWIG_fail; | |
7569 | } | |
7570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); | |
7571 | return resultobj; | |
7572 | fail: | |
7573 | return NULL; | |
7574 | } | |
7575 | ||
7576 | ||
7577 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7578 | PyObject *resultobj; | |
7579 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7580 | wxString *arg2 = 0 ; | |
7581 | bool result; | |
7582 | bool temp2 = False ; | |
7583 | PyObject * obj0 = 0 ; | |
7584 | PyObject * obj1 = 0 ; | |
7585 | char *kwnames[] = { | |
7586 | (char *) "self",(char *) "location", NULL | |
7587 | }; | |
7588 | ||
7589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7592 | { | |
7593 | arg2 = wxString_in_helper(obj1); | |
7594 | if (arg2 == NULL) SWIG_fail; | |
7595 | temp2 = True; | |
7596 | } | |
7597 | { | |
7598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7599 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7600 | ||
7601 | wxPyEndAllowThreads(__tstate); | |
7602 | if (PyErr_Occurred()) SWIG_fail; | |
7603 | } | |
7604 | { | |
7605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7606 | } | |
7607 | { | |
7608 | if (temp2) | |
7609 | delete arg2; | |
7610 | } | |
7611 | return resultobj; | |
7612 | fail: | |
7613 | { | |
7614 | if (temp2) | |
7615 | delete arg2; | |
7616 | } | |
7617 | return NULL; | |
7618 | } | |
7619 | ||
7620 | ||
7621 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7622 | PyObject *resultobj; | |
7623 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7624 | wxFileSystem *arg2 = 0 ; | |
7625 | wxString *arg3 = 0 ; | |
7626 | wxFSFile *result; | |
7627 | bool temp3 = False ; | |
7628 | PyObject * obj0 = 0 ; | |
7629 | PyObject * obj1 = 0 ; | |
7630 | PyObject * obj2 = 0 ; | |
7631 | char *kwnames[] = { | |
7632 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7633 | }; | |
7634 | ||
7635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7638 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7639 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7640 | SWIG_fail; | |
7641 | if (arg2 == NULL) { | |
7642 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7643 | SWIG_fail; | |
7644 | } | |
7645 | { | |
7646 | arg3 = wxString_in_helper(obj2); | |
7647 | if (arg3 == NULL) SWIG_fail; | |
7648 | temp3 = True; | |
7649 | } | |
7650 | { | |
7651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7652 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7653 | ||
7654 | wxPyEndAllowThreads(__tstate); | |
7655 | if (PyErr_Occurred()) SWIG_fail; | |
7656 | } | |
7657 | { | |
4cf4100f | 7658 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7659 | } |
7660 | { | |
7661 | if (temp3) | |
7662 | delete arg3; | |
7663 | } | |
7664 | return resultobj; | |
7665 | fail: | |
7666 | { | |
7667 | if (temp3) | |
7668 | delete arg3; | |
7669 | } | |
7670 | return NULL; | |
7671 | } | |
7672 | ||
7673 | ||
7674 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7675 | PyObject *resultobj; | |
7676 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7677 | wxString *arg2 = 0 ; | |
7678 | int arg3 = (int) 0 ; | |
7679 | wxString result; | |
7680 | bool temp2 = False ; | |
7681 | PyObject * obj0 = 0 ; | |
7682 | PyObject * obj1 = 0 ; | |
7683 | PyObject * obj2 = 0 ; | |
7684 | char *kwnames[] = { | |
7685 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7686 | }; | |
7687 | ||
7688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7691 | { | |
7692 | arg2 = wxString_in_helper(obj1); | |
7693 | if (arg2 == NULL) SWIG_fail; | |
7694 | temp2 = True; | |
7695 | } | |
7696 | if (obj2) { | |
7697 | arg3 = (int) SWIG_AsInt(obj2); | |
7698 | if (PyErr_Occurred()) SWIG_fail; | |
7699 | } | |
7700 | { | |
7701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7702 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7703 | ||
7704 | wxPyEndAllowThreads(__tstate); | |
7705 | if (PyErr_Occurred()) SWIG_fail; | |
7706 | } | |
7707 | { | |
7708 | #if wxUSE_UNICODE | |
7709 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7710 | #else | |
7711 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7712 | #endif | |
7713 | } | |
7714 | { | |
7715 | if (temp2) | |
7716 | delete arg2; | |
7717 | } | |
7718 | return resultobj; | |
7719 | fail: | |
7720 | { | |
7721 | if (temp2) | |
7722 | delete arg2; | |
7723 | } | |
7724 | return NULL; | |
7725 | } | |
7726 | ||
7727 | ||
7728 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7729 | PyObject *resultobj; | |
7730 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7731 | wxString result; | |
7732 | PyObject * obj0 = 0 ; | |
7733 | char *kwnames[] = { | |
7734 | (char *) "self", NULL | |
7735 | }; | |
7736 | ||
7737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7740 | { | |
7741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7742 | result = (arg1)->FindNext(); | |
7743 | ||
7744 | wxPyEndAllowThreads(__tstate); | |
7745 | if (PyErr_Occurred()) SWIG_fail; | |
7746 | } | |
7747 | { | |
7748 | #if wxUSE_UNICODE | |
7749 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7750 | #else | |
7751 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7752 | #endif | |
7753 | } | |
7754 | return resultobj; | |
7755 | fail: | |
7756 | return NULL; | |
7757 | } | |
7758 | ||
7759 | ||
7760 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7761 | PyObject *obj; | |
7762 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7763 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7764 | Py_INCREF(obj); | |
7765 | return Py_BuildValue((char *)""); | |
7766 | } | |
7767 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7768 | PyObject *resultobj; | |
7769 | wxString *arg1 = 0 ; | |
7770 | wxImage *arg2 = 0 ; | |
7771 | long arg3 ; | |
7772 | bool temp1 = False ; | |
7773 | PyObject * obj0 = 0 ; | |
7774 | PyObject * obj1 = 0 ; | |
7775 | PyObject * obj2 = 0 ; | |
7776 | char *kwnames[] = { | |
7777 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7778 | }; | |
7779 | ||
7780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7781 | { | |
7782 | arg1 = wxString_in_helper(obj0); | |
7783 | if (arg1 == NULL) SWIG_fail; | |
7784 | temp1 = True; | |
7785 | } | |
7786 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
7787 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7788 | SWIG_fail; | |
7789 | if (arg2 == NULL) { | |
7790 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7791 | SWIG_fail; | |
7792 | } | |
7793 | arg3 = (long) SWIG_AsLong(obj2); | |
7794 | if (PyErr_Occurred()) SWIG_fail; | |
7795 | { | |
7796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7797 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7798 | ||
7799 | wxPyEndAllowThreads(__tstate); | |
7800 | if (PyErr_Occurred()) SWIG_fail; | |
7801 | } | |
7802 | Py_INCREF(Py_None); resultobj = Py_None; | |
7803 | { | |
7804 | if (temp1) | |
7805 | delete arg1; | |
7806 | } | |
7807 | return resultobj; | |
7808 | fail: | |
7809 | { | |
7810 | if (temp1) | |
7811 | delete arg1; | |
7812 | } | |
7813 | return NULL; | |
7814 | } | |
7815 | ||
7816 | ||
7817 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7818 | PyObject *resultobj; | |
7819 | wxString *arg1 = 0 ; | |
7820 | wxBitmap *arg2 = 0 ; | |
7821 | long arg3 ; | |
7822 | bool temp1 = False ; | |
7823 | PyObject * obj0 = 0 ; | |
7824 | PyObject * obj1 = 0 ; | |
7825 | PyObject * obj2 = 0 ; | |
7826 | char *kwnames[] = { | |
7827 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7828 | }; | |
7829 | ||
7830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7831 | { | |
7832 | arg1 = wxString_in_helper(obj0); | |
7833 | if (arg1 == NULL) SWIG_fail; | |
7834 | temp1 = True; | |
7835 | } | |
7836 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
7837 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7838 | SWIG_fail; | |
7839 | if (arg2 == NULL) { | |
7840 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7841 | SWIG_fail; | |
7842 | } | |
7843 | arg3 = (long) SWIG_AsLong(obj2); | |
7844 | if (PyErr_Occurred()) SWIG_fail; | |
7845 | { | |
7846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7847 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7848 | ||
7849 | wxPyEndAllowThreads(__tstate); | |
7850 | if (PyErr_Occurred()) SWIG_fail; | |
7851 | } | |
7852 | Py_INCREF(Py_None); resultobj = Py_None; | |
7853 | { | |
7854 | if (temp1) | |
7855 | delete arg1; | |
7856 | } | |
7857 | return resultobj; | |
7858 | fail: | |
7859 | { | |
7860 | if (temp1) | |
7861 | delete arg1; | |
7862 | } | |
7863 | return NULL; | |
7864 | } | |
7865 | ||
7866 | ||
7867 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7868 | PyObject *resultobj; | |
7869 | wxString *arg1 = 0 ; | |
7870 | PyObject *arg2 = (PyObject *) 0 ; | |
7871 | bool temp1 = False ; | |
7872 | PyObject * obj0 = 0 ; | |
7873 | PyObject * obj1 = 0 ; | |
7874 | char *kwnames[] = { | |
7875 | (char *) "filename",(char *) "data", NULL | |
7876 | }; | |
7877 | ||
7878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7879 | { | |
7880 | arg1 = wxString_in_helper(obj0); | |
7881 | if (arg1 == NULL) SWIG_fail; | |
7882 | temp1 = True; | |
7883 | } | |
7884 | arg2 = obj1; | |
7885 | { | |
7886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7887 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7888 | ||
7889 | wxPyEndAllowThreads(__tstate); | |
7890 | if (PyErr_Occurred()) SWIG_fail; | |
7891 | } | |
7892 | Py_INCREF(Py_None); resultobj = Py_None; | |
7893 | { | |
7894 | if (temp1) | |
7895 | delete arg1; | |
7896 | } | |
7897 | return resultobj; | |
7898 | fail: | |
7899 | { | |
7900 | if (temp1) | |
7901 | delete arg1; | |
7902 | } | |
7903 | return NULL; | |
7904 | } | |
7905 | ||
7906 | ||
7907 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7908 | PyObject *resultobj; | |
7909 | wxMemoryFSHandler *result; | |
7910 | char *kwnames[] = { | |
7911 | NULL | |
7912 | }; | |
7913 | ||
7914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7915 | { | |
7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7917 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7918 | ||
7919 | wxPyEndAllowThreads(__tstate); | |
7920 | if (PyErr_Occurred()) SWIG_fail; | |
7921 | } | |
7922 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); | |
7923 | return resultobj; | |
7924 | fail: | |
7925 | return NULL; | |
7926 | } | |
7927 | ||
7928 | ||
7929 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7930 | PyObject *resultobj; | |
7931 | wxString *arg1 = 0 ; | |
7932 | bool temp1 = False ; | |
7933 | PyObject * obj0 = 0 ; | |
7934 | char *kwnames[] = { | |
7935 | (char *) "filename", NULL | |
7936 | }; | |
7937 | ||
7938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7939 | { | |
7940 | arg1 = wxString_in_helper(obj0); | |
7941 | if (arg1 == NULL) SWIG_fail; | |
7942 | temp1 = True; | |
7943 | } | |
7944 | { | |
7945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7946 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7947 | ||
7948 | wxPyEndAllowThreads(__tstate); | |
7949 | if (PyErr_Occurred()) SWIG_fail; | |
7950 | } | |
7951 | Py_INCREF(Py_None); resultobj = Py_None; | |
7952 | { | |
7953 | if (temp1) | |
7954 | delete arg1; | |
7955 | } | |
7956 | return resultobj; | |
7957 | fail: | |
7958 | { | |
7959 | if (temp1) | |
7960 | delete arg1; | |
7961 | } | |
7962 | return NULL; | |
7963 | } | |
7964 | ||
7965 | ||
7966 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7967 | PyObject *resultobj; | |
7968 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7969 | wxString *arg2 = 0 ; | |
7970 | bool result; | |
7971 | bool temp2 = False ; | |
7972 | PyObject * obj0 = 0 ; | |
7973 | PyObject * obj1 = 0 ; | |
7974 | char *kwnames[] = { | |
7975 | (char *) "self",(char *) "location", NULL | |
7976 | }; | |
7977 | ||
7978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
7980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7981 | { | |
7982 | arg2 = wxString_in_helper(obj1); | |
7983 | if (arg2 == NULL) SWIG_fail; | |
7984 | temp2 = True; | |
7985 | } | |
7986 | { | |
7987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7988 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7989 | ||
7990 | wxPyEndAllowThreads(__tstate); | |
7991 | if (PyErr_Occurred()) SWIG_fail; | |
7992 | } | |
7993 | { | |
7994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7995 | } | |
7996 | { | |
7997 | if (temp2) | |
7998 | delete arg2; | |
7999 | } | |
8000 | return resultobj; | |
8001 | fail: | |
8002 | { | |
8003 | if (temp2) | |
8004 | delete arg2; | |
8005 | } | |
8006 | return NULL; | |
8007 | } | |
8008 | ||
8009 | ||
8010 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8011 | PyObject *resultobj; | |
8012 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8013 | wxFileSystem *arg2 = 0 ; | |
8014 | wxString *arg3 = 0 ; | |
8015 | wxFSFile *result; | |
8016 | bool temp3 = False ; | |
8017 | PyObject * obj0 = 0 ; | |
8018 | PyObject * obj1 = 0 ; | |
8019 | PyObject * obj2 = 0 ; | |
8020 | char *kwnames[] = { | |
8021 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8022 | }; | |
8023 | ||
8024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8027 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
8028 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8029 | SWIG_fail; | |
8030 | if (arg2 == NULL) { | |
8031 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8032 | SWIG_fail; | |
8033 | } | |
8034 | { | |
8035 | arg3 = wxString_in_helper(obj2); | |
8036 | if (arg3 == NULL) SWIG_fail; | |
8037 | temp3 = True; | |
8038 | } | |
8039 | { | |
8040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8041 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8042 | ||
8043 | wxPyEndAllowThreads(__tstate); | |
8044 | if (PyErr_Occurred()) SWIG_fail; | |
8045 | } | |
8046 | { | |
4cf4100f | 8047 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8048 | } |
8049 | { | |
8050 | if (temp3) | |
8051 | delete arg3; | |
8052 | } | |
8053 | return resultobj; | |
8054 | fail: | |
8055 | { | |
8056 | if (temp3) | |
8057 | delete arg3; | |
8058 | } | |
8059 | return NULL; | |
8060 | } | |
8061 | ||
8062 | ||
8063 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8064 | PyObject *resultobj; | |
8065 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8066 | wxString *arg2 = 0 ; | |
8067 | int arg3 = (int) 0 ; | |
8068 | wxString result; | |
8069 | bool temp2 = False ; | |
8070 | PyObject * obj0 = 0 ; | |
8071 | PyObject * obj1 = 0 ; | |
8072 | PyObject * obj2 = 0 ; | |
8073 | char *kwnames[] = { | |
8074 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8075 | }; | |
8076 | ||
8077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8080 | { | |
8081 | arg2 = wxString_in_helper(obj1); | |
8082 | if (arg2 == NULL) SWIG_fail; | |
8083 | temp2 = True; | |
8084 | } | |
8085 | if (obj2) { | |
8086 | arg3 = (int) SWIG_AsInt(obj2); | |
8087 | if (PyErr_Occurred()) SWIG_fail; | |
8088 | } | |
8089 | { | |
8090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8091 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8092 | ||
8093 | wxPyEndAllowThreads(__tstate); | |
8094 | if (PyErr_Occurred()) SWIG_fail; | |
8095 | } | |
8096 | { | |
8097 | #if wxUSE_UNICODE | |
8098 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8099 | #else | |
8100 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8101 | #endif | |
8102 | } | |
8103 | { | |
8104 | if (temp2) | |
8105 | delete arg2; | |
8106 | } | |
8107 | return resultobj; | |
8108 | fail: | |
8109 | { | |
8110 | if (temp2) | |
8111 | delete arg2; | |
8112 | } | |
8113 | return NULL; | |
8114 | } | |
8115 | ||
8116 | ||
8117 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8118 | PyObject *resultobj; | |
8119 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8120 | wxString result; | |
8121 | PyObject * obj0 = 0 ; | |
8122 | char *kwnames[] = { | |
8123 | (char *) "self", NULL | |
8124 | }; | |
8125 | ||
8126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8129 | { | |
8130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8131 | result = (arg1)->FindNext(); | |
8132 | ||
8133 | wxPyEndAllowThreads(__tstate); | |
8134 | if (PyErr_Occurred()) SWIG_fail; | |
8135 | } | |
8136 | { | |
8137 | #if wxUSE_UNICODE | |
8138 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8139 | #else | |
8140 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8141 | #endif | |
8142 | } | |
8143 | return resultobj; | |
8144 | fail: | |
8145 | return NULL; | |
8146 | } | |
8147 | ||
8148 | ||
8149 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
8150 | PyObject *obj; | |
8151 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8152 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8153 | Py_INCREF(obj); | |
8154 | return Py_BuildValue((char *)""); | |
8155 | } | |
8156 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8157 | PyObject *resultobj; | |
8158 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8159 | wxString result; | |
8160 | PyObject * obj0 = 0 ; | |
8161 | char *kwnames[] = { | |
8162 | (char *) "self", NULL | |
8163 | }; | |
8164 | ||
8165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
8166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8168 | { | |
8169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8170 | result = (arg1)->GetName(); | |
8171 | ||
8172 | wxPyEndAllowThreads(__tstate); | |
8173 | if (PyErr_Occurred()) SWIG_fail; | |
8174 | } | |
8175 | { | |
8176 | #if wxUSE_UNICODE | |
8177 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8178 | #else | |
8179 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8180 | #endif | |
8181 | } | |
8182 | return resultobj; | |
8183 | fail: | |
8184 | return NULL; | |
8185 | } | |
8186 | ||
8187 | ||
8188 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8189 | PyObject *resultobj; | |
8190 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8191 | wxString result; | |
8192 | PyObject * obj0 = 0 ; | |
8193 | char *kwnames[] = { | |
8194 | (char *) "self", NULL | |
8195 | }; | |
8196 | ||
8197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
8198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8200 | { | |
8201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8202 | result = (arg1)->GetExtension(); | |
8203 | ||
8204 | wxPyEndAllowThreads(__tstate); | |
8205 | if (PyErr_Occurred()) SWIG_fail; | |
8206 | } | |
8207 | { | |
8208 | #if wxUSE_UNICODE | |
8209 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8210 | #else | |
8211 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8212 | #endif | |
8213 | } | |
8214 | return resultobj; | |
8215 | fail: | |
8216 | return NULL; | |
8217 | } | |
8218 | ||
8219 | ||
8220 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8221 | PyObject *resultobj; | |
8222 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8223 | long result; | |
8224 | PyObject * obj0 = 0 ; | |
8225 | char *kwnames[] = { | |
8226 | (char *) "self", NULL | |
8227 | }; | |
8228 | ||
8229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
8230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8232 | { | |
8233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8234 | result = (long)(arg1)->GetType(); | |
8235 | ||
8236 | wxPyEndAllowThreads(__tstate); | |
8237 | if (PyErr_Occurred()) SWIG_fail; | |
8238 | } | |
8239 | resultobj = SWIG_FromLong((long)result); | |
8240 | return resultobj; | |
8241 | fail: | |
8242 | return NULL; | |
8243 | } | |
8244 | ||
8245 | ||
8246 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8247 | PyObject *resultobj; | |
8248 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8249 | wxString result; | |
8250 | PyObject * obj0 = 0 ; | |
8251 | char *kwnames[] = { | |
8252 | (char *) "self", NULL | |
8253 | }; | |
8254 | ||
8255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
8256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8258 | { | |
8259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8260 | result = (arg1)->GetMimeType(); | |
8261 | ||
8262 | wxPyEndAllowThreads(__tstate); | |
8263 | if (PyErr_Occurred()) SWIG_fail; | |
8264 | } | |
8265 | { | |
8266 | #if wxUSE_UNICODE | |
8267 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8268 | #else | |
8269 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8270 | #endif | |
8271 | } | |
8272 | return resultobj; | |
8273 | fail: | |
8274 | return NULL; | |
8275 | } | |
8276 | ||
8277 | ||
8278 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8279 | PyObject *resultobj; | |
8280 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8281 | wxString *arg2 = 0 ; | |
8282 | bool result; | |
8283 | bool temp2 = False ; | |
8284 | PyObject * obj0 = 0 ; | |
8285 | PyObject * obj1 = 0 ; | |
8286 | char *kwnames[] = { | |
8287 | (char *) "self",(char *) "name", NULL | |
8288 | }; | |
8289 | ||
8290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
8291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8293 | { | |
8294 | arg2 = wxString_in_helper(obj1); | |
8295 | if (arg2 == NULL) SWIG_fail; | |
8296 | temp2 = True; | |
8297 | } | |
8298 | { | |
8299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8300 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8301 | ||
8302 | wxPyEndAllowThreads(__tstate); | |
8303 | if (PyErr_Occurred()) SWIG_fail; | |
8304 | } | |
8305 | { | |
8306 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8307 | } | |
8308 | { | |
8309 | if (temp2) | |
8310 | delete arg2; | |
8311 | } | |
8312 | return resultobj; | |
8313 | fail: | |
8314 | { | |
8315 | if (temp2) | |
8316 | delete arg2; | |
8317 | } | |
8318 | return NULL; | |
8319 | } | |
8320 | ||
8321 | ||
8322 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8323 | PyObject *resultobj; | |
8324 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8325 | wxString *arg2 = 0 ; | |
8326 | bool temp2 = False ; | |
8327 | PyObject * obj0 = 0 ; | |
8328 | PyObject * obj1 = 0 ; | |
8329 | char *kwnames[] = { | |
8330 | (char *) "self",(char *) "name", NULL | |
8331 | }; | |
8332 | ||
8333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
8334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8336 | { | |
8337 | arg2 = wxString_in_helper(obj1); | |
8338 | if (arg2 == NULL) SWIG_fail; | |
8339 | temp2 = True; | |
8340 | } | |
8341 | { | |
8342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8343 | (arg1)->SetName((wxString const &)*arg2); | |
8344 | ||
8345 | wxPyEndAllowThreads(__tstate); | |
8346 | if (PyErr_Occurred()) SWIG_fail; | |
8347 | } | |
8348 | Py_INCREF(Py_None); resultobj = Py_None; | |
8349 | { | |
8350 | if (temp2) | |
8351 | delete arg2; | |
8352 | } | |
8353 | return resultobj; | |
8354 | fail: | |
8355 | { | |
8356 | if (temp2) | |
8357 | delete arg2; | |
8358 | } | |
8359 | return NULL; | |
8360 | } | |
8361 | ||
8362 | ||
8363 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8364 | PyObject *resultobj; | |
8365 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8366 | wxString *arg2 = 0 ; | |
8367 | bool temp2 = False ; | |
8368 | PyObject * obj0 = 0 ; | |
8369 | PyObject * obj1 = 0 ; | |
8370 | char *kwnames[] = { | |
8371 | (char *) "self",(char *) "extension", NULL | |
8372 | }; | |
8373 | ||
8374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
8375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8377 | { | |
8378 | arg2 = wxString_in_helper(obj1); | |
8379 | if (arg2 == NULL) SWIG_fail; | |
8380 | temp2 = True; | |
8381 | } | |
8382 | { | |
8383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8384 | (arg1)->SetExtension((wxString const &)*arg2); | |
8385 | ||
8386 | wxPyEndAllowThreads(__tstate); | |
8387 | if (PyErr_Occurred()) SWIG_fail; | |
8388 | } | |
8389 | Py_INCREF(Py_None); resultobj = Py_None; | |
8390 | { | |
8391 | if (temp2) | |
8392 | delete arg2; | |
8393 | } | |
8394 | return resultobj; | |
8395 | fail: | |
8396 | { | |
8397 | if (temp2) | |
8398 | delete arg2; | |
8399 | } | |
8400 | return NULL; | |
8401 | } | |
8402 | ||
8403 | ||
8404 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8405 | PyObject *resultobj; | |
8406 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8407 | long arg2 ; | |
8408 | PyObject * obj0 = 0 ; | |
8409 | PyObject * obj1 = 0 ; | |
8410 | char *kwnames[] = { | |
8411 | (char *) "self",(char *) "type", NULL | |
8412 | }; | |
8413 | ||
8414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; | |
8415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8417 | arg2 = (long) SWIG_AsLong(obj1); | |
8418 | if (PyErr_Occurred()) SWIG_fail; | |
8419 | { | |
8420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8421 | (arg1)->SetType(arg2); | |
8422 | ||
8423 | wxPyEndAllowThreads(__tstate); | |
8424 | if (PyErr_Occurred()) SWIG_fail; | |
8425 | } | |
8426 | Py_INCREF(Py_None); resultobj = Py_None; | |
8427 | return resultobj; | |
8428 | fail: | |
8429 | return NULL; | |
8430 | } | |
8431 | ||
8432 | ||
8433 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8434 | PyObject *resultobj; | |
8435 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8436 | wxString *arg2 = 0 ; | |
8437 | bool temp2 = False ; | |
8438 | PyObject * obj0 = 0 ; | |
8439 | PyObject * obj1 = 0 ; | |
8440 | char *kwnames[] = { | |
8441 | (char *) "self",(char *) "mimetype", NULL | |
8442 | }; | |
8443 | ||
8444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
8445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8447 | { | |
8448 | arg2 = wxString_in_helper(obj1); | |
8449 | if (arg2 == NULL) SWIG_fail; | |
8450 | temp2 = True; | |
8451 | } | |
8452 | { | |
8453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8454 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8455 | ||
8456 | wxPyEndAllowThreads(__tstate); | |
8457 | if (PyErr_Occurred()) SWIG_fail; | |
8458 | } | |
8459 | Py_INCREF(Py_None); resultobj = Py_None; | |
8460 | { | |
8461 | if (temp2) | |
8462 | delete arg2; | |
8463 | } | |
8464 | return resultobj; | |
8465 | fail: | |
8466 | { | |
8467 | if (temp2) | |
8468 | delete arg2; | |
8469 | } | |
8470 | return NULL; | |
8471 | } | |
8472 | ||
8473 | ||
8474 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
8475 | PyObject *obj; | |
8476 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8477 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8478 | Py_INCREF(obj); | |
8479 | return Py_BuildValue((char *)""); | |
8480 | } | |
8481 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8482 | PyObject *resultobj; | |
8483 | wxImageHistogram *result; | |
8484 | char *kwnames[] = { | |
8485 | NULL | |
8486 | }; | |
8487 | ||
8488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8489 | { | |
8490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8491 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8492 | ||
8493 | wxPyEndAllowThreads(__tstate); | |
8494 | if (PyErr_Occurred()) SWIG_fail; | |
8495 | } | |
8496 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); | |
8497 | return resultobj; | |
8498 | fail: | |
8499 | return NULL; | |
8500 | } | |
8501 | ||
8502 | ||
8503 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8504 | PyObject *resultobj; | |
8505 | unsigned char arg1 ; | |
8506 | unsigned char arg2 ; | |
8507 | unsigned char arg3 ; | |
8508 | unsigned long result; | |
8509 | PyObject * obj0 = 0 ; | |
8510 | PyObject * obj1 = 0 ; | |
8511 | PyObject * obj2 = 0 ; | |
8512 | char *kwnames[] = { | |
8513 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8514 | }; | |
8515 | ||
8516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8517 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); | |
8518 | if (PyErr_Occurred()) SWIG_fail; | |
8519 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8520 | if (PyErr_Occurred()) SWIG_fail; | |
8521 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8522 | if (PyErr_Occurred()) SWIG_fail; | |
8523 | { | |
8524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8525 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8526 | ||
8527 | wxPyEndAllowThreads(__tstate); | |
8528 | if (PyErr_Occurred()) SWIG_fail; | |
8529 | } | |
8530 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
8531 | return resultobj; | |
8532 | fail: | |
8533 | return NULL; | |
8534 | } | |
8535 | ||
8536 | ||
8537 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8538 | PyObject *resultobj; | |
8539 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8540 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8541 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8542 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8543 | unsigned char arg5 = (unsigned char) 1 ; | |
8544 | unsigned char arg6 = (unsigned char) 0 ; | |
8545 | unsigned char arg7 = (unsigned char) 0 ; | |
8546 | bool result; | |
8547 | unsigned char temp2 ; | |
8548 | unsigned char temp3 ; | |
8549 | unsigned char temp4 ; | |
8550 | PyObject * obj0 = 0 ; | |
8551 | PyObject * obj1 = 0 ; | |
8552 | PyObject * obj2 = 0 ; | |
8553 | PyObject * obj3 = 0 ; | |
8554 | char *kwnames[] = { | |
8555 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8556 | }; | |
8557 | ||
8558 | arg2 = &temp2; | |
8559 | arg3 = &temp3; | |
8560 | arg4 = &temp4; | |
8561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, | |
8563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8564 | if (obj1) { | |
8565 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8566 | if (PyErr_Occurred()) SWIG_fail; | |
8567 | } | |
8568 | if (obj2) { | |
8569 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8570 | if (PyErr_Occurred()) SWIG_fail; | |
8571 | } | |
8572 | if (obj3) { | |
8573 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
8574 | if (PyErr_Occurred()) SWIG_fail; | |
8575 | } | |
8576 | { | |
8577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8578 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8579 | ||
8580 | wxPyEndAllowThreads(__tstate); | |
8581 | if (PyErr_Occurred()) SWIG_fail; | |
8582 | } | |
8583 | { | |
8584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8585 | } | |
8586 | { | |
8587 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8588 | resultobj = t_output_helper(resultobj,o); | |
8589 | } | |
8590 | { | |
8591 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8592 | resultobj = t_output_helper(resultobj,o); | |
8593 | } | |
8594 | { | |
8595 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8596 | resultobj = t_output_helper(resultobj,o); | |
8597 | } | |
8598 | return resultobj; | |
8599 | fail: | |
8600 | return NULL; | |
8601 | } | |
8602 | ||
8603 | ||
8604 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8605 | PyObject *obj; | |
8606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8607 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8608 | Py_INCREF(obj); | |
8609 | return Py_BuildValue((char *)""); | |
8610 | } | |
8611 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8612 | PyObject *resultobj; | |
8613 | wxString *arg1 = 0 ; | |
8614 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8615 | int arg3 = (int) -1 ; | |
8616 | wxImage *result; | |
8617 | bool temp1 = False ; | |
8618 | PyObject * obj0 = 0 ; | |
8619 | PyObject * obj1 = 0 ; | |
8620 | PyObject * obj2 = 0 ; | |
8621 | char *kwnames[] = { | |
8622 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8623 | }; | |
8624 | ||
8625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8626 | { | |
8627 | arg1 = wxString_in_helper(obj0); | |
8628 | if (arg1 == NULL) SWIG_fail; | |
8629 | temp1 = True; | |
8630 | } | |
8631 | if (obj1) { | |
8632 | arg2 = (long) SWIG_AsLong(obj1); | |
8633 | if (PyErr_Occurred()) SWIG_fail; | |
8634 | } | |
8635 | if (obj2) { | |
8636 | arg3 = (int) SWIG_AsInt(obj2); | |
8637 | if (PyErr_Occurred()) SWIG_fail; | |
8638 | } | |
8639 | { | |
8640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8641 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8642 | ||
8643 | wxPyEndAllowThreads(__tstate); | |
8644 | if (PyErr_Occurred()) SWIG_fail; | |
8645 | } | |
8646 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8647 | { | |
8648 | if (temp1) | |
8649 | delete arg1; | |
8650 | } | |
8651 | return resultobj; | |
8652 | fail: | |
8653 | { | |
8654 | if (temp1) | |
8655 | delete arg1; | |
8656 | } | |
8657 | return NULL; | |
8658 | } | |
8659 | ||
8660 | ||
8661 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8662 | PyObject *resultobj; | |
8663 | wxImage *arg1 = (wxImage *) 0 ; | |
8664 | PyObject * obj0 = 0 ; | |
8665 | char *kwnames[] = { | |
8666 | (char *) "self", NULL | |
8667 | }; | |
8668 | ||
8669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
8670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8672 | { | |
8673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8674 | delete arg1; | |
8675 | ||
8676 | wxPyEndAllowThreads(__tstate); | |
8677 | if (PyErr_Occurred()) SWIG_fail; | |
8678 | } | |
8679 | Py_INCREF(Py_None); resultobj = Py_None; | |
8680 | return resultobj; | |
8681 | fail: | |
8682 | return NULL; | |
8683 | } | |
8684 | ||
8685 | ||
8686 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8687 | PyObject *resultobj; | |
8688 | wxString *arg1 = 0 ; | |
8689 | wxString *arg2 = 0 ; | |
8690 | int arg3 = (int) -1 ; | |
8691 | wxImage *result; | |
8692 | bool temp1 = False ; | |
8693 | bool temp2 = False ; | |
8694 | PyObject * obj0 = 0 ; | |
8695 | PyObject * obj1 = 0 ; | |
8696 | PyObject * obj2 = 0 ; | |
8697 | char *kwnames[] = { | |
8698 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8699 | }; | |
8700 | ||
8701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8702 | { | |
8703 | arg1 = wxString_in_helper(obj0); | |
8704 | if (arg1 == NULL) SWIG_fail; | |
8705 | temp1 = True; | |
8706 | } | |
8707 | { | |
8708 | arg2 = wxString_in_helper(obj1); | |
8709 | if (arg2 == NULL) SWIG_fail; | |
8710 | temp2 = True; | |
8711 | } | |
8712 | if (obj2) { | |
8713 | arg3 = (int) SWIG_AsInt(obj2); | |
8714 | if (PyErr_Occurred()) SWIG_fail; | |
8715 | } | |
8716 | { | |
8717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8718 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8719 | ||
8720 | wxPyEndAllowThreads(__tstate); | |
8721 | if (PyErr_Occurred()) SWIG_fail; | |
8722 | } | |
8723 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8724 | { | |
8725 | if (temp1) | |
8726 | delete arg1; | |
8727 | } | |
8728 | { | |
8729 | if (temp2) | |
8730 | delete arg2; | |
8731 | } | |
8732 | return resultobj; | |
8733 | fail: | |
8734 | { | |
8735 | if (temp1) | |
8736 | delete arg1; | |
8737 | } | |
8738 | { | |
8739 | if (temp2) | |
8740 | delete arg2; | |
8741 | } | |
8742 | return NULL; | |
8743 | } | |
8744 | ||
8745 | ||
8746 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8747 | PyObject *resultobj; | |
8748 | wxInputStream *arg1 = 0 ; | |
8749 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8750 | int arg3 = (int) -1 ; | |
8751 | wxImage *result; | |
8752 | wxPyInputStream *temp1 ; | |
8753 | bool created1 ; | |
8754 | PyObject * obj0 = 0 ; | |
8755 | PyObject * obj1 = 0 ; | |
8756 | PyObject * obj2 = 0 ; | |
8757 | char *kwnames[] = { | |
8758 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8759 | }; | |
8760 | ||
8761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8762 | { | |
8763 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8764 | arg1 = temp1->m_wxis; | |
8765 | created1 = False; | |
8766 | } else { | |
8767 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
8768 | arg1 = wxPyCBInputStream_create(obj0, False); | |
8769 | if (arg1 == NULL) { | |
8770 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8771 | SWIG_fail; | |
8772 | } | |
8773 | created1 = True; | |
8774 | } | |
8775 | } | |
8776 | if (obj1) { | |
8777 | arg2 = (long) SWIG_AsLong(obj1); | |
8778 | if (PyErr_Occurred()) SWIG_fail; | |
8779 | } | |
8780 | if (obj2) { | |
8781 | arg3 = (int) SWIG_AsInt(obj2); | |
8782 | if (PyErr_Occurred()) SWIG_fail; | |
8783 | } | |
8784 | { | |
8785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8786 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8787 | ||
8788 | wxPyEndAllowThreads(__tstate); | |
8789 | if (PyErr_Occurred()) SWIG_fail; | |
8790 | } | |
8791 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8792 | { | |
8793 | if (created1) | |
8794 | delete arg1; | |
8795 | } | |
8796 | return resultobj; | |
8797 | fail: | |
8798 | { | |
8799 | if (created1) | |
8800 | delete arg1; | |
8801 | } | |
8802 | return NULL; | |
8803 | } | |
8804 | ||
8805 | ||
8806 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8807 | PyObject *resultobj; | |
8808 | wxInputStream *arg1 = 0 ; | |
8809 | wxString *arg2 = 0 ; | |
8810 | int arg3 = (int) -1 ; | |
8811 | wxImage *result; | |
8812 | wxPyInputStream *temp1 ; | |
8813 | bool created1 ; | |
8814 | bool temp2 = False ; | |
8815 | PyObject * obj0 = 0 ; | |
8816 | PyObject * obj1 = 0 ; | |
8817 | PyObject * obj2 = 0 ; | |
8818 | char *kwnames[] = { | |
8819 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8820 | }; | |
8821 | ||
8822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8823 | { | |
8824 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8825 | arg1 = temp1->m_wxis; | |
8826 | created1 = False; | |
8827 | } else { | |
8828 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
8829 | arg1 = wxPyCBInputStream_create(obj0, False); | |
8830 | if (arg1 == NULL) { | |
8831 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8832 | SWIG_fail; | |
8833 | } | |
8834 | created1 = True; | |
8835 | } | |
8836 | } | |
8837 | { | |
8838 | arg2 = wxString_in_helper(obj1); | |
8839 | if (arg2 == NULL) SWIG_fail; | |
8840 | temp2 = True; | |
8841 | } | |
8842 | if (obj2) { | |
8843 | arg3 = (int) SWIG_AsInt(obj2); | |
8844 | if (PyErr_Occurred()) SWIG_fail; | |
8845 | } | |
8846 | { | |
8847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8848 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8849 | ||
8850 | wxPyEndAllowThreads(__tstate); | |
8851 | if (PyErr_Occurred()) SWIG_fail; | |
8852 | } | |
8853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8854 | { | |
8855 | if (created1) | |
8856 | delete arg1; | |
8857 | } | |
8858 | { | |
8859 | if (temp2) | |
8860 | delete arg2; | |
8861 | } | |
8862 | return resultobj; | |
8863 | fail: | |
8864 | { | |
8865 | if (created1) | |
8866 | delete arg1; | |
8867 | } | |
8868 | { | |
8869 | if (temp2) | |
8870 | delete arg2; | |
8871 | } | |
8872 | return NULL; | |
8873 | } | |
8874 | ||
8875 | ||
c24da6d6 | 8876 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8877 | PyObject *resultobj; |
8878 | int arg1 = (int) 0 ; | |
8879 | int arg2 = (int) 0 ; | |
8880 | bool arg3 = (bool) True ; | |
8881 | wxImage *result; | |
8882 | PyObject * obj0 = 0 ; | |
8883 | PyObject * obj1 = 0 ; | |
8884 | PyObject * obj2 = 0 ; | |
c24da6d6 RD |
8885 | char *kwnames[] = { |
8886 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8887 | }; | |
d55e5bfc | 8888 | |
c24da6d6 | 8889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
8890 | if (obj0) { |
8891 | arg1 = (int) SWIG_AsInt(obj0); | |
8892 | if (PyErr_Occurred()) SWIG_fail; | |
8893 | } | |
8894 | if (obj1) { | |
8895 | arg2 = (int) SWIG_AsInt(obj1); | |
8896 | if (PyErr_Occurred()) SWIG_fail; | |
8897 | } | |
8898 | if (obj2) { | |
8899 | arg3 = (bool) SWIG_AsBool(obj2); | |
8900 | if (PyErr_Occurred()) SWIG_fail; | |
8901 | } | |
8902 | { | |
8903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 8904 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d55e5bfc RD |
8905 | |
8906 | wxPyEndAllowThreads(__tstate); | |
8907 | if (PyErr_Occurred()) SWIG_fail; | |
8908 | } | |
8909 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8910 | return resultobj; | |
8911 | fail: | |
8912 | return NULL; | |
8913 | } | |
8914 | ||
8915 | ||
d55e5bfc RD |
8916 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8917 | PyObject *resultobj; | |
8918 | wxBitmap *arg1 = 0 ; | |
8919 | wxImage *result; | |
8920 | PyObject * obj0 = 0 ; | |
8921 | char *kwnames[] = { | |
8922 | (char *) "bitmap", NULL | |
8923 | }; | |
8924 | ||
8925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
8926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
8927 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8928 | SWIG_fail; | |
8929 | if (arg1 == NULL) { | |
8930 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8931 | SWIG_fail; | |
8932 | } | |
8933 | { | |
0439c23b | 8934 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8936 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8937 | ||
8938 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8939 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8940 | } |
8941 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8942 | return resultobj; | |
8943 | fail: | |
8944 | return NULL; | |
8945 | } | |
8946 | ||
8947 | ||
8948 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8949 | PyObject *resultobj; | |
8950 | int arg1 ; | |
8951 | int arg2 ; | |
8952 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8953 | wxImage *result; | |
8954 | PyObject * obj0 = 0 ; | |
8955 | PyObject * obj1 = 0 ; | |
8956 | PyObject * obj2 = 0 ; | |
8957 | char *kwnames[] = { | |
8958 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8959 | }; | |
8960 | ||
8961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8962 | arg1 = (int) SWIG_AsInt(obj0); | |
8963 | if (PyErr_Occurred()) SWIG_fail; | |
8964 | arg2 = (int) SWIG_AsInt(obj1); | |
8965 | if (PyErr_Occurred()) SWIG_fail; | |
8966 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
8967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8968 | { | |
8969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8970 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8971 | ||
8972 | wxPyEndAllowThreads(__tstate); | |
8973 | if (PyErr_Occurred()) SWIG_fail; | |
8974 | } | |
8975 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8976 | return resultobj; | |
8977 | fail: | |
8978 | return NULL; | |
8979 | } | |
8980 | ||
8981 | ||
8982 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8983 | PyObject *resultobj; | |
8984 | wxImage *arg1 = (wxImage *) 0 ; | |
8985 | int arg2 ; | |
8986 | int arg3 ; | |
8987 | PyObject * obj0 = 0 ; | |
8988 | PyObject * obj1 = 0 ; | |
8989 | PyObject * obj2 = 0 ; | |
8990 | char *kwnames[] = { | |
8991 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8992 | }; | |
8993 | ||
8994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8997 | arg2 = (int) SWIG_AsInt(obj1); | |
8998 | if (PyErr_Occurred()) SWIG_fail; | |
8999 | arg3 = (int) SWIG_AsInt(obj2); | |
9000 | if (PyErr_Occurred()) SWIG_fail; | |
9001 | { | |
9002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9003 | (arg1)->Create(arg2,arg3); | |
9004 | ||
9005 | wxPyEndAllowThreads(__tstate); | |
9006 | if (PyErr_Occurred()) SWIG_fail; | |
9007 | } | |
9008 | Py_INCREF(Py_None); resultobj = Py_None; | |
9009 | return resultobj; | |
9010 | fail: | |
9011 | return NULL; | |
9012 | } | |
9013 | ||
9014 | ||
9015 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9016 | PyObject *resultobj; | |
9017 | wxImage *arg1 = (wxImage *) 0 ; | |
9018 | PyObject * obj0 = 0 ; | |
9019 | char *kwnames[] = { | |
9020 | (char *) "self", NULL | |
9021 | }; | |
9022 | ||
9023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
9024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9026 | { | |
9027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9028 | (arg1)->Destroy(); | |
9029 | ||
9030 | wxPyEndAllowThreads(__tstate); | |
9031 | if (PyErr_Occurred()) SWIG_fail; | |
9032 | } | |
9033 | Py_INCREF(Py_None); resultobj = Py_None; | |
9034 | return resultobj; | |
9035 | fail: | |
9036 | return NULL; | |
9037 | } | |
9038 | ||
9039 | ||
9040 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9041 | PyObject *resultobj; | |
9042 | wxImage *arg1 = (wxImage *) 0 ; | |
9043 | int arg2 ; | |
9044 | int arg3 ; | |
9045 | SwigValueWrapper< wxImage > result; | |
9046 | PyObject * obj0 = 0 ; | |
9047 | PyObject * obj1 = 0 ; | |
9048 | PyObject * obj2 = 0 ; | |
9049 | char *kwnames[] = { | |
9050 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9051 | }; | |
9052 | ||
9053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9056 | arg2 = (int) SWIG_AsInt(obj1); | |
9057 | if (PyErr_Occurred()) SWIG_fail; | |
9058 | arg3 = (int) SWIG_AsInt(obj2); | |
9059 | if (PyErr_Occurred()) SWIG_fail; | |
9060 | { | |
9061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9062 | result = (arg1)->Scale(arg2,arg3); | |
9063 | ||
9064 | wxPyEndAllowThreads(__tstate); | |
9065 | if (PyErr_Occurred()) SWIG_fail; | |
9066 | } | |
9067 | { | |
9068 | wxImage * resultptr; | |
9069 | resultptr = new wxImage((wxImage &) result); | |
9070 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9071 | } | |
9072 | return resultobj; | |
9073 | fail: | |
9074 | return NULL; | |
9075 | } | |
9076 | ||
9077 | ||
9078 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9079 | PyObject *resultobj; | |
9080 | wxImage *arg1 = (wxImage *) 0 ; | |
9081 | int arg2 ; | |
9082 | int arg3 ; | |
9083 | SwigValueWrapper< wxImage > result; | |
9084 | PyObject * obj0 = 0 ; | |
9085 | PyObject * obj1 = 0 ; | |
9086 | PyObject * obj2 = 0 ; | |
9087 | char *kwnames[] = { | |
9088 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9089 | }; | |
9090 | ||
9091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9094 | arg2 = (int) SWIG_AsInt(obj1); | |
9095 | if (PyErr_Occurred()) SWIG_fail; | |
9096 | arg3 = (int) SWIG_AsInt(obj2); | |
9097 | if (PyErr_Occurred()) SWIG_fail; | |
9098 | { | |
9099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9100 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9101 | ||
9102 | wxPyEndAllowThreads(__tstate); | |
9103 | if (PyErr_Occurred()) SWIG_fail; | |
9104 | } | |
9105 | { | |
9106 | wxImage * resultptr; | |
9107 | resultptr = new wxImage((wxImage &) result); | |
9108 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9109 | } | |
9110 | return resultobj; | |
9111 | fail: | |
9112 | return NULL; | |
9113 | } | |
9114 | ||
9115 | ||
9116 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9117 | PyObject *resultobj; | |
9118 | wxImage *arg1 = (wxImage *) 0 ; | |
9119 | int arg2 ; | |
9120 | int arg3 ; | |
9121 | wxImage *result; | |
9122 | PyObject * obj0 = 0 ; | |
9123 | PyObject * obj1 = 0 ; | |
9124 | PyObject * obj2 = 0 ; | |
9125 | char *kwnames[] = { | |
9126 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9127 | }; | |
9128 | ||
9129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9132 | arg2 = (int) SWIG_AsInt(obj1); | |
9133 | if (PyErr_Occurred()) SWIG_fail; | |
9134 | arg3 = (int) SWIG_AsInt(obj2); | |
9135 | if (PyErr_Occurred()) SWIG_fail; | |
9136 | { | |
9137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9138 | { | |
9139 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9140 | result = (wxImage *) &_result_ref; | |
9141 | } | |
9142 | ||
9143 | wxPyEndAllowThreads(__tstate); | |
9144 | if (PyErr_Occurred()) SWIG_fail; | |
9145 | } | |
9146 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
9147 | return resultobj; | |
9148 | fail: | |
9149 | return NULL; | |
9150 | } | |
9151 | ||
9152 | ||
9153 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9154 | PyObject *resultobj; | |
9155 | wxImage *arg1 = (wxImage *) 0 ; | |
9156 | int arg2 ; | |
9157 | int arg3 ; | |
9158 | unsigned char arg4 ; | |
9159 | unsigned char arg5 ; | |
9160 | unsigned char arg6 ; | |
9161 | PyObject * obj0 = 0 ; | |
9162 | PyObject * obj1 = 0 ; | |
9163 | PyObject * obj2 = 0 ; | |
9164 | PyObject * obj3 = 0 ; | |
9165 | PyObject * obj4 = 0 ; | |
9166 | PyObject * obj5 = 0 ; | |
9167 | char *kwnames[] = { | |
9168 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9169 | }; | |
9170 | ||
9171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9174 | arg2 = (int) SWIG_AsInt(obj1); | |
9175 | if (PyErr_Occurred()) SWIG_fail; | |
9176 | arg3 = (int) SWIG_AsInt(obj2); | |
9177 | if (PyErr_Occurred()) SWIG_fail; | |
9178 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9179 | if (PyErr_Occurred()) SWIG_fail; | |
9180 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
9181 | if (PyErr_Occurred()) SWIG_fail; | |
9182 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
9183 | if (PyErr_Occurred()) SWIG_fail; | |
9184 | { | |
9185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9186 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9187 | ||
9188 | wxPyEndAllowThreads(__tstate); | |
9189 | if (PyErr_Occurred()) SWIG_fail; | |
9190 | } | |
9191 | Py_INCREF(Py_None); resultobj = Py_None; | |
9192 | return resultobj; | |
9193 | fail: | |
9194 | return NULL; | |
9195 | } | |
9196 | ||
9197 | ||
9198 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9199 | PyObject *resultobj; | |
9200 | wxImage *arg1 = (wxImage *) 0 ; | |
9201 | int arg2 ; | |
9202 | int arg3 ; | |
9203 | unsigned char result; | |
9204 | PyObject * obj0 = 0 ; | |
9205 | PyObject * obj1 = 0 ; | |
9206 | PyObject * obj2 = 0 ; | |
9207 | char *kwnames[] = { | |
9208 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9209 | }; | |
9210 | ||
9211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9214 | arg2 = (int) SWIG_AsInt(obj1); | |
9215 | if (PyErr_Occurred()) SWIG_fail; | |
9216 | arg3 = (int) SWIG_AsInt(obj2); | |
9217 | if (PyErr_Occurred()) SWIG_fail; | |
9218 | { | |
9219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9220 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9221 | ||
9222 | wxPyEndAllowThreads(__tstate); | |
9223 | if (PyErr_Occurred()) SWIG_fail; | |
9224 | } | |
9225 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9226 | return resultobj; | |
9227 | fail: | |
9228 | return NULL; | |
9229 | } | |
9230 | ||
9231 | ||
9232 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9233 | PyObject *resultobj; | |
9234 | wxImage *arg1 = (wxImage *) 0 ; | |
9235 | int arg2 ; | |
9236 | int arg3 ; | |
9237 | unsigned char result; | |
9238 | PyObject * obj0 = 0 ; | |
9239 | PyObject * obj1 = 0 ; | |
9240 | PyObject * obj2 = 0 ; | |
9241 | char *kwnames[] = { | |
9242 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9243 | }; | |
9244 | ||
9245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9248 | arg2 = (int) SWIG_AsInt(obj1); | |
9249 | if (PyErr_Occurred()) SWIG_fail; | |
9250 | arg3 = (int) SWIG_AsInt(obj2); | |
9251 | if (PyErr_Occurred()) SWIG_fail; | |
9252 | { | |
9253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9254 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9255 | ||
9256 | wxPyEndAllowThreads(__tstate); | |
9257 | if (PyErr_Occurred()) SWIG_fail; | |
9258 | } | |
9259 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9260 | return resultobj; | |
9261 | fail: | |
9262 | return NULL; | |
9263 | } | |
9264 | ||
9265 | ||
9266 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9267 | PyObject *resultobj; | |
9268 | wxImage *arg1 = (wxImage *) 0 ; | |
9269 | int arg2 ; | |
9270 | int arg3 ; | |
9271 | unsigned char result; | |
9272 | PyObject * obj0 = 0 ; | |
9273 | PyObject * obj1 = 0 ; | |
9274 | PyObject * obj2 = 0 ; | |
9275 | char *kwnames[] = { | |
9276 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9277 | }; | |
9278 | ||
9279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9282 | arg2 = (int) SWIG_AsInt(obj1); | |
9283 | if (PyErr_Occurred()) SWIG_fail; | |
9284 | arg3 = (int) SWIG_AsInt(obj2); | |
9285 | if (PyErr_Occurred()) SWIG_fail; | |
9286 | { | |
9287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9288 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9289 | ||
9290 | wxPyEndAllowThreads(__tstate); | |
9291 | if (PyErr_Occurred()) SWIG_fail; | |
9292 | } | |
9293 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9294 | return resultobj; | |
9295 | fail: | |
9296 | return NULL; | |
9297 | } | |
9298 | ||
9299 | ||
9300 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9301 | PyObject *resultobj; | |
9302 | wxImage *arg1 = (wxImage *) 0 ; | |
9303 | int arg2 ; | |
9304 | int arg3 ; | |
9305 | unsigned char arg4 ; | |
9306 | PyObject * obj0 = 0 ; | |
9307 | PyObject * obj1 = 0 ; | |
9308 | PyObject * obj2 = 0 ; | |
9309 | PyObject * obj3 = 0 ; | |
9310 | char *kwnames[] = { | |
9311 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9312 | }; | |
9313 | ||
9314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9317 | arg2 = (int) SWIG_AsInt(obj1); | |
9318 | if (PyErr_Occurred()) SWIG_fail; | |
9319 | arg3 = (int) SWIG_AsInt(obj2); | |
9320 | if (PyErr_Occurred()) SWIG_fail; | |
9321 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9322 | if (PyErr_Occurred()) SWIG_fail; | |
9323 | { | |
9324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9325 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9326 | ||
9327 | wxPyEndAllowThreads(__tstate); | |
9328 | if (PyErr_Occurred()) SWIG_fail; | |
9329 | } | |
9330 | Py_INCREF(Py_None); resultobj = Py_None; | |
9331 | return resultobj; | |
9332 | fail: | |
9333 | return NULL; | |
9334 | } | |
9335 | ||
9336 | ||
9337 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9338 | PyObject *resultobj; | |
9339 | wxImage *arg1 = (wxImage *) 0 ; | |
9340 | int arg2 ; | |
9341 | int arg3 ; | |
9342 | unsigned char result; | |
9343 | PyObject * obj0 = 0 ; | |
9344 | PyObject * obj1 = 0 ; | |
9345 | PyObject * obj2 = 0 ; | |
9346 | char *kwnames[] = { | |
9347 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9348 | }; | |
9349 | ||
9350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9353 | arg2 = (int) SWIG_AsInt(obj1); | |
9354 | if (PyErr_Occurred()) SWIG_fail; | |
9355 | arg3 = (int) SWIG_AsInt(obj2); | |
9356 | if (PyErr_Occurred()) SWIG_fail; | |
9357 | { | |
9358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9359 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9360 | ||
9361 | wxPyEndAllowThreads(__tstate); | |
9362 | if (PyErr_Occurred()) SWIG_fail; | |
9363 | } | |
9364 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9365 | return resultobj; | |
9366 | fail: | |
9367 | return NULL; | |
9368 | } | |
9369 | ||
9370 | ||
9371 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9372 | PyObject *resultobj; | |
9373 | wxImage *arg1 = (wxImage *) 0 ; | |
9374 | bool result; | |
9375 | PyObject * obj0 = 0 ; | |
9376 | char *kwnames[] = { | |
9377 | (char *) "self", NULL | |
9378 | }; | |
9379 | ||
9380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
9381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9383 | { | |
9384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9385 | result = (bool)(arg1)->HasAlpha(); | |
9386 | ||
9387 | wxPyEndAllowThreads(__tstate); | |
9388 | if (PyErr_Occurred()) SWIG_fail; | |
9389 | } | |
9390 | { | |
9391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9392 | } | |
9393 | return resultobj; | |
9394 | fail: | |
9395 | return NULL; | |
9396 | } | |
9397 | ||
9398 | ||
9399 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9400 | PyObject *resultobj; | |
9401 | wxImage *arg1 = (wxImage *) 0 ; | |
9402 | byte *arg2 = (byte *) 0 ; | |
9403 | byte *arg3 = (byte *) 0 ; | |
9404 | byte *arg4 = (byte *) 0 ; | |
9405 | byte arg5 = (byte) 0 ; | |
9406 | byte arg6 = (byte) 0 ; | |
9407 | byte arg7 = (byte) 0 ; | |
9408 | bool result; | |
9409 | byte temp2 ; | |
9410 | byte temp3 ; | |
9411 | byte temp4 ; | |
9412 | PyObject * obj0 = 0 ; | |
9413 | PyObject * obj1 = 0 ; | |
9414 | PyObject * obj2 = 0 ; | |
9415 | PyObject * obj3 = 0 ; | |
9416 | char *kwnames[] = { | |
9417 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9418 | }; | |
9419 | ||
9420 | arg2 = &temp2; | |
9421 | arg3 = &temp3; | |
9422 | arg4 = &temp4; | |
9423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9426 | if (obj1) { | |
9427 | arg5 = (byte) SWIG_AsUnsignedChar(obj1); | |
9428 | if (PyErr_Occurred()) SWIG_fail; | |
9429 | } | |
9430 | if (obj2) { | |
9431 | arg6 = (byte) SWIG_AsUnsignedChar(obj2); | |
9432 | if (PyErr_Occurred()) SWIG_fail; | |
9433 | } | |
9434 | if (obj3) { | |
9435 | arg7 = (byte) SWIG_AsUnsignedChar(obj3); | |
9436 | if (PyErr_Occurred()) SWIG_fail; | |
9437 | } | |
9438 | { | |
9439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9440 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9441 | ||
9442 | wxPyEndAllowThreads(__tstate); | |
9443 | if (PyErr_Occurred()) SWIG_fail; | |
9444 | } | |
9445 | { | |
9446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9447 | } | |
9448 | { | |
9449 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9450 | resultobj = t_output_helper(resultobj,o); | |
9451 | } | |
9452 | { | |
9453 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9454 | resultobj = t_output_helper(resultobj,o); | |
9455 | } | |
9456 | { | |
9457 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9458 | resultobj = t_output_helper(resultobj,o); | |
9459 | } | |
9460 | return resultobj; | |
9461 | fail: | |
9462 | return NULL; | |
9463 | } | |
9464 | ||
9465 | ||
4cf4100f RD |
9466 | static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
9467 | PyObject *resultobj; | |
9468 | wxImage *arg1 = (wxImage *) 0 ; | |
9469 | byte arg2 = (byte) 128 ; | |
9470 | bool result; | |
9471 | PyObject * obj0 = 0 ; | |
9472 | PyObject * obj1 = 0 ; | |
9473 | char *kwnames[] = { | |
9474 | (char *) "self",(char *) "threshold", NULL | |
9475 | }; | |
9476 | ||
9477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail; | |
9478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9480 | if (obj1) { | |
9481 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); | |
9482 | if (PyErr_Occurred()) SWIG_fail; | |
9483 | } | |
9484 | { | |
9485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9486 | result = (bool)(arg1)->ConvertAlphaToMask(arg2); | |
9487 | ||
9488 | wxPyEndAllowThreads(__tstate); | |
9489 | if (PyErr_Occurred()) SWIG_fail; | |
9490 | } | |
9491 | { | |
9492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9493 | } | |
9494 | return resultobj; | |
9495 | fail: | |
9496 | return NULL; | |
9497 | } | |
9498 | ||
9499 | ||
d55e5bfc RD |
9500 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
9501 | PyObject *resultobj; | |
9502 | wxImage *arg1 = (wxImage *) 0 ; | |
9503 | wxImage *arg2 = 0 ; | |
9504 | byte arg3 ; | |
9505 | byte arg4 ; | |
9506 | byte arg5 ; | |
9507 | bool result; | |
9508 | PyObject * obj0 = 0 ; | |
9509 | PyObject * obj1 = 0 ; | |
9510 | PyObject * obj2 = 0 ; | |
9511 | PyObject * obj3 = 0 ; | |
9512 | PyObject * obj4 = 0 ; | |
9513 | char *kwnames[] = { | |
9514 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9515 | }; | |
9516 | ||
9517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9520 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9521 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9522 | SWIG_fail; | |
9523 | if (arg2 == NULL) { | |
9524 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9525 | SWIG_fail; | |
9526 | } | |
9527 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); | |
9528 | if (PyErr_Occurred()) SWIG_fail; | |
9529 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
9530 | if (PyErr_Occurred()) SWIG_fail; | |
9531 | arg5 = (byte) SWIG_AsUnsignedChar(obj4); | |
9532 | if (PyErr_Occurred()) SWIG_fail; | |
9533 | { | |
9534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9535 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9536 | ||
9537 | wxPyEndAllowThreads(__tstate); | |
9538 | if (PyErr_Occurred()) SWIG_fail; | |
9539 | } | |
9540 | { | |
9541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9542 | } | |
9543 | return resultobj; | |
9544 | fail: | |
9545 | return NULL; | |
9546 | } | |
9547 | ||
9548 | ||
9549 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9550 | PyObject *resultobj; | |
9551 | wxString *arg1 = 0 ; | |
9552 | bool result; | |
9553 | bool temp1 = False ; | |
9554 | PyObject * obj0 = 0 ; | |
9555 | char *kwnames[] = { | |
9556 | (char *) "name", NULL | |
9557 | }; | |
9558 | ||
9559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9560 | { | |
9561 | arg1 = wxString_in_helper(obj0); | |
9562 | if (arg1 == NULL) SWIG_fail; | |
9563 | temp1 = True; | |
9564 | } | |
9565 | { | |
9566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9567 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9568 | ||
9569 | wxPyEndAllowThreads(__tstate); | |
9570 | if (PyErr_Occurred()) SWIG_fail; | |
9571 | } | |
9572 | { | |
9573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9574 | } | |
9575 | { | |
9576 | if (temp1) | |
9577 | delete arg1; | |
9578 | } | |
9579 | return resultobj; | |
9580 | fail: | |
9581 | { | |
9582 | if (temp1) | |
9583 | delete arg1; | |
9584 | } | |
9585 | return NULL; | |
9586 | } | |
9587 | ||
9588 | ||
9589 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9590 | PyObject *resultobj; | |
9591 | wxString *arg1 = 0 ; | |
9592 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9593 | int result; | |
9594 | bool temp1 = False ; | |
9595 | PyObject * obj0 = 0 ; | |
9596 | PyObject * obj1 = 0 ; | |
9597 | char *kwnames[] = { | |
9598 | (char *) "name",(char *) "type", NULL | |
9599 | }; | |
9600 | ||
9601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; | |
9602 | { | |
9603 | arg1 = wxString_in_helper(obj0); | |
9604 | if (arg1 == NULL) SWIG_fail; | |
9605 | temp1 = True; | |
9606 | } | |
9607 | if (obj1) { | |
9608 | arg2 = (long) SWIG_AsLong(obj1); | |
9609 | if (PyErr_Occurred()) SWIG_fail; | |
9610 | } | |
9611 | { | |
9612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9613 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9614 | ||
9615 | wxPyEndAllowThreads(__tstate); | |
9616 | if (PyErr_Occurred()) SWIG_fail; | |
9617 | } | |
9618 | resultobj = SWIG_FromInt((int)result); | |
9619 | { | |
9620 | if (temp1) | |
9621 | delete arg1; | |
9622 | } | |
9623 | return resultobj; | |
9624 | fail: | |
9625 | { | |
9626 | if (temp1) | |
9627 | delete arg1; | |
9628 | } | |
9629 | return NULL; | |
9630 | } | |
9631 | ||
9632 | ||
9633 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9634 | PyObject *resultobj; | |
9635 | wxImage *arg1 = (wxImage *) 0 ; | |
9636 | wxString *arg2 = 0 ; | |
9637 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9638 | int arg4 = (int) -1 ; | |
9639 | bool result; | |
9640 | bool temp2 = False ; | |
9641 | PyObject * obj0 = 0 ; | |
9642 | PyObject * obj1 = 0 ; | |
9643 | PyObject * obj2 = 0 ; | |
9644 | PyObject * obj3 = 0 ; | |
9645 | char *kwnames[] = { | |
9646 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9647 | }; | |
9648 | ||
9649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9652 | { | |
9653 | arg2 = wxString_in_helper(obj1); | |
9654 | if (arg2 == NULL) SWIG_fail; | |
9655 | temp2 = True; | |
9656 | } | |
9657 | if (obj2) { | |
9658 | arg3 = (long) SWIG_AsLong(obj2); | |
9659 | if (PyErr_Occurred()) SWIG_fail; | |
9660 | } | |
9661 | if (obj3) { | |
9662 | arg4 = (int) SWIG_AsInt(obj3); | |
9663 | if (PyErr_Occurred()) SWIG_fail; | |
9664 | } | |
9665 | { | |
9666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9667 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9668 | ||
9669 | wxPyEndAllowThreads(__tstate); | |
9670 | if (PyErr_Occurred()) SWIG_fail; | |
9671 | } | |
9672 | { | |
9673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9674 | } | |
9675 | { | |
9676 | if (temp2) | |
9677 | delete arg2; | |
9678 | } | |
9679 | return resultobj; | |
9680 | fail: | |
9681 | { | |
9682 | if (temp2) | |
9683 | delete arg2; | |
9684 | } | |
9685 | return NULL; | |
9686 | } | |
9687 | ||
9688 | ||
9689 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9690 | PyObject *resultobj; | |
9691 | wxImage *arg1 = (wxImage *) 0 ; | |
9692 | wxString *arg2 = 0 ; | |
9693 | wxString *arg3 = 0 ; | |
9694 | int arg4 = (int) -1 ; | |
9695 | bool result; | |
9696 | bool temp2 = False ; | |
9697 | bool temp3 = False ; | |
9698 | PyObject * obj0 = 0 ; | |
9699 | PyObject * obj1 = 0 ; | |
9700 | PyObject * obj2 = 0 ; | |
9701 | PyObject * obj3 = 0 ; | |
9702 | char *kwnames[] = { | |
9703 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9704 | }; | |
9705 | ||
9706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9709 | { | |
9710 | arg2 = wxString_in_helper(obj1); | |
9711 | if (arg2 == NULL) SWIG_fail; | |
9712 | temp2 = True; | |
9713 | } | |
9714 | { | |
9715 | arg3 = wxString_in_helper(obj2); | |
9716 | if (arg3 == NULL) SWIG_fail; | |
9717 | temp3 = True; | |
9718 | } | |
9719 | if (obj3) { | |
9720 | arg4 = (int) SWIG_AsInt(obj3); | |
9721 | if (PyErr_Occurred()) SWIG_fail; | |
9722 | } | |
9723 | { | |
9724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9725 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9726 | ||
9727 | wxPyEndAllowThreads(__tstate); | |
9728 | if (PyErr_Occurred()) SWIG_fail; | |
9729 | } | |
9730 | { | |
9731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9732 | } | |
9733 | { | |
9734 | if (temp2) | |
9735 | delete arg2; | |
9736 | } | |
9737 | { | |
9738 | if (temp3) | |
9739 | delete arg3; | |
9740 | } | |
9741 | return resultobj; | |
9742 | fail: | |
9743 | { | |
9744 | if (temp2) | |
9745 | delete arg2; | |
9746 | } | |
9747 | { | |
9748 | if (temp3) | |
9749 | delete arg3; | |
9750 | } | |
9751 | return NULL; | |
9752 | } | |
9753 | ||
9754 | ||
9755 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9756 | PyObject *resultobj; | |
9757 | wxImage *arg1 = (wxImage *) 0 ; | |
9758 | wxString *arg2 = 0 ; | |
9759 | int arg3 ; | |
9760 | bool result; | |
9761 | bool temp2 = False ; | |
9762 | PyObject * obj0 = 0 ; | |
9763 | PyObject * obj1 = 0 ; | |
9764 | PyObject * obj2 = 0 ; | |
9765 | char *kwnames[] = { | |
9766 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9767 | }; | |
9768 | ||
9769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9772 | { | |
9773 | arg2 = wxString_in_helper(obj1); | |
9774 | if (arg2 == NULL) SWIG_fail; | |
9775 | temp2 = True; | |
9776 | } | |
9777 | arg3 = (int) SWIG_AsInt(obj2); | |
9778 | if (PyErr_Occurred()) SWIG_fail; | |
9779 | { | |
9780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9781 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9782 | ||
9783 | wxPyEndAllowThreads(__tstate); | |
9784 | if (PyErr_Occurred()) SWIG_fail; | |
9785 | } | |
9786 | { | |
9787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9788 | } | |
9789 | { | |
9790 | if (temp2) | |
9791 | delete arg2; | |
9792 | } | |
9793 | return resultobj; | |
9794 | fail: | |
9795 | { | |
9796 | if (temp2) | |
9797 | delete arg2; | |
9798 | } | |
9799 | return NULL; | |
9800 | } | |
9801 | ||
9802 | ||
9803 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9804 | PyObject *resultobj; | |
9805 | wxImage *arg1 = (wxImage *) 0 ; | |
9806 | wxString *arg2 = 0 ; | |
9807 | wxString *arg3 = 0 ; | |
9808 | bool result; | |
9809 | bool temp2 = False ; | |
9810 | bool temp3 = False ; | |
9811 | PyObject * obj0 = 0 ; | |
9812 | PyObject * obj1 = 0 ; | |
9813 | PyObject * obj2 = 0 ; | |
9814 | char *kwnames[] = { | |
9815 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9816 | }; | |
9817 | ||
9818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9821 | { | |
9822 | arg2 = wxString_in_helper(obj1); | |
9823 | if (arg2 == NULL) SWIG_fail; | |
9824 | temp2 = True; | |
9825 | } | |
9826 | { | |
9827 | arg3 = wxString_in_helper(obj2); | |
9828 | if (arg3 == NULL) SWIG_fail; | |
9829 | temp3 = True; | |
9830 | } | |
9831 | { | |
9832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9833 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9834 | ||
9835 | wxPyEndAllowThreads(__tstate); | |
9836 | if (PyErr_Occurred()) SWIG_fail; | |
9837 | } | |
9838 | { | |
9839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9840 | } | |
9841 | { | |
9842 | if (temp2) | |
9843 | delete arg2; | |
9844 | } | |
9845 | { | |
9846 | if (temp3) | |
9847 | delete arg3; | |
9848 | } | |
9849 | return resultobj; | |
9850 | fail: | |
9851 | { | |
9852 | if (temp2) | |
9853 | delete arg2; | |
9854 | } | |
9855 | { | |
9856 | if (temp3) | |
9857 | delete arg3; | |
9858 | } | |
9859 | return NULL; | |
9860 | } | |
9861 | ||
9862 | ||
9863 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9864 | PyObject *resultobj; | |
9865 | wxInputStream *arg1 = 0 ; | |
9866 | bool result; | |
9867 | wxPyInputStream *temp1 ; | |
9868 | bool created1 ; | |
9869 | PyObject * obj0 = 0 ; | |
9870 | char *kwnames[] = { | |
9871 | (char *) "stream", NULL | |
9872 | }; | |
9873 | ||
9874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9875 | { | |
9876 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9877 | arg1 = temp1->m_wxis; | |
9878 | created1 = False; | |
9879 | } else { | |
9880 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
9881 | arg1 = wxPyCBInputStream_create(obj0, False); | |
9882 | if (arg1 == NULL) { | |
9883 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9884 | SWIG_fail; | |
9885 | } | |
9886 | created1 = True; | |
9887 | } | |
9888 | } | |
9889 | { | |
9890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9891 | result = (bool)wxImage::CanRead(*arg1); | |
9892 | ||
9893 | wxPyEndAllowThreads(__tstate); | |
9894 | if (PyErr_Occurred()) SWIG_fail; | |
9895 | } | |
9896 | { | |
9897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9898 | } | |
9899 | { | |
9900 | if (created1) | |
9901 | delete arg1; | |
9902 | } | |
9903 | return resultobj; | |
9904 | fail: | |
9905 | { | |
9906 | if (created1) | |
9907 | delete arg1; | |
9908 | } | |
9909 | return NULL; | |
9910 | } | |
9911 | ||
9912 | ||
9913 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9914 | PyObject *resultobj; | |
9915 | wxImage *arg1 = (wxImage *) 0 ; | |
9916 | wxInputStream *arg2 = 0 ; | |
9917 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9918 | int arg4 = (int) -1 ; | |
9919 | bool result; | |
9920 | wxPyInputStream *temp2 ; | |
9921 | bool created2 ; | |
9922 | PyObject * obj0 = 0 ; | |
9923 | PyObject * obj1 = 0 ; | |
9924 | PyObject * obj2 = 0 ; | |
9925 | PyObject * obj3 = 0 ; | |
9926 | char *kwnames[] = { | |
9927 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9928 | }; | |
9929 | ||
9930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9933 | { | |
9934 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9935 | arg2 = temp2->m_wxis; | |
9936 | created2 = False; | |
9937 | } else { | |
9938 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
9939 | arg2 = wxPyCBInputStream_create(obj1, False); | |
9940 | if (arg2 == NULL) { | |
9941 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9942 | SWIG_fail; | |
9943 | } | |
9944 | created2 = True; | |
9945 | } | |
9946 | } | |
9947 | if (obj2) { | |
9948 | arg3 = (long) SWIG_AsLong(obj2); | |
9949 | if (PyErr_Occurred()) SWIG_fail; | |
9950 | } | |
9951 | if (obj3) { | |
9952 | arg4 = (int) SWIG_AsInt(obj3); | |
9953 | if (PyErr_Occurred()) SWIG_fail; | |
9954 | } | |
9955 | { | |
9956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9957 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9958 | ||
9959 | wxPyEndAllowThreads(__tstate); | |
9960 | if (PyErr_Occurred()) SWIG_fail; | |
9961 | } | |
9962 | { | |
9963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9964 | } | |
9965 | { | |
9966 | if (created2) | |
9967 | delete arg2; | |
9968 | } | |
9969 | return resultobj; | |
9970 | fail: | |
9971 | { | |
9972 | if (created2) | |
9973 | delete arg2; | |
9974 | } | |
9975 | return NULL; | |
9976 | } | |
9977 | ||
9978 | ||
9979 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9980 | PyObject *resultobj; | |
9981 | wxImage *arg1 = (wxImage *) 0 ; | |
9982 | wxInputStream *arg2 = 0 ; | |
9983 | wxString *arg3 = 0 ; | |
9984 | int arg4 = (int) -1 ; | |
9985 | bool result; | |
9986 | wxPyInputStream *temp2 ; | |
9987 | bool created2 ; | |
9988 | bool temp3 = False ; | |
9989 | PyObject * obj0 = 0 ; | |
9990 | PyObject * obj1 = 0 ; | |
9991 | PyObject * obj2 = 0 ; | |
9992 | PyObject * obj3 = 0 ; | |
9993 | char *kwnames[] = { | |
9994 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9995 | }; | |
9996 | ||
9997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10000 | { | |
10001 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10002 | arg2 = temp2->m_wxis; | |
10003 | created2 = False; | |
10004 | } else { | |
10005 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
10006 | arg2 = wxPyCBInputStream_create(obj1, False); | |
10007 | if (arg2 == NULL) { | |
10008 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10009 | SWIG_fail; | |
10010 | } | |
10011 | created2 = True; | |
10012 | } | |
10013 | } | |
10014 | { | |
10015 | arg3 = wxString_in_helper(obj2); | |
10016 | if (arg3 == NULL) SWIG_fail; | |
10017 | temp3 = True; | |
10018 | } | |
10019 | if (obj3) { | |
10020 | arg4 = (int) SWIG_AsInt(obj3); | |
10021 | if (PyErr_Occurred()) SWIG_fail; | |
10022 | } | |
10023 | { | |
10024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10025 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
10026 | ||
10027 | wxPyEndAllowThreads(__tstate); | |
10028 | if (PyErr_Occurred()) SWIG_fail; | |
10029 | } | |
10030 | { | |
10031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10032 | } | |
10033 | { | |
10034 | if (created2) | |
10035 | delete arg2; | |
10036 | } | |
10037 | { | |
10038 | if (temp3) | |
10039 | delete arg3; | |
10040 | } | |
10041 | return resultobj; | |
10042 | fail: | |
10043 | { | |
10044 | if (created2) | |
10045 | delete arg2; | |
10046 | } | |
10047 | { | |
10048 | if (temp3) | |
10049 | delete arg3; | |
10050 | } | |
10051 | return NULL; | |
10052 | } | |
10053 | ||
10054 | ||
10055 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10056 | PyObject *resultobj; | |
10057 | wxImage *arg1 = (wxImage *) 0 ; | |
10058 | bool result; | |
10059 | PyObject * obj0 = 0 ; | |
10060 | char *kwnames[] = { | |
10061 | (char *) "self", NULL | |
10062 | }; | |
10063 | ||
10064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
10065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10067 | { | |
10068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10069 | result = (bool)(arg1)->Ok(); | |
10070 | ||
10071 | wxPyEndAllowThreads(__tstate); | |
10072 | if (PyErr_Occurred()) SWIG_fail; | |
10073 | } | |
10074 | { | |
10075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10076 | } | |
10077 | return resultobj; | |
10078 | fail: | |
10079 | return NULL; | |
10080 | } | |
10081 | ||
10082 | ||
10083 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10084 | PyObject *resultobj; | |
10085 | wxImage *arg1 = (wxImage *) 0 ; | |
10086 | int result; | |
10087 | PyObject * obj0 = 0 ; | |
10088 | char *kwnames[] = { | |
10089 | (char *) "self", NULL | |
10090 | }; | |
10091 | ||
10092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
10093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10095 | { | |
10096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10097 | result = (int)(arg1)->GetWidth(); | |
10098 | ||
10099 | wxPyEndAllowThreads(__tstate); | |
10100 | if (PyErr_Occurred()) SWIG_fail; | |
10101 | } | |
10102 | resultobj = SWIG_FromInt((int)result); | |
10103 | return resultobj; | |
10104 | fail: | |
10105 | return NULL; | |
10106 | } | |
10107 | ||
10108 | ||
10109 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10110 | PyObject *resultobj; | |
10111 | wxImage *arg1 = (wxImage *) 0 ; | |
10112 | int result; | |
10113 | PyObject * obj0 = 0 ; | |
10114 | char *kwnames[] = { | |
10115 | (char *) "self", NULL | |
10116 | }; | |
10117 | ||
10118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
10119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10121 | { | |
10122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10123 | result = (int)(arg1)->GetHeight(); | |
10124 | ||
10125 | wxPyEndAllowThreads(__tstate); | |
10126 | if (PyErr_Occurred()) SWIG_fail; | |
10127 | } | |
10128 | resultobj = SWIG_FromInt((int)result); | |
10129 | return resultobj; | |
10130 | fail: | |
10131 | return NULL; | |
10132 | } | |
10133 | ||
10134 | ||
10135 | static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10136 | PyObject *resultobj; | |
10137 | wxImage *arg1 = (wxImage *) 0 ; | |
10138 | wxSize result; | |
10139 | PyObject * obj0 = 0 ; | |
10140 | char *kwnames[] = { | |
10141 | (char *) "self", NULL | |
10142 | }; | |
10143 | ||
10144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10147 | { | |
10148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10149 | result = wxImage_GetSize(arg1); | |
10150 | ||
10151 | wxPyEndAllowThreads(__tstate); | |
10152 | if (PyErr_Occurred()) SWIG_fail; | |
10153 | } | |
10154 | { | |
10155 | wxSize * resultptr; | |
10156 | resultptr = new wxSize((wxSize &) result); | |
10157 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10158 | } | |
10159 | return resultobj; | |
10160 | fail: | |
10161 | return NULL; | |
10162 | } | |
10163 | ||
10164 | ||
10165 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10166 | PyObject *resultobj; | |
10167 | wxImage *arg1 = (wxImage *) 0 ; | |
10168 | wxRect *arg2 = 0 ; | |
10169 | SwigValueWrapper< wxImage > result; | |
10170 | wxRect temp2 ; | |
10171 | PyObject * obj0 = 0 ; | |
10172 | PyObject * obj1 = 0 ; | |
10173 | char *kwnames[] = { | |
10174 | (char *) "self",(char *) "rect", NULL | |
10175 | }; | |
10176 | ||
10177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
10178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10180 | { | |
10181 | arg2 = &temp2; | |
10182 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10183 | } | |
10184 | { | |
10185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10186 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10187 | ||
10188 | wxPyEndAllowThreads(__tstate); | |
10189 | if (PyErr_Occurred()) SWIG_fail; | |
10190 | } | |
10191 | { | |
10192 | wxImage * resultptr; | |
10193 | resultptr = new wxImage((wxImage &) result); | |
10194 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10195 | } | |
10196 | return resultobj; | |
10197 | fail: | |
10198 | return NULL; | |
10199 | } | |
10200 | ||
10201 | ||
10202 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10203 | PyObject *resultobj; | |
10204 | wxImage *arg1 = (wxImage *) 0 ; | |
10205 | SwigValueWrapper< wxImage > result; | |
10206 | PyObject * obj0 = 0 ; | |
10207 | char *kwnames[] = { | |
10208 | (char *) "self", NULL | |
10209 | }; | |
10210 | ||
10211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
10212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10214 | { | |
10215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10216 | result = (arg1)->Copy(); | |
10217 | ||
10218 | wxPyEndAllowThreads(__tstate); | |
10219 | if (PyErr_Occurred()) SWIG_fail; | |
10220 | } | |
10221 | { | |
10222 | wxImage * resultptr; | |
10223 | resultptr = new wxImage((wxImage &) result); | |
10224 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10225 | } | |
10226 | return resultobj; | |
10227 | fail: | |
10228 | return NULL; | |
10229 | } | |
10230 | ||
10231 | ||
10232 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10233 | PyObject *resultobj; | |
10234 | wxImage *arg1 = (wxImage *) 0 ; | |
10235 | wxImage *arg2 = 0 ; | |
10236 | int arg3 ; | |
10237 | int arg4 ; | |
10238 | PyObject * obj0 = 0 ; | |
10239 | PyObject * obj1 = 0 ; | |
10240 | PyObject * obj2 = 0 ; | |
10241 | PyObject * obj3 = 0 ; | |
10242 | char *kwnames[] = { | |
10243 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10244 | }; | |
10245 | ||
10246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10249 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10250 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10251 | SWIG_fail; | |
10252 | if (arg2 == NULL) { | |
10253 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10254 | SWIG_fail; | |
10255 | } | |
10256 | arg3 = (int) SWIG_AsInt(obj2); | |
10257 | if (PyErr_Occurred()) SWIG_fail; | |
10258 | arg4 = (int) SWIG_AsInt(obj3); | |
10259 | if (PyErr_Occurred()) SWIG_fail; | |
10260 | { | |
10261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10262 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10263 | ||
10264 | wxPyEndAllowThreads(__tstate); | |
10265 | if (PyErr_Occurred()) SWIG_fail; | |
10266 | } | |
10267 | Py_INCREF(Py_None); resultobj = Py_None; | |
10268 | return resultobj; | |
10269 | fail: | |
10270 | return NULL; | |
10271 | } | |
10272 | ||
10273 | ||
10274 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10275 | PyObject *resultobj; | |
10276 | wxImage *arg1 = (wxImage *) 0 ; | |
10277 | PyObject *result; | |
10278 | PyObject * obj0 = 0 ; | |
10279 | char *kwnames[] = { | |
10280 | (char *) "self", NULL | |
10281 | }; | |
10282 | ||
10283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
10284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10286 | { | |
10287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10288 | result = (PyObject *)wxImage_GetData(arg1); | |
10289 | ||
10290 | wxPyEndAllowThreads(__tstate); | |
10291 | if (PyErr_Occurred()) SWIG_fail; | |
10292 | } | |
10293 | resultobj = result; | |
10294 | return resultobj; | |
10295 | fail: | |
10296 | return NULL; | |
10297 | } | |
10298 | ||
10299 | ||
10300 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10301 | PyObject *resultobj; | |
10302 | wxImage *arg1 = (wxImage *) 0 ; | |
10303 | PyObject *arg2 = (PyObject *) 0 ; | |
10304 | PyObject * obj0 = 0 ; | |
10305 | PyObject * obj1 = 0 ; | |
10306 | char *kwnames[] = { | |
10307 | (char *) "self",(char *) "data", NULL | |
10308 | }; | |
10309 | ||
10310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
10311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10313 | arg2 = obj1; | |
10314 | { | |
10315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10316 | wxImage_SetData(arg1,arg2); | |
10317 | ||
10318 | wxPyEndAllowThreads(__tstate); | |
10319 | if (PyErr_Occurred()) SWIG_fail; | |
10320 | } | |
10321 | Py_INCREF(Py_None); resultobj = Py_None; | |
10322 | return resultobj; | |
10323 | fail: | |
10324 | return NULL; | |
10325 | } | |
10326 | ||
10327 | ||
10328 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10329 | PyObject *resultobj; | |
10330 | wxImage *arg1 = (wxImage *) 0 ; | |
10331 | PyObject *result; | |
10332 | PyObject * obj0 = 0 ; | |
10333 | char *kwnames[] = { | |
10334 | (char *) "self", NULL | |
10335 | }; | |
10336 | ||
10337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
10338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10340 | { | |
10341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10342 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10343 | ||
10344 | wxPyEndAllowThreads(__tstate); | |
10345 | if (PyErr_Occurred()) SWIG_fail; | |
10346 | } | |
10347 | resultobj = result; | |
10348 | return resultobj; | |
10349 | fail: | |
10350 | return NULL; | |
10351 | } | |
10352 | ||
10353 | ||
10354 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10355 | PyObject *resultobj; | |
10356 | wxImage *arg1 = (wxImage *) 0 ; | |
10357 | PyObject *arg2 = (PyObject *) 0 ; | |
10358 | PyObject * obj0 = 0 ; | |
10359 | PyObject * obj1 = 0 ; | |
10360 | char *kwnames[] = { | |
10361 | (char *) "self",(char *) "data", NULL | |
10362 | }; | |
10363 | ||
10364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10367 | arg2 = obj1; | |
10368 | { | |
10369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10370 | wxImage_SetDataBuffer(arg1,arg2); | |
10371 | ||
10372 | wxPyEndAllowThreads(__tstate); | |
10373 | if (PyErr_Occurred()) SWIG_fail; | |
10374 | } | |
10375 | Py_INCREF(Py_None); resultobj = Py_None; | |
10376 | return resultobj; | |
10377 | fail: | |
10378 | return NULL; | |
10379 | } | |
10380 | ||
10381 | ||
10382 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10383 | PyObject *resultobj; | |
10384 | wxImage *arg1 = (wxImage *) 0 ; | |
10385 | PyObject *result; | |
10386 | PyObject * obj0 = 0 ; | |
10387 | char *kwnames[] = { | |
10388 | (char *) "self", NULL | |
10389 | }; | |
10390 | ||
10391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
10392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10394 | { | |
10395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10396 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10397 | ||
10398 | wxPyEndAllowThreads(__tstate); | |
10399 | if (PyErr_Occurred()) SWIG_fail; | |
10400 | } | |
10401 | resultobj = result; | |
10402 | return resultobj; | |
10403 | fail: | |
10404 | return NULL; | |
10405 | } | |
10406 | ||
10407 | ||
10408 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10409 | PyObject *resultobj; | |
10410 | wxImage *arg1 = (wxImage *) 0 ; | |
10411 | PyObject *arg2 = (PyObject *) 0 ; | |
10412 | PyObject * obj0 = 0 ; | |
10413 | PyObject * obj1 = 0 ; | |
10414 | char *kwnames[] = { | |
10415 | (char *) "self",(char *) "data", NULL | |
10416 | }; | |
10417 | ||
10418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
10419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10421 | arg2 = obj1; | |
10422 | { | |
10423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10424 | wxImage_SetAlphaData(arg1,arg2); | |
10425 | ||
10426 | wxPyEndAllowThreads(__tstate); | |
10427 | if (PyErr_Occurred()) SWIG_fail; | |
10428 | } | |
10429 | Py_INCREF(Py_None); resultobj = Py_None; | |
10430 | return resultobj; | |
10431 | fail: | |
10432 | return NULL; | |
10433 | } | |
10434 | ||
10435 | ||
10436 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10437 | PyObject *resultobj; | |
10438 | wxImage *arg1 = (wxImage *) 0 ; | |
10439 | PyObject *result; | |
10440 | PyObject * obj0 = 0 ; | |
10441 | char *kwnames[] = { | |
10442 | (char *) "self", NULL | |
10443 | }; | |
10444 | ||
10445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
10446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10448 | { | |
10449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10450 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10451 | ||
10452 | wxPyEndAllowThreads(__tstate); | |
10453 | if (PyErr_Occurred()) SWIG_fail; | |
10454 | } | |
10455 | resultobj = result; | |
10456 | return resultobj; | |
10457 | fail: | |
10458 | return NULL; | |
10459 | } | |
10460 | ||
10461 | ||
10462 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10463 | PyObject *resultobj; | |
10464 | wxImage *arg1 = (wxImage *) 0 ; | |
10465 | PyObject *arg2 = (PyObject *) 0 ; | |
10466 | PyObject * obj0 = 0 ; | |
10467 | PyObject * obj1 = 0 ; | |
10468 | char *kwnames[] = { | |
10469 | (char *) "self",(char *) "data", NULL | |
10470 | }; | |
10471 | ||
10472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10475 | arg2 = obj1; | |
10476 | { | |
10477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10478 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10479 | ||
10480 | wxPyEndAllowThreads(__tstate); | |
10481 | if (PyErr_Occurred()) SWIG_fail; | |
10482 | } | |
10483 | Py_INCREF(Py_None); resultobj = Py_None; | |
10484 | return resultobj; | |
10485 | fail: | |
10486 | return NULL; | |
10487 | } | |
10488 | ||
10489 | ||
10490 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10491 | PyObject *resultobj; | |
10492 | wxImage *arg1 = (wxImage *) 0 ; | |
10493 | unsigned char arg2 ; | |
10494 | unsigned char arg3 ; | |
10495 | unsigned char arg4 ; | |
10496 | PyObject * obj0 = 0 ; | |
10497 | PyObject * obj1 = 0 ; | |
10498 | PyObject * obj2 = 0 ; | |
10499 | PyObject * obj3 = 0 ; | |
10500 | char *kwnames[] = { | |
10501 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10502 | }; | |
10503 | ||
10504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10507 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10508 | if (PyErr_Occurred()) SWIG_fail; | |
10509 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10510 | if (PyErr_Occurred()) SWIG_fail; | |
10511 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10512 | if (PyErr_Occurred()) SWIG_fail; | |
10513 | { | |
10514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10515 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10516 | ||
10517 | wxPyEndAllowThreads(__tstate); | |
10518 | if (PyErr_Occurred()) SWIG_fail; | |
10519 | } | |
10520 | Py_INCREF(Py_None); resultobj = Py_None; | |
10521 | return resultobj; | |
10522 | fail: | |
10523 | return NULL; | |
10524 | } | |
10525 | ||
10526 | ||
10527 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10528 | PyObject *resultobj; | |
10529 | wxImage *arg1 = (wxImage *) 0 ; | |
10530 | unsigned char result; | |
10531 | PyObject * obj0 = 0 ; | |
10532 | char *kwnames[] = { | |
10533 | (char *) "self", NULL | |
10534 | }; | |
10535 | ||
10536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
10537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10539 | { | |
10540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10541 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10542 | ||
10543 | wxPyEndAllowThreads(__tstate); | |
10544 | if (PyErr_Occurred()) SWIG_fail; | |
10545 | } | |
10546 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
10547 | return resultobj; | |
10548 | fail: | |
10549 | return NULL; | |
10550 | } | |
10551 | ||
10552 | ||
10553 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10554 | PyObject *resultobj; | |
10555 | wxImage *arg1 = (wxImage *) 0 ; | |
10556 | unsigned char result; | |
10557 | PyObject * obj0 = 0 ; | |
10558 | char *kwnames[] = { | |
10559 | (char *) "self", NULL | |
10560 | }; | |
10561 | ||
10562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
10563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10565 | { | |
10566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10567 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10568 | ||
10569 | wxPyEndAllowThreads(__tstate); | |
10570 | if (PyErr_Occurred()) SWIG_fail; | |
10571 | } | |
10572 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
10573 | return resultobj; | |
10574 | fail: | |
10575 | return NULL; | |
10576 | } | |
10577 | ||
10578 | ||
10579 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10580 | PyObject *resultobj; | |
10581 | wxImage *arg1 = (wxImage *) 0 ; | |
10582 | unsigned char result; | |
10583 | PyObject * obj0 = 0 ; | |
10584 | char *kwnames[] = { | |
10585 | (char *) "self", NULL | |
10586 | }; | |
10587 | ||
10588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
10589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10591 | { | |
10592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10593 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10594 | ||
10595 | wxPyEndAllowThreads(__tstate); | |
10596 | if (PyErr_Occurred()) SWIG_fail; | |
10597 | } | |
10598 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
10599 | return resultobj; | |
10600 | fail: | |
10601 | return NULL; | |
10602 | } | |
10603 | ||
10604 | ||
10605 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10606 | PyObject *resultobj; | |
10607 | wxImage *arg1 = (wxImage *) 0 ; | |
10608 | bool arg2 = (bool) True ; | |
10609 | PyObject * obj0 = 0 ; | |
10610 | PyObject * obj1 = 0 ; | |
10611 | char *kwnames[] = { | |
10612 | (char *) "self",(char *) "mask", NULL | |
10613 | }; | |
10614 | ||
10615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
10616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10618 | if (obj1) { | |
10619 | arg2 = (bool) SWIG_AsBool(obj1); | |
10620 | if (PyErr_Occurred()) SWIG_fail; | |
10621 | } | |
10622 | { | |
10623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10624 | (arg1)->SetMask(arg2); | |
10625 | ||
10626 | wxPyEndAllowThreads(__tstate); | |
10627 | if (PyErr_Occurred()) SWIG_fail; | |
10628 | } | |
10629 | Py_INCREF(Py_None); resultobj = Py_None; | |
10630 | return resultobj; | |
10631 | fail: | |
10632 | return NULL; | |
10633 | } | |
10634 | ||
10635 | ||
10636 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10637 | PyObject *resultobj; | |
10638 | wxImage *arg1 = (wxImage *) 0 ; | |
10639 | bool result; | |
10640 | PyObject * obj0 = 0 ; | |
10641 | char *kwnames[] = { | |
10642 | (char *) "self", NULL | |
10643 | }; | |
10644 | ||
10645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
10646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10648 | { | |
10649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10650 | result = (bool)(arg1)->HasMask(); | |
10651 | ||
10652 | wxPyEndAllowThreads(__tstate); | |
10653 | if (PyErr_Occurred()) SWIG_fail; | |
10654 | } | |
10655 | { | |
10656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10657 | } | |
10658 | return resultobj; | |
10659 | fail: | |
10660 | return NULL; | |
10661 | } | |
10662 | ||
10663 | ||
10664 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10665 | PyObject *resultobj; | |
10666 | wxImage *arg1 = (wxImage *) 0 ; | |
10667 | double arg2 ; | |
10668 | wxPoint *arg3 = 0 ; | |
10669 | bool arg4 = (bool) True ; | |
10670 | wxPoint *arg5 = (wxPoint *) NULL ; | |
10671 | SwigValueWrapper< wxImage > result; | |
10672 | wxPoint temp3 ; | |
10673 | PyObject * obj0 = 0 ; | |
10674 | PyObject * obj1 = 0 ; | |
10675 | PyObject * obj2 = 0 ; | |
10676 | PyObject * obj3 = 0 ; | |
10677 | PyObject * obj4 = 0 ; | |
10678 | char *kwnames[] = { | |
10679 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10680 | }; | |
10681 | ||
10682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
10683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10685 | arg2 = (double) SWIG_AsDouble(obj1); | |
10686 | if (PyErr_Occurred()) SWIG_fail; | |
10687 | { | |
10688 | arg3 = &temp3; | |
10689 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10690 | } | |
10691 | if (obj3) { | |
10692 | arg4 = (bool) SWIG_AsBool(obj3); | |
10693 | if (PyErr_Occurred()) SWIG_fail; | |
10694 | } | |
10695 | if (obj4) { | |
10696 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, | |
10697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10698 | } | |
10699 | { | |
10700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10701 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10702 | ||
10703 | wxPyEndAllowThreads(__tstate); | |
10704 | if (PyErr_Occurred()) SWIG_fail; | |
10705 | } | |
10706 | { | |
10707 | wxImage * resultptr; | |
10708 | resultptr = new wxImage((wxImage &) result); | |
10709 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10710 | } | |
10711 | return resultobj; | |
10712 | fail: | |
10713 | return NULL; | |
10714 | } | |
10715 | ||
10716 | ||
10717 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10718 | PyObject *resultobj; | |
10719 | wxImage *arg1 = (wxImage *) 0 ; | |
10720 | bool arg2 = (bool) True ; | |
10721 | SwigValueWrapper< wxImage > result; | |
10722 | PyObject * obj0 = 0 ; | |
10723 | PyObject * obj1 = 0 ; | |
10724 | char *kwnames[] = { | |
10725 | (char *) "self",(char *) "clockwise", NULL | |
10726 | }; | |
10727 | ||
10728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
10729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10731 | if (obj1) { | |
10732 | arg2 = (bool) SWIG_AsBool(obj1); | |
10733 | if (PyErr_Occurred()) SWIG_fail; | |
10734 | } | |
10735 | { | |
10736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10737 | result = (arg1)->Rotate90(arg2); | |
10738 | ||
10739 | wxPyEndAllowThreads(__tstate); | |
10740 | if (PyErr_Occurred()) SWIG_fail; | |
10741 | } | |
10742 | { | |
10743 | wxImage * resultptr; | |
10744 | resultptr = new wxImage((wxImage &) result); | |
10745 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10746 | } | |
10747 | return resultobj; | |
10748 | fail: | |
10749 | return NULL; | |
10750 | } | |
10751 | ||
10752 | ||
10753 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10754 | PyObject *resultobj; | |
10755 | wxImage *arg1 = (wxImage *) 0 ; | |
10756 | bool arg2 = (bool) True ; | |
10757 | SwigValueWrapper< wxImage > result; | |
10758 | PyObject * obj0 = 0 ; | |
10759 | PyObject * obj1 = 0 ; | |
10760 | char *kwnames[] = { | |
10761 | (char *) "self",(char *) "horizontally", NULL | |
10762 | }; | |
10763 | ||
10764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
10765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10767 | if (obj1) { | |
10768 | arg2 = (bool) SWIG_AsBool(obj1); | |
10769 | if (PyErr_Occurred()) SWIG_fail; | |
10770 | } | |
10771 | { | |
10772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10773 | result = (arg1)->Mirror(arg2); | |
10774 | ||
10775 | wxPyEndAllowThreads(__tstate); | |
10776 | if (PyErr_Occurred()) SWIG_fail; | |
10777 | } | |
10778 | { | |
10779 | wxImage * resultptr; | |
10780 | resultptr = new wxImage((wxImage &) result); | |
10781 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10782 | } | |
10783 | return resultobj; | |
10784 | fail: | |
10785 | return NULL; | |
10786 | } | |
10787 | ||
10788 | ||
10789 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10790 | PyObject *resultobj; | |
10791 | wxImage *arg1 = (wxImage *) 0 ; | |
10792 | unsigned char arg2 ; | |
10793 | unsigned char arg3 ; | |
10794 | unsigned char arg4 ; | |
10795 | unsigned char arg5 ; | |
10796 | unsigned char arg6 ; | |
10797 | unsigned char arg7 ; | |
10798 | PyObject * obj0 = 0 ; | |
10799 | PyObject * obj1 = 0 ; | |
10800 | PyObject * obj2 = 0 ; | |
10801 | PyObject * obj3 = 0 ; | |
10802 | PyObject * obj4 = 0 ; | |
10803 | PyObject * obj5 = 0 ; | |
10804 | PyObject * obj6 = 0 ; | |
10805 | char *kwnames[] = { | |
10806 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10807 | }; | |
10808 | ||
10809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10812 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10813 | if (PyErr_Occurred()) SWIG_fail; | |
10814 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10815 | if (PyErr_Occurred()) SWIG_fail; | |
10816 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10817 | if (PyErr_Occurred()) SWIG_fail; | |
10818 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
10819 | if (PyErr_Occurred()) SWIG_fail; | |
10820 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
10821 | if (PyErr_Occurred()) SWIG_fail; | |
10822 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); | |
10823 | if (PyErr_Occurred()) SWIG_fail; | |
10824 | { | |
10825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10826 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10827 | ||
10828 | wxPyEndAllowThreads(__tstate); | |
10829 | if (PyErr_Occurred()) SWIG_fail; | |
10830 | } | |
10831 | Py_INCREF(Py_None); resultobj = Py_None; | |
10832 | return resultobj; | |
10833 | fail: | |
10834 | return NULL; | |
10835 | } | |
10836 | ||
10837 | ||
10838 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10839 | PyObject *resultobj; | |
10840 | wxImage *arg1 = (wxImage *) 0 ; | |
10841 | unsigned char arg2 ; | |
10842 | unsigned char arg3 ; | |
10843 | unsigned char arg4 ; | |
10844 | SwigValueWrapper< wxImage > result; | |
10845 | PyObject * obj0 = 0 ; | |
10846 | PyObject * obj1 = 0 ; | |
10847 | PyObject * obj2 = 0 ; | |
10848 | PyObject * obj3 = 0 ; | |
10849 | char *kwnames[] = { | |
10850 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10851 | }; | |
10852 | ||
10853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10856 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10857 | if (PyErr_Occurred()) SWIG_fail; | |
10858 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10859 | if (PyErr_Occurred()) SWIG_fail; | |
10860 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10861 | if (PyErr_Occurred()) SWIG_fail; | |
10862 | { | |
10863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10864 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10865 | ||
10866 | wxPyEndAllowThreads(__tstate); | |
10867 | if (PyErr_Occurred()) SWIG_fail; | |
10868 | } | |
10869 | { | |
10870 | wxImage * resultptr; | |
10871 | resultptr = new wxImage((wxImage &) result); | |
10872 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10873 | } | |
10874 | return resultobj; | |
10875 | fail: | |
10876 | return NULL; | |
10877 | } | |
10878 | ||
10879 | ||
10880 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10881 | PyObject *resultobj; | |
10882 | wxImage *arg1 = (wxImage *) 0 ; | |
10883 | wxString *arg2 = 0 ; | |
10884 | wxString *arg3 = 0 ; | |
10885 | bool temp2 = False ; | |
10886 | bool temp3 = False ; | |
10887 | PyObject * obj0 = 0 ; | |
10888 | PyObject * obj1 = 0 ; | |
10889 | PyObject * obj2 = 0 ; | |
10890 | char *kwnames[] = { | |
10891 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10892 | }; | |
10893 | ||
10894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10897 | { | |
10898 | arg2 = wxString_in_helper(obj1); | |
10899 | if (arg2 == NULL) SWIG_fail; | |
10900 | temp2 = True; | |
10901 | } | |
10902 | { | |
10903 | arg3 = wxString_in_helper(obj2); | |
10904 | if (arg3 == NULL) SWIG_fail; | |
10905 | temp3 = True; | |
10906 | } | |
10907 | { | |
10908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10909 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10910 | ||
10911 | wxPyEndAllowThreads(__tstate); | |
10912 | if (PyErr_Occurred()) SWIG_fail; | |
10913 | } | |
10914 | Py_INCREF(Py_None); resultobj = Py_None; | |
10915 | { | |
10916 | if (temp2) | |
10917 | delete arg2; | |
10918 | } | |
10919 | { | |
10920 | if (temp3) | |
10921 | delete arg3; | |
10922 | } | |
10923 | return resultobj; | |
10924 | fail: | |
10925 | { | |
10926 | if (temp2) | |
10927 | delete arg2; | |
10928 | } | |
10929 | { | |
10930 | if (temp3) | |
10931 | delete arg3; | |
10932 | } | |
10933 | return NULL; | |
10934 | } | |
10935 | ||
10936 | ||
10937 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10938 | PyObject *resultobj; | |
10939 | wxImage *arg1 = (wxImage *) 0 ; | |
10940 | wxString *arg2 = 0 ; | |
10941 | int arg3 ; | |
10942 | bool temp2 = False ; | |
10943 | PyObject * obj0 = 0 ; | |
10944 | PyObject * obj1 = 0 ; | |
10945 | PyObject * obj2 = 0 ; | |
10946 | char *kwnames[] = { | |
10947 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10948 | }; | |
10949 | ||
10950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10953 | { | |
10954 | arg2 = wxString_in_helper(obj1); | |
10955 | if (arg2 == NULL) SWIG_fail; | |
10956 | temp2 = True; | |
10957 | } | |
10958 | arg3 = (int) SWIG_AsInt(obj2); | |
10959 | if (PyErr_Occurred()) SWIG_fail; | |
10960 | { | |
10961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10962 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10963 | ||
10964 | wxPyEndAllowThreads(__tstate); | |
10965 | if (PyErr_Occurred()) SWIG_fail; | |
10966 | } | |
10967 | Py_INCREF(Py_None); resultobj = Py_None; | |
10968 | { | |
10969 | if (temp2) | |
10970 | delete arg2; | |
10971 | } | |
10972 | return resultobj; | |
10973 | fail: | |
10974 | { | |
10975 | if (temp2) | |
10976 | delete arg2; | |
10977 | } | |
10978 | return NULL; | |
10979 | } | |
10980 | ||
10981 | ||
10982 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10983 | PyObject *resultobj; | |
10984 | wxImage *arg1 = (wxImage *) 0 ; | |
10985 | wxString *arg2 = 0 ; | |
10986 | wxString result; | |
10987 | bool temp2 = False ; | |
10988 | PyObject * obj0 = 0 ; | |
10989 | PyObject * obj1 = 0 ; | |
10990 | char *kwnames[] = { | |
10991 | (char *) "self",(char *) "name", NULL | |
10992 | }; | |
10993 | ||
10994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
10995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10997 | { | |
10998 | arg2 = wxString_in_helper(obj1); | |
10999 | if (arg2 == NULL) SWIG_fail; | |
11000 | temp2 = True; | |
11001 | } | |
11002 | { | |
11003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11004 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
11005 | ||
11006 | wxPyEndAllowThreads(__tstate); | |
11007 | if (PyErr_Occurred()) SWIG_fail; | |
11008 | } | |
11009 | { | |
11010 | #if wxUSE_UNICODE | |
11011 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11012 | #else | |
11013 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11014 | #endif | |
11015 | } | |
11016 | { | |
11017 | if (temp2) | |
11018 | delete arg2; | |
11019 | } | |
11020 | return resultobj; | |
11021 | fail: | |
11022 | { | |
11023 | if (temp2) | |
11024 | delete arg2; | |
11025 | } | |
11026 | return NULL; | |
11027 | } | |
11028 | ||
11029 | ||
11030 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11031 | PyObject *resultobj; | |
11032 | wxImage *arg1 = (wxImage *) 0 ; | |
11033 | wxString *arg2 = 0 ; | |
11034 | int result; | |
11035 | bool temp2 = False ; | |
11036 | PyObject * obj0 = 0 ; | |
11037 | PyObject * obj1 = 0 ; | |
11038 | char *kwnames[] = { | |
11039 | (char *) "self",(char *) "name", NULL | |
11040 | }; | |
11041 | ||
11042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
11043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11045 | { | |
11046 | arg2 = wxString_in_helper(obj1); | |
11047 | if (arg2 == NULL) SWIG_fail; | |
11048 | temp2 = True; | |
11049 | } | |
11050 | { | |
11051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11052 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
11053 | ||
11054 | wxPyEndAllowThreads(__tstate); | |
11055 | if (PyErr_Occurred()) SWIG_fail; | |
11056 | } | |
11057 | resultobj = SWIG_FromInt((int)result); | |
11058 | { | |
11059 | if (temp2) | |
11060 | delete arg2; | |
11061 | } | |
11062 | return resultobj; | |
11063 | fail: | |
11064 | { | |
11065 | if (temp2) | |
11066 | delete arg2; | |
11067 | } | |
11068 | return NULL; | |
11069 | } | |
11070 | ||
11071 | ||
11072 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11073 | PyObject *resultobj; | |
11074 | wxImage *arg1 = (wxImage *) 0 ; | |
11075 | wxString *arg2 = 0 ; | |
11076 | bool result; | |
11077 | bool temp2 = False ; | |
11078 | PyObject * obj0 = 0 ; | |
11079 | PyObject * obj1 = 0 ; | |
11080 | char *kwnames[] = { | |
11081 | (char *) "self",(char *) "name", NULL | |
11082 | }; | |
11083 | ||
11084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
11085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11087 | { | |
11088 | arg2 = wxString_in_helper(obj1); | |
11089 | if (arg2 == NULL) SWIG_fail; | |
11090 | temp2 = True; | |
11091 | } | |
11092 | { | |
11093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11094 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
11095 | ||
11096 | wxPyEndAllowThreads(__tstate); | |
11097 | if (PyErr_Occurred()) SWIG_fail; | |
11098 | } | |
11099 | { | |
11100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11101 | } | |
11102 | { | |
11103 | if (temp2) | |
11104 | delete arg2; | |
11105 | } | |
11106 | return resultobj; | |
11107 | fail: | |
11108 | { | |
11109 | if (temp2) | |
11110 | delete arg2; | |
11111 | } | |
11112 | return NULL; | |
11113 | } | |
11114 | ||
11115 | ||
11116 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11117 | PyObject *resultobj; | |
11118 | wxImage *arg1 = (wxImage *) 0 ; | |
11119 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11120 | unsigned long result; | |
11121 | PyObject * obj0 = 0 ; | |
11122 | PyObject * obj1 = 0 ; | |
11123 | char *kwnames[] = { | |
11124 | (char *) "self",(char *) "stopafter", NULL | |
11125 | }; | |
11126 | ||
11127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
11128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11130 | if (obj1) { | |
11131 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
11132 | if (PyErr_Occurred()) SWIG_fail; | |
11133 | } | |
11134 | { | |
11135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11136 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11137 | ||
11138 | wxPyEndAllowThreads(__tstate); | |
11139 | if (PyErr_Occurred()) SWIG_fail; | |
11140 | } | |
11141 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
11142 | return resultobj; | |
11143 | fail: | |
11144 | return NULL; | |
11145 | } | |
11146 | ||
11147 | ||
11148 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11149 | PyObject *resultobj; | |
11150 | wxImage *arg1 = (wxImage *) 0 ; | |
11151 | wxImageHistogram *arg2 = 0 ; | |
11152 | unsigned long result; | |
11153 | PyObject * obj0 = 0 ; | |
11154 | PyObject * obj1 = 0 ; | |
11155 | char *kwnames[] = { | |
11156 | (char *) "self",(char *) "h", NULL | |
11157 | }; | |
11158 | ||
11159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
11160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11162 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11163 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11164 | SWIG_fail; | |
11165 | if (arg2 == NULL) { | |
11166 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11167 | SWIG_fail; | |
11168 | } | |
11169 | { | |
11170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11171 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11172 | ||
11173 | wxPyEndAllowThreads(__tstate); | |
11174 | if (PyErr_Occurred()) SWIG_fail; | |
11175 | } | |
11176 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
11177 | return resultobj; | |
11178 | fail: | |
11179 | return NULL; | |
11180 | } | |
11181 | ||
11182 | ||
11183 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11184 | PyObject *resultobj; | |
11185 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11186 | PyObject * obj0 = 0 ; | |
11187 | char *kwnames[] = { | |
11188 | (char *) "handler", NULL | |
11189 | }; | |
11190 | ||
11191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
11192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11194 | { | |
11195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11196 | wxImage::AddHandler(arg1); | |
11197 | ||
11198 | wxPyEndAllowThreads(__tstate); | |
11199 | if (PyErr_Occurred()) SWIG_fail; | |
11200 | } | |
11201 | Py_INCREF(Py_None); resultobj = Py_None; | |
11202 | return resultobj; | |
11203 | fail: | |
11204 | return NULL; | |
11205 | } | |
11206 | ||
11207 | ||
11208 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11209 | PyObject *resultobj; | |
11210 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11211 | PyObject * obj0 = 0 ; | |
11212 | char *kwnames[] = { | |
11213 | (char *) "handler", NULL | |
11214 | }; | |
11215 | ||
11216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
11217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11219 | { | |
11220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11221 | wxImage::InsertHandler(arg1); | |
11222 | ||
11223 | wxPyEndAllowThreads(__tstate); | |
11224 | if (PyErr_Occurred()) SWIG_fail; | |
11225 | } | |
11226 | Py_INCREF(Py_None); resultobj = Py_None; | |
11227 | return resultobj; | |
11228 | fail: | |
11229 | return NULL; | |
11230 | } | |
11231 | ||
11232 | ||
11233 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11234 | PyObject *resultobj; | |
11235 | wxString *arg1 = 0 ; | |
11236 | bool result; | |
11237 | bool temp1 = False ; | |
11238 | PyObject * obj0 = 0 ; | |
11239 | char *kwnames[] = { | |
11240 | (char *) "name", NULL | |
11241 | }; | |
11242 | ||
11243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11244 | { | |
11245 | arg1 = wxString_in_helper(obj0); | |
11246 | if (arg1 == NULL) SWIG_fail; | |
11247 | temp1 = True; | |
11248 | } | |
11249 | { | |
11250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11251 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11252 | ||
11253 | wxPyEndAllowThreads(__tstate); | |
11254 | if (PyErr_Occurred()) SWIG_fail; | |
11255 | } | |
11256 | { | |
11257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11258 | } | |
11259 | { | |
11260 | if (temp1) | |
11261 | delete arg1; | |
11262 | } | |
11263 | return resultobj; | |
11264 | fail: | |
11265 | { | |
11266 | if (temp1) | |
11267 | delete arg1; | |
11268 | } | |
11269 | return NULL; | |
11270 | } | |
11271 | ||
11272 | ||
11273 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11274 | PyObject *resultobj; | |
11275 | wxString result; | |
11276 | char *kwnames[] = { | |
11277 | NULL | |
11278 | }; | |
11279 | ||
11280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11281 | { | |
11282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11283 | result = wxImage::GetImageExtWildcard(); | |
11284 | ||
11285 | wxPyEndAllowThreads(__tstate); | |
11286 | if (PyErr_Occurred()) SWIG_fail; | |
11287 | } | |
11288 | { | |
11289 | #if wxUSE_UNICODE | |
11290 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11291 | #else | |
11292 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11293 | #endif | |
11294 | } | |
11295 | return resultobj; | |
11296 | fail: | |
11297 | return NULL; | |
11298 | } | |
11299 | ||
11300 | ||
11301 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11302 | PyObject *resultobj; | |
11303 | wxImage *arg1 = (wxImage *) 0 ; | |
11304 | wxBitmap result; | |
11305 | PyObject * obj0 = 0 ; | |
11306 | char *kwnames[] = { | |
11307 | (char *) "self", NULL | |
11308 | }; | |
11309 | ||
11310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
11311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11313 | { | |
0439c23b | 11314 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11316 | result = wxImage_ConvertToBitmap(arg1); | |
11317 | ||
11318 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11319 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11320 | } |
11321 | { | |
11322 | wxBitmap * resultptr; | |
11323 | resultptr = new wxBitmap((wxBitmap &) result); | |
11324 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11325 | } | |
11326 | return resultobj; | |
11327 | fail: | |
11328 | return NULL; | |
11329 | } | |
11330 | ||
11331 | ||
11332 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11333 | PyObject *resultobj; | |
11334 | wxImage *arg1 = (wxImage *) 0 ; | |
11335 | unsigned char arg2 ; | |
11336 | unsigned char arg3 ; | |
11337 | unsigned char arg4 ; | |
11338 | wxBitmap result; | |
11339 | PyObject * obj0 = 0 ; | |
11340 | PyObject * obj1 = 0 ; | |
11341 | PyObject * obj2 = 0 ; | |
11342 | PyObject * obj3 = 0 ; | |
11343 | char *kwnames[] = { | |
11344 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11345 | }; | |
11346 | ||
11347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11350 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
11351 | if (PyErr_Occurred()) SWIG_fail; | |
11352 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
11353 | if (PyErr_Occurred()) SWIG_fail; | |
11354 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
11355 | if (PyErr_Occurred()) SWIG_fail; | |
11356 | { | |
0439c23b | 11357 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11359 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11360 | ||
11361 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11362 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11363 | } |
11364 | { | |
11365 | wxBitmap * resultptr; | |
11366 | resultptr = new wxBitmap((wxBitmap &) result); | |
11367 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11368 | } | |
11369 | return resultobj; | |
11370 | fail: | |
11371 | return NULL; | |
11372 | } | |
11373 | ||
11374 | ||
11375 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
11376 | PyObject *obj; | |
11377 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11378 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11379 | Py_INCREF(obj); | |
11380 | return Py_BuildValue((char *)""); | |
11381 | } | |
d55e5bfc RD |
11382 | static int _wrap_NullImage_set(PyObject *_val) { |
11383 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); | |
11384 | return 1; | |
11385 | } | |
11386 | ||
11387 | ||
11388 | static PyObject *_wrap_NullImage_get() { | |
11389 | PyObject *pyobj; | |
11390 | ||
11391 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); | |
11392 | return pyobj; | |
11393 | } | |
11394 | ||
11395 | ||
11396 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { | |
11397 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); | |
11398 | return 1; | |
11399 | } | |
11400 | ||
11401 | ||
11402 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11403 | PyObject *pyobj; | |
11404 | ||
11405 | { | |
11406 | #if wxUSE_UNICODE | |
11407 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11408 | #else | |
11409 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11410 | #endif | |
11411 | } | |
11412 | return pyobj; | |
11413 | } | |
11414 | ||
11415 | ||
11416 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { | |
11417 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); | |
11418 | return 1; | |
11419 | } | |
11420 | ||
11421 | ||
11422 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11423 | PyObject *pyobj; | |
11424 | ||
11425 | { | |
11426 | #if wxUSE_UNICODE | |
11427 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11428 | #else | |
11429 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11430 | #endif | |
11431 | } | |
11432 | return pyobj; | |
11433 | } | |
11434 | ||
11435 | ||
11436 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { | |
11437 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); | |
11438 | return 1; | |
11439 | } | |
11440 | ||
11441 | ||
11442 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11443 | PyObject *pyobj; | |
11444 | ||
11445 | { | |
11446 | #if wxUSE_UNICODE | |
11447 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11448 | #else | |
11449 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11450 | #endif | |
11451 | } | |
11452 | return pyobj; | |
11453 | } | |
11454 | ||
11455 | ||
11456 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { | |
11457 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); | |
11458 | return 1; | |
11459 | } | |
11460 | ||
11461 | ||
11462 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11463 | PyObject *pyobj; | |
11464 | ||
11465 | { | |
11466 | #if wxUSE_UNICODE | |
11467 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11468 | #else | |
11469 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11470 | #endif | |
11471 | } | |
11472 | return pyobj; | |
11473 | } | |
11474 | ||
11475 | ||
11476 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { | |
11477 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); | |
11478 | return 1; | |
11479 | } | |
11480 | ||
11481 | ||
11482 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11483 | PyObject *pyobj; | |
11484 | ||
11485 | { | |
11486 | #if wxUSE_UNICODE | |
11487 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11488 | #else | |
11489 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11490 | #endif | |
11491 | } | |
11492 | return pyobj; | |
11493 | } | |
11494 | ||
11495 | ||
11496 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11497 | PyObject *resultobj; | |
11498 | wxBMPHandler *result; | |
11499 | char *kwnames[] = { | |
11500 | NULL | |
11501 | }; | |
11502 | ||
11503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11504 | { | |
11505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11506 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11507 | ||
11508 | wxPyEndAllowThreads(__tstate); | |
11509 | if (PyErr_Occurred()) SWIG_fail; | |
11510 | } | |
11511 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); | |
11512 | return resultobj; | |
11513 | fail: | |
11514 | return NULL; | |
11515 | } | |
11516 | ||
11517 | ||
11518 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11519 | PyObject *obj; | |
11520 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11521 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11522 | Py_INCREF(obj); | |
11523 | return Py_BuildValue((char *)""); | |
11524 | } | |
11525 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11526 | PyObject *resultobj; | |
11527 | wxICOHandler *result; | |
11528 | char *kwnames[] = { | |
11529 | NULL | |
11530 | }; | |
11531 | ||
11532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11533 | { | |
11534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11535 | result = (wxICOHandler *)new wxICOHandler(); | |
11536 | ||
11537 | wxPyEndAllowThreads(__tstate); | |
11538 | if (PyErr_Occurred()) SWIG_fail; | |
11539 | } | |
11540 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); | |
11541 | return resultobj; | |
11542 | fail: | |
11543 | return NULL; | |
11544 | } | |
11545 | ||
11546 | ||
11547 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11548 | PyObject *obj; | |
11549 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11550 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11551 | Py_INCREF(obj); | |
11552 | return Py_BuildValue((char *)""); | |
11553 | } | |
11554 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11555 | PyObject *resultobj; | |
11556 | wxCURHandler *result; | |
11557 | char *kwnames[] = { | |
11558 | NULL | |
11559 | }; | |
11560 | ||
11561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11562 | { | |
11563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11564 | result = (wxCURHandler *)new wxCURHandler(); | |
11565 | ||
11566 | wxPyEndAllowThreads(__tstate); | |
11567 | if (PyErr_Occurred()) SWIG_fail; | |
11568 | } | |
11569 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); | |
11570 | return resultobj; | |
11571 | fail: | |
11572 | return NULL; | |
11573 | } | |
11574 | ||
11575 | ||
11576 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11577 | PyObject *obj; | |
11578 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11579 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11580 | Py_INCREF(obj); | |
11581 | return Py_BuildValue((char *)""); | |
11582 | } | |
11583 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11584 | PyObject *resultobj; | |
11585 | wxANIHandler *result; | |
11586 | char *kwnames[] = { | |
11587 | NULL | |
11588 | }; | |
11589 | ||
11590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11591 | { | |
11592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11593 | result = (wxANIHandler *)new wxANIHandler(); | |
11594 | ||
11595 | wxPyEndAllowThreads(__tstate); | |
11596 | if (PyErr_Occurred()) SWIG_fail; | |
11597 | } | |
11598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); | |
11599 | return resultobj; | |
11600 | fail: | |
11601 | return NULL; | |
11602 | } | |
11603 | ||
11604 | ||
11605 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11606 | PyObject *obj; | |
11607 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11608 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11609 | Py_INCREF(obj); | |
11610 | return Py_BuildValue((char *)""); | |
11611 | } | |
11612 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11613 | PyObject *resultobj; | |
11614 | wxPNGHandler *result; | |
11615 | char *kwnames[] = { | |
11616 | NULL | |
11617 | }; | |
11618 | ||
11619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11620 | { | |
11621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11622 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11623 | ||
11624 | wxPyEndAllowThreads(__tstate); | |
11625 | if (PyErr_Occurred()) SWIG_fail; | |
11626 | } | |
11627 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); | |
11628 | return resultobj; | |
11629 | fail: | |
11630 | return NULL; | |
11631 | } | |
11632 | ||
11633 | ||
11634 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11635 | PyObject *obj; | |
11636 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11637 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11638 | Py_INCREF(obj); | |
11639 | return Py_BuildValue((char *)""); | |
11640 | } | |
11641 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11642 | PyObject *resultobj; | |
11643 | wxGIFHandler *result; | |
11644 | char *kwnames[] = { | |
11645 | NULL | |
11646 | }; | |
11647 | ||
11648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11649 | { | |
11650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11651 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11652 | ||
11653 | wxPyEndAllowThreads(__tstate); | |
11654 | if (PyErr_Occurred()) SWIG_fail; | |
11655 | } | |
11656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); | |
11657 | return resultobj; | |
11658 | fail: | |
11659 | return NULL; | |
11660 | } | |
11661 | ||
11662 | ||
11663 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11664 | PyObject *obj; | |
11665 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11666 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11667 | Py_INCREF(obj); | |
11668 | return Py_BuildValue((char *)""); | |
11669 | } | |
11670 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11671 | PyObject *resultobj; | |
11672 | wxPCXHandler *result; | |
11673 | char *kwnames[] = { | |
11674 | NULL | |
11675 | }; | |
11676 | ||
11677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11678 | { | |
11679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11680 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11681 | ||
11682 | wxPyEndAllowThreads(__tstate); | |
11683 | if (PyErr_Occurred()) SWIG_fail; | |
11684 | } | |
11685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); | |
11686 | return resultobj; | |
11687 | fail: | |
11688 | return NULL; | |
11689 | } | |
11690 | ||
11691 | ||
11692 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11693 | PyObject *obj; | |
11694 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11695 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11696 | Py_INCREF(obj); | |
11697 | return Py_BuildValue((char *)""); | |
11698 | } | |
11699 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11700 | PyObject *resultobj; | |
11701 | wxJPEGHandler *result; | |
11702 | char *kwnames[] = { | |
11703 | NULL | |
11704 | }; | |
11705 | ||
11706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11707 | { | |
11708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11709 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11710 | ||
11711 | wxPyEndAllowThreads(__tstate); | |
11712 | if (PyErr_Occurred()) SWIG_fail; | |
11713 | } | |
11714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); | |
11715 | return resultobj; | |
11716 | fail: | |
11717 | return NULL; | |
11718 | } | |
11719 | ||
11720 | ||
11721 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11722 | PyObject *obj; | |
11723 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11724 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11725 | Py_INCREF(obj); | |
11726 | return Py_BuildValue((char *)""); | |
11727 | } | |
11728 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11729 | PyObject *resultobj; | |
11730 | wxPNMHandler *result; | |
11731 | char *kwnames[] = { | |
11732 | NULL | |
11733 | }; | |
11734 | ||
11735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11736 | { | |
11737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11738 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11739 | ||
11740 | wxPyEndAllowThreads(__tstate); | |
11741 | if (PyErr_Occurred()) SWIG_fail; | |
11742 | } | |
11743 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); | |
11744 | return resultobj; | |
11745 | fail: | |
11746 | return NULL; | |
11747 | } | |
11748 | ||
11749 | ||
11750 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11751 | PyObject *obj; | |
11752 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11753 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11754 | Py_INCREF(obj); | |
11755 | return Py_BuildValue((char *)""); | |
11756 | } | |
11757 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11758 | PyObject *resultobj; | |
11759 | wxXPMHandler *result; | |
11760 | char *kwnames[] = { | |
11761 | NULL | |
11762 | }; | |
11763 | ||
11764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11765 | { | |
11766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11767 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11768 | ||
11769 | wxPyEndAllowThreads(__tstate); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
11771 | } | |
11772 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); | |
11773 | return resultobj; | |
11774 | fail: | |
11775 | return NULL; | |
11776 | } | |
11777 | ||
11778 | ||
11779 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11780 | PyObject *obj; | |
11781 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11782 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11783 | Py_INCREF(obj); | |
11784 | return Py_BuildValue((char *)""); | |
11785 | } | |
11786 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11787 | PyObject *resultobj; | |
11788 | wxTIFFHandler *result; | |
11789 | char *kwnames[] = { | |
11790 | NULL | |
11791 | }; | |
11792 | ||
11793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11794 | { | |
11795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11796 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11797 | ||
11798 | wxPyEndAllowThreads(__tstate); | |
11799 | if (PyErr_Occurred()) SWIG_fail; | |
11800 | } | |
11801 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); | |
11802 | return resultobj; | |
11803 | fail: | |
11804 | return NULL; | |
11805 | } | |
11806 | ||
11807 | ||
11808 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11809 | PyObject *obj; | |
11810 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11811 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11812 | Py_INCREF(obj); | |
11813 | return Py_BuildValue((char *)""); | |
11814 | } | |
c0de73ae RD |
11815 | static PyObject *_wrap_Quantize_Quantize(PyObject *self, PyObject *args, PyObject *kwargs) { |
11816 | PyObject *resultobj; | |
11817 | wxImage *arg1 = 0 ; | |
11818 | wxImage *arg2 = 0 ; | |
11819 | int arg3 = (int) 236 ; | |
11820 | int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ; | |
11821 | bool result; | |
11822 | PyObject * obj0 = 0 ; | |
11823 | PyObject * obj1 = 0 ; | |
11824 | PyObject * obj2 = 0 ; | |
11825 | PyObject * obj3 = 0 ; | |
11826 | char *kwnames[] = { | |
11827 | (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL | |
11828 | }; | |
11829 | ||
11830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11832 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11833 | SWIG_fail; | |
11834 | if (arg1 == NULL) { | |
11835 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11836 | SWIG_fail; | |
11837 | } | |
11838 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
11839 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11840 | SWIG_fail; | |
11841 | if (arg2 == NULL) { | |
11842 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11843 | SWIG_fail; | |
11844 | } | |
11845 | if (obj2) { | |
11846 | arg3 = (int) SWIG_AsInt(obj2); | |
11847 | if (PyErr_Occurred()) SWIG_fail; | |
11848 | } | |
11849 | if (obj3) { | |
11850 | arg4 = (int) SWIG_AsInt(obj3); | |
11851 | if (PyErr_Occurred()) SWIG_fail; | |
11852 | } | |
11853 | { | |
11854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11855 | result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4); | |
11856 | ||
11857 | wxPyEndAllowThreads(__tstate); | |
11858 | if (PyErr_Occurred()) SWIG_fail; | |
11859 | } | |
11860 | { | |
11861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11862 | } | |
11863 | return resultobj; | |
11864 | fail: | |
11865 | return NULL; | |
11866 | } | |
11867 | ||
11868 | ||
11869 | static PyObject * Quantize_swigregister(PyObject *self, PyObject *args) { | |
11870 | PyObject *obj; | |
11871 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11872 | SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj); | |
11873 | Py_INCREF(obj); | |
11874 | return Py_BuildValue((char *)""); | |
11875 | } | |
d55e5bfc RD |
11876 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
11877 | PyObject *resultobj; | |
11878 | wxEvtHandler *result; | |
11879 | char *kwnames[] = { | |
11880 | NULL | |
11881 | }; | |
11882 | ||
11883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11884 | { | |
11885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11886 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11887 | ||
11888 | wxPyEndAllowThreads(__tstate); | |
11889 | if (PyErr_Occurred()) SWIG_fail; | |
11890 | } | |
b0f7404b | 11891 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1); |
d55e5bfc RD |
11892 | return resultobj; |
11893 | fail: | |
11894 | return NULL; | |
11895 | } | |
11896 | ||
11897 | ||
11898 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11899 | PyObject *resultobj; | |
11900 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11901 | wxEvtHandler *result; | |
11902 | PyObject * obj0 = 0 ; | |
11903 | char *kwnames[] = { | |
11904 | (char *) "self", NULL | |
11905 | }; | |
11906 | ||
11907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
11908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11910 | { | |
11911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11912 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11913 | ||
11914 | wxPyEndAllowThreads(__tstate); | |
11915 | if (PyErr_Occurred()) SWIG_fail; | |
11916 | } | |
11917 | { | |
412d302d | 11918 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
11919 | } |
11920 | return resultobj; | |
11921 | fail: | |
11922 | return NULL; | |
11923 | } | |
11924 | ||
11925 | ||
11926 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11927 | PyObject *resultobj; | |
11928 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11929 | wxEvtHandler *result; | |
11930 | PyObject * obj0 = 0 ; | |
11931 | char *kwnames[] = { | |
11932 | (char *) "self", NULL | |
11933 | }; | |
11934 | ||
11935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
11936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11938 | { | |
11939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11940 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11941 | ||
11942 | wxPyEndAllowThreads(__tstate); | |
11943 | if (PyErr_Occurred()) SWIG_fail; | |
11944 | } | |
11945 | { | |
412d302d | 11946 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
11947 | } |
11948 | return resultobj; | |
11949 | fail: | |
11950 | return NULL; | |
11951 | } | |
11952 | ||
11953 | ||
11954 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11955 | PyObject *resultobj; | |
11956 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11957 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11958 | PyObject * obj0 = 0 ; | |
11959 | PyObject * obj1 = 0 ; | |
11960 | char *kwnames[] = { | |
11961 | (char *) "self",(char *) "handler", NULL | |
11962 | }; | |
11963 | ||
11964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
11965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11967 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11969 | { | |
11970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11971 | (arg1)->SetNextHandler(arg2); | |
11972 | ||
11973 | wxPyEndAllowThreads(__tstate); | |
11974 | if (PyErr_Occurred()) SWIG_fail; | |
11975 | } | |
11976 | Py_INCREF(Py_None); resultobj = Py_None; | |
11977 | return resultobj; | |
11978 | fail: | |
11979 | return NULL; | |
11980 | } | |
11981 | ||
11982 | ||
11983 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11984 | PyObject *resultobj; | |
11985 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11986 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11987 | PyObject * obj0 = 0 ; | |
11988 | PyObject * obj1 = 0 ; | |
11989 | char *kwnames[] = { | |
11990 | (char *) "self",(char *) "handler", NULL | |
11991 | }; | |
11992 | ||
11993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
11994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11996 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11998 | { | |
11999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12000 | (arg1)->SetPreviousHandler(arg2); | |
12001 | ||
12002 | wxPyEndAllowThreads(__tstate); | |
12003 | if (PyErr_Occurred()) SWIG_fail; | |
12004 | } | |
12005 | Py_INCREF(Py_None); resultobj = Py_None; | |
12006 | return resultobj; | |
12007 | fail: | |
12008 | return NULL; | |
12009 | } | |
12010 | ||
12011 | ||
12012 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12013 | PyObject *resultobj; | |
12014 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12015 | bool result; | |
12016 | PyObject * obj0 = 0 ; | |
12017 | char *kwnames[] = { | |
12018 | (char *) "self", NULL | |
12019 | }; | |
12020 | ||
12021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
12022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12024 | { | |
12025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12026 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
12027 | ||
12028 | wxPyEndAllowThreads(__tstate); | |
12029 | if (PyErr_Occurred()) SWIG_fail; | |
12030 | } | |
12031 | { | |
12032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12033 | } | |
12034 | return resultobj; | |
12035 | fail: | |
12036 | return NULL; | |
12037 | } | |
12038 | ||
12039 | ||
12040 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12041 | PyObject *resultobj; | |
12042 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12043 | bool arg2 ; | |
12044 | PyObject * obj0 = 0 ; | |
12045 | PyObject * obj1 = 0 ; | |
12046 | char *kwnames[] = { | |
12047 | (char *) "self",(char *) "enabled", NULL | |
12048 | }; | |
12049 | ||
12050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
12051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12053 | arg2 = (bool) SWIG_AsBool(obj1); | |
12054 | if (PyErr_Occurred()) SWIG_fail; | |
12055 | { | |
12056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12057 | (arg1)->SetEvtHandlerEnabled(arg2); | |
12058 | ||
12059 | wxPyEndAllowThreads(__tstate); | |
12060 | if (PyErr_Occurred()) SWIG_fail; | |
12061 | } | |
12062 | Py_INCREF(Py_None); resultobj = Py_None; | |
12063 | return resultobj; | |
12064 | fail: | |
12065 | return NULL; | |
12066 | } | |
12067 | ||
12068 | ||
12069 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12070 | PyObject *resultobj; | |
12071 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12072 | wxEvent *arg2 = 0 ; | |
12073 | bool result; | |
12074 | PyObject * obj0 = 0 ; | |
12075 | PyObject * obj1 = 0 ; | |
12076 | char *kwnames[] = { | |
12077 | (char *) "self",(char *) "event", NULL | |
12078 | }; | |
12079 | ||
12080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
12081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12083 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12084 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12085 | SWIG_fail; | |
12086 | if (arg2 == NULL) { | |
12087 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12088 | SWIG_fail; | |
12089 | } | |
12090 | { | |
12091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12092 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
12093 | ||
12094 | wxPyEndAllowThreads(__tstate); | |
12095 | if (PyErr_Occurred()) SWIG_fail; | |
12096 | } | |
12097 | { | |
12098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12099 | } | |
12100 | return resultobj; | |
12101 | fail: | |
12102 | return NULL; | |
12103 | } | |
12104 | ||
12105 | ||
12106 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12107 | PyObject *resultobj; | |
12108 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12109 | wxEvent *arg2 = 0 ; | |
12110 | PyObject * obj0 = 0 ; | |
12111 | PyObject * obj1 = 0 ; | |
12112 | char *kwnames[] = { | |
12113 | (char *) "self",(char *) "event", NULL | |
12114 | }; | |
12115 | ||
12116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
12117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12119 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12120 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12121 | SWIG_fail; | |
12122 | if (arg2 == NULL) { | |
12123 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12124 | SWIG_fail; | |
12125 | } | |
12126 | { | |
12127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12128 | (arg1)->AddPendingEvent(*arg2); | |
12129 | ||
12130 | wxPyEndAllowThreads(__tstate); | |
12131 | if (PyErr_Occurred()) SWIG_fail; | |
12132 | } | |
12133 | Py_INCREF(Py_None); resultobj = Py_None; | |
12134 | return resultobj; | |
12135 | fail: | |
12136 | return NULL; | |
12137 | } | |
12138 | ||
12139 | ||
12140 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12141 | PyObject *resultobj; | |
12142 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12143 | PyObject * obj0 = 0 ; | |
12144 | char *kwnames[] = { | |
12145 | (char *) "self", NULL | |
12146 | }; | |
12147 | ||
12148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
12149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12151 | { | |
12152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12153 | (arg1)->ProcessPendingEvents(); | |
12154 | ||
12155 | wxPyEndAllowThreads(__tstate); | |
12156 | if (PyErr_Occurred()) SWIG_fail; | |
12157 | } | |
12158 | Py_INCREF(Py_None); resultobj = Py_None; | |
12159 | return resultobj; | |
12160 | fail: | |
12161 | return NULL; | |
12162 | } | |
12163 | ||
12164 | ||
12165 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12166 | PyObject *resultobj; | |
12167 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12168 | int arg2 ; | |
12169 | int arg3 ; | |
12170 | int arg4 ; | |
12171 | PyObject *arg5 = (PyObject *) 0 ; | |
12172 | PyObject * obj0 = 0 ; | |
12173 | PyObject * obj1 = 0 ; | |
12174 | PyObject * obj2 = 0 ; | |
12175 | PyObject * obj3 = 0 ; | |
12176 | PyObject * obj4 = 0 ; | |
12177 | char *kwnames[] = { | |
12178 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12179 | }; | |
12180 | ||
12181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12184 | arg2 = (int) SWIG_AsInt(obj1); | |
12185 | if (PyErr_Occurred()) SWIG_fail; | |
12186 | arg3 = (int) SWIG_AsInt(obj2); | |
12187 | if (PyErr_Occurred()) SWIG_fail; | |
12188 | arg4 = (int) SWIG_AsInt(obj3); | |
12189 | if (PyErr_Occurred()) SWIG_fail; | |
12190 | arg5 = obj4; | |
12191 | { | |
12192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12193 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12194 | ||
12195 | wxPyEndAllowThreads(__tstate); | |
12196 | if (PyErr_Occurred()) SWIG_fail; | |
12197 | } | |
12198 | Py_INCREF(Py_None); resultobj = Py_None; | |
12199 | return resultobj; | |
12200 | fail: | |
12201 | return NULL; | |
12202 | } | |
12203 | ||
12204 | ||
12205 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12206 | PyObject *resultobj; | |
12207 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12208 | int arg2 ; | |
12209 | int arg3 = (int) -1 ; | |
12210 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12211 | bool result; | |
12212 | PyObject * obj0 = 0 ; | |
12213 | PyObject * obj1 = 0 ; | |
12214 | PyObject * obj2 = 0 ; | |
12215 | PyObject * obj3 = 0 ; | |
12216 | char *kwnames[] = { | |
12217 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12218 | }; | |
12219 | ||
12220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12223 | arg2 = (int) SWIG_AsInt(obj1); | |
12224 | if (PyErr_Occurred()) SWIG_fail; | |
12225 | if (obj2) { | |
12226 | arg3 = (int) SWIG_AsInt(obj2); | |
12227 | if (PyErr_Occurred()) SWIG_fail; | |
12228 | } | |
12229 | if (obj3) { | |
12230 | arg4 = (wxEventType) SWIG_AsInt(obj3); | |
12231 | if (PyErr_Occurred()) SWIG_fail; | |
12232 | } | |
12233 | { | |
12234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12235 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12236 | ||
12237 | wxPyEndAllowThreads(__tstate); | |
12238 | if (PyErr_Occurred()) SWIG_fail; | |
12239 | } | |
12240 | { | |
12241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12242 | } | |
12243 | return resultobj; | |
12244 | fail: | |
12245 | return NULL; | |
12246 | } | |
12247 | ||
12248 | ||
12249 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12250 | PyObject *resultobj; | |
12251 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12252 | PyObject *arg2 = (PyObject *) 0 ; | |
12253 | PyObject * obj0 = 0 ; | |
12254 | PyObject * obj1 = 0 ; | |
12255 | char *kwnames[] = { | |
12256 | (char *) "self",(char *) "_self", NULL | |
12257 | }; | |
12258 | ||
12259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
12260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12262 | arg2 = obj1; | |
12263 | { | |
12264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12265 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12266 | ||
12267 | wxPyEndAllowThreads(__tstate); | |
12268 | if (PyErr_Occurred()) SWIG_fail; | |
12269 | } | |
12270 | Py_INCREF(Py_None); resultobj = Py_None; | |
12271 | return resultobj; | |
12272 | fail: | |
12273 | return NULL; | |
12274 | } | |
12275 | ||
12276 | ||
12277 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
12278 | PyObject *obj; | |
12279 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12280 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12281 | Py_INCREF(obj); | |
12282 | return Py_BuildValue((char *)""); | |
12283 | } | |
12284 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12285 | PyObject *resultobj; | |
12286 | wxEventType result; | |
12287 | char *kwnames[] = { | |
12288 | NULL | |
12289 | }; | |
12290 | ||
12291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12292 | { | |
12293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12294 | result = (wxEventType)wxNewEventType(); | |
12295 | ||
12296 | wxPyEndAllowThreads(__tstate); | |
12297 | if (PyErr_Occurred()) SWIG_fail; | |
12298 | } | |
12299 | resultobj = SWIG_FromInt((int)result); | |
12300 | return resultobj; | |
12301 | fail: | |
12302 | return NULL; | |
12303 | } | |
12304 | ||
12305 | ||
12306 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12307 | PyObject *resultobj; | |
12308 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12309 | PyObject * obj0 = 0 ; | |
12310 | char *kwnames[] = { | |
12311 | (char *) "self", NULL | |
12312 | }; | |
12313 | ||
12314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
12315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12317 | { | |
12318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12319 | delete arg1; | |
12320 | ||
12321 | wxPyEndAllowThreads(__tstate); | |
12322 | if (PyErr_Occurred()) SWIG_fail; | |
12323 | } | |
12324 | Py_INCREF(Py_None); resultobj = Py_None; | |
12325 | return resultobj; | |
12326 | fail: | |
12327 | return NULL; | |
12328 | } | |
12329 | ||
12330 | ||
12331 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12332 | PyObject *resultobj; | |
12333 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12334 | wxEventType arg2 ; | |
12335 | PyObject * obj0 = 0 ; | |
12336 | PyObject * obj1 = 0 ; | |
12337 | char *kwnames[] = { | |
12338 | (char *) "self",(char *) "typ", NULL | |
12339 | }; | |
12340 | ||
12341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; | |
12342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12344 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
12345 | if (PyErr_Occurred()) SWIG_fail; | |
12346 | { | |
12347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12348 | (arg1)->SetEventType(arg2); | |
12349 | ||
12350 | wxPyEndAllowThreads(__tstate); | |
12351 | if (PyErr_Occurred()) SWIG_fail; | |
12352 | } | |
12353 | Py_INCREF(Py_None); resultobj = Py_None; | |
12354 | return resultobj; | |
12355 | fail: | |
12356 | return NULL; | |
12357 | } | |
12358 | ||
12359 | ||
12360 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12361 | PyObject *resultobj; | |
12362 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12363 | wxEventType result; | |
12364 | PyObject * obj0 = 0 ; | |
12365 | char *kwnames[] = { | |
12366 | (char *) "self", NULL | |
12367 | }; | |
12368 | ||
12369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
12370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12372 | { | |
12373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12374 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12375 | ||
12376 | wxPyEndAllowThreads(__tstate); | |
12377 | if (PyErr_Occurred()) SWIG_fail; | |
12378 | } | |
12379 | resultobj = SWIG_FromInt((int)result); | |
12380 | return resultobj; | |
12381 | fail: | |
12382 | return NULL; | |
12383 | } | |
12384 | ||
12385 | ||
12386 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12387 | PyObject *resultobj; | |
12388 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12389 | wxObject *result; | |
12390 | PyObject * obj0 = 0 ; | |
12391 | char *kwnames[] = { | |
12392 | (char *) "self", NULL | |
12393 | }; | |
12394 | ||
12395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
12396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12398 | { | |
12399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12400 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12401 | ||
12402 | wxPyEndAllowThreads(__tstate); | |
12403 | if (PyErr_Occurred()) SWIG_fail; | |
12404 | } | |
12405 | { | |
412d302d | 12406 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12407 | } |
12408 | return resultobj; | |
12409 | fail: | |
12410 | return NULL; | |
12411 | } | |
12412 | ||
12413 | ||
12414 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12415 | PyObject *resultobj; | |
12416 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12417 | wxObject *arg2 = (wxObject *) 0 ; | |
12418 | PyObject * obj0 = 0 ; | |
12419 | PyObject * obj1 = 0 ; | |
12420 | char *kwnames[] = { | |
12421 | (char *) "self",(char *) "obj", NULL | |
12422 | }; | |
12423 | ||
12424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
12425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12427 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12429 | { | |
12430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12431 | (arg1)->SetEventObject(arg2); | |
12432 | ||
12433 | wxPyEndAllowThreads(__tstate); | |
12434 | if (PyErr_Occurred()) SWIG_fail; | |
12435 | } | |
12436 | Py_INCREF(Py_None); resultobj = Py_None; | |
12437 | return resultobj; | |
12438 | fail: | |
12439 | return NULL; | |
12440 | } | |
12441 | ||
12442 | ||
12443 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12444 | PyObject *resultobj; | |
12445 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12446 | long result; | |
12447 | PyObject * obj0 = 0 ; | |
12448 | char *kwnames[] = { | |
12449 | (char *) "self", NULL | |
12450 | }; | |
12451 | ||
12452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
12453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12455 | { | |
12456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12457 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12458 | ||
12459 | wxPyEndAllowThreads(__tstate); | |
12460 | if (PyErr_Occurred()) SWIG_fail; | |
12461 | } | |
12462 | resultobj = SWIG_FromLong((long)result); | |
12463 | return resultobj; | |
12464 | fail: | |
12465 | return NULL; | |
12466 | } | |
12467 | ||
12468 | ||
12469 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12470 | PyObject *resultobj; | |
12471 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12472 | long arg2 = (long) 0 ; | |
12473 | PyObject * obj0 = 0 ; | |
12474 | PyObject * obj1 = 0 ; | |
12475 | char *kwnames[] = { | |
12476 | (char *) "self",(char *) "ts", NULL | |
12477 | }; | |
12478 | ||
12479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; | |
12480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12482 | if (obj1) { | |
12483 | arg2 = (long) SWIG_AsLong(obj1); | |
12484 | if (PyErr_Occurred()) SWIG_fail; | |
12485 | } | |
12486 | { | |
12487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12488 | (arg1)->SetTimestamp(arg2); | |
12489 | ||
12490 | wxPyEndAllowThreads(__tstate); | |
12491 | if (PyErr_Occurred()) SWIG_fail; | |
12492 | } | |
12493 | Py_INCREF(Py_None); resultobj = Py_None; | |
12494 | return resultobj; | |
12495 | fail: | |
12496 | return NULL; | |
12497 | } | |
12498 | ||
12499 | ||
12500 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12501 | PyObject *resultobj; | |
12502 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12503 | int result; | |
12504 | PyObject * obj0 = 0 ; | |
12505 | char *kwnames[] = { | |
12506 | (char *) "self", NULL | |
12507 | }; | |
12508 | ||
12509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
12510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12512 | { | |
12513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12514 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12515 | ||
12516 | wxPyEndAllowThreads(__tstate); | |
12517 | if (PyErr_Occurred()) SWIG_fail; | |
12518 | } | |
12519 | resultobj = SWIG_FromInt((int)result); | |
12520 | return resultobj; | |
12521 | fail: | |
12522 | return NULL; | |
12523 | } | |
12524 | ||
12525 | ||
12526 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12527 | PyObject *resultobj; | |
12528 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12529 | int arg2 ; | |
12530 | PyObject * obj0 = 0 ; | |
12531 | PyObject * obj1 = 0 ; | |
12532 | char *kwnames[] = { | |
12533 | (char *) "self",(char *) "Id", NULL | |
12534 | }; | |
12535 | ||
12536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; | |
12537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12539 | arg2 = (int) SWIG_AsInt(obj1); | |
12540 | if (PyErr_Occurred()) SWIG_fail; | |
12541 | { | |
12542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12543 | (arg1)->SetId(arg2); | |
12544 | ||
12545 | wxPyEndAllowThreads(__tstate); | |
12546 | if (PyErr_Occurred()) SWIG_fail; | |
12547 | } | |
12548 | Py_INCREF(Py_None); resultobj = Py_None; | |
12549 | return resultobj; | |
12550 | fail: | |
12551 | return NULL; | |
12552 | } | |
12553 | ||
12554 | ||
12555 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12556 | PyObject *resultobj; | |
12557 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12558 | bool result; | |
12559 | PyObject * obj0 = 0 ; | |
12560 | char *kwnames[] = { | |
12561 | (char *) "self", NULL | |
12562 | }; | |
12563 | ||
12564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
12565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12567 | { | |
12568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12569 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12570 | ||
12571 | wxPyEndAllowThreads(__tstate); | |
12572 | if (PyErr_Occurred()) SWIG_fail; | |
12573 | } | |
12574 | { | |
12575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12576 | } | |
12577 | return resultobj; | |
12578 | fail: | |
12579 | return NULL; | |
12580 | } | |
12581 | ||
12582 | ||
12583 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12584 | PyObject *resultobj; | |
12585 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12586 | bool arg2 = (bool) True ; | |
12587 | PyObject * obj0 = 0 ; | |
12588 | PyObject * obj1 = 0 ; | |
12589 | char *kwnames[] = { | |
12590 | (char *) "self",(char *) "skip", NULL | |
12591 | }; | |
12592 | ||
12593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
12594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12596 | if (obj1) { | |
12597 | arg2 = (bool) SWIG_AsBool(obj1); | |
12598 | if (PyErr_Occurred()) SWIG_fail; | |
12599 | } | |
12600 | { | |
12601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12602 | (arg1)->Skip(arg2); | |
12603 | ||
12604 | wxPyEndAllowThreads(__tstate); | |
12605 | if (PyErr_Occurred()) SWIG_fail; | |
12606 | } | |
12607 | Py_INCREF(Py_None); resultobj = Py_None; | |
12608 | return resultobj; | |
12609 | fail: | |
12610 | return NULL; | |
12611 | } | |
12612 | ||
12613 | ||
12614 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12615 | PyObject *resultobj; | |
12616 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12617 | bool result; | |
12618 | PyObject * obj0 = 0 ; | |
12619 | char *kwnames[] = { | |
12620 | (char *) "self", NULL | |
12621 | }; | |
12622 | ||
12623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
12624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12626 | { | |
12627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12628 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12629 | ||
12630 | wxPyEndAllowThreads(__tstate); | |
12631 | if (PyErr_Occurred()) SWIG_fail; | |
12632 | } | |
12633 | { | |
12634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12635 | } | |
12636 | return resultobj; | |
12637 | fail: | |
12638 | return NULL; | |
12639 | } | |
12640 | ||
12641 | ||
12642 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12643 | PyObject *resultobj; | |
12644 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12645 | bool result; | |
12646 | PyObject * obj0 = 0 ; | |
12647 | char *kwnames[] = { | |
12648 | (char *) "self", NULL | |
12649 | }; | |
12650 | ||
12651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
12652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12654 | { | |
12655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12656 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12657 | ||
12658 | wxPyEndAllowThreads(__tstate); | |
12659 | if (PyErr_Occurred()) SWIG_fail; | |
12660 | } | |
12661 | { | |
12662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12663 | } | |
12664 | return resultobj; | |
12665 | fail: | |
12666 | return NULL; | |
12667 | } | |
12668 | ||
12669 | ||
12670 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12671 | PyObject *resultobj; | |
12672 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12673 | int result; | |
12674 | PyObject * obj0 = 0 ; | |
12675 | char *kwnames[] = { | |
12676 | (char *) "self", NULL | |
12677 | }; | |
12678 | ||
12679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
12680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12682 | { | |
12683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12684 | result = (int)(arg1)->StopPropagation(); | |
12685 | ||
12686 | wxPyEndAllowThreads(__tstate); | |
12687 | if (PyErr_Occurred()) SWIG_fail; | |
12688 | } | |
12689 | resultobj = SWIG_FromInt((int)result); | |
12690 | return resultobj; | |
12691 | fail: | |
12692 | return NULL; | |
12693 | } | |
12694 | ||
12695 | ||
12696 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12697 | PyObject *resultobj; | |
12698 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12699 | int arg2 ; | |
12700 | PyObject * obj0 = 0 ; | |
12701 | PyObject * obj1 = 0 ; | |
12702 | char *kwnames[] = { | |
12703 | (char *) "self",(char *) "propagationLevel", NULL | |
12704 | }; | |
12705 | ||
12706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; | |
12707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12709 | arg2 = (int) SWIG_AsInt(obj1); | |
12710 | if (PyErr_Occurred()) SWIG_fail; | |
12711 | { | |
12712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12713 | (arg1)->ResumePropagation(arg2); | |
12714 | ||
12715 | wxPyEndAllowThreads(__tstate); | |
12716 | if (PyErr_Occurred()) SWIG_fail; | |
12717 | } | |
12718 | Py_INCREF(Py_None); resultobj = Py_None; | |
12719 | return resultobj; | |
12720 | fail: | |
12721 | return NULL; | |
12722 | } | |
12723 | ||
12724 | ||
12725 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12726 | PyObject *resultobj; | |
12727 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12728 | wxEvent *result; | |
12729 | PyObject * obj0 = 0 ; | |
12730 | char *kwnames[] = { | |
12731 | (char *) "self", NULL | |
12732 | }; | |
12733 | ||
12734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
12735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12737 | { | |
12738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12739 | result = (wxEvent *)(arg1)->Clone(); | |
12740 | ||
12741 | wxPyEndAllowThreads(__tstate); | |
12742 | if (PyErr_Occurred()) SWIG_fail; | |
12743 | } | |
12744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
12745 | return resultobj; | |
12746 | fail: | |
12747 | return NULL; | |
12748 | } | |
12749 | ||
12750 | ||
12751 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12752 | PyObject *obj; | |
12753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12754 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12755 | Py_INCREF(obj); | |
12756 | return Py_BuildValue((char *)""); | |
12757 | } | |
12758 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12759 | PyObject *resultobj; | |
12760 | wxEvent *arg1 = 0 ; | |
12761 | wxPropagationDisabler *result; | |
12762 | PyObject * obj0 = 0 ; | |
12763 | char *kwnames[] = { | |
12764 | (char *) "event", NULL | |
12765 | }; | |
12766 | ||
12767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12769 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12770 | SWIG_fail; | |
12771 | if (arg1 == NULL) { | |
12772 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12773 | SWIG_fail; | |
12774 | } | |
12775 | { | |
12776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12777 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12778 | ||
12779 | wxPyEndAllowThreads(__tstate); | |
12780 | if (PyErr_Occurred()) SWIG_fail; | |
12781 | } | |
12782 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); | |
12783 | return resultobj; | |
12784 | fail: | |
12785 | return NULL; | |
12786 | } | |
12787 | ||
12788 | ||
12789 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12790 | PyObject *resultobj; | |
12791 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12792 | PyObject * obj0 = 0 ; | |
12793 | char *kwnames[] = { | |
12794 | (char *) "self", NULL | |
12795 | }; | |
12796 | ||
12797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, | |
12799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12800 | { | |
12801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12802 | delete arg1; | |
12803 | ||
12804 | wxPyEndAllowThreads(__tstate); | |
12805 | if (PyErr_Occurred()) SWIG_fail; | |
12806 | } | |
12807 | Py_INCREF(Py_None); resultobj = Py_None; | |
12808 | return resultobj; | |
12809 | fail: | |
12810 | return NULL; | |
12811 | } | |
12812 | ||
12813 | ||
12814 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12815 | PyObject *obj; | |
12816 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12817 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12818 | Py_INCREF(obj); | |
12819 | return Py_BuildValue((char *)""); | |
12820 | } | |
12821 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12822 | PyObject *resultobj; | |
12823 | wxEvent *arg1 = 0 ; | |
12824 | wxPropagateOnce *result; | |
12825 | PyObject * obj0 = 0 ; | |
12826 | char *kwnames[] = { | |
12827 | (char *) "event", NULL | |
12828 | }; | |
12829 | ||
12830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
12831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12832 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12833 | SWIG_fail; | |
12834 | if (arg1 == NULL) { | |
12835 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12836 | SWIG_fail; | |
12837 | } | |
12838 | { | |
12839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12840 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12841 | ||
12842 | wxPyEndAllowThreads(__tstate); | |
12843 | if (PyErr_Occurred()) SWIG_fail; | |
12844 | } | |
12845 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); | |
12846 | return resultobj; | |
12847 | fail: | |
12848 | return NULL; | |
12849 | } | |
12850 | ||
12851 | ||
12852 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12853 | PyObject *resultobj; | |
12854 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12855 | PyObject * obj0 = 0 ; | |
12856 | char *kwnames[] = { | |
12857 | (char *) "self", NULL | |
12858 | }; | |
12859 | ||
12860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
12861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, | |
12862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12863 | { | |
12864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12865 | delete arg1; | |
12866 | ||
12867 | wxPyEndAllowThreads(__tstate); | |
12868 | if (PyErr_Occurred()) SWIG_fail; | |
12869 | } | |
12870 | Py_INCREF(Py_None); resultobj = Py_None; | |
12871 | return resultobj; | |
12872 | fail: | |
12873 | return NULL; | |
12874 | } | |
12875 | ||
12876 | ||
12877 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12878 | PyObject *obj; | |
12879 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12880 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12881 | Py_INCREF(obj); | |
12882 | return Py_BuildValue((char *)""); | |
12883 | } | |
12884 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12885 | PyObject *resultobj; | |
12886 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12887 | int arg2 = (int) 0 ; | |
12888 | wxCommandEvent *result; | |
12889 | PyObject * obj0 = 0 ; | |
12890 | PyObject * obj1 = 0 ; | |
12891 | char *kwnames[] = { | |
12892 | (char *) "commandType",(char *) "winid", NULL | |
12893 | }; | |
12894 | ||
12895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
12896 | if (obj0) { | |
12897 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
12898 | if (PyErr_Occurred()) SWIG_fail; | |
12899 | } | |
12900 | if (obj1) { | |
12901 | arg2 = (int) SWIG_AsInt(obj1); | |
12902 | if (PyErr_Occurred()) SWIG_fail; | |
12903 | } | |
12904 | { | |
12905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12906 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12907 | ||
12908 | wxPyEndAllowThreads(__tstate); | |
12909 | if (PyErr_Occurred()) SWIG_fail; | |
12910 | } | |
12911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); | |
12912 | return resultobj; | |
12913 | fail: | |
12914 | return NULL; | |
12915 | } | |
12916 | ||
12917 | ||
12918 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12919 | PyObject *resultobj; | |
12920 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12921 | int result; | |
12922 | PyObject * obj0 = 0 ; | |
12923 | char *kwnames[] = { | |
12924 | (char *) "self", NULL | |
12925 | }; | |
12926 | ||
12927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
12928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12930 | { | |
12931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12932 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12933 | ||
12934 | wxPyEndAllowThreads(__tstate); | |
12935 | if (PyErr_Occurred()) SWIG_fail; | |
12936 | } | |
12937 | resultobj = SWIG_FromInt((int)result); | |
12938 | return resultobj; | |
12939 | fail: | |
12940 | return NULL; | |
12941 | } | |
12942 | ||
12943 | ||
12944 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12945 | PyObject *resultobj; | |
12946 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12947 | wxString *arg2 = 0 ; | |
12948 | bool temp2 = False ; | |
12949 | PyObject * obj0 = 0 ; | |
12950 | PyObject * obj1 = 0 ; | |
12951 | char *kwnames[] = { | |
12952 | (char *) "self",(char *) "s", NULL | |
12953 | }; | |
12954 | ||
12955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
12956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12958 | { | |
12959 | arg2 = wxString_in_helper(obj1); | |
12960 | if (arg2 == NULL) SWIG_fail; | |
12961 | temp2 = True; | |
12962 | } | |
12963 | { | |
12964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12965 | (arg1)->SetString((wxString const &)*arg2); | |
12966 | ||
12967 | wxPyEndAllowThreads(__tstate); | |
12968 | if (PyErr_Occurred()) SWIG_fail; | |
12969 | } | |
12970 | Py_INCREF(Py_None); resultobj = Py_None; | |
12971 | { | |
12972 | if (temp2) | |
12973 | delete arg2; | |
12974 | } | |
12975 | return resultobj; | |
12976 | fail: | |
12977 | { | |
12978 | if (temp2) | |
12979 | delete arg2; | |
12980 | } | |
12981 | return NULL; | |
12982 | } | |
12983 | ||
12984 | ||
12985 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12986 | PyObject *resultobj; | |
12987 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12988 | wxString result; | |
12989 | PyObject * obj0 = 0 ; | |
12990 | char *kwnames[] = { | |
12991 | (char *) "self", NULL | |
12992 | }; | |
12993 | ||
12994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
12995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12997 | { | |
12998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12999 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
13000 | ||
13001 | wxPyEndAllowThreads(__tstate); | |
13002 | if (PyErr_Occurred()) SWIG_fail; | |
13003 | } | |
13004 | { | |
13005 | #if wxUSE_UNICODE | |
13006 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13007 | #else | |
13008 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13009 | #endif | |
13010 | } | |
13011 | return resultobj; | |
13012 | fail: | |
13013 | return NULL; | |
13014 | } | |
13015 | ||
13016 | ||
13017 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13018 | PyObject *resultobj; | |
13019 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13020 | bool result; | |
13021 | PyObject * obj0 = 0 ; | |
13022 | char *kwnames[] = { | |
13023 | (char *) "self", NULL | |
13024 | }; | |
13025 | ||
13026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
13027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13029 | { | |
13030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13031 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
13032 | ||
13033 | wxPyEndAllowThreads(__tstate); | |
13034 | if (PyErr_Occurred()) SWIG_fail; | |
13035 | } | |
13036 | { | |
13037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13038 | } | |
13039 | return resultobj; | |
13040 | fail: | |
13041 | return NULL; | |
13042 | } | |
13043 | ||
13044 | ||
13045 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13046 | PyObject *resultobj; | |
13047 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13048 | bool result; | |
13049 | PyObject * obj0 = 0 ; | |
13050 | char *kwnames[] = { | |
13051 | (char *) "self", NULL | |
13052 | }; | |
13053 | ||
13054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
13055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13057 | { | |
13058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13059 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
13060 | ||
13061 | wxPyEndAllowThreads(__tstate); | |
13062 | if (PyErr_Occurred()) SWIG_fail; | |
13063 | } | |
13064 | { | |
13065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13066 | } | |
13067 | return resultobj; | |
13068 | fail: | |
13069 | return NULL; | |
13070 | } | |
13071 | ||
13072 | ||
13073 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13074 | PyObject *resultobj; | |
13075 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13076 | long arg2 ; | |
13077 | PyObject * obj0 = 0 ; | |
13078 | PyObject * obj1 = 0 ; | |
13079 | char *kwnames[] = { | |
13080 | (char *) "self",(char *) "extraLong", NULL | |
13081 | }; | |
13082 | ||
13083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; | |
13084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13086 | arg2 = (long) SWIG_AsLong(obj1); | |
13087 | if (PyErr_Occurred()) SWIG_fail; | |
13088 | { | |
13089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13090 | (arg1)->SetExtraLong(arg2); | |
13091 | ||
13092 | wxPyEndAllowThreads(__tstate); | |
13093 | if (PyErr_Occurred()) SWIG_fail; | |
13094 | } | |
13095 | Py_INCREF(Py_None); resultobj = Py_None; | |
13096 | return resultobj; | |
13097 | fail: | |
13098 | return NULL; | |
13099 | } | |
13100 | ||
13101 | ||
13102 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13103 | PyObject *resultobj; | |
13104 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13105 | long result; | |
13106 | PyObject * obj0 = 0 ; | |
13107 | char *kwnames[] = { | |
13108 | (char *) "self", NULL | |
13109 | }; | |
13110 | ||
13111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
13112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13114 | { | |
13115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13116 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
13117 | ||
13118 | wxPyEndAllowThreads(__tstate); | |
13119 | if (PyErr_Occurred()) SWIG_fail; | |
13120 | } | |
13121 | resultobj = SWIG_FromLong((long)result); | |
13122 | return resultobj; | |
13123 | fail: | |
13124 | return NULL; | |
13125 | } | |
13126 | ||
13127 | ||
13128 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13129 | PyObject *resultobj; | |
13130 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13131 | int arg2 ; | |
13132 | PyObject * obj0 = 0 ; | |
13133 | PyObject * obj1 = 0 ; | |
13134 | char *kwnames[] = { | |
13135 | (char *) "self",(char *) "i", NULL | |
13136 | }; | |
13137 | ||
13138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; | |
13139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13141 | arg2 = (int) SWIG_AsInt(obj1); | |
13142 | if (PyErr_Occurred()) SWIG_fail; | |
13143 | { | |
13144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13145 | (arg1)->SetInt(arg2); | |
13146 | ||
13147 | wxPyEndAllowThreads(__tstate); | |
13148 | if (PyErr_Occurred()) SWIG_fail; | |
13149 | } | |
13150 | Py_INCREF(Py_None); resultobj = Py_None; | |
13151 | return resultobj; | |
13152 | fail: | |
13153 | return NULL; | |
13154 | } | |
13155 | ||
13156 | ||
13157 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13158 | PyObject *resultobj; | |
13159 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13160 | long result; | |
13161 | PyObject * obj0 = 0 ; | |
13162 | char *kwnames[] = { | |
13163 | (char *) "self", NULL | |
13164 | }; | |
13165 | ||
13166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
13167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13169 | { | |
13170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13171 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13172 | ||
13173 | wxPyEndAllowThreads(__tstate); | |
13174 | if (PyErr_Occurred()) SWIG_fail; | |
13175 | } | |
13176 | resultobj = SWIG_FromLong((long)result); | |
13177 | return resultobj; | |
13178 | fail: | |
13179 | return NULL; | |
13180 | } | |
13181 | ||
13182 | ||
13183 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13184 | PyObject *resultobj; | |
13185 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13186 | wxEvent *result; | |
13187 | PyObject * obj0 = 0 ; | |
13188 | char *kwnames[] = { | |
13189 | (char *) "self", NULL | |
13190 | }; | |
13191 | ||
13192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
13193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13195 | { | |
13196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13197 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13198 | ||
13199 | wxPyEndAllowThreads(__tstate); | |
13200 | if (PyErr_Occurred()) SWIG_fail; | |
13201 | } | |
13202 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13203 | return resultobj; | |
13204 | fail: | |
13205 | return NULL; | |
13206 | } | |
13207 | ||
13208 | ||
13209 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
13210 | PyObject *obj; | |
13211 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13212 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13213 | Py_INCREF(obj); | |
13214 | return Py_BuildValue((char *)""); | |
13215 | } | |
13216 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13217 | PyObject *resultobj; | |
13218 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13219 | int arg2 = (int) 0 ; | |
13220 | wxNotifyEvent *result; | |
13221 | PyObject * obj0 = 0 ; | |
13222 | PyObject * obj1 = 0 ; | |
13223 | char *kwnames[] = { | |
13224 | (char *) "commandType",(char *) "winid", NULL | |
13225 | }; | |
13226 | ||
13227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; | |
13228 | if (obj0) { | |
13229 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13230 | if (PyErr_Occurred()) SWIG_fail; | |
13231 | } | |
13232 | if (obj1) { | |
13233 | arg2 = (int) SWIG_AsInt(obj1); | |
13234 | if (PyErr_Occurred()) SWIG_fail; | |
13235 | } | |
13236 | { | |
13237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13238 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13239 | ||
13240 | wxPyEndAllowThreads(__tstate); | |
13241 | if (PyErr_Occurred()) SWIG_fail; | |
13242 | } | |
13243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); | |
13244 | return resultobj; | |
13245 | fail: | |
13246 | return NULL; | |
13247 | } | |
13248 | ||
13249 | ||
13250 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13251 | PyObject *resultobj; | |
13252 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13253 | PyObject * obj0 = 0 ; | |
13254 | char *kwnames[] = { | |
13255 | (char *) "self", NULL | |
13256 | }; | |
13257 | ||
13258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
13259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13261 | { | |
13262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13263 | (arg1)->Veto(); | |
13264 | ||
13265 | wxPyEndAllowThreads(__tstate); | |
13266 | if (PyErr_Occurred()) SWIG_fail; | |
13267 | } | |
13268 | Py_INCREF(Py_None); resultobj = Py_None; | |
13269 | return resultobj; | |
13270 | fail: | |
13271 | return NULL; | |
13272 | } | |
13273 | ||
13274 | ||
13275 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13276 | PyObject *resultobj; | |
13277 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13278 | PyObject * obj0 = 0 ; | |
13279 | char *kwnames[] = { | |
13280 | (char *) "self", NULL | |
13281 | }; | |
13282 | ||
13283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
13284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13286 | { | |
13287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13288 | (arg1)->Allow(); | |
13289 | ||
13290 | wxPyEndAllowThreads(__tstate); | |
13291 | if (PyErr_Occurred()) SWIG_fail; | |
13292 | } | |
13293 | Py_INCREF(Py_None); resultobj = Py_None; | |
13294 | return resultobj; | |
13295 | fail: | |
13296 | return NULL; | |
13297 | } | |
13298 | ||
13299 | ||
13300 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13301 | PyObject *resultobj; | |
13302 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13303 | bool result; | |
13304 | PyObject * obj0 = 0 ; | |
13305 | char *kwnames[] = { | |
13306 | (char *) "self", NULL | |
13307 | }; | |
13308 | ||
13309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
13310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13312 | { | |
13313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13314 | result = (bool)(arg1)->IsAllowed(); | |
13315 | ||
13316 | wxPyEndAllowThreads(__tstate); | |
13317 | if (PyErr_Occurred()) SWIG_fail; | |
13318 | } | |
13319 | { | |
13320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13321 | } | |
13322 | return resultobj; | |
13323 | fail: | |
13324 | return NULL; | |
13325 | } | |
13326 | ||
13327 | ||
13328 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
13329 | PyObject *obj; | |
13330 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13331 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13332 | Py_INCREF(obj); | |
13333 | return Py_BuildValue((char *)""); | |
13334 | } | |
13335 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13336 | PyObject *resultobj; | |
13337 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13338 | int arg2 = (int) 0 ; | |
13339 | int arg3 = (int) 0 ; | |
13340 | int arg4 = (int) 0 ; | |
13341 | wxScrollEvent *result; | |
13342 | PyObject * obj0 = 0 ; | |
13343 | PyObject * obj1 = 0 ; | |
13344 | PyObject * obj2 = 0 ; | |
13345 | PyObject * obj3 = 0 ; | |
13346 | char *kwnames[] = { | |
13347 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13348 | }; | |
13349 | ||
13350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13351 | if (obj0) { | |
13352 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13353 | if (PyErr_Occurred()) SWIG_fail; | |
13354 | } | |
13355 | if (obj1) { | |
13356 | arg2 = (int) SWIG_AsInt(obj1); | |
13357 | if (PyErr_Occurred()) SWIG_fail; | |
13358 | } | |
13359 | if (obj2) { | |
13360 | arg3 = (int) SWIG_AsInt(obj2); | |
13361 | if (PyErr_Occurred()) SWIG_fail; | |
13362 | } | |
13363 | if (obj3) { | |
13364 | arg4 = (int) SWIG_AsInt(obj3); | |
13365 | if (PyErr_Occurred()) SWIG_fail; | |
13366 | } | |
13367 | { | |
13368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13369 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13370 | ||
13371 | wxPyEndAllowThreads(__tstate); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | } | |
13374 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); | |
13375 | return resultobj; | |
13376 | fail: | |
13377 | return NULL; | |
13378 | } | |
13379 | ||
13380 | ||
13381 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13382 | PyObject *resultobj; | |
13383 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13384 | int result; | |
13385 | PyObject * obj0 = 0 ; | |
13386 | char *kwnames[] = { | |
13387 | (char *) "self", NULL | |
13388 | }; | |
13389 | ||
13390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13393 | { | |
13394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13395 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13396 | ||
13397 | wxPyEndAllowThreads(__tstate); | |
13398 | if (PyErr_Occurred()) SWIG_fail; | |
13399 | } | |
13400 | resultobj = SWIG_FromInt((int)result); | |
13401 | return resultobj; | |
13402 | fail: | |
13403 | return NULL; | |
13404 | } | |
13405 | ||
13406 | ||
13407 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13408 | PyObject *resultobj; | |
13409 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13410 | int result; | |
13411 | PyObject * obj0 = 0 ; | |
13412 | char *kwnames[] = { | |
13413 | (char *) "self", NULL | |
13414 | }; | |
13415 | ||
13416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13419 | { | |
13420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13421 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13422 | ||
13423 | wxPyEndAllowThreads(__tstate); | |
13424 | if (PyErr_Occurred()) SWIG_fail; | |
13425 | } | |
13426 | resultobj = SWIG_FromInt((int)result); | |
13427 | return resultobj; | |
13428 | fail: | |
13429 | return NULL; | |
13430 | } | |
13431 | ||
13432 | ||
13433 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13434 | PyObject *resultobj; | |
13435 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13436 | int arg2 ; | |
13437 | PyObject * obj0 = 0 ; | |
13438 | PyObject * obj1 = 0 ; | |
13439 | char *kwnames[] = { | |
13440 | (char *) "self",(char *) "orient", NULL | |
13441 | }; | |
13442 | ||
13443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13446 | arg2 = (int) SWIG_AsInt(obj1); | |
13447 | if (PyErr_Occurred()) SWIG_fail; | |
13448 | { | |
13449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13450 | (arg1)->SetOrientation(arg2); | |
13451 | ||
13452 | wxPyEndAllowThreads(__tstate); | |
13453 | if (PyErr_Occurred()) SWIG_fail; | |
13454 | } | |
13455 | Py_INCREF(Py_None); resultobj = Py_None; | |
13456 | return resultobj; | |
13457 | fail: | |
13458 | return NULL; | |
13459 | } | |
13460 | ||
13461 | ||
13462 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13463 | PyObject *resultobj; | |
13464 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13465 | int arg2 ; | |
13466 | PyObject * obj0 = 0 ; | |
13467 | PyObject * obj1 = 0 ; | |
13468 | char *kwnames[] = { | |
13469 | (char *) "self",(char *) "pos", NULL | |
13470 | }; | |
13471 | ||
13472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13475 | arg2 = (int) SWIG_AsInt(obj1); | |
13476 | if (PyErr_Occurred()) SWIG_fail; | |
13477 | { | |
13478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13479 | (arg1)->SetPosition(arg2); | |
13480 | ||
13481 | wxPyEndAllowThreads(__tstate); | |
13482 | if (PyErr_Occurred()) SWIG_fail; | |
13483 | } | |
13484 | Py_INCREF(Py_None); resultobj = Py_None; | |
13485 | return resultobj; | |
13486 | fail: | |
13487 | return NULL; | |
13488 | } | |
13489 | ||
13490 | ||
13491 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
13492 | PyObject *obj; | |
13493 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13494 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13495 | Py_INCREF(obj); | |
13496 | return Py_BuildValue((char *)""); | |
13497 | } | |
13498 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13499 | PyObject *resultobj; | |
13500 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13501 | int arg2 = (int) 0 ; | |
13502 | int arg3 = (int) 0 ; | |
13503 | wxScrollWinEvent *result; | |
13504 | PyObject * obj0 = 0 ; | |
13505 | PyObject * obj1 = 0 ; | |
13506 | PyObject * obj2 = 0 ; | |
13507 | char *kwnames[] = { | |
13508 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13509 | }; | |
13510 | ||
13511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13512 | if (obj0) { | |
13513 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13514 | if (PyErr_Occurred()) SWIG_fail; | |
13515 | } | |
13516 | if (obj1) { | |
13517 | arg2 = (int) SWIG_AsInt(obj1); | |
13518 | if (PyErr_Occurred()) SWIG_fail; | |
13519 | } | |
13520 | if (obj2) { | |
13521 | arg3 = (int) SWIG_AsInt(obj2); | |
13522 | if (PyErr_Occurred()) SWIG_fail; | |
13523 | } | |
13524 | { | |
13525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13526 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13527 | ||
13528 | wxPyEndAllowThreads(__tstate); | |
13529 | if (PyErr_Occurred()) SWIG_fail; | |
13530 | } | |
13531 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); | |
13532 | return resultobj; | |
13533 | fail: | |
13534 | return NULL; | |
13535 | } | |
13536 | ||
13537 | ||
13538 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13539 | PyObject *resultobj; | |
13540 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13541 | int result; | |
13542 | PyObject * obj0 = 0 ; | |
13543 | char *kwnames[] = { | |
13544 | (char *) "self", NULL | |
13545 | }; | |
13546 | ||
13547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13550 | { | |
13551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13552 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13553 | ||
13554 | wxPyEndAllowThreads(__tstate); | |
13555 | if (PyErr_Occurred()) SWIG_fail; | |
13556 | } | |
13557 | resultobj = SWIG_FromInt((int)result); | |
13558 | return resultobj; | |
13559 | fail: | |
13560 | return NULL; | |
13561 | } | |
13562 | ||
13563 | ||
13564 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13565 | PyObject *resultobj; | |
13566 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13567 | int result; | |
13568 | PyObject * obj0 = 0 ; | |
13569 | char *kwnames[] = { | |
13570 | (char *) "self", NULL | |
13571 | }; | |
13572 | ||
13573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13576 | { | |
13577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13578 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13579 | ||
13580 | wxPyEndAllowThreads(__tstate); | |
13581 | if (PyErr_Occurred()) SWIG_fail; | |
13582 | } | |
13583 | resultobj = SWIG_FromInt((int)result); | |
13584 | return resultobj; | |
13585 | fail: | |
13586 | return NULL; | |
13587 | } | |
13588 | ||
13589 | ||
13590 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13591 | PyObject *resultobj; | |
13592 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13593 | int arg2 ; | |
13594 | PyObject * obj0 = 0 ; | |
13595 | PyObject * obj1 = 0 ; | |
13596 | char *kwnames[] = { | |
13597 | (char *) "self",(char *) "orient", NULL | |
13598 | }; | |
13599 | ||
13600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13603 | arg2 = (int) SWIG_AsInt(obj1); | |
13604 | if (PyErr_Occurred()) SWIG_fail; | |
13605 | { | |
13606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13607 | (arg1)->SetOrientation(arg2); | |
13608 | ||
13609 | wxPyEndAllowThreads(__tstate); | |
13610 | if (PyErr_Occurred()) SWIG_fail; | |
13611 | } | |
13612 | Py_INCREF(Py_None); resultobj = Py_None; | |
13613 | return resultobj; | |
13614 | fail: | |
13615 | return NULL; | |
13616 | } | |
13617 | ||
13618 | ||
13619 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13620 | PyObject *resultobj; | |
13621 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13622 | int arg2 ; | |
13623 | PyObject * obj0 = 0 ; | |
13624 | PyObject * obj1 = 0 ; | |
13625 | char *kwnames[] = { | |
13626 | (char *) "self",(char *) "pos", NULL | |
13627 | }; | |
13628 | ||
13629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13632 | arg2 = (int) SWIG_AsInt(obj1); | |
13633 | if (PyErr_Occurred()) SWIG_fail; | |
13634 | { | |
13635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13636 | (arg1)->SetPosition(arg2); | |
13637 | ||
13638 | wxPyEndAllowThreads(__tstate); | |
13639 | if (PyErr_Occurred()) SWIG_fail; | |
13640 | } | |
13641 | Py_INCREF(Py_None); resultobj = Py_None; | |
13642 | return resultobj; | |
13643 | fail: | |
13644 | return NULL; | |
13645 | } | |
13646 | ||
13647 | ||
13648 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13649 | PyObject *obj; | |
13650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13651 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13652 | Py_INCREF(obj); | |
13653 | return Py_BuildValue((char *)""); | |
13654 | } | |
13655 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13656 | PyObject *resultobj; | |
13657 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13658 | wxMouseEvent *result; | |
13659 | PyObject * obj0 = 0 ; | |
13660 | char *kwnames[] = { | |
13661 | (char *) "mouseType", NULL | |
13662 | }; | |
13663 | ||
13664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; | |
13665 | if (obj0) { | |
13666 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13667 | if (PyErr_Occurred()) SWIG_fail; | |
13668 | } | |
13669 | { | |
13670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13671 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13672 | ||
13673 | wxPyEndAllowThreads(__tstate); | |
13674 | if (PyErr_Occurred()) SWIG_fail; | |
13675 | } | |
13676 | { | |
412d302d | 13677 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
13678 | } |
13679 | return resultobj; | |
13680 | fail: | |
13681 | return NULL; | |
13682 | } | |
13683 | ||
13684 | ||
13685 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13686 | PyObject *resultobj; | |
13687 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13688 | bool result; | |
13689 | PyObject * obj0 = 0 ; | |
13690 | char *kwnames[] = { | |
13691 | (char *) "self", NULL | |
13692 | }; | |
13693 | ||
13694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
13695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13697 | { | |
13698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13699 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13700 | ||
13701 | wxPyEndAllowThreads(__tstate); | |
13702 | if (PyErr_Occurred()) SWIG_fail; | |
13703 | } | |
13704 | { | |
13705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13706 | } | |
13707 | return resultobj; | |
13708 | fail: | |
13709 | return NULL; | |
13710 | } | |
13711 | ||
13712 | ||
13713 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13714 | PyObject *resultobj; | |
13715 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13716 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13717 | bool result; | |
13718 | PyObject * obj0 = 0 ; | |
13719 | PyObject * obj1 = 0 ; | |
13720 | char *kwnames[] = { | |
13721 | (char *) "self",(char *) "but", NULL | |
13722 | }; | |
13723 | ||
13724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
13725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13727 | if (obj1) { | |
13728 | arg2 = (int) SWIG_AsInt(obj1); | |
13729 | if (PyErr_Occurred()) SWIG_fail; | |
13730 | } | |
13731 | { | |
13732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13733 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13734 | ||
13735 | wxPyEndAllowThreads(__tstate); | |
13736 | if (PyErr_Occurred()) SWIG_fail; | |
13737 | } | |
13738 | { | |
13739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13740 | } | |
13741 | return resultobj; | |
13742 | fail: | |
13743 | return NULL; | |
13744 | } | |
13745 | ||
13746 | ||
13747 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13748 | PyObject *resultobj; | |
13749 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13750 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13751 | bool result; | |
13752 | PyObject * obj0 = 0 ; | |
13753 | PyObject * obj1 = 0 ; | |
13754 | char *kwnames[] = { | |
13755 | (char *) "self",(char *) "but", NULL | |
13756 | }; | |
13757 | ||
13758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; | |
13759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13761 | if (obj1) { | |
13762 | arg2 = (int) SWIG_AsInt(obj1); | |
13763 | if (PyErr_Occurred()) SWIG_fail; | |
13764 | } | |
13765 | { | |
13766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13767 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13768 | ||
13769 | wxPyEndAllowThreads(__tstate); | |
13770 | if (PyErr_Occurred()) SWIG_fail; | |
13771 | } | |
13772 | { | |
13773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13774 | } | |
13775 | return resultobj; | |
13776 | fail: | |
13777 | return NULL; | |
13778 | } | |
13779 | ||
13780 | ||
13781 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13782 | PyObject *resultobj; | |
13783 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13784 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13785 | bool result; | |
13786 | PyObject * obj0 = 0 ; | |
13787 | PyObject * obj1 = 0 ; | |
13788 | char *kwnames[] = { | |
13789 | (char *) "self",(char *) "but", NULL | |
13790 | }; | |
13791 | ||
13792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
13793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13795 | if (obj1) { | |
13796 | arg2 = (int) SWIG_AsInt(obj1); | |
13797 | if (PyErr_Occurred()) SWIG_fail; | |
13798 | } | |
13799 | { | |
13800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13801 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13802 | ||
13803 | wxPyEndAllowThreads(__tstate); | |
13804 | if (PyErr_Occurred()) SWIG_fail; | |
13805 | } | |
13806 | { | |
13807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13808 | } | |
13809 | return resultobj; | |
13810 | fail: | |
13811 | return NULL; | |
13812 | } | |
13813 | ||
13814 | ||
13815 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13816 | PyObject *resultobj; | |
13817 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13818 | int arg2 ; | |
13819 | bool result; | |
13820 | PyObject * obj0 = 0 ; | |
13821 | PyObject * obj1 = 0 ; | |
13822 | char *kwnames[] = { | |
13823 | (char *) "self",(char *) "but", NULL | |
13824 | }; | |
13825 | ||
13826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; | |
13827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13829 | arg2 = (int) SWIG_AsInt(obj1); | |
13830 | if (PyErr_Occurred()) SWIG_fail; | |
13831 | { | |
13832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13833 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13834 | ||
13835 | wxPyEndAllowThreads(__tstate); | |
13836 | if (PyErr_Occurred()) SWIG_fail; | |
13837 | } | |
13838 | { | |
13839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13840 | } | |
13841 | return resultobj; | |
13842 | fail: | |
13843 | return NULL; | |
13844 | } | |
13845 | ||
13846 | ||
13847 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13848 | PyObject *resultobj; | |
13849 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13850 | int arg2 ; | |
13851 | bool result; | |
13852 | PyObject * obj0 = 0 ; | |
13853 | PyObject * obj1 = 0 ; | |
13854 | char *kwnames[] = { | |
13855 | (char *) "self",(char *) "but", NULL | |
13856 | }; | |
13857 | ||
13858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
13859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13861 | arg2 = (int) SWIG_AsInt(obj1); | |
13862 | if (PyErr_Occurred()) SWIG_fail; | |
13863 | { | |
13864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13865 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13866 | ||
13867 | wxPyEndAllowThreads(__tstate); | |
13868 | if (PyErr_Occurred()) SWIG_fail; | |
13869 | } | |
13870 | { | |
13871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13872 | } | |
13873 | return resultobj; | |
13874 | fail: | |
13875 | return NULL; | |
13876 | } | |
13877 | ||
13878 | ||
13879 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13880 | PyObject *resultobj; | |
13881 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13882 | int result; | |
13883 | PyObject * obj0 = 0 ; | |
13884 | char *kwnames[] = { | |
13885 | (char *) "self", NULL | |
13886 | }; | |
13887 | ||
13888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
13889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13891 | { | |
13892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13893 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13894 | ||
13895 | wxPyEndAllowThreads(__tstate); | |
13896 | if (PyErr_Occurred()) SWIG_fail; | |
13897 | } | |
13898 | resultobj = SWIG_FromInt((int)result); | |
13899 | return resultobj; | |
13900 | fail: | |
13901 | return NULL; | |
13902 | } | |
13903 | ||
13904 | ||
13905 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13906 | PyObject *resultobj; | |
13907 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13908 | bool result; | |
13909 | PyObject * obj0 = 0 ; | |
13910 | char *kwnames[] = { | |
13911 | (char *) "self", NULL | |
13912 | }; | |
13913 | ||
13914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
13915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13917 | { | |
13918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13919 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13920 | ||
13921 | wxPyEndAllowThreads(__tstate); | |
13922 | if (PyErr_Occurred()) SWIG_fail; | |
13923 | } | |
13924 | { | |
13925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13926 | } | |
13927 | return resultobj; | |
13928 | fail: | |
13929 | return NULL; | |
13930 | } | |
13931 | ||
13932 | ||
13933 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13934 | PyObject *resultobj; | |
13935 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13936 | bool result; | |
13937 | PyObject * obj0 = 0 ; | |
13938 | char *kwnames[] = { | |
13939 | (char *) "self", NULL | |
13940 | }; | |
13941 | ||
13942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
13943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13945 | { | |
13946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13947 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13948 | ||
13949 | wxPyEndAllowThreads(__tstate); | |
13950 | if (PyErr_Occurred()) SWIG_fail; | |
13951 | } | |
13952 | { | |
13953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13954 | } | |
13955 | return resultobj; | |
13956 | fail: | |
13957 | return NULL; | |
13958 | } | |
13959 | ||
13960 | ||
13961 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13962 | PyObject *resultobj; | |
13963 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13964 | bool result; | |
13965 | PyObject * obj0 = 0 ; | |
13966 | char *kwnames[] = { | |
13967 | (char *) "self", NULL | |
13968 | }; | |
13969 | ||
13970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
13971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13973 | { | |
13974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13975 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13976 | ||
13977 | wxPyEndAllowThreads(__tstate); | |
13978 | if (PyErr_Occurred()) SWIG_fail; | |
13979 | } | |
13980 | { | |
13981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13982 | } | |
13983 | return resultobj; | |
13984 | fail: | |
13985 | return NULL; | |
13986 | } | |
13987 | ||
13988 | ||
13989 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13990 | PyObject *resultobj; | |
13991 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13992 | bool result; | |
13993 | PyObject * obj0 = 0 ; | |
13994 | char *kwnames[] = { | |
13995 | (char *) "self", NULL | |
13996 | }; | |
13997 | ||
13998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
13999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14001 | { | |
14002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14003 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
14004 | ||
14005 | wxPyEndAllowThreads(__tstate); | |
14006 | if (PyErr_Occurred()) SWIG_fail; | |
14007 | } | |
14008 | { | |
14009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14010 | } | |
14011 | return resultobj; | |
14012 | fail: | |
14013 | return NULL; | |
14014 | } | |
14015 | ||
14016 | ||
412d302d RD |
14017 | static PyObject *_wrap_MouseEvent_CmdDown(PyObject *self, PyObject *args, PyObject *kwargs) { |
14018 | PyObject *resultobj; | |
14019 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14020 | bool result; | |
14021 | PyObject * obj0 = 0 ; | |
14022 | char *kwnames[] = { | |
14023 | (char *) "self", NULL | |
14024 | }; | |
14025 | ||
14026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail; | |
14027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14029 | { | |
14030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14031 | result = (bool)((wxMouseEvent const *)arg1)->CmdDown(); | |
14032 | ||
14033 | wxPyEndAllowThreads(__tstate); | |
14034 | if (PyErr_Occurred()) SWIG_fail; | |
14035 | } | |
14036 | { | |
14037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14038 | } | |
14039 | return resultobj; | |
14040 | fail: | |
14041 | return NULL; | |
14042 | } | |
14043 | ||
14044 | ||
d55e5bfc RD |
14045 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { |
14046 | PyObject *resultobj; | |
14047 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14048 | bool result; | |
14049 | PyObject * obj0 = 0 ; | |
14050 | char *kwnames[] = { | |
14051 | (char *) "self", NULL | |
14052 | }; | |
14053 | ||
14054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
14055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14057 | { | |
14058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14059 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
14060 | ||
14061 | wxPyEndAllowThreads(__tstate); | |
14062 | if (PyErr_Occurred()) SWIG_fail; | |
14063 | } | |
14064 | { | |
14065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14066 | } | |
14067 | return resultobj; | |
14068 | fail: | |
14069 | return NULL; | |
14070 | } | |
14071 | ||
14072 | ||
14073 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14074 | PyObject *resultobj; | |
14075 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14076 | bool result; | |
14077 | PyObject * obj0 = 0 ; | |
14078 | char *kwnames[] = { | |
14079 | (char *) "self", NULL | |
14080 | }; | |
14081 | ||
14082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
14083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14085 | { | |
14086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14087 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
14088 | ||
14089 | wxPyEndAllowThreads(__tstate); | |
14090 | if (PyErr_Occurred()) SWIG_fail; | |
14091 | } | |
14092 | { | |
14093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14094 | } | |
14095 | return resultobj; | |
14096 | fail: | |
14097 | return NULL; | |
14098 | } | |
14099 | ||
14100 | ||
14101 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14102 | PyObject *resultobj; | |
14103 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14104 | bool result; | |
14105 | PyObject * obj0 = 0 ; | |
14106 | char *kwnames[] = { | |
14107 | (char *) "self", NULL | |
14108 | }; | |
14109 | ||
14110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
14111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14113 | { | |
14114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14115 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
14116 | ||
14117 | wxPyEndAllowThreads(__tstate); | |
14118 | if (PyErr_Occurred()) SWIG_fail; | |
14119 | } | |
14120 | { | |
14121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14122 | } | |
14123 | return resultobj; | |
14124 | fail: | |
14125 | return NULL; | |
14126 | } | |
14127 | ||
14128 | ||
14129 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14130 | PyObject *resultobj; | |
14131 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14132 | bool result; | |
14133 | PyObject * obj0 = 0 ; | |
14134 | char *kwnames[] = { | |
14135 | (char *) "self", NULL | |
14136 | }; | |
14137 | ||
14138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
14139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14141 | { | |
14142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14143 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
14144 | ||
14145 | wxPyEndAllowThreads(__tstate); | |
14146 | if (PyErr_Occurred()) SWIG_fail; | |
14147 | } | |
14148 | { | |
14149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14150 | } | |
14151 | return resultobj; | |
14152 | fail: | |
14153 | return NULL; | |
14154 | } | |
14155 | ||
14156 | ||
14157 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14158 | PyObject *resultobj; | |
14159 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14160 | bool result; | |
14161 | PyObject * obj0 = 0 ; | |
14162 | char *kwnames[] = { | |
14163 | (char *) "self", NULL | |
14164 | }; | |
14165 | ||
14166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
14167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14169 | { | |
14170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14171 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
14172 | ||
14173 | wxPyEndAllowThreads(__tstate); | |
14174 | if (PyErr_Occurred()) SWIG_fail; | |
14175 | } | |
14176 | { | |
14177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14178 | } | |
14179 | return resultobj; | |
14180 | fail: | |
14181 | return NULL; | |
14182 | } | |
14183 | ||
14184 | ||
14185 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14186 | PyObject *resultobj; | |
14187 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14188 | bool result; | |
14189 | PyObject * obj0 = 0 ; | |
14190 | char *kwnames[] = { | |
14191 | (char *) "self", NULL | |
14192 | }; | |
14193 | ||
14194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
14195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14197 | { | |
14198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14199 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14200 | ||
14201 | wxPyEndAllowThreads(__tstate); | |
14202 | if (PyErr_Occurred()) SWIG_fail; | |
14203 | } | |
14204 | { | |
14205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14206 | } | |
14207 | return resultobj; | |
14208 | fail: | |
14209 | return NULL; | |
14210 | } | |
14211 | ||
14212 | ||
14213 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14214 | PyObject *resultobj; | |
14215 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14216 | bool result; | |
14217 | PyObject * obj0 = 0 ; | |
14218 | char *kwnames[] = { | |
14219 | (char *) "self", NULL | |
14220 | }; | |
14221 | ||
14222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
14223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14225 | { | |
14226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14227 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14228 | ||
14229 | wxPyEndAllowThreads(__tstate); | |
14230 | if (PyErr_Occurred()) SWIG_fail; | |
14231 | } | |
14232 | { | |
14233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14234 | } | |
14235 | return resultobj; | |
14236 | fail: | |
14237 | return NULL; | |
14238 | } | |
14239 | ||
14240 | ||
14241 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14242 | PyObject *resultobj; | |
14243 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14244 | bool result; | |
14245 | PyObject * obj0 = 0 ; | |
14246 | char *kwnames[] = { | |
14247 | (char *) "self", NULL | |
14248 | }; | |
14249 | ||
14250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
14251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14253 | { | |
14254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14255 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14256 | ||
14257 | wxPyEndAllowThreads(__tstate); | |
14258 | if (PyErr_Occurred()) SWIG_fail; | |
14259 | } | |
14260 | { | |
14261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14262 | } | |
14263 | return resultobj; | |
14264 | fail: | |
14265 | return NULL; | |
14266 | } | |
14267 | ||
14268 | ||
14269 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14270 | PyObject *resultobj; | |
14271 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14272 | bool result; | |
14273 | PyObject * obj0 = 0 ; | |
14274 | char *kwnames[] = { | |
14275 | (char *) "self", NULL | |
14276 | }; | |
14277 | ||
14278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
14279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14281 | { | |
14282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14283 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14284 | ||
14285 | wxPyEndAllowThreads(__tstate); | |
14286 | if (PyErr_Occurred()) SWIG_fail; | |
14287 | } | |
14288 | { | |
14289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14290 | } | |
14291 | return resultobj; | |
14292 | fail: | |
14293 | return NULL; | |
14294 | } | |
14295 | ||
14296 | ||
14297 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14298 | PyObject *resultobj; | |
14299 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14300 | bool result; | |
14301 | PyObject * obj0 = 0 ; | |
14302 | char *kwnames[] = { | |
14303 | (char *) "self", NULL | |
14304 | }; | |
14305 | ||
14306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
14307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14309 | { | |
14310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14311 | result = (bool)(arg1)->LeftIsDown(); | |
14312 | ||
14313 | wxPyEndAllowThreads(__tstate); | |
14314 | if (PyErr_Occurred()) SWIG_fail; | |
14315 | } | |
14316 | { | |
14317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14318 | } | |
14319 | return resultobj; | |
14320 | fail: | |
14321 | return NULL; | |
14322 | } | |
14323 | ||
14324 | ||
14325 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14326 | PyObject *resultobj; | |
14327 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14328 | bool result; | |
14329 | PyObject * obj0 = 0 ; | |
14330 | char *kwnames[] = { | |
14331 | (char *) "self", NULL | |
14332 | }; | |
14333 | ||
14334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
14335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14337 | { | |
14338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14339 | result = (bool)(arg1)->MiddleIsDown(); | |
14340 | ||
14341 | wxPyEndAllowThreads(__tstate); | |
14342 | if (PyErr_Occurred()) SWIG_fail; | |
14343 | } | |
14344 | { | |
14345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14346 | } | |
14347 | return resultobj; | |
14348 | fail: | |
14349 | return NULL; | |
14350 | } | |
14351 | ||
14352 | ||
14353 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14354 | PyObject *resultobj; | |
14355 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14356 | bool result; | |
14357 | PyObject * obj0 = 0 ; | |
14358 | char *kwnames[] = { | |
14359 | (char *) "self", NULL | |
14360 | }; | |
14361 | ||
14362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
14363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14365 | { | |
14366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14367 | result = (bool)(arg1)->RightIsDown(); | |
14368 | ||
14369 | wxPyEndAllowThreads(__tstate); | |
14370 | if (PyErr_Occurred()) SWIG_fail; | |
14371 | } | |
14372 | { | |
14373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14374 | } | |
14375 | return resultobj; | |
14376 | fail: | |
14377 | return NULL; | |
14378 | } | |
14379 | ||
14380 | ||
14381 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14382 | PyObject *resultobj; | |
14383 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14384 | bool result; | |
14385 | PyObject * obj0 = 0 ; | |
14386 | char *kwnames[] = { | |
14387 | (char *) "self", NULL | |
14388 | }; | |
14389 | ||
14390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
14391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14393 | { | |
14394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14395 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14396 | ||
14397 | wxPyEndAllowThreads(__tstate); | |
14398 | if (PyErr_Occurred()) SWIG_fail; | |
14399 | } | |
14400 | { | |
14401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14402 | } | |
14403 | return resultobj; | |
14404 | fail: | |
14405 | return NULL; | |
14406 | } | |
14407 | ||
14408 | ||
14409 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14410 | PyObject *resultobj; | |
14411 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14412 | bool result; | |
14413 | PyObject * obj0 = 0 ; | |
14414 | char *kwnames[] = { | |
14415 | (char *) "self", NULL | |
14416 | }; | |
14417 | ||
14418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
14419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14421 | { | |
14422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14423 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14424 | ||
14425 | wxPyEndAllowThreads(__tstate); | |
14426 | if (PyErr_Occurred()) SWIG_fail; | |
14427 | } | |
14428 | { | |
14429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14430 | } | |
14431 | return resultobj; | |
14432 | fail: | |
14433 | return NULL; | |
14434 | } | |
14435 | ||
14436 | ||
14437 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14438 | PyObject *resultobj; | |
14439 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14440 | bool result; | |
14441 | PyObject * obj0 = 0 ; | |
14442 | char *kwnames[] = { | |
14443 | (char *) "self", NULL | |
14444 | }; | |
14445 | ||
14446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
14447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14449 | { | |
14450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14451 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14452 | ||
14453 | wxPyEndAllowThreads(__tstate); | |
14454 | if (PyErr_Occurred()) SWIG_fail; | |
14455 | } | |
14456 | { | |
14457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14458 | } | |
14459 | return resultobj; | |
14460 | fail: | |
14461 | return NULL; | |
14462 | } | |
14463 | ||
14464 | ||
14465 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14466 | PyObject *resultobj; | |
14467 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14468 | bool result; | |
14469 | PyObject * obj0 = 0 ; | |
14470 | char *kwnames[] = { | |
14471 | (char *) "self", NULL | |
14472 | }; | |
14473 | ||
14474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
14475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14477 | { | |
14478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14479 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14480 | ||
14481 | wxPyEndAllowThreads(__tstate); | |
14482 | if (PyErr_Occurred()) SWIG_fail; | |
14483 | } | |
14484 | { | |
14485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14486 | } | |
14487 | return resultobj; | |
14488 | fail: | |
14489 | return NULL; | |
14490 | } | |
14491 | ||
14492 | ||
14493 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14494 | PyObject *resultobj; | |
14495 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14496 | wxPoint result; | |
14497 | PyObject * obj0 = 0 ; | |
14498 | char *kwnames[] = { | |
14499 | (char *) "self", NULL | |
14500 | }; | |
14501 | ||
14502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14505 | { | |
14506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14507 | result = (arg1)->GetPosition(); | |
14508 | ||
14509 | wxPyEndAllowThreads(__tstate); | |
14510 | if (PyErr_Occurred()) SWIG_fail; | |
14511 | } | |
14512 | { | |
14513 | wxPoint * resultptr; | |
14514 | resultptr = new wxPoint((wxPoint &) result); | |
14515 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14516 | } | |
14517 | return resultobj; | |
14518 | fail: | |
14519 | return NULL; | |
14520 | } | |
14521 | ||
14522 | ||
14523 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14524 | PyObject *resultobj; | |
14525 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14526 | long *arg2 = (long *) 0 ; | |
14527 | long *arg3 = (long *) 0 ; | |
14528 | long temp2 ; | |
14529 | long temp3 ; | |
14530 | PyObject * obj0 = 0 ; | |
14531 | char *kwnames[] = { | |
14532 | (char *) "self", NULL | |
14533 | }; | |
14534 | ||
14535 | arg2 = &temp2; | |
14536 | arg3 = &temp3; | |
14537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
14538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14540 | { | |
14541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14542 | (arg1)->GetPosition(arg2,arg3); | |
14543 | ||
14544 | wxPyEndAllowThreads(__tstate); | |
14545 | if (PyErr_Occurred()) SWIG_fail; | |
14546 | } | |
14547 | Py_INCREF(Py_None); resultobj = Py_None; | |
14548 | { | |
14549 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14550 | resultobj = t_output_helper(resultobj,o); | |
14551 | } | |
14552 | { | |
14553 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14554 | resultobj = t_output_helper(resultobj,o); | |
14555 | } | |
14556 | return resultobj; | |
14557 | fail: | |
14558 | return NULL; | |
14559 | } | |
14560 | ||
14561 | ||
14562 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14563 | PyObject *resultobj; | |
14564 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14565 | wxDC *arg2 = 0 ; | |
14566 | wxPoint result; | |
14567 | PyObject * obj0 = 0 ; | |
14568 | PyObject * obj1 = 0 ; | |
14569 | char *kwnames[] = { | |
14570 | (char *) "self",(char *) "dc", NULL | |
14571 | }; | |
14572 | ||
14573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
14574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14576 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14577 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14578 | SWIG_fail; | |
14579 | if (arg2 == NULL) { | |
14580 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14581 | SWIG_fail; | |
14582 | } | |
14583 | { | |
14584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14585 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14586 | ||
14587 | wxPyEndAllowThreads(__tstate); | |
14588 | if (PyErr_Occurred()) SWIG_fail; | |
14589 | } | |
14590 | { | |
14591 | wxPoint * resultptr; | |
14592 | resultptr = new wxPoint((wxPoint &) result); | |
14593 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14594 | } | |
14595 | return resultobj; | |
14596 | fail: | |
14597 | return NULL; | |
14598 | } | |
14599 | ||
14600 | ||
14601 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14602 | PyObject *resultobj; | |
14603 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14604 | int result; | |
14605 | PyObject * obj0 = 0 ; | |
14606 | char *kwnames[] = { | |
14607 | (char *) "self", NULL | |
14608 | }; | |
14609 | ||
14610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
14611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14613 | { | |
14614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14615 | result = (int)((wxMouseEvent const *)arg1)->GetX(); | |
14616 | ||
14617 | wxPyEndAllowThreads(__tstate); | |
14618 | if (PyErr_Occurred()) SWIG_fail; | |
14619 | } | |
14620 | resultobj = SWIG_FromInt((int)result); | |
14621 | return resultobj; | |
14622 | fail: | |
14623 | return NULL; | |
14624 | } | |
14625 | ||
14626 | ||
14627 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14628 | PyObject *resultobj; | |
14629 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14630 | int result; | |
14631 | PyObject * obj0 = 0 ; | |
14632 | char *kwnames[] = { | |
14633 | (char *) "self", NULL | |
14634 | }; | |
14635 | ||
14636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
14637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14639 | { | |
14640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14641 | result = (int)((wxMouseEvent const *)arg1)->GetY(); | |
14642 | ||
14643 | wxPyEndAllowThreads(__tstate); | |
14644 | if (PyErr_Occurred()) SWIG_fail; | |
14645 | } | |
14646 | resultobj = SWIG_FromInt((int)result); | |
14647 | return resultobj; | |
14648 | fail: | |
14649 | return NULL; | |
14650 | } | |
14651 | ||
14652 | ||
14653 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14654 | PyObject *resultobj; | |
14655 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14656 | int result; | |
14657 | PyObject * obj0 = 0 ; | |
14658 | char *kwnames[] = { | |
14659 | (char *) "self", NULL | |
14660 | }; | |
14661 | ||
14662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
14663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14665 | { | |
14666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14667 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14668 | ||
14669 | wxPyEndAllowThreads(__tstate); | |
14670 | if (PyErr_Occurred()) SWIG_fail; | |
14671 | } | |
14672 | resultobj = SWIG_FromInt((int)result); | |
14673 | return resultobj; | |
14674 | fail: | |
14675 | return NULL; | |
14676 | } | |
14677 | ||
14678 | ||
14679 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14680 | PyObject *resultobj; | |
14681 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14682 | int result; | |
14683 | PyObject * obj0 = 0 ; | |
14684 | char *kwnames[] = { | |
14685 | (char *) "self", NULL | |
14686 | }; | |
14687 | ||
14688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
14689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14691 | { | |
14692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14693 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14694 | ||
14695 | wxPyEndAllowThreads(__tstate); | |
14696 | if (PyErr_Occurred()) SWIG_fail; | |
14697 | } | |
14698 | resultobj = SWIG_FromInt((int)result); | |
14699 | return resultobj; | |
14700 | fail: | |
14701 | return NULL; | |
14702 | } | |
14703 | ||
14704 | ||
14705 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14706 | PyObject *resultobj; | |
14707 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14708 | int result; | |
14709 | PyObject * obj0 = 0 ; | |
14710 | char *kwnames[] = { | |
14711 | (char *) "self", NULL | |
14712 | }; | |
14713 | ||
14714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
14715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14717 | { | |
14718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14719 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14720 | ||
14721 | wxPyEndAllowThreads(__tstate); | |
14722 | if (PyErr_Occurred()) SWIG_fail; | |
14723 | } | |
14724 | resultobj = SWIG_FromInt((int)result); | |
14725 | return resultobj; | |
14726 | fail: | |
14727 | return NULL; | |
14728 | } | |
14729 | ||
14730 | ||
14731 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14732 | PyObject *resultobj; | |
14733 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14734 | bool result; | |
14735 | PyObject * obj0 = 0 ; | |
14736 | char *kwnames[] = { | |
14737 | (char *) "self", NULL | |
14738 | }; | |
14739 | ||
14740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
14741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14743 | { | |
14744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14745 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14746 | ||
14747 | wxPyEndAllowThreads(__tstate); | |
14748 | if (PyErr_Occurred()) SWIG_fail; | |
14749 | } | |
14750 | { | |
14751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14752 | } | |
14753 | return resultobj; | |
14754 | fail: | |
14755 | return NULL; | |
14756 | } | |
14757 | ||
14758 | ||
14759 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14760 | PyObject *resultobj; | |
14761 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14762 | int arg2 ; | |
14763 | PyObject * obj0 = 0 ; | |
14764 | PyObject * obj1 = 0 ; | |
14765 | char *kwnames[] = { | |
14766 | (char *) "self",(char *) "m_x", NULL | |
14767 | }; | |
14768 | ||
14769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
14770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14772 | arg2 = (int) SWIG_AsInt(obj1); | |
14773 | if (PyErr_Occurred()) SWIG_fail; | |
14774 | if (arg1) (arg1)->m_x = arg2; | |
14775 | ||
14776 | Py_INCREF(Py_None); resultobj = Py_None; | |
14777 | return resultobj; | |
14778 | fail: | |
14779 | return NULL; | |
14780 | } | |
14781 | ||
14782 | ||
14783 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14784 | PyObject *resultobj; | |
14785 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14786 | int result; | |
14787 | PyObject * obj0 = 0 ; | |
14788 | char *kwnames[] = { | |
14789 | (char *) "self", NULL | |
14790 | }; | |
14791 | ||
14792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
14793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14795 | result = (int) ((arg1)->m_x); | |
14796 | ||
14797 | resultobj = SWIG_FromInt((int)result); | |
14798 | return resultobj; | |
14799 | fail: | |
14800 | return NULL; | |
14801 | } | |
14802 | ||
14803 | ||
14804 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14805 | PyObject *resultobj; | |
14806 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14807 | int arg2 ; | |
14808 | PyObject * obj0 = 0 ; | |
14809 | PyObject * obj1 = 0 ; | |
14810 | char *kwnames[] = { | |
14811 | (char *) "self",(char *) "m_y", NULL | |
14812 | }; | |
14813 | ||
14814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
14815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14817 | arg2 = (int) SWIG_AsInt(obj1); | |
14818 | if (PyErr_Occurred()) SWIG_fail; | |
14819 | if (arg1) (arg1)->m_y = arg2; | |
14820 | ||
14821 | Py_INCREF(Py_None); resultobj = Py_None; | |
14822 | return resultobj; | |
14823 | fail: | |
14824 | return NULL; | |
14825 | } | |
14826 | ||
14827 | ||
14828 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14829 | PyObject *resultobj; | |
14830 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14831 | int result; | |
14832 | PyObject * obj0 = 0 ; | |
14833 | char *kwnames[] = { | |
14834 | (char *) "self", NULL | |
14835 | }; | |
14836 | ||
14837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
14838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14840 | result = (int) ((arg1)->m_y); | |
14841 | ||
14842 | resultobj = SWIG_FromInt((int)result); | |
14843 | return resultobj; | |
14844 | fail: | |
14845 | return NULL; | |
14846 | } | |
14847 | ||
14848 | ||
14849 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14850 | PyObject *resultobj; | |
14851 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14852 | bool arg2 ; | |
14853 | PyObject * obj0 = 0 ; | |
14854 | PyObject * obj1 = 0 ; | |
14855 | char *kwnames[] = { | |
14856 | (char *) "self",(char *) "m_leftDown", NULL | |
14857 | }; | |
14858 | ||
14859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14862 | arg2 = (bool) SWIG_AsBool(obj1); | |
14863 | if (PyErr_Occurred()) SWIG_fail; | |
14864 | if (arg1) (arg1)->m_leftDown = arg2; | |
14865 | ||
14866 | Py_INCREF(Py_None); resultobj = Py_None; | |
14867 | return resultobj; | |
14868 | fail: | |
14869 | return NULL; | |
14870 | } | |
14871 | ||
14872 | ||
14873 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14874 | PyObject *resultobj; | |
14875 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14876 | bool result; | |
14877 | PyObject * obj0 = 0 ; | |
14878 | char *kwnames[] = { | |
14879 | (char *) "self", NULL | |
14880 | }; | |
14881 | ||
14882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
14883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14885 | result = (bool) ((arg1)->m_leftDown); | |
14886 | ||
14887 | { | |
14888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14889 | } | |
14890 | return resultobj; | |
14891 | fail: | |
14892 | return NULL; | |
14893 | } | |
14894 | ||
14895 | ||
14896 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14897 | PyObject *resultobj; | |
14898 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14899 | bool arg2 ; | |
14900 | PyObject * obj0 = 0 ; | |
14901 | PyObject * obj1 = 0 ; | |
14902 | char *kwnames[] = { | |
14903 | (char *) "self",(char *) "m_middleDown", NULL | |
14904 | }; | |
14905 | ||
14906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14909 | arg2 = (bool) SWIG_AsBool(obj1); | |
14910 | if (PyErr_Occurred()) SWIG_fail; | |
14911 | if (arg1) (arg1)->m_middleDown = arg2; | |
14912 | ||
14913 | Py_INCREF(Py_None); resultobj = Py_None; | |
14914 | return resultobj; | |
14915 | fail: | |
14916 | return NULL; | |
14917 | } | |
14918 | ||
14919 | ||
14920 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14921 | PyObject *resultobj; | |
14922 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14923 | bool result; | |
14924 | PyObject * obj0 = 0 ; | |
14925 | char *kwnames[] = { | |
14926 | (char *) "self", NULL | |
14927 | }; | |
14928 | ||
14929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
14930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14932 | result = (bool) ((arg1)->m_middleDown); | |
14933 | ||
14934 | { | |
14935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14936 | } | |
14937 | return resultobj; | |
14938 | fail: | |
14939 | return NULL; | |
14940 | } | |
14941 | ||
14942 | ||
14943 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14944 | PyObject *resultobj; | |
14945 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14946 | bool arg2 ; | |
14947 | PyObject * obj0 = 0 ; | |
14948 | PyObject * obj1 = 0 ; | |
14949 | char *kwnames[] = { | |
14950 | (char *) "self",(char *) "m_rightDown", NULL | |
14951 | }; | |
14952 | ||
14953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14956 | arg2 = (bool) SWIG_AsBool(obj1); | |
14957 | if (PyErr_Occurred()) SWIG_fail; | |
14958 | if (arg1) (arg1)->m_rightDown = arg2; | |
14959 | ||
14960 | Py_INCREF(Py_None); resultobj = Py_None; | |
14961 | return resultobj; | |
14962 | fail: | |
14963 | return NULL; | |
14964 | } | |
14965 | ||
14966 | ||
14967 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14968 | PyObject *resultobj; | |
14969 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14970 | bool result; | |
14971 | PyObject * obj0 = 0 ; | |
14972 | char *kwnames[] = { | |
14973 | (char *) "self", NULL | |
14974 | }; | |
14975 | ||
14976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
14977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14979 | result = (bool) ((arg1)->m_rightDown); | |
14980 | ||
14981 | { | |
14982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14983 | } | |
14984 | return resultobj; | |
14985 | fail: | |
14986 | return NULL; | |
14987 | } | |
14988 | ||
14989 | ||
14990 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14991 | PyObject *resultobj; | |
14992 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14993 | bool arg2 ; | |
14994 | PyObject * obj0 = 0 ; | |
14995 | PyObject * obj1 = 0 ; | |
14996 | char *kwnames[] = { | |
14997 | (char *) "self",(char *) "m_controlDown", NULL | |
14998 | }; | |
14999 | ||
15000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15003 | arg2 = (bool) SWIG_AsBool(obj1); | |
15004 | if (PyErr_Occurred()) SWIG_fail; | |
15005 | if (arg1) (arg1)->m_controlDown = arg2; | |
15006 | ||
15007 | Py_INCREF(Py_None); resultobj = Py_None; | |
15008 | return resultobj; | |
15009 | fail: | |
15010 | return NULL; | |
15011 | } | |
15012 | ||
15013 | ||
15014 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15015 | PyObject *resultobj; | |
15016 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15017 | bool result; | |
15018 | PyObject * obj0 = 0 ; | |
15019 | char *kwnames[] = { | |
15020 | (char *) "self", NULL | |
15021 | }; | |
15022 | ||
15023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15026 | result = (bool) ((arg1)->m_controlDown); | |
15027 | ||
15028 | { | |
15029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15030 | } | |
15031 | return resultobj; | |
15032 | fail: | |
15033 | return NULL; | |
15034 | } | |
15035 | ||
15036 | ||
15037 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15038 | PyObject *resultobj; | |
15039 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15040 | bool arg2 ; | |
15041 | PyObject * obj0 = 0 ; | |
15042 | PyObject * obj1 = 0 ; | |
15043 | char *kwnames[] = { | |
15044 | (char *) "self",(char *) "m_shiftDown", NULL | |
15045 | }; | |
15046 | ||
15047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15050 | arg2 = (bool) SWIG_AsBool(obj1); | |
15051 | if (PyErr_Occurred()) SWIG_fail; | |
15052 | if (arg1) (arg1)->m_shiftDown = arg2; | |
15053 | ||
15054 | Py_INCREF(Py_None); resultobj = Py_None; | |
15055 | return resultobj; | |
15056 | fail: | |
15057 | return NULL; | |
15058 | } | |
15059 | ||
15060 | ||
15061 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15062 | PyObject *resultobj; | |
15063 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15064 | bool result; | |
15065 | PyObject * obj0 = 0 ; | |
15066 | char *kwnames[] = { | |
15067 | (char *) "self", NULL | |
15068 | }; | |
15069 | ||
15070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15073 | result = (bool) ((arg1)->m_shiftDown); | |
15074 | ||
15075 | { | |
15076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15077 | } | |
15078 | return resultobj; | |
15079 | fail: | |
15080 | return NULL; | |
15081 | } | |
15082 | ||
15083 | ||
15084 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15085 | PyObject *resultobj; | |
15086 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15087 | bool arg2 ; | |
15088 | PyObject * obj0 = 0 ; | |
15089 | PyObject * obj1 = 0 ; | |
15090 | char *kwnames[] = { | |
15091 | (char *) "self",(char *) "m_altDown", NULL | |
15092 | }; | |
15093 | ||
15094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15097 | arg2 = (bool) SWIG_AsBool(obj1); | |
15098 | if (PyErr_Occurred()) SWIG_fail; | |
15099 | if (arg1) (arg1)->m_altDown = arg2; | |
15100 | ||
15101 | Py_INCREF(Py_None); resultobj = Py_None; | |
15102 | return resultobj; | |
15103 | fail: | |
15104 | return NULL; | |
15105 | } | |
15106 | ||
15107 | ||
15108 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15109 | PyObject *resultobj; | |
15110 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15111 | bool result; | |
15112 | PyObject * obj0 = 0 ; | |
15113 | char *kwnames[] = { | |
15114 | (char *) "self", NULL | |
15115 | }; | |
15116 | ||
15117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15120 | result = (bool) ((arg1)->m_altDown); | |
15121 | ||
15122 | { | |
15123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15124 | } | |
15125 | return resultobj; | |
15126 | fail: | |
15127 | return NULL; | |
15128 | } | |
15129 | ||
15130 | ||
15131 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15132 | PyObject *resultobj; | |
15133 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15134 | bool arg2 ; | |
15135 | PyObject * obj0 = 0 ; | |
15136 | PyObject * obj1 = 0 ; | |
15137 | char *kwnames[] = { | |
15138 | (char *) "self",(char *) "m_metaDown", NULL | |
15139 | }; | |
15140 | ||
15141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15144 | arg2 = (bool) SWIG_AsBool(obj1); | |
15145 | if (PyErr_Occurred()) SWIG_fail; | |
15146 | if (arg1) (arg1)->m_metaDown = arg2; | |
15147 | ||
15148 | Py_INCREF(Py_None); resultobj = Py_None; | |
15149 | return resultobj; | |
15150 | fail: | |
15151 | return NULL; | |
15152 | } | |
15153 | ||
15154 | ||
15155 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15156 | PyObject *resultobj; | |
15157 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15158 | bool result; | |
15159 | PyObject * obj0 = 0 ; | |
15160 | char *kwnames[] = { | |
15161 | (char *) "self", NULL | |
15162 | }; | |
15163 | ||
15164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15167 | result = (bool) ((arg1)->m_metaDown); | |
15168 | ||
15169 | { | |
15170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15171 | } | |
15172 | return resultobj; | |
15173 | fail: | |
15174 | return NULL; | |
15175 | } | |
15176 | ||
15177 | ||
15178 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15179 | PyObject *resultobj; | |
15180 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15181 | int arg2 ; | |
15182 | PyObject * obj0 = 0 ; | |
15183 | PyObject * obj1 = 0 ; | |
15184 | char *kwnames[] = { | |
15185 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15186 | }; | |
15187 | ||
15188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; | |
15189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15191 | arg2 = (int) SWIG_AsInt(obj1); | |
15192 | if (PyErr_Occurred()) SWIG_fail; | |
15193 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
15194 | ||
15195 | Py_INCREF(Py_None); resultobj = Py_None; | |
15196 | return resultobj; | |
15197 | fail: | |
15198 | return NULL; | |
15199 | } | |
15200 | ||
15201 | ||
15202 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15203 | PyObject *resultobj; | |
15204 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15205 | int result; | |
15206 | PyObject * obj0 = 0 ; | |
15207 | char *kwnames[] = { | |
15208 | (char *) "self", NULL | |
15209 | }; | |
15210 | ||
15211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15214 | result = (int) ((arg1)->m_wheelRotation); | |
15215 | ||
15216 | resultobj = SWIG_FromInt((int)result); | |
15217 | return resultobj; | |
15218 | fail: | |
15219 | return NULL; | |
15220 | } | |
15221 | ||
15222 | ||
15223 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15224 | PyObject *resultobj; | |
15225 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15226 | int arg2 ; | |
15227 | PyObject * obj0 = 0 ; | |
15228 | PyObject * obj1 = 0 ; | |
15229 | char *kwnames[] = { | |
15230 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15231 | }; | |
15232 | ||
15233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; | |
15234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15236 | arg2 = (int) SWIG_AsInt(obj1); | |
15237 | if (PyErr_Occurred()) SWIG_fail; | |
15238 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
15239 | ||
15240 | Py_INCREF(Py_None); resultobj = Py_None; | |
15241 | return resultobj; | |
15242 | fail: | |
15243 | return NULL; | |
15244 | } | |
15245 | ||
15246 | ||
15247 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15248 | PyObject *resultobj; | |
15249 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15250 | int result; | |
15251 | PyObject * obj0 = 0 ; | |
15252 | char *kwnames[] = { | |
15253 | (char *) "self", NULL | |
15254 | }; | |
15255 | ||
15256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15259 | result = (int) ((arg1)->m_wheelDelta); | |
15260 | ||
15261 | resultobj = SWIG_FromInt((int)result); | |
15262 | return resultobj; | |
15263 | fail: | |
15264 | return NULL; | |
15265 | } | |
15266 | ||
15267 | ||
15268 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15269 | PyObject *resultobj; | |
15270 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15271 | int arg2 ; | |
15272 | PyObject * obj0 = 0 ; | |
15273 | PyObject * obj1 = 0 ; | |
15274 | char *kwnames[] = { | |
15275 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15276 | }; | |
15277 | ||
15278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; | |
15279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15281 | arg2 = (int) SWIG_AsInt(obj1); | |
15282 | if (PyErr_Occurred()) SWIG_fail; | |
15283 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
15284 | ||
15285 | Py_INCREF(Py_None); resultobj = Py_None; | |
15286 | return resultobj; | |
15287 | fail: | |
15288 | return NULL; | |
15289 | } | |
15290 | ||
15291 | ||
15292 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15293 | PyObject *resultobj; | |
15294 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15295 | int result; | |
15296 | PyObject * obj0 = 0 ; | |
15297 | char *kwnames[] = { | |
15298 | (char *) "self", NULL | |
15299 | }; | |
15300 | ||
15301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15304 | result = (int) ((arg1)->m_linesPerAction); | |
15305 | ||
15306 | resultobj = SWIG_FromInt((int)result); | |
15307 | return resultobj; | |
15308 | fail: | |
15309 | return NULL; | |
15310 | } | |
15311 | ||
15312 | ||
15313 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
15314 | PyObject *obj; | |
15315 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15316 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15317 | Py_INCREF(obj); | |
15318 | return Py_BuildValue((char *)""); | |
15319 | } | |
15320 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15321 | PyObject *resultobj; | |
15322 | int arg1 = (int) 0 ; | |
15323 | int arg2 = (int) 0 ; | |
15324 | wxSetCursorEvent *result; | |
15325 | PyObject * obj0 = 0 ; | |
15326 | PyObject * obj1 = 0 ; | |
15327 | char *kwnames[] = { | |
15328 | (char *) "x",(char *) "y", NULL | |
15329 | }; | |
15330 | ||
15331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; | |
15332 | if (obj0) { | |
15333 | arg1 = (int) SWIG_AsInt(obj0); | |
15334 | if (PyErr_Occurred()) SWIG_fail; | |
15335 | } | |
15336 | if (obj1) { | |
15337 | arg2 = (int) SWIG_AsInt(obj1); | |
15338 | if (PyErr_Occurred()) SWIG_fail; | |
15339 | } | |
15340 | { | |
15341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15342 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15343 | ||
15344 | wxPyEndAllowThreads(__tstate); | |
15345 | if (PyErr_Occurred()) SWIG_fail; | |
15346 | } | |
15347 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); | |
15348 | return resultobj; | |
15349 | fail: | |
15350 | return NULL; | |
15351 | } | |
15352 | ||
15353 | ||
15354 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15355 | PyObject *resultobj; | |
15356 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15357 | int result; | |
15358 | PyObject * obj0 = 0 ; | |
15359 | char *kwnames[] = { | |
15360 | (char *) "self", NULL | |
15361 | }; | |
15362 | ||
15363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15366 | { | |
15367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15368 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); | |
15369 | ||
15370 | wxPyEndAllowThreads(__tstate); | |
15371 | if (PyErr_Occurred()) SWIG_fail; | |
15372 | } | |
15373 | resultobj = SWIG_FromInt((int)result); | |
15374 | return resultobj; | |
15375 | fail: | |
15376 | return NULL; | |
15377 | } | |
15378 | ||
15379 | ||
15380 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15381 | PyObject *resultobj; | |
15382 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15383 | int result; | |
15384 | PyObject * obj0 = 0 ; | |
15385 | char *kwnames[] = { | |
15386 | (char *) "self", NULL | |
15387 | }; | |
15388 | ||
15389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15392 | { | |
15393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15394 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); | |
15395 | ||
15396 | wxPyEndAllowThreads(__tstate); | |
15397 | if (PyErr_Occurred()) SWIG_fail; | |
15398 | } | |
15399 | resultobj = SWIG_FromInt((int)result); | |
15400 | return resultobj; | |
15401 | fail: | |
15402 | return NULL; | |
15403 | } | |
15404 | ||
15405 | ||
15406 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15407 | PyObject *resultobj; | |
15408 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15409 | wxCursor *arg2 = 0 ; | |
15410 | PyObject * obj0 = 0 ; | |
15411 | PyObject * obj1 = 0 ; | |
15412 | char *kwnames[] = { | |
15413 | (char *) "self",(char *) "cursor", NULL | |
15414 | }; | |
15415 | ||
15416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15419 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15420 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15421 | SWIG_fail; | |
15422 | if (arg2 == NULL) { | |
15423 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15424 | SWIG_fail; | |
15425 | } | |
15426 | { | |
15427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15428 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15429 | ||
15430 | wxPyEndAllowThreads(__tstate); | |
15431 | if (PyErr_Occurred()) SWIG_fail; | |
15432 | } | |
15433 | Py_INCREF(Py_None); resultobj = Py_None; | |
15434 | return resultobj; | |
15435 | fail: | |
15436 | return NULL; | |
15437 | } | |
15438 | ||
15439 | ||
15440 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15441 | PyObject *resultobj; | |
15442 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15443 | wxCursor *result; | |
15444 | PyObject * obj0 = 0 ; | |
15445 | char *kwnames[] = { | |
15446 | (char *) "self", NULL | |
15447 | }; | |
15448 | ||
15449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15452 | { | |
15453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15454 | { | |
15455 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15456 | result = (wxCursor *) &_result_ref; | |
15457 | } | |
15458 | ||
15459 | wxPyEndAllowThreads(__tstate); | |
15460 | if (PyErr_Occurred()) SWIG_fail; | |
15461 | } | |
15462 | { | |
15463 | wxCursor* resultptr = new wxCursor(*result); | |
15464 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15465 | } | |
15466 | return resultobj; | |
15467 | fail: | |
15468 | return NULL; | |
15469 | } | |
15470 | ||
15471 | ||
15472 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15473 | PyObject *resultobj; | |
15474 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15475 | bool result; | |
15476 | PyObject * obj0 = 0 ; | |
15477 | char *kwnames[] = { | |
15478 | (char *) "self", NULL | |
15479 | }; | |
15480 | ||
15481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15484 | { | |
15485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15486 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15487 | ||
15488 | wxPyEndAllowThreads(__tstate); | |
15489 | if (PyErr_Occurred()) SWIG_fail; | |
15490 | } | |
15491 | { | |
15492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15493 | } | |
15494 | return resultobj; | |
15495 | fail: | |
15496 | return NULL; | |
15497 | } | |
15498 | ||
15499 | ||
15500 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
15501 | PyObject *obj; | |
15502 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15503 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15504 | Py_INCREF(obj); | |
15505 | return Py_BuildValue((char *)""); | |
15506 | } | |
15507 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15508 | PyObject *resultobj; | |
15509 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15510 | wxKeyEvent *result; | |
15511 | PyObject * obj0 = 0 ; | |
15512 | char *kwnames[] = { | |
15513 | (char *) "keyType", NULL | |
15514 | }; | |
15515 | ||
15516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; | |
15517 | if (obj0) { | |
15518 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
15519 | if (PyErr_Occurred()) SWIG_fail; | |
15520 | } | |
15521 | { | |
15522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15523 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15524 | ||
15525 | wxPyEndAllowThreads(__tstate); | |
15526 | if (PyErr_Occurred()) SWIG_fail; | |
15527 | } | |
15528 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); | |
15529 | return resultobj; | |
15530 | fail: | |
15531 | return NULL; | |
15532 | } | |
15533 | ||
15534 | ||
15535 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15536 | PyObject *resultobj; | |
15537 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15538 | bool result; | |
15539 | PyObject * obj0 = 0 ; | |
15540 | char *kwnames[] = { | |
15541 | (char *) "self", NULL | |
15542 | }; | |
15543 | ||
15544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15547 | { | |
15548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15549 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15550 | ||
15551 | wxPyEndAllowThreads(__tstate); | |
15552 | if (PyErr_Occurred()) SWIG_fail; | |
15553 | } | |
15554 | { | |
15555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15556 | } | |
15557 | return resultobj; | |
15558 | fail: | |
15559 | return NULL; | |
15560 | } | |
15561 | ||
15562 | ||
15563 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15564 | PyObject *resultobj; | |
15565 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15566 | bool result; | |
15567 | PyObject * obj0 = 0 ; | |
15568 | char *kwnames[] = { | |
15569 | (char *) "self", NULL | |
15570 | }; | |
15571 | ||
15572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15575 | { | |
15576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15577 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15578 | ||
15579 | wxPyEndAllowThreads(__tstate); | |
15580 | if (PyErr_Occurred()) SWIG_fail; | |
15581 | } | |
15582 | { | |
15583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15584 | } | |
15585 | return resultobj; | |
15586 | fail: | |
15587 | return NULL; | |
15588 | } | |
15589 | ||
15590 | ||
15591 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15592 | PyObject *resultobj; | |
15593 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15594 | bool result; | |
15595 | PyObject * obj0 = 0 ; | |
15596 | char *kwnames[] = { | |
15597 | (char *) "self", NULL | |
15598 | }; | |
15599 | ||
15600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
15601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15603 | { | |
15604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15605 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15606 | ||
15607 | wxPyEndAllowThreads(__tstate); | |
15608 | if (PyErr_Occurred()) SWIG_fail; | |
15609 | } | |
15610 | { | |
15611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15612 | } | |
15613 | return resultobj; | |
15614 | fail: | |
15615 | return NULL; | |
15616 | } | |
15617 | ||
15618 | ||
15619 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15620 | PyObject *resultobj; | |
15621 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15622 | bool result; | |
15623 | PyObject * obj0 = 0 ; | |
15624 | char *kwnames[] = { | |
15625 | (char *) "self", NULL | |
15626 | }; | |
15627 | ||
15628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15631 | { | |
15632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15633 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15634 | ||
15635 | wxPyEndAllowThreads(__tstate); | |
15636 | if (PyErr_Occurred()) SWIG_fail; | |
15637 | } | |
15638 | { | |
15639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15640 | } | |
15641 | return resultobj; | |
15642 | fail: | |
15643 | return NULL; | |
15644 | } | |
15645 | ||
15646 | ||
412d302d RD |
15647 | static PyObject *_wrap_KeyEvent_CmdDown(PyObject *self, PyObject *args, PyObject *kwargs) { |
15648 | PyObject *resultobj; | |
15649 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15650 | bool result; | |
15651 | PyObject * obj0 = 0 ; | |
15652 | char *kwnames[] = { | |
15653 | (char *) "self", NULL | |
15654 | }; | |
15655 | ||
15656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail; | |
15657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15659 | { | |
15660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15661 | result = (bool)((wxKeyEvent const *)arg1)->CmdDown(); | |
15662 | ||
15663 | wxPyEndAllowThreads(__tstate); | |
15664 | if (PyErr_Occurred()) SWIG_fail; | |
15665 | } | |
15666 | { | |
15667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15668 | } | |
15669 | return resultobj; | |
15670 | fail: | |
15671 | return NULL; | |
15672 | } | |
15673 | ||
15674 | ||
d55e5bfc RD |
15675 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { |
15676 | PyObject *resultobj; | |
15677 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15678 | bool result; | |
15679 | PyObject * obj0 = 0 ; | |
15680 | char *kwnames[] = { | |
15681 | (char *) "self", NULL | |
15682 | }; | |
15683 | ||
15684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
15685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15687 | { | |
15688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15689 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15690 | ||
15691 | wxPyEndAllowThreads(__tstate); | |
15692 | if (PyErr_Occurred()) SWIG_fail; | |
15693 | } | |
15694 | { | |
15695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15696 | } | |
15697 | return resultobj; | |
15698 | fail: | |
15699 | return NULL; | |
15700 | } | |
15701 | ||
15702 | ||
15703 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15704 | PyObject *resultobj; | |
15705 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15706 | int result; | |
15707 | PyObject * obj0 = 0 ; | |
15708 | char *kwnames[] = { | |
15709 | (char *) "self", NULL | |
15710 | }; | |
15711 | ||
15712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15715 | { | |
15716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15717 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15718 | ||
15719 | wxPyEndAllowThreads(__tstate); | |
15720 | if (PyErr_Occurred()) SWIG_fail; | |
15721 | } | |
15722 | resultobj = SWIG_FromInt((int)result); | |
15723 | return resultobj; | |
15724 | fail: | |
15725 | return NULL; | |
15726 | } | |
15727 | ||
15728 | ||
19272049 | 15729 | static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15730 | PyObject *resultobj; |
15731 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15732 | int result; | |
15733 | PyObject * obj0 = 0 ; | |
15734 | char *kwnames[] = { | |
15735 | (char *) "self", NULL | |
15736 | }; | |
15737 | ||
19272049 | 15738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
15739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15741 | { | |
15742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19272049 | 15743 | result = (int)wxKeyEvent_GetUnicodeKey(arg1); |
d55e5bfc RD |
15744 | |
15745 | wxPyEndAllowThreads(__tstate); | |
15746 | if (PyErr_Occurred()) SWIG_fail; | |
15747 | } | |
15748 | resultobj = SWIG_FromInt((int)result); | |
15749 | return resultobj; | |
15750 | fail: | |
15751 | return NULL; | |
15752 | } | |
15753 | ||
15754 | ||
15755 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15756 | PyObject *resultobj; | |
15757 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15758 | unsigned int result; | |
15759 | PyObject * obj0 = 0 ; | |
15760 | char *kwnames[] = { | |
15761 | (char *) "self", NULL | |
15762 | }; | |
15763 | ||
15764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
15765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15767 | { | |
15768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15769 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); | |
15770 | ||
15771 | wxPyEndAllowThreads(__tstate); | |
15772 | if (PyErr_Occurred()) SWIG_fail; | |
15773 | } | |
15774 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
15775 | return resultobj; | |
15776 | fail: | |
15777 | return NULL; | |
15778 | } | |
15779 | ||
15780 | ||
15781 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15782 | PyObject *resultobj; | |
15783 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15784 | unsigned int result; | |
15785 | PyObject * obj0 = 0 ; | |
15786 | char *kwnames[] = { | |
15787 | (char *) "self", NULL | |
15788 | }; | |
15789 | ||
15790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
15791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15793 | { | |
15794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15795 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); | |
15796 | ||
15797 | wxPyEndAllowThreads(__tstate); | |
15798 | if (PyErr_Occurred()) SWIG_fail; | |
15799 | } | |
15800 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
15801 | return resultobj; | |
15802 | fail: | |
15803 | return NULL; | |
15804 | } | |
15805 | ||
15806 | ||
15807 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15808 | PyObject *resultobj; | |
15809 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15810 | wxPoint result; | |
15811 | PyObject * obj0 = 0 ; | |
15812 | char *kwnames[] = { | |
15813 | (char *) "self", NULL | |
15814 | }; | |
15815 | ||
15816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15819 | { | |
15820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15821 | result = (arg1)->GetPosition(); | |
15822 | ||
15823 | wxPyEndAllowThreads(__tstate); | |
15824 | if (PyErr_Occurred()) SWIG_fail; | |
15825 | } | |
15826 | { | |
15827 | wxPoint * resultptr; | |
15828 | resultptr = new wxPoint((wxPoint &) result); | |
15829 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
15830 | } | |
15831 | return resultobj; | |
15832 | fail: | |
15833 | return NULL; | |
15834 | } | |
15835 | ||
15836 | ||
15837 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15838 | PyObject *resultobj; | |
15839 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15840 | long *arg2 = (long *) 0 ; | |
15841 | long *arg3 = (long *) 0 ; | |
15842 | long temp2 ; | |
15843 | long temp3 ; | |
15844 | PyObject * obj0 = 0 ; | |
15845 | char *kwnames[] = { | |
15846 | (char *) "self", NULL | |
15847 | }; | |
15848 | ||
15849 | arg2 = &temp2; | |
15850 | arg3 = &temp3; | |
15851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15854 | { | |
15855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15856 | (arg1)->GetPosition(arg2,arg3); | |
15857 | ||
15858 | wxPyEndAllowThreads(__tstate); | |
15859 | if (PyErr_Occurred()) SWIG_fail; | |
15860 | } | |
15861 | Py_INCREF(Py_None); resultobj = Py_None; | |
15862 | { | |
15863 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15864 | resultobj = t_output_helper(resultobj,o); | |
15865 | } | |
15866 | { | |
15867 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15868 | resultobj = t_output_helper(resultobj,o); | |
15869 | } | |
15870 | return resultobj; | |
15871 | fail: | |
15872 | return NULL; | |
15873 | } | |
15874 | ||
15875 | ||
15876 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15877 | PyObject *resultobj; | |
15878 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15879 | int result; | |
15880 | PyObject * obj0 = 0 ; | |
15881 | char *kwnames[] = { | |
15882 | (char *) "self", NULL | |
15883 | }; | |
15884 | ||
15885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
15886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15888 | { | |
15889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15890 | result = (int)((wxKeyEvent const *)arg1)->GetX(); | |
15891 | ||
15892 | wxPyEndAllowThreads(__tstate); | |
15893 | if (PyErr_Occurred()) SWIG_fail; | |
15894 | } | |
15895 | resultobj = SWIG_FromInt((int)result); | |
15896 | return resultobj; | |
15897 | fail: | |
15898 | return NULL; | |
15899 | } | |
15900 | ||
15901 | ||
15902 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15903 | PyObject *resultobj; | |
15904 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15905 | int result; | |
15906 | PyObject * obj0 = 0 ; | |
15907 | char *kwnames[] = { | |
15908 | (char *) "self", NULL | |
15909 | }; | |
15910 | ||
15911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
15912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15914 | { | |
15915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15916 | result = (int)((wxKeyEvent const *)arg1)->GetY(); | |
15917 | ||
15918 | wxPyEndAllowThreads(__tstate); | |
15919 | if (PyErr_Occurred()) SWIG_fail; | |
15920 | } | |
15921 | resultobj = SWIG_FromInt((int)result); | |
15922 | return resultobj; | |
15923 | fail: | |
15924 | return NULL; | |
15925 | } | |
15926 | ||
15927 | ||
15928 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15929 | PyObject *resultobj; | |
15930 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15931 | int arg2 ; | |
15932 | PyObject * obj0 = 0 ; | |
15933 | PyObject * obj1 = 0 ; | |
15934 | char *kwnames[] = { | |
15935 | (char *) "self",(char *) "m_x", NULL | |
15936 | }; | |
15937 | ||
15938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
15939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15941 | arg2 = (int) SWIG_AsInt(obj1); | |
15942 | if (PyErr_Occurred()) SWIG_fail; | |
15943 | if (arg1) (arg1)->m_x = arg2; | |
15944 | ||
15945 | Py_INCREF(Py_None); resultobj = Py_None; | |
15946 | return resultobj; | |
15947 | fail: | |
15948 | return NULL; | |
15949 | } | |
15950 | ||
15951 | ||
15952 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15953 | PyObject *resultobj; | |
15954 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15955 | int result; | |
15956 | PyObject * obj0 = 0 ; | |
15957 | char *kwnames[] = { | |
15958 | (char *) "self", NULL | |
15959 | }; | |
15960 | ||
15961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15964 | result = (int) ((arg1)->m_x); | |
15965 | ||
15966 | resultobj = SWIG_FromInt((int)result); | |
15967 | return resultobj; | |
15968 | fail: | |
15969 | return NULL; | |
15970 | } | |
15971 | ||
15972 | ||
15973 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15974 | PyObject *resultobj; | |
15975 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15976 | int arg2 ; | |
15977 | PyObject * obj0 = 0 ; | |
15978 | PyObject * obj1 = 0 ; | |
15979 | char *kwnames[] = { | |
15980 | (char *) "self",(char *) "m_y", NULL | |
15981 | }; | |
15982 | ||
15983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
15984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15986 | arg2 = (int) SWIG_AsInt(obj1); | |
15987 | if (PyErr_Occurred()) SWIG_fail; | |
15988 | if (arg1) (arg1)->m_y = arg2; | |
15989 | ||
15990 | Py_INCREF(Py_None); resultobj = Py_None; | |
15991 | return resultobj; | |
15992 | fail: | |
15993 | return NULL; | |
15994 | } | |
15995 | ||
15996 | ||
15997 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15998 | PyObject *resultobj; | |
15999 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16000 | int result; | |
16001 | PyObject * obj0 = 0 ; | |
16002 | char *kwnames[] = { | |
16003 | (char *) "self", NULL | |
16004 | }; | |
16005 | ||
16006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
16007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16009 | result = (int) ((arg1)->m_y); | |
16010 | ||
16011 | resultobj = SWIG_FromInt((int)result); | |
16012 | return resultobj; | |
16013 | fail: | |
16014 | return NULL; | |
16015 | } | |
16016 | ||
16017 | ||
16018 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16019 | PyObject *resultobj; | |
16020 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16021 | long arg2 ; | |
16022 | PyObject * obj0 = 0 ; | |
16023 | PyObject * obj1 = 0 ; | |
16024 | char *kwnames[] = { | |
16025 | (char *) "self",(char *) "m_keyCode", NULL | |
16026 | }; | |
16027 | ||
16028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16031 | arg2 = (long) SWIG_AsLong(obj1); | |
16032 | if (PyErr_Occurred()) SWIG_fail; | |
16033 | if (arg1) (arg1)->m_keyCode = arg2; | |
16034 | ||
16035 | Py_INCREF(Py_None); resultobj = Py_None; | |
16036 | return resultobj; | |
16037 | fail: | |
16038 | return NULL; | |
16039 | } | |
16040 | ||
16041 | ||
16042 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16043 | PyObject *resultobj; | |
16044 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16045 | long result; | |
16046 | PyObject * obj0 = 0 ; | |
16047 | char *kwnames[] = { | |
16048 | (char *) "self", NULL | |
16049 | }; | |
16050 | ||
16051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
16052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16054 | result = (long) ((arg1)->m_keyCode); | |
16055 | ||
16056 | resultobj = SWIG_FromLong((long)result); | |
16057 | return resultobj; | |
16058 | fail: | |
16059 | return NULL; | |
16060 | } | |
16061 | ||
16062 | ||
16063 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16064 | PyObject *resultobj; | |
16065 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16066 | bool arg2 ; | |
16067 | PyObject * obj0 = 0 ; | |
16068 | PyObject * obj1 = 0 ; | |
16069 | char *kwnames[] = { | |
16070 | (char *) "self",(char *) "m_controlDown", NULL | |
16071 | }; | |
16072 | ||
16073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16076 | arg2 = (bool) SWIG_AsBool(obj1); | |
16077 | if (PyErr_Occurred()) SWIG_fail; | |
16078 | if (arg1) (arg1)->m_controlDown = arg2; | |
16079 | ||
16080 | Py_INCREF(Py_None); resultobj = Py_None; | |
16081 | return resultobj; | |
16082 | fail: | |
16083 | return NULL; | |
16084 | } | |
16085 | ||
16086 | ||
16087 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16088 | PyObject *resultobj; | |
16089 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16090 | bool result; | |
16091 | PyObject * obj0 = 0 ; | |
16092 | char *kwnames[] = { | |
16093 | (char *) "self", NULL | |
16094 | }; | |
16095 | ||
16096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
16097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16099 | result = (bool) ((arg1)->m_controlDown); | |
16100 | ||
16101 | { | |
16102 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16103 | } | |
16104 | return resultobj; | |
16105 | fail: | |
16106 | return NULL; | |
16107 | } | |
16108 | ||
16109 | ||
16110 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16111 | PyObject *resultobj; | |
16112 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16113 | bool arg2 ; | |
16114 | PyObject * obj0 = 0 ; | |
16115 | PyObject * obj1 = 0 ; | |
16116 | char *kwnames[] = { | |
16117 | (char *) "self",(char *) "m_shiftDown", NULL | |
16118 | }; | |
16119 | ||
16120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16123 | arg2 = (bool) SWIG_AsBool(obj1); | |
16124 | if (PyErr_Occurred()) SWIG_fail; | |
16125 | if (arg1) (arg1)->m_shiftDown = arg2; | |
16126 | ||
16127 | Py_INCREF(Py_None); resultobj = Py_None; | |
16128 | return resultobj; | |
16129 | fail: | |
16130 | return NULL; | |
16131 | } | |
16132 | ||
16133 | ||
16134 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16135 | PyObject *resultobj; | |
16136 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16137 | bool result; | |
16138 | PyObject * obj0 = 0 ; | |
16139 | char *kwnames[] = { | |
16140 | (char *) "self", NULL | |
16141 | }; | |
16142 | ||
16143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
16144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16146 | result = (bool) ((arg1)->m_shiftDown); | |
16147 | ||
16148 | { | |
16149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16150 | } | |
16151 | return resultobj; | |
16152 | fail: | |
16153 | return NULL; | |
16154 | } | |
16155 | ||
16156 | ||
16157 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16158 | PyObject *resultobj; | |
16159 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16160 | bool arg2 ; | |
16161 | PyObject * obj0 = 0 ; | |
16162 | PyObject * obj1 = 0 ; | |
16163 | char *kwnames[] = { | |
16164 | (char *) "self",(char *) "m_altDown", NULL | |
16165 | }; | |
16166 | ||
16167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16170 | arg2 = (bool) SWIG_AsBool(obj1); | |
16171 | if (PyErr_Occurred()) SWIG_fail; | |
16172 | if (arg1) (arg1)->m_altDown = arg2; | |
16173 | ||
16174 | Py_INCREF(Py_None); resultobj = Py_None; | |
16175 | return resultobj; | |
16176 | fail: | |
16177 | return NULL; | |
16178 | } | |
16179 | ||
16180 | ||
16181 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16182 | PyObject *resultobj; | |
16183 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16184 | bool result; | |
16185 | PyObject * obj0 = 0 ; | |
16186 | char *kwnames[] = { | |
16187 | (char *) "self", NULL | |
16188 | }; | |
16189 | ||
16190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
16191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16193 | result = (bool) ((arg1)->m_altDown); | |
16194 | ||
16195 | { | |
16196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16197 | } | |
16198 | return resultobj; | |
16199 | fail: | |
16200 | return NULL; | |
16201 | } | |
16202 | ||
16203 | ||
16204 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16205 | PyObject *resultobj; | |
16206 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16207 | bool arg2 ; | |
16208 | PyObject * obj0 = 0 ; | |
16209 | PyObject * obj1 = 0 ; | |
16210 | char *kwnames[] = { | |
16211 | (char *) "self",(char *) "m_metaDown", NULL | |
16212 | }; | |
16213 | ||
16214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16217 | arg2 = (bool) SWIG_AsBool(obj1); | |
16218 | if (PyErr_Occurred()) SWIG_fail; | |
16219 | if (arg1) (arg1)->m_metaDown = arg2; | |
16220 | ||
16221 | Py_INCREF(Py_None); resultobj = Py_None; | |
16222 | return resultobj; | |
16223 | fail: | |
16224 | return NULL; | |
16225 | } | |
16226 | ||
16227 | ||
16228 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16229 | PyObject *resultobj; | |
16230 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16231 | bool result; | |
16232 | PyObject * obj0 = 0 ; | |
16233 | char *kwnames[] = { | |
16234 | (char *) "self", NULL | |
16235 | }; | |
16236 | ||
16237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
16238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16240 | result = (bool) ((arg1)->m_metaDown); | |
16241 | ||
16242 | { | |
16243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16244 | } | |
16245 | return resultobj; | |
16246 | fail: | |
16247 | return NULL; | |
16248 | } | |
16249 | ||
16250 | ||
16251 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16252 | PyObject *resultobj; | |
16253 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16254 | bool arg2 ; | |
16255 | PyObject * obj0 = 0 ; | |
16256 | PyObject * obj1 = 0 ; | |
16257 | char *kwnames[] = { | |
16258 | (char *) "self",(char *) "m_scanCode", NULL | |
16259 | }; | |
16260 | ||
16261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16264 | arg2 = (bool) SWIG_AsBool(obj1); | |
16265 | if (PyErr_Occurred()) SWIG_fail; | |
16266 | if (arg1) (arg1)->m_scanCode = arg2; | |
16267 | ||
16268 | Py_INCREF(Py_None); resultobj = Py_None; | |
16269 | return resultobj; | |
16270 | fail: | |
16271 | return NULL; | |
16272 | } | |
16273 | ||
16274 | ||
16275 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16276 | PyObject *resultobj; | |
16277 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16278 | bool result; | |
16279 | PyObject * obj0 = 0 ; | |
16280 | char *kwnames[] = { | |
16281 | (char *) "self", NULL | |
16282 | }; | |
16283 | ||
16284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
16285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16287 | result = (bool) ((arg1)->m_scanCode); | |
16288 | ||
16289 | { | |
16290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16291 | } | |
16292 | return resultobj; | |
16293 | fail: | |
16294 | return NULL; | |
16295 | } | |
16296 | ||
16297 | ||
16298 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16299 | PyObject *resultobj; | |
16300 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16301 | unsigned int arg2 ; | |
16302 | PyObject * obj0 = 0 ; | |
16303 | PyObject * obj1 = 0 ; | |
16304 | char *kwnames[] = { | |
16305 | (char *) "self",(char *) "m_rawCode", NULL | |
16306 | }; | |
16307 | ||
16308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16311 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16312 | if (PyErr_Occurred()) SWIG_fail; | |
16313 | if (arg1) (arg1)->m_rawCode = arg2; | |
16314 | ||
16315 | Py_INCREF(Py_None); resultobj = Py_None; | |
16316 | return resultobj; | |
16317 | fail: | |
16318 | return NULL; | |
16319 | } | |
16320 | ||
16321 | ||
16322 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16323 | PyObject *resultobj; | |
16324 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16325 | unsigned int result; | |
16326 | PyObject * obj0 = 0 ; | |
16327 | char *kwnames[] = { | |
16328 | (char *) "self", NULL | |
16329 | }; | |
16330 | ||
16331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
16332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16334 | result = (unsigned int) ((arg1)->m_rawCode); | |
16335 | ||
16336 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
16337 | return resultobj; | |
16338 | fail: | |
16339 | return NULL; | |
16340 | } | |
16341 | ||
16342 | ||
16343 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16344 | PyObject *resultobj; | |
16345 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16346 | unsigned int arg2 ; | |
16347 | PyObject * obj0 = 0 ; | |
16348 | PyObject * obj1 = 0 ; | |
16349 | char *kwnames[] = { | |
16350 | (char *) "self",(char *) "m_rawFlags", NULL | |
16351 | }; | |
16352 | ||
16353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
16354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16356 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16357 | if (PyErr_Occurred()) SWIG_fail; | |
16358 | if (arg1) (arg1)->m_rawFlags = arg2; | |
16359 | ||
16360 | Py_INCREF(Py_None); resultobj = Py_None; | |
16361 | return resultobj; | |
16362 | fail: | |
16363 | return NULL; | |
16364 | } | |
16365 | ||
16366 | ||
16367 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16368 | PyObject *resultobj; | |
16369 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16370 | unsigned int result; | |
16371 | PyObject * obj0 = 0 ; | |
16372 | char *kwnames[] = { | |
16373 | (char *) "self", NULL | |
16374 | }; | |
16375 | ||
16376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
16377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16379 | result = (unsigned int) ((arg1)->m_rawFlags); | |
16380 | ||
16381 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
16382 | return resultobj; | |
16383 | fail: | |
16384 | return NULL; | |
16385 | } | |
16386 | ||
16387 | ||
16388 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
16389 | PyObject *obj; | |
16390 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16391 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16392 | Py_INCREF(obj); | |
16393 | return Py_BuildValue((char *)""); | |
16394 | } | |
16395 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16396 | PyObject *resultobj; | |
16397 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16398 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16399 | int arg2 = (int) 0 ; | |
16400 | wxSizeEvent *result; | |
16401 | wxSize temp1 ; | |
16402 | PyObject * obj0 = 0 ; | |
16403 | PyObject * obj1 = 0 ; | |
16404 | char *kwnames[] = { | |
16405 | (char *) "sz",(char *) "winid", NULL | |
16406 | }; | |
16407 | ||
16408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
16409 | if (obj0) { | |
16410 | { | |
16411 | arg1 = &temp1; | |
16412 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16413 | } | |
16414 | } | |
16415 | if (obj1) { | |
16416 | arg2 = (int) SWIG_AsInt(obj1); | |
16417 | if (PyErr_Occurred()) SWIG_fail; | |
16418 | } | |
16419 | { | |
16420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16421 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16422 | ||
16423 | wxPyEndAllowThreads(__tstate); | |
16424 | if (PyErr_Occurred()) SWIG_fail; | |
16425 | } | |
16426 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); | |
16427 | return resultobj; | |
16428 | fail: | |
16429 | return NULL; | |
16430 | } | |
16431 | ||
16432 | ||
16433 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16434 | PyObject *resultobj; | |
16435 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16436 | wxSize result; | |
16437 | PyObject * obj0 = 0 ; | |
16438 | char *kwnames[] = { | |
16439 | (char *) "self", NULL | |
16440 | }; | |
16441 | ||
16442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
16443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16445 | { | |
16446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16447 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16448 | ||
16449 | wxPyEndAllowThreads(__tstate); | |
16450 | if (PyErr_Occurred()) SWIG_fail; | |
16451 | } | |
16452 | { | |
16453 | wxSize * resultptr; | |
16454 | resultptr = new wxSize((wxSize &) result); | |
16455 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16456 | } | |
16457 | return resultobj; | |
16458 | fail: | |
16459 | return NULL; | |
16460 | } | |
16461 | ||
16462 | ||
16463 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16464 | PyObject *resultobj; | |
16465 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16466 | wxRect result; | |
16467 | PyObject * obj0 = 0 ; | |
16468 | char *kwnames[] = { | |
16469 | (char *) "self", NULL | |
16470 | }; | |
16471 | ||
16472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
16473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16475 | { | |
16476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16477 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16478 | ||
16479 | wxPyEndAllowThreads(__tstate); | |
16480 | if (PyErr_Occurred()) SWIG_fail; | |
16481 | } | |
16482 | { | |
16483 | wxRect * resultptr; | |
16484 | resultptr = new wxRect((wxRect &) result); | |
16485 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16486 | } | |
16487 | return resultobj; | |
16488 | fail: | |
16489 | return NULL; | |
16490 | } | |
16491 | ||
16492 | ||
16493 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16494 | PyObject *resultobj; | |
16495 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16496 | wxRect arg2 ; | |
16497 | wxRect *argp2 ; | |
16498 | PyObject * obj0 = 0 ; | |
16499 | PyObject * obj1 = 0 ; | |
16500 | char *kwnames[] = { | |
16501 | (char *) "self",(char *) "rect", NULL | |
16502 | }; | |
16503 | ||
16504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16507 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16508 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16509 | arg2 = *argp2; | |
16510 | { | |
16511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16512 | (arg1)->SetRect(arg2); | |
16513 | ||
16514 | wxPyEndAllowThreads(__tstate); | |
16515 | if (PyErr_Occurred()) SWIG_fail; | |
16516 | } | |
16517 | Py_INCREF(Py_None); resultobj = Py_None; | |
16518 | return resultobj; | |
16519 | fail: | |
16520 | return NULL; | |
16521 | } | |
16522 | ||
16523 | ||
16524 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16525 | PyObject *resultobj; | |
16526 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16527 | wxSize arg2 ; | |
16528 | wxSize *argp2 ; | |
16529 | PyObject * obj0 = 0 ; | |
16530 | PyObject * obj1 = 0 ; | |
16531 | char *kwnames[] = { | |
16532 | (char *) "self",(char *) "size", NULL | |
16533 | }; | |
16534 | ||
16535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
16536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16538 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16539 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16540 | arg2 = *argp2; | |
16541 | { | |
16542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16543 | wxSizeEvent_SetSize(arg1,arg2); | |
16544 | ||
16545 | wxPyEndAllowThreads(__tstate); | |
16546 | if (PyErr_Occurred()) SWIG_fail; | |
16547 | } | |
16548 | Py_INCREF(Py_None); resultobj = Py_None; | |
16549 | return resultobj; | |
16550 | fail: | |
16551 | return NULL; | |
16552 | } | |
16553 | ||
16554 | ||
16555 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16556 | PyObject *resultobj; | |
16557 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16558 | wxSize *arg2 = (wxSize *) 0 ; | |
16559 | PyObject * obj0 = 0 ; | |
16560 | PyObject * obj1 = 0 ; | |
16561 | char *kwnames[] = { | |
16562 | (char *) "self",(char *) "m_size", NULL | |
16563 | }; | |
16564 | ||
16565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
16566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16568 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16570 | if (arg1) (arg1)->m_size = *arg2; | |
16571 | ||
16572 | Py_INCREF(Py_None); resultobj = Py_None; | |
16573 | return resultobj; | |
16574 | fail: | |
16575 | return NULL; | |
16576 | } | |
16577 | ||
16578 | ||
16579 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16580 | PyObject *resultobj; | |
16581 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16582 | wxSize *result; | |
16583 | PyObject * obj0 = 0 ; | |
16584 | char *kwnames[] = { | |
16585 | (char *) "self", NULL | |
16586 | }; | |
16587 | ||
16588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
16589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16591 | result = (wxSize *)& ((arg1)->m_size); | |
16592 | ||
16593 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
16594 | return resultobj; | |
16595 | fail: | |
16596 | return NULL; | |
16597 | } | |
16598 | ||
16599 | ||
16600 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16601 | PyObject *resultobj; | |
16602 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16603 | wxRect *arg2 = (wxRect *) 0 ; | |
16604 | PyObject * obj0 = 0 ; | |
16605 | PyObject * obj1 = 0 ; | |
16606 | char *kwnames[] = { | |
16607 | (char *) "self",(char *) "m_rect", NULL | |
16608 | }; | |
16609 | ||
16610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16613 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16615 | if (arg1) (arg1)->m_rect = *arg2; | |
16616 | ||
16617 | Py_INCREF(Py_None); resultobj = Py_None; | |
16618 | return resultobj; | |
16619 | fail: | |
16620 | return NULL; | |
16621 | } | |
16622 | ||
16623 | ||
16624 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16625 | PyObject *resultobj; | |
16626 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16627 | wxRect *result; | |
16628 | PyObject * obj0 = 0 ; | |
16629 | char *kwnames[] = { | |
16630 | (char *) "self", NULL | |
16631 | }; | |
16632 | ||
16633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16636 | result = (wxRect *)& ((arg1)->m_rect); | |
16637 | ||
16638 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
16639 | return resultobj; | |
16640 | fail: | |
16641 | return NULL; | |
16642 | } | |
16643 | ||
16644 | ||
16645 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
16646 | PyObject *obj; | |
16647 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16648 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16649 | Py_INCREF(obj); | |
16650 | return Py_BuildValue((char *)""); | |
16651 | } | |
16652 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16653 | PyObject *resultobj; | |
16654 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16655 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16656 | int arg2 = (int) 0 ; | |
16657 | wxMoveEvent *result; | |
16658 | wxPoint temp1 ; | |
16659 | PyObject * obj0 = 0 ; | |
16660 | PyObject * obj1 = 0 ; | |
16661 | char *kwnames[] = { | |
16662 | (char *) "pos",(char *) "winid", NULL | |
16663 | }; | |
16664 | ||
16665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; | |
16666 | if (obj0) { | |
16667 | { | |
16668 | arg1 = &temp1; | |
16669 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16670 | } | |
16671 | } | |
16672 | if (obj1) { | |
16673 | arg2 = (int) SWIG_AsInt(obj1); | |
16674 | if (PyErr_Occurred()) SWIG_fail; | |
16675 | } | |
16676 | { | |
16677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16678 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16679 | ||
16680 | wxPyEndAllowThreads(__tstate); | |
16681 | if (PyErr_Occurred()) SWIG_fail; | |
16682 | } | |
16683 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); | |
16684 | return resultobj; | |
16685 | fail: | |
16686 | return NULL; | |
16687 | } | |
16688 | ||
16689 | ||
16690 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16691 | PyObject *resultobj; | |
16692 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16693 | wxPoint result; | |
16694 | PyObject * obj0 = 0 ; | |
16695 | char *kwnames[] = { | |
16696 | (char *) "self", NULL | |
16697 | }; | |
16698 | ||
16699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16702 | { | |
16703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16704 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16705 | ||
16706 | wxPyEndAllowThreads(__tstate); | |
16707 | if (PyErr_Occurred()) SWIG_fail; | |
16708 | } | |
16709 | { | |
16710 | wxPoint * resultptr; | |
16711 | resultptr = new wxPoint((wxPoint &) result); | |
16712 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16713 | } | |
16714 | return resultobj; | |
16715 | fail: | |
16716 | return NULL; | |
16717 | } | |
16718 | ||
16719 | ||
16720 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16721 | PyObject *resultobj; | |
16722 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16723 | wxRect result; | |
16724 | PyObject * obj0 = 0 ; | |
16725 | char *kwnames[] = { | |
16726 | (char *) "self", NULL | |
16727 | }; | |
16728 | ||
16729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
16730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16732 | { | |
16733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16734 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16735 | ||
16736 | wxPyEndAllowThreads(__tstate); | |
16737 | if (PyErr_Occurred()) SWIG_fail; | |
16738 | } | |
16739 | { | |
16740 | wxRect * resultptr; | |
16741 | resultptr = new wxRect((wxRect &) result); | |
16742 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16743 | } | |
16744 | return resultobj; | |
16745 | fail: | |
16746 | return NULL; | |
16747 | } | |
16748 | ||
16749 | ||
16750 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16751 | PyObject *resultobj; | |
16752 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16753 | wxRect arg2 ; | |
16754 | wxRect *argp2 ; | |
16755 | PyObject * obj0 = 0 ; | |
16756 | PyObject * obj1 = 0 ; | |
16757 | char *kwnames[] = { | |
16758 | (char *) "self",(char *) "rect", NULL | |
16759 | }; | |
16760 | ||
16761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16764 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16765 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16766 | arg2 = *argp2; | |
16767 | { | |
16768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16769 | (arg1)->SetRect(arg2); | |
16770 | ||
16771 | wxPyEndAllowThreads(__tstate); | |
16772 | if (PyErr_Occurred()) SWIG_fail; | |
16773 | } | |
16774 | Py_INCREF(Py_None); resultobj = Py_None; | |
16775 | return resultobj; | |
16776 | fail: | |
16777 | return NULL; | |
16778 | } | |
16779 | ||
16780 | ||
16781 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16782 | PyObject *resultobj; | |
16783 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16784 | wxPoint arg2 ; | |
16785 | wxPoint *argp2 ; | |
16786 | PyObject * obj0 = 0 ; | |
16787 | PyObject * obj1 = 0 ; | |
16788 | char *kwnames[] = { | |
16789 | (char *) "self",(char *) "pos", NULL | |
16790 | }; | |
16791 | ||
16792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
16793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16795 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
16796 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16797 | arg2 = *argp2; | |
16798 | { | |
16799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16800 | wxMoveEvent_SetPosition(arg1,arg2); | |
16801 | ||
16802 | wxPyEndAllowThreads(__tstate); | |
16803 | if (PyErr_Occurred()) SWIG_fail; | |
16804 | } | |
16805 | Py_INCREF(Py_None); resultobj = Py_None; | |
16806 | return resultobj; | |
16807 | fail: | |
16808 | return NULL; | |
16809 | } | |
16810 | ||
16811 | ||
16812 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16813 | PyObject *resultobj; | |
16814 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16815 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16816 | PyObject * obj0 = 0 ; | |
16817 | PyObject * obj1 = 0 ; | |
16818 | char *kwnames[] = { | |
16819 | (char *) "self",(char *) "m_pos", NULL | |
16820 | }; | |
16821 | ||
16822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
16823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16825 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
16826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16827 | if (arg1) (arg1)->m_pos = *arg2; | |
16828 | ||
16829 | Py_INCREF(Py_None); resultobj = Py_None; | |
16830 | return resultobj; | |
16831 | fail: | |
16832 | return NULL; | |
16833 | } | |
16834 | ||
16835 | ||
16836 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16837 | PyObject *resultobj; | |
16838 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16839 | wxPoint *result; | |
16840 | PyObject * obj0 = 0 ; | |
16841 | char *kwnames[] = { | |
16842 | (char *) "self", NULL | |
16843 | }; | |
16844 | ||
16845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
16846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16848 | result = (wxPoint *)& ((arg1)->m_pos); | |
16849 | ||
16850 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
16851 | return resultobj; | |
16852 | fail: | |
16853 | return NULL; | |
16854 | } | |
16855 | ||
16856 | ||
16857 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16858 | PyObject *resultobj; | |
16859 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16860 | wxRect *arg2 = (wxRect *) 0 ; | |
16861 | PyObject * obj0 = 0 ; | |
16862 | PyObject * obj1 = 0 ; | |
16863 | char *kwnames[] = { | |
16864 | (char *) "self",(char *) "m_rect", NULL | |
16865 | }; | |
16866 | ||
16867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16870 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16872 | if (arg1) (arg1)->m_rect = *arg2; | |
16873 | ||
16874 | Py_INCREF(Py_None); resultobj = Py_None; | |
16875 | return resultobj; | |
16876 | fail: | |
16877 | return NULL; | |
16878 | } | |
16879 | ||
16880 | ||
16881 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16882 | PyObject *resultobj; | |
16883 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16884 | wxRect *result; | |
16885 | PyObject * obj0 = 0 ; | |
16886 | char *kwnames[] = { | |
16887 | (char *) "self", NULL | |
16888 | }; | |
16889 | ||
16890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16893 | result = (wxRect *)& ((arg1)->m_rect); | |
16894 | ||
16895 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
16896 | return resultobj; | |
16897 | fail: | |
16898 | return NULL; | |
16899 | } | |
16900 | ||
16901 | ||
16902 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16903 | PyObject *obj; | |
16904 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16905 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16906 | Py_INCREF(obj); | |
16907 | return Py_BuildValue((char *)""); | |
16908 | } | |
16909 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16910 | PyObject *resultobj; | |
16911 | int arg1 = (int) 0 ; | |
16912 | wxPaintEvent *result; | |
16913 | PyObject * obj0 = 0 ; | |
16914 | char *kwnames[] = { | |
16915 | (char *) "Id", NULL | |
16916 | }; | |
16917 | ||
16918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; | |
16919 | if (obj0) { | |
16920 | arg1 = (int) SWIG_AsInt(obj0); | |
16921 | if (PyErr_Occurred()) SWIG_fail; | |
16922 | } | |
16923 | { | |
16924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16925 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16926 | ||
16927 | wxPyEndAllowThreads(__tstate); | |
16928 | if (PyErr_Occurred()) SWIG_fail; | |
16929 | } | |
16930 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); | |
16931 | return resultobj; | |
16932 | fail: | |
16933 | return NULL; | |
16934 | } | |
16935 | ||
16936 | ||
16937 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16938 | PyObject *obj; | |
16939 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16940 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16941 | Py_INCREF(obj); | |
16942 | return Py_BuildValue((char *)""); | |
16943 | } | |
16944 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16945 | PyObject *resultobj; | |
16946 | int arg1 = (int) 0 ; | |
16947 | wxNcPaintEvent *result; | |
16948 | PyObject * obj0 = 0 ; | |
16949 | char *kwnames[] = { | |
16950 | (char *) "winid", NULL | |
16951 | }; | |
16952 | ||
16953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; | |
16954 | if (obj0) { | |
16955 | arg1 = (int) SWIG_AsInt(obj0); | |
16956 | if (PyErr_Occurred()) SWIG_fail; | |
16957 | } | |
16958 | { | |
16959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16960 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16961 | ||
16962 | wxPyEndAllowThreads(__tstate); | |
16963 | if (PyErr_Occurred()) SWIG_fail; | |
16964 | } | |
16965 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); | |
16966 | return resultobj; | |
16967 | fail: | |
16968 | return NULL; | |
16969 | } | |
16970 | ||
16971 | ||
16972 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16973 | PyObject *obj; | |
16974 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16975 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16976 | Py_INCREF(obj); | |
16977 | return Py_BuildValue((char *)""); | |
16978 | } | |
16979 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16980 | PyObject *resultobj; | |
16981 | int arg1 = (int) 0 ; | |
16982 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16983 | wxEraseEvent *result; | |
16984 | PyObject * obj0 = 0 ; | |
16985 | PyObject * obj1 = 0 ; | |
16986 | char *kwnames[] = { | |
16987 | (char *) "Id",(char *) "dc", NULL | |
16988 | }; | |
16989 | ||
16990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; | |
16991 | if (obj0) { | |
16992 | arg1 = (int) SWIG_AsInt(obj0); | |
16993 | if (PyErr_Occurred()) SWIG_fail; | |
16994 | } | |
16995 | if (obj1) { | |
16996 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16998 | } | |
16999 | { | |
17000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17001 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
17002 | ||
17003 | wxPyEndAllowThreads(__tstate); | |
17004 | if (PyErr_Occurred()) SWIG_fail; | |
17005 | } | |
17006 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); | |
17007 | return resultobj; | |
17008 | fail: | |
17009 | return NULL; | |
17010 | } | |
17011 | ||
17012 | ||
17013 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17014 | PyObject *resultobj; | |
17015 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
17016 | wxDC *result; | |
17017 | PyObject * obj0 = 0 ; | |
17018 | char *kwnames[] = { | |
17019 | (char *) "self", NULL | |
17020 | }; | |
17021 | ||
17022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
17023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, | |
17024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17025 | { | |
17026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17027 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
17028 | ||
17029 | wxPyEndAllowThreads(__tstate); | |
17030 | if (PyErr_Occurred()) SWIG_fail; | |
17031 | } | |
17032 | { | |
412d302d | 17033 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17034 | } |
17035 | return resultobj; | |
17036 | fail: | |
17037 | return NULL; | |
17038 | } | |
17039 | ||
17040 | ||
17041 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
17042 | PyObject *obj; | |
17043 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17044 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
17045 | Py_INCREF(obj); | |
17046 | return Py_BuildValue((char *)""); | |
17047 | } | |
17048 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17049 | PyObject *resultobj; | |
17050 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17051 | int arg2 = (int) 0 ; | |
17052 | wxFocusEvent *result; | |
17053 | PyObject * obj0 = 0 ; | |
17054 | PyObject * obj1 = 0 ; | |
17055 | char *kwnames[] = { | |
17056 | (char *) "type",(char *) "winid", NULL | |
17057 | }; | |
17058 | ||
17059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; | |
17060 | if (obj0) { | |
17061 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
17062 | if (PyErr_Occurred()) SWIG_fail; | |
17063 | } | |
17064 | if (obj1) { | |
17065 | arg2 = (int) SWIG_AsInt(obj1); | |
17066 | if (PyErr_Occurred()) SWIG_fail; | |
17067 | } | |
17068 | { | |
17069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17070 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
17071 | ||
17072 | wxPyEndAllowThreads(__tstate); | |
17073 | if (PyErr_Occurred()) SWIG_fail; | |
17074 | } | |
17075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); | |
17076 | return resultobj; | |
17077 | fail: | |
17078 | return NULL; | |
17079 | } | |
17080 | ||
17081 | ||
17082 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17083 | PyObject *resultobj; | |
17084 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17085 | wxWindow *result; | |
17086 | PyObject * obj0 = 0 ; | |
17087 | char *kwnames[] = { | |
17088 | (char *) "self", NULL | |
17089 | }; | |
17090 | ||
17091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17094 | { | |
17095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17096 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
17097 | ||
17098 | wxPyEndAllowThreads(__tstate); | |
17099 | if (PyErr_Occurred()) SWIG_fail; | |
17100 | } | |
17101 | { | |
412d302d | 17102 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17103 | } |
17104 | return resultobj; | |
17105 | fail: | |
17106 | return NULL; | |
17107 | } | |
17108 | ||
17109 | ||
17110 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17111 | PyObject *resultobj; | |
17112 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17113 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17114 | PyObject * obj0 = 0 ; | |
17115 | PyObject * obj1 = 0 ; | |
17116 | char *kwnames[] = { | |
17117 | (char *) "self",(char *) "win", NULL | |
17118 | }; | |
17119 | ||
17120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
17121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17123 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17125 | { | |
17126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17127 | (arg1)->SetWindow(arg2); | |
17128 | ||
17129 | wxPyEndAllowThreads(__tstate); | |
17130 | if (PyErr_Occurred()) SWIG_fail; | |
17131 | } | |
17132 | Py_INCREF(Py_None); resultobj = Py_None; | |
17133 | return resultobj; | |
17134 | fail: | |
17135 | return NULL; | |
17136 | } | |
17137 | ||
17138 | ||
17139 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
17140 | PyObject *obj; | |
17141 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17142 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
17143 | Py_INCREF(obj); | |
17144 | return Py_BuildValue((char *)""); | |
17145 | } | |
17146 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17147 | PyObject *resultobj; | |
17148 | wxWindow *arg1 = (wxWindow *) NULL ; | |
17149 | wxChildFocusEvent *result; | |
17150 | PyObject * obj0 = 0 ; | |
17151 | char *kwnames[] = { | |
17152 | (char *) "win", NULL | |
17153 | }; | |
17154 | ||
17155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
17156 | if (obj0) { | |
17157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
17158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17159 | } | |
17160 | { | |
17161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17162 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
17163 | ||
17164 | wxPyEndAllowThreads(__tstate); | |
17165 | if (PyErr_Occurred()) SWIG_fail; | |
17166 | } | |
17167 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); | |
17168 | return resultobj; | |
17169 | fail: | |
17170 | return NULL; | |
17171 | } | |
17172 | ||
17173 | ||
17174 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17175 | PyObject *resultobj; | |
17176 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
17177 | wxWindow *result; | |
17178 | PyObject * obj0 = 0 ; | |
17179 | char *kwnames[] = { | |
17180 | (char *) "self", NULL | |
17181 | }; | |
17182 | ||
17183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, | |
17185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17186 | { | |
17187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17188 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
17189 | ||
17190 | wxPyEndAllowThreads(__tstate); | |
17191 | if (PyErr_Occurred()) SWIG_fail; | |
17192 | } | |
17193 | { | |
412d302d | 17194 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17195 | } |
17196 | return resultobj; | |
17197 | fail: | |
17198 | return NULL; | |
17199 | } | |
17200 | ||
17201 | ||
17202 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
17203 | PyObject *obj; | |
17204 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17205 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
17206 | Py_INCREF(obj); | |
17207 | return Py_BuildValue((char *)""); | |
17208 | } | |
17209 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17210 | PyObject *resultobj; | |
17211 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17212 | bool arg2 = (bool) True ; | |
17213 | int arg3 = (int) 0 ; | |
17214 | wxActivateEvent *result; | |
17215 | PyObject * obj0 = 0 ; | |
17216 | PyObject * obj1 = 0 ; | |
17217 | PyObject * obj2 = 0 ; | |
17218 | char *kwnames[] = { | |
17219 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17220 | }; | |
17221 | ||
17222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17223 | if (obj0) { | |
17224 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
17225 | if (PyErr_Occurred()) SWIG_fail; | |
17226 | } | |
17227 | if (obj1) { | |
17228 | arg2 = (bool) SWIG_AsBool(obj1); | |
17229 | if (PyErr_Occurred()) SWIG_fail; | |
17230 | } | |
17231 | if (obj2) { | |
17232 | arg3 = (int) SWIG_AsInt(obj2); | |
17233 | if (PyErr_Occurred()) SWIG_fail; | |
17234 | } | |
17235 | { | |
17236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17237 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17238 | ||
17239 | wxPyEndAllowThreads(__tstate); | |
17240 | if (PyErr_Occurred()) SWIG_fail; | |
17241 | } | |
17242 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); | |
17243 | return resultobj; | |
17244 | fail: | |
17245 | return NULL; | |
17246 | } | |
17247 | ||
17248 | ||
17249 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17250 | PyObject *resultobj; | |
17251 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17252 | bool result; | |
17253 | PyObject * obj0 = 0 ; | |
17254 | char *kwnames[] = { | |
17255 | (char *) "self", NULL | |
17256 | }; | |
17257 | ||
17258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
17259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, | |
17260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17261 | { | |
17262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17263 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17264 | ||
17265 | wxPyEndAllowThreads(__tstate); | |
17266 | if (PyErr_Occurred()) SWIG_fail; | |
17267 | } | |
17268 | { | |
17269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17270 | } | |
17271 | return resultobj; | |
17272 | fail: | |
17273 | return NULL; | |
17274 | } | |
17275 | ||
17276 | ||
17277 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
17278 | PyObject *obj; | |
17279 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17280 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17281 | Py_INCREF(obj); | |
17282 | return Py_BuildValue((char *)""); | |
17283 | } | |
17284 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17285 | PyObject *resultobj; | |
17286 | int arg1 = (int) 0 ; | |
17287 | wxInitDialogEvent *result; | |
17288 | PyObject * obj0 = 0 ; | |
17289 | char *kwnames[] = { | |
17290 | (char *) "Id", NULL | |
17291 | }; | |
17292 | ||
17293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; | |
17294 | if (obj0) { | |
17295 | arg1 = (int) SWIG_AsInt(obj0); | |
17296 | if (PyErr_Occurred()) SWIG_fail; | |
17297 | } | |
17298 | { | |
17299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17300 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17301 | ||
17302 | wxPyEndAllowThreads(__tstate); | |
17303 | if (PyErr_Occurred()) SWIG_fail; | |
17304 | } | |
17305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); | |
17306 | return resultobj; | |
17307 | fail: | |
17308 | return NULL; | |
17309 | } | |
17310 | ||
17311 | ||
17312 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
17313 | PyObject *obj; | |
17314 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17315 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17316 | Py_INCREF(obj); | |
17317 | return Py_BuildValue((char *)""); | |
17318 | } | |
17319 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17320 | PyObject *resultobj; | |
17321 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17322 | int arg2 = (int) 0 ; | |
17323 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17324 | wxMenuEvent *result; | |
17325 | PyObject * obj0 = 0 ; | |
17326 | PyObject * obj1 = 0 ; | |
17327 | PyObject * obj2 = 0 ; | |
17328 | char *kwnames[] = { | |
17329 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17330 | }; | |
17331 | ||
17332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17333 | if (obj0) { | |
17334 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
17335 | if (PyErr_Occurred()) SWIG_fail; | |
17336 | } | |
17337 | if (obj1) { | |
17338 | arg2 = (int) SWIG_AsInt(obj1); | |
17339 | if (PyErr_Occurred()) SWIG_fail; | |
17340 | } | |
17341 | if (obj2) { | |
17342 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
17343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17344 | } | |
17345 | { | |
17346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17347 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17348 | ||
17349 | wxPyEndAllowThreads(__tstate); | |
17350 | if (PyErr_Occurred()) SWIG_fail; | |
17351 | } | |
17352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); | |
17353 | return resultobj; | |
17354 | fail: | |
17355 | return NULL; | |
17356 | } | |
17357 | ||
17358 | ||
17359 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17360 | PyObject *resultobj; | |
17361 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17362 | int result; | |
17363 | PyObject * obj0 = 0 ; | |
17364 | char *kwnames[] = { | |
17365 | (char *) "self", NULL | |
17366 | }; | |
17367 | ||
17368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
17369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17371 | { | |
17372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17373 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17374 | ||
17375 | wxPyEndAllowThreads(__tstate); | |
17376 | if (PyErr_Occurred()) SWIG_fail; | |
17377 | } | |
17378 | resultobj = SWIG_FromInt((int)result); | |
17379 | return resultobj; | |
17380 | fail: | |
17381 | return NULL; | |
17382 | } | |
17383 | ||
17384 | ||
17385 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17386 | PyObject *resultobj; | |
17387 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17388 | bool result; | |
17389 | PyObject * obj0 = 0 ; | |
17390 | char *kwnames[] = { | |
17391 | (char *) "self", NULL | |
17392 | }; | |
17393 | ||
17394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
17395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17397 | { | |
17398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17399 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17400 | ||
17401 | wxPyEndAllowThreads(__tstate); | |
17402 | if (PyErr_Occurred()) SWIG_fail; | |
17403 | } | |
17404 | { | |
17405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17406 | } | |
17407 | return resultobj; | |
17408 | fail: | |
17409 | return NULL; | |
17410 | } | |
17411 | ||
17412 | ||
17413 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17414 | PyObject *resultobj; | |
17415 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17416 | wxMenu *result; | |
17417 | PyObject * obj0 = 0 ; | |
17418 | char *kwnames[] = { | |
17419 | (char *) "self", NULL | |
17420 | }; | |
17421 | ||
17422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
17423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17425 | { | |
17426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17427 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17428 | ||
17429 | wxPyEndAllowThreads(__tstate); | |
17430 | if (PyErr_Occurred()) SWIG_fail; | |
17431 | } | |
17432 | { | |
412d302d | 17433 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17434 | } |
17435 | return resultobj; | |
17436 | fail: | |
17437 | return NULL; | |
17438 | } | |
17439 | ||
17440 | ||
17441 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
17442 | PyObject *obj; | |
17443 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17444 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17445 | Py_INCREF(obj); | |
17446 | return Py_BuildValue((char *)""); | |
17447 | } | |
17448 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17449 | PyObject *resultobj; | |
17450 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17451 | int arg2 = (int) 0 ; | |
17452 | wxCloseEvent *result; | |
17453 | PyObject * obj0 = 0 ; | |
17454 | PyObject * obj1 = 0 ; | |
17455 | char *kwnames[] = { | |
17456 | (char *) "type",(char *) "winid", NULL | |
17457 | }; | |
17458 | ||
17459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17460 | if (obj0) { | |
17461 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
17462 | if (PyErr_Occurred()) SWIG_fail; | |
17463 | } | |
17464 | if (obj1) { | |
17465 | arg2 = (int) SWIG_AsInt(obj1); | |
17466 | if (PyErr_Occurred()) SWIG_fail; | |
17467 | } | |
17468 | { | |
17469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17470 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17471 | ||
17472 | wxPyEndAllowThreads(__tstate); | |
17473 | if (PyErr_Occurred()) SWIG_fail; | |
17474 | } | |
17475 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); | |
17476 | return resultobj; | |
17477 | fail: | |
17478 | return NULL; | |
17479 | } | |
17480 | ||
17481 | ||
17482 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17483 | PyObject *resultobj; | |
17484 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17485 | bool arg2 ; | |
17486 | PyObject * obj0 = 0 ; | |
17487 | PyObject * obj1 = 0 ; | |
17488 | char *kwnames[] = { | |
17489 | (char *) "self",(char *) "logOff", NULL | |
17490 | }; | |
17491 | ||
17492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
17493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17495 | arg2 = (bool) SWIG_AsBool(obj1); | |
17496 | if (PyErr_Occurred()) SWIG_fail; | |
17497 | { | |
17498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17499 | (arg1)->SetLoggingOff(arg2); | |
17500 | ||
17501 | wxPyEndAllowThreads(__tstate); | |
17502 | if (PyErr_Occurred()) SWIG_fail; | |
17503 | } | |
17504 | Py_INCREF(Py_None); resultobj = Py_None; | |
17505 | return resultobj; | |
17506 | fail: | |
17507 | return NULL; | |
17508 | } | |
17509 | ||
17510 | ||
17511 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17512 | PyObject *resultobj; | |
17513 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17514 | bool result; | |
17515 | PyObject * obj0 = 0 ; | |
17516 | char *kwnames[] = { | |
17517 | (char *) "self", NULL | |
17518 | }; | |
17519 | ||
17520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
17521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17523 | { | |
17524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17525 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17526 | ||
17527 | wxPyEndAllowThreads(__tstate); | |
17528 | if (PyErr_Occurred()) SWIG_fail; | |
17529 | } | |
17530 | { | |
17531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17532 | } | |
17533 | return resultobj; | |
17534 | fail: | |
17535 | return NULL; | |
17536 | } | |
17537 | ||
17538 | ||
17539 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17540 | PyObject *resultobj; | |
17541 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17542 | bool arg2 = (bool) True ; | |
17543 | PyObject * obj0 = 0 ; | |
17544 | PyObject * obj1 = 0 ; | |
17545 | char *kwnames[] = { | |
17546 | (char *) "self",(char *) "veto", NULL | |
17547 | }; | |
17548 | ||
17549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
17550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17552 | if (obj1) { | |
17553 | arg2 = (bool) SWIG_AsBool(obj1); | |
17554 | if (PyErr_Occurred()) SWIG_fail; | |
17555 | } | |
17556 | { | |
17557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17558 | (arg1)->Veto(arg2); | |
17559 | ||
17560 | wxPyEndAllowThreads(__tstate); | |
17561 | if (PyErr_Occurred()) SWIG_fail; | |
17562 | } | |
17563 | Py_INCREF(Py_None); resultobj = Py_None; | |
17564 | return resultobj; | |
17565 | fail: | |
17566 | return NULL; | |
17567 | } | |
17568 | ||
17569 | ||
17570 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17571 | PyObject *resultobj; | |
17572 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17573 | bool arg2 ; | |
17574 | PyObject * obj0 = 0 ; | |
17575 | PyObject * obj1 = 0 ; | |
17576 | char *kwnames[] = { | |
17577 | (char *) "self",(char *) "canVeto", NULL | |
17578 | }; | |
17579 | ||
17580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
17581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17583 | arg2 = (bool) SWIG_AsBool(obj1); | |
17584 | if (PyErr_Occurred()) SWIG_fail; | |
17585 | { | |
17586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17587 | (arg1)->SetCanVeto(arg2); | |
17588 | ||
17589 | wxPyEndAllowThreads(__tstate); | |
17590 | if (PyErr_Occurred()) SWIG_fail; | |
17591 | } | |
17592 | Py_INCREF(Py_None); resultobj = Py_None; | |
17593 | return resultobj; | |
17594 | fail: | |
17595 | return NULL; | |
17596 | } | |
17597 | ||
17598 | ||
17599 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17600 | PyObject *resultobj; | |
17601 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17602 | bool result; | |
17603 | PyObject * obj0 = 0 ; | |
17604 | char *kwnames[] = { | |
17605 | (char *) "self", NULL | |
17606 | }; | |
17607 | ||
17608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
17609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17611 | { | |
17612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17613 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17614 | ||
17615 | wxPyEndAllowThreads(__tstate); | |
17616 | if (PyErr_Occurred()) SWIG_fail; | |
17617 | } | |
17618 | { | |
17619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17620 | } | |
17621 | return resultobj; | |
17622 | fail: | |
17623 | return NULL; | |
17624 | } | |
17625 | ||
17626 | ||
17627 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17628 | PyObject *resultobj; | |
17629 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17630 | bool result; | |
17631 | PyObject * obj0 = 0 ; | |
17632 | char *kwnames[] = { | |
17633 | (char *) "self", NULL | |
17634 | }; | |
17635 | ||
17636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
17637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17639 | { | |
17640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17641 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17642 | ||
17643 | wxPyEndAllowThreads(__tstate); | |
17644 | if (PyErr_Occurred()) SWIG_fail; | |
17645 | } | |
17646 | { | |
17647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17648 | } | |
17649 | return resultobj; | |
17650 | fail: | |
17651 | return NULL; | |
17652 | } | |
17653 | ||
17654 | ||
17655 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
17656 | PyObject *obj; | |
17657 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17658 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17659 | Py_INCREF(obj); | |
17660 | return Py_BuildValue((char *)""); | |
17661 | } | |
17662 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17663 | PyObject *resultobj; | |
17664 | int arg1 = (int) 0 ; | |
17665 | bool arg2 = (bool) False ; | |
17666 | wxShowEvent *result; | |
17667 | PyObject * obj0 = 0 ; | |
17668 | PyObject * obj1 = 0 ; | |
17669 | char *kwnames[] = { | |
17670 | (char *) "winid",(char *) "show", NULL | |
17671 | }; | |
17672 | ||
17673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; | |
17674 | if (obj0) { | |
17675 | arg1 = (int) SWIG_AsInt(obj0); | |
17676 | if (PyErr_Occurred()) SWIG_fail; | |
17677 | } | |
17678 | if (obj1) { | |
17679 | arg2 = (bool) SWIG_AsBool(obj1); | |
17680 | if (PyErr_Occurred()) SWIG_fail; | |
17681 | } | |
17682 | { | |
17683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17684 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17685 | ||
17686 | wxPyEndAllowThreads(__tstate); | |
17687 | if (PyErr_Occurred()) SWIG_fail; | |
17688 | } | |
17689 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); | |
17690 | return resultobj; | |
17691 | fail: | |
17692 | return NULL; | |
17693 | } | |
17694 | ||
17695 | ||
17696 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17697 | PyObject *resultobj; | |
17698 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17699 | bool arg2 ; | |
17700 | PyObject * obj0 = 0 ; | |
17701 | PyObject * obj1 = 0 ; | |
17702 | char *kwnames[] = { | |
17703 | (char *) "self",(char *) "show", NULL | |
17704 | }; | |
17705 | ||
17706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
17707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
17708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17709 | arg2 = (bool) SWIG_AsBool(obj1); | |
17710 | if (PyErr_Occurred()) SWIG_fail; | |
17711 | { | |
17712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17713 | (arg1)->SetShow(arg2); | |
17714 | ||
17715 | wxPyEndAllowThreads(__tstate); | |
17716 | if (PyErr_Occurred()) SWIG_fail; | |
17717 | } | |
17718 | Py_INCREF(Py_None); resultobj = Py_None; | |
17719 | return resultobj; | |
17720 | fail: | |
17721 | return NULL; | |
17722 | } | |
17723 | ||
17724 | ||
17725 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17726 | PyObject *resultobj; | |
17727 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17728 | bool result; | |
17729 | PyObject * obj0 = 0 ; | |
17730 | char *kwnames[] = { | |
17731 | (char *) "self", NULL | |
17732 | }; | |
17733 | ||
17734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
17735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
17736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17737 | { | |
17738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17739 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17740 | ||
17741 | wxPyEndAllowThreads(__tstate); | |
17742 | if (PyErr_Occurred()) SWIG_fail; | |
17743 | } | |
17744 | { | |
17745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17746 | } | |
17747 | return resultobj; | |
17748 | fail: | |
17749 | return NULL; | |
17750 | } | |
17751 | ||
17752 | ||
17753 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
17754 | PyObject *obj; | |
17755 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17756 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17757 | Py_INCREF(obj); | |
17758 | return Py_BuildValue((char *)""); | |
17759 | } | |
17760 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17761 | PyObject *resultobj; | |
17762 | int arg1 = (int) 0 ; | |
17763 | bool arg2 = (bool) True ; | |
17764 | wxIconizeEvent *result; | |
17765 | PyObject * obj0 = 0 ; | |
17766 | PyObject * obj1 = 0 ; | |
17767 | char *kwnames[] = { | |
17768 | (char *) "id",(char *) "iconized", NULL | |
17769 | }; | |
17770 | ||
17771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
17772 | if (obj0) { | |
17773 | arg1 = (int) SWIG_AsInt(obj0); | |
17774 | if (PyErr_Occurred()) SWIG_fail; | |
17775 | } | |
17776 | if (obj1) { | |
17777 | arg2 = (bool) SWIG_AsBool(obj1); | |
17778 | if (PyErr_Occurred()) SWIG_fail; | |
17779 | } | |
17780 | { | |
17781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17782 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
17783 | ||
17784 | wxPyEndAllowThreads(__tstate); | |
17785 | if (PyErr_Occurred()) SWIG_fail; | |
17786 | } | |
17787 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); | |
17788 | return resultobj; | |
17789 | fail: | |
17790 | return NULL; | |
17791 | } | |
17792 | ||
17793 | ||
17794 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17795 | PyObject *resultobj; | |
17796 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17797 | bool result; | |
17798 | PyObject * obj0 = 0 ; | |
17799 | char *kwnames[] = { | |
17800 | (char *) "self", NULL | |
17801 | }; | |
17802 | ||
17803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
17804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, | |
17805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17806 | { | |
17807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17808 | result = (bool)(arg1)->Iconized(); | |
17809 | ||
17810 | wxPyEndAllowThreads(__tstate); | |
17811 | if (PyErr_Occurred()) SWIG_fail; | |
17812 | } | |
17813 | { | |
17814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17815 | } | |
17816 | return resultobj; | |
17817 | fail: | |
17818 | return NULL; | |
17819 | } | |
17820 | ||
17821 | ||
17822 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17823 | PyObject *obj; | |
17824 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17825 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17826 | Py_INCREF(obj); | |
17827 | return Py_BuildValue((char *)""); | |
17828 | } | |
17829 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17830 | PyObject *resultobj; | |
17831 | int arg1 = (int) 0 ; | |
17832 | wxMaximizeEvent *result; | |
17833 | PyObject * obj0 = 0 ; | |
17834 | char *kwnames[] = { | |
17835 | (char *) "id", NULL | |
17836 | }; | |
17837 | ||
17838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; | |
17839 | if (obj0) { | |
17840 | arg1 = (int) SWIG_AsInt(obj0); | |
17841 | if (PyErr_Occurred()) SWIG_fail; | |
17842 | } | |
17843 | { | |
17844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17845 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17846 | ||
17847 | wxPyEndAllowThreads(__tstate); | |
17848 | if (PyErr_Occurred()) SWIG_fail; | |
17849 | } | |
17850 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); | |
17851 | return resultobj; | |
17852 | fail: | |
17853 | return NULL; | |
17854 | } | |
17855 | ||
17856 | ||
17857 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17858 | PyObject *obj; | |
17859 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17860 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17861 | Py_INCREF(obj); | |
17862 | return Py_BuildValue((char *)""); | |
17863 | } | |
17864 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17865 | PyObject *resultobj; | |
17866 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17867 | wxPoint result; | |
17868 | PyObject * obj0 = 0 ; | |
17869 | char *kwnames[] = { | |
17870 | (char *) "self", NULL | |
17871 | }; | |
17872 | ||
17873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
17874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
17875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17876 | { | |
17877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17878 | result = (arg1)->GetPosition(); | |
17879 | ||
17880 | wxPyEndAllowThreads(__tstate); | |
17881 | if (PyErr_Occurred()) SWIG_fail; | |
17882 | } | |
17883 | { | |
17884 | wxPoint * resultptr; | |
17885 | resultptr = new wxPoint((wxPoint &) result); | |
17886 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
17887 | } | |
17888 | return resultobj; | |
17889 | fail: | |
17890 | return NULL; | |
17891 | } | |
17892 | ||
17893 | ||
17894 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17895 | PyObject *resultobj; | |
17896 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17897 | int result; | |
17898 | PyObject * obj0 = 0 ; | |
17899 | char *kwnames[] = { | |
17900 | (char *) "self", NULL | |
17901 | }; | |
17902 | ||
17903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
17904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
17905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17906 | { | |
17907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17908 | result = (int)(arg1)->GetNumberOfFiles(); | |
17909 | ||
17910 | wxPyEndAllowThreads(__tstate); | |
17911 | if (PyErr_Occurred()) SWIG_fail; | |
17912 | } | |
17913 | resultobj = SWIG_FromInt((int)result); | |
17914 | return resultobj; | |
17915 | fail: | |
17916 | return NULL; | |
17917 | } | |
17918 | ||
17919 | ||
17920 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17921 | PyObject *resultobj; | |
17922 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17923 | PyObject *result; | |
17924 | PyObject * obj0 = 0 ; | |
17925 | char *kwnames[] = { | |
17926 | (char *) "self", NULL | |
17927 | }; | |
17928 | ||
17929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
17930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
17931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17932 | { | |
17933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17934 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17935 | ||
17936 | wxPyEndAllowThreads(__tstate); | |
17937 | if (PyErr_Occurred()) SWIG_fail; | |
17938 | } | |
17939 | resultobj = result; | |
17940 | return resultobj; | |
17941 | fail: | |
17942 | return NULL; | |
17943 | } | |
17944 | ||
17945 | ||
17946 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17947 | PyObject *obj; | |
17948 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17949 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17950 | Py_INCREF(obj); | |
17951 | return Py_BuildValue((char *)""); | |
17952 | } | |
17953 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17954 | PyObject *resultobj; | |
17955 | int arg1 = (int) 0 ; | |
17956 | wxUpdateUIEvent *result; | |
17957 | PyObject * obj0 = 0 ; | |
17958 | char *kwnames[] = { | |
17959 | (char *) "commandId", NULL | |
17960 | }; | |
17961 | ||
17962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; | |
17963 | if (obj0) { | |
17964 | arg1 = (int) SWIG_AsInt(obj0); | |
17965 | if (PyErr_Occurred()) SWIG_fail; | |
17966 | } | |
17967 | { | |
17968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17969 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17970 | ||
17971 | wxPyEndAllowThreads(__tstate); | |
17972 | if (PyErr_Occurred()) SWIG_fail; | |
17973 | } | |
17974 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); | |
17975 | return resultobj; | |
17976 | fail: | |
17977 | return NULL; | |
17978 | } | |
17979 | ||
17980 | ||
17981 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17982 | PyObject *resultobj; | |
17983 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17984 | bool result; | |
17985 | PyObject * obj0 = 0 ; | |
17986 | char *kwnames[] = { | |
17987 | (char *) "self", NULL | |
17988 | }; | |
17989 | ||
17990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
17991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17993 | { | |
17994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17995 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17996 | ||
17997 | wxPyEndAllowThreads(__tstate); | |
17998 | if (PyErr_Occurred()) SWIG_fail; | |
17999 | } | |
18000 | { | |
18001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18002 | } | |
18003 | return resultobj; | |
18004 | fail: | |
18005 | return NULL; | |
18006 | } | |
18007 | ||
18008 | ||
18009 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18010 | PyObject *resultobj; | |
18011 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18012 | bool result; | |
18013 | PyObject * obj0 = 0 ; | |
18014 | char *kwnames[] = { | |
18015 | (char *) "self", NULL | |
18016 | }; | |
18017 | ||
18018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
18019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18021 | { | |
18022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18023 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
18024 | ||
18025 | wxPyEndAllowThreads(__tstate); | |
18026 | if (PyErr_Occurred()) SWIG_fail; | |
18027 | } | |
18028 | { | |
18029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18030 | } | |
18031 | return resultobj; | |
18032 | fail: | |
18033 | return NULL; | |
18034 | } | |
18035 | ||
18036 | ||
18037 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18038 | PyObject *resultobj; | |
18039 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18040 | wxString result; | |
18041 | PyObject * obj0 = 0 ; | |
18042 | char *kwnames[] = { | |
18043 | (char *) "self", NULL | |
18044 | }; | |
18045 | ||
18046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
18047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18049 | { | |
18050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18051 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
18052 | ||
18053 | wxPyEndAllowThreads(__tstate); | |
18054 | if (PyErr_Occurred()) SWIG_fail; | |
18055 | } | |
18056 | { | |
18057 | #if wxUSE_UNICODE | |
18058 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18059 | #else | |
18060 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18061 | #endif | |
18062 | } | |
18063 | return resultobj; | |
18064 | fail: | |
18065 | return NULL; | |
18066 | } | |
18067 | ||
18068 | ||
18069 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18070 | PyObject *resultobj; | |
18071 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18072 | bool result; | |
18073 | PyObject * obj0 = 0 ; | |
18074 | char *kwnames[] = { | |
18075 | (char *) "self", NULL | |
18076 | }; | |
18077 | ||
18078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
18079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18081 | { | |
18082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18083 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
18084 | ||
18085 | wxPyEndAllowThreads(__tstate); | |
18086 | if (PyErr_Occurred()) SWIG_fail; | |
18087 | } | |
18088 | { | |
18089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18090 | } | |
18091 | return resultobj; | |
18092 | fail: | |
18093 | return NULL; | |
18094 | } | |
18095 | ||
18096 | ||
18097 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18098 | PyObject *resultobj; | |
18099 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18100 | bool result; | |
18101 | PyObject * obj0 = 0 ; | |
18102 | char *kwnames[] = { | |
18103 | (char *) "self", NULL | |
18104 | }; | |
18105 | ||
18106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
18107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18109 | { | |
18110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18111 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
18112 | ||
18113 | wxPyEndAllowThreads(__tstate); | |
18114 | if (PyErr_Occurred()) SWIG_fail; | |
18115 | } | |
18116 | { | |
18117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18118 | } | |
18119 | return resultobj; | |
18120 | fail: | |
18121 | return NULL; | |
18122 | } | |
18123 | ||
18124 | ||
18125 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18126 | PyObject *resultobj; | |
18127 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18128 | bool result; | |
18129 | PyObject * obj0 = 0 ; | |
18130 | char *kwnames[] = { | |
18131 | (char *) "self", NULL | |
18132 | }; | |
18133 | ||
18134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
18135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18137 | { | |
18138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18139 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
18140 | ||
18141 | wxPyEndAllowThreads(__tstate); | |
18142 | if (PyErr_Occurred()) SWIG_fail; | |
18143 | } | |
18144 | { | |
18145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18146 | } | |
18147 | return resultobj; | |
18148 | fail: | |
18149 | return NULL; | |
18150 | } | |
18151 | ||
18152 | ||
18153 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18154 | PyObject *resultobj; | |
18155 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18156 | bool arg2 ; | |
18157 | PyObject * obj0 = 0 ; | |
18158 | PyObject * obj1 = 0 ; | |
18159 | char *kwnames[] = { | |
18160 | (char *) "self",(char *) "check", NULL | |
18161 | }; | |
18162 | ||
18163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
18164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18166 | arg2 = (bool) SWIG_AsBool(obj1); | |
18167 | if (PyErr_Occurred()) SWIG_fail; | |
18168 | { | |
18169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18170 | (arg1)->Check(arg2); | |
18171 | ||
18172 | wxPyEndAllowThreads(__tstate); | |
18173 | if (PyErr_Occurred()) SWIG_fail; | |
18174 | } | |
18175 | Py_INCREF(Py_None); resultobj = Py_None; | |
18176 | return resultobj; | |
18177 | fail: | |
18178 | return NULL; | |
18179 | } | |
18180 | ||
18181 | ||
18182 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18183 | PyObject *resultobj; | |
18184 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18185 | bool arg2 ; | |
18186 | PyObject * obj0 = 0 ; | |
18187 | PyObject * obj1 = 0 ; | |
18188 | char *kwnames[] = { | |
18189 | (char *) "self",(char *) "enable", NULL | |
18190 | }; | |
18191 | ||
18192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
18193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18195 | arg2 = (bool) SWIG_AsBool(obj1); | |
18196 | if (PyErr_Occurred()) SWIG_fail; | |
18197 | { | |
18198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18199 | (arg1)->Enable(arg2); | |
18200 | ||
18201 | wxPyEndAllowThreads(__tstate); | |
18202 | if (PyErr_Occurred()) SWIG_fail; | |
18203 | } | |
18204 | Py_INCREF(Py_None); resultobj = Py_None; | |
18205 | return resultobj; | |
18206 | fail: | |
18207 | return NULL; | |
18208 | } | |
18209 | ||
18210 | ||
18211 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18212 | PyObject *resultobj; | |
18213 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18214 | wxString *arg2 = 0 ; | |
18215 | bool temp2 = False ; | |
18216 | PyObject * obj0 = 0 ; | |
18217 | PyObject * obj1 = 0 ; | |
18218 | char *kwnames[] = { | |
18219 | (char *) "self",(char *) "text", NULL | |
18220 | }; | |
18221 | ||
18222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18225 | { | |
18226 | arg2 = wxString_in_helper(obj1); | |
18227 | if (arg2 == NULL) SWIG_fail; | |
18228 | temp2 = True; | |
18229 | } | |
18230 | { | |
18231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18232 | (arg1)->SetText((wxString const &)*arg2); | |
18233 | ||
18234 | wxPyEndAllowThreads(__tstate); | |
18235 | if (PyErr_Occurred()) SWIG_fail; | |
18236 | } | |
18237 | Py_INCREF(Py_None); resultobj = Py_None; | |
18238 | { | |
18239 | if (temp2) | |
18240 | delete arg2; | |
18241 | } | |
18242 | return resultobj; | |
18243 | fail: | |
18244 | { | |
18245 | if (temp2) | |
18246 | delete arg2; | |
18247 | } | |
18248 | return NULL; | |
18249 | } | |
18250 | ||
18251 | ||
18252 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18253 | PyObject *resultobj; | |
18254 | long arg1 ; | |
18255 | PyObject * obj0 = 0 ; | |
18256 | char *kwnames[] = { | |
18257 | (char *) "updateInterval", NULL | |
18258 | }; | |
18259 | ||
18260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; | |
18261 | arg1 = (long) SWIG_AsLong(obj0); | |
18262 | if (PyErr_Occurred()) SWIG_fail; | |
18263 | { | |
18264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18265 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18266 | ||
18267 | wxPyEndAllowThreads(__tstate); | |
18268 | if (PyErr_Occurred()) SWIG_fail; | |
18269 | } | |
18270 | Py_INCREF(Py_None); resultobj = Py_None; | |
18271 | return resultobj; | |
18272 | fail: | |
18273 | return NULL; | |
18274 | } | |
18275 | ||
18276 | ||
18277 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18278 | PyObject *resultobj; | |
18279 | long result; | |
18280 | char *kwnames[] = { | |
18281 | NULL | |
18282 | }; | |
18283 | ||
18284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18285 | { | |
18286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18287 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18288 | ||
18289 | wxPyEndAllowThreads(__tstate); | |
18290 | if (PyErr_Occurred()) SWIG_fail; | |
18291 | } | |
18292 | resultobj = SWIG_FromLong((long)result); | |
18293 | return resultobj; | |
18294 | fail: | |
18295 | return NULL; | |
18296 | } | |
18297 | ||
18298 | ||
18299 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18300 | PyObject *resultobj; | |
18301 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18302 | bool result; | |
18303 | PyObject * obj0 = 0 ; | |
18304 | char *kwnames[] = { | |
18305 | (char *) "win", NULL | |
18306 | }; | |
18307 | ||
18308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
18309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18311 | { | |
18312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18313 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18314 | ||
18315 | wxPyEndAllowThreads(__tstate); | |
18316 | if (PyErr_Occurred()) SWIG_fail; | |
18317 | } | |
18318 | { | |
18319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18320 | } | |
18321 | return resultobj; | |
18322 | fail: | |
18323 | return NULL; | |
18324 | } | |
18325 | ||
18326 | ||
18327 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18328 | PyObject *resultobj; | |
18329 | char *kwnames[] = { | |
18330 | NULL | |
18331 | }; | |
18332 | ||
18333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18334 | { | |
18335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18336 | wxUpdateUIEvent::ResetUpdateTime(); | |
18337 | ||
18338 | wxPyEndAllowThreads(__tstate); | |
18339 | if (PyErr_Occurred()) SWIG_fail; | |
18340 | } | |
18341 | Py_INCREF(Py_None); resultobj = Py_None; | |
18342 | return resultobj; | |
18343 | fail: | |
18344 | return NULL; | |
18345 | } | |
18346 | ||
18347 | ||
18348 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18349 | PyObject *resultobj; | |
18350 | int arg1 ; | |
18351 | PyObject * obj0 = 0 ; | |
18352 | char *kwnames[] = { | |
18353 | (char *) "mode", NULL | |
18354 | }; | |
18355 | ||
18356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; | |
18357 | arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); | |
18358 | if (PyErr_Occurred()) SWIG_fail; | |
18359 | { | |
18360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18361 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18362 | ||
18363 | wxPyEndAllowThreads(__tstate); | |
18364 | if (PyErr_Occurred()) SWIG_fail; | |
18365 | } | |
18366 | Py_INCREF(Py_None); resultobj = Py_None; | |
18367 | return resultobj; | |
18368 | fail: | |
18369 | return NULL; | |
18370 | } | |
18371 | ||
18372 | ||
18373 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18374 | PyObject *resultobj; | |
18375 | int result; | |
18376 | char *kwnames[] = { | |
18377 | NULL | |
18378 | }; | |
18379 | ||
18380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18381 | { | |
18382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18383 | result = (int)wxUpdateUIEvent::GetMode(); | |
18384 | ||
18385 | wxPyEndAllowThreads(__tstate); | |
18386 | if (PyErr_Occurred()) SWIG_fail; | |
18387 | } | |
18388 | resultobj = SWIG_FromInt((int)result); | |
18389 | return resultobj; | |
18390 | fail: | |
18391 | return NULL; | |
18392 | } | |
18393 | ||
18394 | ||
18395 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
18396 | PyObject *obj; | |
18397 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18398 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18399 | Py_INCREF(obj); | |
18400 | return Py_BuildValue((char *)""); | |
18401 | } | |
18402 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18403 | PyObject *resultobj; | |
18404 | wxSysColourChangedEvent *result; | |
18405 | char *kwnames[] = { | |
18406 | NULL | |
18407 | }; | |
18408 | ||
18409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18410 | { | |
18411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18412 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18413 | ||
18414 | wxPyEndAllowThreads(__tstate); | |
18415 | if (PyErr_Occurred()) SWIG_fail; | |
18416 | } | |
18417 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
18418 | return resultobj; | |
18419 | fail: | |
18420 | return NULL; | |
18421 | } | |
18422 | ||
18423 | ||
18424 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18425 | PyObject *obj; | |
18426 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18427 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18428 | Py_INCREF(obj); | |
18429 | return Py_BuildValue((char *)""); | |
18430 | } | |
18431 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18432 | PyObject *resultobj; | |
18433 | int arg1 = (int) 0 ; | |
18434 | wxWindow *arg2 = (wxWindow *) NULL ; | |
18435 | wxMouseCaptureChangedEvent *result; | |
18436 | PyObject * obj0 = 0 ; | |
18437 | PyObject * obj1 = 0 ; | |
18438 | char *kwnames[] = { | |
18439 | (char *) "winid",(char *) "gainedCapture", NULL | |
18440 | }; | |
18441 | ||
18442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; | |
18443 | if (obj0) { | |
18444 | arg1 = (int) SWIG_AsInt(obj0); | |
18445 | if (PyErr_Occurred()) SWIG_fail; | |
18446 | } | |
18447 | if (obj1) { | |
18448 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18450 | } | |
18451 | { | |
18452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18453 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18454 | ||
18455 | wxPyEndAllowThreads(__tstate); | |
18456 | if (PyErr_Occurred()) SWIG_fail; | |
18457 | } | |
18458 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
18459 | return resultobj; | |
18460 | fail: | |
18461 | return NULL; | |
18462 | } | |
18463 | ||
18464 | ||
18465 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18466 | PyObject *resultobj; | |
18467 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18468 | wxWindow *result; | |
18469 | PyObject * obj0 = 0 ; | |
18470 | char *kwnames[] = { | |
18471 | (char *) "self", NULL | |
18472 | }; | |
18473 | ||
18474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
18475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, | |
18476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18477 | { | |
18478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18479 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18480 | ||
18481 | wxPyEndAllowThreads(__tstate); | |
18482 | if (PyErr_Occurred()) SWIG_fail; | |
18483 | } | |
18484 | { | |
412d302d | 18485 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18486 | } |
18487 | return resultobj; | |
18488 | fail: | |
18489 | return NULL; | |
18490 | } | |
18491 | ||
18492 | ||
18493 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18494 | PyObject *obj; | |
18495 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18496 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18497 | Py_INCREF(obj); | |
18498 | return Py_BuildValue((char *)""); | |
18499 | } | |
18500 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18501 | PyObject *resultobj; | |
18502 | wxDisplayChangedEvent *result; | |
18503 | char *kwnames[] = { | |
18504 | NULL | |
18505 | }; | |
18506 | ||
18507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18508 | { | |
18509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18510 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18511 | ||
18512 | wxPyEndAllowThreads(__tstate); | |
18513 | if (PyErr_Occurred()) SWIG_fail; | |
18514 | } | |
18515 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
18516 | return resultobj; | |
18517 | fail: | |
18518 | return NULL; | |
18519 | } | |
18520 | ||
18521 | ||
18522 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18523 | PyObject *obj; | |
18524 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18525 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18526 | Py_INCREF(obj); | |
18527 | return Py_BuildValue((char *)""); | |
18528 | } | |
18529 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18530 | PyObject *resultobj; | |
18531 | int arg1 = (int) 0 ; | |
18532 | wxPaletteChangedEvent *result; | |
18533 | PyObject * obj0 = 0 ; | |
18534 | char *kwnames[] = { | |
18535 | (char *) "id", NULL | |
18536 | }; | |
18537 | ||
18538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; | |
18539 | if (obj0) { | |
18540 | arg1 = (int) SWIG_AsInt(obj0); | |
18541 | if (PyErr_Occurred()) SWIG_fail; | |
18542 | } | |
18543 | { | |
18544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18545 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18546 | ||
18547 | wxPyEndAllowThreads(__tstate); | |
18548 | if (PyErr_Occurred()) SWIG_fail; | |
18549 | } | |
18550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
18551 | return resultobj; | |
18552 | fail: | |
18553 | return NULL; | |
18554 | } | |
18555 | ||
18556 | ||
18557 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18558 | PyObject *resultobj; | |
18559 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18560 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18561 | PyObject * obj0 = 0 ; | |
18562 | PyObject * obj1 = 0 ; | |
18563 | char *kwnames[] = { | |
18564 | (char *) "self",(char *) "win", NULL | |
18565 | }; | |
18566 | ||
18567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
18568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18570 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18572 | { | |
18573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18574 | (arg1)->SetChangedWindow(arg2); | |
18575 | ||
18576 | wxPyEndAllowThreads(__tstate); | |
18577 | if (PyErr_Occurred()) SWIG_fail; | |
18578 | } | |
18579 | Py_INCREF(Py_None); resultobj = Py_None; | |
18580 | return resultobj; | |
18581 | fail: | |
18582 | return NULL; | |
18583 | } | |
18584 | ||
18585 | ||
18586 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18587 | PyObject *resultobj; | |
18588 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18589 | wxWindow *result; | |
18590 | PyObject * obj0 = 0 ; | |
18591 | char *kwnames[] = { | |
18592 | (char *) "self", NULL | |
18593 | }; | |
18594 | ||
18595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
18596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18598 | { | |
18599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18600 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18601 | ||
18602 | wxPyEndAllowThreads(__tstate); | |
18603 | if (PyErr_Occurred()) SWIG_fail; | |
18604 | } | |
18605 | { | |
412d302d | 18606 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18607 | } |
18608 | return resultobj; | |
18609 | fail: | |
18610 | return NULL; | |
18611 | } | |
18612 | ||
18613 | ||
18614 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18615 | PyObject *obj; | |
18616 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18617 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18618 | Py_INCREF(obj); | |
18619 | return Py_BuildValue((char *)""); | |
18620 | } | |
18621 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18622 | PyObject *resultobj; | |
18623 | int arg1 = (int) 0 ; | |
18624 | wxQueryNewPaletteEvent *result; | |
18625 | PyObject * obj0 = 0 ; | |
18626 | char *kwnames[] = { | |
18627 | (char *) "winid", NULL | |
18628 | }; | |
18629 | ||
18630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; | |
18631 | if (obj0) { | |
18632 | arg1 = (int) SWIG_AsInt(obj0); | |
18633 | if (PyErr_Occurred()) SWIG_fail; | |
18634 | } | |
18635 | { | |
18636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18637 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18638 | ||
18639 | wxPyEndAllowThreads(__tstate); | |
18640 | if (PyErr_Occurred()) SWIG_fail; | |
18641 | } | |
18642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
18643 | return resultobj; | |
18644 | fail: | |
18645 | return NULL; | |
18646 | } | |
18647 | ||
18648 | ||
18649 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18650 | PyObject *resultobj; | |
18651 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18652 | bool arg2 ; | |
18653 | PyObject * obj0 = 0 ; | |
18654 | PyObject * obj1 = 0 ; | |
18655 | char *kwnames[] = { | |
18656 | (char *) "self",(char *) "realized", NULL | |
18657 | }; | |
18658 | ||
18659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
18660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18662 | arg2 = (bool) SWIG_AsBool(obj1); | |
18663 | if (PyErr_Occurred()) SWIG_fail; | |
18664 | { | |
18665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18666 | (arg1)->SetPaletteRealized(arg2); | |
18667 | ||
18668 | wxPyEndAllowThreads(__tstate); | |
18669 | if (PyErr_Occurred()) SWIG_fail; | |
18670 | } | |
18671 | Py_INCREF(Py_None); resultobj = Py_None; | |
18672 | return resultobj; | |
18673 | fail: | |
18674 | return NULL; | |
18675 | } | |
18676 | ||
18677 | ||
18678 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18679 | PyObject *resultobj; | |
18680 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18681 | bool result; | |
18682 | PyObject * obj0 = 0 ; | |
18683 | char *kwnames[] = { | |
18684 | (char *) "self", NULL | |
18685 | }; | |
18686 | ||
18687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
18688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18690 | { | |
18691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18692 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18693 | ||
18694 | wxPyEndAllowThreads(__tstate); | |
18695 | if (PyErr_Occurred()) SWIG_fail; | |
18696 | } | |
18697 | { | |
18698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18699 | } | |
18700 | return resultobj; | |
18701 | fail: | |
18702 | return NULL; | |
18703 | } | |
18704 | ||
18705 | ||
18706 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
18707 | PyObject *obj; | |
18708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18709 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18710 | Py_INCREF(obj); | |
18711 | return Py_BuildValue((char *)""); | |
18712 | } | |
18713 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18714 | PyObject *resultobj; | |
18715 | wxNavigationKeyEvent *result; | |
18716 | char *kwnames[] = { | |
18717 | NULL | |
18718 | }; | |
18719 | ||
18720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18721 | { | |
18722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18723 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18724 | ||
18725 | wxPyEndAllowThreads(__tstate); | |
18726 | if (PyErr_Occurred()) SWIG_fail; | |
18727 | } | |
18728 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
18729 | return resultobj; | |
18730 | fail: | |
18731 | return NULL; | |
18732 | } | |
18733 | ||
18734 | ||
18735 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18736 | PyObject *resultobj; | |
18737 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18738 | bool result; | |
18739 | PyObject * obj0 = 0 ; | |
18740 | char *kwnames[] = { | |
18741 | (char *) "self", NULL | |
18742 | }; | |
18743 | ||
18744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
18745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18747 | { | |
18748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18749 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18750 | ||
18751 | wxPyEndAllowThreads(__tstate); | |
18752 | if (PyErr_Occurred()) SWIG_fail; | |
18753 | } | |
18754 | { | |
18755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18756 | } | |
18757 | return resultobj; | |
18758 | fail: | |
18759 | return NULL; | |
18760 | } | |
18761 | ||
18762 | ||
18763 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18764 | PyObject *resultobj; | |
18765 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18766 | bool arg2 ; | |
18767 | PyObject * obj0 = 0 ; | |
18768 | PyObject * obj1 = 0 ; | |
18769 | char *kwnames[] = { | |
908b74cd | 18770 | (char *) "self",(char *) "forward", NULL |
d55e5bfc RD |
18771 | }; |
18772 | ||
18773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
18774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18776 | arg2 = (bool) SWIG_AsBool(obj1); | |
18777 | if (PyErr_Occurred()) SWIG_fail; | |
18778 | { | |
18779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18780 | (arg1)->SetDirection(arg2); | |
18781 | ||
18782 | wxPyEndAllowThreads(__tstate); | |
18783 | if (PyErr_Occurred()) SWIG_fail; | |
18784 | } | |
18785 | Py_INCREF(Py_None); resultobj = Py_None; | |
18786 | return resultobj; | |
18787 | fail: | |
18788 | return NULL; | |
18789 | } | |
18790 | ||
18791 | ||
18792 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18793 | PyObject *resultobj; | |
18794 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18795 | bool result; | |
18796 | PyObject * obj0 = 0 ; | |
18797 | char *kwnames[] = { | |
18798 | (char *) "self", NULL | |
18799 | }; | |
18800 | ||
18801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
18802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18804 | { | |
18805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18806 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
18807 | ||
18808 | wxPyEndAllowThreads(__tstate); | |
18809 | if (PyErr_Occurred()) SWIG_fail; | |
18810 | } | |
18811 | { | |
18812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18813 | } | |
18814 | return resultobj; | |
18815 | fail: | |
18816 | return NULL; | |
18817 | } | |
18818 | ||
18819 | ||
18820 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18821 | PyObject *resultobj; | |
18822 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18823 | bool arg2 ; | |
18824 | PyObject * obj0 = 0 ; | |
18825 | PyObject * obj1 = 0 ; | |
18826 | char *kwnames[] = { | |
908b74cd | 18827 | (char *) "self",(char *) "ischange", NULL |
d55e5bfc RD |
18828 | }; |
18829 | ||
18830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
18831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18833 | arg2 = (bool) SWIG_AsBool(obj1); | |
18834 | if (PyErr_Occurred()) SWIG_fail; | |
18835 | { | |
18836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18837 | (arg1)->SetWindowChange(arg2); | |
18838 | ||
18839 | wxPyEndAllowThreads(__tstate); | |
18840 | if (PyErr_Occurred()) SWIG_fail; | |
18841 | } | |
18842 | Py_INCREF(Py_None); resultobj = Py_None; | |
18843 | return resultobj; | |
18844 | fail: | |
18845 | return NULL; | |
18846 | } | |
18847 | ||
18848 | ||
908b74cd RD |
18849 | static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { |
18850 | PyObject *resultobj; | |
18851 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18852 | long arg2 ; | |
18853 | PyObject * obj0 = 0 ; | |
18854 | PyObject * obj1 = 0 ; | |
18855 | char *kwnames[] = { | |
18856 | (char *) "self",(char *) "flags", NULL | |
18857 | }; | |
18858 | ||
18859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
18860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18862 | arg2 = (long) SWIG_AsLong(obj1); | |
18863 | if (PyErr_Occurred()) SWIG_fail; | |
18864 | { | |
18865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18866 | (arg1)->SetFlags(arg2); | |
18867 | ||
18868 | wxPyEndAllowThreads(__tstate); | |
18869 | if (PyErr_Occurred()) SWIG_fail; | |
18870 | } | |
18871 | Py_INCREF(Py_None); resultobj = Py_None; | |
18872 | return resultobj; | |
18873 | fail: | |
18874 | return NULL; | |
18875 | } | |
18876 | ||
18877 | ||
d55e5bfc RD |
18878 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
18879 | PyObject *resultobj; | |
18880 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18881 | wxWindow *result; | |
18882 | PyObject * obj0 = 0 ; | |
18883 | char *kwnames[] = { | |
18884 | (char *) "self", NULL | |
18885 | }; | |
18886 | ||
18887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
18888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18890 | { | |
18891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18892 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18893 | ||
18894 | wxPyEndAllowThreads(__tstate); | |
18895 | if (PyErr_Occurred()) SWIG_fail; | |
18896 | } | |
18897 | { | |
412d302d | 18898 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18899 | } |
18900 | return resultobj; | |
18901 | fail: | |
18902 | return NULL; | |
18903 | } | |
18904 | ||
18905 | ||
18906 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18907 | PyObject *resultobj; | |
18908 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18909 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18910 | PyObject * obj0 = 0 ; | |
18911 | PyObject * obj1 = 0 ; | |
18912 | char *kwnames[] = { | |
18913 | (char *) "self",(char *) "win", NULL | |
18914 | }; | |
18915 | ||
18916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
18917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18919 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18921 | { | |
18922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18923 | (arg1)->SetCurrentFocus(arg2); | |
18924 | ||
18925 | wxPyEndAllowThreads(__tstate); | |
18926 | if (PyErr_Occurred()) SWIG_fail; | |
18927 | } | |
18928 | Py_INCREF(Py_None); resultobj = Py_None; | |
18929 | return resultobj; | |
18930 | fail: | |
18931 | return NULL; | |
18932 | } | |
18933 | ||
18934 | ||
18935 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18936 | PyObject *obj; | |
18937 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18938 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18939 | Py_INCREF(obj); | |
18940 | return Py_BuildValue((char *)""); | |
18941 | } | |
18942 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18943 | PyObject *resultobj; | |
18944 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18945 | wxWindowCreateEvent *result; | |
18946 | PyObject * obj0 = 0 ; | |
18947 | char *kwnames[] = { | |
18948 | (char *) "win", NULL | |
18949 | }; | |
18950 | ||
18951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18952 | if (obj0) { | |
18953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18955 | } | |
18956 | { | |
18957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18958 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18959 | ||
18960 | wxPyEndAllowThreads(__tstate); | |
18961 | if (PyErr_Occurred()) SWIG_fail; | |
18962 | } | |
18963 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); | |
18964 | return resultobj; | |
18965 | fail: | |
18966 | return NULL; | |
18967 | } | |
18968 | ||
18969 | ||
18970 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18971 | PyObject *resultobj; | |
18972 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18973 | wxWindow *result; | |
18974 | PyObject * obj0 = 0 ; | |
18975 | char *kwnames[] = { | |
18976 | (char *) "self", NULL | |
18977 | }; | |
18978 | ||
18979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
18980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, | |
18981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18982 | { | |
18983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18984 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18985 | ||
18986 | wxPyEndAllowThreads(__tstate); | |
18987 | if (PyErr_Occurred()) SWIG_fail; | |
18988 | } | |
18989 | { | |
412d302d | 18990 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18991 | } |
18992 | return resultobj; | |
18993 | fail: | |
18994 | return NULL; | |
18995 | } | |
18996 | ||
18997 | ||
18998 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18999 | PyObject *obj; | |
19000 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19001 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
19002 | Py_INCREF(obj); | |
19003 | return Py_BuildValue((char *)""); | |
19004 | } | |
19005 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19006 | PyObject *resultobj; | |
19007 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19008 | wxWindowDestroyEvent *result; | |
19009 | PyObject * obj0 = 0 ; | |
19010 | char *kwnames[] = { | |
19011 | (char *) "win", NULL | |
19012 | }; | |
19013 | ||
19014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
19015 | if (obj0) { | |
19016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19018 | } | |
19019 | { | |
19020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19021 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
19022 | ||
19023 | wxPyEndAllowThreads(__tstate); | |
19024 | if (PyErr_Occurred()) SWIG_fail; | |
19025 | } | |
19026 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
19027 | return resultobj; | |
19028 | fail: | |
19029 | return NULL; | |
19030 | } | |
19031 | ||
19032 | ||
19033 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19034 | PyObject *resultobj; | |
19035 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
19036 | wxWindow *result; | |
19037 | PyObject * obj0 = 0 ; | |
19038 | char *kwnames[] = { | |
19039 | (char *) "self", NULL | |
19040 | }; | |
19041 | ||
19042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
19043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, | |
19044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19045 | { | |
19046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19047 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
19048 | ||
19049 | wxPyEndAllowThreads(__tstate); | |
19050 | if (PyErr_Occurred()) SWIG_fail; | |
19051 | } | |
19052 | { | |
412d302d | 19053 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19054 | } |
19055 | return resultobj; | |
19056 | fail: | |
19057 | return NULL; | |
19058 | } | |
19059 | ||
19060 | ||
19061 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
19062 | PyObject *obj; | |
19063 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19064 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
19065 | Py_INCREF(obj); | |
19066 | return Py_BuildValue((char *)""); | |
19067 | } | |
19068 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19069 | PyObject *resultobj; | |
19070 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19071 | int arg2 = (int) 0 ; | |
19072 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
19073 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19074 | wxContextMenuEvent *result; | |
19075 | wxPoint temp3 ; | |
19076 | PyObject * obj0 = 0 ; | |
19077 | PyObject * obj1 = 0 ; | |
19078 | PyObject * obj2 = 0 ; | |
19079 | char *kwnames[] = { | |
19080 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
19081 | }; | |
19082 | ||
19083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19084 | if (obj0) { | |
19085 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
19086 | if (PyErr_Occurred()) SWIG_fail; | |
19087 | } | |
19088 | if (obj1) { | |
19089 | arg2 = (int) SWIG_AsInt(obj1); | |
19090 | if (PyErr_Occurred()) SWIG_fail; | |
19091 | } | |
19092 | if (obj2) { | |
19093 | { | |
19094 | arg3 = &temp3; | |
19095 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19096 | } | |
19097 | } | |
19098 | { | |
19099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19100 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
19101 | ||
19102 | wxPyEndAllowThreads(__tstate); | |
19103 | if (PyErr_Occurred()) SWIG_fail; | |
19104 | } | |
19105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); | |
19106 | return resultobj; | |
19107 | fail: | |
19108 | return NULL; | |
19109 | } | |
19110 | ||
19111 | ||
19112 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19113 | PyObject *resultobj; | |
19114 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19115 | wxPoint *result; | |
19116 | PyObject * obj0 = 0 ; | |
19117 | char *kwnames[] = { | |
19118 | (char *) "self", NULL | |
19119 | }; | |
19120 | ||
19121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
19122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19124 | { | |
19125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19126 | { | |
19127 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
19128 | result = (wxPoint *) &_result_ref; | |
19129 | } | |
19130 | ||
19131 | wxPyEndAllowThreads(__tstate); | |
19132 | if (PyErr_Occurred()) SWIG_fail; | |
19133 | } | |
19134 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
19135 | return resultobj; | |
19136 | fail: | |
19137 | return NULL; | |
19138 | } | |
19139 | ||
19140 | ||
19141 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19142 | PyObject *resultobj; | |
19143 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19144 | wxPoint *arg2 = 0 ; | |
19145 | wxPoint temp2 ; | |
19146 | PyObject * obj0 = 0 ; | |
19147 | PyObject * obj1 = 0 ; | |
19148 | char *kwnames[] = { | |
19149 | (char *) "self",(char *) "pos", NULL | |
19150 | }; | |
19151 | ||
19152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
19153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19155 | { | |
19156 | arg2 = &temp2; | |
19157 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19158 | } | |
19159 | { | |
19160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19161 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
19162 | ||
19163 | wxPyEndAllowThreads(__tstate); | |
19164 | if (PyErr_Occurred()) SWIG_fail; | |
19165 | } | |
19166 | Py_INCREF(Py_None); resultobj = Py_None; | |
19167 | return resultobj; | |
19168 | fail: | |
19169 | return NULL; | |
19170 | } | |
19171 | ||
19172 | ||
19173 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
19174 | PyObject *obj; | |
19175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19176 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
19177 | Py_INCREF(obj); | |
19178 | return Py_BuildValue((char *)""); | |
19179 | } | |
19180 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19181 | PyObject *resultobj; | |
19182 | wxIdleEvent *result; | |
19183 | char *kwnames[] = { | |
19184 | NULL | |
19185 | }; | |
19186 | ||
19187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
19188 | { | |
19189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19190 | result = (wxIdleEvent *)new wxIdleEvent(); | |
19191 | ||
19192 | wxPyEndAllowThreads(__tstate); | |
19193 | if (PyErr_Occurred()) SWIG_fail; | |
19194 | } | |
19195 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); | |
19196 | return resultobj; | |
19197 | fail: | |
19198 | return NULL; | |
19199 | } | |
19200 | ||
19201 | ||
19202 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19203 | PyObject *resultobj; | |
19204 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
19205 | bool arg2 = (bool) True ; | |
19206 | PyObject * obj0 = 0 ; | |
19207 | PyObject * obj1 = 0 ; | |
19208 | char *kwnames[] = { | |
19209 | (char *) "self",(char *) "needMore", NULL | |
19210 | }; | |
19211 | ||
19212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
19213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19215 | if (obj1) { | |
19216 | arg2 = (bool) SWIG_AsBool(obj1); | |
19217 | if (PyErr_Occurred()) SWIG_fail; | |
19218 | } | |
19219 | { | |
19220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19221 | (arg1)->RequestMore(arg2); | |
19222 | ||
19223 | wxPyEndAllowThreads(__tstate); | |
19224 | if (PyErr_Occurred()) SWIG_fail; | |
19225 | } | |
19226 | Py_INCREF(Py_None); resultobj = Py_None; | |
19227 | return resultobj; | |
19228 | fail: | |
19229 | return NULL; | |
19230 | } | |
19231 | ||
19232 | ||
19233 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19234 | PyObject *resultobj; | |
19235 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
19236 | bool result; | |
19237 | PyObject * obj0 = 0 ; | |
19238 | char *kwnames[] = { | |
19239 | (char *) "self", NULL | |
19240 | }; | |
19241 | ||
19242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
19243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19245 | { | |
19246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19247 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19248 | ||
19249 | wxPyEndAllowThreads(__tstate); | |
19250 | if (PyErr_Occurred()) SWIG_fail; | |
19251 | } | |
19252 | { | |
19253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19254 | } | |
19255 | return resultobj; | |
19256 | fail: | |
19257 | return NULL; | |
19258 | } | |
19259 | ||
19260 | ||
19261 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19262 | PyObject *resultobj; | |
19263 | int arg1 ; | |
19264 | PyObject * obj0 = 0 ; | |
19265 | char *kwnames[] = { | |
19266 | (char *) "mode", NULL | |
19267 | }; | |
19268 | ||
19269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; | |
19270 | arg1 = (wxIdleMode) SWIG_AsInt(obj0); | |
19271 | if (PyErr_Occurred()) SWIG_fail; | |
19272 | { | |
19273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19274 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19275 | ||
19276 | wxPyEndAllowThreads(__tstate); | |
19277 | if (PyErr_Occurred()) SWIG_fail; | |
19278 | } | |
19279 | Py_INCREF(Py_None); resultobj = Py_None; | |
19280 | return resultobj; | |
19281 | fail: | |
19282 | return NULL; | |
19283 | } | |
19284 | ||
19285 | ||
19286 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19287 | PyObject *resultobj; | |
19288 | int result; | |
19289 | char *kwnames[] = { | |
19290 | NULL | |
19291 | }; | |
19292 | ||
19293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19294 | { | |
19295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19296 | result = (int)wxIdleEvent::GetMode(); | |
19297 | ||
19298 | wxPyEndAllowThreads(__tstate); | |
19299 | if (PyErr_Occurred()) SWIG_fail; | |
19300 | } | |
19301 | resultobj = SWIG_FromInt((int)result); | |
19302 | return resultobj; | |
19303 | fail: | |
19304 | return NULL; | |
19305 | } | |
19306 | ||
19307 | ||
19308 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19309 | PyObject *resultobj; | |
19310 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19311 | bool result; | |
19312 | PyObject * obj0 = 0 ; | |
19313 | char *kwnames[] = { | |
19314 | (char *) "win", NULL | |
19315 | }; | |
19316 | ||
19317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
19318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19320 | { | |
19321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19322 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19323 | ||
19324 | wxPyEndAllowThreads(__tstate); | |
19325 | if (PyErr_Occurred()) SWIG_fail; | |
19326 | } | |
19327 | { | |
19328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19329 | } | |
19330 | return resultobj; | |
19331 | fail: | |
19332 | return NULL; | |
19333 | } | |
19334 | ||
19335 | ||
19336 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
19337 | PyObject *obj; | |
19338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19339 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19340 | Py_INCREF(obj); | |
19341 | return Py_BuildValue((char *)""); | |
19342 | } | |
19343 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19344 | PyObject *resultobj; | |
19345 | int arg1 = (int) 0 ; | |
19346 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19347 | wxPyEvent *result; | |
19348 | PyObject * obj0 = 0 ; | |
19349 | PyObject * obj1 = 0 ; | |
19350 | char *kwnames[] = { | |
19351 | (char *) "winid",(char *) "commandType", NULL | |
19352 | }; | |
19353 | ||
19354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; | |
19355 | if (obj0) { | |
19356 | arg1 = (int) SWIG_AsInt(obj0); | |
19357 | if (PyErr_Occurred()) SWIG_fail; | |
19358 | } | |
19359 | if (obj1) { | |
19360 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
19361 | if (PyErr_Occurred()) SWIG_fail; | |
19362 | } | |
19363 | { | |
19364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19365 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19366 | ||
19367 | wxPyEndAllowThreads(__tstate); | |
19368 | if (PyErr_Occurred()) SWIG_fail; | |
19369 | } | |
19370 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); | |
19371 | return resultobj; | |
19372 | fail: | |
19373 | return NULL; | |
19374 | } | |
19375 | ||
19376 | ||
19377 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19378 | PyObject *resultobj; | |
19379 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19380 | PyObject * obj0 = 0 ; | |
19381 | char *kwnames[] = { | |
19382 | (char *) "self", NULL | |
19383 | }; | |
19384 | ||
19385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
19386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19388 | { | |
19389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19390 | delete arg1; | |
19391 | ||
19392 | wxPyEndAllowThreads(__tstate); | |
19393 | if (PyErr_Occurred()) SWIG_fail; | |
19394 | } | |
19395 | Py_INCREF(Py_None); resultobj = Py_None; | |
19396 | return resultobj; | |
19397 | fail: | |
19398 | return NULL; | |
19399 | } | |
19400 | ||
19401 | ||
19402 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19403 | PyObject *resultobj; | |
19404 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19405 | PyObject *arg2 = (PyObject *) 0 ; | |
19406 | PyObject * obj0 = 0 ; | |
19407 | PyObject * obj1 = 0 ; | |
19408 | char *kwnames[] = { | |
19409 | (char *) "self",(char *) "self", NULL | |
19410 | }; | |
19411 | ||
19412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19415 | arg2 = obj1; | |
19416 | { | |
19417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19418 | (arg1)->SetSelf(arg2); | |
19419 | ||
19420 | wxPyEndAllowThreads(__tstate); | |
19421 | if (PyErr_Occurred()) SWIG_fail; | |
19422 | } | |
19423 | Py_INCREF(Py_None); resultobj = Py_None; | |
19424 | return resultobj; | |
19425 | fail: | |
19426 | return NULL; | |
19427 | } | |
19428 | ||
19429 | ||
19430 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19431 | PyObject *resultobj; | |
19432 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19433 | PyObject *result; | |
19434 | PyObject * obj0 = 0 ; | |
19435 | char *kwnames[] = { | |
19436 | (char *) "self", NULL | |
19437 | }; | |
19438 | ||
19439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19442 | { | |
19443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19444 | result = (PyObject *)(arg1)->GetSelf(); | |
19445 | ||
19446 | wxPyEndAllowThreads(__tstate); | |
19447 | if (PyErr_Occurred()) SWIG_fail; | |
19448 | } | |
19449 | resultobj = result; | |
19450 | return resultobj; | |
19451 | fail: | |
19452 | return NULL; | |
19453 | } | |
19454 | ||
19455 | ||
19456 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
19457 | PyObject *obj; | |
19458 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19459 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19460 | Py_INCREF(obj); | |
19461 | return Py_BuildValue((char *)""); | |
19462 | } | |
19463 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19464 | PyObject *resultobj; | |
19465 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19466 | int arg2 = (int) 0 ; | |
19467 | wxPyCommandEvent *result; | |
19468 | PyObject * obj0 = 0 ; | |
19469 | PyObject * obj1 = 0 ; | |
19470 | char *kwnames[] = { | |
19471 | (char *) "commandType",(char *) "id", NULL | |
19472 | }; | |
19473 | ||
19474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
19475 | if (obj0) { | |
19476 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
19477 | if (PyErr_Occurred()) SWIG_fail; | |
19478 | } | |
19479 | if (obj1) { | |
19480 | arg2 = (int) SWIG_AsInt(obj1); | |
19481 | if (PyErr_Occurred()) SWIG_fail; | |
19482 | } | |
19483 | { | |
19484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19485 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19486 | ||
19487 | wxPyEndAllowThreads(__tstate); | |
19488 | if (PyErr_Occurred()) SWIG_fail; | |
19489 | } | |
19490 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); | |
19491 | return resultobj; | |
19492 | fail: | |
19493 | return NULL; | |
19494 | } | |
19495 | ||
19496 | ||
19497 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19498 | PyObject *resultobj; | |
19499 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19500 | PyObject * obj0 = 0 ; | |
19501 | char *kwnames[] = { | |
19502 | (char *) "self", NULL | |
19503 | }; | |
19504 | ||
19505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
19506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19508 | { | |
19509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19510 | delete arg1; | |
19511 | ||
19512 | wxPyEndAllowThreads(__tstate); | |
19513 | if (PyErr_Occurred()) SWIG_fail; | |
19514 | } | |
19515 | Py_INCREF(Py_None); resultobj = Py_None; | |
19516 | return resultobj; | |
19517 | fail: | |
19518 | return NULL; | |
19519 | } | |
19520 | ||
19521 | ||
19522 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19523 | PyObject *resultobj; | |
19524 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19525 | PyObject *arg2 = (PyObject *) 0 ; | |
19526 | PyObject * obj0 = 0 ; | |
19527 | PyObject * obj1 = 0 ; | |
19528 | char *kwnames[] = { | |
19529 | (char *) "self",(char *) "self", NULL | |
19530 | }; | |
19531 | ||
19532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19535 | arg2 = obj1; | |
19536 | { | |
19537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19538 | (arg1)->SetSelf(arg2); | |
19539 | ||
19540 | wxPyEndAllowThreads(__tstate); | |
19541 | if (PyErr_Occurred()) SWIG_fail; | |
19542 | } | |
19543 | Py_INCREF(Py_None); resultobj = Py_None; | |
19544 | return resultobj; | |
19545 | fail: | |
19546 | return NULL; | |
19547 | } | |
19548 | ||
19549 | ||
19550 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19551 | PyObject *resultobj; | |
19552 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19553 | PyObject *result; | |
19554 | PyObject * obj0 = 0 ; | |
19555 | char *kwnames[] = { | |
19556 | (char *) "self", NULL | |
19557 | }; | |
19558 | ||
19559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19562 | { | |
19563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19564 | result = (PyObject *)(arg1)->GetSelf(); | |
19565 | ||
19566 | wxPyEndAllowThreads(__tstate); | |
19567 | if (PyErr_Occurred()) SWIG_fail; | |
19568 | } | |
19569 | resultobj = result; | |
19570 | return resultobj; | |
19571 | fail: | |
19572 | return NULL; | |
19573 | } | |
19574 | ||
19575 | ||
19576 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
19577 | PyObject *obj; | |
19578 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19579 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19580 | Py_INCREF(obj); | |
19581 | return Py_BuildValue((char *)""); | |
19582 | } | |
19583 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19584 | PyObject *resultobj; | |
19585 | wxPyApp *result; | |
19586 | char *kwnames[] = { | |
19587 | NULL | |
19588 | }; | |
19589 | ||
19590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19591 | { | |
19592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19593 | result = (wxPyApp *)new_wxPyApp(); | |
19594 | ||
19595 | wxPyEndAllowThreads(__tstate); | |
19596 | if (PyErr_Occurred()) SWIG_fail; | |
19597 | } | |
b0f7404b | 19598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1); |
d55e5bfc RD |
19599 | return resultobj; |
19600 | fail: | |
19601 | return NULL; | |
19602 | } | |
19603 | ||
19604 | ||
19605 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19606 | PyObject *resultobj; | |
19607 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19608 | PyObject * obj0 = 0 ; | |
19609 | char *kwnames[] = { | |
19610 | (char *) "self", NULL | |
19611 | }; | |
19612 | ||
19613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
19614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19616 | { | |
19617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19618 | delete arg1; | |
19619 | ||
19620 | wxPyEndAllowThreads(__tstate); | |
19621 | if (PyErr_Occurred()) SWIG_fail; | |
19622 | } | |
19623 | Py_INCREF(Py_None); resultobj = Py_None; | |
19624 | return resultobj; | |
19625 | fail: | |
19626 | return NULL; | |
19627 | } | |
19628 | ||
19629 | ||
19630 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19631 | PyObject *resultobj; | |
19632 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19633 | PyObject *arg2 = (PyObject *) 0 ; | |
19634 | PyObject *arg3 = (PyObject *) 0 ; | |
19635 | PyObject * obj0 = 0 ; | |
19636 | PyObject * obj1 = 0 ; | |
19637 | PyObject * obj2 = 0 ; | |
19638 | char *kwnames[] = { | |
19639 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19640 | }; | |
19641 | ||
19642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19645 | arg2 = obj1; | |
19646 | arg3 = obj2; | |
19647 | { | |
19648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19649 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19650 | ||
19651 | wxPyEndAllowThreads(__tstate); | |
19652 | if (PyErr_Occurred()) SWIG_fail; | |
19653 | } | |
19654 | Py_INCREF(Py_None); resultobj = Py_None; | |
19655 | return resultobj; | |
19656 | fail: | |
19657 | return NULL; | |
19658 | } | |
19659 | ||
19660 | ||
19661 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19662 | PyObject *resultobj; | |
19663 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19664 | wxString result; | |
19665 | PyObject * obj0 = 0 ; | |
19666 | char *kwnames[] = { | |
19667 | (char *) "self", NULL | |
19668 | }; | |
19669 | ||
19670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
19671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19673 | { | |
19674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19675 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19676 | ||
19677 | wxPyEndAllowThreads(__tstate); | |
19678 | if (PyErr_Occurred()) SWIG_fail; | |
19679 | } | |
19680 | { | |
19681 | #if wxUSE_UNICODE | |
19682 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19683 | #else | |
19684 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19685 | #endif | |
19686 | } | |
19687 | return resultobj; | |
19688 | fail: | |
19689 | return NULL; | |
19690 | } | |
19691 | ||
19692 | ||
19693 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19694 | PyObject *resultobj; | |
19695 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19696 | wxString *arg2 = 0 ; | |
19697 | bool temp2 = False ; | |
19698 | PyObject * obj0 = 0 ; | |
19699 | PyObject * obj1 = 0 ; | |
19700 | char *kwnames[] = { | |
19701 | (char *) "self",(char *) "name", NULL | |
19702 | }; | |
19703 | ||
19704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
19705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19707 | { | |
19708 | arg2 = wxString_in_helper(obj1); | |
19709 | if (arg2 == NULL) SWIG_fail; | |
19710 | temp2 = True; | |
19711 | } | |
19712 | { | |
19713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19714 | (arg1)->SetAppName((wxString const &)*arg2); | |
19715 | ||
19716 | wxPyEndAllowThreads(__tstate); | |
19717 | if (PyErr_Occurred()) SWIG_fail; | |
19718 | } | |
19719 | Py_INCREF(Py_None); resultobj = Py_None; | |
19720 | { | |
19721 | if (temp2) | |
19722 | delete arg2; | |
19723 | } | |
19724 | return resultobj; | |
19725 | fail: | |
19726 | { | |
19727 | if (temp2) | |
19728 | delete arg2; | |
19729 | } | |
19730 | return NULL; | |
19731 | } | |
19732 | ||
19733 | ||
19734 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19735 | PyObject *resultobj; | |
19736 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19737 | wxString result; | |
19738 | PyObject * obj0 = 0 ; | |
19739 | char *kwnames[] = { | |
19740 | (char *) "self", NULL | |
19741 | }; | |
19742 | ||
19743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
19744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19746 | { | |
19747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19748 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19749 | ||
19750 | wxPyEndAllowThreads(__tstate); | |
19751 | if (PyErr_Occurred()) SWIG_fail; | |
19752 | } | |
19753 | { | |
19754 | #if wxUSE_UNICODE | |
19755 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19756 | #else | |
19757 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19758 | #endif | |
19759 | } | |
19760 | return resultobj; | |
19761 | fail: | |
19762 | return NULL; | |
19763 | } | |
19764 | ||
19765 | ||
19766 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19767 | PyObject *resultobj; | |
19768 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19769 | wxString *arg2 = 0 ; | |
19770 | bool temp2 = False ; | |
19771 | PyObject * obj0 = 0 ; | |
19772 | PyObject * obj1 = 0 ; | |
19773 | char *kwnames[] = { | |
19774 | (char *) "self",(char *) "name", NULL | |
19775 | }; | |
19776 | ||
19777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
19778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19780 | { | |
19781 | arg2 = wxString_in_helper(obj1); | |
19782 | if (arg2 == NULL) SWIG_fail; | |
19783 | temp2 = True; | |
19784 | } | |
19785 | { | |
19786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19787 | (arg1)->SetClassName((wxString const &)*arg2); | |
19788 | ||
19789 | wxPyEndAllowThreads(__tstate); | |
19790 | if (PyErr_Occurred()) SWIG_fail; | |
19791 | } | |
19792 | Py_INCREF(Py_None); resultobj = Py_None; | |
19793 | { | |
19794 | if (temp2) | |
19795 | delete arg2; | |
19796 | } | |
19797 | return resultobj; | |
19798 | fail: | |
19799 | { | |
19800 | if (temp2) | |
19801 | delete arg2; | |
19802 | } | |
19803 | return NULL; | |
19804 | } | |
19805 | ||
19806 | ||
19807 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19808 | PyObject *resultobj; | |
19809 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19810 | wxString *result; | |
19811 | PyObject * obj0 = 0 ; | |
19812 | char *kwnames[] = { | |
19813 | (char *) "self", NULL | |
19814 | }; | |
19815 | ||
19816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
19817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19819 | { | |
19820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19821 | { | |
19822 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
19823 | result = (wxString *) &_result_ref; | |
19824 | } | |
19825 | ||
19826 | wxPyEndAllowThreads(__tstate); | |
19827 | if (PyErr_Occurred()) SWIG_fail; | |
19828 | } | |
19829 | { | |
19830 | #if wxUSE_UNICODE | |
19831 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19832 | #else | |
19833 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19834 | #endif | |
19835 | } | |
19836 | return resultobj; | |
19837 | fail: | |
19838 | return NULL; | |
19839 | } | |
19840 | ||
19841 | ||
19842 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19843 | PyObject *resultobj; | |
19844 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19845 | wxString *arg2 = 0 ; | |
19846 | bool temp2 = False ; | |
19847 | PyObject * obj0 = 0 ; | |
19848 | PyObject * obj1 = 0 ; | |
19849 | char *kwnames[] = { | |
19850 | (char *) "self",(char *) "name", NULL | |
19851 | }; | |
19852 | ||
19853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
19854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19856 | { | |
19857 | arg2 = wxString_in_helper(obj1); | |
19858 | if (arg2 == NULL) SWIG_fail; | |
19859 | temp2 = True; | |
19860 | } | |
19861 | { | |
19862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19863 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19864 | ||
19865 | wxPyEndAllowThreads(__tstate); | |
19866 | if (PyErr_Occurred()) SWIG_fail; | |
19867 | } | |
19868 | Py_INCREF(Py_None); resultobj = Py_None; | |
19869 | { | |
19870 | if (temp2) | |
19871 | delete arg2; | |
19872 | } | |
19873 | return resultobj; | |
19874 | fail: | |
19875 | { | |
19876 | if (temp2) | |
19877 | delete arg2; | |
19878 | } | |
19879 | return NULL; | |
19880 | } | |
19881 | ||
19882 | ||
19883 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19884 | PyObject *resultobj; | |
19885 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19886 | wxAppTraits *result; | |
19887 | PyObject * obj0 = 0 ; | |
19888 | char *kwnames[] = { | |
19889 | (char *) "self", NULL | |
19890 | }; | |
19891 | ||
19892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
19893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19895 | { | |
19896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19897 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19898 | ||
19899 | wxPyEndAllowThreads(__tstate); | |
19900 | if (PyErr_Occurred()) SWIG_fail; | |
19901 | } | |
19902 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); | |
19903 | return resultobj; | |
19904 | fail: | |
19905 | return NULL; | |
19906 | } | |
19907 | ||
19908 | ||
19909 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19910 | PyObject *resultobj; | |
19911 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19912 | PyObject * obj0 = 0 ; | |
19913 | char *kwnames[] = { | |
19914 | (char *) "self", NULL | |
19915 | }; | |
19916 | ||
19917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
19918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19920 | { | |
19921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19922 | (arg1)->ProcessPendingEvents(); | |
19923 | ||
19924 | wxPyEndAllowThreads(__tstate); | |
19925 | if (PyErr_Occurred()) SWIG_fail; | |
19926 | } | |
19927 | Py_INCREF(Py_None); resultobj = Py_None; | |
19928 | return resultobj; | |
19929 | fail: | |
19930 | return NULL; | |
19931 | } | |
19932 | ||
19933 | ||
19934 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19935 | PyObject *resultobj; | |
19936 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19937 | bool arg2 = (bool) False ; | |
19938 | bool result; | |
19939 | PyObject * obj0 = 0 ; | |
19940 | PyObject * obj1 = 0 ; | |
19941 | char *kwnames[] = { | |
19942 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19943 | }; | |
19944 | ||
19945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
19946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19948 | if (obj1) { | |
19949 | arg2 = (bool) SWIG_AsBool(obj1); | |
19950 | if (PyErr_Occurred()) SWIG_fail; | |
19951 | } | |
19952 | { | |
19953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19954 | result = (bool)(arg1)->Yield(arg2); | |
19955 | ||
19956 | wxPyEndAllowThreads(__tstate); | |
19957 | if (PyErr_Occurred()) SWIG_fail; | |
19958 | } | |
19959 | { | |
19960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19961 | } | |
19962 | return resultobj; | |
19963 | fail: | |
19964 | return NULL; | |
19965 | } | |
19966 | ||
19967 | ||
19968 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19969 | PyObject *resultobj; | |
19970 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19971 | PyObject * obj0 = 0 ; | |
19972 | char *kwnames[] = { | |
19973 | (char *) "self", NULL | |
19974 | }; | |
19975 | ||
19976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
19977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19979 | { | |
19980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19981 | (arg1)->WakeUpIdle(); | |
19982 | ||
19983 | wxPyEndAllowThreads(__tstate); | |
19984 | if (PyErr_Occurred()) SWIG_fail; | |
19985 | } | |
19986 | Py_INCREF(Py_None); resultobj = Py_None; | |
19987 | return resultobj; | |
19988 | fail: | |
19989 | return NULL; | |
19990 | } | |
19991 | ||
19992 | ||
19993 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19994 | PyObject *resultobj; | |
19995 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19996 | int result; | |
19997 | PyObject * obj0 = 0 ; | |
19998 | char *kwnames[] = { | |
19999 | (char *) "self", NULL | |
20000 | }; | |
20001 | ||
20002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
20003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20005 | { | |
20006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20007 | result = (int)(arg1)->MainLoop(); | |
20008 | ||
20009 | wxPyEndAllowThreads(__tstate); | |
20010 | if (PyErr_Occurred()) SWIG_fail; | |
20011 | } | |
20012 | resultobj = SWIG_FromInt((int)result); | |
20013 | return resultobj; | |
20014 | fail: | |
20015 | return NULL; | |
20016 | } | |
20017 | ||
20018 | ||
20019 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20020 | PyObject *resultobj; | |
20021 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20022 | PyObject * obj0 = 0 ; | |
20023 | char *kwnames[] = { | |
20024 | (char *) "self", NULL | |
20025 | }; | |
20026 | ||
20027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
20028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20030 | { | |
20031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20032 | (arg1)->Exit(); | |
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_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20045 | PyObject *resultobj; | |
20046 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20047 | PyObject * obj0 = 0 ; | |
20048 | char *kwnames[] = { | |
20049 | (char *) "self", NULL | |
20050 | }; | |
20051 | ||
20052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
20053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20055 | { | |
20056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20057 | (arg1)->ExitMainLoop(); | |
20058 | ||
20059 | wxPyEndAllowThreads(__tstate); | |
20060 | if (PyErr_Occurred()) SWIG_fail; | |
20061 | } | |
20062 | Py_INCREF(Py_None); resultobj = Py_None; | |
20063 | return resultobj; | |
20064 | fail: | |
20065 | return NULL; | |
20066 | } | |
20067 | ||
20068 | ||
20069 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20070 | PyObject *resultobj; | |
20071 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20072 | bool result; | |
20073 | PyObject * obj0 = 0 ; | |
20074 | char *kwnames[] = { | |
20075 | (char *) "self", NULL | |
20076 | }; | |
20077 | ||
20078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
20079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20081 | { | |
20082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20083 | result = (bool)(arg1)->Pending(); | |
20084 | ||
20085 | wxPyEndAllowThreads(__tstate); | |
20086 | if (PyErr_Occurred()) SWIG_fail; | |
20087 | } | |
20088 | { | |
20089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20090 | } | |
20091 | return resultobj; | |
20092 | fail: | |
20093 | return NULL; | |
20094 | } | |
20095 | ||
20096 | ||
20097 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20098 | PyObject *resultobj; | |
20099 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20100 | bool result; | |
20101 | PyObject * obj0 = 0 ; | |
20102 | char *kwnames[] = { | |
20103 | (char *) "self", NULL | |
20104 | }; | |
20105 | ||
20106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
20107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20109 | { | |
20110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20111 | result = (bool)(arg1)->Dispatch(); | |
20112 | ||
20113 | wxPyEndAllowThreads(__tstate); | |
20114 | if (PyErr_Occurred()) SWIG_fail; | |
20115 | } | |
20116 | { | |
20117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20118 | } | |
20119 | return resultobj; | |
20120 | fail: | |
20121 | return NULL; | |
20122 | } | |
20123 | ||
20124 | ||
20125 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20126 | PyObject *resultobj; | |
20127 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20128 | bool result; | |
20129 | PyObject * obj0 = 0 ; | |
20130 | char *kwnames[] = { | |
20131 | (char *) "self", NULL | |
20132 | }; | |
20133 | ||
20134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
20135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20137 | { | |
20138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20139 | result = (bool)(arg1)->ProcessIdle(); | |
20140 | ||
20141 | wxPyEndAllowThreads(__tstate); | |
20142 | if (PyErr_Occurred()) SWIG_fail; | |
20143 | } | |
20144 | { | |
20145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20146 | } | |
20147 | return resultobj; | |
20148 | fail: | |
20149 | return NULL; | |
20150 | } | |
20151 | ||
20152 | ||
20153 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20154 | PyObject *resultobj; | |
20155 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20156 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20157 | wxIdleEvent *arg3 = 0 ; | |
20158 | bool result; | |
20159 | PyObject * obj0 = 0 ; | |
20160 | PyObject * obj1 = 0 ; | |
20161 | PyObject * obj2 = 0 ; | |
20162 | char *kwnames[] = { | |
20163 | (char *) "self",(char *) "win",(char *) "event", NULL | |
20164 | }; | |
20165 | ||
20166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20169 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20171 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
20172 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20173 | SWIG_fail; | |
20174 | if (arg3 == NULL) { | |
20175 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20176 | SWIG_fail; | |
20177 | } | |
20178 | { | |
20179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20180 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
20181 | ||
20182 | wxPyEndAllowThreads(__tstate); | |
20183 | if (PyErr_Occurred()) SWIG_fail; | |
20184 | } | |
20185 | { | |
20186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20187 | } | |
20188 | return resultobj; | |
20189 | fail: | |
20190 | return NULL; | |
20191 | } | |
20192 | ||
20193 | ||
20194 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20195 | PyObject *resultobj; | |
20196 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20197 | bool result; | |
20198 | PyObject * obj0 = 0 ; | |
20199 | char *kwnames[] = { | |
20200 | (char *) "self", NULL | |
20201 | }; | |
20202 | ||
20203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
20204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20206 | { | |
20207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20208 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
20209 | ||
20210 | wxPyEndAllowThreads(__tstate); | |
20211 | if (PyErr_Occurred()) SWIG_fail; | |
20212 | } | |
20213 | { | |
20214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20215 | } | |
20216 | return resultobj; | |
20217 | fail: | |
20218 | return NULL; | |
20219 | } | |
20220 | ||
20221 | ||
20222 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20223 | PyObject *resultobj; | |
20224 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20225 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20226 | PyObject * obj0 = 0 ; | |
20227 | PyObject * obj1 = 0 ; | |
20228 | char *kwnames[] = { | |
20229 | (char *) "self",(char *) "win", NULL | |
20230 | }; | |
20231 | ||
20232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
20233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20235 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20237 | { | |
20238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20239 | (arg1)->SetTopWindow(arg2); | |
20240 | ||
20241 | wxPyEndAllowThreads(__tstate); | |
20242 | if (PyErr_Occurred()) SWIG_fail; | |
20243 | } | |
20244 | Py_INCREF(Py_None); resultobj = Py_None; | |
20245 | return resultobj; | |
20246 | fail: | |
20247 | return NULL; | |
20248 | } | |
20249 | ||
20250 | ||
20251 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20252 | PyObject *resultobj; | |
20253 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20254 | wxWindow *result; | |
20255 | PyObject * obj0 = 0 ; | |
20256 | char *kwnames[] = { | |
20257 | (char *) "self", NULL | |
20258 | }; | |
20259 | ||
20260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
20261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20263 | { | |
20264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20265 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20266 | ||
20267 | wxPyEndAllowThreads(__tstate); | |
20268 | if (PyErr_Occurred()) SWIG_fail; | |
20269 | } | |
20270 | { | |
412d302d | 20271 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20272 | } |
20273 | return resultobj; | |
20274 | fail: | |
20275 | return NULL; | |
20276 | } | |
20277 | ||
20278 | ||
20279 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20280 | PyObject *resultobj; | |
20281 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20282 | bool arg2 ; | |
20283 | PyObject * obj0 = 0 ; | |
20284 | PyObject * obj1 = 0 ; | |
20285 | char *kwnames[] = { | |
20286 | (char *) "self",(char *) "flag", NULL | |
20287 | }; | |
20288 | ||
20289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
20290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20292 | arg2 = (bool) SWIG_AsBool(obj1); | |
20293 | if (PyErr_Occurred()) SWIG_fail; | |
20294 | { | |
20295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20296 | (arg1)->SetExitOnFrameDelete(arg2); | |
20297 | ||
20298 | wxPyEndAllowThreads(__tstate); | |
20299 | if (PyErr_Occurred()) SWIG_fail; | |
20300 | } | |
20301 | Py_INCREF(Py_None); resultobj = Py_None; | |
20302 | return resultobj; | |
20303 | fail: | |
20304 | return NULL; | |
20305 | } | |
20306 | ||
20307 | ||
20308 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20309 | PyObject *resultobj; | |
20310 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20311 | bool result; | |
20312 | PyObject * obj0 = 0 ; | |
20313 | char *kwnames[] = { | |
20314 | (char *) "self", NULL | |
20315 | }; | |
20316 | ||
20317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
20318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20320 | { | |
20321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20322 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20323 | ||
20324 | wxPyEndAllowThreads(__tstate); | |
20325 | if (PyErr_Occurred()) SWIG_fail; | |
20326 | } | |
20327 | { | |
20328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20329 | } | |
20330 | return resultobj; | |
20331 | fail: | |
20332 | return NULL; | |
20333 | } | |
20334 | ||
20335 | ||
20336 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20337 | PyObject *resultobj; | |
20338 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20339 | bool arg2 ; | |
20340 | PyObject * obj0 = 0 ; | |
20341 | PyObject * obj1 = 0 ; | |
20342 | char *kwnames[] = { | |
20343 | (char *) "self",(char *) "flag", NULL | |
20344 | }; | |
20345 | ||
20346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
20347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20349 | arg2 = (bool) SWIG_AsBool(obj1); | |
20350 | if (PyErr_Occurred()) SWIG_fail; | |
20351 | { | |
20352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20353 | (arg1)->SetUseBestVisual(arg2); | |
20354 | ||
20355 | wxPyEndAllowThreads(__tstate); | |
20356 | if (PyErr_Occurred()) SWIG_fail; | |
20357 | } | |
20358 | Py_INCREF(Py_None); resultobj = Py_None; | |
20359 | return resultobj; | |
20360 | fail: | |
20361 | return NULL; | |
20362 | } | |
20363 | ||
20364 | ||
20365 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20366 | PyObject *resultobj; | |
20367 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20368 | bool result; | |
20369 | PyObject * obj0 = 0 ; | |
20370 | char *kwnames[] = { | |
20371 | (char *) "self", NULL | |
20372 | }; | |
20373 | ||
20374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
20375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20377 | { | |
20378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20379 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20380 | ||
20381 | wxPyEndAllowThreads(__tstate); | |
20382 | if (PyErr_Occurred()) SWIG_fail; | |
20383 | } | |
20384 | { | |
20385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20386 | } | |
20387 | return resultobj; | |
20388 | fail: | |
20389 | return NULL; | |
20390 | } | |
20391 | ||
20392 | ||
20393 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20394 | PyObject *resultobj; | |
20395 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20396 | int arg2 ; | |
20397 | PyObject * obj0 = 0 ; | |
20398 | PyObject * obj1 = 0 ; | |
20399 | char *kwnames[] = { | |
20400 | (char *) "self",(char *) "mode", NULL | |
20401 | }; | |
20402 | ||
20403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
20404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20406 | arg2 = (int) SWIG_AsInt(obj1); | |
20407 | if (PyErr_Occurred()) SWIG_fail; | |
20408 | { | |
20409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20410 | (arg1)->SetPrintMode(arg2); | |
20411 | ||
20412 | wxPyEndAllowThreads(__tstate); | |
20413 | if (PyErr_Occurred()) SWIG_fail; | |
20414 | } | |
20415 | Py_INCREF(Py_None); resultobj = Py_None; | |
20416 | return resultobj; | |
20417 | fail: | |
20418 | return NULL; | |
20419 | } | |
20420 | ||
20421 | ||
20422 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20423 | PyObject *resultobj; | |
20424 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20425 | int result; | |
20426 | PyObject * obj0 = 0 ; | |
20427 | char *kwnames[] = { | |
20428 | (char *) "self", NULL | |
20429 | }; | |
20430 | ||
20431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
20432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20434 | { | |
20435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20436 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20437 | ||
20438 | wxPyEndAllowThreads(__tstate); | |
20439 | if (PyErr_Occurred()) SWIG_fail; | |
20440 | } | |
20441 | resultobj = SWIG_FromInt((int)result); | |
20442 | return resultobj; | |
20443 | fail: | |
20444 | return NULL; | |
20445 | } | |
20446 | ||
20447 | ||
20448 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20449 | PyObject *resultobj; | |
20450 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20451 | int arg2 ; | |
20452 | PyObject * obj0 = 0 ; | |
20453 | PyObject * obj1 = 0 ; | |
20454 | char *kwnames[] = { | |
20455 | (char *) "self",(char *) "mode", NULL | |
20456 | }; | |
20457 | ||
20458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; | |
20459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20461 | arg2 = (int) SWIG_AsInt(obj1); | |
20462 | if (PyErr_Occurred()) SWIG_fail; | |
20463 | { | |
20464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20465 | (arg1)->SetAssertMode(arg2); | |
20466 | ||
20467 | wxPyEndAllowThreads(__tstate); | |
20468 | if (PyErr_Occurred()) SWIG_fail; | |
20469 | } | |
20470 | Py_INCREF(Py_None); resultobj = Py_None; | |
20471 | return resultobj; | |
20472 | fail: | |
20473 | return NULL; | |
20474 | } | |
20475 | ||
20476 | ||
20477 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20478 | PyObject *resultobj; | |
20479 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20480 | int result; | |
20481 | PyObject * obj0 = 0 ; | |
20482 | char *kwnames[] = { | |
20483 | (char *) "self", NULL | |
20484 | }; | |
20485 | ||
20486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
20487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20489 | { | |
20490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20491 | result = (int)(arg1)->GetAssertMode(); | |
20492 | ||
20493 | wxPyEndAllowThreads(__tstate); | |
20494 | if (PyErr_Occurred()) SWIG_fail; | |
20495 | } | |
20496 | resultobj = SWIG_FromInt((int)result); | |
20497 | return resultobj; | |
20498 | fail: | |
20499 | return NULL; | |
20500 | } | |
20501 | ||
20502 | ||
20503 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20504 | PyObject *resultobj; | |
20505 | bool result; | |
20506 | char *kwnames[] = { | |
20507 | NULL | |
20508 | }; | |
20509 | ||
20510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20511 | { | |
20512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20513 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20514 | ||
20515 | wxPyEndAllowThreads(__tstate); | |
20516 | if (PyErr_Occurred()) SWIG_fail; | |
20517 | } | |
20518 | { | |
20519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20520 | } | |
20521 | return resultobj; | |
20522 | fail: | |
20523 | return NULL; | |
20524 | } | |
20525 | ||
20526 | ||
20527 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20528 | PyObject *resultobj; | |
20529 | long result; | |
20530 | char *kwnames[] = { | |
20531 | NULL | |
20532 | }; | |
20533 | ||
20534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20535 | { | |
20536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20537 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20538 | ||
20539 | wxPyEndAllowThreads(__tstate); | |
20540 | if (PyErr_Occurred()) SWIG_fail; | |
20541 | } | |
20542 | resultobj = SWIG_FromLong((long)result); | |
20543 | return resultobj; | |
20544 | fail: | |
20545 | return NULL; | |
20546 | } | |
20547 | ||
20548 | ||
20549 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20550 | PyObject *resultobj; | |
20551 | long result; | |
20552 | char *kwnames[] = { | |
20553 | NULL | |
20554 | }; | |
20555 | ||
20556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20557 | { | |
20558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20559 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20560 | ||
20561 | wxPyEndAllowThreads(__tstate); | |
20562 | if (PyErr_Occurred()) SWIG_fail; | |
20563 | } | |
20564 | resultobj = SWIG_FromLong((long)result); | |
20565 | return resultobj; | |
20566 | fail: | |
20567 | return NULL; | |
20568 | } | |
20569 | ||
20570 | ||
20571 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20572 | PyObject *resultobj; | |
20573 | long result; | |
20574 | char *kwnames[] = { | |
20575 | NULL | |
20576 | }; | |
20577 | ||
20578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20579 | { | |
20580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20581 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20582 | ||
20583 | wxPyEndAllowThreads(__tstate); | |
20584 | if (PyErr_Occurred()) SWIG_fail; | |
20585 | } | |
20586 | resultobj = SWIG_FromLong((long)result); | |
20587 | return resultobj; | |
20588 | fail: | |
20589 | return NULL; | |
20590 | } | |
20591 | ||
20592 | ||
20593 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20594 | PyObject *resultobj; | |
20595 | wxString result; | |
20596 | char *kwnames[] = { | |
20597 | NULL | |
20598 | }; | |
20599 | ||
20600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20601 | { | |
20602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20603 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20604 | ||
20605 | wxPyEndAllowThreads(__tstate); | |
20606 | if (PyErr_Occurred()) SWIG_fail; | |
20607 | } | |
20608 | { | |
20609 | #if wxUSE_UNICODE | |
20610 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20611 | #else | |
20612 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20613 | #endif | |
20614 | } | |
20615 | return resultobj; | |
20616 | fail: | |
20617 | return NULL; | |
20618 | } | |
20619 | ||
20620 | ||
20621 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20622 | PyObject *resultobj; | |
20623 | bool arg1 ; | |
20624 | PyObject * obj0 = 0 ; | |
20625 | char *kwnames[] = { | |
20626 | (char *) "val", NULL | |
20627 | }; | |
20628 | ||
20629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
20630 | arg1 = (bool) SWIG_AsBool(obj0); | |
20631 | if (PyErr_Occurred()) SWIG_fail; | |
20632 | { | |
20633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20634 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20635 | ||
20636 | wxPyEndAllowThreads(__tstate); | |
20637 | if (PyErr_Occurred()) SWIG_fail; | |
20638 | } | |
20639 | Py_INCREF(Py_None); resultobj = Py_None; | |
20640 | return resultobj; | |
20641 | fail: | |
20642 | return NULL; | |
20643 | } | |
20644 | ||
20645 | ||
20646 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20647 | PyObject *resultobj; | |
20648 | long arg1 ; | |
20649 | PyObject * obj0 = 0 ; | |
20650 | char *kwnames[] = { | |
20651 | (char *) "val", NULL | |
20652 | }; | |
20653 | ||
20654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; | |
20655 | arg1 = (long) SWIG_AsLong(obj0); | |
20656 | if (PyErr_Occurred()) SWIG_fail; | |
20657 | { | |
20658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20659 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20660 | ||
20661 | wxPyEndAllowThreads(__tstate); | |
20662 | if (PyErr_Occurred()) SWIG_fail; | |
20663 | } | |
20664 | Py_INCREF(Py_None); resultobj = Py_None; | |
20665 | return resultobj; | |
20666 | fail: | |
20667 | return NULL; | |
20668 | } | |
20669 | ||
20670 | ||
20671 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20672 | PyObject *resultobj; | |
20673 | long arg1 ; | |
20674 | PyObject * obj0 = 0 ; | |
20675 | char *kwnames[] = { | |
20676 | (char *) "val", NULL | |
20677 | }; | |
20678 | ||
20679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; | |
20680 | arg1 = (long) SWIG_AsLong(obj0); | |
20681 | if (PyErr_Occurred()) SWIG_fail; | |
20682 | { | |
20683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20684 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20685 | ||
20686 | wxPyEndAllowThreads(__tstate); | |
20687 | if (PyErr_Occurred()) SWIG_fail; | |
20688 | } | |
20689 | Py_INCREF(Py_None); resultobj = Py_None; | |
20690 | return resultobj; | |
20691 | fail: | |
20692 | return NULL; | |
20693 | } | |
20694 | ||
20695 | ||
20696 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20697 | PyObject *resultobj; | |
20698 | long arg1 ; | |
20699 | PyObject * obj0 = 0 ; | |
20700 | char *kwnames[] = { | |
20701 | (char *) "val", NULL | |
20702 | }; | |
20703 | ||
20704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; | |
20705 | arg1 = (long) SWIG_AsLong(obj0); | |
20706 | if (PyErr_Occurred()) SWIG_fail; | |
20707 | { | |
20708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20709 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20710 | ||
20711 | wxPyEndAllowThreads(__tstate); | |
20712 | if (PyErr_Occurred()) SWIG_fail; | |
20713 | } | |
20714 | Py_INCREF(Py_None); resultobj = Py_None; | |
20715 | return resultobj; | |
20716 | fail: | |
20717 | return NULL; | |
20718 | } | |
20719 | ||
20720 | ||
20721 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20722 | PyObject *resultobj; | |
20723 | wxString *arg1 = 0 ; | |
20724 | bool temp1 = False ; | |
20725 | PyObject * obj0 = 0 ; | |
20726 | char *kwnames[] = { | |
20727 | (char *) "val", NULL | |
20728 | }; | |
20729 | ||
20730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20731 | { | |
20732 | arg1 = wxString_in_helper(obj0); | |
20733 | if (arg1 == NULL) SWIG_fail; | |
20734 | temp1 = True; | |
20735 | } | |
20736 | { | |
20737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20738 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20739 | ||
20740 | wxPyEndAllowThreads(__tstate); | |
20741 | if (PyErr_Occurred()) SWIG_fail; | |
20742 | } | |
20743 | Py_INCREF(Py_None); resultobj = Py_None; | |
20744 | { | |
20745 | if (temp1) | |
20746 | delete arg1; | |
20747 | } | |
20748 | return resultobj; | |
20749 | fail: | |
20750 | { | |
20751 | if (temp1) | |
20752 | delete arg1; | |
20753 | } | |
20754 | return NULL; | |
20755 | } | |
20756 | ||
20757 | ||
20758 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20759 | PyObject *resultobj; | |
20760 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20761 | PyObject * obj0 = 0 ; | |
20762 | char *kwnames[] = { | |
20763 | (char *) "self", NULL | |
20764 | }; | |
20765 | ||
20766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
20767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20769 | { | |
20770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20771 | (arg1)->_BootstrapApp(); | |
20772 | ||
20773 | wxPyEndAllowThreads(__tstate); | |
20774 | if (PyErr_Occurred()) SWIG_fail; | |
20775 | } | |
20776 | Py_INCREF(Py_None); resultobj = Py_None; | |
20777 | return resultobj; | |
20778 | fail: | |
20779 | return NULL; | |
20780 | } | |
20781 | ||
20782 | ||
20783 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20784 | PyObject *resultobj; | |
20785 | int result; | |
20786 | char *kwnames[] = { | |
20787 | NULL | |
20788 | }; | |
20789 | ||
20790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
20791 | { | |
20792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20793 | result = (int)wxPyApp::GetComCtl32Version(); | |
20794 | ||
20795 | wxPyEndAllowThreads(__tstate); | |
20796 | if (PyErr_Occurred()) SWIG_fail; | |
20797 | } | |
20798 | resultobj = SWIG_FromInt((int)result); | |
20799 | return resultobj; | |
20800 | fail: | |
20801 | return NULL; | |
20802 | } | |
20803 | ||
20804 | ||
20805 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
20806 | PyObject *obj; | |
20807 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20808 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
20809 | Py_INCREF(obj); | |
20810 | return Py_BuildValue((char *)""); | |
20811 | } | |
20812 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20813 | PyObject *resultobj; | |
20814 | char *kwnames[] = { | |
20815 | NULL | |
20816 | }; | |
20817 | ||
20818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
20819 | { | |
20820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20821 | wxExit(); | |
20822 | ||
20823 | wxPyEndAllowThreads(__tstate); | |
20824 | if (PyErr_Occurred()) SWIG_fail; | |
20825 | } | |
20826 | Py_INCREF(Py_None); resultobj = Py_None; | |
20827 | return resultobj; | |
20828 | fail: | |
20829 | return NULL; | |
20830 | } | |
20831 | ||
20832 | ||
20833 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20834 | PyObject *resultobj; | |
20835 | bool result; | |
20836 | char *kwnames[] = { | |
20837 | NULL | |
20838 | }; | |
20839 | ||
20840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
20841 | { | |
20842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20843 | result = (bool)wxYield(); | |
20844 | ||
20845 | wxPyEndAllowThreads(__tstate); | |
20846 | if (PyErr_Occurred()) SWIG_fail; | |
20847 | } | |
20848 | { | |
20849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20850 | } | |
20851 | return resultobj; | |
20852 | fail: | |
20853 | return NULL; | |
20854 | } | |
20855 | ||
20856 | ||
20857 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20858 | PyObject *resultobj; | |
20859 | bool result; | |
20860 | char *kwnames[] = { | |
20861 | NULL | |
20862 | }; | |
20863 | ||
20864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
20865 | { | |
20866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20867 | result = (bool)wxYieldIfNeeded(); | |
20868 | ||
20869 | wxPyEndAllowThreads(__tstate); | |
20870 | if (PyErr_Occurred()) SWIG_fail; | |
20871 | } | |
20872 | { | |
20873 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20874 | } | |
20875 | return resultobj; | |
20876 | fail: | |
20877 | return NULL; | |
20878 | } | |
20879 | ||
20880 | ||
20881 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20882 | PyObject *resultobj; | |
20883 | wxWindow *arg1 = (wxWindow *) NULL ; | |
20884 | bool arg2 = (bool) False ; | |
20885 | bool result; | |
20886 | PyObject * obj0 = 0 ; | |
20887 | PyObject * obj1 = 0 ; | |
20888 | char *kwnames[] = { | |
20889 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20890 | }; | |
20891 | ||
20892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20893 | if (obj0) { | |
20894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
20895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20896 | } | |
20897 | if (obj1) { | |
20898 | arg2 = (bool) SWIG_AsBool(obj1); | |
20899 | if (PyErr_Occurred()) SWIG_fail; | |
20900 | } | |
20901 | { | |
20902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20903 | result = (bool)wxSafeYield(arg1,arg2); | |
20904 | ||
20905 | wxPyEndAllowThreads(__tstate); | |
20906 | if (PyErr_Occurred()) SWIG_fail; | |
20907 | } | |
20908 | { | |
20909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20910 | } | |
20911 | return resultobj; | |
20912 | fail: | |
20913 | return NULL; | |
20914 | } | |
20915 | ||
20916 | ||
20917 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20918 | PyObject *resultobj; | |
20919 | char *kwnames[] = { | |
20920 | NULL | |
20921 | }; | |
20922 | ||
20923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20924 | { | |
20925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20926 | wxWakeUpIdle(); | |
20927 | ||
20928 | wxPyEndAllowThreads(__tstate); | |
20929 | if (PyErr_Occurred()) SWIG_fail; | |
20930 | } | |
20931 | Py_INCREF(Py_None); resultobj = Py_None; | |
20932 | return resultobj; | |
20933 | fail: | |
20934 | return NULL; | |
20935 | } | |
20936 | ||
20937 | ||
20938 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20939 | PyObject *resultobj; | |
20940 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20941 | wxEvent *arg2 = 0 ; | |
20942 | PyObject * obj0 = 0 ; | |
20943 | PyObject * obj1 = 0 ; | |
20944 | char *kwnames[] = { | |
20945 | (char *) "dest",(char *) "event", NULL | |
20946 | }; | |
20947 | ||
20948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
20949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
20950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20951 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
20952 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20953 | SWIG_fail; | |
20954 | if (arg2 == NULL) { | |
20955 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20956 | SWIG_fail; | |
20957 | } | |
20958 | { | |
20959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20960 | wxPostEvent(arg1,*arg2); | |
20961 | ||
20962 | wxPyEndAllowThreads(__tstate); | |
20963 | if (PyErr_Occurred()) SWIG_fail; | |
20964 | } | |
20965 | Py_INCREF(Py_None); resultobj = Py_None; | |
20966 | return resultobj; | |
20967 | fail: | |
20968 | return NULL; | |
20969 | } | |
20970 | ||
20971 | ||
20972 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20973 | PyObject *resultobj; | |
20974 | char *kwnames[] = { | |
20975 | NULL | |
20976 | }; | |
20977 | ||
20978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20979 | { | |
20980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20981 | wxApp_CleanUp(); | |
20982 | ||
20983 | wxPyEndAllowThreads(__tstate); | |
20984 | if (PyErr_Occurred()) SWIG_fail; | |
20985 | } | |
20986 | Py_INCREF(Py_None); resultobj = Py_None; | |
20987 | return resultobj; | |
20988 | fail: | |
20989 | return NULL; | |
20990 | } | |
20991 | ||
20992 | ||
20993 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20994 | PyObject *resultobj; | |
20995 | wxPyApp *result; | |
20996 | char *kwnames[] = { | |
20997 | NULL | |
20998 | }; | |
20999 | ||
21000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
21001 | { | |
21002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 21003 | result = (wxPyApp *)wxPyGetApp(); |
d55e5bfc RD |
21004 | |
21005 | wxPyEndAllowThreads(__tstate); | |
21006 | if (PyErr_Occurred()) SWIG_fail; | |
21007 | } | |
21008 | { | |
412d302d | 21009 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21010 | } |
21011 | return resultobj; | |
21012 | fail: | |
21013 | return NULL; | |
21014 | } | |
21015 | ||
21016 | ||
21017 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21018 | PyObject *resultobj; | |
21019 | int arg1 = (int) 0 ; | |
21020 | int arg2 = (int) 0 ; | |
21021 | int arg3 = (int) 0 ; | |
d55e5bfc RD |
21022 | wxAcceleratorEntry *result; |
21023 | PyObject * obj0 = 0 ; | |
21024 | PyObject * obj1 = 0 ; | |
21025 | PyObject * obj2 = 0 ; | |
d55e5bfc | 21026 | char *kwnames[] = { |
c24da6d6 | 21027 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
d55e5bfc RD |
21028 | }; |
21029 | ||
c24da6d6 | 21030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
21031 | if (obj0) { |
21032 | arg1 = (int) SWIG_AsInt(obj0); | |
21033 | if (PyErr_Occurred()) SWIG_fail; | |
21034 | } | |
21035 | if (obj1) { | |
21036 | arg2 = (int) SWIG_AsInt(obj1); | |
21037 | if (PyErr_Occurred()) SWIG_fail; | |
21038 | } | |
21039 | if (obj2) { | |
21040 | arg3 = (int) SWIG_AsInt(obj2); | |
21041 | if (PyErr_Occurred()) SWIG_fail; | |
21042 | } | |
d55e5bfc RD |
21043 | { |
21044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 21045 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
d55e5bfc RD |
21046 | |
21047 | wxPyEndAllowThreads(__tstate); | |
21048 | if (PyErr_Occurred()) SWIG_fail; | |
21049 | } | |
21050 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); | |
21051 | return resultobj; | |
21052 | fail: | |
21053 | return NULL; | |
21054 | } | |
21055 | ||
21056 | ||
21057 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21058 | PyObject *resultobj; | |
21059 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21060 | PyObject * obj0 = 0 ; | |
21061 | char *kwnames[] = { | |
21062 | (char *) "self", NULL | |
21063 | }; | |
21064 | ||
21065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
21066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21068 | { | |
21069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21070 | delete arg1; | |
21071 | ||
21072 | wxPyEndAllowThreads(__tstate); | |
21073 | if (PyErr_Occurred()) SWIG_fail; | |
21074 | } | |
21075 | Py_INCREF(Py_None); resultobj = Py_None; | |
21076 | return resultobj; | |
21077 | fail: | |
21078 | return NULL; | |
21079 | } | |
21080 | ||
21081 | ||
21082 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21083 | PyObject *resultobj; | |
21084 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21085 | int arg2 ; | |
21086 | int arg3 ; | |
21087 | int arg4 ; | |
d55e5bfc RD |
21088 | PyObject * obj0 = 0 ; |
21089 | PyObject * obj1 = 0 ; | |
21090 | PyObject * obj2 = 0 ; | |
21091 | PyObject * obj3 = 0 ; | |
d55e5bfc | 21092 | char *kwnames[] = { |
c24da6d6 | 21093 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
d55e5bfc RD |
21094 | }; |
21095 | ||
c24da6d6 | 21096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
21097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21099 | arg2 = (int) SWIG_AsInt(obj1); | |
21100 | if (PyErr_Occurred()) SWIG_fail; | |
21101 | arg3 = (int) SWIG_AsInt(obj2); | |
21102 | if (PyErr_Occurred()) SWIG_fail; | |
21103 | arg4 = (int) SWIG_AsInt(obj3); | |
21104 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc RD |
21105 | { |
21106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 21107 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
21108 | |
21109 | wxPyEndAllowThreads(__tstate); | |
21110 | if (PyErr_Occurred()) SWIG_fail; | |
21111 | } | |
21112 | Py_INCREF(Py_None); resultobj = Py_None; | |
21113 | return resultobj; | |
21114 | fail: | |
21115 | return NULL; | |
21116 | } | |
21117 | ||
21118 | ||
d55e5bfc RD |
21119 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { |
21120 | PyObject *resultobj; | |
21121 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21122 | int result; | |
21123 | PyObject * obj0 = 0 ; | |
21124 | char *kwnames[] = { | |
21125 | (char *) "self", NULL | |
21126 | }; | |
21127 | ||
21128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
21129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21131 | { | |
21132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21133 | result = (int)(arg1)->GetFlags(); | |
21134 | ||
21135 | wxPyEndAllowThreads(__tstate); | |
21136 | if (PyErr_Occurred()) SWIG_fail; | |
21137 | } | |
21138 | resultobj = SWIG_FromInt((int)result); | |
21139 | return resultobj; | |
21140 | fail: | |
21141 | return NULL; | |
21142 | } | |
21143 | ||
21144 | ||
21145 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21146 | PyObject *resultobj; | |
21147 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21148 | int result; | |
21149 | PyObject * obj0 = 0 ; | |
21150 | char *kwnames[] = { | |
21151 | (char *) "self", NULL | |
21152 | }; | |
21153 | ||
21154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
21155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21157 | { | |
21158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21159 | result = (int)(arg1)->GetKeyCode(); | |
21160 | ||
21161 | wxPyEndAllowThreads(__tstate); | |
21162 | if (PyErr_Occurred()) SWIG_fail; | |
21163 | } | |
21164 | resultobj = SWIG_FromInt((int)result); | |
21165 | return resultobj; | |
21166 | fail: | |
21167 | return NULL; | |
21168 | } | |
21169 | ||
21170 | ||
21171 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21172 | PyObject *resultobj; | |
21173 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21174 | int result; | |
21175 | PyObject * obj0 = 0 ; | |
21176 | char *kwnames[] = { | |
21177 | (char *) "self", NULL | |
21178 | }; | |
21179 | ||
21180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
21181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21183 | { | |
21184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21185 | result = (int)(arg1)->GetCommand(); | |
21186 | ||
21187 | wxPyEndAllowThreads(__tstate); | |
21188 | if (PyErr_Occurred()) SWIG_fail; | |
21189 | } | |
21190 | resultobj = SWIG_FromInt((int)result); | |
21191 | return resultobj; | |
21192 | fail: | |
21193 | return NULL; | |
21194 | } | |
21195 | ||
21196 | ||
21197 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
21198 | PyObject *obj; | |
21199 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21200 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
21201 | Py_INCREF(obj); | |
21202 | return Py_BuildValue((char *)""); | |
21203 | } | |
21204 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21205 | PyObject *resultobj; | |
21206 | int arg1 ; | |
21207 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
21208 | wxAcceleratorTable *result; | |
21209 | PyObject * obj0 = 0 ; | |
21210 | char *kwnames[] = { | |
21211 | (char *) "n", NULL | |
21212 | }; | |
21213 | ||
21214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21215 | { | |
21216 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
21217 | if (arg2) arg1 = PyList_Size(obj0); | |
21218 | else arg1 = 0; | |
21219 | } | |
21220 | { | |
21221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21222 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
21223 | ||
21224 | wxPyEndAllowThreads(__tstate); | |
21225 | if (PyErr_Occurred()) SWIG_fail; | |
21226 | } | |
21227 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); | |
21228 | { | |
21229 | delete [] arg2; | |
21230 | } | |
21231 | return resultobj; | |
21232 | fail: | |
21233 | { | |
21234 | delete [] arg2; | |
21235 | } | |
21236 | return NULL; | |
21237 | } | |
21238 | ||
21239 | ||
21240 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21241 | PyObject *resultobj; | |
21242 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21243 | PyObject * obj0 = 0 ; | |
21244 | char *kwnames[] = { | |
21245 | (char *) "self", NULL | |
21246 | }; | |
21247 | ||
21248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21251 | { | |
21252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21253 | delete arg1; | |
21254 | ||
21255 | wxPyEndAllowThreads(__tstate); | |
21256 | if (PyErr_Occurred()) SWIG_fail; | |
21257 | } | |
21258 | Py_INCREF(Py_None); resultobj = Py_None; | |
21259 | return resultobj; | |
21260 | fail: | |
21261 | return NULL; | |
21262 | } | |
21263 | ||
21264 | ||
21265 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21266 | PyObject *resultobj; | |
21267 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21268 | bool result; | |
21269 | PyObject * obj0 = 0 ; | |
21270 | char *kwnames[] = { | |
21271 | (char *) "self", NULL | |
21272 | }; | |
21273 | ||
21274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
21275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21277 | { | |
21278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21279 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21280 | ||
21281 | wxPyEndAllowThreads(__tstate); | |
21282 | if (PyErr_Occurred()) SWIG_fail; | |
21283 | } | |
21284 | { | |
21285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21286 | } | |
21287 | return resultobj; | |
21288 | fail: | |
21289 | return NULL; | |
21290 | } | |
21291 | ||
21292 | ||
21293 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
21294 | PyObject *obj; | |
21295 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21296 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21297 | Py_INCREF(obj); | |
21298 | return Py_BuildValue((char *)""); | |
21299 | } | |
21300 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { | |
21301 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); | |
21302 | return 1; | |
21303 | } | |
21304 | ||
21305 | ||
21306 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21307 | PyObject *pyobj; | |
21308 | ||
21309 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); | |
21310 | return pyobj; | |
21311 | } | |
21312 | ||
21313 | ||
21314 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21315 | PyObject *resultobj; | |
21316 | wxString *arg1 = 0 ; | |
21317 | wxAcceleratorEntry *result; | |
21318 | bool temp1 = False ; | |
21319 | PyObject * obj0 = 0 ; | |
21320 | char *kwnames[] = { | |
21321 | (char *) "label", NULL | |
21322 | }; | |
21323 | ||
21324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21325 | { | |
21326 | arg1 = wxString_in_helper(obj0); | |
21327 | if (arg1 == NULL) SWIG_fail; | |
21328 | temp1 = True; | |
21329 | } | |
21330 | { | |
21331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21332 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21333 | ||
21334 | wxPyEndAllowThreads(__tstate); | |
21335 | if (PyErr_Occurred()) SWIG_fail; | |
21336 | } | |
21337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
21338 | { | |
21339 | if (temp1) | |
21340 | delete arg1; | |
21341 | } | |
21342 | return resultobj; | |
21343 | fail: | |
21344 | { | |
21345 | if (temp1) | |
21346 | delete arg1; | |
21347 | } | |
21348 | return NULL; | |
21349 | } | |
21350 | ||
21351 | ||
21352 | static int _wrap_PanelNameStr_set(PyObject *_val) { | |
21353 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); | |
21354 | return 1; | |
21355 | } | |
21356 | ||
21357 | ||
21358 | static PyObject *_wrap_PanelNameStr_get() { | |
21359 | PyObject *pyobj; | |
21360 | ||
21361 | { | |
21362 | #if wxUSE_UNICODE | |
21363 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21364 | #else | |
21365 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21366 | #endif | |
21367 | } | |
21368 | return pyobj; | |
21369 | } | |
21370 | ||
21371 | ||
21372 | static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21373 | PyObject *resultobj; | |
21374 | wxVisualAttributes *result; | |
21375 | char *kwnames[] = { | |
21376 | NULL | |
21377 | }; | |
21378 | ||
21379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
21380 | { | |
21381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21382 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
21383 | ||
21384 | wxPyEndAllowThreads(__tstate); | |
21385 | if (PyErr_Occurred()) SWIG_fail; | |
21386 | } | |
21387 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
21388 | return resultobj; | |
21389 | fail: | |
21390 | return NULL; | |
21391 | } | |
21392 | ||
21393 | ||
21394 | static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21395 | PyObject *resultobj; | |
21396 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21397 | PyObject * obj0 = 0 ; | |
21398 | char *kwnames[] = { | |
21399 | (char *) "self", NULL | |
21400 | }; | |
21401 | ||
21402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
21403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21405 | { | |
21406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21407 | delete_wxVisualAttributes(arg1); | |
21408 | ||
21409 | wxPyEndAllowThreads(__tstate); | |
21410 | if (PyErr_Occurred()) SWIG_fail; | |
21411 | } | |
21412 | Py_INCREF(Py_None); resultobj = Py_None; | |
21413 | return resultobj; | |
21414 | fail: | |
21415 | return NULL; | |
21416 | } | |
21417 | ||
21418 | ||
21419 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21420 | PyObject *resultobj; | |
21421 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21422 | wxFont *arg2 = (wxFont *) 0 ; | |
21423 | PyObject * obj0 = 0 ; | |
21424 | PyObject * obj1 = 0 ; | |
21425 | char *kwnames[] = { | |
21426 | (char *) "self",(char *) "font", NULL | |
21427 | }; | |
21428 | ||
21429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
21430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21432 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
21433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21434 | if (arg1) (arg1)->font = *arg2; | |
21435 | ||
21436 | Py_INCREF(Py_None); resultobj = Py_None; | |
21437 | return resultobj; | |
21438 | fail: | |
21439 | return NULL; | |
21440 | } | |
21441 | ||
21442 | ||
21443 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21444 | PyObject *resultobj; | |
21445 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21446 | wxFont *result; | |
21447 | PyObject * obj0 = 0 ; | |
21448 | char *kwnames[] = { | |
21449 | (char *) "self", NULL | |
21450 | }; | |
21451 | ||
21452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
21453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21455 | result = (wxFont *)& ((arg1)->font); | |
21456 | ||
21457 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
21458 | return resultobj; | |
21459 | fail: | |
21460 | return NULL; | |
21461 | } | |
21462 | ||
21463 | ||
21464 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21465 | PyObject *resultobj; | |
21466 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21467 | wxColour *arg2 = (wxColour *) 0 ; | |
21468 | PyObject * obj0 = 0 ; | |
21469 | PyObject * obj1 = 0 ; | |
21470 | char *kwnames[] = { | |
21471 | (char *) "self",(char *) "colFg", NULL | |
21472 | }; | |
21473 | ||
21474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
21475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21477 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21479 | if (arg1) (arg1)->colFg = *arg2; | |
21480 | ||
21481 | Py_INCREF(Py_None); resultobj = Py_None; | |
21482 | return resultobj; | |
21483 | fail: | |
21484 | return NULL; | |
21485 | } | |
21486 | ||
21487 | ||
21488 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21489 | PyObject *resultobj; | |
21490 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21491 | wxColour *result; | |
21492 | PyObject * obj0 = 0 ; | |
21493 | char *kwnames[] = { | |
21494 | (char *) "self", NULL | |
21495 | }; | |
21496 | ||
21497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
21498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21500 | result = (wxColour *)& ((arg1)->colFg); | |
21501 | ||
21502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21503 | return resultobj; | |
21504 | fail: | |
21505 | return NULL; | |
21506 | } | |
21507 | ||
21508 | ||
21509 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21510 | PyObject *resultobj; | |
21511 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21512 | wxColour *arg2 = (wxColour *) 0 ; | |
21513 | PyObject * obj0 = 0 ; | |
21514 | PyObject * obj1 = 0 ; | |
21515 | char *kwnames[] = { | |
21516 | (char *) "self",(char *) "colBg", NULL | |
21517 | }; | |
21518 | ||
21519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
21520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21524 | if (arg1) (arg1)->colBg = *arg2; | |
21525 | ||
21526 | Py_INCREF(Py_None); resultobj = Py_None; | |
21527 | return resultobj; | |
21528 | fail: | |
21529 | return NULL; | |
21530 | } | |
21531 | ||
21532 | ||
21533 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21534 | PyObject *resultobj; | |
21535 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21536 | wxColour *result; | |
21537 | PyObject * obj0 = 0 ; | |
21538 | char *kwnames[] = { | |
21539 | (char *) "self", NULL | |
21540 | }; | |
21541 | ||
21542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
21543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21545 | result = (wxColour *)& ((arg1)->colBg); | |
21546 | ||
21547 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21548 | return resultobj; | |
21549 | fail: | |
21550 | return NULL; | |
21551 | } | |
21552 | ||
21553 | ||
21554 | static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) { | |
21555 | PyObject *obj; | |
21556 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21557 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
21558 | Py_INCREF(obj); | |
21559 | return Py_BuildValue((char *)""); | |
21560 | } | |
21561 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21562 | PyObject *resultobj; | |
21563 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21564 | int arg2 = (int) (int)-1 ; | |
21565 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21566 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21567 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21568 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21569 | long arg5 = (long) 0 ; | |
21570 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21571 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21572 | wxWindow *result; | |
21573 | wxPoint temp3 ; | |
21574 | wxSize temp4 ; | |
21575 | bool temp6 = False ; | |
21576 | PyObject * obj0 = 0 ; | |
21577 | PyObject * obj1 = 0 ; | |
21578 | PyObject * obj2 = 0 ; | |
21579 | PyObject * obj3 = 0 ; | |
21580 | PyObject * obj4 = 0 ; | |
21581 | PyObject * obj5 = 0 ; | |
21582 | char *kwnames[] = { | |
21583 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21584 | }; | |
21585 | ||
21586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
21587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21589 | if (obj1) { | |
21590 | arg2 = (int const) SWIG_AsInt(obj1); | |
21591 | if (PyErr_Occurred()) SWIG_fail; | |
21592 | } | |
21593 | if (obj2) { | |
21594 | { | |
21595 | arg3 = &temp3; | |
21596 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21597 | } | |
21598 | } | |
21599 | if (obj3) { | |
21600 | { | |
21601 | arg4 = &temp4; | |
21602 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21603 | } | |
21604 | } | |
21605 | if (obj4) { | |
21606 | arg5 = (long) SWIG_AsLong(obj4); | |
21607 | if (PyErr_Occurred()) SWIG_fail; | |
21608 | } | |
21609 | if (obj5) { | |
21610 | { | |
21611 | arg6 = wxString_in_helper(obj5); | |
21612 | if (arg6 == NULL) SWIG_fail; | |
21613 | temp6 = True; | |
21614 | } | |
21615 | } | |
21616 | { | |
0439c23b | 21617 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21619 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21620 | ||
21621 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21622 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 21623 | } |
b0f7404b | 21624 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
21625 | { |
21626 | if (temp6) | |
21627 | delete arg6; | |
21628 | } | |
21629 | return resultobj; | |
21630 | fail: | |
21631 | { | |
21632 | if (temp6) | |
21633 | delete arg6; | |
21634 | } | |
21635 | return NULL; | |
21636 | } | |
21637 | ||
21638 | ||
21639 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21640 | PyObject *resultobj; | |
21641 | wxWindow *result; | |
21642 | char *kwnames[] = { | |
21643 | NULL | |
21644 | }; | |
21645 | ||
21646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
21647 | { | |
0439c23b | 21648 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21650 | result = (wxWindow *)new wxWindow(); | |
21651 | ||
21652 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21653 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 21654 | } |
b0f7404b | 21655 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
21656 | return resultobj; |
21657 | fail: | |
21658 | return NULL; | |
21659 | } | |
21660 | ||
21661 | ||
21662 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21663 | PyObject *resultobj; | |
21664 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21665 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21666 | int arg3 = (int) (int)-1 ; | |
21667 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21668 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21669 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21670 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21671 | long arg6 = (long) 0 ; | |
21672 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
21673 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21674 | bool result; | |
21675 | wxPoint temp4 ; | |
21676 | wxSize temp5 ; | |
21677 | bool temp7 = False ; | |
21678 | PyObject * obj0 = 0 ; | |
21679 | PyObject * obj1 = 0 ; | |
21680 | PyObject * obj2 = 0 ; | |
21681 | PyObject * obj3 = 0 ; | |
21682 | PyObject * obj4 = 0 ; | |
21683 | PyObject * obj5 = 0 ; | |
21684 | PyObject * obj6 = 0 ; | |
21685 | char *kwnames[] = { | |
21686 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21687 | }; | |
21688 | ||
21689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21692 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21694 | if (obj2) { | |
21695 | arg3 = (int const) SWIG_AsInt(obj2); | |
21696 | if (PyErr_Occurred()) SWIG_fail; | |
21697 | } | |
21698 | if (obj3) { | |
21699 | { | |
21700 | arg4 = &temp4; | |
21701 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21702 | } | |
21703 | } | |
21704 | if (obj4) { | |
21705 | { | |
21706 | arg5 = &temp5; | |
21707 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21708 | } | |
21709 | } | |
21710 | if (obj5) { | |
21711 | arg6 = (long) SWIG_AsLong(obj5); | |
21712 | if (PyErr_Occurred()) SWIG_fail; | |
21713 | } | |
21714 | if (obj6) { | |
21715 | { | |
21716 | arg7 = wxString_in_helper(obj6); | |
21717 | if (arg7 == NULL) SWIG_fail; | |
21718 | temp7 = True; | |
21719 | } | |
21720 | } | |
21721 | { | |
21722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21723 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21724 | ||
21725 | wxPyEndAllowThreads(__tstate); | |
21726 | if (PyErr_Occurred()) SWIG_fail; | |
21727 | } | |
21728 | { | |
21729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21730 | } | |
21731 | { | |
21732 | if (temp7) | |
21733 | delete arg7; | |
21734 | } | |
21735 | return resultobj; | |
21736 | fail: | |
21737 | { | |
21738 | if (temp7) | |
21739 | delete arg7; | |
21740 | } | |
21741 | return NULL; | |
21742 | } | |
21743 | ||
21744 | ||
21745 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21746 | PyObject *resultobj; | |
21747 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21748 | bool arg2 = (bool) False ; | |
21749 | bool result; | |
21750 | PyObject * obj0 = 0 ; | |
21751 | PyObject * obj1 = 0 ; | |
21752 | char *kwnames[] = { | |
21753 | (char *) "self",(char *) "force", NULL | |
21754 | }; | |
21755 | ||
21756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
21757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21759 | if (obj1) { | |
21760 | arg2 = (bool) SWIG_AsBool(obj1); | |
21761 | if (PyErr_Occurred()) SWIG_fail; | |
21762 | } | |
21763 | { | |
21764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21765 | result = (bool)(arg1)->Close(arg2); | |
21766 | ||
21767 | wxPyEndAllowThreads(__tstate); | |
21768 | if (PyErr_Occurred()) SWIG_fail; | |
21769 | } | |
21770 | { | |
21771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21772 | } | |
21773 | return resultobj; | |
21774 | fail: | |
21775 | return NULL; | |
21776 | } | |
21777 | ||
21778 | ||
21779 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21780 | PyObject *resultobj; | |
21781 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21782 | bool result; | |
21783 | PyObject * obj0 = 0 ; | |
21784 | char *kwnames[] = { | |
21785 | (char *) "self", NULL | |
21786 | }; | |
21787 | ||
21788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
21789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21791 | { | |
21792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21793 | result = (bool)(arg1)->Destroy(); | |
21794 | ||
21795 | wxPyEndAllowThreads(__tstate); | |
21796 | if (PyErr_Occurred()) SWIG_fail; | |
21797 | } | |
21798 | { | |
21799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21800 | } | |
21801 | return resultobj; | |
21802 | fail: | |
21803 | return NULL; | |
21804 | } | |
21805 | ||
21806 | ||
21807 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21808 | PyObject *resultobj; | |
21809 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21810 | bool result; | |
21811 | PyObject * obj0 = 0 ; | |
21812 | char *kwnames[] = { | |
21813 | (char *) "self", NULL | |
21814 | }; | |
21815 | ||
21816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
21817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21819 | { | |
21820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21821 | result = (bool)(arg1)->DestroyChildren(); | |
21822 | ||
21823 | wxPyEndAllowThreads(__tstate); | |
21824 | if (PyErr_Occurred()) SWIG_fail; | |
21825 | } | |
21826 | { | |
21827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21828 | } | |
21829 | return resultobj; | |
21830 | fail: | |
21831 | return NULL; | |
21832 | } | |
21833 | ||
21834 | ||
21835 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21836 | PyObject *resultobj; | |
21837 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21838 | bool result; | |
21839 | PyObject * obj0 = 0 ; | |
21840 | char *kwnames[] = { | |
21841 | (char *) "self", NULL | |
21842 | }; | |
21843 | ||
21844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
21845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21847 | { | |
21848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21849 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
21850 | ||
21851 | wxPyEndAllowThreads(__tstate); | |
21852 | if (PyErr_Occurred()) SWIG_fail; | |
21853 | } | |
21854 | { | |
21855 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21856 | } | |
21857 | return resultobj; | |
21858 | fail: | |
21859 | return NULL; | |
21860 | } | |
21861 | ||
21862 | ||
21863 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21864 | PyObject *resultobj; | |
21865 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21866 | wxString *arg2 = 0 ; | |
21867 | bool temp2 = False ; | |
21868 | PyObject * obj0 = 0 ; | |
21869 | PyObject * obj1 = 0 ; | |
21870 | char *kwnames[] = { | |
21871 | (char *) "self",(char *) "title", NULL | |
21872 | }; | |
21873 | ||
21874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
21875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21877 | { | |
21878 | arg2 = wxString_in_helper(obj1); | |
21879 | if (arg2 == NULL) SWIG_fail; | |
21880 | temp2 = True; | |
21881 | } | |
21882 | { | |
21883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21884 | (arg1)->SetTitle((wxString const &)*arg2); | |
21885 | ||
21886 | wxPyEndAllowThreads(__tstate); | |
21887 | if (PyErr_Occurred()) SWIG_fail; | |
21888 | } | |
21889 | Py_INCREF(Py_None); resultobj = Py_None; | |
21890 | { | |
21891 | if (temp2) | |
21892 | delete arg2; | |
21893 | } | |
21894 | return resultobj; | |
21895 | fail: | |
21896 | { | |
21897 | if (temp2) | |
21898 | delete arg2; | |
21899 | } | |
21900 | return NULL; | |
21901 | } | |
21902 | ||
21903 | ||
21904 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21905 | PyObject *resultobj; | |
21906 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21907 | wxString result; | |
21908 | PyObject * obj0 = 0 ; | |
21909 | char *kwnames[] = { | |
21910 | (char *) "self", NULL | |
21911 | }; | |
21912 | ||
21913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
21914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21916 | { | |
21917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21918 | result = ((wxWindow const *)arg1)->GetTitle(); | |
21919 | ||
21920 | wxPyEndAllowThreads(__tstate); | |
21921 | if (PyErr_Occurred()) SWIG_fail; | |
21922 | } | |
21923 | { | |
21924 | #if wxUSE_UNICODE | |
21925 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21926 | #else | |
21927 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21928 | #endif | |
21929 | } | |
21930 | return resultobj; | |
21931 | fail: | |
21932 | return NULL; | |
21933 | } | |
21934 | ||
21935 | ||
21936 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21937 | PyObject *resultobj; | |
21938 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21939 | wxString *arg2 = 0 ; | |
21940 | bool temp2 = False ; | |
21941 | PyObject * obj0 = 0 ; | |
21942 | PyObject * obj1 = 0 ; | |
21943 | char *kwnames[] = { | |
21944 | (char *) "self",(char *) "label", NULL | |
21945 | }; | |
21946 | ||
21947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
21948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21950 | { | |
21951 | arg2 = wxString_in_helper(obj1); | |
21952 | if (arg2 == NULL) SWIG_fail; | |
21953 | temp2 = True; | |
21954 | } | |
21955 | { | |
21956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21957 | (arg1)->SetLabel((wxString const &)*arg2); | |
21958 | ||
21959 | wxPyEndAllowThreads(__tstate); | |
21960 | if (PyErr_Occurred()) SWIG_fail; | |
21961 | } | |
21962 | Py_INCREF(Py_None); resultobj = Py_None; | |
21963 | { | |
21964 | if (temp2) | |
21965 | delete arg2; | |
21966 | } | |
21967 | return resultobj; | |
21968 | fail: | |
21969 | { | |
21970 | if (temp2) | |
21971 | delete arg2; | |
21972 | } | |
21973 | return NULL; | |
21974 | } | |
21975 | ||
21976 | ||
21977 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21978 | PyObject *resultobj; | |
21979 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21980 | wxString result; | |
21981 | PyObject * obj0 = 0 ; | |
21982 | char *kwnames[] = { | |
21983 | (char *) "self", NULL | |
21984 | }; | |
21985 | ||
21986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
21987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21989 | { | |
21990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21991 | result = ((wxWindow const *)arg1)->GetLabel(); | |
21992 | ||
21993 | wxPyEndAllowThreads(__tstate); | |
21994 | if (PyErr_Occurred()) SWIG_fail; | |
21995 | } | |
21996 | { | |
21997 | #if wxUSE_UNICODE | |
21998 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21999 | #else | |
22000 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22001 | #endif | |
22002 | } | |
22003 | return resultobj; | |
22004 | fail: | |
22005 | return NULL; | |
22006 | } | |
22007 | ||
22008 | ||
22009 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22010 | PyObject *resultobj; | |
22011 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22012 | wxString *arg2 = 0 ; | |
22013 | bool temp2 = False ; | |
22014 | PyObject * obj0 = 0 ; | |
22015 | PyObject * obj1 = 0 ; | |
22016 | char *kwnames[] = { | |
22017 | (char *) "self",(char *) "name", NULL | |
22018 | }; | |
22019 | ||
22020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
22021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22023 | { | |
22024 | arg2 = wxString_in_helper(obj1); | |
22025 | if (arg2 == NULL) SWIG_fail; | |
22026 | temp2 = True; | |
22027 | } | |
22028 | { | |
22029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22030 | (arg1)->SetName((wxString const &)*arg2); | |
22031 | ||
22032 | wxPyEndAllowThreads(__tstate); | |
22033 | if (PyErr_Occurred()) SWIG_fail; | |
22034 | } | |
22035 | Py_INCREF(Py_None); resultobj = Py_None; | |
22036 | { | |
22037 | if (temp2) | |
22038 | delete arg2; | |
22039 | } | |
22040 | return resultobj; | |
22041 | fail: | |
22042 | { | |
22043 | if (temp2) | |
22044 | delete arg2; | |
22045 | } | |
22046 | return NULL; | |
22047 | } | |
22048 | ||
22049 | ||
22050 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22051 | PyObject *resultobj; | |
22052 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22053 | wxString result; | |
22054 | PyObject * obj0 = 0 ; | |
22055 | char *kwnames[] = { | |
22056 | (char *) "self", NULL | |
22057 | }; | |
22058 | ||
22059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
22060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22062 | { | |
22063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22064 | result = ((wxWindow const *)arg1)->GetName(); | |
22065 | ||
22066 | wxPyEndAllowThreads(__tstate); | |
22067 | if (PyErr_Occurred()) SWIG_fail; | |
22068 | } | |
22069 | { | |
22070 | #if wxUSE_UNICODE | |
22071 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22072 | #else | |
22073 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22074 | #endif | |
22075 | } | |
22076 | return resultobj; | |
22077 | fail: | |
22078 | return NULL; | |
22079 | } | |
22080 | ||
22081 | ||
22082 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22083 | PyObject *resultobj; | |
22084 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22085 | int arg2 ; | |
22086 | PyObject * obj0 = 0 ; | |
22087 | PyObject * obj1 = 0 ; | |
22088 | char *kwnames[] = { | |
22089 | (char *) "self",(char *) "variant", NULL | |
22090 | }; | |
22091 | ||
22092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
22093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22095 | arg2 = (wxWindowVariant) SWIG_AsInt(obj1); | |
22096 | if (PyErr_Occurred()) SWIG_fail; | |
22097 | { | |
22098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22099 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
22100 | ||
22101 | wxPyEndAllowThreads(__tstate); | |
22102 | if (PyErr_Occurred()) SWIG_fail; | |
22103 | } | |
22104 | Py_INCREF(Py_None); resultobj = Py_None; | |
22105 | return resultobj; | |
22106 | fail: | |
22107 | return NULL; | |
22108 | } | |
22109 | ||
22110 | ||
22111 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22112 | PyObject *resultobj; | |
22113 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22114 | int result; | |
22115 | PyObject * obj0 = 0 ; | |
22116 | char *kwnames[] = { | |
22117 | (char *) "self", NULL | |
22118 | }; | |
22119 | ||
22120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
22121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22123 | { | |
22124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22125 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
22126 | ||
22127 | wxPyEndAllowThreads(__tstate); | |
22128 | if (PyErr_Occurred()) SWIG_fail; | |
22129 | } | |
22130 | resultobj = SWIG_FromInt((int)result); | |
22131 | return resultobj; | |
22132 | fail: | |
22133 | return NULL; | |
22134 | } | |
22135 | ||
22136 | ||
22137 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22138 | PyObject *resultobj; | |
22139 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22140 | int arg2 ; | |
22141 | PyObject * obj0 = 0 ; | |
22142 | PyObject * obj1 = 0 ; | |
22143 | char *kwnames[] = { | |
22144 | (char *) "self",(char *) "winid", NULL | |
22145 | }; | |
22146 | ||
22147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; | |
22148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22150 | arg2 = (int) SWIG_AsInt(obj1); | |
22151 | if (PyErr_Occurred()) SWIG_fail; | |
22152 | { | |
22153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22154 | (arg1)->SetId(arg2); | |
22155 | ||
22156 | wxPyEndAllowThreads(__tstate); | |
22157 | if (PyErr_Occurred()) SWIG_fail; | |
22158 | } | |
22159 | Py_INCREF(Py_None); resultobj = Py_None; | |
22160 | return resultobj; | |
22161 | fail: | |
22162 | return NULL; | |
22163 | } | |
22164 | ||
22165 | ||
22166 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22167 | PyObject *resultobj; | |
22168 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22169 | int result; | |
22170 | PyObject * obj0 = 0 ; | |
22171 | char *kwnames[] = { | |
22172 | (char *) "self", NULL | |
22173 | }; | |
22174 | ||
22175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
22176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22178 | { | |
22179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22180 | result = (int)((wxWindow const *)arg1)->GetId(); | |
22181 | ||
22182 | wxPyEndAllowThreads(__tstate); | |
22183 | if (PyErr_Occurred()) SWIG_fail; | |
22184 | } | |
22185 | resultobj = SWIG_FromInt((int)result); | |
22186 | return resultobj; | |
22187 | fail: | |
22188 | return NULL; | |
22189 | } | |
22190 | ||
22191 | ||
22192 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22193 | PyObject *resultobj; | |
22194 | int result; | |
22195 | char *kwnames[] = { | |
22196 | NULL | |
22197 | }; | |
22198 | ||
22199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
22200 | { | |
22201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22202 | result = (int)wxWindow::NewControlId(); | |
22203 | ||
22204 | wxPyEndAllowThreads(__tstate); | |
22205 | if (PyErr_Occurred()) SWIG_fail; | |
22206 | } | |
22207 | resultobj = SWIG_FromInt((int)result); | |
22208 | return resultobj; | |
22209 | fail: | |
22210 | return NULL; | |
22211 | } | |
22212 | ||
22213 | ||
22214 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22215 | PyObject *resultobj; | |
22216 | int arg1 ; | |
22217 | int result; | |
22218 | PyObject * obj0 = 0 ; | |
22219 | char *kwnames[] = { | |
22220 | (char *) "winid", NULL | |
22221 | }; | |
22222 | ||
22223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; | |
22224 | arg1 = (int) SWIG_AsInt(obj0); | |
22225 | if (PyErr_Occurred()) SWIG_fail; | |
22226 | { | |
22227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22228 | result = (int)wxWindow::NextControlId(arg1); | |
22229 | ||
22230 | wxPyEndAllowThreads(__tstate); | |
22231 | if (PyErr_Occurred()) SWIG_fail; | |
22232 | } | |
22233 | resultobj = SWIG_FromInt((int)result); | |
22234 | return resultobj; | |
22235 | fail: | |
22236 | return NULL; | |
22237 | } | |
22238 | ||
22239 | ||
22240 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22241 | PyObject *resultobj; | |
22242 | int arg1 ; | |
22243 | int result; | |
22244 | PyObject * obj0 = 0 ; | |
22245 | char *kwnames[] = { | |
22246 | (char *) "winid", NULL | |
22247 | }; | |
22248 | ||
22249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; | |
22250 | arg1 = (int) SWIG_AsInt(obj0); | |
22251 | if (PyErr_Occurred()) SWIG_fail; | |
22252 | { | |
22253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22254 | result = (int)wxWindow::PrevControlId(arg1); | |
22255 | ||
22256 | wxPyEndAllowThreads(__tstate); | |
22257 | if (PyErr_Occurred()) SWIG_fail; | |
22258 | } | |
22259 | resultobj = SWIG_FromInt((int)result); | |
22260 | return resultobj; | |
22261 | fail: | |
22262 | return NULL; | |
22263 | } | |
22264 | ||
22265 | ||
22266 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22267 | PyObject *resultobj; | |
22268 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22269 | wxSize *arg2 = 0 ; | |
22270 | wxSize temp2 ; | |
22271 | PyObject * obj0 = 0 ; | |
22272 | PyObject * obj1 = 0 ; | |
22273 | char *kwnames[] = { | |
22274 | (char *) "self",(char *) "size", NULL | |
22275 | }; | |
22276 | ||
22277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
22278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22280 | { | |
22281 | arg2 = &temp2; | |
22282 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22283 | } | |
22284 | { | |
22285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22286 | (arg1)->SetSize((wxSize const &)*arg2); | |
22287 | ||
22288 | wxPyEndAllowThreads(__tstate); | |
22289 | if (PyErr_Occurred()) SWIG_fail; | |
22290 | } | |
22291 | Py_INCREF(Py_None); resultobj = Py_None; | |
22292 | return resultobj; | |
22293 | fail: | |
22294 | return NULL; | |
22295 | } | |
22296 | ||
22297 | ||
22298 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22299 | PyObject *resultobj; | |
22300 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22301 | int arg2 ; | |
22302 | int arg3 ; | |
22303 | int arg4 ; | |
22304 | int arg5 ; | |
22305 | int arg6 = (int) wxSIZE_AUTO ; | |
22306 | PyObject * obj0 = 0 ; | |
22307 | PyObject * obj1 = 0 ; | |
22308 | PyObject * obj2 = 0 ; | |
22309 | PyObject * obj3 = 0 ; | |
22310 | PyObject * obj4 = 0 ; | |
22311 | PyObject * obj5 = 0 ; | |
22312 | char *kwnames[] = { | |
22313 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22314 | }; | |
22315 | ||
22316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22319 | arg2 = (int) SWIG_AsInt(obj1); | |
22320 | if (PyErr_Occurred()) SWIG_fail; | |
22321 | arg3 = (int) SWIG_AsInt(obj2); | |
22322 | if (PyErr_Occurred()) SWIG_fail; | |
22323 | arg4 = (int) SWIG_AsInt(obj3); | |
22324 | if (PyErr_Occurred()) SWIG_fail; | |
22325 | arg5 = (int) SWIG_AsInt(obj4); | |
22326 | if (PyErr_Occurred()) SWIG_fail; | |
22327 | if (obj5) { | |
22328 | arg6 = (int) SWIG_AsInt(obj5); | |
22329 | if (PyErr_Occurred()) SWIG_fail; | |
22330 | } | |
22331 | { | |
22332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22333 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
22334 | ||
22335 | wxPyEndAllowThreads(__tstate); | |
22336 | if (PyErr_Occurred()) SWIG_fail; | |
22337 | } | |
22338 | Py_INCREF(Py_None); resultobj = Py_None; | |
22339 | return resultobj; | |
22340 | fail: | |
22341 | return NULL; | |
22342 | } | |
22343 | ||
22344 | ||
22345 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22346 | PyObject *resultobj; | |
22347 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22348 | wxRect *arg2 = 0 ; | |
22349 | int arg3 = (int) wxSIZE_AUTO ; | |
22350 | wxRect temp2 ; | |
22351 | PyObject * obj0 = 0 ; | |
22352 | PyObject * obj1 = 0 ; | |
22353 | PyObject * obj2 = 0 ; | |
22354 | char *kwnames[] = { | |
22355 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
22356 | }; | |
22357 | ||
22358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22361 | { | |
22362 | arg2 = &temp2; | |
22363 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22364 | } | |
22365 | if (obj2) { | |
22366 | arg3 = (int) SWIG_AsInt(obj2); | |
22367 | if (PyErr_Occurred()) SWIG_fail; | |
22368 | } | |
22369 | { | |
22370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22371 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
22372 | ||
22373 | wxPyEndAllowThreads(__tstate); | |
22374 | if (PyErr_Occurred()) SWIG_fail; | |
22375 | } | |
22376 | Py_INCREF(Py_None); resultobj = Py_None; | |
22377 | return resultobj; | |
22378 | fail: | |
22379 | return NULL; | |
22380 | } | |
22381 | ||
22382 | ||
22383 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22384 | PyObject *resultobj; | |
22385 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22386 | int arg2 ; | |
22387 | int arg3 ; | |
22388 | PyObject * obj0 = 0 ; | |
22389 | PyObject * obj1 = 0 ; | |
22390 | PyObject * obj2 = 0 ; | |
22391 | char *kwnames[] = { | |
22392 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22393 | }; | |
22394 | ||
22395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22398 | arg2 = (int) SWIG_AsInt(obj1); | |
22399 | if (PyErr_Occurred()) SWIG_fail; | |
22400 | arg3 = (int) SWIG_AsInt(obj2); | |
22401 | if (PyErr_Occurred()) SWIG_fail; | |
22402 | { | |
22403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22404 | (arg1)->SetSize(arg2,arg3); | |
22405 | ||
22406 | wxPyEndAllowThreads(__tstate); | |
22407 | if (PyErr_Occurred()) SWIG_fail; | |
22408 | } | |
22409 | Py_INCREF(Py_None); resultobj = Py_None; | |
22410 | return resultobj; | |
22411 | fail: | |
22412 | return NULL; | |
22413 | } | |
22414 | ||
22415 | ||
22416 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22417 | PyObject *resultobj; | |
22418 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22419 | wxPoint *arg2 = 0 ; | |
22420 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
22421 | wxPoint temp2 ; | |
22422 | PyObject * obj0 = 0 ; | |
22423 | PyObject * obj1 = 0 ; | |
22424 | PyObject * obj2 = 0 ; | |
22425 | char *kwnames[] = { | |
22426 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
22427 | }; | |
22428 | ||
22429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22432 | { | |
22433 | arg2 = &temp2; | |
22434 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22435 | } | |
22436 | if (obj2) { | |
22437 | arg3 = (int) SWIG_AsInt(obj2); | |
22438 | if (PyErr_Occurred()) SWIG_fail; | |
22439 | } | |
22440 | { | |
22441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22442 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
22443 | ||
22444 | wxPyEndAllowThreads(__tstate); | |
22445 | if (PyErr_Occurred()) SWIG_fail; | |
22446 | } | |
22447 | Py_INCREF(Py_None); resultobj = Py_None; | |
22448 | return resultobj; | |
22449 | fail: | |
22450 | return NULL; | |
22451 | } | |
22452 | ||
22453 | ||
22454 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22455 | PyObject *resultobj; | |
22456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22457 | int arg2 ; | |
22458 | int arg3 ; | |
22459 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
22460 | PyObject * obj0 = 0 ; | |
22461 | PyObject * obj1 = 0 ; | |
22462 | PyObject * obj2 = 0 ; | |
22463 | PyObject * obj3 = 0 ; | |
22464 | char *kwnames[] = { | |
22465 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
22466 | }; | |
22467 | ||
22468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22471 | arg2 = (int) SWIG_AsInt(obj1); | |
22472 | if (PyErr_Occurred()) SWIG_fail; | |
22473 | arg3 = (int) SWIG_AsInt(obj2); | |
22474 | if (PyErr_Occurred()) SWIG_fail; | |
22475 | if (obj3) { | |
22476 | arg4 = (int) SWIG_AsInt(obj3); | |
22477 | if (PyErr_Occurred()) SWIG_fail; | |
22478 | } | |
22479 | { | |
22480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22481 | (arg1)->Move(arg2,arg3,arg4); | |
22482 | ||
22483 | wxPyEndAllowThreads(__tstate); | |
22484 | if (PyErr_Occurred()) SWIG_fail; | |
22485 | } | |
22486 | Py_INCREF(Py_None); resultobj = Py_None; | |
22487 | return resultobj; | |
22488 | fail: | |
22489 | return NULL; | |
22490 | } | |
22491 | ||
22492 | ||
f8167d6e RD |
22493 | static PyObject *_wrap_Window_SetBestFittingSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
22494 | PyObject *resultobj; | |
22495 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22496 | wxSize const &arg2_defvalue = wxDefaultSize ; | |
22497 | wxSize *arg2 = (wxSize *) &arg2_defvalue ; | |
22498 | wxSize temp2 ; | |
22499 | PyObject * obj0 = 0 ; | |
22500 | PyObject * obj1 = 0 ; | |
22501 | char *kwnames[] = { | |
22502 | (char *) "self",(char *) "size", NULL | |
22503 | }; | |
22504 | ||
22505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail; | |
22506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22508 | if (obj1) { | |
22509 | { | |
22510 | arg2 = &temp2; | |
22511 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22512 | } | |
22513 | } | |
22514 | { | |
22515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22516 | (arg1)->SetBestFittingSize((wxSize const &)*arg2); | |
22517 | ||
22518 | wxPyEndAllowThreads(__tstate); | |
22519 | if (PyErr_Occurred()) SWIG_fail; | |
22520 | } | |
22521 | Py_INCREF(Py_None); resultobj = Py_None; | |
22522 | return resultobj; | |
22523 | fail: | |
22524 | return NULL; | |
22525 | } | |
22526 | ||
22527 | ||
d55e5bfc RD |
22528 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
22529 | PyObject *resultobj; | |
22530 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22531 | PyObject * obj0 = 0 ; | |
22532 | char *kwnames[] = { | |
22533 | (char *) "self", NULL | |
22534 | }; | |
22535 | ||
22536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
22537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22539 | { | |
22540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22541 | (arg1)->Raise(); | |
22542 | ||
22543 | wxPyEndAllowThreads(__tstate); | |
22544 | if (PyErr_Occurred()) SWIG_fail; | |
22545 | } | |
22546 | Py_INCREF(Py_None); resultobj = Py_None; | |
22547 | return resultobj; | |
22548 | fail: | |
22549 | return NULL; | |
22550 | } | |
22551 | ||
22552 | ||
22553 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22554 | PyObject *resultobj; | |
22555 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22556 | PyObject * obj0 = 0 ; | |
22557 | char *kwnames[] = { | |
22558 | (char *) "self", NULL | |
22559 | }; | |
22560 | ||
22561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
22562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22564 | { | |
22565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22566 | (arg1)->Lower(); | |
22567 | ||
22568 | wxPyEndAllowThreads(__tstate); | |
22569 | if (PyErr_Occurred()) SWIG_fail; | |
22570 | } | |
22571 | Py_INCREF(Py_None); resultobj = Py_None; | |
22572 | return resultobj; | |
22573 | fail: | |
22574 | return NULL; | |
22575 | } | |
22576 | ||
22577 | ||
22578 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22579 | PyObject *resultobj; | |
22580 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22581 | wxSize *arg2 = 0 ; | |
22582 | wxSize temp2 ; | |
22583 | PyObject * obj0 = 0 ; | |
22584 | PyObject * obj1 = 0 ; | |
22585 | char *kwnames[] = { | |
22586 | (char *) "self",(char *) "size", NULL | |
22587 | }; | |
22588 | ||
22589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
22590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22592 | { | |
22593 | arg2 = &temp2; | |
22594 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22595 | } | |
22596 | { | |
22597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22598 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
22599 | ||
22600 | wxPyEndAllowThreads(__tstate); | |
22601 | if (PyErr_Occurred()) SWIG_fail; | |
22602 | } | |
22603 | Py_INCREF(Py_None); resultobj = Py_None; | |
22604 | return resultobj; | |
22605 | fail: | |
22606 | return NULL; | |
22607 | } | |
22608 | ||
22609 | ||
22610 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22611 | PyObject *resultobj; | |
22612 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22613 | int arg2 ; | |
22614 | int arg3 ; | |
22615 | PyObject * obj0 = 0 ; | |
22616 | PyObject * obj1 = 0 ; | |
22617 | PyObject * obj2 = 0 ; | |
22618 | char *kwnames[] = { | |
22619 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22620 | }; | |
22621 | ||
22622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22625 | arg2 = (int) SWIG_AsInt(obj1); | |
22626 | if (PyErr_Occurred()) SWIG_fail; | |
22627 | arg3 = (int) SWIG_AsInt(obj2); | |
22628 | if (PyErr_Occurred()) SWIG_fail; | |
22629 | { | |
22630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22631 | (arg1)->SetClientSize(arg2,arg3); | |
22632 | ||
22633 | wxPyEndAllowThreads(__tstate); | |
22634 | if (PyErr_Occurred()) SWIG_fail; | |
22635 | } | |
22636 | Py_INCREF(Py_None); resultobj = Py_None; | |
22637 | return resultobj; | |
22638 | fail: | |
22639 | return NULL; | |
22640 | } | |
22641 | ||
22642 | ||
22643 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22644 | PyObject *resultobj; | |
22645 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22646 | wxRect *arg2 = 0 ; | |
22647 | wxRect temp2 ; | |
22648 | PyObject * obj0 = 0 ; | |
22649 | PyObject * obj1 = 0 ; | |
22650 | char *kwnames[] = { | |
22651 | (char *) "self",(char *) "rect", NULL | |
22652 | }; | |
22653 | ||
22654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
22655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22657 | { | |
22658 | arg2 = &temp2; | |
22659 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22660 | } | |
22661 | { | |
22662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22663 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
22664 | ||
22665 | wxPyEndAllowThreads(__tstate); | |
22666 | if (PyErr_Occurred()) SWIG_fail; | |
22667 | } | |
22668 | Py_INCREF(Py_None); resultobj = Py_None; | |
22669 | return resultobj; | |
22670 | fail: | |
22671 | return NULL; | |
22672 | } | |
22673 | ||
22674 | ||
22675 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22676 | PyObject *resultobj; | |
22677 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22678 | wxPoint result; | |
22679 | PyObject * obj0 = 0 ; | |
22680 | char *kwnames[] = { | |
22681 | (char *) "self", NULL | |
22682 | }; | |
22683 | ||
22684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
22685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22687 | { | |
22688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22689 | result = (arg1)->GetPosition(); | |
22690 | ||
22691 | wxPyEndAllowThreads(__tstate); | |
22692 | if (PyErr_Occurred()) SWIG_fail; | |
22693 | } | |
22694 | { | |
22695 | wxPoint * resultptr; | |
22696 | resultptr = new wxPoint((wxPoint &) result); | |
22697 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
22698 | } | |
22699 | return resultobj; | |
22700 | fail: | |
22701 | return NULL; | |
22702 | } | |
22703 | ||
22704 | ||
22705 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22706 | PyObject *resultobj; | |
22707 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22708 | int *arg2 = (int *) 0 ; | |
22709 | int *arg3 = (int *) 0 ; | |
22710 | int temp2 ; | |
22711 | int temp3 ; | |
22712 | PyObject * obj0 = 0 ; | |
22713 | char *kwnames[] = { | |
22714 | (char *) "self", NULL | |
22715 | }; | |
22716 | ||
22717 | arg2 = &temp2; | |
22718 | arg3 = &temp3; | |
22719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
22720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22722 | { | |
22723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22724 | (arg1)->GetPosition(arg2,arg3); | |
22725 | ||
22726 | wxPyEndAllowThreads(__tstate); | |
22727 | if (PyErr_Occurred()) SWIG_fail; | |
22728 | } | |
22729 | Py_INCREF(Py_None); resultobj = Py_None; | |
22730 | { | |
22731 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22732 | resultobj = t_output_helper(resultobj,o); | |
22733 | } | |
22734 | { | |
22735 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22736 | resultobj = t_output_helper(resultobj,o); | |
22737 | } | |
22738 | return resultobj; | |
22739 | fail: | |
22740 | return NULL; | |
22741 | } | |
22742 | ||
22743 | ||
22744 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22745 | PyObject *resultobj; | |
22746 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22747 | wxSize result; | |
22748 | PyObject * obj0 = 0 ; | |
22749 | char *kwnames[] = { | |
22750 | (char *) "self", NULL | |
22751 | }; | |
22752 | ||
22753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
22754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22756 | { | |
22757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22758 | result = ((wxWindow const *)arg1)->GetSize(); | |
22759 | ||
22760 | wxPyEndAllowThreads(__tstate); | |
22761 | if (PyErr_Occurred()) SWIG_fail; | |
22762 | } | |
22763 | { | |
22764 | wxSize * resultptr; | |
22765 | resultptr = new wxSize((wxSize &) result); | |
22766 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22767 | } | |
22768 | return resultobj; | |
22769 | fail: | |
22770 | return NULL; | |
22771 | } | |
22772 | ||
22773 | ||
22774 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22775 | PyObject *resultobj; | |
22776 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22777 | int *arg2 = (int *) 0 ; | |
22778 | int *arg3 = (int *) 0 ; | |
22779 | int temp2 ; | |
22780 | int temp3 ; | |
22781 | PyObject * obj0 = 0 ; | |
22782 | char *kwnames[] = { | |
22783 | (char *) "self", NULL | |
22784 | }; | |
22785 | ||
22786 | arg2 = &temp2; | |
22787 | arg3 = &temp3; | |
22788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
22789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22791 | { | |
22792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22793 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
22794 | ||
22795 | wxPyEndAllowThreads(__tstate); | |
22796 | if (PyErr_Occurred()) SWIG_fail; | |
22797 | } | |
22798 | Py_INCREF(Py_None); resultobj = Py_None; | |
22799 | { | |
22800 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22801 | resultobj = t_output_helper(resultobj,o); | |
22802 | } | |
22803 | { | |
22804 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22805 | resultobj = t_output_helper(resultobj,o); | |
22806 | } | |
22807 | return resultobj; | |
22808 | fail: | |
22809 | return NULL; | |
22810 | } | |
22811 | ||
22812 | ||
22813 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22814 | PyObject *resultobj; | |
22815 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22816 | wxRect result; | |
22817 | PyObject * obj0 = 0 ; | |
22818 | char *kwnames[] = { | |
22819 | (char *) "self", NULL | |
22820 | }; | |
22821 | ||
22822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
22823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22825 | { | |
22826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22827 | result = ((wxWindow const *)arg1)->GetRect(); | |
22828 | ||
22829 | wxPyEndAllowThreads(__tstate); | |
22830 | if (PyErr_Occurred()) SWIG_fail; | |
22831 | } | |
22832 | { | |
22833 | wxRect * resultptr; | |
22834 | resultptr = new wxRect((wxRect &) result); | |
22835 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
22836 | } | |
22837 | return resultobj; | |
22838 | fail: | |
22839 | return NULL; | |
22840 | } | |
22841 | ||
22842 | ||
22843 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22844 | PyObject *resultobj; | |
22845 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22846 | wxSize result; | |
22847 | PyObject * obj0 = 0 ; | |
22848 | char *kwnames[] = { | |
22849 | (char *) "self", NULL | |
22850 | }; | |
22851 | ||
22852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
22853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22855 | { | |
22856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22857 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
22858 | ||
22859 | wxPyEndAllowThreads(__tstate); | |
22860 | if (PyErr_Occurred()) SWIG_fail; | |
22861 | } | |
22862 | { | |
22863 | wxSize * resultptr; | |
22864 | resultptr = new wxSize((wxSize &) result); | |
22865 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22866 | } | |
22867 | return resultobj; | |
22868 | fail: | |
22869 | return NULL; | |
22870 | } | |
22871 | ||
22872 | ||
22873 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22874 | PyObject *resultobj; | |
22875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22876 | int *arg2 = (int *) 0 ; | |
22877 | int *arg3 = (int *) 0 ; | |
22878 | int temp2 ; | |
22879 | int temp3 ; | |
22880 | PyObject * obj0 = 0 ; | |
22881 | char *kwnames[] = { | |
22882 | (char *) "self", NULL | |
22883 | }; | |
22884 | ||
22885 | arg2 = &temp2; | |
22886 | arg3 = &temp3; | |
22887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
22888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22890 | { | |
22891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22892 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
22893 | ||
22894 | wxPyEndAllowThreads(__tstate); | |
22895 | if (PyErr_Occurred()) SWIG_fail; | |
22896 | } | |
22897 | Py_INCREF(Py_None); resultobj = Py_None; | |
22898 | { | |
22899 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22900 | resultobj = t_output_helper(resultobj,o); | |
22901 | } | |
22902 | { | |
22903 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22904 | resultobj = t_output_helper(resultobj,o); | |
22905 | } | |
22906 | return resultobj; | |
22907 | fail: | |
22908 | return NULL; | |
22909 | } | |
22910 | ||
22911 | ||
22912 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22913 | PyObject *resultobj; | |
22914 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22915 | wxPoint result; | |
22916 | PyObject * obj0 = 0 ; | |
22917 | char *kwnames[] = { | |
22918 | (char *) "self", NULL | |
22919 | }; | |
22920 | ||
22921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
22922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22924 | { | |
22925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22926 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
22927 | ||
22928 | wxPyEndAllowThreads(__tstate); | |
22929 | if (PyErr_Occurred()) SWIG_fail; | |
22930 | } | |
22931 | { | |
22932 | wxPoint * resultptr; | |
22933 | resultptr = new wxPoint((wxPoint &) result); | |
22934 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
22935 | } | |
22936 | return resultobj; | |
22937 | fail: | |
22938 | return NULL; | |
22939 | } | |
22940 | ||
22941 | ||
22942 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22943 | PyObject *resultobj; | |
22944 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22945 | wxRect result; | |
22946 | PyObject * obj0 = 0 ; | |
22947 | char *kwnames[] = { | |
22948 | (char *) "self", NULL | |
22949 | }; | |
22950 | ||
22951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
22952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22954 | { | |
22955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22956 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
22957 | ||
22958 | wxPyEndAllowThreads(__tstate); | |
22959 | if (PyErr_Occurred()) SWIG_fail; | |
22960 | } | |
22961 | { | |
22962 | wxRect * resultptr; | |
22963 | resultptr = new wxRect((wxRect &) result); | |
22964 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
22965 | } | |
22966 | return resultobj; | |
22967 | fail: | |
22968 | return NULL; | |
22969 | } | |
22970 | ||
22971 | ||
22972 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22973 | PyObject *resultobj; | |
22974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22975 | wxSize result; | |
22976 | PyObject * obj0 = 0 ; | |
22977 | char *kwnames[] = { | |
22978 | (char *) "self", NULL | |
22979 | }; | |
22980 | ||
22981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
22982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22984 | { | |
22985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22986 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
22987 | ||
22988 | wxPyEndAllowThreads(__tstate); | |
22989 | if (PyErr_Occurred()) SWIG_fail; | |
22990 | } | |
22991 | { | |
22992 | wxSize * resultptr; | |
22993 | resultptr = new wxSize((wxSize &) result); | |
22994 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22995 | } | |
22996 | return resultobj; | |
22997 | fail: | |
22998 | return NULL; | |
22999 | } | |
23000 | ||
23001 | ||
23002 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23003 | PyObject *resultobj; | |
23004 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23005 | int *arg2 = (int *) 0 ; | |
23006 | int *arg3 = (int *) 0 ; | |
23007 | int temp2 ; | |
23008 | int temp3 ; | |
23009 | PyObject * obj0 = 0 ; | |
23010 | char *kwnames[] = { | |
23011 | (char *) "self", NULL | |
23012 | }; | |
23013 | ||
23014 | arg2 = &temp2; | |
23015 | arg3 = &temp3; | |
23016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
23017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23019 | { | |
23020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23021 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
23022 | ||
23023 | wxPyEndAllowThreads(__tstate); | |
23024 | if (PyErr_Occurred()) SWIG_fail; | |
23025 | } | |
23026 | Py_INCREF(Py_None); resultobj = Py_None; | |
23027 | { | |
23028 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23029 | resultobj = t_output_helper(resultobj,o); | |
23030 | } | |
23031 | { | |
23032 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23033 | resultobj = t_output_helper(resultobj,o); | |
23034 | } | |
23035 | return resultobj; | |
23036 | fail: | |
23037 | return NULL; | |
23038 | } | |
23039 | ||
23040 | ||
a001823c RD |
23041 | static PyObject *_wrap_Window_InvalidateBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
23042 | PyObject *resultobj; | |
23043 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23044 | PyObject * obj0 = 0 ; | |
23045 | char *kwnames[] = { | |
23046 | (char *) "self", NULL | |
23047 | }; | |
23048 | ||
23049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail; | |
23050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23052 | { | |
23053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23054 | (arg1)->InvalidateBestSize(); | |
23055 | ||
23056 | wxPyEndAllowThreads(__tstate); | |
23057 | if (PyErr_Occurred()) SWIG_fail; | |
23058 | } | |
23059 | Py_INCREF(Py_None); resultobj = Py_None; | |
23060 | return resultobj; | |
23061 | fail: | |
23062 | return NULL; | |
23063 | } | |
23064 | ||
23065 | ||
23066 | static PyObject *_wrap_Window_GetBestFittingSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23067 | PyObject *resultobj; | |
23068 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23069 | wxSize result; | |
23070 | PyObject * obj0 = 0 ; | |
23071 | char *kwnames[] = { | |
23072 | (char *) "self", NULL | |
23073 | }; | |
23074 | ||
23075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail; | |
23076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23078 | { | |
23079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23080 | result = ((wxWindow const *)arg1)->GetBestFittingSize(); | |
23081 | ||
23082 | wxPyEndAllowThreads(__tstate); | |
23083 | if (PyErr_Occurred()) SWIG_fail; | |
23084 | } | |
23085 | { | |
23086 | wxSize * resultptr; | |
23087 | resultptr = new wxSize((wxSize &) result); | |
23088 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23089 | } | |
23090 | return resultobj; | |
23091 | fail: | |
23092 | return NULL; | |
23093 | } | |
23094 | ||
23095 | ||
d55e5bfc RD |
23096 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
23097 | PyObject *resultobj; | |
23098 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23099 | wxSize result; | |
23100 | PyObject * obj0 = 0 ; | |
23101 | char *kwnames[] = { | |
23102 | (char *) "self", NULL | |
23103 | }; | |
23104 | ||
23105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
23106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23108 | { | |
23109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23110 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
23111 | ||
23112 | wxPyEndAllowThreads(__tstate); | |
23113 | if (PyErr_Occurred()) SWIG_fail; | |
23114 | } | |
23115 | { | |
23116 | wxSize * resultptr; | |
23117 | resultptr = new wxSize((wxSize &) result); | |
23118 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23119 | } | |
23120 | return resultobj; | |
23121 | fail: | |
23122 | return NULL; | |
23123 | } | |
23124 | ||
23125 | ||
23126 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23127 | PyObject *resultobj; | |
23128 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23129 | int arg2 = (int) wxBOTH ; | |
23130 | PyObject * obj0 = 0 ; | |
23131 | PyObject * obj1 = 0 ; | |
23132 | char *kwnames[] = { | |
23133 | (char *) "self",(char *) "direction", NULL | |
23134 | }; | |
23135 | ||
23136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; | |
23137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23139 | if (obj1) { | |
23140 | arg2 = (int) SWIG_AsInt(obj1); | |
23141 | if (PyErr_Occurred()) SWIG_fail; | |
23142 | } | |
23143 | { | |
23144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23145 | (arg1)->Center(arg2); | |
23146 | ||
23147 | wxPyEndAllowThreads(__tstate); | |
23148 | if (PyErr_Occurred()) SWIG_fail; | |
23149 | } | |
23150 | Py_INCREF(Py_None); resultobj = Py_None; | |
23151 | return resultobj; | |
23152 | fail: | |
23153 | return NULL; | |
23154 | } | |
23155 | ||
23156 | ||
23157 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23158 | PyObject *resultobj; | |
23159 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23160 | int arg2 = (int) wxBOTH ; | |
23161 | PyObject * obj0 = 0 ; | |
23162 | PyObject * obj1 = 0 ; | |
23163 | char *kwnames[] = { | |
23164 | (char *) "self",(char *) "dir", NULL | |
23165 | }; | |
23166 | ||
23167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; | |
23168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23170 | if (obj1) { | |
23171 | arg2 = (int) SWIG_AsInt(obj1); | |
23172 | if (PyErr_Occurred()) SWIG_fail; | |
23173 | } | |
23174 | { | |
23175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23176 | (arg1)->CenterOnScreen(arg2); | |
23177 | ||
23178 | wxPyEndAllowThreads(__tstate); | |
23179 | if (PyErr_Occurred()) SWIG_fail; | |
23180 | } | |
23181 | Py_INCREF(Py_None); resultobj = Py_None; | |
23182 | return resultobj; | |
23183 | fail: | |
23184 | return NULL; | |
23185 | } | |
23186 | ||
23187 | ||
23188 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23189 | PyObject *resultobj; | |
23190 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23191 | int arg2 = (int) wxBOTH ; | |
23192 | PyObject * obj0 = 0 ; | |
23193 | PyObject * obj1 = 0 ; | |
23194 | char *kwnames[] = { | |
23195 | (char *) "self",(char *) "dir", NULL | |
23196 | }; | |
23197 | ||
23198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; | |
23199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23201 | if (obj1) { | |
23202 | arg2 = (int) SWIG_AsInt(obj1); | |
23203 | if (PyErr_Occurred()) SWIG_fail; | |
23204 | } | |
23205 | { | |
23206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23207 | (arg1)->CenterOnParent(arg2); | |
23208 | ||
23209 | wxPyEndAllowThreads(__tstate); | |
23210 | if (PyErr_Occurred()) SWIG_fail; | |
23211 | } | |
23212 | Py_INCREF(Py_None); resultobj = Py_None; | |
23213 | return resultobj; | |
23214 | fail: | |
23215 | return NULL; | |
23216 | } | |
23217 | ||
23218 | ||
23219 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23220 | PyObject *resultobj; | |
23221 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23222 | PyObject * obj0 = 0 ; | |
23223 | char *kwnames[] = { | |
23224 | (char *) "self", NULL | |
23225 | }; | |
23226 | ||
23227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
23228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23230 | { | |
23231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23232 | (arg1)->Fit(); | |
23233 | ||
23234 | wxPyEndAllowThreads(__tstate); | |
23235 | if (PyErr_Occurred()) SWIG_fail; | |
23236 | } | |
23237 | Py_INCREF(Py_None); resultobj = Py_None; | |
23238 | return resultobj; | |
23239 | fail: | |
23240 | return NULL; | |
23241 | } | |
23242 | ||
23243 | ||
23244 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23245 | PyObject *resultobj; | |
23246 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23247 | PyObject * obj0 = 0 ; | |
23248 | char *kwnames[] = { | |
23249 | (char *) "self", NULL | |
23250 | }; | |
23251 | ||
23252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
23253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23255 | { | |
23256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23257 | (arg1)->FitInside(); | |
23258 | ||
23259 | wxPyEndAllowThreads(__tstate); | |
23260 | if (PyErr_Occurred()) SWIG_fail; | |
23261 | } | |
23262 | Py_INCREF(Py_None); resultobj = Py_None; | |
23263 | return resultobj; | |
23264 | fail: | |
23265 | return NULL; | |
23266 | } | |
23267 | ||
23268 | ||
03837c5c | 23269 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23270 | PyObject *resultobj; |
23271 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23272 | int arg2 ; | |
23273 | int arg3 ; | |
23274 | int arg4 = (int) -1 ; | |
23275 | int arg5 = (int) -1 ; | |
23276 | int arg6 = (int) -1 ; | |
23277 | int arg7 = (int) -1 ; | |
23278 | PyObject * obj0 = 0 ; | |
23279 | PyObject * obj1 = 0 ; | |
23280 | PyObject * obj2 = 0 ; | |
23281 | PyObject * obj3 = 0 ; | |
23282 | PyObject * obj4 = 0 ; | |
23283 | PyObject * obj5 = 0 ; | |
23284 | PyObject * obj6 = 0 ; | |
03837c5c RD |
23285 | char *kwnames[] = { |
23286 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
23287 | }; | |
d55e5bfc | 23288 | |
03837c5c | 23289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
23290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23292 | arg2 = (int) SWIG_AsInt(obj1); | |
23293 | if (PyErr_Occurred()) SWIG_fail; | |
23294 | arg3 = (int) SWIG_AsInt(obj2); | |
23295 | if (PyErr_Occurred()) SWIG_fail; | |
23296 | if (obj3) { | |
23297 | arg4 = (int) SWIG_AsInt(obj3); | |
23298 | if (PyErr_Occurred()) SWIG_fail; | |
23299 | } | |
23300 | if (obj4) { | |
23301 | arg5 = (int) SWIG_AsInt(obj4); | |
23302 | if (PyErr_Occurred()) SWIG_fail; | |
23303 | } | |
23304 | if (obj5) { | |
23305 | arg6 = (int) SWIG_AsInt(obj5); | |
23306 | if (PyErr_Occurred()) SWIG_fail; | |
23307 | } | |
23308 | if (obj6) { | |
23309 | arg7 = (int) SWIG_AsInt(obj6); | |
23310 | if (PyErr_Occurred()) SWIG_fail; | |
23311 | } | |
23312 | { | |
23313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23314 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
23315 | ||
23316 | wxPyEndAllowThreads(__tstate); | |
23317 | if (PyErr_Occurred()) SWIG_fail; | |
23318 | } | |
23319 | Py_INCREF(Py_None); resultobj = Py_None; | |
23320 | return resultobj; | |
23321 | fail: | |
23322 | return NULL; | |
23323 | } | |
23324 | ||
23325 | ||
03837c5c | 23326 | static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23327 | PyObject *resultobj; |
23328 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23329 | wxSize *arg2 = 0 ; |
23330 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23331 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
03837c5c RD |
23332 | wxSize const &arg4_defvalue = wxDefaultSize ; |
23333 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
908b74cd RD |
23334 | wxSize temp2 ; |
23335 | wxSize temp3 ; | |
03837c5c | 23336 | wxSize temp4 ; |
d55e5bfc RD |
23337 | PyObject * obj0 = 0 ; |
23338 | PyObject * obj1 = 0 ; | |
23339 | PyObject * obj2 = 0 ; | |
03837c5c RD |
23340 | PyObject * obj3 = 0 ; |
23341 | char *kwnames[] = { | |
23342 | (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL | |
23343 | }; | |
d55e5bfc | 23344 | |
03837c5c | 23345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
23346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
908b74cd RD |
23348 | { |
23349 | arg2 = &temp2; | |
23350 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 23351 | } |
908b74cd RD |
23352 | if (obj2) { |
23353 | { | |
23354 | arg3 = &temp3; | |
23355 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23356 | } | |
d55e5bfc | 23357 | } |
03837c5c RD |
23358 | if (obj3) { |
23359 | { | |
23360 | arg4 = &temp4; | |
23361 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23362 | } | |
23363 | } | |
d55e5bfc RD |
23364 | { |
23365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03837c5c | 23366 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); |
d55e5bfc RD |
23367 | |
23368 | wxPyEndAllowThreads(__tstate); | |
23369 | if (PyErr_Occurred()) SWIG_fail; | |
23370 | } | |
23371 | Py_INCREF(Py_None); resultobj = Py_None; | |
23372 | return resultobj; | |
23373 | fail: | |
23374 | return NULL; | |
23375 | } | |
23376 | ||
23377 | ||
03837c5c | 23378 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23379 | PyObject *resultobj; |
23380 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23381 | int arg2 ; |
23382 | int arg3 ; | |
23383 | int arg4 = (int) -1 ; | |
23384 | int arg5 = (int) -1 ; | |
d55e5bfc RD |
23385 | PyObject * obj0 = 0 ; |
23386 | PyObject * obj1 = 0 ; | |
23387 | PyObject * obj2 = 0 ; | |
908b74cd RD |
23388 | PyObject * obj3 = 0 ; |
23389 | PyObject * obj4 = 0 ; | |
03837c5c RD |
23390 | char *kwnames[] = { |
23391 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
23392 | }; | |
d55e5bfc | 23393 | |
03837c5c | 23394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
23395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
908b74cd RD |
23397 | arg2 = (int) SWIG_AsInt(obj1); |
23398 | if (PyErr_Occurred()) SWIG_fail; | |
23399 | arg3 = (int) SWIG_AsInt(obj2); | |
23400 | if (PyErr_Occurred()) SWIG_fail; | |
23401 | if (obj3) { | |
23402 | arg4 = (int) SWIG_AsInt(obj3); | |
23403 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 23404 | } |
908b74cd RD |
23405 | if (obj4) { |
23406 | arg5 = (int) SWIG_AsInt(obj4); | |
23407 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc RD |
23408 | } |
23409 | { | |
23410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23411 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
23412 | |
23413 | wxPyEndAllowThreads(__tstate); | |
23414 | if (PyErr_Occurred()) SWIG_fail; | |
23415 | } | |
23416 | Py_INCREF(Py_None); resultobj = Py_None; | |
23417 | return resultobj; | |
23418 | fail: | |
23419 | return NULL; | |
23420 | } | |
23421 | ||
23422 | ||
03837c5c RD |
23423 | static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *self, PyObject *args, PyObject *kwargs) { |
23424 | PyObject *resultobj; | |
23425 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23426 | wxSize *arg2 = 0 ; | |
23427 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23428 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23429 | wxSize temp2 ; | |
23430 | wxSize temp3 ; | |
23431 | PyObject * obj0 = 0 ; | |
23432 | PyObject * obj1 = 0 ; | |
23433 | PyObject * obj2 = 0 ; | |
23434 | char *kwnames[] = { | |
23435 | (char *) "self",(char *) "minSize",(char *) "maxSize", NULL | |
23436 | }; | |
d55e5bfc | 23437 | |
03837c5c RD |
23438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail; |
23439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23441 | { | |
23442 | arg2 = &temp2; | |
23443 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 23444 | } |
03837c5c | 23445 | if (obj2) { |
d55e5bfc | 23446 | { |
03837c5c RD |
23447 | arg3 = &temp3; |
23448 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
23449 | } |
23450 | } | |
03837c5c RD |
23451 | { |
23452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23453 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
23454 | ||
23455 | wxPyEndAllowThreads(__tstate); | |
23456 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 23457 | } |
03837c5c RD |
23458 | Py_INCREF(Py_None); resultobj = Py_None; |
23459 | return resultobj; | |
23460 | fail: | |
d55e5bfc RD |
23461 | return NULL; |
23462 | } | |
23463 | ||
23464 | ||
908b74cd | 23465 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23466 | PyObject *resultobj; |
23467 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23468 | wxSize result; |
d55e5bfc RD |
23469 | PyObject * obj0 = 0 ; |
23470 | char *kwnames[] = { | |
23471 | (char *) "self", NULL | |
23472 | }; | |
23473 | ||
908b74cd | 23474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
23475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23477 | { | |
23478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23479 | result = ((wxWindow const *)arg1)->GetMaxSize(); |
d55e5bfc RD |
23480 | |
23481 | wxPyEndAllowThreads(__tstate); | |
23482 | if (PyErr_Occurred()) SWIG_fail; | |
23483 | } | |
908b74cd RD |
23484 | { |
23485 | wxSize * resultptr; | |
23486 | resultptr = new wxSize((wxSize &) result); | |
23487 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23488 | } | |
d55e5bfc RD |
23489 | return resultobj; |
23490 | fail: | |
23491 | return NULL; | |
23492 | } | |
23493 | ||
23494 | ||
908b74cd | 23495 | static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23496 | PyObject *resultobj; |
23497 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23498 | wxSize result; |
d55e5bfc RD |
23499 | PyObject * obj0 = 0 ; |
23500 | char *kwnames[] = { | |
23501 | (char *) "self", NULL | |
23502 | }; | |
23503 | ||
908b74cd | 23504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
23505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23507 | { | |
23508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23509 | result = ((wxWindow const *)arg1)->GetMinSize(); |
d55e5bfc RD |
23510 | |
23511 | wxPyEndAllowThreads(__tstate); | |
23512 | if (PyErr_Occurred()) SWIG_fail; | |
23513 | } | |
908b74cd RD |
23514 | { |
23515 | wxSize * resultptr; | |
23516 | resultptr = new wxSize((wxSize &) result); | |
23517 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23518 | } | |
d55e5bfc RD |
23519 | return resultobj; |
23520 | fail: | |
23521 | return NULL; | |
23522 | } | |
23523 | ||
23524 | ||
908b74cd RD |
23525 | static PyObject *_wrap_Window_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
23526 | PyObject *resultobj; | |
23527 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23528 | wxSize *arg2 = 0 ; | |
23529 | wxSize temp2 ; | |
23530 | PyObject * obj0 = 0 ; | |
23531 | PyObject * obj1 = 0 ; | |
23532 | char *kwnames[] = { | |
23533 | (char *) "self",(char *) "minSize", NULL | |
23534 | }; | |
23535 | ||
23536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
23537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23539 | { | |
23540 | arg2 = &temp2; | |
23541 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23542 | } | |
23543 | { | |
23544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23545 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
23546 | ||
23547 | wxPyEndAllowThreads(__tstate); | |
23548 | if (PyErr_Occurred()) SWIG_fail; | |
23549 | } | |
23550 | Py_INCREF(Py_None); resultobj = Py_None; | |
23551 | return resultobj; | |
23552 | fail: | |
23553 | return NULL; | |
23554 | } | |
23555 | ||
23556 | ||
23557 | static PyObject *_wrap_Window_SetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23558 | PyObject *resultobj; | |
23559 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23560 | wxSize *arg2 = 0 ; | |
23561 | wxSize temp2 ; | |
23562 | PyObject * obj0 = 0 ; | |
23563 | PyObject * obj1 = 0 ; | |
23564 | char *kwnames[] = { | |
23565 | (char *) "self",(char *) "maxSize", NULL | |
23566 | }; | |
23567 | ||
23568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail; | |
23569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23571 | { | |
23572 | arg2 = &temp2; | |
23573 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23574 | } | |
23575 | { | |
23576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23577 | (arg1)->SetMaxSize((wxSize const &)*arg2); | |
23578 | ||
23579 | wxPyEndAllowThreads(__tstate); | |
23580 | if (PyErr_Occurred()) SWIG_fail; | |
23581 | } | |
23582 | Py_INCREF(Py_None); resultobj = Py_None; | |
23583 | return resultobj; | |
23584 | fail: | |
23585 | return NULL; | |
23586 | } | |
23587 | ||
23588 | ||
23589 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d55e5bfc RD |
23590 | PyObject *resultobj; |
23591 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23592 | int result; | |
23593 | PyObject * obj0 = 0 ; | |
23594 | char *kwnames[] = { | |
23595 | (char *) "self", NULL | |
23596 | }; | |
23597 | ||
908b74cd | 23598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
23599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23601 | { | |
23602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23603 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); |
d55e5bfc RD |
23604 | |
23605 | wxPyEndAllowThreads(__tstate); | |
23606 | if (PyErr_Occurred()) SWIG_fail; | |
23607 | } | |
23608 | resultobj = SWIG_FromInt((int)result); | |
23609 | return resultobj; | |
23610 | fail: | |
23611 | return NULL; | |
23612 | } | |
23613 | ||
23614 | ||
908b74cd | 23615 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23616 | PyObject *resultobj; |
23617 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23618 | int result; | |
23619 | PyObject * obj0 = 0 ; | |
23620 | char *kwnames[] = { | |
23621 | (char *) "self", NULL | |
23622 | }; | |
23623 | ||
908b74cd | 23624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
23625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23627 | { | |
23628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23629 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); |
d55e5bfc RD |
23630 | |
23631 | wxPyEndAllowThreads(__tstate); | |
23632 | if (PyErr_Occurred()) SWIG_fail; | |
23633 | } | |
23634 | resultobj = SWIG_FromInt((int)result); | |
23635 | return resultobj; | |
23636 | fail: | |
23637 | return NULL; | |
23638 | } | |
23639 | ||
23640 | ||
908b74cd | 23641 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23642 | PyObject *resultobj; |
23643 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23644 | int result; |
d55e5bfc RD |
23645 | PyObject * obj0 = 0 ; |
23646 | char *kwnames[] = { | |
23647 | (char *) "self", NULL | |
23648 | }; | |
23649 | ||
908b74cd | 23650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
23651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23653 | { | |
23654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23655 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); |
d55e5bfc RD |
23656 | |
23657 | wxPyEndAllowThreads(__tstate); | |
23658 | if (PyErr_Occurred()) SWIG_fail; | |
23659 | } | |
908b74cd | 23660 | resultobj = SWIG_FromInt((int)result); |
d55e5bfc RD |
23661 | return resultobj; |
23662 | fail: | |
23663 | return NULL; | |
23664 | } | |
23665 | ||
23666 | ||
908b74cd | 23667 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23668 | PyObject *resultobj; |
23669 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23670 | int result; |
d55e5bfc RD |
23671 | PyObject * obj0 = 0 ; |
23672 | char *kwnames[] = { | |
23673 | (char *) "self", NULL | |
23674 | }; | |
23675 | ||
908b74cd | 23676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
23677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23679 | { | |
23680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23681 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); |
d55e5bfc RD |
23682 | |
23683 | wxPyEndAllowThreads(__tstate); | |
23684 | if (PyErr_Occurred()) SWIG_fail; | |
23685 | } | |
908b74cd | 23686 | resultobj = SWIG_FromInt((int)result); |
d55e5bfc RD |
23687 | return resultobj; |
23688 | fail: | |
23689 | return NULL; | |
23690 | } | |
23691 | ||
23692 | ||
23693 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23694 | PyObject *resultobj; | |
23695 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23696 | wxSize *arg2 = 0 ; | |
23697 | wxSize temp2 ; | |
23698 | PyObject * obj0 = 0 ; | |
23699 | PyObject * obj1 = 0 ; | |
23700 | char *kwnames[] = { | |
23701 | (char *) "self",(char *) "size", NULL | |
23702 | }; | |
23703 | ||
23704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
23705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23707 | { | |
23708 | arg2 = &temp2; | |
23709 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23710 | } | |
23711 | { | |
23712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23713 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
23714 | ||
23715 | wxPyEndAllowThreads(__tstate); | |
23716 | if (PyErr_Occurred()) SWIG_fail; | |
23717 | } | |
23718 | Py_INCREF(Py_None); resultobj = Py_None; | |
23719 | return resultobj; | |
23720 | fail: | |
23721 | return NULL; | |
23722 | } | |
23723 | ||
23724 | ||
23725 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23726 | PyObject *resultobj; | |
23727 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23728 | int arg2 ; | |
23729 | int arg3 ; | |
23730 | PyObject * obj0 = 0 ; | |
23731 | PyObject * obj1 = 0 ; | |
23732 | PyObject * obj2 = 0 ; | |
23733 | char *kwnames[] = { | |
23734 | (char *) "self",(char *) "w",(char *) "h", NULL | |
23735 | }; | |
23736 | ||
23737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23740 | arg2 = (int) SWIG_AsInt(obj1); | |
23741 | if (PyErr_Occurred()) SWIG_fail; | |
23742 | arg3 = (int) SWIG_AsInt(obj2); | |
23743 | if (PyErr_Occurred()) SWIG_fail; | |
23744 | { | |
23745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23746 | (arg1)->SetVirtualSize(arg2,arg3); | |
23747 | ||
23748 | wxPyEndAllowThreads(__tstate); | |
23749 | if (PyErr_Occurred()) SWIG_fail; | |
23750 | } | |
23751 | Py_INCREF(Py_None); resultobj = Py_None; | |
23752 | return resultobj; | |
23753 | fail: | |
23754 | return NULL; | |
23755 | } | |
23756 | ||
23757 | ||
23758 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23759 | PyObject *resultobj; | |
23760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23761 | wxSize result; | |
23762 | PyObject * obj0 = 0 ; | |
23763 | char *kwnames[] = { | |
23764 | (char *) "self", NULL | |
23765 | }; | |
23766 | ||
23767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
23768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23770 | { | |
23771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23772 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
23773 | ||
23774 | wxPyEndAllowThreads(__tstate); | |
23775 | if (PyErr_Occurred()) SWIG_fail; | |
23776 | } | |
23777 | { | |
23778 | wxSize * resultptr; | |
23779 | resultptr = new wxSize((wxSize &) result); | |
23780 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23781 | } | |
23782 | return resultobj; | |
23783 | fail: | |
23784 | return NULL; | |
23785 | } | |
23786 | ||
23787 | ||
23788 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23789 | PyObject *resultobj; | |
23790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23791 | int *arg2 = (int *) 0 ; | |
23792 | int *arg3 = (int *) 0 ; | |
23793 | int temp2 ; | |
23794 | int temp3 ; | |
23795 | PyObject * obj0 = 0 ; | |
23796 | char *kwnames[] = { | |
23797 | (char *) "self", NULL | |
23798 | }; | |
23799 | ||
23800 | arg2 = &temp2; | |
23801 | arg3 = &temp3; | |
23802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
23803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23805 | { | |
23806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23807 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
23808 | ||
23809 | wxPyEndAllowThreads(__tstate); | |
23810 | if (PyErr_Occurred()) SWIG_fail; | |
23811 | } | |
23812 | Py_INCREF(Py_None); resultobj = Py_None; | |
23813 | { | |
23814 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23815 | resultobj = t_output_helper(resultobj,o); | |
23816 | } | |
23817 | { | |
23818 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23819 | resultobj = t_output_helper(resultobj,o); | |
23820 | } | |
23821 | return resultobj; | |
23822 | fail: | |
23823 | return NULL; | |
23824 | } | |
23825 | ||
23826 | ||
23827 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23828 | PyObject *resultobj; | |
23829 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23830 | wxSize result; | |
23831 | PyObject * obj0 = 0 ; | |
23832 | char *kwnames[] = { | |
23833 | (char *) "self", NULL | |
23834 | }; | |
23835 | ||
23836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
23837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23839 | { | |
23840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23841 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
23842 | ||
23843 | wxPyEndAllowThreads(__tstate); | |
23844 | if (PyErr_Occurred()) SWIG_fail; | |
23845 | } | |
23846 | { | |
23847 | wxSize * resultptr; | |
23848 | resultptr = new wxSize((wxSize &) result); | |
23849 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23850 | } | |
23851 | return resultobj; | |
23852 | fail: | |
23853 | return NULL; | |
23854 | } | |
23855 | ||
23856 | ||
23857 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23858 | PyObject *resultobj; | |
23859 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23860 | bool arg2 = (bool) True ; | |
23861 | bool result; | |
23862 | PyObject * obj0 = 0 ; | |
23863 | PyObject * obj1 = 0 ; | |
23864 | char *kwnames[] = { | |
23865 | (char *) "self",(char *) "show", NULL | |
23866 | }; | |
23867 | ||
23868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
23869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23871 | if (obj1) { | |
23872 | arg2 = (bool) SWIG_AsBool(obj1); | |
23873 | if (PyErr_Occurred()) SWIG_fail; | |
23874 | } | |
23875 | { | |
23876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23877 | result = (bool)(arg1)->Show(arg2); | |
23878 | ||
23879 | wxPyEndAllowThreads(__tstate); | |
23880 | if (PyErr_Occurred()) SWIG_fail; | |
23881 | } | |
23882 | { | |
23883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23884 | } | |
23885 | return resultobj; | |
23886 | fail: | |
23887 | return NULL; | |
23888 | } | |
23889 | ||
23890 | ||
23891 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23892 | PyObject *resultobj; | |
23893 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23894 | bool result; | |
23895 | PyObject * obj0 = 0 ; | |
23896 | char *kwnames[] = { | |
23897 | (char *) "self", NULL | |
23898 | }; | |
23899 | ||
23900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
23901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23903 | { | |
23904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23905 | result = (bool)(arg1)->Hide(); | |
23906 | ||
23907 | wxPyEndAllowThreads(__tstate); | |
23908 | if (PyErr_Occurred()) SWIG_fail; | |
23909 | } | |
23910 | { | |
23911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23912 | } | |
23913 | return resultobj; | |
23914 | fail: | |
23915 | return NULL; | |
23916 | } | |
23917 | ||
23918 | ||
23919 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23920 | PyObject *resultobj; | |
23921 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23922 | bool arg2 = (bool) True ; | |
23923 | bool result; | |
23924 | PyObject * obj0 = 0 ; | |
23925 | PyObject * obj1 = 0 ; | |
23926 | char *kwnames[] = { | |
23927 | (char *) "self",(char *) "enable", NULL | |
23928 | }; | |
23929 | ||
23930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
23931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23933 | if (obj1) { | |
23934 | arg2 = (bool) SWIG_AsBool(obj1); | |
23935 | if (PyErr_Occurred()) SWIG_fail; | |
23936 | } | |
23937 | { | |
23938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23939 | result = (bool)(arg1)->Enable(arg2); | |
23940 | ||
23941 | wxPyEndAllowThreads(__tstate); | |
23942 | if (PyErr_Occurred()) SWIG_fail; | |
23943 | } | |
23944 | { | |
23945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23946 | } | |
23947 | return resultobj; | |
23948 | fail: | |
23949 | return NULL; | |
23950 | } | |
23951 | ||
23952 | ||
23953 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23954 | PyObject *resultobj; | |
23955 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23956 | bool result; | |
23957 | PyObject * obj0 = 0 ; | |
23958 | char *kwnames[] = { | |
23959 | (char *) "self", NULL | |
23960 | }; | |
23961 | ||
23962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
23963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23965 | { | |
23966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23967 | result = (bool)(arg1)->Disable(); | |
23968 | ||
23969 | wxPyEndAllowThreads(__tstate); | |
23970 | if (PyErr_Occurred()) SWIG_fail; | |
23971 | } | |
23972 | { | |
23973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23974 | } | |
23975 | return resultobj; | |
23976 | fail: | |
23977 | return NULL; | |
23978 | } | |
23979 | ||
23980 | ||
23981 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23982 | PyObject *resultobj; | |
23983 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23984 | bool result; | |
23985 | PyObject * obj0 = 0 ; | |
23986 | char *kwnames[] = { | |
23987 | (char *) "self", NULL | |
23988 | }; | |
23989 | ||
23990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
23991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23993 | { | |
23994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23995 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
23996 | ||
23997 | wxPyEndAllowThreads(__tstate); | |
23998 | if (PyErr_Occurred()) SWIG_fail; | |
23999 | } | |
24000 | { | |
24001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24002 | } | |
24003 | return resultobj; | |
24004 | fail: | |
24005 | return NULL; | |
24006 | } | |
24007 | ||
24008 | ||
24009 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24010 | PyObject *resultobj; | |
24011 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24012 | bool result; | |
24013 | PyObject * obj0 = 0 ; | |
24014 | char *kwnames[] = { | |
24015 | (char *) "self", NULL | |
24016 | }; | |
24017 | ||
24018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
24019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24021 | { | |
24022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24023 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
24024 | ||
24025 | wxPyEndAllowThreads(__tstate); | |
24026 | if (PyErr_Occurred()) SWIG_fail; | |
24027 | } | |
24028 | { | |
24029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24030 | } | |
24031 | return resultobj; | |
24032 | fail: | |
24033 | return NULL; | |
24034 | } | |
24035 | ||
24036 | ||
24037 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24038 | PyObject *resultobj; | |
24039 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24040 | long arg2 ; | |
24041 | PyObject * obj0 = 0 ; | |
24042 | PyObject * obj1 = 0 ; | |
24043 | char *kwnames[] = { | |
24044 | (char *) "self",(char *) "style", NULL | |
24045 | }; | |
24046 | ||
24047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
24048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24050 | arg2 = (long) SWIG_AsLong(obj1); | |
24051 | if (PyErr_Occurred()) SWIG_fail; | |
24052 | { | |
24053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24054 | (arg1)->SetWindowStyleFlag(arg2); | |
24055 | ||
24056 | wxPyEndAllowThreads(__tstate); | |
24057 | if (PyErr_Occurred()) SWIG_fail; | |
24058 | } | |
24059 | Py_INCREF(Py_None); resultobj = Py_None; | |
24060 | return resultobj; | |
24061 | fail: | |
24062 | return NULL; | |
24063 | } | |
24064 | ||
24065 | ||
24066 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24067 | PyObject *resultobj; | |
24068 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24069 | long result; | |
24070 | PyObject * obj0 = 0 ; | |
24071 | char *kwnames[] = { | |
24072 | (char *) "self", NULL | |
24073 | }; | |
24074 | ||
24075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
24076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24078 | { | |
24079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24080 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
24081 | ||
24082 | wxPyEndAllowThreads(__tstate); | |
24083 | if (PyErr_Occurred()) SWIG_fail; | |
24084 | } | |
24085 | resultobj = SWIG_FromLong((long)result); | |
24086 | return resultobj; | |
24087 | fail: | |
24088 | return NULL; | |
24089 | } | |
24090 | ||
24091 | ||
24092 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24093 | PyObject *resultobj; | |
24094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24095 | int arg2 ; | |
24096 | bool result; | |
24097 | PyObject * obj0 = 0 ; | |
24098 | PyObject * obj1 = 0 ; | |
24099 | char *kwnames[] = { | |
24100 | (char *) "self",(char *) "flag", NULL | |
24101 | }; | |
24102 | ||
24103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
24104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24106 | arg2 = (int) SWIG_AsInt(obj1); | |
24107 | if (PyErr_Occurred()) SWIG_fail; | |
24108 | { | |
24109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24110 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
24111 | ||
24112 | wxPyEndAllowThreads(__tstate); | |
24113 | if (PyErr_Occurred()) SWIG_fail; | |
24114 | } | |
24115 | { | |
24116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24117 | } | |
24118 | return resultobj; | |
24119 | fail: | |
24120 | return NULL; | |
24121 | } | |
24122 | ||
24123 | ||
24124 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24125 | PyObject *resultobj; | |
24126 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24127 | bool result; | |
24128 | PyObject * obj0 = 0 ; | |
24129 | char *kwnames[] = { | |
24130 | (char *) "self", NULL | |
24131 | }; | |
24132 | ||
24133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
24134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24136 | { | |
24137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24138 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
24139 | ||
24140 | wxPyEndAllowThreads(__tstate); | |
24141 | if (PyErr_Occurred()) SWIG_fail; | |
24142 | } | |
24143 | { | |
24144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24145 | } | |
24146 | return resultobj; | |
24147 | fail: | |
24148 | return NULL; | |
24149 | } | |
24150 | ||
24151 | ||
24152 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24153 | PyObject *resultobj; | |
24154 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24155 | long arg2 ; | |
24156 | PyObject * obj0 = 0 ; | |
24157 | PyObject * obj1 = 0 ; | |
24158 | char *kwnames[] = { | |
24159 | (char *) "self",(char *) "exStyle", NULL | |
24160 | }; | |
24161 | ||
24162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; | |
24163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24165 | arg2 = (long) SWIG_AsLong(obj1); | |
24166 | if (PyErr_Occurred()) SWIG_fail; | |
24167 | { | |
24168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24169 | (arg1)->SetExtraStyle(arg2); | |
24170 | ||
24171 | wxPyEndAllowThreads(__tstate); | |
24172 | if (PyErr_Occurred()) SWIG_fail; | |
24173 | } | |
24174 | Py_INCREF(Py_None); resultobj = Py_None; | |
24175 | return resultobj; | |
24176 | fail: | |
24177 | return NULL; | |
24178 | } | |
24179 | ||
24180 | ||
24181 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24182 | PyObject *resultobj; | |
24183 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24184 | long result; | |
24185 | PyObject * obj0 = 0 ; | |
24186 | char *kwnames[] = { | |
24187 | (char *) "self", NULL | |
24188 | }; | |
24189 | ||
24190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
24191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24193 | { | |
24194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24195 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
24196 | ||
24197 | wxPyEndAllowThreads(__tstate); | |
24198 | if (PyErr_Occurred()) SWIG_fail; | |
24199 | } | |
24200 | resultobj = SWIG_FromLong((long)result); | |
24201 | return resultobj; | |
24202 | fail: | |
24203 | return NULL; | |
24204 | } | |
24205 | ||
24206 | ||
24207 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24208 | PyObject *resultobj; | |
24209 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24210 | bool arg2 = (bool) True ; | |
24211 | PyObject * obj0 = 0 ; | |
24212 | PyObject * obj1 = 0 ; | |
24213 | char *kwnames[] = { | |
24214 | (char *) "self",(char *) "modal", NULL | |
24215 | }; | |
24216 | ||
24217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
24218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24220 | if (obj1) { | |
24221 | arg2 = (bool) SWIG_AsBool(obj1); | |
24222 | if (PyErr_Occurred()) SWIG_fail; | |
24223 | } | |
24224 | { | |
24225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24226 | (arg1)->MakeModal(arg2); | |
24227 | ||
24228 | wxPyEndAllowThreads(__tstate); | |
24229 | if (PyErr_Occurred()) SWIG_fail; | |
24230 | } | |
24231 | Py_INCREF(Py_None); resultobj = Py_None; | |
24232 | return resultobj; | |
24233 | fail: | |
24234 | return NULL; | |
24235 | } | |
24236 | ||
24237 | ||
24238 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24239 | PyObject *resultobj; | |
24240 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24241 | bool arg2 ; | |
24242 | PyObject * obj0 = 0 ; | |
24243 | PyObject * obj1 = 0 ; | |
24244 | char *kwnames[] = { | |
24245 | (char *) "self",(char *) "enableTheme", NULL | |
24246 | }; | |
24247 | ||
24248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
24249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24251 | arg2 = (bool) SWIG_AsBool(obj1); | |
24252 | if (PyErr_Occurred()) SWIG_fail; | |
24253 | { | |
24254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24255 | (arg1)->SetThemeEnabled(arg2); | |
24256 | ||
24257 | wxPyEndAllowThreads(__tstate); | |
24258 | if (PyErr_Occurred()) SWIG_fail; | |
24259 | } | |
24260 | Py_INCREF(Py_None); resultobj = Py_None; | |
24261 | return resultobj; | |
24262 | fail: | |
24263 | return NULL; | |
24264 | } | |
24265 | ||
24266 | ||
24267 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24268 | PyObject *resultobj; | |
24269 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24270 | bool result; | |
24271 | PyObject * obj0 = 0 ; | |
24272 | char *kwnames[] = { | |
24273 | (char *) "self", NULL | |
24274 | }; | |
24275 | ||
24276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
24277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24279 | { | |
24280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24281 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
24282 | ||
24283 | wxPyEndAllowThreads(__tstate); | |
24284 | if (PyErr_Occurred()) SWIG_fail; | |
24285 | } | |
24286 | { | |
24287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24288 | } | |
24289 | return resultobj; | |
24290 | fail: | |
24291 | return NULL; | |
24292 | } | |
24293 | ||
24294 | ||
24295 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24296 | PyObject *resultobj; | |
24297 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24298 | PyObject * obj0 = 0 ; | |
24299 | char *kwnames[] = { | |
24300 | (char *) "self", NULL | |
24301 | }; | |
24302 | ||
24303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
24304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24306 | { | |
24307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24308 | (arg1)->SetFocus(); | |
24309 | ||
24310 | wxPyEndAllowThreads(__tstate); | |
24311 | if (PyErr_Occurred()) SWIG_fail; | |
24312 | } | |
24313 | Py_INCREF(Py_None); resultobj = Py_None; | |
24314 | return resultobj; | |
24315 | fail: | |
24316 | return NULL; | |
24317 | } | |
24318 | ||
24319 | ||
24320 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24321 | PyObject *resultobj; | |
24322 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24323 | PyObject * obj0 = 0 ; | |
24324 | char *kwnames[] = { | |
24325 | (char *) "self", NULL | |
24326 | }; | |
24327 | ||
24328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
24329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24331 | { | |
24332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24333 | (arg1)->SetFocusFromKbd(); | |
24334 | ||
24335 | wxPyEndAllowThreads(__tstate); | |
24336 | if (PyErr_Occurred()) SWIG_fail; | |
24337 | } | |
24338 | Py_INCREF(Py_None); resultobj = Py_None; | |
24339 | return resultobj; | |
24340 | fail: | |
24341 | return NULL; | |
24342 | } | |
24343 | ||
24344 | ||
24345 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24346 | PyObject *resultobj; | |
24347 | wxWindow *result; | |
24348 | char *kwnames[] = { | |
24349 | NULL | |
24350 | }; | |
24351 | ||
24352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
24353 | { | |
0439c23b | 24354 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24356 | result = (wxWindow *)wxWindow::FindFocus(); | |
24357 | ||
24358 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24359 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24360 | } |
24361 | { | |
412d302d | 24362 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24363 | } |
24364 | return resultobj; | |
24365 | fail: | |
24366 | return NULL; | |
24367 | } | |
24368 | ||
24369 | ||
24370 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24371 | PyObject *resultobj; | |
24372 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24373 | bool result; | |
24374 | PyObject * obj0 = 0 ; | |
24375 | char *kwnames[] = { | |
24376 | (char *) "self", NULL | |
24377 | }; | |
24378 | ||
24379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
24380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24382 | { | |
24383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24384 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
24385 | ||
24386 | wxPyEndAllowThreads(__tstate); | |
24387 | if (PyErr_Occurred()) SWIG_fail; | |
24388 | } | |
24389 | { | |
24390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24391 | } | |
24392 | return resultobj; | |
24393 | fail: | |
24394 | return NULL; | |
24395 | } | |
24396 | ||
24397 | ||
24398 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24399 | PyObject *resultobj; | |
24400 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24401 | bool result; | |
24402 | PyObject * obj0 = 0 ; | |
24403 | char *kwnames[] = { | |
24404 | (char *) "self", NULL | |
24405 | }; | |
24406 | ||
24407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
24408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24410 | { | |
24411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24412 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
24413 | ||
24414 | wxPyEndAllowThreads(__tstate); | |
24415 | if (PyErr_Occurred()) SWIG_fail; | |
24416 | } | |
24417 | { | |
24418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24419 | } | |
24420 | return resultobj; | |
24421 | fail: | |
24422 | return NULL; | |
24423 | } | |
24424 | ||
24425 | ||
24426 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24427 | PyObject *resultobj; | |
24428 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24429 | wxWindow *result; | |
24430 | PyObject * obj0 = 0 ; | |
24431 | char *kwnames[] = { | |
24432 | (char *) "self", NULL | |
24433 | }; | |
24434 | ||
24435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
24436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24438 | { | |
24439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24440 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
24441 | ||
24442 | wxPyEndAllowThreads(__tstate); | |
24443 | if (PyErr_Occurred()) SWIG_fail; | |
24444 | } | |
24445 | { | |
412d302d | 24446 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24447 | } |
24448 | return resultobj; | |
24449 | fail: | |
24450 | return NULL; | |
24451 | } | |
24452 | ||
24453 | ||
24454 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24455 | PyObject *resultobj; | |
24456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24457 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24458 | wxWindow *result; | |
24459 | PyObject * obj0 = 0 ; | |
24460 | PyObject * obj1 = 0 ; | |
24461 | char *kwnames[] = { | |
24462 | (char *) "self",(char *) "child", NULL | |
24463 | }; | |
24464 | ||
24465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24468 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24470 | { | |
24471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24472 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
24473 | ||
24474 | wxPyEndAllowThreads(__tstate); | |
24475 | if (PyErr_Occurred()) SWIG_fail; | |
24476 | } | |
24477 | { | |
412d302d | 24478 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24479 | } |
24480 | return resultobj; | |
24481 | fail: | |
24482 | return NULL; | |
24483 | } | |
24484 | ||
24485 | ||
24486 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24487 | PyObject *resultobj; | |
24488 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24489 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24490 | PyObject * obj0 = 0 ; | |
24491 | PyObject * obj1 = 0 ; | |
24492 | char *kwnames[] = { | |
24493 | (char *) "self",(char *) "win", NULL | |
24494 | }; | |
24495 | ||
24496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24499 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24501 | { | |
24502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24503 | (arg1)->SetTmpDefaultItem(arg2); | |
24504 | ||
24505 | wxPyEndAllowThreads(__tstate); | |
24506 | if (PyErr_Occurred()) SWIG_fail; | |
24507 | } | |
24508 | Py_INCREF(Py_None); resultobj = Py_None; | |
24509 | return resultobj; | |
24510 | fail: | |
24511 | return NULL; | |
24512 | } | |
24513 | ||
24514 | ||
908b74cd RD |
24515 | static PyObject *_wrap_Window_Navigate(PyObject *self, PyObject *args, PyObject *kwargs) { |
24516 | PyObject *resultobj; | |
24517 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24518 | int arg2 = (int) wxNavigationKeyEvent::IsForward ; | |
24519 | bool result; | |
24520 | PyObject * obj0 = 0 ; | |
24521 | PyObject * obj1 = 0 ; | |
24522 | char *kwnames[] = { | |
24523 | (char *) "self",(char *) "flags", NULL | |
24524 | }; | |
24525 | ||
24526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail; | |
24527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24529 | if (obj1) { | |
24530 | arg2 = (int) SWIG_AsInt(obj1); | |
24531 | if (PyErr_Occurred()) SWIG_fail; | |
24532 | } | |
24533 | { | |
24534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24535 | result = (bool)(arg1)->Navigate(arg2); | |
24536 | ||
24537 | wxPyEndAllowThreads(__tstate); | |
24538 | if (PyErr_Occurred()) SWIG_fail; | |
24539 | } | |
24540 | { | |
24541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24542 | } | |
24543 | return resultobj; | |
24544 | fail: | |
24545 | return NULL; | |
24546 | } | |
24547 | ||
24548 | ||
bf26d883 RD |
24549 | static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *self, PyObject *args, PyObject *kwargs) { |
24550 | PyObject *resultobj; | |
24551 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24552 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24553 | PyObject * obj0 = 0 ; | |
24554 | PyObject * obj1 = 0 ; | |
24555 | char *kwnames[] = { | |
24556 | (char *) "self",(char *) "win", NULL | |
24557 | }; | |
24558 | ||
24559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
24560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24562 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24564 | { | |
24565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24566 | (arg1)->MoveAfterInTabOrder(arg2); | |
24567 | ||
24568 | wxPyEndAllowThreads(__tstate); | |
24569 | if (PyErr_Occurred()) SWIG_fail; | |
24570 | } | |
24571 | Py_INCREF(Py_None); resultobj = Py_None; | |
24572 | return resultobj; | |
24573 | fail: | |
24574 | return NULL; | |
24575 | } | |
24576 | ||
24577 | ||
24578 | static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24579 | PyObject *resultobj; | |
24580 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24581 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24582 | PyObject * obj0 = 0 ; | |
24583 | PyObject * obj1 = 0 ; | |
24584 | char *kwnames[] = { | |
24585 | (char *) "self",(char *) "win", NULL | |
24586 | }; | |
24587 | ||
24588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
24589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24591 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24593 | { | |
24594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24595 | (arg1)->MoveBeforeInTabOrder(arg2); | |
24596 | ||
24597 | wxPyEndAllowThreads(__tstate); | |
24598 | if (PyErr_Occurred()) SWIG_fail; | |
24599 | } | |
24600 | Py_INCREF(Py_None); resultobj = Py_None; | |
24601 | return resultobj; | |
24602 | fail: | |
24603 | return NULL; | |
24604 | } | |
24605 | ||
24606 | ||
d55e5bfc RD |
24607 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
24608 | PyObject *resultobj; | |
24609 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24610 | PyObject *result; | |
24611 | PyObject * obj0 = 0 ; | |
24612 | char *kwnames[] = { | |
24613 | (char *) "self", NULL | |
24614 | }; | |
24615 | ||
24616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
24617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24619 | { | |
24620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24621 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
24622 | ||
24623 | wxPyEndAllowThreads(__tstate); | |
24624 | if (PyErr_Occurred()) SWIG_fail; | |
24625 | } | |
24626 | resultobj = result; | |
24627 | return resultobj; | |
24628 | fail: | |
24629 | return NULL; | |
24630 | } | |
24631 | ||
24632 | ||
24633 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24634 | PyObject *resultobj; | |
24635 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24636 | wxWindow *result; | |
24637 | PyObject * obj0 = 0 ; | |
24638 | char *kwnames[] = { | |
24639 | (char *) "self", NULL | |
24640 | }; | |
24641 | ||
24642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
24643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24645 | { | |
24646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24647 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
24648 | ||
24649 | wxPyEndAllowThreads(__tstate); | |
24650 | if (PyErr_Occurred()) SWIG_fail; | |
24651 | } | |
24652 | { | |
412d302d | 24653 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24654 | } |
24655 | return resultobj; | |
24656 | fail: | |
24657 | return NULL; | |
24658 | } | |
24659 | ||
24660 | ||
24661 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24662 | PyObject *resultobj; | |
24663 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24664 | wxWindow *result; | |
24665 | PyObject * obj0 = 0 ; | |
24666 | char *kwnames[] = { | |
24667 | (char *) "self", NULL | |
24668 | }; | |
24669 | ||
24670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
24671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24673 | { | |
24674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24675 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
24676 | ||
24677 | wxPyEndAllowThreads(__tstate); | |
24678 | if (PyErr_Occurred()) SWIG_fail; | |
24679 | } | |
24680 | { | |
412d302d | 24681 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24682 | } |
24683 | return resultobj; | |
24684 | fail: | |
24685 | return NULL; | |
24686 | } | |
24687 | ||
24688 | ||
24689 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24690 | PyObject *resultobj; | |
24691 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24692 | bool result; | |
24693 | PyObject * obj0 = 0 ; | |
24694 | char *kwnames[] = { | |
24695 | (char *) "self", NULL | |
24696 | }; | |
24697 | ||
24698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
24699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24701 | { | |
24702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24703 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
24704 | ||
24705 | wxPyEndAllowThreads(__tstate); | |
24706 | if (PyErr_Occurred()) SWIG_fail; | |
24707 | } | |
24708 | { | |
24709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24710 | } | |
24711 | return resultobj; | |
24712 | fail: | |
24713 | return NULL; | |
24714 | } | |
24715 | ||
24716 | ||
24717 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24718 | PyObject *resultobj; | |
24719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24720 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24721 | bool result; | |
24722 | PyObject * obj0 = 0 ; | |
24723 | PyObject * obj1 = 0 ; | |
24724 | char *kwnames[] = { | |
24725 | (char *) "self",(char *) "newParent", NULL | |
24726 | }; | |
24727 | ||
24728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
24729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24731 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24733 | { | |
24734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24735 | result = (bool)(arg1)->Reparent(arg2); | |
24736 | ||
24737 | wxPyEndAllowThreads(__tstate); | |
24738 | if (PyErr_Occurred()) SWIG_fail; | |
24739 | } | |
24740 | { | |
24741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24742 | } | |
24743 | return resultobj; | |
24744 | fail: | |
24745 | return NULL; | |
24746 | } | |
24747 | ||
24748 | ||
24749 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24750 | PyObject *resultobj; | |
24751 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24752 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24753 | PyObject * obj0 = 0 ; | |
24754 | PyObject * obj1 = 0 ; | |
24755 | char *kwnames[] = { | |
24756 | (char *) "self",(char *) "child", NULL | |
24757 | }; | |
24758 | ||
24759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
24760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24762 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24764 | { | |
24765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24766 | (arg1)->AddChild(arg2); | |
24767 | ||
24768 | wxPyEndAllowThreads(__tstate); | |
24769 | if (PyErr_Occurred()) SWIG_fail; | |
24770 | } | |
24771 | Py_INCREF(Py_None); resultobj = Py_None; | |
24772 | return resultobj; | |
24773 | fail: | |
24774 | return NULL; | |
24775 | } | |
24776 | ||
24777 | ||
24778 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24779 | PyObject *resultobj; | |
24780 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24781 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24782 | PyObject * obj0 = 0 ; | |
24783 | PyObject * obj1 = 0 ; | |
24784 | char *kwnames[] = { | |
24785 | (char *) "self",(char *) "child", NULL | |
24786 | }; | |
24787 | ||
24788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
24789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24791 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24793 | { | |
24794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24795 | (arg1)->RemoveChild(arg2); | |
24796 | ||
24797 | wxPyEndAllowThreads(__tstate); | |
24798 | if (PyErr_Occurred()) SWIG_fail; | |
24799 | } | |
24800 | Py_INCREF(Py_None); resultobj = Py_None; | |
24801 | return resultobj; | |
24802 | fail: | |
24803 | return NULL; | |
24804 | } | |
24805 | ||
24806 | ||
24807 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24808 | PyObject *resultobj; | |
24809 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24810 | long arg2 ; | |
24811 | wxWindow *result; | |
24812 | PyObject * obj0 = 0 ; | |
24813 | PyObject * obj1 = 0 ; | |
24814 | char *kwnames[] = { | |
24815 | (char *) "self",(char *) "winid", NULL | |
24816 | }; | |
24817 | ||
24818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
24819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24821 | arg2 = (long) SWIG_AsLong(obj1); | |
24822 | if (PyErr_Occurred()) SWIG_fail; | |
24823 | { | |
24824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24825 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
24826 | ||
24827 | wxPyEndAllowThreads(__tstate); | |
24828 | if (PyErr_Occurred()) SWIG_fail; | |
24829 | } | |
24830 | { | |
412d302d | 24831 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24832 | } |
24833 | return resultobj; | |
24834 | fail: | |
24835 | return NULL; | |
24836 | } | |
24837 | ||
24838 | ||
24839 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24840 | PyObject *resultobj; | |
24841 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24842 | wxString *arg2 = 0 ; | |
24843 | wxWindow *result; | |
24844 | bool temp2 = False ; | |
24845 | PyObject * obj0 = 0 ; | |
24846 | PyObject * obj1 = 0 ; | |
24847 | char *kwnames[] = { | |
24848 | (char *) "self",(char *) "name", NULL | |
24849 | }; | |
24850 | ||
24851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
24852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24854 | { | |
24855 | arg2 = wxString_in_helper(obj1); | |
24856 | if (arg2 == NULL) SWIG_fail; | |
24857 | temp2 = True; | |
24858 | } | |
24859 | { | |
24860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24861 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
24862 | ||
24863 | wxPyEndAllowThreads(__tstate); | |
24864 | if (PyErr_Occurred()) SWIG_fail; | |
24865 | } | |
24866 | { | |
412d302d | 24867 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24868 | } |
24869 | { | |
24870 | if (temp2) | |
24871 | delete arg2; | |
24872 | } | |
24873 | return resultobj; | |
24874 | fail: | |
24875 | { | |
24876 | if (temp2) | |
24877 | delete arg2; | |
24878 | } | |
24879 | return NULL; | |
24880 | } | |
24881 | ||
24882 | ||
24883 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24884 | PyObject *resultobj; | |
24885 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24886 | wxEvtHandler *result; | |
24887 | PyObject * obj0 = 0 ; | |
24888 | char *kwnames[] = { | |
24889 | (char *) "self", NULL | |
24890 | }; | |
24891 | ||
24892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
24893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24895 | { | |
24896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24897 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
24898 | ||
24899 | wxPyEndAllowThreads(__tstate); | |
24900 | if (PyErr_Occurred()) SWIG_fail; | |
24901 | } | |
24902 | { | |
412d302d | 24903 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24904 | } |
24905 | return resultobj; | |
24906 | fail: | |
24907 | return NULL; | |
24908 | } | |
24909 | ||
24910 | ||
24911 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24912 | PyObject *resultobj; | |
24913 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24914 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24915 | PyObject * obj0 = 0 ; | |
24916 | PyObject * obj1 = 0 ; | |
24917 | char *kwnames[] = { | |
24918 | (char *) "self",(char *) "handler", NULL | |
24919 | }; | |
24920 | ||
24921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24924 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24926 | { | |
24927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24928 | (arg1)->SetEventHandler(arg2); | |
24929 | ||
24930 | wxPyEndAllowThreads(__tstate); | |
24931 | if (PyErr_Occurred()) SWIG_fail; | |
24932 | } | |
24933 | Py_INCREF(Py_None); resultobj = Py_None; | |
24934 | return resultobj; | |
24935 | fail: | |
24936 | return NULL; | |
24937 | } | |
24938 | ||
24939 | ||
24940 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24941 | PyObject *resultobj; | |
24942 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24943 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24944 | PyObject * obj0 = 0 ; | |
24945 | PyObject * obj1 = 0 ; | |
24946 | char *kwnames[] = { | |
24947 | (char *) "self",(char *) "handler", NULL | |
24948 | }; | |
24949 | ||
24950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24953 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24955 | { | |
24956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24957 | (arg1)->PushEventHandler(arg2); | |
24958 | ||
24959 | wxPyEndAllowThreads(__tstate); | |
24960 | if (PyErr_Occurred()) SWIG_fail; | |
24961 | } | |
24962 | Py_INCREF(Py_None); resultobj = Py_None; | |
24963 | return resultobj; | |
24964 | fail: | |
24965 | return NULL; | |
24966 | } | |
24967 | ||
24968 | ||
24969 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24970 | PyObject *resultobj; | |
24971 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24972 | bool arg2 = (bool) False ; | |
24973 | wxEvtHandler *result; | |
24974 | PyObject * obj0 = 0 ; | |
24975 | PyObject * obj1 = 0 ; | |
24976 | char *kwnames[] = { | |
24977 | (char *) "self",(char *) "deleteHandler", NULL | |
24978 | }; | |
24979 | ||
24980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24983 | if (obj1) { | |
24984 | arg2 = (bool) SWIG_AsBool(obj1); | |
24985 | if (PyErr_Occurred()) SWIG_fail; | |
24986 | } | |
24987 | { | |
24988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24989 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
24990 | ||
24991 | wxPyEndAllowThreads(__tstate); | |
24992 | if (PyErr_Occurred()) SWIG_fail; | |
24993 | } | |
24994 | { | |
412d302d | 24995 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24996 | } |
24997 | return resultobj; | |
24998 | fail: | |
24999 | return NULL; | |
25000 | } | |
25001 | ||
25002 | ||
25003 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25004 | PyObject *resultobj; | |
25005 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25006 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25007 | bool result; | |
25008 | PyObject * obj0 = 0 ; | |
25009 | PyObject * obj1 = 0 ; | |
25010 | char *kwnames[] = { | |
25011 | (char *) "self",(char *) "handler", NULL | |
25012 | }; | |
25013 | ||
25014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25017 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25019 | { | |
25020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25021 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
25022 | ||
25023 | wxPyEndAllowThreads(__tstate); | |
25024 | if (PyErr_Occurred()) SWIG_fail; | |
25025 | } | |
25026 | { | |
25027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25028 | } | |
25029 | return resultobj; | |
25030 | fail: | |
25031 | return NULL; | |
25032 | } | |
25033 | ||
25034 | ||
25035 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25036 | PyObject *resultobj; | |
25037 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25038 | wxValidator *arg2 = 0 ; | |
25039 | PyObject * obj0 = 0 ; | |
25040 | PyObject * obj1 = 0 ; | |
25041 | char *kwnames[] = { | |
25042 | (char *) "self",(char *) "validator", NULL | |
25043 | }; | |
25044 | ||
25045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
25046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25048 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
25049 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25050 | SWIG_fail; | |
25051 | if (arg2 == NULL) { | |
25052 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25053 | SWIG_fail; | |
25054 | } | |
25055 | { | |
25056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25057 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
25058 | ||
25059 | wxPyEndAllowThreads(__tstate); | |
25060 | if (PyErr_Occurred()) SWIG_fail; | |
25061 | } | |
25062 | Py_INCREF(Py_None); resultobj = Py_None; | |
25063 | return resultobj; | |
25064 | fail: | |
25065 | return NULL; | |
25066 | } | |
25067 | ||
25068 | ||
25069 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25070 | PyObject *resultobj; | |
25071 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25072 | wxValidator *result; | |
25073 | PyObject * obj0 = 0 ; | |
25074 | char *kwnames[] = { | |
25075 | (char *) "self", NULL | |
25076 | }; | |
25077 | ||
25078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
25079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25081 | { | |
25082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25083 | result = (wxValidator *)(arg1)->GetValidator(); | |
25084 | ||
25085 | wxPyEndAllowThreads(__tstate); | |
25086 | if (PyErr_Occurred()) SWIG_fail; | |
25087 | } | |
25088 | { | |
412d302d | 25089 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25090 | } |
25091 | return resultobj; | |
25092 | fail: | |
25093 | return NULL; | |
25094 | } | |
25095 | ||
25096 | ||
25097 | static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25098 | PyObject *resultobj; | |
25099 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25100 | bool result; | |
25101 | PyObject * obj0 = 0 ; | |
25102 | char *kwnames[] = { | |
25103 | (char *) "self", NULL | |
25104 | }; | |
25105 | ||
25106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
25107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25109 | { | |
25110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25111 | result = (bool)(arg1)->Validate(); | |
25112 | ||
25113 | wxPyEndAllowThreads(__tstate); | |
25114 | if (PyErr_Occurred()) SWIG_fail; | |
25115 | } | |
25116 | { | |
25117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25118 | } | |
25119 | return resultobj; | |
25120 | fail: | |
25121 | return NULL; | |
25122 | } | |
25123 | ||
25124 | ||
25125 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25126 | PyObject *resultobj; | |
25127 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25128 | bool result; | |
25129 | PyObject * obj0 = 0 ; | |
25130 | char *kwnames[] = { | |
25131 | (char *) "self", NULL | |
25132 | }; | |
25133 | ||
25134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
25135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25137 | { | |
25138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25139 | result = (bool)(arg1)->TransferDataToWindow(); | |
25140 | ||
25141 | wxPyEndAllowThreads(__tstate); | |
25142 | if (PyErr_Occurred()) SWIG_fail; | |
25143 | } | |
25144 | { | |
25145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25146 | } | |
25147 | return resultobj; | |
25148 | fail: | |
25149 | return NULL; | |
25150 | } | |
25151 | ||
25152 | ||
25153 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25154 | PyObject *resultobj; | |
25155 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25156 | bool result; | |
25157 | PyObject * obj0 = 0 ; | |
25158 | char *kwnames[] = { | |
25159 | (char *) "self", NULL | |
25160 | }; | |
25161 | ||
25162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
25163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25165 | { | |
25166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25167 | result = (bool)(arg1)->TransferDataFromWindow(); | |
25168 | ||
25169 | wxPyEndAllowThreads(__tstate); | |
25170 | if (PyErr_Occurred()) SWIG_fail; | |
25171 | } | |
25172 | { | |
25173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25174 | } | |
25175 | return resultobj; | |
25176 | fail: | |
25177 | return NULL; | |
25178 | } | |
25179 | ||
25180 | ||
25181 | static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25182 | PyObject *resultobj; | |
25183 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25184 | PyObject * obj0 = 0 ; | |
25185 | char *kwnames[] = { | |
25186 | (char *) "self", NULL | |
25187 | }; | |
25188 | ||
25189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
25190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25192 | { | |
25193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25194 | (arg1)->InitDialog(); | |
25195 | ||
25196 | wxPyEndAllowThreads(__tstate); | |
25197 | if (PyErr_Occurred()) SWIG_fail; | |
25198 | } | |
25199 | Py_INCREF(Py_None); resultobj = Py_None; | |
25200 | return resultobj; | |
25201 | fail: | |
25202 | return NULL; | |
25203 | } | |
25204 | ||
25205 | ||
25206 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25207 | PyObject *resultobj; | |
25208 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25209 | wxAcceleratorTable *arg2 = 0 ; | |
25210 | PyObject * obj0 = 0 ; | |
25211 | PyObject * obj1 = 0 ; | |
25212 | char *kwnames[] = { | |
25213 | (char *) "self",(char *) "accel", NULL | |
25214 | }; | |
25215 | ||
25216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
25217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25219 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
25220 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25221 | SWIG_fail; | |
25222 | if (arg2 == NULL) { | |
25223 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25224 | SWIG_fail; | |
25225 | } | |
25226 | { | |
25227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25228 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
25229 | ||
25230 | wxPyEndAllowThreads(__tstate); | |
25231 | if (PyErr_Occurred()) SWIG_fail; | |
25232 | } | |
25233 | Py_INCREF(Py_None); resultobj = Py_None; | |
25234 | return resultobj; | |
25235 | fail: | |
25236 | return NULL; | |
25237 | } | |
25238 | ||
25239 | ||
25240 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25241 | PyObject *resultobj; | |
25242 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25243 | wxAcceleratorTable *result; | |
25244 | PyObject * obj0 = 0 ; | |
25245 | char *kwnames[] = { | |
25246 | (char *) "self", NULL | |
25247 | }; | |
25248 | ||
25249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
25250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25252 | { | |
25253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25254 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
25255 | ||
25256 | wxPyEndAllowThreads(__tstate); | |
25257 | if (PyErr_Occurred()) SWIG_fail; | |
25258 | } | |
25259 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); | |
25260 | return resultobj; | |
25261 | fail: | |
25262 | return NULL; | |
25263 | } | |
25264 | ||
25265 | ||
25266 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25267 | PyObject *resultobj; | |
25268 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25269 | int arg2 ; | |
25270 | int arg3 ; | |
25271 | int arg4 ; | |
25272 | bool result; | |
25273 | PyObject * obj0 = 0 ; | |
25274 | PyObject * obj1 = 0 ; | |
25275 | PyObject * obj2 = 0 ; | |
25276 | PyObject * obj3 = 0 ; | |
25277 | char *kwnames[] = { | |
25278 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
25279 | }; | |
25280 | ||
25281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25284 | arg2 = (int) SWIG_AsInt(obj1); | |
25285 | if (PyErr_Occurred()) SWIG_fail; | |
25286 | arg3 = (int) SWIG_AsInt(obj2); | |
25287 | if (PyErr_Occurred()) SWIG_fail; | |
25288 | arg4 = (int) SWIG_AsInt(obj3); | |
25289 | if (PyErr_Occurred()) SWIG_fail; | |
25290 | { | |
25291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25292 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
25293 | ||
25294 | wxPyEndAllowThreads(__tstate); | |
25295 | if (PyErr_Occurred()) SWIG_fail; | |
25296 | } | |
25297 | { | |
25298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25299 | } | |
25300 | return resultobj; | |
25301 | fail: | |
25302 | return NULL; | |
25303 | } | |
25304 | ||
25305 | ||
25306 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25307 | PyObject *resultobj; | |
25308 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25309 | int arg2 ; | |
25310 | bool result; | |
25311 | PyObject * obj0 = 0 ; | |
25312 | PyObject * obj1 = 0 ; | |
25313 | char *kwnames[] = { | |
25314 | (char *) "self",(char *) "hotkeyId", NULL | |
25315 | }; | |
25316 | ||
25317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; | |
25318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25320 | arg2 = (int) SWIG_AsInt(obj1); | |
25321 | if (PyErr_Occurred()) SWIG_fail; | |
25322 | { | |
25323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25324 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25325 | ||
25326 | wxPyEndAllowThreads(__tstate); | |
25327 | if (PyErr_Occurred()) SWIG_fail; | |
25328 | } | |
25329 | { | |
25330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25331 | } | |
25332 | return resultobj; | |
25333 | fail: | |
25334 | return NULL; | |
25335 | } | |
25336 | ||
25337 | ||
25338 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25339 | PyObject *resultobj; | |
25340 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25341 | wxPoint *arg2 = 0 ; | |
25342 | wxPoint result; | |
25343 | wxPoint temp2 ; | |
25344 | PyObject * obj0 = 0 ; | |
25345 | PyObject * obj1 = 0 ; | |
25346 | char *kwnames[] = { | |
25347 | (char *) "self",(char *) "pt", NULL | |
25348 | }; | |
25349 | ||
25350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25353 | { | |
25354 | arg2 = &temp2; | |
25355 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25356 | } | |
25357 | { | |
25358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25359 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25360 | ||
25361 | wxPyEndAllowThreads(__tstate); | |
25362 | if (PyErr_Occurred()) SWIG_fail; | |
25363 | } | |
25364 | { | |
25365 | wxPoint * resultptr; | |
25366 | resultptr = new wxPoint((wxPoint &) result); | |
25367 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25368 | } | |
25369 | return resultobj; | |
25370 | fail: | |
25371 | return NULL; | |
25372 | } | |
25373 | ||
25374 | ||
25375 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25376 | PyObject *resultobj; | |
25377 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25378 | wxSize *arg2 = 0 ; | |
25379 | wxSize result; | |
25380 | wxSize temp2 ; | |
25381 | PyObject * obj0 = 0 ; | |
25382 | PyObject * obj1 = 0 ; | |
25383 | char *kwnames[] = { | |
25384 | (char *) "self",(char *) "sz", NULL | |
25385 | }; | |
25386 | ||
25387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25390 | { | |
25391 | arg2 = &temp2; | |
25392 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25393 | } | |
25394 | { | |
25395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25396 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25397 | ||
25398 | wxPyEndAllowThreads(__tstate); | |
25399 | if (PyErr_Occurred()) SWIG_fail; | |
25400 | } | |
25401 | { | |
25402 | wxSize * resultptr; | |
25403 | resultptr = new wxSize((wxSize &) result); | |
25404 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25405 | } | |
25406 | return resultobj; | |
25407 | fail: | |
25408 | return NULL; | |
25409 | } | |
25410 | ||
25411 | ||
25412 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25413 | PyObject *resultobj; | |
25414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25415 | wxPoint *arg2 = 0 ; | |
25416 | wxPoint result; | |
25417 | wxPoint temp2 ; | |
25418 | PyObject * obj0 = 0 ; | |
25419 | PyObject * obj1 = 0 ; | |
25420 | char *kwnames[] = { | |
25421 | (char *) "self",(char *) "pt", NULL | |
25422 | }; | |
25423 | ||
25424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
25425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25427 | { | |
25428 | arg2 = &temp2; | |
25429 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25430 | } | |
25431 | { | |
25432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25433 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25434 | ||
25435 | wxPyEndAllowThreads(__tstate); | |
25436 | if (PyErr_Occurred()) SWIG_fail; | |
25437 | } | |
25438 | { | |
25439 | wxPoint * resultptr; | |
25440 | resultptr = new wxPoint((wxPoint &) result); | |
25441 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25442 | } | |
25443 | return resultobj; | |
25444 | fail: | |
25445 | return NULL; | |
25446 | } | |
25447 | ||
25448 | ||
25449 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25450 | PyObject *resultobj; | |
25451 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25452 | wxSize *arg2 = 0 ; | |
25453 | wxSize result; | |
25454 | wxSize temp2 ; | |
25455 | PyObject * obj0 = 0 ; | |
25456 | PyObject * obj1 = 0 ; | |
25457 | char *kwnames[] = { | |
25458 | (char *) "self",(char *) "sz", NULL | |
25459 | }; | |
25460 | ||
25461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
25462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25464 | { | |
25465 | arg2 = &temp2; | |
25466 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25467 | } | |
25468 | { | |
25469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25470 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25471 | ||
25472 | wxPyEndAllowThreads(__tstate); | |
25473 | if (PyErr_Occurred()) SWIG_fail; | |
25474 | } | |
25475 | { | |
25476 | wxSize * resultptr; | |
25477 | resultptr = new wxSize((wxSize &) result); | |
25478 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25479 | } | |
25480 | return resultobj; | |
25481 | fail: | |
25482 | return NULL; | |
25483 | } | |
25484 | ||
25485 | ||
25486 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25487 | PyObject *resultobj; | |
25488 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25489 | wxPoint *arg2 = 0 ; | |
25490 | wxPoint result; | |
25491 | wxPoint temp2 ; | |
25492 | PyObject * obj0 = 0 ; | |
25493 | PyObject * obj1 = 0 ; | |
25494 | char *kwnames[] = { | |
25495 | (char *) "self",(char *) "pt", NULL | |
25496 | }; | |
25497 | ||
25498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
25499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25501 | { | |
25502 | arg2 = &temp2; | |
25503 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25504 | } | |
25505 | { | |
25506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25507 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
25508 | ||
25509 | wxPyEndAllowThreads(__tstate); | |
25510 | if (PyErr_Occurred()) SWIG_fail; | |
25511 | } | |
25512 | { | |
25513 | wxPoint * resultptr; | |
25514 | resultptr = new wxPoint((wxPoint &) result); | |
25515 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25516 | } | |
25517 | return resultobj; | |
25518 | fail: | |
25519 | return NULL; | |
25520 | } | |
25521 | ||
25522 | ||
25523 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25524 | PyObject *resultobj; | |
25525 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25526 | wxSize *arg2 = 0 ; | |
25527 | wxSize result; | |
25528 | wxSize temp2 ; | |
25529 | PyObject * obj0 = 0 ; | |
25530 | PyObject * obj1 = 0 ; | |
25531 | char *kwnames[] = { | |
25532 | (char *) "self",(char *) "sz", NULL | |
25533 | }; | |
25534 | ||
25535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
25536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25538 | { | |
25539 | arg2 = &temp2; | |
25540 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25541 | } | |
25542 | { | |
25543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25544 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
25545 | ||
25546 | wxPyEndAllowThreads(__tstate); | |
25547 | if (PyErr_Occurred()) SWIG_fail; | |
25548 | } | |
25549 | { | |
25550 | wxSize * resultptr; | |
25551 | resultptr = new wxSize((wxSize &) result); | |
25552 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25553 | } | |
25554 | return resultobj; | |
25555 | fail: | |
25556 | return NULL; | |
25557 | } | |
25558 | ||
25559 | ||
25560 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25561 | PyObject *resultobj; | |
25562 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25563 | int arg2 ; | |
25564 | int arg3 ; | |
25565 | PyObject * obj0 = 0 ; | |
25566 | PyObject * obj1 = 0 ; | |
25567 | PyObject * obj2 = 0 ; | |
25568 | char *kwnames[] = { | |
25569 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25570 | }; | |
25571 | ||
25572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25575 | arg2 = (int) SWIG_AsInt(obj1); | |
25576 | if (PyErr_Occurred()) SWIG_fail; | |
25577 | arg3 = (int) SWIG_AsInt(obj2); | |
25578 | if (PyErr_Occurred()) SWIG_fail; | |
25579 | { | |
25580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25581 | (arg1)->WarpPointer(arg2,arg3); | |
25582 | ||
25583 | wxPyEndAllowThreads(__tstate); | |
25584 | if (PyErr_Occurred()) SWIG_fail; | |
25585 | } | |
25586 | Py_INCREF(Py_None); resultobj = Py_None; | |
25587 | return resultobj; | |
25588 | fail: | |
25589 | return NULL; | |
25590 | } | |
25591 | ||
25592 | ||
25593 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25594 | PyObject *resultobj; | |
25595 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25596 | PyObject * obj0 = 0 ; | |
25597 | char *kwnames[] = { | |
25598 | (char *) "self", NULL | |
25599 | }; | |
25600 | ||
25601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
25602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25604 | { | |
25605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25606 | (arg1)->CaptureMouse(); | |
25607 | ||
25608 | wxPyEndAllowThreads(__tstate); | |
25609 | if (PyErr_Occurred()) SWIG_fail; | |
25610 | } | |
25611 | Py_INCREF(Py_None); resultobj = Py_None; | |
25612 | return resultobj; | |
25613 | fail: | |
25614 | return NULL; | |
25615 | } | |
25616 | ||
25617 | ||
25618 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25619 | PyObject *resultobj; | |
25620 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25621 | PyObject * obj0 = 0 ; | |
25622 | char *kwnames[] = { | |
25623 | (char *) "self", NULL | |
25624 | }; | |
25625 | ||
25626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
25627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25629 | { | |
25630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25631 | (arg1)->ReleaseMouse(); | |
25632 | ||
25633 | wxPyEndAllowThreads(__tstate); | |
25634 | if (PyErr_Occurred()) SWIG_fail; | |
25635 | } | |
25636 | Py_INCREF(Py_None); resultobj = Py_None; | |
25637 | return resultobj; | |
25638 | fail: | |
25639 | return NULL; | |
25640 | } | |
25641 | ||
25642 | ||
25643 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25644 | PyObject *resultobj; | |
25645 | wxWindow *result; | |
25646 | char *kwnames[] = { | |
25647 | NULL | |
25648 | }; | |
25649 | ||
25650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
25651 | { | |
0439c23b | 25652 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25654 | result = (wxWindow *)wxWindow::GetCapture(); | |
25655 | ||
25656 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25657 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
25658 | } |
25659 | { | |
412d302d | 25660 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25661 | } |
25662 | return resultobj; | |
25663 | fail: | |
25664 | return NULL; | |
25665 | } | |
25666 | ||
25667 | ||
25668 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25669 | PyObject *resultobj; | |
25670 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25671 | bool result; | |
25672 | PyObject * obj0 = 0 ; | |
25673 | char *kwnames[] = { | |
25674 | (char *) "self", NULL | |
25675 | }; | |
25676 | ||
25677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
25678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25680 | { | |
25681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25682 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
25683 | ||
25684 | wxPyEndAllowThreads(__tstate); | |
25685 | if (PyErr_Occurred()) SWIG_fail; | |
25686 | } | |
25687 | { | |
25688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25689 | } | |
25690 | return resultobj; | |
25691 | fail: | |
25692 | return NULL; | |
25693 | } | |
25694 | ||
25695 | ||
25696 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25697 | PyObject *resultobj; | |
25698 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25699 | bool arg2 = (bool) True ; | |
25700 | wxRect *arg3 = (wxRect *) NULL ; | |
25701 | PyObject * obj0 = 0 ; | |
25702 | PyObject * obj1 = 0 ; | |
25703 | PyObject * obj2 = 0 ; | |
25704 | char *kwnames[] = { | |
25705 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
25706 | }; | |
25707 | ||
25708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25711 | if (obj1) { | |
25712 | arg2 = (bool) SWIG_AsBool(obj1); | |
25713 | if (PyErr_Occurred()) SWIG_fail; | |
25714 | } | |
25715 | if (obj2) { | |
25716 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
25717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25718 | } | |
25719 | { | |
25720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25721 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
25722 | ||
25723 | wxPyEndAllowThreads(__tstate); | |
25724 | if (PyErr_Occurred()) SWIG_fail; | |
25725 | } | |
25726 | Py_INCREF(Py_None); resultobj = Py_None; | |
25727 | return resultobj; | |
25728 | fail: | |
25729 | return NULL; | |
25730 | } | |
25731 | ||
25732 | ||
25733 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25734 | PyObject *resultobj; | |
25735 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25736 | wxRect *arg2 = 0 ; | |
25737 | wxRect temp2 ; | |
25738 | PyObject * obj0 = 0 ; | |
25739 | PyObject * obj1 = 0 ; | |
25740 | char *kwnames[] = { | |
25741 | (char *) "self",(char *) "rect", NULL | |
25742 | }; | |
25743 | ||
25744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
25745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25747 | { | |
25748 | arg2 = &temp2; | |
25749 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25750 | } | |
25751 | { | |
25752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25753 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
25754 | ||
25755 | wxPyEndAllowThreads(__tstate); | |
25756 | if (PyErr_Occurred()) SWIG_fail; | |
25757 | } | |
25758 | Py_INCREF(Py_None); resultobj = Py_None; | |
25759 | return resultobj; | |
25760 | fail: | |
25761 | return NULL; | |
25762 | } | |
25763 | ||
25764 | ||
25765 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25766 | PyObject *resultobj; | |
25767 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25768 | PyObject * obj0 = 0 ; | |
25769 | char *kwnames[] = { | |
25770 | (char *) "self", NULL | |
25771 | }; | |
25772 | ||
25773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
25774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25776 | { | |
25777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25778 | (arg1)->Update(); | |
25779 | ||
25780 | wxPyEndAllowThreads(__tstate); | |
25781 | if (PyErr_Occurred()) SWIG_fail; | |
25782 | } | |
25783 | Py_INCREF(Py_None); resultobj = Py_None; | |
25784 | return resultobj; | |
25785 | fail: | |
25786 | return NULL; | |
25787 | } | |
25788 | ||
25789 | ||
25790 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25791 | PyObject *resultobj; | |
25792 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25793 | PyObject * obj0 = 0 ; | |
25794 | char *kwnames[] = { | |
25795 | (char *) "self", NULL | |
25796 | }; | |
25797 | ||
25798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
25799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25801 | { | |
25802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25803 | (arg1)->ClearBackground(); | |
25804 | ||
25805 | wxPyEndAllowThreads(__tstate); | |
25806 | if (PyErr_Occurred()) SWIG_fail; | |
25807 | } | |
25808 | Py_INCREF(Py_None); resultobj = Py_None; | |
25809 | return resultobj; | |
25810 | fail: | |
25811 | return NULL; | |
25812 | } | |
25813 | ||
25814 | ||
25815 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25816 | PyObject *resultobj; | |
25817 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25818 | PyObject * obj0 = 0 ; | |
25819 | char *kwnames[] = { | |
25820 | (char *) "self", NULL | |
25821 | }; | |
25822 | ||
25823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
25824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25826 | { | |
25827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25828 | (arg1)->Freeze(); | |
25829 | ||
25830 | wxPyEndAllowThreads(__tstate); | |
25831 | if (PyErr_Occurred()) SWIG_fail; | |
25832 | } | |
25833 | Py_INCREF(Py_None); resultobj = Py_None; | |
25834 | return resultobj; | |
25835 | fail: | |
25836 | return NULL; | |
25837 | } | |
25838 | ||
25839 | ||
25840 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25841 | PyObject *resultobj; | |
25842 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25843 | PyObject * obj0 = 0 ; | |
25844 | char *kwnames[] = { | |
25845 | (char *) "self", NULL | |
25846 | }; | |
25847 | ||
25848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
25849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25851 | { | |
25852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25853 | (arg1)->Thaw(); | |
25854 | ||
25855 | wxPyEndAllowThreads(__tstate); | |
25856 | if (PyErr_Occurred()) SWIG_fail; | |
25857 | } | |
25858 | Py_INCREF(Py_None); resultobj = Py_None; | |
25859 | return resultobj; | |
25860 | fail: | |
25861 | return NULL; | |
25862 | } | |
25863 | ||
25864 | ||
25865 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25866 | PyObject *resultobj; | |
25867 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25868 | wxDC *arg2 = 0 ; | |
25869 | PyObject * obj0 = 0 ; | |
25870 | PyObject * obj1 = 0 ; | |
25871 | char *kwnames[] = { | |
25872 | (char *) "self",(char *) "dc", NULL | |
25873 | }; | |
25874 | ||
25875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
25876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25878 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25879 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25880 | SWIG_fail; | |
25881 | if (arg2 == NULL) { | |
25882 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25883 | SWIG_fail; | |
25884 | } | |
25885 | { | |
25886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25887 | (arg1)->PrepareDC(*arg2); | |
25888 | ||
25889 | wxPyEndAllowThreads(__tstate); | |
25890 | if (PyErr_Occurred()) SWIG_fail; | |
25891 | } | |
25892 | Py_INCREF(Py_None); resultobj = Py_None; | |
25893 | return resultobj; | |
25894 | fail: | |
25895 | return NULL; | |
25896 | } | |
25897 | ||
25898 | ||
25899 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25900 | PyObject *resultobj; | |
25901 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25902 | wxRegion *result; | |
25903 | PyObject * obj0 = 0 ; | |
25904 | char *kwnames[] = { | |
25905 | (char *) "self", NULL | |
25906 | }; | |
25907 | ||
25908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
25909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25911 | { | |
25912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25913 | { | |
25914 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
25915 | result = (wxRegion *) &_result_ref; | |
25916 | } | |
25917 | ||
25918 | wxPyEndAllowThreads(__tstate); | |
25919 | if (PyErr_Occurred()) SWIG_fail; | |
25920 | } | |
25921 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); | |
25922 | return resultobj; | |
25923 | fail: | |
25924 | return NULL; | |
25925 | } | |
25926 | ||
25927 | ||
25928 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25929 | PyObject *resultobj; | |
25930 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25931 | wxRect result; | |
25932 | PyObject * obj0 = 0 ; | |
25933 | char *kwnames[] = { | |
25934 | (char *) "self", NULL | |
25935 | }; | |
25936 | ||
25937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
25938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25940 | { | |
25941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25942 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
25943 | ||
25944 | wxPyEndAllowThreads(__tstate); | |
25945 | if (PyErr_Occurred()) SWIG_fail; | |
25946 | } | |
25947 | { | |
25948 | wxRect * resultptr; | |
25949 | resultptr = new wxRect((wxRect &) result); | |
25950 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
25951 | } | |
25952 | return resultobj; | |
25953 | fail: | |
25954 | return NULL; | |
25955 | } | |
25956 | ||
25957 | ||
25958 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25959 | PyObject *resultobj; | |
25960 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25961 | int arg2 ; | |
25962 | int arg3 ; | |
25963 | int arg4 = (int) 1 ; | |
25964 | int arg5 = (int) 1 ; | |
25965 | bool result; | |
25966 | PyObject * obj0 = 0 ; | |
25967 | PyObject * obj1 = 0 ; | |
25968 | PyObject * obj2 = 0 ; | |
25969 | PyObject * obj3 = 0 ; | |
25970 | PyObject * obj4 = 0 ; | |
25971 | char *kwnames[] = { | |
25972 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
25973 | }; | |
25974 | ||
25975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25978 | arg2 = (int) SWIG_AsInt(obj1); | |
25979 | if (PyErr_Occurred()) SWIG_fail; | |
25980 | arg3 = (int) SWIG_AsInt(obj2); | |
25981 | if (PyErr_Occurred()) SWIG_fail; | |
25982 | if (obj3) { | |
25983 | arg4 = (int) SWIG_AsInt(obj3); | |
25984 | if (PyErr_Occurred()) SWIG_fail; | |
25985 | } | |
25986 | if (obj4) { | |
25987 | arg5 = (int) SWIG_AsInt(obj4); | |
25988 | if (PyErr_Occurred()) SWIG_fail; | |
25989 | } | |
25990 | { | |
25991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25992 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
25993 | ||
25994 | wxPyEndAllowThreads(__tstate); | |
25995 | if (PyErr_Occurred()) SWIG_fail; | |
25996 | } | |
25997 | { | |
25998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25999 | } | |
26000 | return resultobj; | |
26001 | fail: | |
26002 | return NULL; | |
26003 | } | |
26004 | ||
26005 | ||
26006 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26007 | PyObject *resultobj; | |
26008 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26009 | wxPoint *arg2 = 0 ; | |
26010 | bool result; | |
26011 | wxPoint temp2 ; | |
26012 | PyObject * obj0 = 0 ; | |
26013 | PyObject * obj1 = 0 ; | |
26014 | char *kwnames[] = { | |
26015 | (char *) "self",(char *) "pt", NULL | |
26016 | }; | |
26017 | ||
26018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
26019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26021 | { | |
26022 | arg2 = &temp2; | |
26023 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26024 | } | |
26025 | { | |
26026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26027 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
26028 | ||
26029 | wxPyEndAllowThreads(__tstate); | |
26030 | if (PyErr_Occurred()) SWIG_fail; | |
26031 | } | |
26032 | { | |
26033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26034 | } | |
26035 | return resultobj; | |
26036 | fail: | |
26037 | return NULL; | |
26038 | } | |
26039 | ||
26040 | ||
26041 | static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26042 | PyObject *resultobj; | |
26043 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26044 | wxRect *arg2 = 0 ; | |
26045 | bool result; | |
26046 | wxRect temp2 ; | |
26047 | PyObject * obj0 = 0 ; | |
26048 | PyObject * obj1 = 0 ; | |
26049 | char *kwnames[] = { | |
26050 | (char *) "self",(char *) "rect", NULL | |
26051 | }; | |
26052 | ||
26053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
26054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26056 | { | |
26057 | arg2 = &temp2; | |
26058 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26059 | } | |
26060 | { | |
26061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26062 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
26063 | ||
26064 | wxPyEndAllowThreads(__tstate); | |
26065 | if (PyErr_Occurred()) SWIG_fail; | |
26066 | } | |
26067 | { | |
26068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26069 | } | |
26070 | return resultobj; | |
26071 | fail: | |
26072 | return NULL; | |
26073 | } | |
26074 | ||
26075 | ||
26076 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26077 | PyObject *resultobj; | |
26078 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26079 | wxVisualAttributes result; | |
26080 | PyObject * obj0 = 0 ; | |
26081 | char *kwnames[] = { | |
26082 | (char *) "self", NULL | |
26083 | }; | |
26084 | ||
26085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
26086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26088 | { | |
26089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26090 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
26091 | ||
26092 | wxPyEndAllowThreads(__tstate); | |
26093 | if (PyErr_Occurred()) SWIG_fail; | |
26094 | } | |
26095 | { | |
26096 | wxVisualAttributes * resultptr; | |
26097 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26098 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26099 | } | |
26100 | return resultobj; | |
26101 | fail: | |
26102 | return NULL; | |
26103 | } | |
26104 | ||
26105 | ||
26106 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26107 | PyObject *resultobj; | |
26108 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
26109 | wxVisualAttributes result; | |
26110 | PyObject * obj0 = 0 ; | |
26111 | char *kwnames[] = { | |
26112 | (char *) "variant", NULL | |
26113 | }; | |
26114 | ||
26115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26116 | if (obj0) { | |
26117 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
26118 | if (PyErr_Occurred()) SWIG_fail; | |
26119 | } | |
26120 | { | |
0439c23b | 26121 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26123 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26124 | ||
26125 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26126 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26127 | } |
26128 | { | |
26129 | wxVisualAttributes * resultptr; | |
26130 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26131 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26132 | } | |
26133 | return resultobj; | |
26134 | fail: | |
26135 | return NULL; | |
26136 | } | |
26137 | ||
26138 | ||
26139 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26140 | PyObject *resultobj; | |
26141 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26142 | wxColour *arg2 = 0 ; | |
26143 | bool result; | |
26144 | wxColour temp2 ; | |
26145 | PyObject * obj0 = 0 ; | |
26146 | PyObject * obj1 = 0 ; | |
26147 | char *kwnames[] = { | |
26148 | (char *) "self",(char *) "colour", NULL | |
26149 | }; | |
26150 | ||
26151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26154 | { | |
26155 | arg2 = &temp2; | |
26156 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26157 | } | |
26158 | { | |
26159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26160 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26161 | ||
26162 | wxPyEndAllowThreads(__tstate); | |
26163 | if (PyErr_Occurred()) SWIG_fail; | |
26164 | } | |
26165 | { | |
26166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26167 | } | |
26168 | return resultobj; | |
26169 | fail: | |
26170 | return NULL; | |
26171 | } | |
26172 | ||
26173 | ||
412d302d | 26174 | static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26175 | PyObject *resultobj; |
26176 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26177 | wxColour *arg2 = 0 ; | |
26178 | wxColour temp2 ; | |
26179 | PyObject * obj0 = 0 ; | |
26180 | PyObject * obj1 = 0 ; | |
26181 | char *kwnames[] = { | |
26182 | (char *) "self",(char *) "colour", NULL | |
26183 | }; | |
26184 | ||
412d302d | 26185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26188 | { | |
26189 | arg2 = &temp2; | |
26190 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26191 | } | |
26192 | { | |
26193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
412d302d | 26194 | (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26195 | |
26196 | wxPyEndAllowThreads(__tstate); | |
26197 | if (PyErr_Occurred()) SWIG_fail; | |
26198 | } | |
26199 | Py_INCREF(Py_None); resultobj = Py_None; | |
26200 | return resultobj; | |
26201 | fail: | |
26202 | return NULL; | |
26203 | } | |
26204 | ||
26205 | ||
26206 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26207 | PyObject *resultobj; | |
26208 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26209 | wxColour *arg2 = 0 ; | |
26210 | bool result; | |
26211 | wxColour temp2 ; | |
26212 | PyObject * obj0 = 0 ; | |
26213 | PyObject * obj1 = 0 ; | |
26214 | char *kwnames[] = { | |
26215 | (char *) "self",(char *) "colour", NULL | |
26216 | }; | |
26217 | ||
26218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26221 | { | |
26222 | arg2 = &temp2; | |
26223 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26224 | } | |
26225 | { | |
26226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26227 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
26228 | ||
26229 | wxPyEndAllowThreads(__tstate); | |
26230 | if (PyErr_Occurred()) SWIG_fail; | |
26231 | } | |
26232 | { | |
26233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26234 | } | |
26235 | return resultobj; | |
26236 | fail: | |
26237 | return NULL; | |
26238 | } | |
26239 | ||
26240 | ||
fa47d7a7 | 26241 | static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26242 | PyObject *resultobj; |
26243 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26244 | wxColour *arg2 = 0 ; | |
26245 | wxColour temp2 ; | |
26246 | PyObject * obj0 = 0 ; | |
26247 | PyObject * obj1 = 0 ; | |
26248 | char *kwnames[] = { | |
26249 | (char *) "self",(char *) "colour", NULL | |
26250 | }; | |
26251 | ||
fa47d7a7 | 26252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26255 | { | |
26256 | arg2 = &temp2; | |
26257 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26258 | } | |
26259 | { | |
26260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 26261 | (arg1)->SetOwnForegroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26262 | |
26263 | wxPyEndAllowThreads(__tstate); | |
26264 | if (PyErr_Occurred()) SWIG_fail; | |
26265 | } | |
26266 | Py_INCREF(Py_None); resultobj = Py_None; | |
26267 | return resultobj; | |
26268 | fail: | |
26269 | return NULL; | |
26270 | } | |
26271 | ||
26272 | ||
26273 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26274 | PyObject *resultobj; | |
26275 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26276 | wxColour result; | |
26277 | PyObject * obj0 = 0 ; | |
26278 | char *kwnames[] = { | |
26279 | (char *) "self", NULL | |
26280 | }; | |
26281 | ||
26282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
26283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26285 | { | |
26286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26287 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
26288 | ||
26289 | wxPyEndAllowThreads(__tstate); | |
26290 | if (PyErr_Occurred()) SWIG_fail; | |
26291 | } | |
26292 | { | |
26293 | wxColour * resultptr; | |
26294 | resultptr = new wxColour((wxColour &) result); | |
26295 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26296 | } | |
26297 | return resultobj; | |
26298 | fail: | |
26299 | return NULL; | |
26300 | } | |
26301 | ||
26302 | ||
26303 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26304 | PyObject *resultobj; | |
26305 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26306 | wxColour result; | |
26307 | PyObject * obj0 = 0 ; | |
26308 | char *kwnames[] = { | |
26309 | (char *) "self", NULL | |
26310 | }; | |
26311 | ||
26312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
26313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26315 | { | |
26316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26317 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
26318 | ||
26319 | wxPyEndAllowThreads(__tstate); | |
26320 | if (PyErr_Occurred()) SWIG_fail; | |
26321 | } | |
26322 | { | |
26323 | wxColour * resultptr; | |
26324 | resultptr = new wxColour((wxColour &) result); | |
26325 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26326 | } | |
26327 | return resultobj; | |
26328 | fail: | |
26329 | return NULL; | |
26330 | } | |
26331 | ||
26332 | ||
26333 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26334 | PyObject *resultobj; | |
26335 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26336 | wxCursor *arg2 = 0 ; | |
26337 | bool result; | |
26338 | PyObject * obj0 = 0 ; | |
26339 | PyObject * obj1 = 0 ; | |
26340 | char *kwnames[] = { | |
26341 | (char *) "self",(char *) "cursor", NULL | |
26342 | }; | |
26343 | ||
26344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
26345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26347 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26348 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26349 | SWIG_fail; | |
26350 | if (arg2 == NULL) { | |
26351 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26352 | SWIG_fail; | |
26353 | } | |
26354 | { | |
26355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26356 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
26357 | ||
26358 | wxPyEndAllowThreads(__tstate); | |
26359 | if (PyErr_Occurred()) SWIG_fail; | |
26360 | } | |
26361 | { | |
26362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26363 | } | |
26364 | return resultobj; | |
26365 | fail: | |
26366 | return NULL; | |
26367 | } | |
26368 | ||
26369 | ||
26370 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26371 | PyObject *resultobj; | |
26372 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 26373 | wxCursor result; |
d55e5bfc RD |
26374 | PyObject * obj0 = 0 ; |
26375 | char *kwnames[] = { | |
26376 | (char *) "self", NULL | |
26377 | }; | |
26378 | ||
26379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
26380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26382 | { | |
26383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 26384 | result = (arg1)->GetCursor(); |
d55e5bfc RD |
26385 | |
26386 | wxPyEndAllowThreads(__tstate); | |
26387 | if (PyErr_Occurred()) SWIG_fail; | |
26388 | } | |
26389 | { | |
a001823c RD |
26390 | wxCursor * resultptr; |
26391 | resultptr = new wxCursor((wxCursor &) result); | |
26392 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
d55e5bfc RD |
26393 | } |
26394 | return resultobj; | |
26395 | fail: | |
26396 | return NULL; | |
26397 | } | |
26398 | ||
26399 | ||
26400 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26401 | PyObject *resultobj; | |
26402 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26403 | wxFont *arg2 = 0 ; | |
26404 | bool result; | |
26405 | PyObject * obj0 = 0 ; | |
26406 | PyObject * obj1 = 0 ; | |
26407 | char *kwnames[] = { | |
26408 | (char *) "self",(char *) "font", NULL | |
26409 | }; | |
26410 | ||
26411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
26412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26414 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26415 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26416 | SWIG_fail; | |
26417 | if (arg2 == NULL) { | |
26418 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26419 | SWIG_fail; | |
26420 | } | |
26421 | { | |
26422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26423 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
26424 | ||
26425 | wxPyEndAllowThreads(__tstate); | |
26426 | if (PyErr_Occurred()) SWIG_fail; | |
26427 | } | |
26428 | { | |
26429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26430 | } | |
26431 | return resultobj; | |
26432 | fail: | |
26433 | return NULL; | |
26434 | } | |
26435 | ||
26436 | ||
fa47d7a7 | 26437 | static PyObject *_wrap_Window_SetOwnFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26438 | PyObject *resultobj; |
26439 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26440 | wxFont *arg2 = 0 ; | |
26441 | PyObject * obj0 = 0 ; | |
26442 | PyObject * obj1 = 0 ; | |
26443 | char *kwnames[] = { | |
26444 | (char *) "self",(char *) "font", NULL | |
26445 | }; | |
26446 | ||
fa47d7a7 | 26447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26450 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26451 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26452 | SWIG_fail; | |
26453 | if (arg2 == NULL) { | |
26454 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26455 | SWIG_fail; | |
26456 | } | |
26457 | { | |
26458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 26459 | (arg1)->SetOwnFont((wxFont const &)*arg2); |
d55e5bfc RD |
26460 | |
26461 | wxPyEndAllowThreads(__tstate); | |
26462 | if (PyErr_Occurred()) SWIG_fail; | |
26463 | } | |
26464 | Py_INCREF(Py_None); resultobj = Py_None; | |
26465 | return resultobj; | |
26466 | fail: | |
26467 | return NULL; | |
26468 | } | |
26469 | ||
26470 | ||
26471 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26472 | PyObject *resultobj; | |
26473 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 26474 | wxFont result; |
d55e5bfc RD |
26475 | PyObject * obj0 = 0 ; |
26476 | char *kwnames[] = { | |
26477 | (char *) "self", NULL | |
26478 | }; | |
26479 | ||
26480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
26481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26483 | { | |
26484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 26485 | result = (arg1)->GetFont(); |
d55e5bfc RD |
26486 | |
26487 | wxPyEndAllowThreads(__tstate); | |
26488 | if (PyErr_Occurred()) SWIG_fail; | |
26489 | } | |
26490 | { | |
a001823c RD |
26491 | wxFont * resultptr; |
26492 | resultptr = new wxFont((wxFont &) result); | |
26493 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
d55e5bfc RD |
26494 | } |
26495 | return resultobj; | |
26496 | fail: | |
26497 | return NULL; | |
26498 | } | |
26499 | ||
26500 | ||
26501 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26502 | PyObject *resultobj; | |
26503 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26504 | wxCaret *arg2 = (wxCaret *) 0 ; | |
26505 | PyObject * obj0 = 0 ; | |
26506 | PyObject * obj1 = 0 ; | |
26507 | char *kwnames[] = { | |
26508 | (char *) "self",(char *) "caret", NULL | |
26509 | }; | |
26510 | ||
26511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
26512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26514 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
26515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26516 | { | |
26517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26518 | (arg1)->SetCaret(arg2); | |
26519 | ||
26520 | wxPyEndAllowThreads(__tstate); | |
26521 | if (PyErr_Occurred()) SWIG_fail; | |
26522 | } | |
26523 | Py_INCREF(Py_None); resultobj = Py_None; | |
26524 | return resultobj; | |
26525 | fail: | |
26526 | return NULL; | |
26527 | } | |
26528 | ||
26529 | ||
26530 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26531 | PyObject *resultobj; | |
26532 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26533 | wxCaret *result; | |
26534 | PyObject * obj0 = 0 ; | |
26535 | char *kwnames[] = { | |
26536 | (char *) "self", NULL | |
26537 | }; | |
26538 | ||
26539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
26540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26542 | { | |
26543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26544 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
26545 | ||
26546 | wxPyEndAllowThreads(__tstate); | |
26547 | if (PyErr_Occurred()) SWIG_fail; | |
26548 | } | |
26549 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); | |
26550 | return resultobj; | |
26551 | fail: | |
26552 | return NULL; | |
26553 | } | |
26554 | ||
26555 | ||
26556 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26557 | PyObject *resultobj; | |
26558 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26559 | int result; | |
26560 | PyObject * obj0 = 0 ; | |
26561 | char *kwnames[] = { | |
26562 | (char *) "self", NULL | |
26563 | }; | |
26564 | ||
26565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
26566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26568 | { | |
26569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26570 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
26571 | ||
26572 | wxPyEndAllowThreads(__tstate); | |
26573 | if (PyErr_Occurred()) SWIG_fail; | |
26574 | } | |
26575 | resultobj = SWIG_FromInt((int)result); | |
26576 | return resultobj; | |
26577 | fail: | |
26578 | return NULL; | |
26579 | } | |
26580 | ||
26581 | ||
26582 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26583 | PyObject *resultobj; | |
26584 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26585 | int result; | |
26586 | PyObject * obj0 = 0 ; | |
26587 | char *kwnames[] = { | |
26588 | (char *) "self", NULL | |
26589 | }; | |
26590 | ||
26591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
26592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26594 | { | |
26595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26596 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
26597 | ||
26598 | wxPyEndAllowThreads(__tstate); | |
26599 | if (PyErr_Occurred()) SWIG_fail; | |
26600 | } | |
26601 | resultobj = SWIG_FromInt((int)result); | |
26602 | return resultobj; | |
26603 | fail: | |
26604 | return NULL; | |
26605 | } | |
26606 | ||
26607 | ||
26608 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26609 | PyObject *resultobj; | |
26610 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26611 | wxString *arg2 = 0 ; | |
26612 | int *arg3 = (int *) 0 ; | |
26613 | int *arg4 = (int *) 0 ; | |
26614 | bool temp2 = False ; | |
26615 | int temp3 ; | |
26616 | int temp4 ; | |
26617 | PyObject * obj0 = 0 ; | |
26618 | PyObject * obj1 = 0 ; | |
26619 | char *kwnames[] = { | |
26620 | (char *) "self",(char *) "string", NULL | |
26621 | }; | |
26622 | ||
26623 | arg3 = &temp3; | |
26624 | arg4 = &temp4; | |
26625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
26626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26628 | { | |
26629 | arg2 = wxString_in_helper(obj1); | |
26630 | if (arg2 == NULL) SWIG_fail; | |
26631 | temp2 = True; | |
26632 | } | |
26633 | { | |
26634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26635 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
26636 | ||
26637 | wxPyEndAllowThreads(__tstate); | |
26638 | if (PyErr_Occurred()) SWIG_fail; | |
26639 | } | |
26640 | Py_INCREF(Py_None); resultobj = Py_None; | |
26641 | { | |
26642 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26643 | resultobj = t_output_helper(resultobj,o); | |
26644 | } | |
26645 | { | |
26646 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26647 | resultobj = t_output_helper(resultobj,o); | |
26648 | } | |
26649 | { | |
26650 | if (temp2) | |
26651 | delete arg2; | |
26652 | } | |
26653 | return resultobj; | |
26654 | fail: | |
26655 | { | |
26656 | if (temp2) | |
26657 | delete arg2; | |
26658 | } | |
26659 | return NULL; | |
26660 | } | |
26661 | ||
26662 | ||
26663 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26664 | PyObject *resultobj; | |
26665 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26666 | wxString *arg2 = 0 ; | |
26667 | int *arg3 = (int *) 0 ; | |
26668 | int *arg4 = (int *) 0 ; | |
26669 | int *arg5 = (int *) 0 ; | |
26670 | int *arg6 = (int *) 0 ; | |
26671 | wxFont *arg7 = (wxFont *) NULL ; | |
26672 | bool temp2 = False ; | |
26673 | int temp3 ; | |
26674 | int temp4 ; | |
26675 | int temp5 ; | |
26676 | int temp6 ; | |
26677 | PyObject * obj0 = 0 ; | |
26678 | PyObject * obj1 = 0 ; | |
26679 | PyObject * obj2 = 0 ; | |
26680 | char *kwnames[] = { | |
26681 | (char *) "self",(char *) "string",(char *) "font", NULL | |
26682 | }; | |
26683 | ||
26684 | arg3 = &temp3; | |
26685 | arg4 = &temp4; | |
26686 | arg5 = &temp5; | |
26687 | arg6 = &temp6; | |
26688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26691 | { | |
26692 | arg2 = wxString_in_helper(obj1); | |
26693 | if (arg2 == NULL) SWIG_fail; | |
26694 | temp2 = True; | |
26695 | } | |
26696 | if (obj2) { | |
26697 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
26698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26699 | } | |
26700 | { | |
26701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26702 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
26703 | ||
26704 | wxPyEndAllowThreads(__tstate); | |
26705 | if (PyErr_Occurred()) SWIG_fail; | |
26706 | } | |
26707 | Py_INCREF(Py_None); resultobj = Py_None; | |
26708 | { | |
26709 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26710 | resultobj = t_output_helper(resultobj,o); | |
26711 | } | |
26712 | { | |
26713 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26714 | resultobj = t_output_helper(resultobj,o); | |
26715 | } | |
26716 | { | |
26717 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
26718 | resultobj = t_output_helper(resultobj,o); | |
26719 | } | |
26720 | { | |
26721 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
26722 | resultobj = t_output_helper(resultobj,o); | |
26723 | } | |
26724 | { | |
26725 | if (temp2) | |
26726 | delete arg2; | |
26727 | } | |
26728 | return resultobj; | |
26729 | fail: | |
26730 | { | |
26731 | if (temp2) | |
26732 | delete arg2; | |
26733 | } | |
26734 | return NULL; | |
26735 | } | |
26736 | ||
26737 | ||
26738 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26739 | PyObject *resultobj; | |
26740 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26741 | int *arg2 = (int *) 0 ; | |
26742 | int *arg3 = (int *) 0 ; | |
26743 | int temp2 ; | |
26744 | int temp3 ; | |
26745 | PyObject * obj0 = 0 ; | |
26746 | PyObject * obj1 = 0 ; | |
26747 | PyObject * obj2 = 0 ; | |
26748 | char *kwnames[] = { | |
26749 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26750 | }; | |
26751 | ||
26752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26755 | { | |
26756 | temp2 = PyInt_AsLong(obj1); | |
26757 | if (PyErr_Occurred()) SWIG_fail; | |
26758 | arg2 = &temp2; | |
26759 | } | |
26760 | { | |
26761 | temp3 = PyInt_AsLong(obj2); | |
26762 | if (PyErr_Occurred()) SWIG_fail; | |
26763 | arg3 = &temp3; | |
26764 | } | |
26765 | { | |
26766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26767 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
26768 | ||
26769 | wxPyEndAllowThreads(__tstate); | |
26770 | if (PyErr_Occurred()) SWIG_fail; | |
26771 | } | |
26772 | Py_INCREF(Py_None); resultobj = Py_None; | |
26773 | { | |
26774 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26775 | resultobj = t_output_helper(resultobj,o); | |
26776 | } | |
26777 | { | |
26778 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26779 | resultobj = t_output_helper(resultobj,o); | |
26780 | } | |
26781 | return resultobj; | |
26782 | fail: | |
26783 | return NULL; | |
26784 | } | |
26785 | ||
26786 | ||
26787 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26788 | PyObject *resultobj; | |
26789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26790 | int *arg2 = (int *) 0 ; | |
26791 | int *arg3 = (int *) 0 ; | |
26792 | int temp2 ; | |
26793 | int temp3 ; | |
26794 | PyObject * obj0 = 0 ; | |
26795 | PyObject * obj1 = 0 ; | |
26796 | PyObject * obj2 = 0 ; | |
26797 | char *kwnames[] = { | |
26798 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26799 | }; | |
26800 | ||
26801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26804 | { | |
26805 | temp2 = PyInt_AsLong(obj1); | |
26806 | if (PyErr_Occurred()) SWIG_fail; | |
26807 | arg2 = &temp2; | |
26808 | } | |
26809 | { | |
26810 | temp3 = PyInt_AsLong(obj2); | |
26811 | if (PyErr_Occurred()) SWIG_fail; | |
26812 | arg3 = &temp3; | |
26813 | } | |
26814 | { | |
26815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26816 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
26817 | ||
26818 | wxPyEndAllowThreads(__tstate); | |
26819 | if (PyErr_Occurred()) SWIG_fail; | |
26820 | } | |
26821 | Py_INCREF(Py_None); resultobj = Py_None; | |
26822 | { | |
26823 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26824 | resultobj = t_output_helper(resultobj,o); | |
26825 | } | |
26826 | { | |
26827 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26828 | resultobj = t_output_helper(resultobj,o); | |
26829 | } | |
26830 | return resultobj; | |
26831 | fail: | |
26832 | return NULL; | |
26833 | } | |
26834 | ||
26835 | ||
26836 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26837 | PyObject *resultobj; | |
26838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26839 | wxPoint *arg2 = 0 ; | |
26840 | wxPoint result; | |
26841 | wxPoint temp2 ; | |
26842 | PyObject * obj0 = 0 ; | |
26843 | PyObject * obj1 = 0 ; | |
26844 | char *kwnames[] = { | |
26845 | (char *) "self",(char *) "pt", NULL | |
26846 | }; | |
26847 | ||
26848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
26849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26851 | { | |
26852 | arg2 = &temp2; | |
26853 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26854 | } | |
26855 | { | |
26856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26857 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
26858 | ||
26859 | wxPyEndAllowThreads(__tstate); | |
26860 | if (PyErr_Occurred()) SWIG_fail; | |
26861 | } | |
26862 | { | |
26863 | wxPoint * resultptr; | |
26864 | resultptr = new wxPoint((wxPoint &) result); | |
26865 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26866 | } | |
26867 | return resultobj; | |
26868 | fail: | |
26869 | return NULL; | |
26870 | } | |
26871 | ||
26872 | ||
26873 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26874 | PyObject *resultobj; | |
26875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26876 | wxPoint *arg2 = 0 ; | |
26877 | wxPoint result; | |
26878 | wxPoint temp2 ; | |
26879 | PyObject * obj0 = 0 ; | |
26880 | PyObject * obj1 = 0 ; | |
26881 | char *kwnames[] = { | |
26882 | (char *) "self",(char *) "pt", NULL | |
26883 | }; | |
26884 | ||
26885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
26886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26888 | { | |
26889 | arg2 = &temp2; | |
26890 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26891 | } | |
26892 | { | |
26893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26894 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
26895 | ||
26896 | wxPyEndAllowThreads(__tstate); | |
26897 | if (PyErr_Occurred()) SWIG_fail; | |
26898 | } | |
26899 | { | |
26900 | wxPoint * resultptr; | |
26901 | resultptr = new wxPoint((wxPoint &) result); | |
26902 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26903 | } | |
26904 | return resultobj; | |
26905 | fail: | |
26906 | return NULL; | |
26907 | } | |
26908 | ||
26909 | ||
26910 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26911 | PyObject *resultobj; | |
26912 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26913 | int arg2 ; | |
26914 | int arg3 ; | |
26915 | int result; | |
26916 | PyObject * obj0 = 0 ; | |
26917 | PyObject * obj1 = 0 ; | |
26918 | PyObject * obj2 = 0 ; | |
26919 | char *kwnames[] = { | |
26920 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26921 | }; | |
26922 | ||
26923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26926 | arg2 = (int) SWIG_AsInt(obj1); | |
26927 | if (PyErr_Occurred()) SWIG_fail; | |
26928 | arg3 = (int) SWIG_AsInt(obj2); | |
26929 | if (PyErr_Occurred()) SWIG_fail; | |
26930 | { | |
26931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26932 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
26933 | ||
26934 | wxPyEndAllowThreads(__tstate); | |
26935 | if (PyErr_Occurred()) SWIG_fail; | |
26936 | } | |
26937 | resultobj = SWIG_FromInt((int)result); | |
26938 | return resultobj; | |
26939 | fail: | |
26940 | return NULL; | |
26941 | } | |
26942 | ||
26943 | ||
26944 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26945 | PyObject *resultobj; | |
26946 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26947 | wxPoint *arg2 = 0 ; | |
26948 | int result; | |
26949 | wxPoint temp2 ; | |
26950 | PyObject * obj0 = 0 ; | |
26951 | PyObject * obj1 = 0 ; | |
26952 | char *kwnames[] = { | |
26953 | (char *) "self",(char *) "pt", NULL | |
26954 | }; | |
26955 | ||
26956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
26957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26959 | { | |
26960 | arg2 = &temp2; | |
26961 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26962 | } | |
26963 | { | |
26964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26965 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
26966 | ||
26967 | wxPyEndAllowThreads(__tstate); | |
26968 | if (PyErr_Occurred()) SWIG_fail; | |
26969 | } | |
26970 | resultobj = SWIG_FromInt((int)result); | |
26971 | return resultobj; | |
26972 | fail: | |
26973 | return NULL; | |
26974 | } | |
26975 | ||
26976 | ||
26977 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) { | |
26978 | PyObject *resultobj; | |
26979 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26980 | long arg2 ; | |
26981 | int result; | |
26982 | PyObject * obj0 = 0 ; | |
26983 | PyObject * obj1 = 0 ; | |
26984 | ||
26985 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; | |
26986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26988 | arg2 = (long) SWIG_AsLong(obj1); | |
26989 | if (PyErr_Occurred()) SWIG_fail; | |
26990 | { | |
26991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26992 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
26993 | ||
26994 | wxPyEndAllowThreads(__tstate); | |
26995 | if (PyErr_Occurred()) SWIG_fail; | |
26996 | } | |
26997 | resultobj = SWIG_FromInt((int)result); | |
26998 | return resultobj; | |
26999 | fail: | |
27000 | return NULL; | |
27001 | } | |
27002 | ||
27003 | ||
27004 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) { | |
27005 | PyObject *resultobj; | |
27006 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27007 | int result; | |
27008 | PyObject * obj0 = 0 ; | |
27009 | ||
27010 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; | |
27011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27013 | { | |
27014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27015 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
27016 | ||
27017 | wxPyEndAllowThreads(__tstate); | |
27018 | if (PyErr_Occurred()) SWIG_fail; | |
27019 | } | |
27020 | resultobj = SWIG_FromInt((int)result); | |
27021 | return resultobj; | |
27022 | fail: | |
27023 | return NULL; | |
27024 | } | |
27025 | ||
27026 | ||
27027 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { | |
27028 | int argc; | |
27029 | PyObject *argv[3]; | |
27030 | int ii; | |
27031 | ||
27032 | argc = PyObject_Length(args); | |
27033 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
27034 | argv[ii] = PyTuple_GetItem(args,ii); | |
27035 | } | |
27036 | if (argc == 1) { | |
27037 | int _v; | |
27038 | { | |
27039 | void *ptr; | |
27040 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27041 | _v = 0; | |
27042 | PyErr_Clear(); | |
27043 | } else { | |
27044 | _v = 1; | |
27045 | } | |
27046 | } | |
27047 | if (_v) { | |
27048 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
27049 | } | |
27050 | } | |
27051 | if (argc == 2) { | |
27052 | int _v; | |
27053 | { | |
27054 | void *ptr; | |
27055 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27056 | _v = 0; | |
27057 | PyErr_Clear(); | |
27058 | } else { | |
27059 | _v = 1; | |
27060 | } | |
27061 | } | |
27062 | if (_v) { | |
27063 | _v = SWIG_CheckLong(argv[1]); | |
27064 | if (_v) { | |
27065 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
27066 | } | |
27067 | } | |
27068 | } | |
27069 | ||
27070 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
27071 | return NULL; | |
27072 | } | |
27073 | ||
27074 | ||
27075 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27076 | PyObject *resultobj; | |
27077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27078 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
27079 | PyObject * obj0 = 0 ; | |
27080 | PyObject * obj1 = 0 ; | |
27081 | char *kwnames[] = { | |
27082 | (char *) "self",(char *) "flags", NULL | |
27083 | }; | |
27084 | ||
27085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; | |
27086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27088 | if (obj1) { | |
27089 | arg2 = (long) SWIG_AsLong(obj1); | |
27090 | if (PyErr_Occurred()) SWIG_fail; | |
27091 | } | |
27092 | { | |
27093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27094 | (arg1)->UpdateWindowUI(arg2); | |
27095 | ||
27096 | wxPyEndAllowThreads(__tstate); | |
27097 | if (PyErr_Occurred()) SWIG_fail; | |
27098 | } | |
27099 | Py_INCREF(Py_None); resultobj = Py_None; | |
27100 | return resultobj; | |
27101 | fail: | |
27102 | return NULL; | |
27103 | } | |
27104 | ||
27105 | ||
27106 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27107 | PyObject *resultobj; | |
27108 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27109 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
27110 | int arg3 = (int) -1 ; |
27111 | int arg4 = (int) -1 ; | |
d55e5bfc RD |
27112 | bool result; |
27113 | PyObject * obj0 = 0 ; | |
27114 | PyObject * obj1 = 0 ; | |
27115 | PyObject * obj2 = 0 ; | |
27116 | PyObject * obj3 = 0 ; | |
27117 | char *kwnames[] = { | |
27118 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
27119 | }; | |
27120 | ||
7a0b95b0 | 27121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
27122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27124 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0b95b0 RD |
27126 | if (obj2) { |
27127 | arg3 = (int) SWIG_AsInt(obj2); | |
27128 | if (PyErr_Occurred()) SWIG_fail; | |
27129 | } | |
27130 | if (obj3) { | |
27131 | arg4 = (int) SWIG_AsInt(obj3); | |
27132 | if (PyErr_Occurred()) SWIG_fail; | |
27133 | } | |
d55e5bfc RD |
27134 | { |
27135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27136 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
27137 | ||
27138 | wxPyEndAllowThreads(__tstate); | |
27139 | if (PyErr_Occurred()) SWIG_fail; | |
27140 | } | |
27141 | { | |
27142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27143 | } | |
27144 | return resultobj; | |
27145 | fail: | |
27146 | return NULL; | |
27147 | } | |
27148 | ||
27149 | ||
27150 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27151 | PyObject *resultobj; | |
27152 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27153 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
27154 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27155 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
d55e5bfc RD |
27156 | bool result; |
27157 | wxPoint temp3 ; | |
27158 | PyObject * obj0 = 0 ; | |
27159 | PyObject * obj1 = 0 ; | |
27160 | PyObject * obj2 = 0 ; | |
27161 | char *kwnames[] = { | |
27162 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
27163 | }; | |
27164 | ||
7a0b95b0 | 27165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
27166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27168 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0b95b0 RD |
27170 | if (obj2) { |
27171 | { | |
27172 | arg3 = &temp3; | |
27173 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27174 | } | |
d55e5bfc RD |
27175 | } |
27176 | { | |
27177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27178 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
27179 | ||
27180 | wxPyEndAllowThreads(__tstate); | |
27181 | if (PyErr_Occurred()) SWIG_fail; | |
27182 | } | |
27183 | { | |
27184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27185 | } | |
27186 | return resultobj; | |
27187 | fail: | |
27188 | return NULL; | |
27189 | } | |
27190 | ||
27191 | ||
27192 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27193 | PyObject *resultobj; | |
27194 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27195 | long result; | |
27196 | PyObject * obj0 = 0 ; | |
27197 | char *kwnames[] = { | |
27198 | (char *) "self", NULL | |
27199 | }; | |
27200 | ||
27201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
27202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27204 | { | |
27205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27206 | result = (long)wxWindow_GetHandle(arg1); | |
27207 | ||
27208 | wxPyEndAllowThreads(__tstate); | |
27209 | if (PyErr_Occurred()) SWIG_fail; | |
27210 | } | |
27211 | resultobj = SWIG_FromLong((long)result); | |
27212 | return resultobj; | |
27213 | fail: | |
27214 | return NULL; | |
27215 | } | |
27216 | ||
27217 | ||
27218 | static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27219 | PyObject *resultobj; | |
27220 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27221 | wxPaintEvent *arg2 = 0 ; | |
27222 | PyObject * obj0 = 0 ; | |
27223 | PyObject * obj1 = 0 ; | |
27224 | char *kwnames[] = { | |
27225 | (char *) "self",(char *) "event", NULL | |
27226 | }; | |
27227 | ||
27228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
27229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent, | |
27232 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27233 | SWIG_fail; | |
27234 | if (arg2 == NULL) { | |
27235 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27236 | SWIG_fail; | |
27237 | } | |
27238 | { | |
27239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27240 | (arg1)->OnPaint(*arg2); | |
27241 | ||
27242 | wxPyEndAllowThreads(__tstate); | |
27243 | if (PyErr_Occurred()) SWIG_fail; | |
27244 | } | |
27245 | Py_INCREF(Py_None); resultobj = Py_None; | |
27246 | return resultobj; | |
27247 | fail: | |
27248 | return NULL; | |
27249 | } | |
27250 | ||
27251 | ||
27252 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27253 | PyObject *resultobj; | |
27254 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27255 | int arg2 ; | |
27256 | bool result; | |
27257 | PyObject * obj0 = 0 ; | |
27258 | PyObject * obj1 = 0 ; | |
27259 | char *kwnames[] = { | |
27260 | (char *) "self",(char *) "orient", NULL | |
27261 | }; | |
27262 | ||
27263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; | |
27264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27266 | arg2 = (int) SWIG_AsInt(obj1); | |
27267 | if (PyErr_Occurred()) SWIG_fail; | |
27268 | { | |
27269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27270 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
27271 | ||
27272 | wxPyEndAllowThreads(__tstate); | |
27273 | if (PyErr_Occurred()) SWIG_fail; | |
27274 | } | |
27275 | { | |
27276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27277 | } | |
27278 | return resultobj; | |
27279 | fail: | |
27280 | return NULL; | |
27281 | } | |
27282 | ||
27283 | ||
27284 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27285 | PyObject *resultobj; | |
27286 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27287 | int arg2 ; | |
27288 | int arg3 ; | |
27289 | int arg4 ; | |
27290 | int arg5 ; | |
27291 | bool arg6 = (bool) True ; | |
27292 | PyObject * obj0 = 0 ; | |
27293 | PyObject * obj1 = 0 ; | |
27294 | PyObject * obj2 = 0 ; | |
27295 | PyObject * obj3 = 0 ; | |
27296 | PyObject * obj4 = 0 ; | |
27297 | PyObject * obj5 = 0 ; | |
27298 | char *kwnames[] = { | |
79fccf9d | 27299 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d55e5bfc RD |
27300 | }; |
27301 | ||
27302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27305 | arg2 = (int) SWIG_AsInt(obj1); | |
27306 | if (PyErr_Occurred()) SWIG_fail; | |
27307 | arg3 = (int) SWIG_AsInt(obj2); | |
27308 | if (PyErr_Occurred()) SWIG_fail; | |
27309 | arg4 = (int) SWIG_AsInt(obj3); | |
27310 | if (PyErr_Occurred()) SWIG_fail; | |
27311 | arg5 = (int) SWIG_AsInt(obj4); | |
27312 | if (PyErr_Occurred()) SWIG_fail; | |
27313 | if (obj5) { | |
27314 | arg6 = (bool) SWIG_AsBool(obj5); | |
27315 | if (PyErr_Occurred()) SWIG_fail; | |
27316 | } | |
27317 | { | |
27318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27319 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
27320 | ||
27321 | wxPyEndAllowThreads(__tstate); | |
27322 | if (PyErr_Occurred()) SWIG_fail; | |
27323 | } | |
27324 | Py_INCREF(Py_None); resultobj = Py_None; | |
27325 | return resultobj; | |
27326 | fail: | |
27327 | return NULL; | |
27328 | } | |
27329 | ||
27330 | ||
27331 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27332 | PyObject *resultobj; | |
27333 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27334 | int arg2 ; | |
27335 | int arg3 ; | |
27336 | bool arg4 = (bool) True ; | |
27337 | PyObject * obj0 = 0 ; | |
27338 | PyObject * obj1 = 0 ; | |
27339 | PyObject * obj2 = 0 ; | |
27340 | PyObject * obj3 = 0 ; | |
27341 | char *kwnames[] = { | |
27342 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL | |
27343 | }; | |
27344 | ||
27345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27348 | arg2 = (int) SWIG_AsInt(obj1); | |
27349 | if (PyErr_Occurred()) SWIG_fail; | |
27350 | arg3 = (int) SWIG_AsInt(obj2); | |
27351 | if (PyErr_Occurred()) SWIG_fail; | |
27352 | if (obj3) { | |
27353 | arg4 = (bool) SWIG_AsBool(obj3); | |
27354 | if (PyErr_Occurred()) SWIG_fail; | |
27355 | } | |
27356 | { | |
27357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27358 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
27359 | ||
27360 | wxPyEndAllowThreads(__tstate); | |
27361 | if (PyErr_Occurred()) SWIG_fail; | |
27362 | } | |
27363 | Py_INCREF(Py_None); resultobj = Py_None; | |
27364 | return resultobj; | |
27365 | fail: | |
27366 | return NULL; | |
27367 | } | |
27368 | ||
27369 | ||
27370 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27371 | PyObject *resultobj; | |
27372 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27373 | int arg2 ; | |
27374 | int result; | |
27375 | PyObject * obj0 = 0 ; | |
27376 | PyObject * obj1 = 0 ; | |
27377 | char *kwnames[] = { | |
27378 | (char *) "self",(char *) "orientation", NULL | |
27379 | }; | |
27380 | ||
27381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; | |
27382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27384 | arg2 = (int) SWIG_AsInt(obj1); | |
27385 | if (PyErr_Occurred()) SWIG_fail; | |
27386 | { | |
27387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27388 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
27389 | ||
27390 | wxPyEndAllowThreads(__tstate); | |
27391 | if (PyErr_Occurred()) SWIG_fail; | |
27392 | } | |
27393 | resultobj = SWIG_FromInt((int)result); | |
27394 | return resultobj; | |
27395 | fail: | |
27396 | return NULL; | |
27397 | } | |
27398 | ||
27399 | ||
27400 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27401 | PyObject *resultobj; | |
27402 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27403 | int arg2 ; | |
27404 | int result; | |
27405 | PyObject * obj0 = 0 ; | |
27406 | PyObject * obj1 = 0 ; | |
27407 | char *kwnames[] = { | |
27408 | (char *) "self",(char *) "orientation", NULL | |
27409 | }; | |
27410 | ||
27411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; | |
27412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27414 | arg2 = (int) SWIG_AsInt(obj1); | |
27415 | if (PyErr_Occurred()) SWIG_fail; | |
27416 | { | |
27417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27418 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
27419 | ||
27420 | wxPyEndAllowThreads(__tstate); | |
27421 | if (PyErr_Occurred()) SWIG_fail; | |
27422 | } | |
27423 | resultobj = SWIG_FromInt((int)result); | |
27424 | return resultobj; | |
27425 | fail: | |
27426 | return NULL; | |
27427 | } | |
27428 | ||
27429 | ||
27430 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27431 | PyObject *resultobj; | |
27432 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27433 | int arg2 ; | |
27434 | int result; | |
27435 | PyObject * obj0 = 0 ; | |
27436 | PyObject * obj1 = 0 ; | |
27437 | char *kwnames[] = { | |
27438 | (char *) "self",(char *) "orientation", NULL | |
27439 | }; | |
27440 | ||
27441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; | |
27442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27444 | arg2 = (int) SWIG_AsInt(obj1); | |
27445 | if (PyErr_Occurred()) SWIG_fail; | |
27446 | { | |
27447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27448 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
27449 | ||
27450 | wxPyEndAllowThreads(__tstate); | |
27451 | if (PyErr_Occurred()) SWIG_fail; | |
27452 | } | |
27453 | resultobj = SWIG_FromInt((int)result); | |
27454 | return resultobj; | |
27455 | fail: | |
27456 | return NULL; | |
27457 | } | |
27458 | ||
27459 | ||
27460 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27461 | PyObject *resultobj; | |
27462 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27463 | int arg2 ; | |
27464 | int arg3 ; | |
27465 | wxRect *arg4 = (wxRect *) NULL ; | |
27466 | PyObject * obj0 = 0 ; | |
27467 | PyObject * obj1 = 0 ; | |
27468 | PyObject * obj2 = 0 ; | |
27469 | PyObject * obj3 = 0 ; | |
27470 | char *kwnames[] = { | |
27471 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
27472 | }; | |
27473 | ||
27474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27477 | arg2 = (int) SWIG_AsInt(obj1); | |
27478 | if (PyErr_Occurred()) SWIG_fail; | |
27479 | arg3 = (int) SWIG_AsInt(obj2); | |
27480 | if (PyErr_Occurred()) SWIG_fail; | |
27481 | if (obj3) { | |
27482 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
27483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27484 | } | |
27485 | { | |
27486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27487 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
27488 | ||
27489 | wxPyEndAllowThreads(__tstate); | |
27490 | if (PyErr_Occurred()) SWIG_fail; | |
27491 | } | |
27492 | Py_INCREF(Py_None); resultobj = Py_None; | |
27493 | return resultobj; | |
27494 | fail: | |
27495 | return NULL; | |
27496 | } | |
27497 | ||
27498 | ||
27499 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27500 | PyObject *resultobj; | |
27501 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27502 | int arg2 ; | |
27503 | bool result; | |
27504 | PyObject * obj0 = 0 ; | |
27505 | PyObject * obj1 = 0 ; | |
27506 | char *kwnames[] = { | |
27507 | (char *) "self",(char *) "lines", NULL | |
27508 | }; | |
27509 | ||
27510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
27511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27513 | arg2 = (int) SWIG_AsInt(obj1); | |
27514 | if (PyErr_Occurred()) SWIG_fail; | |
27515 | { | |
27516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27517 | result = (bool)(arg1)->ScrollLines(arg2); | |
27518 | ||
27519 | wxPyEndAllowThreads(__tstate); | |
27520 | if (PyErr_Occurred()) SWIG_fail; | |
27521 | } | |
27522 | { | |
27523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27524 | } | |
27525 | return resultobj; | |
27526 | fail: | |
27527 | return NULL; | |
27528 | } | |
27529 | ||
27530 | ||
27531 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27532 | PyObject *resultobj; | |
27533 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27534 | int arg2 ; | |
27535 | bool result; | |
27536 | PyObject * obj0 = 0 ; | |
27537 | PyObject * obj1 = 0 ; | |
27538 | char *kwnames[] = { | |
27539 | (char *) "self",(char *) "pages", NULL | |
27540 | }; | |
27541 | ||
27542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
27543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27545 | arg2 = (int) SWIG_AsInt(obj1); | |
27546 | if (PyErr_Occurred()) SWIG_fail; | |
27547 | { | |
27548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27549 | result = (bool)(arg1)->ScrollPages(arg2); | |
27550 | ||
27551 | wxPyEndAllowThreads(__tstate); | |
27552 | if (PyErr_Occurred()) SWIG_fail; | |
27553 | } | |
27554 | { | |
27555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27556 | } | |
27557 | return resultobj; | |
27558 | fail: | |
27559 | return NULL; | |
27560 | } | |
27561 | ||
27562 | ||
27563 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27564 | PyObject *resultobj; | |
27565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27566 | bool result; | |
27567 | PyObject * obj0 = 0 ; | |
27568 | char *kwnames[] = { | |
27569 | (char *) "self", NULL | |
27570 | }; | |
27571 | ||
27572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
27573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27575 | { | |
27576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27577 | result = (bool)(arg1)->LineUp(); | |
27578 | ||
27579 | wxPyEndAllowThreads(__tstate); | |
27580 | if (PyErr_Occurred()) SWIG_fail; | |
27581 | } | |
27582 | { | |
27583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27584 | } | |
27585 | return resultobj; | |
27586 | fail: | |
27587 | return NULL; | |
27588 | } | |
27589 | ||
27590 | ||
27591 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27592 | PyObject *resultobj; | |
27593 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27594 | bool result; | |
27595 | PyObject * obj0 = 0 ; | |
27596 | char *kwnames[] = { | |
27597 | (char *) "self", NULL | |
27598 | }; | |
27599 | ||
27600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
27601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27603 | { | |
27604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27605 | result = (bool)(arg1)->LineDown(); | |
27606 | ||
27607 | wxPyEndAllowThreads(__tstate); | |
27608 | if (PyErr_Occurred()) SWIG_fail; | |
27609 | } | |
27610 | { | |
27611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27612 | } | |
27613 | return resultobj; | |
27614 | fail: | |
27615 | return NULL; | |
27616 | } | |
27617 | ||
27618 | ||
27619 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27620 | PyObject *resultobj; | |
27621 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27622 | bool result; | |
27623 | PyObject * obj0 = 0 ; | |
27624 | char *kwnames[] = { | |
27625 | (char *) "self", NULL | |
27626 | }; | |
27627 | ||
27628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
27629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27631 | { | |
27632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27633 | result = (bool)(arg1)->PageUp(); | |
27634 | ||
27635 | wxPyEndAllowThreads(__tstate); | |
27636 | if (PyErr_Occurred()) SWIG_fail; | |
27637 | } | |
27638 | { | |
27639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27640 | } | |
27641 | return resultobj; | |
27642 | fail: | |
27643 | return NULL; | |
27644 | } | |
27645 | ||
27646 | ||
27647 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27648 | PyObject *resultobj; | |
27649 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27650 | bool result; | |
27651 | PyObject * obj0 = 0 ; | |
27652 | char *kwnames[] = { | |
27653 | (char *) "self", NULL | |
27654 | }; | |
27655 | ||
27656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
27657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27659 | { | |
27660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27661 | result = (bool)(arg1)->PageDown(); | |
27662 | ||
27663 | wxPyEndAllowThreads(__tstate); | |
27664 | if (PyErr_Occurred()) SWIG_fail; | |
27665 | } | |
27666 | { | |
27667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27668 | } | |
27669 | return resultobj; | |
27670 | fail: | |
27671 | return NULL; | |
27672 | } | |
27673 | ||
27674 | ||
27675 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27676 | PyObject *resultobj; | |
27677 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27678 | wxString *arg2 = 0 ; | |
27679 | bool temp2 = False ; | |
27680 | PyObject * obj0 = 0 ; | |
27681 | PyObject * obj1 = 0 ; | |
27682 | char *kwnames[] = { | |
27683 | (char *) "self",(char *) "text", NULL | |
27684 | }; | |
27685 | ||
27686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
27687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27689 | { | |
27690 | arg2 = wxString_in_helper(obj1); | |
27691 | if (arg2 == NULL) SWIG_fail; | |
27692 | temp2 = True; | |
27693 | } | |
27694 | { | |
27695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27696 | (arg1)->SetHelpText((wxString const &)*arg2); | |
27697 | ||
27698 | wxPyEndAllowThreads(__tstate); | |
27699 | if (PyErr_Occurred()) SWIG_fail; | |
27700 | } | |
27701 | Py_INCREF(Py_None); resultobj = Py_None; | |
27702 | { | |
27703 | if (temp2) | |
27704 | delete arg2; | |
27705 | } | |
27706 | return resultobj; | |
27707 | fail: | |
27708 | { | |
27709 | if (temp2) | |
27710 | delete arg2; | |
27711 | } | |
27712 | return NULL; | |
27713 | } | |
27714 | ||
27715 | ||
27716 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27717 | PyObject *resultobj; | |
27718 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27719 | wxString *arg2 = 0 ; | |
27720 | bool temp2 = False ; | |
27721 | PyObject * obj0 = 0 ; | |
27722 | PyObject * obj1 = 0 ; | |
27723 | char *kwnames[] = { | |
27724 | (char *) "self",(char *) "text", NULL | |
27725 | }; | |
27726 | ||
27727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
27728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27730 | { | |
27731 | arg2 = wxString_in_helper(obj1); | |
27732 | if (arg2 == NULL) SWIG_fail; | |
27733 | temp2 = True; | |
27734 | } | |
27735 | { | |
27736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27737 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
27738 | ||
27739 | wxPyEndAllowThreads(__tstate); | |
27740 | if (PyErr_Occurred()) SWIG_fail; | |
27741 | } | |
27742 | Py_INCREF(Py_None); resultobj = Py_None; | |
27743 | { | |
27744 | if (temp2) | |
27745 | delete arg2; | |
27746 | } | |
27747 | return resultobj; | |
27748 | fail: | |
27749 | { | |
27750 | if (temp2) | |
27751 | delete arg2; | |
27752 | } | |
27753 | return NULL; | |
27754 | } | |
27755 | ||
27756 | ||
27757 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27758 | PyObject *resultobj; | |
27759 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27760 | wxString result; | |
27761 | PyObject * obj0 = 0 ; | |
27762 | char *kwnames[] = { | |
27763 | (char *) "self", NULL | |
27764 | }; | |
27765 | ||
27766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
27767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27769 | { | |
27770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27771 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
27772 | ||
27773 | wxPyEndAllowThreads(__tstate); | |
27774 | if (PyErr_Occurred()) SWIG_fail; | |
27775 | } | |
27776 | { | |
27777 | #if wxUSE_UNICODE | |
27778 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27779 | #else | |
27780 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27781 | #endif | |
27782 | } | |
27783 | return resultobj; | |
27784 | fail: | |
27785 | return NULL; | |
27786 | } | |
27787 | ||
27788 | ||
27789 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27790 | PyObject *resultobj; | |
27791 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27792 | wxString *arg2 = 0 ; | |
27793 | bool temp2 = False ; | |
27794 | PyObject * obj0 = 0 ; | |
27795 | PyObject * obj1 = 0 ; | |
27796 | char *kwnames[] = { | |
27797 | (char *) "self",(char *) "tip", NULL | |
27798 | }; | |
27799 | ||
27800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
27801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27803 | { | |
27804 | arg2 = wxString_in_helper(obj1); | |
27805 | if (arg2 == NULL) SWIG_fail; | |
27806 | temp2 = True; | |
27807 | } | |
27808 | { | |
27809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27810 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27811 | ||
27812 | wxPyEndAllowThreads(__tstate); | |
27813 | if (PyErr_Occurred()) SWIG_fail; | |
27814 | } | |
27815 | Py_INCREF(Py_None); resultobj = Py_None; | |
27816 | { | |
27817 | if (temp2) | |
27818 | delete arg2; | |
27819 | } | |
27820 | return resultobj; | |
27821 | fail: | |
27822 | { | |
27823 | if (temp2) | |
27824 | delete arg2; | |
27825 | } | |
27826 | return NULL; | |
27827 | } | |
27828 | ||
27829 | ||
27830 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27831 | PyObject *resultobj; | |
27832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27833 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
27834 | PyObject * obj0 = 0 ; | |
27835 | PyObject * obj1 = 0 ; | |
27836 | char *kwnames[] = { | |
27837 | (char *) "self",(char *) "tip", NULL | |
27838 | }; | |
27839 | ||
27840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
27841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27843 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
27844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27845 | { | |
27846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27847 | (arg1)->SetToolTip(arg2); | |
27848 | ||
27849 | wxPyEndAllowThreads(__tstate); | |
27850 | if (PyErr_Occurred()) SWIG_fail; | |
27851 | } | |
27852 | Py_INCREF(Py_None); resultobj = Py_None; | |
27853 | return resultobj; | |
27854 | fail: | |
27855 | return NULL; | |
27856 | } | |
27857 | ||
27858 | ||
27859 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27860 | PyObject *resultobj; | |
27861 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27862 | wxToolTip *result; | |
27863 | PyObject * obj0 = 0 ; | |
27864 | char *kwnames[] = { | |
27865 | (char *) "self", NULL | |
27866 | }; | |
27867 | ||
27868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
27869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27871 | { | |
27872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27873 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
27874 | ||
27875 | wxPyEndAllowThreads(__tstate); | |
27876 | if (PyErr_Occurred()) SWIG_fail; | |
27877 | } | |
27878 | { | |
412d302d | 27879 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27880 | } |
27881 | return resultobj; | |
27882 | fail: | |
27883 | return NULL; | |
27884 | } | |
27885 | ||
27886 | ||
27887 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27888 | PyObject *resultobj; | |
27889 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27890 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; | |
27891 | PyObject * obj0 = 0 ; | |
27892 | PyObject * obj1 = 0 ; | |
27893 | char *kwnames[] = { | |
27894 | (char *) "self",(char *) "dropTarget", NULL | |
27895 | }; | |
27896 | ||
27897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
27898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27900 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
27901 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27902 | { | |
27903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27904 | (arg1)->SetDropTarget(arg2); | |
27905 | ||
27906 | wxPyEndAllowThreads(__tstate); | |
27907 | if (PyErr_Occurred()) SWIG_fail; | |
27908 | } | |
27909 | Py_INCREF(Py_None); resultobj = Py_None; | |
27910 | return resultobj; | |
27911 | fail: | |
27912 | return NULL; | |
27913 | } | |
27914 | ||
27915 | ||
27916 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27917 | PyObject *resultobj; | |
27918 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27919 | wxPyDropTarget *result; | |
27920 | PyObject * obj0 = 0 ; | |
27921 | char *kwnames[] = { | |
27922 | (char *) "self", NULL | |
27923 | }; | |
27924 | ||
27925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
27926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27928 | { | |
27929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27930 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
27931 | ||
27932 | wxPyEndAllowThreads(__tstate); | |
27933 | if (PyErr_Occurred()) SWIG_fail; | |
27934 | } | |
27935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); | |
27936 | return resultobj; | |
27937 | fail: | |
27938 | return NULL; | |
27939 | } | |
27940 | ||
27941 | ||
27942 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27943 | PyObject *resultobj; | |
27944 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27945 | bool arg2 ; | |
27946 | PyObject * obj0 = 0 ; | |
27947 | PyObject * obj1 = 0 ; | |
27948 | char *kwnames[] = { | |
27949 | (char *) "self",(char *) "accept", NULL | |
27950 | }; | |
27951 | ||
27952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
27953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27955 | arg2 = (bool) SWIG_AsBool(obj1); | |
27956 | if (PyErr_Occurred()) SWIG_fail; | |
27957 | { | |
27958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27959 | (arg1)->DragAcceptFiles(arg2); | |
27960 | ||
27961 | wxPyEndAllowThreads(__tstate); | |
27962 | if (PyErr_Occurred()) SWIG_fail; | |
27963 | } | |
27964 | Py_INCREF(Py_None); resultobj = Py_None; | |
27965 | return resultobj; | |
27966 | fail: | |
27967 | return NULL; | |
27968 | } | |
27969 | ||
27970 | ||
27971 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27972 | PyObject *resultobj; | |
27973 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27974 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
27975 | PyObject * obj0 = 0 ; | |
27976 | PyObject * obj1 = 0 ; | |
27977 | char *kwnames[] = { | |
27978 | (char *) "self",(char *) "constraints", NULL | |
27979 | }; | |
27980 | ||
27981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
27982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27984 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
27985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27986 | { | |
27987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27988 | (arg1)->SetConstraints(arg2); | |
27989 | ||
27990 | wxPyEndAllowThreads(__tstate); | |
27991 | if (PyErr_Occurred()) SWIG_fail; | |
27992 | } | |
27993 | Py_INCREF(Py_None); resultobj = Py_None; | |
27994 | return resultobj; | |
27995 | fail: | |
27996 | return NULL; | |
27997 | } | |
27998 | ||
27999 | ||
28000 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28001 | PyObject *resultobj; | |
28002 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28003 | wxLayoutConstraints *result; | |
28004 | PyObject * obj0 = 0 ; | |
28005 | char *kwnames[] = { | |
28006 | (char *) "self", NULL | |
28007 | }; | |
28008 | ||
28009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
28010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28012 | { | |
28013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28014 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
28015 | ||
28016 | wxPyEndAllowThreads(__tstate); | |
28017 | if (PyErr_Occurred()) SWIG_fail; | |
28018 | } | |
28019 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); | |
28020 | return resultobj; | |
28021 | fail: | |
28022 | return NULL; | |
28023 | } | |
28024 | ||
28025 | ||
28026 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28027 | PyObject *resultobj; | |
28028 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28029 | bool arg2 ; | |
28030 | PyObject * obj0 = 0 ; | |
28031 | PyObject * obj1 = 0 ; | |
28032 | char *kwnames[] = { | |
28033 | (char *) "self",(char *) "autoLayout", NULL | |
28034 | }; | |
28035 | ||
28036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
28037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28039 | arg2 = (bool) SWIG_AsBool(obj1); | |
28040 | if (PyErr_Occurred()) SWIG_fail; | |
28041 | { | |
28042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28043 | (arg1)->SetAutoLayout(arg2); | |
28044 | ||
28045 | wxPyEndAllowThreads(__tstate); | |
28046 | if (PyErr_Occurred()) SWIG_fail; | |
28047 | } | |
28048 | Py_INCREF(Py_None); resultobj = Py_None; | |
28049 | return resultobj; | |
28050 | fail: | |
28051 | return NULL; | |
28052 | } | |
28053 | ||
28054 | ||
28055 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28056 | PyObject *resultobj; | |
28057 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28058 | bool result; | |
28059 | PyObject * obj0 = 0 ; | |
28060 | char *kwnames[] = { | |
28061 | (char *) "self", NULL | |
28062 | }; | |
28063 | ||
28064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
28065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28067 | { | |
28068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28069 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
28070 | ||
28071 | wxPyEndAllowThreads(__tstate); | |
28072 | if (PyErr_Occurred()) SWIG_fail; | |
28073 | } | |
28074 | { | |
28075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28076 | } | |
28077 | return resultobj; | |
28078 | fail: | |
28079 | return NULL; | |
28080 | } | |
28081 | ||
28082 | ||
28083 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28084 | PyObject *resultobj; | |
28085 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28086 | bool result; | |
28087 | PyObject * obj0 = 0 ; | |
28088 | char *kwnames[] = { | |
28089 | (char *) "self", NULL | |
28090 | }; | |
28091 | ||
28092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
28093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28095 | { | |
28096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28097 | result = (bool)(arg1)->Layout(); | |
28098 | ||
28099 | wxPyEndAllowThreads(__tstate); | |
28100 | if (PyErr_Occurred()) SWIG_fail; | |
28101 | } | |
28102 | { | |
28103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28104 | } | |
28105 | return resultobj; | |
28106 | fail: | |
28107 | return NULL; | |
28108 | } | |
28109 | ||
28110 | ||
28111 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28112 | PyObject *resultobj; | |
28113 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28114 | wxSizer *arg2 = (wxSizer *) 0 ; | |
28115 | bool arg3 = (bool) True ; | |
28116 | PyObject * obj0 = 0 ; | |
28117 | PyObject * obj1 = 0 ; | |
28118 | PyObject * obj2 = 0 ; | |
28119 | char *kwnames[] = { | |
28120 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28121 | }; | |
28122 | ||
28123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28126 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28128 | if (obj2) { | |
28129 | arg3 = (bool) SWIG_AsBool(obj2); | |
28130 | if (PyErr_Occurred()) SWIG_fail; | |
28131 | } | |
28132 | { | |
28133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28134 | (arg1)->SetSizer(arg2,arg3); | |
28135 | ||
28136 | wxPyEndAllowThreads(__tstate); | |
28137 | if (PyErr_Occurred()) SWIG_fail; | |
28138 | } | |
28139 | Py_INCREF(Py_None); resultobj = Py_None; | |
28140 | return resultobj; | |
28141 | fail: | |
28142 | return NULL; | |
28143 | } | |
28144 | ||
28145 | ||
28146 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28147 | PyObject *resultobj; | |
28148 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28149 | wxSizer *arg2 = (wxSizer *) 0 ; | |
28150 | bool arg3 = (bool) True ; | |
28151 | PyObject * obj0 = 0 ; | |
28152 | PyObject * obj1 = 0 ; | |
28153 | PyObject * obj2 = 0 ; | |
28154 | char *kwnames[] = { | |
28155 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28156 | }; | |
28157 | ||
28158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28161 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28163 | if (obj2) { | |
28164 | arg3 = (bool) SWIG_AsBool(obj2); | |
28165 | if (PyErr_Occurred()) SWIG_fail; | |
28166 | } | |
28167 | { | |
28168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28169 | (arg1)->SetSizerAndFit(arg2,arg3); | |
28170 | ||
28171 | wxPyEndAllowThreads(__tstate); | |
28172 | if (PyErr_Occurred()) SWIG_fail; | |
28173 | } | |
28174 | Py_INCREF(Py_None); resultobj = Py_None; | |
28175 | return resultobj; | |
28176 | fail: | |
28177 | return NULL; | |
28178 | } | |
28179 | ||
28180 | ||
28181 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28182 | PyObject *resultobj; | |
28183 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28184 | wxSizer *result; | |
28185 | PyObject * obj0 = 0 ; | |
28186 | char *kwnames[] = { | |
28187 | (char *) "self", NULL | |
28188 | }; | |
28189 | ||
28190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
28191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28193 | { | |
28194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28195 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
28196 | ||
28197 | wxPyEndAllowThreads(__tstate); | |
28198 | if (PyErr_Occurred()) SWIG_fail; | |
28199 | } | |
28200 | { | |
412d302d | 28201 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
28202 | } |
28203 | return resultobj; | |
28204 | fail: | |
28205 | return NULL; | |
28206 | } | |
28207 | ||
28208 | ||
28209 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28210 | PyObject *resultobj; | |
28211 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28212 | wxSizer *arg2 = (wxSizer *) 0 ; | |
28213 | PyObject * obj0 = 0 ; | |
28214 | PyObject * obj1 = 0 ; | |
28215 | char *kwnames[] = { | |
28216 | (char *) "self",(char *) "sizer", NULL | |
28217 | }; | |
28218 | ||
28219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
28220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28222 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28224 | { | |
28225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28226 | (arg1)->SetContainingSizer(arg2); | |
28227 | ||
28228 | wxPyEndAllowThreads(__tstate); | |
28229 | if (PyErr_Occurred()) SWIG_fail; | |
28230 | } | |
28231 | Py_INCREF(Py_None); resultobj = Py_None; | |
28232 | return resultobj; | |
28233 | fail: | |
28234 | return NULL; | |
28235 | } | |
28236 | ||
28237 | ||
28238 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28239 | PyObject *resultobj; | |
28240 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28241 | wxSizer *result; | |
28242 | PyObject * obj0 = 0 ; | |
28243 | char *kwnames[] = { | |
28244 | (char *) "self", NULL | |
28245 | }; | |
28246 | ||
28247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
28248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28250 | { | |
28251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28252 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
28253 | ||
28254 | wxPyEndAllowThreads(__tstate); | |
28255 | if (PyErr_Occurred()) SWIG_fail; | |
28256 | } | |
28257 | { | |
412d302d | 28258 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
28259 | } |
28260 | return resultobj; | |
28261 | fail: | |
28262 | return NULL; | |
28263 | } | |
28264 | ||
28265 | ||
28266 | static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28267 | PyObject *resultobj; | |
28268 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28269 | PyObject * obj0 = 0 ; | |
28270 | char *kwnames[] = { | |
28271 | (char *) "self", NULL | |
28272 | }; | |
28273 | ||
28274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
28275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28277 | { | |
28278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28279 | (arg1)->InheritAttributes(); | |
28280 | ||
28281 | wxPyEndAllowThreads(__tstate); | |
28282 | if (PyErr_Occurred()) SWIG_fail; | |
28283 | } | |
28284 | Py_INCREF(Py_None); resultobj = Py_None; | |
28285 | return resultobj; | |
28286 | fail: | |
28287 | return NULL; | |
28288 | } | |
28289 | ||
28290 | ||
28291 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28292 | PyObject *resultobj; | |
28293 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28294 | bool result; | |
28295 | PyObject * obj0 = 0 ; | |
28296 | char *kwnames[] = { | |
28297 | (char *) "self", NULL | |
28298 | }; | |
28299 | ||
28300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
28301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28303 | { | |
28304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28305 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
28306 | ||
28307 | wxPyEndAllowThreads(__tstate); | |
28308 | if (PyErr_Occurred()) SWIG_fail; | |
28309 | } | |
28310 | { | |
28311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28312 | } | |
28313 | return resultobj; | |
28314 | fail: | |
28315 | return NULL; | |
28316 | } | |
28317 | ||
28318 | ||
28319 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
28320 | PyObject *obj; | |
28321 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28322 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
28323 | Py_INCREF(obj); | |
28324 | return Py_BuildValue((char *)""); | |
28325 | } | |
28326 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28327 | PyObject *resultobj; | |
28328 | long arg1 ; | |
28329 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28330 | wxWindow *result; | |
28331 | PyObject * obj0 = 0 ; | |
28332 | PyObject * obj1 = 0 ; | |
28333 | char *kwnames[] = { | |
28334 | (char *) "id",(char *) "parent", NULL | |
28335 | }; | |
28336 | ||
28337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
28338 | arg1 = (long) SWIG_AsLong(obj0); | |
28339 | if (PyErr_Occurred()) SWIG_fail; | |
28340 | if (obj1) { | |
28341 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28343 | } | |
28344 | { | |
0439c23b | 28345 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28347 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
28348 | ||
28349 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28350 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28351 | } |
28352 | { | |
412d302d | 28353 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28354 | } |
28355 | return resultobj; | |
28356 | fail: | |
28357 | return NULL; | |
28358 | } | |
28359 | ||
28360 | ||
28361 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28362 | PyObject *resultobj; | |
28363 | wxString *arg1 = 0 ; | |
28364 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28365 | wxWindow *result; | |
28366 | bool temp1 = False ; | |
28367 | PyObject * obj0 = 0 ; | |
28368 | PyObject * obj1 = 0 ; | |
28369 | char *kwnames[] = { | |
28370 | (char *) "name",(char *) "parent", NULL | |
28371 | }; | |
28372 | ||
28373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
28374 | { | |
28375 | arg1 = wxString_in_helper(obj0); | |
28376 | if (arg1 == NULL) SWIG_fail; | |
28377 | temp1 = True; | |
28378 | } | |
28379 | if (obj1) { | |
28380 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28382 | } | |
28383 | { | |
0439c23b | 28384 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28386 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
28387 | ||
28388 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28389 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28390 | } |
28391 | { | |
412d302d | 28392 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28393 | } |
28394 | { | |
28395 | if (temp1) | |
28396 | delete arg1; | |
28397 | } | |
28398 | return resultobj; | |
28399 | fail: | |
28400 | { | |
28401 | if (temp1) | |
28402 | delete arg1; | |
28403 | } | |
28404 | return NULL; | |
28405 | } | |
28406 | ||
28407 | ||
28408 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28409 | PyObject *resultobj; | |
28410 | wxString *arg1 = 0 ; | |
28411 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28412 | wxWindow *result; | |
28413 | bool temp1 = False ; | |
28414 | PyObject * obj0 = 0 ; | |
28415 | PyObject * obj1 = 0 ; | |
28416 | char *kwnames[] = { | |
28417 | (char *) "label",(char *) "parent", NULL | |
28418 | }; | |
28419 | ||
28420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
28421 | { | |
28422 | arg1 = wxString_in_helper(obj0); | |
28423 | if (arg1 == NULL) SWIG_fail; | |
28424 | temp1 = True; | |
28425 | } | |
28426 | if (obj1) { | |
28427 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28429 | } | |
28430 | { | |
0439c23b | 28431 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28433 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
28434 | ||
28435 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28436 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28437 | } |
28438 | { | |
412d302d | 28439 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28440 | } |
28441 | { | |
28442 | if (temp1) | |
28443 | delete arg1; | |
28444 | } | |
28445 | return resultobj; | |
28446 | fail: | |
28447 | { | |
28448 | if (temp1) | |
28449 | delete arg1; | |
28450 | } | |
28451 | return NULL; | |
28452 | } | |
28453 | ||
28454 | ||
28455 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28456 | PyObject *resultobj; | |
28457 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28458 | unsigned long arg2 ; | |
28459 | wxWindow *result; | |
28460 | PyObject * obj0 = 0 ; | |
28461 | PyObject * obj1 = 0 ; | |
28462 | char *kwnames[] = { | |
28463 | (char *) "parent",(char *) "_hWnd", NULL | |
28464 | }; | |
28465 | ||
28466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; | |
28467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28469 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
28470 | if (PyErr_Occurred()) SWIG_fail; | |
28471 | { | |
28472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28473 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); | |
28474 | ||
28475 | wxPyEndAllowThreads(__tstate); | |
28476 | if (PyErr_Occurred()) SWIG_fail; | |
28477 | } | |
28478 | { | |
412d302d | 28479 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28480 | } |
28481 | return resultobj; | |
28482 | fail: | |
28483 | return NULL; | |
28484 | } | |
28485 | ||
28486 | ||
28487 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28488 | PyObject *resultobj; | |
28489 | wxValidator *result; | |
28490 | char *kwnames[] = { | |
28491 | NULL | |
28492 | }; | |
28493 | ||
28494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
28495 | { | |
28496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28497 | result = (wxValidator *)new wxValidator(); | |
28498 | ||
28499 | wxPyEndAllowThreads(__tstate); | |
28500 | if (PyErr_Occurred()) SWIG_fail; | |
28501 | } | |
b0f7404b | 28502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1); |
d55e5bfc RD |
28503 | return resultobj; |
28504 | fail: | |
28505 | return NULL; | |
28506 | } | |
28507 | ||
28508 | ||
28509 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28510 | PyObject *resultobj; | |
28511 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28512 | wxValidator *result; | |
28513 | PyObject * obj0 = 0 ; | |
28514 | char *kwnames[] = { | |
28515 | (char *) "self", NULL | |
28516 | }; | |
28517 | ||
28518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
28519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28521 | { | |
28522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28523 | result = (wxValidator *)(arg1)->Clone(); | |
28524 | ||
28525 | wxPyEndAllowThreads(__tstate); | |
28526 | if (PyErr_Occurred()) SWIG_fail; | |
28527 | } | |
28528 | { | |
412d302d | 28529 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28530 | } |
28531 | return resultobj; | |
28532 | fail: | |
28533 | return NULL; | |
28534 | } | |
28535 | ||
28536 | ||
28537 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28538 | PyObject *resultobj; | |
28539 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28540 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28541 | bool result; | |
28542 | PyObject * obj0 = 0 ; | |
28543 | PyObject * obj1 = 0 ; | |
28544 | char *kwnames[] = { | |
28545 | (char *) "self",(char *) "parent", NULL | |
28546 | }; | |
28547 | ||
28548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
28549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28551 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28553 | { | |
28554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28555 | result = (bool)(arg1)->Validate(arg2); | |
28556 | ||
28557 | wxPyEndAllowThreads(__tstate); | |
28558 | if (PyErr_Occurred()) SWIG_fail; | |
28559 | } | |
28560 | { | |
28561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28562 | } | |
28563 | return resultobj; | |
28564 | fail: | |
28565 | return NULL; | |
28566 | } | |
28567 | ||
28568 | ||
28569 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28570 | PyObject *resultobj; | |
28571 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28572 | bool result; | |
28573 | PyObject * obj0 = 0 ; | |
28574 | char *kwnames[] = { | |
28575 | (char *) "self", NULL | |
28576 | }; | |
28577 | ||
28578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
28579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28581 | { | |
28582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28583 | result = (bool)(arg1)->TransferToWindow(); | |
28584 | ||
28585 | wxPyEndAllowThreads(__tstate); | |
28586 | if (PyErr_Occurred()) SWIG_fail; | |
28587 | } | |
28588 | { | |
28589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28590 | } | |
28591 | return resultobj; | |
28592 | fail: | |
28593 | return NULL; | |
28594 | } | |
28595 | ||
28596 | ||
28597 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28598 | PyObject *resultobj; | |
28599 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28600 | bool result; | |
28601 | PyObject * obj0 = 0 ; | |
28602 | char *kwnames[] = { | |
28603 | (char *) "self", NULL | |
28604 | }; | |
28605 | ||
28606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
28607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28609 | { | |
28610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28611 | result = (bool)(arg1)->TransferFromWindow(); | |
28612 | ||
28613 | wxPyEndAllowThreads(__tstate); | |
28614 | if (PyErr_Occurred()) SWIG_fail; | |
28615 | } | |
28616 | { | |
28617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28618 | } | |
28619 | return resultobj; | |
28620 | fail: | |
28621 | return NULL; | |
28622 | } | |
28623 | ||
28624 | ||
28625 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28626 | PyObject *resultobj; | |
28627 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28628 | wxWindow *result; | |
28629 | PyObject * obj0 = 0 ; | |
28630 | char *kwnames[] = { | |
28631 | (char *) "self", NULL | |
28632 | }; | |
28633 | ||
28634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
28635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28637 | { | |
28638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28639 | result = (wxWindow *)(arg1)->GetWindow(); | |
28640 | ||
28641 | wxPyEndAllowThreads(__tstate); | |
28642 | if (PyErr_Occurred()) SWIG_fail; | |
28643 | } | |
28644 | { | |
412d302d | 28645 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28646 | } |
28647 | return resultobj; | |
28648 | fail: | |
28649 | return NULL; | |
28650 | } | |
28651 | ||
28652 | ||
28653 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28654 | PyObject *resultobj; | |
28655 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28656 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28657 | PyObject * obj0 = 0 ; | |
28658 | PyObject * obj1 = 0 ; | |
28659 | char *kwnames[] = { | |
28660 | (char *) "self",(char *) "window", NULL | |
28661 | }; | |
28662 | ||
28663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
28664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28666 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28668 | { | |
28669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28670 | (arg1)->SetWindow(arg2); | |
28671 | ||
28672 | wxPyEndAllowThreads(__tstate); | |
28673 | if (PyErr_Occurred()) SWIG_fail; | |
28674 | } | |
28675 | Py_INCREF(Py_None); resultobj = Py_None; | |
28676 | return resultobj; | |
28677 | fail: | |
28678 | return NULL; | |
28679 | } | |
28680 | ||
28681 | ||
28682 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28683 | PyObject *resultobj; | |
28684 | bool result; | |
28685 | char *kwnames[] = { | |
28686 | NULL | |
28687 | }; | |
28688 | ||
28689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
28690 | { | |
28691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28692 | result = (bool)wxValidator::IsSilent(); | |
28693 | ||
28694 | wxPyEndAllowThreads(__tstate); | |
28695 | if (PyErr_Occurred()) SWIG_fail; | |
28696 | } | |
28697 | { | |
28698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28699 | } | |
28700 | return resultobj; | |
28701 | fail: | |
28702 | return NULL; | |
28703 | } | |
28704 | ||
28705 | ||
28706 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28707 | PyObject *resultobj; | |
28708 | int arg1 = (int) True ; | |
28709 | PyObject * obj0 = 0 ; | |
28710 | char *kwnames[] = { | |
28711 | (char *) "doIt", NULL | |
28712 | }; | |
28713 | ||
28714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; | |
28715 | if (obj0) { | |
28716 | arg1 = (int) SWIG_AsInt(obj0); | |
28717 | if (PyErr_Occurred()) SWIG_fail; | |
28718 | } | |
28719 | { | |
28720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28721 | wxValidator::SetBellOnError(arg1); | |
28722 | ||
28723 | wxPyEndAllowThreads(__tstate); | |
28724 | if (PyErr_Occurred()) SWIG_fail; | |
28725 | } | |
28726 | Py_INCREF(Py_None); resultobj = Py_None; | |
28727 | return resultobj; | |
28728 | fail: | |
28729 | return NULL; | |
28730 | } | |
28731 | ||
28732 | ||
28733 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
28734 | PyObject *obj; | |
28735 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28736 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
28737 | Py_INCREF(obj); | |
28738 | return Py_BuildValue((char *)""); | |
28739 | } | |
28740 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28741 | PyObject *resultobj; | |
28742 | wxPyValidator *result; | |
28743 | char *kwnames[] = { | |
28744 | NULL | |
28745 | }; | |
28746 | ||
28747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
28748 | { | |
28749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28750 | result = (wxPyValidator *)new wxPyValidator(); | |
28751 | ||
28752 | wxPyEndAllowThreads(__tstate); | |
28753 | if (PyErr_Occurred()) SWIG_fail; | |
28754 | } | |
28755 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); | |
28756 | return resultobj; | |
28757 | fail: | |
28758 | return NULL; | |
28759 | } | |
28760 | ||
28761 | ||
28762 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28763 | PyObject *resultobj; | |
28764 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
28765 | PyObject *arg2 = (PyObject *) 0 ; | |
28766 | PyObject *arg3 = (PyObject *) 0 ; | |
28767 | int arg4 = (int) True ; | |
28768 | PyObject * obj0 = 0 ; | |
28769 | PyObject * obj1 = 0 ; | |
28770 | PyObject * obj2 = 0 ; | |
28771 | PyObject * obj3 = 0 ; | |
28772 | char *kwnames[] = { | |
28773 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
28774 | }; | |
28775 | ||
28776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, | |
28778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28779 | arg2 = obj1; | |
28780 | arg3 = obj2; | |
28781 | if (obj3) { | |
28782 | arg4 = (int) SWIG_AsInt(obj3); | |
28783 | if (PyErr_Occurred()) SWIG_fail; | |
28784 | } | |
28785 | { | |
28786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28787 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
28788 | ||
28789 | wxPyEndAllowThreads(__tstate); | |
28790 | if (PyErr_Occurred()) SWIG_fail; | |
28791 | } | |
28792 | Py_INCREF(Py_None); resultobj = Py_None; | |
28793 | return resultobj; | |
28794 | fail: | |
28795 | return NULL; | |
28796 | } | |
28797 | ||
28798 | ||
28799 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
28800 | PyObject *obj; | |
28801 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28802 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
28803 | Py_INCREF(obj); | |
28804 | return Py_BuildValue((char *)""); | |
28805 | } | |
28806 | static int _wrap_DefaultValidator_set(PyObject *_val) { | |
28807 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); | |
28808 | return 1; | |
28809 | } | |
28810 | ||
28811 | ||
28812 | static PyObject *_wrap_DefaultValidator_get() { | |
28813 | PyObject *pyobj; | |
28814 | ||
28815 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); | |
28816 | return pyobj; | |
28817 | } | |
28818 | ||
28819 | ||
28820 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28821 | PyObject *resultobj; | |
28822 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
28823 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
28824 | long arg2 = (long) 0 ; | |
28825 | wxMenu *result; | |
28826 | bool temp1 = False ; | |
28827 | PyObject * obj0 = 0 ; | |
28828 | PyObject * obj1 = 0 ; | |
28829 | char *kwnames[] = { | |
28830 | (char *) "title",(char *) "style", NULL | |
28831 | }; | |
28832 | ||
28833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; | |
28834 | if (obj0) { | |
28835 | { | |
28836 | arg1 = wxString_in_helper(obj0); | |
28837 | if (arg1 == NULL) SWIG_fail; | |
28838 | temp1 = True; | |
28839 | } | |
28840 | } | |
28841 | if (obj1) { | |
28842 | arg2 = (long) SWIG_AsLong(obj1); | |
28843 | if (PyErr_Occurred()) SWIG_fail; | |
28844 | } | |
28845 | { | |
0439c23b | 28846 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28848 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
28849 | ||
28850 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28851 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 28852 | } |
b0f7404b | 28853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1); |
d55e5bfc RD |
28854 | { |
28855 | if (temp1) | |
28856 | delete arg1; | |
28857 | } | |
28858 | return resultobj; | |
28859 | fail: | |
28860 | { | |
28861 | if (temp1) | |
28862 | delete arg1; | |
28863 | } | |
28864 | return NULL; | |
28865 | } | |
28866 | ||
28867 | ||
28868 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28869 | PyObject *resultobj; | |
28870 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28871 | int arg2 ; | |
28872 | wxString *arg3 = 0 ; | |
28873 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28874 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28875 | int arg5 = (int) wxITEM_NORMAL ; | |
28876 | wxMenuItem *result; | |
28877 | bool temp3 = False ; | |
28878 | bool temp4 = False ; | |
28879 | PyObject * obj0 = 0 ; | |
28880 | PyObject * obj1 = 0 ; | |
28881 | PyObject * obj2 = 0 ; | |
28882 | PyObject * obj3 = 0 ; | |
28883 | PyObject * obj4 = 0 ; | |
28884 | char *kwnames[] = { | |
28885 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
28886 | }; | |
28887 | ||
28888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28891 | arg2 = (int) SWIG_AsInt(obj1); | |
28892 | if (PyErr_Occurred()) SWIG_fail; | |
28893 | { | |
28894 | arg3 = wxString_in_helper(obj2); | |
28895 | if (arg3 == NULL) SWIG_fail; | |
28896 | temp3 = True; | |
28897 | } | |
28898 | if (obj3) { | |
28899 | { | |
28900 | arg4 = wxString_in_helper(obj3); | |
28901 | if (arg4 == NULL) SWIG_fail; | |
28902 | temp4 = True; | |
28903 | } | |
28904 | } | |
28905 | if (obj4) { | |
28906 | arg5 = (wxItemKind) SWIG_AsInt(obj4); | |
28907 | if (PyErr_Occurred()) SWIG_fail; | |
28908 | } | |
28909 | { | |
28910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28911 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
28912 | ||
28913 | wxPyEndAllowThreads(__tstate); | |
28914 | if (PyErr_Occurred()) SWIG_fail; | |
28915 | } | |
28916 | { | |
412d302d | 28917 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28918 | } |
28919 | { | |
28920 | if (temp3) | |
28921 | delete arg3; | |
28922 | } | |
28923 | { | |
28924 | if (temp4) | |
28925 | delete arg4; | |
28926 | } | |
28927 | return resultobj; | |
28928 | fail: | |
28929 | { | |
28930 | if (temp3) | |
28931 | delete arg3; | |
28932 | } | |
28933 | { | |
28934 | if (temp4) | |
28935 | delete arg4; | |
28936 | } | |
28937 | return NULL; | |
28938 | } | |
28939 | ||
28940 | ||
28941 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28942 | PyObject *resultobj; | |
28943 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28944 | wxMenuItem *result; | |
28945 | PyObject * obj0 = 0 ; | |
28946 | char *kwnames[] = { | |
28947 | (char *) "self", NULL | |
28948 | }; | |
28949 | ||
28950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
28951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28953 | { | |
28954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28955 | result = (wxMenuItem *)(arg1)->AppendSeparator(); | |
28956 | ||
28957 | wxPyEndAllowThreads(__tstate); | |
28958 | if (PyErr_Occurred()) SWIG_fail; | |
28959 | } | |
28960 | { | |
412d302d | 28961 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28962 | } |
28963 | return resultobj; | |
28964 | fail: | |
28965 | return NULL; | |
28966 | } | |
28967 | ||
28968 | ||
28969 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28970 | PyObject *resultobj; | |
28971 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28972 | int arg2 ; | |
28973 | wxString *arg3 = 0 ; | |
28974 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28975 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28976 | wxMenuItem *result; | |
28977 | bool temp3 = False ; | |
28978 | bool temp4 = False ; | |
28979 | PyObject * obj0 = 0 ; | |
28980 | PyObject * obj1 = 0 ; | |
28981 | PyObject * obj2 = 0 ; | |
28982 | PyObject * obj3 = 0 ; | |
28983 | char *kwnames[] = { | |
28984 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
28985 | }; | |
28986 | ||
28987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28990 | arg2 = (int) SWIG_AsInt(obj1); | |
28991 | if (PyErr_Occurred()) SWIG_fail; | |
28992 | { | |
28993 | arg3 = wxString_in_helper(obj2); | |
28994 | if (arg3 == NULL) SWIG_fail; | |
28995 | temp3 = True; | |
28996 | } | |
28997 | if (obj3) { | |
28998 | { | |
28999 | arg4 = wxString_in_helper(obj3); | |
29000 | if (arg4 == NULL) SWIG_fail; | |
29001 | temp4 = True; | |
29002 | } | |
29003 | } | |
29004 | { | |
29005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29006 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29007 | ||
29008 | wxPyEndAllowThreads(__tstate); | |
29009 | if (PyErr_Occurred()) SWIG_fail; | |
29010 | } | |
29011 | { | |
412d302d | 29012 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29013 | } |
29014 | { | |
29015 | if (temp3) | |
29016 | delete arg3; | |
29017 | } | |
29018 | { | |
29019 | if (temp4) | |
29020 | delete arg4; | |
29021 | } | |
29022 | return resultobj; | |
29023 | fail: | |
29024 | { | |
29025 | if (temp3) | |
29026 | delete arg3; | |
29027 | } | |
29028 | { | |
29029 | if (temp4) | |
29030 | delete arg4; | |
29031 | } | |
29032 | return NULL; | |
29033 | } | |
29034 | ||
29035 | ||
29036 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29037 | PyObject *resultobj; | |
29038 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29039 | int arg2 ; | |
29040 | wxString *arg3 = 0 ; | |
29041 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29042 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29043 | wxMenuItem *result; | |
29044 | bool temp3 = False ; | |
29045 | bool temp4 = False ; | |
29046 | PyObject * obj0 = 0 ; | |
29047 | PyObject * obj1 = 0 ; | |
29048 | PyObject * obj2 = 0 ; | |
29049 | PyObject * obj3 = 0 ; | |
29050 | char *kwnames[] = { | |
29051 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29052 | }; | |
29053 | ||
29054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29057 | arg2 = (int) SWIG_AsInt(obj1); | |
29058 | if (PyErr_Occurred()) SWIG_fail; | |
29059 | { | |
29060 | arg3 = wxString_in_helper(obj2); | |
29061 | if (arg3 == NULL) SWIG_fail; | |
29062 | temp3 = True; | |
29063 | } | |
29064 | if (obj3) { | |
29065 | { | |
29066 | arg4 = wxString_in_helper(obj3); | |
29067 | if (arg4 == NULL) SWIG_fail; | |
29068 | temp4 = True; | |
29069 | } | |
29070 | } | |
29071 | { | |
29072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29073 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29074 | ||
29075 | wxPyEndAllowThreads(__tstate); | |
29076 | if (PyErr_Occurred()) SWIG_fail; | |
29077 | } | |
29078 | { | |
412d302d | 29079 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29080 | } |
29081 | { | |
29082 | if (temp3) | |
29083 | delete arg3; | |
29084 | } | |
29085 | { | |
29086 | if (temp4) | |
29087 | delete arg4; | |
29088 | } | |
29089 | return resultobj; | |
29090 | fail: | |
29091 | { | |
29092 | if (temp3) | |
29093 | delete arg3; | |
29094 | } | |
29095 | { | |
29096 | if (temp4) | |
29097 | delete arg4; | |
29098 | } | |
29099 | return NULL; | |
29100 | } | |
29101 | ||
29102 | ||
29103 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29104 | PyObject *resultobj; | |
29105 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29106 | int arg2 ; | |
29107 | wxString *arg3 = 0 ; | |
29108 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29109 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29110 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29111 | wxMenuItem *result; | |
29112 | bool temp3 = False ; | |
29113 | bool temp5 = False ; | |
29114 | PyObject * obj0 = 0 ; | |
29115 | PyObject * obj1 = 0 ; | |
29116 | PyObject * obj2 = 0 ; | |
29117 | PyObject * obj3 = 0 ; | |
29118 | PyObject * obj4 = 0 ; | |
29119 | char *kwnames[] = { | |
29120 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29121 | }; | |
29122 | ||
29123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29126 | arg2 = (int) SWIG_AsInt(obj1); | |
29127 | if (PyErr_Occurred()) SWIG_fail; | |
29128 | { | |
29129 | arg3 = wxString_in_helper(obj2); | |
29130 | if (arg3 == NULL) SWIG_fail; | |
29131 | temp3 = True; | |
29132 | } | |
29133 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
29134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29135 | if (obj4) { | |
29136 | { | |
29137 | arg5 = wxString_in_helper(obj4); | |
29138 | if (arg5 == NULL) SWIG_fail; | |
29139 | temp5 = True; | |
29140 | } | |
29141 | } | |
29142 | { | |
29143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29144 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
29145 | ||
29146 | wxPyEndAllowThreads(__tstate); | |
29147 | if (PyErr_Occurred()) SWIG_fail; | |
29148 | } | |
29149 | { | |
412d302d | 29150 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29151 | } |
29152 | { | |
29153 | if (temp3) | |
29154 | delete arg3; | |
29155 | } | |
29156 | { | |
29157 | if (temp5) | |
29158 | delete arg5; | |
29159 | } | |
29160 | return resultobj; | |
29161 | fail: | |
29162 | { | |
29163 | if (temp3) | |
29164 | delete arg3; | |
29165 | } | |
29166 | { | |
29167 | if (temp5) | |
29168 | delete arg5; | |
29169 | } | |
29170 | return NULL; | |
29171 | } | |
29172 | ||
29173 | ||
29174 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29175 | PyObject *resultobj; | |
29176 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29177 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29178 | wxMenuItem *result; | |
29179 | PyObject * obj0 = 0 ; | |
29180 | PyObject * obj1 = 0 ; | |
29181 | char *kwnames[] = { | |
29182 | (char *) "self",(char *) "item", NULL | |
29183 | }; | |
29184 | ||
29185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
29186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29188 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29190 | { | |
29191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29192 | result = (wxMenuItem *)(arg1)->Append(arg2); | |
29193 | ||
29194 | wxPyEndAllowThreads(__tstate); | |
29195 | if (PyErr_Occurred()) SWIG_fail; | |
29196 | } | |
29197 | { | |
412d302d | 29198 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29199 | } |
29200 | return resultobj; | |
29201 | fail: | |
29202 | return NULL; | |
29203 | } | |
29204 | ||
29205 | ||
29206 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29207 | PyObject *resultobj; | |
29208 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29209 | PyObject * obj0 = 0 ; | |
29210 | char *kwnames[] = { | |
29211 | (char *) "self", NULL | |
29212 | }; | |
29213 | ||
29214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
29215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29217 | { | |
29218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29219 | (arg1)->Break(); | |
29220 | ||
29221 | wxPyEndAllowThreads(__tstate); | |
29222 | if (PyErr_Occurred()) SWIG_fail; | |
29223 | } | |
29224 | Py_INCREF(Py_None); resultobj = Py_None; | |
29225 | return resultobj; | |
29226 | fail: | |
29227 | return NULL; | |
29228 | } | |
29229 | ||
29230 | ||
29231 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29232 | PyObject *resultobj; | |
29233 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29234 | size_t arg2 ; | |
29235 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
29236 | wxMenuItem *result; | |
29237 | PyObject * obj0 = 0 ; | |
29238 | PyObject * obj1 = 0 ; | |
29239 | PyObject * obj2 = 0 ; | |
29240 | char *kwnames[] = { | |
29241 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
29242 | }; | |
29243 | ||
29244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29247 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29248 | if (PyErr_Occurred()) SWIG_fail; | |
29249 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
29250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29251 | { | |
29252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29253 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); | |
29254 | ||
29255 | wxPyEndAllowThreads(__tstate); | |
29256 | if (PyErr_Occurred()) SWIG_fail; | |
29257 | } | |
29258 | { | |
412d302d | 29259 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29260 | } |
29261 | return resultobj; | |
29262 | fail: | |
29263 | return NULL; | |
29264 | } | |
29265 | ||
29266 | ||
29267 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29268 | PyObject *resultobj; | |
29269 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29270 | size_t arg2 ; | |
29271 | int arg3 ; | |
29272 | wxString *arg4 = 0 ; | |
29273 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29274 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29275 | int arg6 = (int) wxITEM_NORMAL ; | |
29276 | wxMenuItem *result; | |
29277 | bool temp4 = False ; | |
29278 | bool temp5 = False ; | |
29279 | PyObject * obj0 = 0 ; | |
29280 | PyObject * obj1 = 0 ; | |
29281 | PyObject * obj2 = 0 ; | |
29282 | PyObject * obj3 = 0 ; | |
29283 | PyObject * obj4 = 0 ; | |
29284 | PyObject * obj5 = 0 ; | |
29285 | char *kwnames[] = { | |
29286 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29287 | }; | |
29288 | ||
29289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29292 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29293 | if (PyErr_Occurred()) SWIG_fail; | |
29294 | arg3 = (int) SWIG_AsInt(obj2); | |
29295 | if (PyErr_Occurred()) SWIG_fail; | |
29296 | { | |
29297 | arg4 = wxString_in_helper(obj3); | |
29298 | if (arg4 == NULL) SWIG_fail; | |
29299 | temp4 = True; | |
29300 | } | |
29301 | if (obj4) { | |
29302 | { | |
29303 | arg5 = wxString_in_helper(obj4); | |
29304 | if (arg5 == NULL) SWIG_fail; | |
29305 | temp5 = True; | |
29306 | } | |
29307 | } | |
29308 | if (obj5) { | |
29309 | arg6 = (wxItemKind) SWIG_AsInt(obj5); | |
29310 | if (PyErr_Occurred()) SWIG_fail; | |
29311 | } | |
29312 | { | |
29313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29314 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
29315 | ||
29316 | wxPyEndAllowThreads(__tstate); | |
29317 | if (PyErr_Occurred()) SWIG_fail; | |
29318 | } | |
29319 | { | |
412d302d | 29320 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29321 | } |
29322 | { | |
29323 | if (temp4) | |
29324 | delete arg4; | |
29325 | } | |
29326 | { | |
29327 | if (temp5) | |
29328 | delete arg5; | |
29329 | } | |
29330 | return resultobj; | |
29331 | fail: | |
29332 | { | |
29333 | if (temp4) | |
29334 | delete arg4; | |
29335 | } | |
29336 | { | |
29337 | if (temp5) | |
29338 | delete arg5; | |
29339 | } | |
29340 | return NULL; | |
29341 | } | |
29342 | ||
29343 | ||
29344 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29345 | PyObject *resultobj; | |
29346 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29347 | size_t arg2 ; | |
29348 | wxMenuItem *result; | |
29349 | PyObject * obj0 = 0 ; | |
29350 | PyObject * obj1 = 0 ; | |
29351 | char *kwnames[] = { | |
29352 | (char *) "self",(char *) "pos", NULL | |
29353 | }; | |
29354 | ||
29355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
29356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29358 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29359 | if (PyErr_Occurred()) SWIG_fail; | |
29360 | { | |
29361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29362 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); | |
29363 | ||
29364 | wxPyEndAllowThreads(__tstate); | |
29365 | if (PyErr_Occurred()) SWIG_fail; | |
29366 | } | |
29367 | { | |
412d302d | 29368 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29369 | } |
29370 | return resultobj; | |
29371 | fail: | |
29372 | return NULL; | |
29373 | } | |
29374 | ||
29375 | ||
29376 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29377 | PyObject *resultobj; | |
29378 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29379 | size_t arg2 ; | |
29380 | int arg3 ; | |
29381 | wxString *arg4 = 0 ; | |
29382 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29383 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29384 | wxMenuItem *result; | |
29385 | bool temp4 = False ; | |
29386 | bool temp5 = False ; | |
29387 | PyObject * obj0 = 0 ; | |
29388 | PyObject * obj1 = 0 ; | |
29389 | PyObject * obj2 = 0 ; | |
29390 | PyObject * obj3 = 0 ; | |
29391 | PyObject * obj4 = 0 ; | |
29392 | char *kwnames[] = { | |
29393 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
29394 | }; | |
29395 | ||
29396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29399 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29400 | if (PyErr_Occurred()) SWIG_fail; | |
29401 | arg3 = (int) SWIG_AsInt(obj2); | |
29402 | if (PyErr_Occurred()) SWIG_fail; | |
29403 | { | |
29404 | arg4 = wxString_in_helper(obj3); | |
29405 | if (arg4 == NULL) SWIG_fail; | |
29406 | temp4 = True; | |
29407 | } | |
29408 | if (obj4) { | |
29409 | { | |
29410 | arg5 = wxString_in_helper(obj4); | |
29411 | if (arg5 == NULL) SWIG_fail; | |
29412 | temp5 = True; | |
29413 | } | |
29414 | } | |
29415 | { | |
29416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29417 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
29418 | ||
29419 | wxPyEndAllowThreads(__tstate); | |
29420 | if (PyErr_Occurred()) SWIG_fail; | |
29421 | } | |
29422 | { | |
412d302d | 29423 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29424 | } |
29425 | { | |
29426 | if (temp4) | |
29427 | delete arg4; | |
29428 | } | |
29429 | { | |
29430 | if (temp5) | |
29431 | delete arg5; | |
29432 | } | |
29433 | return resultobj; | |
29434 | fail: | |
29435 | { | |
29436 | if (temp4) | |
29437 | delete arg4; | |
29438 | } | |
29439 | { | |
29440 | if (temp5) | |
29441 | delete arg5; | |
29442 | } | |
29443 | return NULL; | |
29444 | } | |
29445 | ||
29446 | ||
29447 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29448 | PyObject *resultobj; | |
29449 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29450 | size_t arg2 ; | |
29451 | int arg3 ; | |
29452 | wxString *arg4 = 0 ; | |
29453 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29454 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29455 | wxMenuItem *result; | |
29456 | bool temp4 = False ; | |
29457 | bool temp5 = False ; | |
29458 | PyObject * obj0 = 0 ; | |
29459 | PyObject * obj1 = 0 ; | |
29460 | PyObject * obj2 = 0 ; | |
29461 | PyObject * obj3 = 0 ; | |
29462 | PyObject * obj4 = 0 ; | |
29463 | char *kwnames[] = { | |
29464 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
29465 | }; | |
29466 | ||
29467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29470 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29471 | if (PyErr_Occurred()) SWIG_fail; | |
29472 | arg3 = (int) SWIG_AsInt(obj2); | |
29473 | if (PyErr_Occurred()) SWIG_fail; | |
29474 | { | |
29475 | arg4 = wxString_in_helper(obj3); | |
29476 | if (arg4 == NULL) SWIG_fail; | |
29477 | temp4 = True; | |
29478 | } | |
29479 | if (obj4) { | |
29480 | { | |
29481 | arg5 = wxString_in_helper(obj4); | |
29482 | if (arg5 == NULL) SWIG_fail; | |
29483 | temp5 = True; | |
29484 | } | |
29485 | } | |
29486 | { | |
29487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29488 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
29489 | ||
29490 | wxPyEndAllowThreads(__tstate); | |
29491 | if (PyErr_Occurred()) SWIG_fail; | |
29492 | } | |
29493 | { | |
412d302d | 29494 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29495 | } |
29496 | { | |
29497 | if (temp4) | |
29498 | delete arg4; | |
29499 | } | |
29500 | { | |
29501 | if (temp5) | |
29502 | delete arg5; | |
29503 | } | |
29504 | return resultobj; | |
29505 | fail: | |
29506 | { | |
29507 | if (temp4) | |
29508 | delete arg4; | |
29509 | } | |
29510 | { | |
29511 | if (temp5) | |
29512 | delete arg5; | |
29513 | } | |
29514 | return NULL; | |
29515 | } | |
29516 | ||
29517 | ||
29518 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29519 | PyObject *resultobj; | |
29520 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29521 | size_t arg2 ; | |
29522 | int arg3 ; | |
29523 | wxString *arg4 = 0 ; | |
29524 | wxMenu *arg5 = (wxMenu *) 0 ; | |
29525 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
29526 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
29527 | wxMenuItem *result; | |
29528 | bool temp4 = False ; | |
29529 | bool temp6 = False ; | |
29530 | PyObject * obj0 = 0 ; | |
29531 | PyObject * obj1 = 0 ; | |
29532 | PyObject * obj2 = 0 ; | |
29533 | PyObject * obj3 = 0 ; | |
29534 | PyObject * obj4 = 0 ; | |
29535 | PyObject * obj5 = 0 ; | |
29536 | char *kwnames[] = { | |
29537 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29538 | }; | |
29539 | ||
29540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29543 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29544 | if (PyErr_Occurred()) SWIG_fail; | |
29545 | arg3 = (int) SWIG_AsInt(obj2); | |
29546 | if (PyErr_Occurred()) SWIG_fail; | |
29547 | { | |
29548 | arg4 = wxString_in_helper(obj3); | |
29549 | if (arg4 == NULL) SWIG_fail; | |
29550 | temp4 = True; | |
29551 | } | |
29552 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, | |
29553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29554 | if (obj5) { | |
29555 | { | |
29556 | arg6 = wxString_in_helper(obj5); | |
29557 | if (arg6 == NULL) SWIG_fail; | |
29558 | temp6 = True; | |
29559 | } | |
29560 | } | |
29561 | { | |
29562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29563 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
29564 | ||
29565 | wxPyEndAllowThreads(__tstate); | |
29566 | if (PyErr_Occurred()) SWIG_fail; | |
29567 | } | |
29568 | { | |
412d302d | 29569 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29570 | } |
29571 | { | |
29572 | if (temp4) | |
29573 | delete arg4; | |
29574 | } | |
29575 | { | |
29576 | if (temp6) | |
29577 | delete arg6; | |
29578 | } | |
29579 | return resultobj; | |
29580 | fail: | |
29581 | { | |
29582 | if (temp4) | |
29583 | delete arg4; | |
29584 | } | |
29585 | { | |
29586 | if (temp6) | |
29587 | delete arg6; | |
29588 | } | |
29589 | return NULL; | |
29590 | } | |
29591 | ||
29592 | ||
29593 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29594 | PyObject *resultobj; | |
29595 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29596 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29597 | wxMenuItem *result; | |
29598 | PyObject * obj0 = 0 ; | |
29599 | PyObject * obj1 = 0 ; | |
29600 | char *kwnames[] = { | |
29601 | (char *) "self",(char *) "item", NULL | |
29602 | }; | |
29603 | ||
29604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
29605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29607 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29609 | { | |
29610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29611 | result = (wxMenuItem *)(arg1)->Prepend(arg2); | |
29612 | ||
29613 | wxPyEndAllowThreads(__tstate); | |
29614 | if (PyErr_Occurred()) SWIG_fail; | |
29615 | } | |
29616 | { | |
412d302d | 29617 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29618 | } |
29619 | return resultobj; | |
29620 | fail: | |
29621 | return NULL; | |
29622 | } | |
29623 | ||
29624 | ||
29625 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29626 | PyObject *resultobj; | |
29627 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29628 | int arg2 ; | |
29629 | wxString *arg3 = 0 ; | |
29630 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29631 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29632 | int arg5 = (int) wxITEM_NORMAL ; | |
29633 | wxMenuItem *result; | |
29634 | bool temp3 = False ; | |
29635 | bool temp4 = False ; | |
29636 | PyObject * obj0 = 0 ; | |
29637 | PyObject * obj1 = 0 ; | |
29638 | PyObject * obj2 = 0 ; | |
29639 | PyObject * obj3 = 0 ; | |
29640 | PyObject * obj4 = 0 ; | |
29641 | char *kwnames[] = { | |
29642 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29643 | }; | |
29644 | ||
29645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29648 | arg2 = (int) SWIG_AsInt(obj1); | |
29649 | if (PyErr_Occurred()) SWIG_fail; | |
29650 | { | |
29651 | arg3 = wxString_in_helper(obj2); | |
29652 | if (arg3 == NULL) SWIG_fail; | |
29653 | temp3 = True; | |
29654 | } | |
29655 | if (obj3) { | |
29656 | { | |
29657 | arg4 = wxString_in_helper(obj3); | |
29658 | if (arg4 == NULL) SWIG_fail; | |
29659 | temp4 = True; | |
29660 | } | |
29661 | } | |
29662 | if (obj4) { | |
29663 | arg5 = (wxItemKind) SWIG_AsInt(obj4); | |
29664 | if (PyErr_Occurred()) SWIG_fail; | |
29665 | } | |
29666 | { | |
29667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29668 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
29669 | ||
29670 | wxPyEndAllowThreads(__tstate); | |
29671 | if (PyErr_Occurred()) SWIG_fail; | |
29672 | } | |
29673 | { | |
412d302d | 29674 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29675 | } |
29676 | { | |
29677 | if (temp3) | |
29678 | delete arg3; | |
29679 | } | |
29680 | { | |
29681 | if (temp4) | |
29682 | delete arg4; | |
29683 | } | |
29684 | return resultobj; | |
29685 | fail: | |
29686 | { | |
29687 | if (temp3) | |
29688 | delete arg3; | |
29689 | } | |
29690 | { | |
29691 | if (temp4) | |
29692 | delete arg4; | |
29693 | } | |
29694 | return NULL; | |
29695 | } | |
29696 | ||
29697 | ||
29698 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29699 | PyObject *resultobj; | |
29700 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29701 | wxMenuItem *result; | |
29702 | PyObject * obj0 = 0 ; | |
29703 | char *kwnames[] = { | |
29704 | (char *) "self", NULL | |
29705 | }; | |
29706 | ||
29707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
29708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29710 | { | |
29711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29712 | result = (wxMenuItem *)(arg1)->PrependSeparator(); | |
29713 | ||
29714 | wxPyEndAllowThreads(__tstate); | |
29715 | if (PyErr_Occurred()) SWIG_fail; | |
29716 | } | |
29717 | { | |
412d302d | 29718 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29719 | } |
29720 | return resultobj; | |
29721 | fail: | |
29722 | return NULL; | |
29723 | } | |
29724 | ||
29725 | ||
29726 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29727 | PyObject *resultobj; | |
29728 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29729 | int arg2 ; | |
29730 | wxString *arg3 = 0 ; | |
29731 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29732 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29733 | wxMenuItem *result; | |
29734 | bool temp3 = False ; | |
29735 | bool temp4 = False ; | |
29736 | PyObject * obj0 = 0 ; | |
29737 | PyObject * obj1 = 0 ; | |
29738 | PyObject * obj2 = 0 ; | |
29739 | PyObject * obj3 = 0 ; | |
29740 | char *kwnames[] = { | |
29741 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29742 | }; | |
29743 | ||
29744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29747 | arg2 = (int) SWIG_AsInt(obj1); | |
29748 | if (PyErr_Occurred()) SWIG_fail; | |
29749 | { | |
29750 | arg3 = wxString_in_helper(obj2); | |
29751 | if (arg3 == NULL) SWIG_fail; | |
29752 | temp3 = True; | |
29753 | } | |
29754 | if (obj3) { | |
29755 | { | |
29756 | arg4 = wxString_in_helper(obj3); | |
29757 | if (arg4 == NULL) SWIG_fail; | |
29758 | temp4 = True; | |
29759 | } | |
29760 | } | |
29761 | { | |
29762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29763 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29764 | ||
29765 | wxPyEndAllowThreads(__tstate); | |
29766 | if (PyErr_Occurred()) SWIG_fail; | |
29767 | } | |
29768 | { | |
412d302d | 29769 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29770 | } |
29771 | { | |
29772 | if (temp3) | |
29773 | delete arg3; | |
29774 | } | |
29775 | { | |
29776 | if (temp4) | |
29777 | delete arg4; | |
29778 | } | |
29779 | return resultobj; | |
29780 | fail: | |
29781 | { | |
29782 | if (temp3) | |
29783 | delete arg3; | |
29784 | } | |
29785 | { | |
29786 | if (temp4) | |
29787 | delete arg4; | |
29788 | } | |
29789 | return NULL; | |
29790 | } | |
29791 | ||
29792 | ||
29793 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29794 | PyObject *resultobj; | |
29795 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29796 | int arg2 ; | |
29797 | wxString *arg3 = 0 ; | |
29798 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29799 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29800 | wxMenuItem *result; | |
29801 | bool temp3 = False ; | |
29802 | bool temp4 = False ; | |
29803 | PyObject * obj0 = 0 ; | |
29804 | PyObject * obj1 = 0 ; | |
29805 | PyObject * obj2 = 0 ; | |
29806 | PyObject * obj3 = 0 ; | |
29807 | char *kwnames[] = { | |
29808 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29809 | }; | |
29810 | ||
29811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29814 | arg2 = (int) SWIG_AsInt(obj1); | |
29815 | if (PyErr_Occurred()) SWIG_fail; | |
29816 | { | |
29817 | arg3 = wxString_in_helper(obj2); | |
29818 | if (arg3 == NULL) SWIG_fail; | |
29819 | temp3 = True; | |
29820 | } | |
29821 | if (obj3) { | |
29822 | { | |
29823 | arg4 = wxString_in_helper(obj3); | |
29824 | if (arg4 == NULL) SWIG_fail; | |
29825 | temp4 = True; | |
29826 | } | |
29827 | } | |
29828 | { | |
29829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29830 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29831 | ||
29832 | wxPyEndAllowThreads(__tstate); | |
29833 | if (PyErr_Occurred()) SWIG_fail; | |
29834 | } | |
29835 | { | |
412d302d | 29836 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29837 | } |
29838 | { | |
29839 | if (temp3) | |
29840 | delete arg3; | |
29841 | } | |
29842 | { | |
29843 | if (temp4) | |
29844 | delete arg4; | |
29845 | } | |
29846 | return resultobj; | |
29847 | fail: | |
29848 | { | |
29849 | if (temp3) | |
29850 | delete arg3; | |
29851 | } | |
29852 | { | |
29853 | if (temp4) | |
29854 | delete arg4; | |
29855 | } | |
29856 | return NULL; | |
29857 | } | |
29858 | ||
29859 | ||
29860 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29861 | PyObject *resultobj; | |
29862 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29863 | int arg2 ; | |
29864 | wxString *arg3 = 0 ; | |
29865 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29866 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29867 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29868 | wxMenuItem *result; | |
29869 | bool temp3 = False ; | |
29870 | bool temp5 = False ; | |
29871 | PyObject * obj0 = 0 ; | |
29872 | PyObject * obj1 = 0 ; | |
29873 | PyObject * obj2 = 0 ; | |
29874 | PyObject * obj3 = 0 ; | |
29875 | PyObject * obj4 = 0 ; | |
29876 | char *kwnames[] = { | |
29877 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29878 | }; | |
29879 | ||
29880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29883 | arg2 = (int) SWIG_AsInt(obj1); | |
29884 | if (PyErr_Occurred()) SWIG_fail; | |
29885 | { | |
29886 | arg3 = wxString_in_helper(obj2); | |
29887 | if (arg3 == NULL) SWIG_fail; | |
29888 | temp3 = True; | |
29889 | } | |
29890 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
29891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29892 | if (obj4) { | |
29893 | { | |
29894 | arg5 = wxString_in_helper(obj4); | |
29895 | if (arg5 == NULL) SWIG_fail; | |
29896 | temp5 = True; | |
29897 | } | |
29898 | } | |
29899 | { | |
29900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29901 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
29902 | ||
29903 | wxPyEndAllowThreads(__tstate); | |
29904 | if (PyErr_Occurred()) SWIG_fail; | |
29905 | } | |
29906 | { | |
412d302d | 29907 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29908 | } |
29909 | { | |
29910 | if (temp3) | |
29911 | delete arg3; | |
29912 | } | |
29913 | { | |
29914 | if (temp5) | |
29915 | delete arg5; | |
29916 | } | |
29917 | return resultobj; | |
29918 | fail: | |
29919 | { | |
29920 | if (temp3) | |
29921 | delete arg3; | |
29922 | } | |
29923 | { | |
29924 | if (temp5) | |
29925 | delete arg5; | |
29926 | } | |
29927 | return NULL; | |
29928 | } | |
29929 | ||
29930 | ||
29931 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29932 | PyObject *resultobj; | |
29933 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29934 | int arg2 ; | |
29935 | wxMenuItem *result; | |
29936 | PyObject * obj0 = 0 ; | |
29937 | PyObject * obj1 = 0 ; | |
29938 | char *kwnames[] = { | |
29939 | (char *) "self",(char *) "id", NULL | |
29940 | }; | |
29941 | ||
29942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; | |
29943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29945 | arg2 = (int) SWIG_AsInt(obj1); | |
29946 | if (PyErr_Occurred()) SWIG_fail; | |
29947 | { | |
29948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29949 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29950 | ||
29951 | wxPyEndAllowThreads(__tstate); | |
29952 | if (PyErr_Occurred()) SWIG_fail; | |
29953 | } | |
29954 | { | |
412d302d | 29955 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29956 | } |
29957 | return resultobj; | |
29958 | fail: | |
29959 | return NULL; | |
29960 | } | |
29961 | ||
29962 | ||
29963 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29964 | PyObject *resultobj; | |
29965 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29966 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29967 | wxMenuItem *result; | |
29968 | PyObject * obj0 = 0 ; | |
29969 | PyObject * obj1 = 0 ; | |
29970 | char *kwnames[] = { | |
29971 | (char *) "self",(char *) "item", NULL | |
29972 | }; | |
29973 | ||
29974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
29975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29977 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29979 | { | |
29980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29981 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29982 | ||
29983 | wxPyEndAllowThreads(__tstate); | |
29984 | if (PyErr_Occurred()) SWIG_fail; | |
29985 | } | |
29986 | { | |
412d302d | 29987 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29988 | } |
29989 | return resultobj; | |
29990 | fail: | |
29991 | return NULL; | |
29992 | } | |
29993 | ||
29994 | ||
29995 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29996 | PyObject *resultobj; | |
29997 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29998 | int arg2 ; | |
29999 | bool result; | |
30000 | PyObject * obj0 = 0 ; | |
30001 | PyObject * obj1 = 0 ; | |
30002 | char *kwnames[] = { | |
30003 | (char *) "self",(char *) "id", NULL | |
30004 | }; | |
30005 | ||
30006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; | |
30007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30009 | arg2 = (int) SWIG_AsInt(obj1); | |
30010 | if (PyErr_Occurred()) SWIG_fail; | |
30011 | { | |
30012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30013 | result = (bool)(arg1)->Delete(arg2); | |
30014 | ||
30015 | wxPyEndAllowThreads(__tstate); | |
30016 | if (PyErr_Occurred()) SWIG_fail; | |
30017 | } | |
30018 | { | |
30019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30020 | } | |
30021 | return resultobj; | |
30022 | fail: | |
30023 | return NULL; | |
30024 | } | |
30025 | ||
30026 | ||
30027 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30028 | PyObject *resultobj; | |
30029 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30030 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30031 | bool result; | |
30032 | PyObject * obj0 = 0 ; | |
30033 | PyObject * obj1 = 0 ; | |
30034 | char *kwnames[] = { | |
30035 | (char *) "self",(char *) "item", NULL | |
30036 | }; | |
30037 | ||
30038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
30039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30041 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30043 | { | |
30044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30045 | result = (bool)(arg1)->Delete(arg2); | |
30046 | ||
30047 | wxPyEndAllowThreads(__tstate); | |
30048 | if (PyErr_Occurred()) SWIG_fail; | |
30049 | } | |
30050 | { | |
30051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30052 | } | |
30053 | return resultobj; | |
30054 | fail: | |
30055 | return NULL; | |
30056 | } | |
30057 | ||
30058 | ||
30059 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30060 | PyObject *resultobj; | |
30061 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30062 | PyObject * obj0 = 0 ; | |
30063 | char *kwnames[] = { | |
30064 | (char *) "self", NULL | |
30065 | }; | |
30066 | ||
30067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
30068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30070 | { | |
30071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30072 | wxMenu_Destroy(arg1); | |
30073 | ||
30074 | wxPyEndAllowThreads(__tstate); | |
30075 | if (PyErr_Occurred()) SWIG_fail; | |
30076 | } | |
30077 | Py_INCREF(Py_None); resultobj = Py_None; | |
30078 | return resultobj; | |
30079 | fail: | |
30080 | return NULL; | |
30081 | } | |
30082 | ||
30083 | ||
30084 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30085 | PyObject *resultobj; | |
30086 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30087 | int arg2 ; | |
30088 | bool result; | |
30089 | PyObject * obj0 = 0 ; | |
30090 | PyObject * obj1 = 0 ; | |
30091 | char *kwnames[] = { | |
30092 | (char *) "self",(char *) "id", NULL | |
30093 | }; | |
30094 | ||
30095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; | |
30096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30098 | arg2 = (int) SWIG_AsInt(obj1); | |
30099 | if (PyErr_Occurred()) SWIG_fail; | |
30100 | { | |
30101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30102 | result = (bool)(arg1)->Destroy(arg2); | |
30103 | ||
30104 | wxPyEndAllowThreads(__tstate); | |
30105 | if (PyErr_Occurred()) SWIG_fail; | |
30106 | } | |
30107 | { | |
30108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30109 | } | |
30110 | return resultobj; | |
30111 | fail: | |
30112 | return NULL; | |
30113 | } | |
30114 | ||
30115 | ||
30116 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30117 | PyObject *resultobj; | |
30118 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30119 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30120 | bool result; | |
30121 | PyObject * obj0 = 0 ; | |
30122 | PyObject * obj1 = 0 ; | |
30123 | char *kwnames[] = { | |
30124 | (char *) "self",(char *) "item", NULL | |
30125 | }; | |
30126 | ||
30127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
30128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30130 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30132 | { | |
30133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30134 | result = (bool)(arg1)->Destroy(arg2); | |
30135 | ||
30136 | wxPyEndAllowThreads(__tstate); | |
30137 | if (PyErr_Occurred()) SWIG_fail; | |
30138 | } | |
30139 | { | |
30140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30141 | } | |
30142 | return resultobj; | |
30143 | fail: | |
30144 | return NULL; | |
30145 | } | |
30146 | ||
30147 | ||
30148 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30149 | PyObject *resultobj; | |
30150 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30151 | size_t result; | |
30152 | PyObject * obj0 = 0 ; | |
30153 | char *kwnames[] = { | |
30154 | (char *) "self", NULL | |
30155 | }; | |
30156 | ||
30157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
30158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30160 | { | |
30161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30162 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
30163 | ||
30164 | wxPyEndAllowThreads(__tstate); | |
30165 | if (PyErr_Occurred()) SWIG_fail; | |
30166 | } | |
30167 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
30168 | return resultobj; | |
30169 | fail: | |
30170 | return NULL; | |
30171 | } | |
30172 | ||
30173 | ||
30174 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30175 | PyObject *resultobj; | |
30176 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30177 | PyObject *result; | |
30178 | PyObject * obj0 = 0 ; | |
30179 | char *kwnames[] = { | |
30180 | (char *) "self", NULL | |
30181 | }; | |
30182 | ||
30183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
30184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30186 | { | |
30187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30188 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
30189 | ||
30190 | wxPyEndAllowThreads(__tstate); | |
30191 | if (PyErr_Occurred()) SWIG_fail; | |
30192 | } | |
30193 | resultobj = result; | |
30194 | return resultobj; | |
30195 | fail: | |
30196 | return NULL; | |
30197 | } | |
30198 | ||
30199 | ||
30200 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30201 | PyObject *resultobj; | |
30202 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30203 | wxString *arg2 = 0 ; | |
30204 | int result; | |
30205 | bool temp2 = False ; | |
30206 | PyObject * obj0 = 0 ; | |
30207 | PyObject * obj1 = 0 ; | |
30208 | char *kwnames[] = { | |
30209 | (char *) "self",(char *) "item", NULL | |
30210 | }; | |
30211 | ||
30212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
30213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30215 | { | |
30216 | arg2 = wxString_in_helper(obj1); | |
30217 | if (arg2 == NULL) SWIG_fail; | |
30218 | temp2 = True; | |
30219 | } | |
30220 | { | |
30221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30222 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
30223 | ||
30224 | wxPyEndAllowThreads(__tstate); | |
30225 | if (PyErr_Occurred()) SWIG_fail; | |
30226 | } | |
30227 | resultobj = SWIG_FromInt((int)result); | |
30228 | { | |
30229 | if (temp2) | |
30230 | delete arg2; | |
30231 | } | |
30232 | return resultobj; | |
30233 | fail: | |
30234 | { | |
30235 | if (temp2) | |
30236 | delete arg2; | |
30237 | } | |
30238 | return NULL; | |
30239 | } | |
30240 | ||
30241 | ||
30242 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30243 | PyObject *resultobj; | |
30244 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30245 | int arg2 ; | |
30246 | wxMenuItem *result; | |
30247 | PyObject * obj0 = 0 ; | |
30248 | PyObject * obj1 = 0 ; | |
30249 | char *kwnames[] = { | |
30250 | (char *) "self",(char *) "id", NULL | |
30251 | }; | |
30252 | ||
30253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
30254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30256 | arg2 = (int) SWIG_AsInt(obj1); | |
30257 | if (PyErr_Occurred()) SWIG_fail; | |
30258 | { | |
30259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30260 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
30261 | ||
30262 | wxPyEndAllowThreads(__tstate); | |
30263 | if (PyErr_Occurred()) SWIG_fail; | |
30264 | } | |
30265 | { | |
412d302d | 30266 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30267 | } |
30268 | return resultobj; | |
30269 | fail: | |
30270 | return NULL; | |
30271 | } | |
30272 | ||
30273 | ||
30274 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30275 | PyObject *resultobj; | |
30276 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30277 | size_t arg2 ; | |
30278 | wxMenuItem *result; | |
30279 | PyObject * obj0 = 0 ; | |
30280 | PyObject * obj1 = 0 ; | |
30281 | char *kwnames[] = { | |
30282 | (char *) "self",(char *) "position", NULL | |
30283 | }; | |
30284 | ||
30285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
30286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30288 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30289 | if (PyErr_Occurred()) SWIG_fail; | |
30290 | { | |
30291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30292 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
30293 | ||
30294 | wxPyEndAllowThreads(__tstate); | |
30295 | if (PyErr_Occurred()) SWIG_fail; | |
30296 | } | |
30297 | { | |
412d302d | 30298 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30299 | } |
30300 | return resultobj; | |
30301 | fail: | |
30302 | return NULL; | |
30303 | } | |
30304 | ||
30305 | ||
30306 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30307 | PyObject *resultobj; | |
30308 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30309 | int arg2 ; | |
30310 | bool arg3 ; | |
30311 | PyObject * obj0 = 0 ; | |
30312 | PyObject * obj1 = 0 ; | |
30313 | PyObject * obj2 = 0 ; | |
30314 | char *kwnames[] = { | |
30315 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
30316 | }; | |
30317 | ||
30318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30321 | arg2 = (int) SWIG_AsInt(obj1); | |
30322 | if (PyErr_Occurred()) SWIG_fail; | |
30323 | arg3 = (bool) SWIG_AsBool(obj2); | |
30324 | if (PyErr_Occurred()) SWIG_fail; | |
30325 | { | |
30326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30327 | (arg1)->Enable(arg2,arg3); | |
30328 | ||
30329 | wxPyEndAllowThreads(__tstate); | |
30330 | if (PyErr_Occurred()) SWIG_fail; | |
30331 | } | |
30332 | Py_INCREF(Py_None); resultobj = Py_None; | |
30333 | return resultobj; | |
30334 | fail: | |
30335 | return NULL; | |
30336 | } | |
30337 | ||
30338 | ||
30339 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30340 | PyObject *resultobj; | |
30341 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30342 | int arg2 ; | |
30343 | bool result; | |
30344 | PyObject * obj0 = 0 ; | |
30345 | PyObject * obj1 = 0 ; | |
30346 | char *kwnames[] = { | |
30347 | (char *) "self",(char *) "id", NULL | |
30348 | }; | |
30349 | ||
30350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
30351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30353 | arg2 = (int) SWIG_AsInt(obj1); | |
30354 | if (PyErr_Occurred()) SWIG_fail; | |
30355 | { | |
30356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30357 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
30358 | ||
30359 | wxPyEndAllowThreads(__tstate); | |
30360 | if (PyErr_Occurred()) SWIG_fail; | |
30361 | } | |
30362 | { | |
30363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30364 | } | |
30365 | return resultobj; | |
30366 | fail: | |
30367 | return NULL; | |
30368 | } | |
30369 | ||
30370 | ||
30371 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30372 | PyObject *resultobj; | |
30373 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30374 | int arg2 ; | |
30375 | bool arg3 ; | |
30376 | PyObject * obj0 = 0 ; | |
30377 | PyObject * obj1 = 0 ; | |
30378 | PyObject * obj2 = 0 ; | |
30379 | char *kwnames[] = { | |
30380 | (char *) "self",(char *) "id",(char *) "check", NULL | |
30381 | }; | |
30382 | ||
30383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30386 | arg2 = (int) SWIG_AsInt(obj1); | |
30387 | if (PyErr_Occurred()) SWIG_fail; | |
30388 | arg3 = (bool) SWIG_AsBool(obj2); | |
30389 | if (PyErr_Occurred()) SWIG_fail; | |
30390 | { | |
30391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30392 | (arg1)->Check(arg2,arg3); | |
30393 | ||
30394 | wxPyEndAllowThreads(__tstate); | |
30395 | if (PyErr_Occurred()) SWIG_fail; | |
30396 | } | |
30397 | Py_INCREF(Py_None); resultobj = Py_None; | |
30398 | return resultobj; | |
30399 | fail: | |
30400 | return NULL; | |
30401 | } | |
30402 | ||
30403 | ||
30404 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30405 | PyObject *resultobj; | |
30406 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30407 | int arg2 ; | |
30408 | bool result; | |
30409 | PyObject * obj0 = 0 ; | |
30410 | PyObject * obj1 = 0 ; | |
30411 | char *kwnames[] = { | |
30412 | (char *) "self",(char *) "id", NULL | |
30413 | }; | |
30414 | ||
30415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
30416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30418 | arg2 = (int) SWIG_AsInt(obj1); | |
30419 | if (PyErr_Occurred()) SWIG_fail; | |
30420 | { | |
30421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30422 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
30423 | ||
30424 | wxPyEndAllowThreads(__tstate); | |
30425 | if (PyErr_Occurred()) SWIG_fail; | |
30426 | } | |
30427 | { | |
30428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30429 | } | |
30430 | return resultobj; | |
30431 | fail: | |
30432 | return NULL; | |
30433 | } | |
30434 | ||
30435 | ||
30436 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30437 | PyObject *resultobj; | |
30438 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30439 | int arg2 ; | |
30440 | wxString *arg3 = 0 ; | |
30441 | bool temp3 = False ; | |
30442 | PyObject * obj0 = 0 ; | |
30443 | PyObject * obj1 = 0 ; | |
30444 | PyObject * obj2 = 0 ; | |
30445 | char *kwnames[] = { | |
30446 | (char *) "self",(char *) "id",(char *) "label", NULL | |
30447 | }; | |
30448 | ||
30449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30452 | arg2 = (int) SWIG_AsInt(obj1); | |
30453 | if (PyErr_Occurred()) SWIG_fail; | |
30454 | { | |
30455 | arg3 = wxString_in_helper(obj2); | |
30456 | if (arg3 == NULL) SWIG_fail; | |
30457 | temp3 = True; | |
30458 | } | |
30459 | { | |
30460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30461 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
30462 | ||
30463 | wxPyEndAllowThreads(__tstate); | |
30464 | if (PyErr_Occurred()) SWIG_fail; | |
30465 | } | |
30466 | Py_INCREF(Py_None); resultobj = Py_None; | |
30467 | { | |
30468 | if (temp3) | |
30469 | delete arg3; | |
30470 | } | |
30471 | return resultobj; | |
30472 | fail: | |
30473 | { | |
30474 | if (temp3) | |
30475 | delete arg3; | |
30476 | } | |
30477 | return NULL; | |
30478 | } | |
30479 | ||
30480 | ||
30481 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30482 | PyObject *resultobj; | |
30483 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30484 | int arg2 ; | |
30485 | wxString result; | |
30486 | PyObject * obj0 = 0 ; | |
30487 | PyObject * obj1 = 0 ; | |
30488 | char *kwnames[] = { | |
30489 | (char *) "self",(char *) "id", NULL | |
30490 | }; | |
30491 | ||
30492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
30493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30495 | arg2 = (int) SWIG_AsInt(obj1); | |
30496 | if (PyErr_Occurred()) SWIG_fail; | |
30497 | { | |
30498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30499 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
30500 | ||
30501 | wxPyEndAllowThreads(__tstate); | |
30502 | if (PyErr_Occurred()) SWIG_fail; | |
30503 | } | |
30504 | { | |
30505 | #if wxUSE_UNICODE | |
30506 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30507 | #else | |
30508 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30509 | #endif | |
30510 | } | |
30511 | return resultobj; | |
30512 | fail: | |
30513 | return NULL; | |
30514 | } | |
30515 | ||
30516 | ||
30517 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30518 | PyObject *resultobj; | |
30519 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30520 | int arg2 ; | |
30521 | wxString *arg3 = 0 ; | |
30522 | bool temp3 = False ; | |
30523 | PyObject * obj0 = 0 ; | |
30524 | PyObject * obj1 = 0 ; | |
30525 | PyObject * obj2 = 0 ; | |
30526 | char *kwnames[] = { | |
30527 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
30528 | }; | |
30529 | ||
30530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30533 | arg2 = (int) SWIG_AsInt(obj1); | |
30534 | if (PyErr_Occurred()) SWIG_fail; | |
30535 | { | |
30536 | arg3 = wxString_in_helper(obj2); | |
30537 | if (arg3 == NULL) SWIG_fail; | |
30538 | temp3 = True; | |
30539 | } | |
30540 | { | |
30541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30542 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
30543 | ||
30544 | wxPyEndAllowThreads(__tstate); | |
30545 | if (PyErr_Occurred()) SWIG_fail; | |
30546 | } | |
30547 | Py_INCREF(Py_None); resultobj = Py_None; | |
30548 | { | |
30549 | if (temp3) | |
30550 | delete arg3; | |
30551 | } | |
30552 | return resultobj; | |
30553 | fail: | |
30554 | { | |
30555 | if (temp3) | |
30556 | delete arg3; | |
30557 | } | |
30558 | return NULL; | |
30559 | } | |
30560 | ||
30561 | ||
30562 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30563 | PyObject *resultobj; | |
30564 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30565 | int arg2 ; | |
30566 | wxString result; | |
30567 | PyObject * obj0 = 0 ; | |
30568 | PyObject * obj1 = 0 ; | |
30569 | char *kwnames[] = { | |
30570 | (char *) "self",(char *) "id", NULL | |
30571 | }; | |
30572 | ||
30573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
30574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30576 | arg2 = (int) SWIG_AsInt(obj1); | |
30577 | if (PyErr_Occurred()) SWIG_fail; | |
30578 | { | |
30579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30580 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
30581 | ||
30582 | wxPyEndAllowThreads(__tstate); | |
30583 | if (PyErr_Occurred()) SWIG_fail; | |
30584 | } | |
30585 | { | |
30586 | #if wxUSE_UNICODE | |
30587 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30588 | #else | |
30589 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30590 | #endif | |
30591 | } | |
30592 | return resultobj; | |
30593 | fail: | |
30594 | return NULL; | |
30595 | } | |
30596 | ||
30597 | ||
30598 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30599 | PyObject *resultobj; | |
30600 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30601 | wxString *arg2 = 0 ; | |
30602 | bool temp2 = False ; | |
30603 | PyObject * obj0 = 0 ; | |
30604 | PyObject * obj1 = 0 ; | |
30605 | char *kwnames[] = { | |
30606 | (char *) "self",(char *) "title", NULL | |
30607 | }; | |
30608 | ||
30609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
30610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30612 | { | |
30613 | arg2 = wxString_in_helper(obj1); | |
30614 | if (arg2 == NULL) SWIG_fail; | |
30615 | temp2 = True; | |
30616 | } | |
30617 | { | |
30618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30619 | (arg1)->SetTitle((wxString const &)*arg2); | |
30620 | ||
30621 | wxPyEndAllowThreads(__tstate); | |
30622 | if (PyErr_Occurred()) SWIG_fail; | |
30623 | } | |
30624 | Py_INCREF(Py_None); resultobj = Py_None; | |
30625 | { | |
30626 | if (temp2) | |
30627 | delete arg2; | |
30628 | } | |
30629 | return resultobj; | |
30630 | fail: | |
30631 | { | |
30632 | if (temp2) | |
30633 | delete arg2; | |
30634 | } | |
30635 | return NULL; | |
30636 | } | |
30637 | ||
30638 | ||
30639 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30640 | PyObject *resultobj; | |
30641 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30642 | wxString result; | |
30643 | PyObject * obj0 = 0 ; | |
30644 | char *kwnames[] = { | |
30645 | (char *) "self", NULL | |
30646 | }; | |
30647 | ||
30648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
30649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30651 | { | |
30652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30653 | result = ((wxMenu const *)arg1)->GetTitle(); | |
30654 | ||
30655 | wxPyEndAllowThreads(__tstate); | |
30656 | if (PyErr_Occurred()) SWIG_fail; | |
30657 | } | |
30658 | { | |
30659 | #if wxUSE_UNICODE | |
30660 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30661 | #else | |
30662 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30663 | #endif | |
30664 | } | |
30665 | return resultobj; | |
30666 | fail: | |
30667 | return NULL; | |
30668 | } | |
30669 | ||
30670 | ||
30671 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30672 | PyObject *resultobj; | |
30673 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30674 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
30675 | PyObject * obj0 = 0 ; | |
30676 | PyObject * obj1 = 0 ; | |
30677 | char *kwnames[] = { | |
30678 | (char *) "self",(char *) "handler", NULL | |
30679 | }; | |
30680 | ||
30681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
30682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30684 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
30685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30686 | { | |
30687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30688 | (arg1)->SetEventHandler(arg2); | |
30689 | ||
30690 | wxPyEndAllowThreads(__tstate); | |
30691 | if (PyErr_Occurred()) SWIG_fail; | |
30692 | } | |
30693 | Py_INCREF(Py_None); resultobj = Py_None; | |
30694 | return resultobj; | |
30695 | fail: | |
30696 | return NULL; | |
30697 | } | |
30698 | ||
30699 | ||
30700 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30701 | PyObject *resultobj; | |
30702 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30703 | wxEvtHandler *result; | |
30704 | PyObject * obj0 = 0 ; | |
30705 | char *kwnames[] = { | |
30706 | (char *) "self", NULL | |
30707 | }; | |
30708 | ||
30709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
30710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30712 | { | |
30713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30714 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
30715 | ||
30716 | wxPyEndAllowThreads(__tstate); | |
30717 | if (PyErr_Occurred()) SWIG_fail; | |
30718 | } | |
30719 | { | |
412d302d | 30720 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30721 | } |
30722 | return resultobj; | |
30723 | fail: | |
30724 | return NULL; | |
30725 | } | |
30726 | ||
30727 | ||
30728 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30729 | PyObject *resultobj; | |
30730 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30731 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30732 | PyObject * obj0 = 0 ; | |
30733 | PyObject * obj1 = 0 ; | |
30734 | char *kwnames[] = { | |
30735 | (char *) "self",(char *) "win", NULL | |
30736 | }; | |
30737 | ||
30738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
30739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30741 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30743 | { | |
30744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30745 | (arg1)->SetInvokingWindow(arg2); | |
30746 | ||
30747 | wxPyEndAllowThreads(__tstate); | |
30748 | if (PyErr_Occurred()) SWIG_fail; | |
30749 | } | |
30750 | Py_INCREF(Py_None); resultobj = Py_None; | |
30751 | return resultobj; | |
30752 | fail: | |
30753 | return NULL; | |
30754 | } | |
30755 | ||
30756 | ||
30757 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30758 | PyObject *resultobj; | |
30759 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30760 | wxWindow *result; | |
30761 | PyObject * obj0 = 0 ; | |
30762 | char *kwnames[] = { | |
30763 | (char *) "self", NULL | |
30764 | }; | |
30765 | ||
30766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
30767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30769 | { | |
30770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30771 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
30772 | ||
30773 | wxPyEndAllowThreads(__tstate); | |
30774 | if (PyErr_Occurred()) SWIG_fail; | |
30775 | } | |
30776 | { | |
412d302d | 30777 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30778 | } |
30779 | return resultobj; | |
30780 | fail: | |
30781 | return NULL; | |
30782 | } | |
30783 | ||
30784 | ||
30785 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30786 | PyObject *resultobj; | |
30787 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30788 | long result; | |
30789 | PyObject * obj0 = 0 ; | |
30790 | char *kwnames[] = { | |
30791 | (char *) "self", NULL | |
30792 | }; | |
30793 | ||
30794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
30795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30797 | { | |
30798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30799 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
30800 | ||
30801 | wxPyEndAllowThreads(__tstate); | |
30802 | if (PyErr_Occurred()) SWIG_fail; | |
30803 | } | |
30804 | resultobj = SWIG_FromLong((long)result); | |
30805 | return resultobj; | |
30806 | fail: | |
30807 | return NULL; | |
30808 | } | |
30809 | ||
30810 | ||
30811 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30812 | PyObject *resultobj; | |
30813 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30814 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
30815 | PyObject * obj0 = 0 ; | |
30816 | PyObject * obj1 = 0 ; | |
30817 | char *kwnames[] = { | |
30818 | (char *) "self",(char *) "source", NULL | |
30819 | }; | |
30820 | ||
30821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
30822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30824 | if (obj1) { | |
30825 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
30826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30827 | } | |
30828 | { | |
30829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30830 | (arg1)->UpdateUI(arg2); | |
30831 | ||
30832 | wxPyEndAllowThreads(__tstate); | |
30833 | if (PyErr_Occurred()) SWIG_fail; | |
30834 | } | |
30835 | Py_INCREF(Py_None); resultobj = Py_None; | |
30836 | return resultobj; | |
30837 | fail: | |
30838 | return NULL; | |
30839 | } | |
30840 | ||
30841 | ||
30842 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30843 | PyObject *resultobj; | |
30844 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30845 | wxMenuBar *result; | |
30846 | PyObject * obj0 = 0 ; | |
30847 | char *kwnames[] = { | |
30848 | (char *) "self", NULL | |
30849 | }; | |
30850 | ||
30851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
30852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30854 | { | |
30855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30856 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
30857 | ||
30858 | wxPyEndAllowThreads(__tstate); | |
30859 | if (PyErr_Occurred()) SWIG_fail; | |
30860 | } | |
30861 | { | |
412d302d | 30862 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30863 | } |
30864 | return resultobj; | |
30865 | fail: | |
30866 | return NULL; | |
30867 | } | |
30868 | ||
30869 | ||
30870 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30871 | PyObject *resultobj; | |
30872 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30873 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
30874 | PyObject * obj0 = 0 ; | |
30875 | PyObject * obj1 = 0 ; | |
30876 | char *kwnames[] = { | |
30877 | (char *) "self",(char *) "menubar", NULL | |
30878 | }; | |
30879 | ||
30880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
30881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30883 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
30884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30885 | { | |
30886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30887 | (arg1)->Attach(arg2); | |
30888 | ||
30889 | wxPyEndAllowThreads(__tstate); | |
30890 | if (PyErr_Occurred()) SWIG_fail; | |
30891 | } | |
30892 | Py_INCREF(Py_None); resultobj = Py_None; | |
30893 | return resultobj; | |
30894 | fail: | |
30895 | return NULL; | |
30896 | } | |
30897 | ||
30898 | ||
30899 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30900 | PyObject *resultobj; | |
30901 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30902 | PyObject * obj0 = 0 ; | |
30903 | char *kwnames[] = { | |
30904 | (char *) "self", NULL | |
30905 | }; | |
30906 | ||
30907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
30908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30910 | { | |
30911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30912 | (arg1)->Detach(); | |
30913 | ||
30914 | wxPyEndAllowThreads(__tstate); | |
30915 | if (PyErr_Occurred()) SWIG_fail; | |
30916 | } | |
30917 | Py_INCREF(Py_None); resultobj = Py_None; | |
30918 | return resultobj; | |
30919 | fail: | |
30920 | return NULL; | |
30921 | } | |
30922 | ||
30923 | ||
30924 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30925 | PyObject *resultobj; | |
30926 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30927 | bool result; | |
30928 | PyObject * obj0 = 0 ; | |
30929 | char *kwnames[] = { | |
30930 | (char *) "self", NULL | |
30931 | }; | |
30932 | ||
30933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
30934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30936 | { | |
30937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30938 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
30939 | ||
30940 | wxPyEndAllowThreads(__tstate); | |
30941 | if (PyErr_Occurred()) SWIG_fail; | |
30942 | } | |
30943 | { | |
30944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30945 | } | |
30946 | return resultobj; | |
30947 | fail: | |
30948 | return NULL; | |
30949 | } | |
30950 | ||
30951 | ||
30952 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30953 | PyObject *resultobj; | |
30954 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30955 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30956 | PyObject * obj0 = 0 ; | |
30957 | PyObject * obj1 = 0 ; | |
30958 | char *kwnames[] = { | |
30959 | (char *) "self",(char *) "parent", NULL | |
30960 | }; | |
30961 | ||
30962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
30963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30965 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30967 | { | |
30968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30969 | (arg1)->SetParent(arg2); | |
30970 | ||
30971 | wxPyEndAllowThreads(__tstate); | |
30972 | if (PyErr_Occurred()) SWIG_fail; | |
30973 | } | |
30974 | Py_INCREF(Py_None); resultobj = Py_None; | |
30975 | return resultobj; | |
30976 | fail: | |
30977 | return NULL; | |
30978 | } | |
30979 | ||
30980 | ||
30981 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30982 | PyObject *resultobj; | |
30983 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30984 | wxMenu *result; | |
30985 | PyObject * obj0 = 0 ; | |
30986 | char *kwnames[] = { | |
30987 | (char *) "self", NULL | |
30988 | }; | |
30989 | ||
30990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
30991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30993 | { | |
30994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30995 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
30996 | ||
30997 | wxPyEndAllowThreads(__tstate); | |
30998 | if (PyErr_Occurred()) SWIG_fail; | |
30999 | } | |
31000 | { | |
412d302d | 31001 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31002 | } |
31003 | return resultobj; | |
31004 | fail: | |
31005 | return NULL; | |
31006 | } | |
31007 | ||
31008 | ||
31009 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
31010 | PyObject *obj; | |
31011 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31012 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
31013 | Py_INCREF(obj); | |
31014 | return Py_BuildValue((char *)""); | |
31015 | } | |
31016 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31017 | PyObject *resultobj; | |
31018 | long arg1 = (long) 0 ; | |
31019 | wxMenuBar *result; | |
31020 | PyObject * obj0 = 0 ; | |
31021 | char *kwnames[] = { | |
31022 | (char *) "style", NULL | |
31023 | }; | |
31024 | ||
31025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; | |
31026 | if (obj0) { | |
31027 | arg1 = (long) SWIG_AsLong(obj0); | |
31028 | if (PyErr_Occurred()) SWIG_fail; | |
31029 | } | |
31030 | { | |
0439c23b | 31031 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31033 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
31034 | ||
31035 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31036 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 31037 | } |
b0f7404b | 31038 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1); |
d55e5bfc RD |
31039 | return resultobj; |
31040 | fail: | |
31041 | return NULL; | |
31042 | } | |
31043 | ||
31044 | ||
31045 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31046 | PyObject *resultobj; | |
31047 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31048 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31049 | wxString *arg3 = 0 ; | |
31050 | bool result; | |
31051 | bool temp3 = False ; | |
31052 | PyObject * obj0 = 0 ; | |
31053 | PyObject * obj1 = 0 ; | |
31054 | PyObject * obj2 = 0 ; | |
31055 | char *kwnames[] = { | |
31056 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
31057 | }; | |
31058 | ||
31059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31062 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31064 | { | |
31065 | arg3 = wxString_in_helper(obj2); | |
31066 | if (arg3 == NULL) SWIG_fail; | |
31067 | temp3 = True; | |
31068 | } | |
31069 | { | |
31070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31071 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
31072 | ||
31073 | wxPyEndAllowThreads(__tstate); | |
31074 | if (PyErr_Occurred()) SWIG_fail; | |
31075 | } | |
31076 | { | |
31077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31078 | } | |
31079 | { | |
31080 | if (temp3) | |
31081 | delete arg3; | |
31082 | } | |
31083 | return resultobj; | |
31084 | fail: | |
31085 | { | |
31086 | if (temp3) | |
31087 | delete arg3; | |
31088 | } | |
31089 | return NULL; | |
31090 | } | |
31091 | ||
31092 | ||
31093 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31094 | PyObject *resultobj; | |
31095 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31096 | size_t arg2 ; | |
31097 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31098 | wxString *arg4 = 0 ; | |
31099 | bool result; | |
31100 | bool temp4 = False ; | |
31101 | PyObject * obj0 = 0 ; | |
31102 | PyObject * obj1 = 0 ; | |
31103 | PyObject * obj2 = 0 ; | |
31104 | PyObject * obj3 = 0 ; | |
31105 | char *kwnames[] = { | |
31106 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31107 | }; | |
31108 | ||
31109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31112 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31113 | if (PyErr_Occurred()) SWIG_fail; | |
31114 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31116 | { | |
31117 | arg4 = wxString_in_helper(obj3); | |
31118 | if (arg4 == NULL) SWIG_fail; | |
31119 | temp4 = True; | |
31120 | } | |
31121 | { | |
31122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31123 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
31124 | ||
31125 | wxPyEndAllowThreads(__tstate); | |
31126 | if (PyErr_Occurred()) SWIG_fail; | |
31127 | } | |
31128 | { | |
31129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31130 | } | |
31131 | { | |
31132 | if (temp4) | |
31133 | delete arg4; | |
31134 | } | |
31135 | return resultobj; | |
31136 | fail: | |
31137 | { | |
31138 | if (temp4) | |
31139 | delete arg4; | |
31140 | } | |
31141 | return NULL; | |
31142 | } | |
31143 | ||
31144 | ||
31145 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31146 | PyObject *resultobj; | |
31147 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31148 | size_t result; | |
31149 | PyObject * obj0 = 0 ; | |
31150 | char *kwnames[] = { | |
31151 | (char *) "self", NULL | |
31152 | }; | |
31153 | ||
31154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
31155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31157 | { | |
31158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31159 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
31160 | ||
31161 | wxPyEndAllowThreads(__tstate); | |
31162 | if (PyErr_Occurred()) SWIG_fail; | |
31163 | } | |
31164 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
31165 | return resultobj; | |
31166 | fail: | |
31167 | return NULL; | |
31168 | } | |
31169 | ||
31170 | ||
31171 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31172 | PyObject *resultobj; | |
31173 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31174 | size_t arg2 ; | |
31175 | wxMenu *result; | |
31176 | PyObject * obj0 = 0 ; | |
31177 | PyObject * obj1 = 0 ; | |
31178 | char *kwnames[] = { | |
31179 | (char *) "self",(char *) "pos", NULL | |
31180 | }; | |
31181 | ||
31182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
31183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31185 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31186 | if (PyErr_Occurred()) SWIG_fail; | |
31187 | { | |
31188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31189 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
31190 | ||
31191 | wxPyEndAllowThreads(__tstate); | |
31192 | if (PyErr_Occurred()) SWIG_fail; | |
31193 | } | |
31194 | { | |
412d302d | 31195 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31196 | } |
31197 | return resultobj; | |
31198 | fail: | |
31199 | return NULL; | |
31200 | } | |
31201 | ||
31202 | ||
31203 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31204 | PyObject *resultobj; | |
31205 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31206 | size_t arg2 ; | |
31207 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31208 | wxString *arg4 = 0 ; | |
31209 | wxMenu *result; | |
31210 | bool temp4 = False ; | |
31211 | PyObject * obj0 = 0 ; | |
31212 | PyObject * obj1 = 0 ; | |
31213 | PyObject * obj2 = 0 ; | |
31214 | PyObject * obj3 = 0 ; | |
31215 | char *kwnames[] = { | |
31216 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31217 | }; | |
31218 | ||
31219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31222 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31223 | if (PyErr_Occurred()) SWIG_fail; | |
31224 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31226 | { | |
31227 | arg4 = wxString_in_helper(obj3); | |
31228 | if (arg4 == NULL) SWIG_fail; | |
31229 | temp4 = True; | |
31230 | } | |
31231 | { | |
31232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31233 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
31234 | ||
31235 | wxPyEndAllowThreads(__tstate); | |
31236 | if (PyErr_Occurred()) SWIG_fail; | |
31237 | } | |
31238 | { | |
412d302d | 31239 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31240 | } |
31241 | { | |
31242 | if (temp4) | |
31243 | delete arg4; | |
31244 | } | |
31245 | return resultobj; | |
31246 | fail: | |
31247 | { | |
31248 | if (temp4) | |
31249 | delete arg4; | |
31250 | } | |
31251 | return NULL; | |
31252 | } | |
31253 | ||
31254 | ||
31255 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31256 | PyObject *resultobj; | |
31257 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31258 | size_t arg2 ; | |
31259 | wxMenu *result; | |
31260 | PyObject * obj0 = 0 ; | |
31261 | PyObject * obj1 = 0 ; | |
31262 | char *kwnames[] = { | |
31263 | (char *) "self",(char *) "pos", NULL | |
31264 | }; | |
31265 | ||
31266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
31267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31269 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31270 | if (PyErr_Occurred()) SWIG_fail; | |
31271 | { | |
31272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31273 | result = (wxMenu *)(arg1)->Remove(arg2); | |
31274 | ||
31275 | wxPyEndAllowThreads(__tstate); | |
31276 | if (PyErr_Occurred()) SWIG_fail; | |
31277 | } | |
31278 | { | |
412d302d | 31279 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31280 | } |
31281 | return resultobj; | |
31282 | fail: | |
31283 | return NULL; | |
31284 | } | |
31285 | ||
31286 | ||
31287 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31288 | PyObject *resultobj; | |
31289 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31290 | size_t arg2 ; | |
31291 | bool arg3 ; | |
31292 | PyObject * obj0 = 0 ; | |
31293 | PyObject * obj1 = 0 ; | |
31294 | PyObject * obj2 = 0 ; | |
31295 | char *kwnames[] = { | |
31296 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
31297 | }; | |
31298 | ||
31299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31302 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31303 | if (PyErr_Occurred()) SWIG_fail; | |
31304 | arg3 = (bool) SWIG_AsBool(obj2); | |
31305 | if (PyErr_Occurred()) SWIG_fail; | |
31306 | { | |
31307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31308 | (arg1)->EnableTop(arg2,arg3); | |
31309 | ||
31310 | wxPyEndAllowThreads(__tstate); | |
31311 | if (PyErr_Occurred()) SWIG_fail; | |
31312 | } | |
31313 | Py_INCREF(Py_None); resultobj = Py_None; | |
31314 | return resultobj; | |
31315 | fail: | |
31316 | return NULL; | |
31317 | } | |
31318 | ||
31319 | ||
31320 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31321 | PyObject *resultobj; | |
31322 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31323 | size_t arg2 ; | |
31324 | bool result; | |
31325 | PyObject * obj0 = 0 ; | |
31326 | PyObject * obj1 = 0 ; | |
31327 | char *kwnames[] = { | |
31328 | (char *) "self",(char *) "pos", NULL | |
31329 | }; | |
31330 | ||
31331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
31332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31334 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31335 | if (PyErr_Occurred()) SWIG_fail; | |
31336 | { | |
31337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31338 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
31339 | ||
31340 | wxPyEndAllowThreads(__tstate); | |
31341 | if (PyErr_Occurred()) SWIG_fail; | |
31342 | } | |
31343 | { | |
31344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31345 | } | |
31346 | return resultobj; | |
31347 | fail: | |
31348 | return NULL; | |
31349 | } | |
31350 | ||
31351 | ||
31352 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31353 | PyObject *resultobj; | |
31354 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31355 | size_t arg2 ; | |
31356 | wxString *arg3 = 0 ; | |
31357 | bool temp3 = False ; | |
31358 | PyObject * obj0 = 0 ; | |
31359 | PyObject * obj1 = 0 ; | |
31360 | PyObject * obj2 = 0 ; | |
31361 | char *kwnames[] = { | |
31362 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
31363 | }; | |
31364 | ||
31365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31368 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31369 | if (PyErr_Occurred()) SWIG_fail; | |
31370 | { | |
31371 | arg3 = wxString_in_helper(obj2); | |
31372 | if (arg3 == NULL) SWIG_fail; | |
31373 | temp3 = True; | |
31374 | } | |
31375 | { | |
31376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31377 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
31378 | ||
31379 | wxPyEndAllowThreads(__tstate); | |
31380 | if (PyErr_Occurred()) SWIG_fail; | |
31381 | } | |
31382 | Py_INCREF(Py_None); resultobj = Py_None; | |
31383 | { | |
31384 | if (temp3) | |
31385 | delete arg3; | |
31386 | } | |
31387 | return resultobj; | |
31388 | fail: | |
31389 | { | |
31390 | if (temp3) | |
31391 | delete arg3; | |
31392 | } | |
31393 | return NULL; | |
31394 | } | |
31395 | ||
31396 | ||
31397 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31398 | PyObject *resultobj; | |
31399 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31400 | size_t arg2 ; | |
31401 | wxString result; | |
31402 | PyObject * obj0 = 0 ; | |
31403 | PyObject * obj1 = 0 ; | |
31404 | char *kwnames[] = { | |
31405 | (char *) "self",(char *) "pos", NULL | |
31406 | }; | |
31407 | ||
31408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
31409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31411 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31412 | if (PyErr_Occurred()) SWIG_fail; | |
31413 | { | |
31414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31415 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
31416 | ||
31417 | wxPyEndAllowThreads(__tstate); | |
31418 | if (PyErr_Occurred()) SWIG_fail; | |
31419 | } | |
31420 | { | |
31421 | #if wxUSE_UNICODE | |
31422 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31423 | #else | |
31424 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31425 | #endif | |
31426 | } | |
31427 | return resultobj; | |
31428 | fail: | |
31429 | return NULL; | |
31430 | } | |
31431 | ||
31432 | ||
31433 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31434 | PyObject *resultobj; | |
31435 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31436 | wxString *arg2 = 0 ; | |
31437 | wxString *arg3 = 0 ; | |
31438 | int result; | |
31439 | bool temp2 = False ; | |
31440 | bool temp3 = False ; | |
31441 | PyObject * obj0 = 0 ; | |
31442 | PyObject * obj1 = 0 ; | |
31443 | PyObject * obj2 = 0 ; | |
31444 | char *kwnames[] = { | |
31445 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
31446 | }; | |
31447 | ||
31448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31451 | { | |
31452 | arg2 = wxString_in_helper(obj1); | |
31453 | if (arg2 == NULL) SWIG_fail; | |
31454 | temp2 = True; | |
31455 | } | |
31456 | { | |
31457 | arg3 = wxString_in_helper(obj2); | |
31458 | if (arg3 == NULL) SWIG_fail; | |
31459 | temp3 = True; | |
31460 | } | |
31461 | { | |
31462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31463 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
31464 | ||
31465 | wxPyEndAllowThreads(__tstate); | |
31466 | if (PyErr_Occurred()) SWIG_fail; | |
31467 | } | |
31468 | resultobj = SWIG_FromInt((int)result); | |
31469 | { | |
31470 | if (temp2) | |
31471 | delete arg2; | |
31472 | } | |
31473 | { | |
31474 | if (temp3) | |
31475 | delete arg3; | |
31476 | } | |
31477 | return resultobj; | |
31478 | fail: | |
31479 | { | |
31480 | if (temp2) | |
31481 | delete arg2; | |
31482 | } | |
31483 | { | |
31484 | if (temp3) | |
31485 | delete arg3; | |
31486 | } | |
31487 | return NULL; | |
31488 | } | |
31489 | ||
31490 | ||
31491 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31492 | PyObject *resultobj; | |
31493 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31494 | int arg2 ; | |
31495 | wxMenuItem *result; | |
31496 | PyObject * obj0 = 0 ; | |
31497 | PyObject * obj1 = 0 ; | |
31498 | char *kwnames[] = { | |
31499 | (char *) "self",(char *) "id", NULL | |
31500 | }; | |
31501 | ||
31502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
31503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31505 | arg2 = (int) SWIG_AsInt(obj1); | |
31506 | if (PyErr_Occurred()) SWIG_fail; | |
31507 | { | |
31508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31509 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
31510 | ||
31511 | wxPyEndAllowThreads(__tstate); | |
31512 | if (PyErr_Occurred()) SWIG_fail; | |
31513 | } | |
31514 | { | |
412d302d | 31515 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31516 | } |
31517 | return resultobj; | |
31518 | fail: | |
31519 | return NULL; | |
31520 | } | |
31521 | ||
31522 | ||
31523 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31524 | PyObject *resultobj; | |
31525 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31526 | wxString *arg2 = 0 ; | |
31527 | int result; | |
31528 | bool temp2 = False ; | |
31529 | PyObject * obj0 = 0 ; | |
31530 | PyObject * obj1 = 0 ; | |
31531 | char *kwnames[] = { | |
31532 | (char *) "self",(char *) "title", NULL | |
31533 | }; | |
31534 | ||
31535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
31536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31538 | { | |
31539 | arg2 = wxString_in_helper(obj1); | |
31540 | if (arg2 == NULL) SWIG_fail; | |
31541 | temp2 = True; | |
31542 | } | |
31543 | { | |
31544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31545 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
31546 | ||
31547 | wxPyEndAllowThreads(__tstate); | |
31548 | if (PyErr_Occurred()) SWIG_fail; | |
31549 | } | |
31550 | resultobj = SWIG_FromInt((int)result); | |
31551 | { | |
31552 | if (temp2) | |
31553 | delete arg2; | |
31554 | } | |
31555 | return resultobj; | |
31556 | fail: | |
31557 | { | |
31558 | if (temp2) | |
31559 | delete arg2; | |
31560 | } | |
31561 | return NULL; | |
31562 | } | |
31563 | ||
31564 | ||
31565 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31566 | PyObject *resultobj; | |
31567 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31568 | int arg2 ; | |
31569 | bool arg3 ; | |
31570 | PyObject * obj0 = 0 ; | |
31571 | PyObject * obj1 = 0 ; | |
31572 | PyObject * obj2 = 0 ; | |
31573 | char *kwnames[] = { | |
31574 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
31575 | }; | |
31576 | ||
31577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31580 | arg2 = (int) SWIG_AsInt(obj1); | |
31581 | if (PyErr_Occurred()) SWIG_fail; | |
31582 | arg3 = (bool) SWIG_AsBool(obj2); | |
31583 | if (PyErr_Occurred()) SWIG_fail; | |
31584 | { | |
31585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31586 | (arg1)->Enable(arg2,arg3); | |
31587 | ||
31588 | wxPyEndAllowThreads(__tstate); | |
31589 | if (PyErr_Occurred()) SWIG_fail; | |
31590 | } | |
31591 | Py_INCREF(Py_None); resultobj = Py_None; | |
31592 | return resultobj; | |
31593 | fail: | |
31594 | return NULL; | |
31595 | } | |
31596 | ||
31597 | ||
31598 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31599 | PyObject *resultobj; | |
31600 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31601 | int arg2 ; | |
31602 | bool arg3 ; | |
31603 | PyObject * obj0 = 0 ; | |
31604 | PyObject * obj1 = 0 ; | |
31605 | PyObject * obj2 = 0 ; | |
31606 | char *kwnames[] = { | |
31607 | (char *) "self",(char *) "id",(char *) "check", NULL | |
31608 | }; | |
31609 | ||
31610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31613 | arg2 = (int) SWIG_AsInt(obj1); | |
31614 | if (PyErr_Occurred()) SWIG_fail; | |
31615 | arg3 = (bool) SWIG_AsBool(obj2); | |
31616 | if (PyErr_Occurred()) SWIG_fail; | |
31617 | { | |
31618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31619 | (arg1)->Check(arg2,arg3); | |
31620 | ||
31621 | wxPyEndAllowThreads(__tstate); | |
31622 | if (PyErr_Occurred()) SWIG_fail; | |
31623 | } | |
31624 | Py_INCREF(Py_None); resultobj = Py_None; | |
31625 | return resultobj; | |
31626 | fail: | |
31627 | return NULL; | |
31628 | } | |
31629 | ||
31630 | ||
31631 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31632 | PyObject *resultobj; | |
31633 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31634 | int arg2 ; | |
31635 | bool result; | |
31636 | PyObject * obj0 = 0 ; | |
31637 | PyObject * obj1 = 0 ; | |
31638 | char *kwnames[] = { | |
31639 | (char *) "self",(char *) "id", NULL | |
31640 | }; | |
31641 | ||
31642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
31643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31645 | arg2 = (int) SWIG_AsInt(obj1); | |
31646 | if (PyErr_Occurred()) SWIG_fail; | |
31647 | { | |
31648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31649 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
31650 | ||
31651 | wxPyEndAllowThreads(__tstate); | |
31652 | if (PyErr_Occurred()) SWIG_fail; | |
31653 | } | |
31654 | { | |
31655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31656 | } | |
31657 | return resultobj; | |
31658 | fail: | |
31659 | return NULL; | |
31660 | } | |
31661 | ||
31662 | ||
31663 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31664 | PyObject *resultobj; | |
31665 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31666 | int arg2 ; | |
31667 | bool result; | |
31668 | PyObject * obj0 = 0 ; | |
31669 | PyObject * obj1 = 0 ; | |
31670 | char *kwnames[] = { | |
31671 | (char *) "self",(char *) "id", NULL | |
31672 | }; | |
31673 | ||
31674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
31675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31677 | arg2 = (int) SWIG_AsInt(obj1); | |
31678 | if (PyErr_Occurred()) SWIG_fail; | |
31679 | { | |
31680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31681 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
31682 | ||
31683 | wxPyEndAllowThreads(__tstate); | |
31684 | if (PyErr_Occurred()) SWIG_fail; | |
31685 | } | |
31686 | { | |
31687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31688 | } | |
31689 | return resultobj; | |
31690 | fail: | |
31691 | return NULL; | |
31692 | } | |
31693 | ||
31694 | ||
31695 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31696 | PyObject *resultobj; | |
31697 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31698 | int arg2 ; | |
31699 | wxString *arg3 = 0 ; | |
31700 | bool temp3 = False ; | |
31701 | PyObject * obj0 = 0 ; | |
31702 | PyObject * obj1 = 0 ; | |
31703 | PyObject * obj2 = 0 ; | |
31704 | char *kwnames[] = { | |
31705 | (char *) "self",(char *) "id",(char *) "label", NULL | |
31706 | }; | |
31707 | ||
31708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31711 | arg2 = (int) SWIG_AsInt(obj1); | |
31712 | if (PyErr_Occurred()) SWIG_fail; | |
31713 | { | |
31714 | arg3 = wxString_in_helper(obj2); | |
31715 | if (arg3 == NULL) SWIG_fail; | |
31716 | temp3 = True; | |
31717 | } | |
31718 | { | |
31719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31720 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31721 | ||
31722 | wxPyEndAllowThreads(__tstate); | |
31723 | if (PyErr_Occurred()) SWIG_fail; | |
31724 | } | |
31725 | Py_INCREF(Py_None); resultobj = Py_None; | |
31726 | { | |
31727 | if (temp3) | |
31728 | delete arg3; | |
31729 | } | |
31730 | return resultobj; | |
31731 | fail: | |
31732 | { | |
31733 | if (temp3) | |
31734 | delete arg3; | |
31735 | } | |
31736 | return NULL; | |
31737 | } | |
31738 | ||
31739 | ||
31740 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31741 | PyObject *resultobj; | |
31742 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31743 | int arg2 ; | |
31744 | wxString result; | |
31745 | PyObject * obj0 = 0 ; | |
31746 | PyObject * obj1 = 0 ; | |
31747 | char *kwnames[] = { | |
31748 | (char *) "self",(char *) "id", NULL | |
31749 | }; | |
31750 | ||
31751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31754 | arg2 = (int) SWIG_AsInt(obj1); | |
31755 | if (PyErr_Occurred()) SWIG_fail; | |
31756 | { | |
31757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31758 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
31759 | ||
31760 | wxPyEndAllowThreads(__tstate); | |
31761 | if (PyErr_Occurred()) SWIG_fail; | |
31762 | } | |
31763 | { | |
31764 | #if wxUSE_UNICODE | |
31765 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31766 | #else | |
31767 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31768 | #endif | |
31769 | } | |
31770 | return resultobj; | |
31771 | fail: | |
31772 | return NULL; | |
31773 | } | |
31774 | ||
31775 | ||
31776 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31777 | PyObject *resultobj; | |
31778 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31779 | int arg2 ; | |
31780 | wxString *arg3 = 0 ; | |
31781 | bool temp3 = False ; | |
31782 | PyObject * obj0 = 0 ; | |
31783 | PyObject * obj1 = 0 ; | |
31784 | PyObject * obj2 = 0 ; | |
31785 | char *kwnames[] = { | |
31786 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
31787 | }; | |
31788 | ||
31789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31792 | arg2 = (int) SWIG_AsInt(obj1); | |
31793 | if (PyErr_Occurred()) SWIG_fail; | |
31794 | { | |
31795 | arg3 = wxString_in_helper(obj2); | |
31796 | if (arg3 == NULL) SWIG_fail; | |
31797 | temp3 = True; | |
31798 | } | |
31799 | { | |
31800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31801 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31802 | ||
31803 | wxPyEndAllowThreads(__tstate); | |
31804 | if (PyErr_Occurred()) SWIG_fail; | |
31805 | } | |
31806 | Py_INCREF(Py_None); resultobj = Py_None; | |
31807 | { | |
31808 | if (temp3) | |
31809 | delete arg3; | |
31810 | } | |
31811 | return resultobj; | |
31812 | fail: | |
31813 | { | |
31814 | if (temp3) | |
31815 | delete arg3; | |
31816 | } | |
31817 | return NULL; | |
31818 | } | |
31819 | ||
31820 | ||
31821 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31822 | PyObject *resultobj; | |
31823 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31824 | int arg2 ; | |
31825 | wxString result; | |
31826 | PyObject * obj0 = 0 ; | |
31827 | PyObject * obj1 = 0 ; | |
31828 | char *kwnames[] = { | |
31829 | (char *) "self",(char *) "id", NULL | |
31830 | }; | |
31831 | ||
31832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
31833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31835 | arg2 = (int) SWIG_AsInt(obj1); | |
31836 | if (PyErr_Occurred()) SWIG_fail; | |
31837 | { | |
31838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31839 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
31840 | ||
31841 | wxPyEndAllowThreads(__tstate); | |
31842 | if (PyErr_Occurred()) SWIG_fail; | |
31843 | } | |
31844 | { | |
31845 | #if wxUSE_UNICODE | |
31846 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31847 | #else | |
31848 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31849 | #endif | |
31850 | } | |
31851 | return resultobj; | |
31852 | fail: | |
31853 | return NULL; | |
31854 | } | |
31855 | ||
31856 | ||
31857 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31858 | PyObject *resultobj; | |
31859 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31860 | wxFrame *result; | |
31861 | PyObject * obj0 = 0 ; | |
31862 | char *kwnames[] = { | |
31863 | (char *) "self", NULL | |
31864 | }; | |
31865 | ||
31866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
31867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31869 | { | |
31870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31871 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
31872 | ||
31873 | wxPyEndAllowThreads(__tstate); | |
31874 | if (PyErr_Occurred()) SWIG_fail; | |
31875 | } | |
31876 | { | |
412d302d | 31877 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31878 | } |
31879 | return resultobj; | |
31880 | fail: | |
31881 | return NULL; | |
31882 | } | |
31883 | ||
31884 | ||
31885 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31886 | PyObject *resultobj; | |
31887 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31888 | bool result; | |
31889 | PyObject * obj0 = 0 ; | |
31890 | char *kwnames[] = { | |
31891 | (char *) "self", NULL | |
31892 | }; | |
31893 | ||
31894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
31895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31897 | { | |
31898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31899 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
31900 | ||
31901 | wxPyEndAllowThreads(__tstate); | |
31902 | if (PyErr_Occurred()) SWIG_fail; | |
31903 | } | |
31904 | { | |
31905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31906 | } | |
31907 | return resultobj; | |
31908 | fail: | |
31909 | return NULL; | |
31910 | } | |
31911 | ||
31912 | ||
31913 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31914 | PyObject *resultobj; | |
31915 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31916 | wxFrame *arg2 = (wxFrame *) 0 ; | |
31917 | PyObject * obj0 = 0 ; | |
31918 | PyObject * obj1 = 0 ; | |
31919 | char *kwnames[] = { | |
31920 | (char *) "self",(char *) "frame", NULL | |
31921 | }; | |
31922 | ||
31923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
31924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31926 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
31927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31928 | { | |
31929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31930 | (arg1)->Attach(arg2); | |
31931 | ||
31932 | wxPyEndAllowThreads(__tstate); | |
31933 | if (PyErr_Occurred()) SWIG_fail; | |
31934 | } | |
31935 | Py_INCREF(Py_None); resultobj = Py_None; | |
31936 | return resultobj; | |
31937 | fail: | |
31938 | return NULL; | |
31939 | } | |
31940 | ||
31941 | ||
31942 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31943 | PyObject *resultobj; | |
31944 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31945 | PyObject * obj0 = 0 ; | |
31946 | char *kwnames[] = { | |
31947 | (char *) "self", NULL | |
31948 | }; | |
31949 | ||
31950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
31951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31953 | { | |
31954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31955 | (arg1)->Detach(); | |
31956 | ||
31957 | wxPyEndAllowThreads(__tstate); | |
31958 | if (PyErr_Occurred()) SWIG_fail; | |
31959 | } | |
31960 | Py_INCREF(Py_None); resultobj = Py_None; | |
31961 | return resultobj; | |
31962 | fail: | |
31963 | return NULL; | |
31964 | } | |
31965 | ||
31966 | ||
31967 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
31968 | PyObject *obj; | |
31969 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31970 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
31971 | Py_INCREF(obj); | |
31972 | return Py_BuildValue((char *)""); | |
31973 | } | |
31974 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31975 | PyObject *resultobj; | |
31976 | wxMenu *arg1 = (wxMenu *) NULL ; | |
31977 | int arg2 = (int) wxID_ANY ; | |
31978 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
31979 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
31980 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
31981 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31982 | int arg5 = (int) wxITEM_NORMAL ; | |
31983 | wxMenu *arg6 = (wxMenu *) NULL ; | |
31984 | wxMenuItem *result; | |
31985 | bool temp3 = False ; | |
31986 | bool temp4 = False ; | |
31987 | PyObject * obj0 = 0 ; | |
31988 | PyObject * obj1 = 0 ; | |
31989 | PyObject * obj2 = 0 ; | |
31990 | PyObject * obj3 = 0 ; | |
31991 | PyObject * obj4 = 0 ; | |
31992 | PyObject * obj5 = 0 ; | |
31993 | char *kwnames[] = { | |
31994 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
31995 | }; | |
31996 | ||
31997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
31998 | if (obj0) { | |
31999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
32000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32001 | } | |
32002 | if (obj1) { | |
32003 | arg2 = (int) SWIG_AsInt(obj1); | |
32004 | if (PyErr_Occurred()) SWIG_fail; | |
32005 | } | |
32006 | if (obj2) { | |
32007 | { | |
32008 | arg3 = wxString_in_helper(obj2); | |
32009 | if (arg3 == NULL) SWIG_fail; | |
32010 | temp3 = True; | |
32011 | } | |
32012 | } | |
32013 | if (obj3) { | |
32014 | { | |
32015 | arg4 = wxString_in_helper(obj3); | |
32016 | if (arg4 == NULL) SWIG_fail; | |
32017 | temp4 = True; | |
32018 | } | |
32019 | } | |
32020 | if (obj4) { | |
32021 | arg5 = (wxItemKind) SWIG_AsInt(obj4); | |
32022 | if (PyErr_Occurred()) SWIG_fail; | |
32023 | } | |
32024 | if (obj5) { | |
32025 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, | |
32026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32027 | } | |
32028 | { | |
32029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32030 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
32031 | ||
32032 | wxPyEndAllowThreads(__tstate); | |
32033 | if (PyErr_Occurred()) SWIG_fail; | |
32034 | } | |
32035 | { | |
412d302d | 32036 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
32037 | } |
32038 | { | |
32039 | if (temp3) | |
32040 | delete arg3; | |
32041 | } | |
32042 | { | |
32043 | if (temp4) | |
32044 | delete arg4; | |
32045 | } | |
32046 | return resultobj; | |
32047 | fail: | |
32048 | { | |
32049 | if (temp3) | |
32050 | delete arg3; | |
32051 | } | |
32052 | { | |
32053 | if (temp4) | |
32054 | delete arg4; | |
32055 | } | |
32056 | return NULL; | |
32057 | } | |
32058 | ||
32059 | ||
32060 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32061 | PyObject *resultobj; | |
32062 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32063 | wxMenu *result; | |
32064 | PyObject * obj0 = 0 ; | |
32065 | char *kwnames[] = { | |
32066 | (char *) "self", NULL | |
32067 | }; | |
32068 | ||
32069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
32070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32072 | { | |
32073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32074 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
32075 | ||
32076 | wxPyEndAllowThreads(__tstate); | |
32077 | if (PyErr_Occurred()) SWIG_fail; | |
32078 | } | |
32079 | { | |
412d302d | 32080 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32081 | } |
32082 | return resultobj; | |
32083 | fail: | |
32084 | return NULL; | |
32085 | } | |
32086 | ||
32087 | ||
32088 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32089 | PyObject *resultobj; | |
32090 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32091 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32092 | PyObject * obj0 = 0 ; | |
32093 | PyObject * obj1 = 0 ; | |
32094 | char *kwnames[] = { | |
32095 | (char *) "self",(char *) "menu", NULL | |
32096 | }; | |
32097 | ||
32098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
32099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32101 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32103 | { | |
32104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32105 | (arg1)->SetMenu(arg2); | |
32106 | ||
32107 | wxPyEndAllowThreads(__tstate); | |
32108 | if (PyErr_Occurred()) SWIG_fail; | |
32109 | } | |
32110 | Py_INCREF(Py_None); resultobj = Py_None; | |
32111 | return resultobj; | |
32112 | fail: | |
32113 | return NULL; | |
32114 | } | |
32115 | ||
32116 | ||
32117 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32118 | PyObject *resultobj; | |
32119 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32120 | int arg2 ; | |
32121 | PyObject * obj0 = 0 ; | |
32122 | PyObject * obj1 = 0 ; | |
32123 | char *kwnames[] = { | |
32124 | (char *) "self",(char *) "id", NULL | |
32125 | }; | |
32126 | ||
32127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
32128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32130 | arg2 = (int) SWIG_AsInt(obj1); | |
32131 | if (PyErr_Occurred()) SWIG_fail; | |
32132 | { | |
32133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32134 | (arg1)->SetId(arg2); | |
32135 | ||
32136 | wxPyEndAllowThreads(__tstate); | |
32137 | if (PyErr_Occurred()) SWIG_fail; | |
32138 | } | |
32139 | Py_INCREF(Py_None); resultobj = Py_None; | |
32140 | return resultobj; | |
32141 | fail: | |
32142 | return NULL; | |
32143 | } | |
32144 | ||
32145 | ||
32146 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32147 | PyObject *resultobj; | |
32148 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32149 | int result; | |
32150 | PyObject * obj0 = 0 ; | |
32151 | char *kwnames[] = { | |
32152 | (char *) "self", NULL | |
32153 | }; | |
32154 | ||
32155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
32156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32158 | { | |
32159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32160 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
32161 | ||
32162 | wxPyEndAllowThreads(__tstate); | |
32163 | if (PyErr_Occurred()) SWIG_fail; | |
32164 | } | |
32165 | resultobj = SWIG_FromInt((int)result); | |
32166 | return resultobj; | |
32167 | fail: | |
32168 | return NULL; | |
32169 | } | |
32170 | ||
32171 | ||
32172 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32173 | PyObject *resultobj; | |
32174 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32175 | bool result; | |
32176 | PyObject * obj0 = 0 ; | |
32177 | char *kwnames[] = { | |
32178 | (char *) "self", NULL | |
32179 | }; | |
32180 | ||
32181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
32182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32184 | { | |
32185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32186 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
32187 | ||
32188 | wxPyEndAllowThreads(__tstate); | |
32189 | if (PyErr_Occurred()) SWIG_fail; | |
32190 | } | |
32191 | { | |
32192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32193 | } | |
32194 | return resultobj; | |
32195 | fail: | |
32196 | return NULL; | |
32197 | } | |
32198 | ||
32199 | ||
32200 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32201 | PyObject *resultobj; | |
32202 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32203 | wxString *arg2 = 0 ; | |
32204 | bool temp2 = False ; | |
32205 | PyObject * obj0 = 0 ; | |
32206 | PyObject * obj1 = 0 ; | |
32207 | char *kwnames[] = { | |
32208 | (char *) "self",(char *) "str", NULL | |
32209 | }; | |
32210 | ||
32211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
32212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32214 | { | |
32215 | arg2 = wxString_in_helper(obj1); | |
32216 | if (arg2 == NULL) SWIG_fail; | |
32217 | temp2 = True; | |
32218 | } | |
32219 | { | |
32220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32221 | (arg1)->SetText((wxString const &)*arg2); | |
32222 | ||
32223 | wxPyEndAllowThreads(__tstate); | |
32224 | if (PyErr_Occurred()) SWIG_fail; | |
32225 | } | |
32226 | Py_INCREF(Py_None); resultobj = Py_None; | |
32227 | { | |
32228 | if (temp2) | |
32229 | delete arg2; | |
32230 | } | |
32231 | return resultobj; | |
32232 | fail: | |
32233 | { | |
32234 | if (temp2) | |
32235 | delete arg2; | |
32236 | } | |
32237 | return NULL; | |
32238 | } | |
32239 | ||
32240 | ||
32241 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32242 | PyObject *resultobj; | |
32243 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32244 | wxString result; | |
32245 | PyObject * obj0 = 0 ; | |
32246 | char *kwnames[] = { | |
32247 | (char *) "self", NULL | |
32248 | }; | |
32249 | ||
32250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
32251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32253 | { | |
32254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32255 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
32256 | ||
32257 | wxPyEndAllowThreads(__tstate); | |
32258 | if (PyErr_Occurred()) SWIG_fail; | |
32259 | } | |
32260 | { | |
32261 | #if wxUSE_UNICODE | |
32262 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32263 | #else | |
32264 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32265 | #endif | |
32266 | } | |
32267 | return resultobj; | |
32268 | fail: | |
32269 | return NULL; | |
32270 | } | |
32271 | ||
32272 | ||
32273 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32274 | PyObject *resultobj; | |
32275 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32276 | wxString *result; | |
32277 | PyObject * obj0 = 0 ; | |
32278 | char *kwnames[] = { | |
32279 | (char *) "self", NULL | |
32280 | }; | |
32281 | ||
32282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
32283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32285 | { | |
32286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32287 | { | |
32288 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
32289 | result = (wxString *) &_result_ref; | |
32290 | } | |
32291 | ||
32292 | wxPyEndAllowThreads(__tstate); | |
32293 | if (PyErr_Occurred()) SWIG_fail; | |
32294 | } | |
32295 | { | |
32296 | #if wxUSE_UNICODE | |
32297 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32298 | #else | |
32299 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32300 | #endif | |
32301 | } | |
32302 | return resultobj; | |
32303 | fail: | |
32304 | return NULL; | |
32305 | } | |
32306 | ||
32307 | ||
32308 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32309 | PyObject *resultobj; | |
32310 | wxString *arg1 = 0 ; | |
32311 | wxString result; | |
32312 | bool temp1 = False ; | |
32313 | PyObject * obj0 = 0 ; | |
32314 | char *kwnames[] = { | |
32315 | (char *) "text", NULL | |
32316 | }; | |
32317 | ||
32318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
32319 | { | |
32320 | arg1 = wxString_in_helper(obj0); | |
32321 | if (arg1 == NULL) SWIG_fail; | |
32322 | temp1 = True; | |
32323 | } | |
32324 | { | |
32325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32326 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
32327 | ||
32328 | wxPyEndAllowThreads(__tstate); | |
32329 | if (PyErr_Occurred()) SWIG_fail; | |
32330 | } | |
32331 | { | |
32332 | #if wxUSE_UNICODE | |
32333 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32334 | #else | |
32335 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32336 | #endif | |
32337 | } | |
32338 | { | |
32339 | if (temp1) | |
32340 | delete arg1; | |
32341 | } | |
32342 | return resultobj; | |
32343 | fail: | |
32344 | { | |
32345 | if (temp1) | |
32346 | delete arg1; | |
32347 | } | |
32348 | return NULL; | |
32349 | } | |
32350 | ||
32351 | ||
32352 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32353 | PyObject *resultobj; | |
32354 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32355 | int result; | |
32356 | PyObject * obj0 = 0 ; | |
32357 | char *kwnames[] = { | |
32358 | (char *) "self", NULL | |
32359 | }; | |
32360 | ||
32361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
32362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32364 | { | |
32365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32366 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
32367 | ||
32368 | wxPyEndAllowThreads(__tstate); | |
32369 | if (PyErr_Occurred()) SWIG_fail; | |
32370 | } | |
32371 | resultobj = SWIG_FromInt((int)result); | |
32372 | return resultobj; | |
32373 | fail: | |
32374 | return NULL; | |
32375 | } | |
32376 | ||
32377 | ||
32378 | static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32379 | PyObject *resultobj; | |
32380 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32381 | int arg2 ; | |
32382 | PyObject * obj0 = 0 ; | |
32383 | PyObject * obj1 = 0 ; | |
32384 | char *kwnames[] = { | |
32385 | (char *) "self",(char *) "kind", NULL | |
32386 | }; | |
32387 | ||
32388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
32389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32391 | arg2 = (wxItemKind) SWIG_AsInt(obj1); | |
32392 | if (PyErr_Occurred()) SWIG_fail; | |
32393 | { | |
32394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32395 | (arg1)->SetKind((wxItemKind )arg2); | |
32396 | ||
32397 | wxPyEndAllowThreads(__tstate); | |
32398 | if (PyErr_Occurred()) SWIG_fail; | |
32399 | } | |
32400 | Py_INCREF(Py_None); resultobj = Py_None; | |
32401 | return resultobj; | |
32402 | fail: | |
32403 | return NULL; | |
32404 | } | |
32405 | ||
32406 | ||
32407 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32408 | PyObject *resultobj; | |
32409 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32410 | bool arg2 ; | |
32411 | PyObject * obj0 = 0 ; | |
32412 | PyObject * obj1 = 0 ; | |
32413 | char *kwnames[] = { | |
32414 | (char *) "self",(char *) "checkable", NULL | |
32415 | }; | |
32416 | ||
32417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
32418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32420 | arg2 = (bool) SWIG_AsBool(obj1); | |
32421 | if (PyErr_Occurred()) SWIG_fail; | |
32422 | { | |
32423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32424 | (arg1)->SetCheckable(arg2); | |
32425 | ||
32426 | wxPyEndAllowThreads(__tstate); | |
32427 | if (PyErr_Occurred()) SWIG_fail; | |
32428 | } | |
32429 | Py_INCREF(Py_None); resultobj = Py_None; | |
32430 | return resultobj; | |
32431 | fail: | |
32432 | return NULL; | |
32433 | } | |
32434 | ||
32435 | ||
32436 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32437 | PyObject *resultobj; | |
32438 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32439 | bool result; | |
32440 | PyObject * obj0 = 0 ; | |
32441 | char *kwnames[] = { | |
32442 | (char *) "self", NULL | |
32443 | }; | |
32444 | ||
32445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
32446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32448 | { | |
32449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32450 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
32451 | ||
32452 | wxPyEndAllowThreads(__tstate); | |
32453 | if (PyErr_Occurred()) SWIG_fail; | |
32454 | } | |
32455 | { | |
32456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32457 | } | |
32458 | return resultobj; | |
32459 | fail: | |
32460 | return NULL; | |
32461 | } | |
32462 | ||
32463 | ||
32464 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32465 | PyObject *resultobj; | |
32466 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32467 | bool result; | |
32468 | PyObject * obj0 = 0 ; | |
32469 | char *kwnames[] = { | |
32470 | (char *) "self", NULL | |
32471 | }; | |
32472 | ||
32473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
32474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32476 | { | |
32477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32478 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
32479 | ||
32480 | wxPyEndAllowThreads(__tstate); | |
32481 | if (PyErr_Occurred()) SWIG_fail; | |
32482 | } | |
32483 | { | |
32484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32485 | } | |
32486 | return resultobj; | |
32487 | fail: | |
32488 | return NULL; | |
32489 | } | |
32490 | ||
32491 | ||
32492 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32493 | PyObject *resultobj; | |
32494 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32495 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32496 | PyObject * obj0 = 0 ; | |
32497 | PyObject * obj1 = 0 ; | |
32498 | char *kwnames[] = { | |
32499 | (char *) "self",(char *) "menu", NULL | |
32500 | }; | |
32501 | ||
32502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
32503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32505 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32507 | { | |
32508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32509 | (arg1)->SetSubMenu(arg2); | |
32510 | ||
32511 | wxPyEndAllowThreads(__tstate); | |
32512 | if (PyErr_Occurred()) SWIG_fail; | |
32513 | } | |
32514 | Py_INCREF(Py_None); resultobj = Py_None; | |
32515 | return resultobj; | |
32516 | fail: | |
32517 | return NULL; | |
32518 | } | |
32519 | ||
32520 | ||
32521 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32522 | PyObject *resultobj; | |
32523 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32524 | wxMenu *result; | |
32525 | PyObject * obj0 = 0 ; | |
32526 | char *kwnames[] = { | |
32527 | (char *) "self", NULL | |
32528 | }; | |
32529 | ||
32530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
32531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32533 | { | |
32534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32535 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
32536 | ||
32537 | wxPyEndAllowThreads(__tstate); | |
32538 | if (PyErr_Occurred()) SWIG_fail; | |
32539 | } | |
32540 | { | |
412d302d | 32541 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32542 | } |
32543 | return resultobj; | |
32544 | fail: | |
32545 | return NULL; | |
32546 | } | |
32547 | ||
32548 | ||
32549 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32550 | PyObject *resultobj; | |
32551 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32552 | bool arg2 = (bool) True ; | |
32553 | PyObject * obj0 = 0 ; | |
32554 | PyObject * obj1 = 0 ; | |
32555 | char *kwnames[] = { | |
32556 | (char *) "self",(char *) "enable", NULL | |
32557 | }; | |
32558 | ||
32559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
32560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32562 | if (obj1) { | |
32563 | arg2 = (bool) SWIG_AsBool(obj1); | |
32564 | if (PyErr_Occurred()) SWIG_fail; | |
32565 | } | |
32566 | { | |
32567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32568 | (arg1)->Enable(arg2); | |
32569 | ||
32570 | wxPyEndAllowThreads(__tstate); | |
32571 | if (PyErr_Occurred()) SWIG_fail; | |
32572 | } | |
32573 | Py_INCREF(Py_None); resultobj = Py_None; | |
32574 | return resultobj; | |
32575 | fail: | |
32576 | return NULL; | |
32577 | } | |
32578 | ||
32579 | ||
32580 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32581 | PyObject *resultobj; | |
32582 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32583 | bool result; | |
32584 | PyObject * obj0 = 0 ; | |
32585 | char *kwnames[] = { | |
32586 | (char *) "self", NULL | |
32587 | }; | |
32588 | ||
32589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
32590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32592 | { | |
32593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32594 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
32595 | ||
32596 | wxPyEndAllowThreads(__tstate); | |
32597 | if (PyErr_Occurred()) SWIG_fail; | |
32598 | } | |
32599 | { | |
32600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32601 | } | |
32602 | return resultobj; | |
32603 | fail: | |
32604 | return NULL; | |
32605 | } | |
32606 | ||
32607 | ||
32608 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32609 | PyObject *resultobj; | |
32610 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32611 | bool arg2 = (bool) True ; | |
32612 | PyObject * obj0 = 0 ; | |
32613 | PyObject * obj1 = 0 ; | |
32614 | char *kwnames[] = { | |
32615 | (char *) "self",(char *) "check", NULL | |
32616 | }; | |
32617 | ||
32618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
32619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32621 | if (obj1) { | |
32622 | arg2 = (bool) SWIG_AsBool(obj1); | |
32623 | if (PyErr_Occurred()) SWIG_fail; | |
32624 | } | |
32625 | { | |
32626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32627 | (arg1)->Check(arg2); | |
32628 | ||
32629 | wxPyEndAllowThreads(__tstate); | |
32630 | if (PyErr_Occurred()) SWIG_fail; | |
32631 | } | |
32632 | Py_INCREF(Py_None); resultobj = Py_None; | |
32633 | return resultobj; | |
32634 | fail: | |
32635 | return NULL; | |
32636 | } | |
32637 | ||
32638 | ||
32639 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32640 | PyObject *resultobj; | |
32641 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32642 | bool result; | |
32643 | PyObject * obj0 = 0 ; | |
32644 | char *kwnames[] = { | |
32645 | (char *) "self", NULL | |
32646 | }; | |
32647 | ||
32648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
32649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32651 | { | |
32652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32653 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
32654 | ||
32655 | wxPyEndAllowThreads(__tstate); | |
32656 | if (PyErr_Occurred()) SWIG_fail; | |
32657 | } | |
32658 | { | |
32659 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32660 | } | |
32661 | return resultobj; | |
32662 | fail: | |
32663 | return NULL; | |
32664 | } | |
32665 | ||
32666 | ||
32667 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32668 | PyObject *resultobj; | |
32669 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32670 | PyObject * obj0 = 0 ; | |
32671 | char *kwnames[] = { | |
32672 | (char *) "self", NULL | |
32673 | }; | |
32674 | ||
32675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
32676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32678 | { | |
32679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32680 | (arg1)->Toggle(); | |
32681 | ||
32682 | wxPyEndAllowThreads(__tstate); | |
32683 | if (PyErr_Occurred()) SWIG_fail; | |
32684 | } | |
32685 | Py_INCREF(Py_None); resultobj = Py_None; | |
32686 | return resultobj; | |
32687 | fail: | |
32688 | return NULL; | |
32689 | } | |
32690 | ||
32691 | ||
32692 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32693 | PyObject *resultobj; | |
32694 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32695 | wxString *arg2 = 0 ; | |
32696 | bool temp2 = False ; | |
32697 | PyObject * obj0 = 0 ; | |
32698 | PyObject * obj1 = 0 ; | |
32699 | char *kwnames[] = { | |
32700 | (char *) "self",(char *) "str", NULL | |
32701 | }; | |
32702 | ||
32703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
32704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32706 | { | |
32707 | arg2 = wxString_in_helper(obj1); | |
32708 | if (arg2 == NULL) SWIG_fail; | |
32709 | temp2 = True; | |
32710 | } | |
32711 | { | |
32712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32713 | (arg1)->SetHelp((wxString const &)*arg2); | |
32714 | ||
32715 | wxPyEndAllowThreads(__tstate); | |
32716 | if (PyErr_Occurred()) SWIG_fail; | |
32717 | } | |
32718 | Py_INCREF(Py_None); resultobj = Py_None; | |
32719 | { | |
32720 | if (temp2) | |
32721 | delete arg2; | |
32722 | } | |
32723 | return resultobj; | |
32724 | fail: | |
32725 | { | |
32726 | if (temp2) | |
32727 | delete arg2; | |
32728 | } | |
32729 | return NULL; | |
32730 | } | |
32731 | ||
32732 | ||
32733 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32734 | PyObject *resultobj; | |
32735 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32736 | wxString *result; | |
32737 | PyObject * obj0 = 0 ; | |
32738 | char *kwnames[] = { | |
32739 | (char *) "self", NULL | |
32740 | }; | |
32741 | ||
32742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
32743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32745 | { | |
32746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32747 | { | |
32748 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
32749 | result = (wxString *) &_result_ref; | |
32750 | } | |
32751 | ||
32752 | wxPyEndAllowThreads(__tstate); | |
32753 | if (PyErr_Occurred()) SWIG_fail; | |
32754 | } | |
32755 | { | |
32756 | #if wxUSE_UNICODE | |
32757 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32758 | #else | |
32759 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32760 | #endif | |
32761 | } | |
32762 | return resultobj; | |
32763 | fail: | |
32764 | return NULL; | |
32765 | } | |
32766 | ||
32767 | ||
32768 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32769 | PyObject *resultobj; | |
32770 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32771 | wxAcceleratorEntry *result; | |
32772 | PyObject * obj0 = 0 ; | |
32773 | char *kwnames[] = { | |
32774 | (char *) "self", NULL | |
32775 | }; | |
32776 | ||
32777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
32778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32780 | { | |
32781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32782 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
32783 | ||
32784 | wxPyEndAllowThreads(__tstate); | |
32785 | if (PyErr_Occurred()) SWIG_fail; | |
32786 | } | |
32787 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
32788 | return resultobj; | |
32789 | fail: | |
32790 | return NULL; | |
32791 | } | |
32792 | ||
32793 | ||
32794 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32795 | PyObject *resultobj; | |
32796 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32797 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
32798 | PyObject * obj0 = 0 ; | |
32799 | PyObject * obj1 = 0 ; | |
32800 | char *kwnames[] = { | |
32801 | (char *) "self",(char *) "accel", NULL | |
32802 | }; | |
32803 | ||
32804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
32805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32807 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
32808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32809 | { | |
32810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32811 | (arg1)->SetAccel(arg2); | |
32812 | ||
32813 | wxPyEndAllowThreads(__tstate); | |
32814 | if (PyErr_Occurred()) SWIG_fail; | |
32815 | } | |
32816 | Py_INCREF(Py_None); resultobj = Py_None; | |
32817 | return resultobj; | |
32818 | fail: | |
32819 | return NULL; | |
32820 | } | |
32821 | ||
32822 | ||
32823 | static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32824 | PyObject *resultobj; | |
32825 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32826 | wxFont *arg2 = 0 ; | |
32827 | PyObject * obj0 = 0 ; | |
32828 | PyObject * obj1 = 0 ; | |
32829 | char *kwnames[] = { | |
32830 | (char *) "self",(char *) "font", NULL | |
32831 | }; | |
32832 | ||
32833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
32834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32836 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
32837 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32838 | SWIG_fail; | |
32839 | if (arg2 == NULL) { | |
32840 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32841 | SWIG_fail; | |
32842 | } | |
32843 | { | |
32844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32845 | (arg1)->SetFont((wxFont const &)*arg2); | |
32846 | ||
32847 | wxPyEndAllowThreads(__tstate); | |
32848 | if (PyErr_Occurred()) SWIG_fail; | |
32849 | } | |
32850 | Py_INCREF(Py_None); resultobj = Py_None; | |
32851 | return resultobj; | |
32852 | fail: | |
32853 | return NULL; | |
32854 | } | |
32855 | ||
32856 | ||
32857 | static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32858 | PyObject *resultobj; | |
32859 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32860 | wxFont result; | |
32861 | PyObject * obj0 = 0 ; | |
32862 | char *kwnames[] = { | |
32863 | (char *) "self", NULL | |
32864 | }; | |
32865 | ||
32866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
32867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32869 | { | |
32870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32871 | result = (arg1)->GetFont(); | |
32872 | ||
32873 | wxPyEndAllowThreads(__tstate); | |
32874 | if (PyErr_Occurred()) SWIG_fail; | |
32875 | } | |
32876 | { | |
32877 | wxFont * resultptr; | |
32878 | resultptr = new wxFont((wxFont &) result); | |
32879 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
32880 | } | |
32881 | return resultobj; | |
32882 | fail: | |
32883 | return NULL; | |
32884 | } | |
32885 | ||
32886 | ||
32887 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32888 | PyObject *resultobj; | |
32889 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32890 | wxColour *arg2 = 0 ; | |
32891 | wxColour temp2 ; | |
32892 | PyObject * obj0 = 0 ; | |
32893 | PyObject * obj1 = 0 ; | |
32894 | char *kwnames[] = { | |
32895 | (char *) "self",(char *) "colText", NULL | |
32896 | }; | |
32897 | ||
32898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
32899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32901 | { | |
32902 | arg2 = &temp2; | |
32903 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32904 | } | |
32905 | { | |
32906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32907 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
32908 | ||
32909 | wxPyEndAllowThreads(__tstate); | |
32910 | if (PyErr_Occurred()) SWIG_fail; | |
32911 | } | |
32912 | Py_INCREF(Py_None); resultobj = Py_None; | |
32913 | return resultobj; | |
32914 | fail: | |
32915 | return NULL; | |
32916 | } | |
32917 | ||
32918 | ||
32919 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32920 | PyObject *resultobj; | |
32921 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32922 | wxColour result; | |
32923 | PyObject * obj0 = 0 ; | |
32924 | char *kwnames[] = { | |
32925 | (char *) "self", NULL | |
32926 | }; | |
32927 | ||
32928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
32929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32931 | { | |
32932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32933 | result = (arg1)->GetTextColour(); | |
32934 | ||
32935 | wxPyEndAllowThreads(__tstate); | |
32936 | if (PyErr_Occurred()) SWIG_fail; | |
32937 | } | |
32938 | { | |
32939 | wxColour * resultptr; | |
32940 | resultptr = new wxColour((wxColour &) result); | |
32941 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
32942 | } | |
32943 | return resultobj; | |
32944 | fail: | |
32945 | return NULL; | |
32946 | } | |
32947 | ||
32948 | ||
32949 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32950 | PyObject *resultobj; | |
32951 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32952 | wxColour *arg2 = 0 ; | |
32953 | wxColour temp2 ; | |
32954 | PyObject * obj0 = 0 ; | |
32955 | PyObject * obj1 = 0 ; | |
32956 | char *kwnames[] = { | |
32957 | (char *) "self",(char *) "colBack", NULL | |
32958 | }; | |
32959 | ||
32960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
32961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32963 | { | |
32964 | arg2 = &temp2; | |
32965 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32966 | } | |
32967 | { | |
32968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32969 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
32970 | ||
32971 | wxPyEndAllowThreads(__tstate); | |
32972 | if (PyErr_Occurred()) SWIG_fail; | |
32973 | } | |
32974 | Py_INCREF(Py_None); resultobj = Py_None; | |
32975 | return resultobj; | |
32976 | fail: | |
32977 | return NULL; | |
32978 | } | |
32979 | ||
32980 | ||
32981 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32982 | PyObject *resultobj; | |
32983 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32984 | wxColour result; | |
32985 | PyObject * obj0 = 0 ; | |
32986 | char *kwnames[] = { | |
32987 | (char *) "self", NULL | |
32988 | }; | |
32989 | ||
32990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
32991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32993 | { | |
32994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32995 | result = (arg1)->GetBackgroundColour(); | |
32996 | ||
32997 | wxPyEndAllowThreads(__tstate); | |
32998 | if (PyErr_Occurred()) SWIG_fail; | |
32999 | } | |
33000 | { | |
33001 | wxColour * resultptr; | |
33002 | resultptr = new wxColour((wxColour &) result); | |
33003 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
33004 | } | |
33005 | return resultobj; | |
33006 | fail: | |
33007 | return NULL; | |
33008 | } | |
33009 | ||
33010 | ||
33011 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33012 | PyObject *resultobj; | |
33013 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33014 | wxBitmap *arg2 = 0 ; | |
33015 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
33016 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
33017 | PyObject * obj0 = 0 ; | |
33018 | PyObject * obj1 = 0 ; | |
33019 | PyObject * obj2 = 0 ; | |
33020 | char *kwnames[] = { | |
33021 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
33022 | }; | |
33023 | ||
33024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33027 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33028 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33029 | SWIG_fail; | |
33030 | if (arg2 == NULL) { | |
33031 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33032 | SWIG_fail; | |
33033 | } | |
33034 | if (obj2) { | |
33035 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
33036 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33037 | SWIG_fail; | |
33038 | if (arg3 == NULL) { | |
33039 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33040 | SWIG_fail; | |
33041 | } | |
33042 | } | |
33043 | { | |
33044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33045 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
33046 | ||
33047 | wxPyEndAllowThreads(__tstate); | |
33048 | if (PyErr_Occurred()) SWIG_fail; | |
33049 | } | |
33050 | Py_INCREF(Py_None); resultobj = Py_None; | |
33051 | return resultobj; | |
33052 | fail: | |
33053 | return NULL; | |
33054 | } | |
33055 | ||
33056 | ||
33057 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33058 | PyObject *resultobj; | |
33059 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33060 | wxBitmap *arg2 = 0 ; | |
33061 | PyObject * obj0 = 0 ; | |
33062 | PyObject * obj1 = 0 ; | |
33063 | char *kwnames[] = { | |
33064 | (char *) "self",(char *) "bmpDisabled", NULL | |
33065 | }; | |
33066 | ||
33067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
33068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33070 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33071 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33072 | SWIG_fail; | |
33073 | if (arg2 == NULL) { | |
33074 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33075 | SWIG_fail; | |
33076 | } | |
33077 | { | |
33078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33079 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
33080 | ||
33081 | wxPyEndAllowThreads(__tstate); | |
33082 | if (PyErr_Occurred()) SWIG_fail; | |
33083 | } | |
33084 | Py_INCREF(Py_None); resultobj = Py_None; | |
33085 | return resultobj; | |
33086 | fail: | |
33087 | return NULL; | |
33088 | } | |
33089 | ||
33090 | ||
33091 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33092 | PyObject *resultobj; | |
33093 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33094 | wxBitmap *result; | |
33095 | PyObject * obj0 = 0 ; | |
33096 | char *kwnames[] = { | |
33097 | (char *) "self", NULL | |
33098 | }; | |
33099 | ||
33100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
33101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33103 | { | |
33104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33105 | { | |
33106 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
33107 | result = (wxBitmap *) &_result_ref; | |
33108 | } | |
33109 | ||
33110 | wxPyEndAllowThreads(__tstate); | |
33111 | if (PyErr_Occurred()) SWIG_fail; | |
33112 | } | |
33113 | { | |
33114 | wxBitmap* resultptr = new wxBitmap(*result); | |
33115 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33116 | } | |
33117 | return resultobj; | |
33118 | fail: | |
33119 | return NULL; | |
33120 | } | |
33121 | ||
33122 | ||
33123 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33124 | PyObject *resultobj; | |
33125 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33126 | int arg2 ; | |
33127 | PyObject * obj0 = 0 ; | |
33128 | PyObject * obj1 = 0 ; | |
33129 | char *kwnames[] = { | |
33130 | (char *) "self",(char *) "nWidth", NULL | |
33131 | }; | |
33132 | ||
33133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; | |
33134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33136 | arg2 = (int) SWIG_AsInt(obj1); | |
33137 | if (PyErr_Occurred()) SWIG_fail; | |
33138 | { | |
33139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33140 | (arg1)->SetMarginWidth(arg2); | |
33141 | ||
33142 | wxPyEndAllowThreads(__tstate); | |
33143 | if (PyErr_Occurred()) SWIG_fail; | |
33144 | } | |
33145 | Py_INCREF(Py_None); resultobj = Py_None; | |
33146 | return resultobj; | |
33147 | fail: | |
33148 | return NULL; | |
33149 | } | |
33150 | ||
33151 | ||
33152 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33153 | PyObject *resultobj; | |
33154 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33155 | int result; | |
33156 | PyObject * obj0 = 0 ; | |
33157 | char *kwnames[] = { | |
33158 | (char *) "self", NULL | |
33159 | }; | |
33160 | ||
33161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
33162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33164 | { | |
33165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33166 | result = (int)(arg1)->GetMarginWidth(); | |
33167 | ||
33168 | wxPyEndAllowThreads(__tstate); | |
33169 | if (PyErr_Occurred()) SWIG_fail; | |
33170 | } | |
33171 | resultobj = SWIG_FromInt((int)result); | |
33172 | return resultobj; | |
33173 | fail: | |
33174 | return NULL; | |
33175 | } | |
33176 | ||
33177 | ||
33178 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33179 | PyObject *resultobj; | |
33180 | int result; | |
33181 | char *kwnames[] = { | |
33182 | NULL | |
33183 | }; | |
33184 | ||
33185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
33186 | { | |
33187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33188 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
33189 | ||
33190 | wxPyEndAllowThreads(__tstate); | |
33191 | if (PyErr_Occurred()) SWIG_fail; | |
33192 | } | |
33193 | resultobj = SWIG_FromInt((int)result); | |
33194 | return resultobj; | |
33195 | fail: | |
33196 | return NULL; | |
33197 | } | |
33198 | ||
33199 | ||
33200 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33201 | PyObject *resultobj; | |
33202 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33203 | bool result; | |
33204 | PyObject * obj0 = 0 ; | |
33205 | char *kwnames[] = { | |
33206 | (char *) "self", NULL | |
33207 | }; | |
33208 | ||
33209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
33210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33212 | { | |
33213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33214 | result = (bool)(arg1)->IsOwnerDrawn(); | |
33215 | ||
33216 | wxPyEndAllowThreads(__tstate); | |
33217 | if (PyErr_Occurred()) SWIG_fail; | |
33218 | } | |
33219 | { | |
33220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33221 | } | |
33222 | return resultobj; | |
33223 | fail: | |
33224 | return NULL; | |
33225 | } | |
33226 | ||
33227 | ||
33228 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33229 | PyObject *resultobj; | |
33230 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33231 | bool arg2 = (bool) True ; | |
33232 | PyObject * obj0 = 0 ; | |
33233 | PyObject * obj1 = 0 ; | |
33234 | char *kwnames[] = { | |
33235 | (char *) "self",(char *) "ownerDrawn", NULL | |
33236 | }; | |
33237 | ||
33238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
33239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33241 | if (obj1) { | |
33242 | arg2 = (bool) SWIG_AsBool(obj1); | |
33243 | if (PyErr_Occurred()) SWIG_fail; | |
33244 | } | |
33245 | { | |
33246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33247 | (arg1)->SetOwnerDrawn(arg2); | |
33248 | ||
33249 | wxPyEndAllowThreads(__tstate); | |
33250 | if (PyErr_Occurred()) SWIG_fail; | |
33251 | } | |
33252 | Py_INCREF(Py_None); resultobj = Py_None; | |
33253 | return resultobj; | |
33254 | fail: | |
33255 | return NULL; | |
33256 | } | |
33257 | ||
33258 | ||
33259 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33260 | PyObject *resultobj; | |
33261 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33262 | PyObject * obj0 = 0 ; | |
33263 | char *kwnames[] = { | |
33264 | (char *) "self", NULL | |
33265 | }; | |
33266 | ||
33267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
33268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33270 | { | |
33271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33272 | (arg1)->ResetOwnerDrawn(); | |
33273 | ||
33274 | wxPyEndAllowThreads(__tstate); | |
33275 | if (PyErr_Occurred()) SWIG_fail; | |
33276 | } | |
33277 | Py_INCREF(Py_None); resultobj = Py_None; | |
33278 | return resultobj; | |
33279 | fail: | |
33280 | return NULL; | |
33281 | } | |
33282 | ||
33283 | ||
33284 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33285 | PyObject *resultobj; | |
33286 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33287 | wxBitmap *arg2 = 0 ; | |
33288 | PyObject * obj0 = 0 ; | |
33289 | PyObject * obj1 = 0 ; | |
33290 | char *kwnames[] = { | |
33291 | (char *) "self",(char *) "bitmap", NULL | |
33292 | }; | |
33293 | ||
33294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
33295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33297 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33298 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33299 | SWIG_fail; | |
33300 | if (arg2 == NULL) { | |
33301 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33302 | SWIG_fail; | |
33303 | } | |
33304 | { | |
33305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33306 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
33307 | ||
33308 | wxPyEndAllowThreads(__tstate); | |
33309 | if (PyErr_Occurred()) SWIG_fail; | |
33310 | } | |
33311 | Py_INCREF(Py_None); resultobj = Py_None; | |
33312 | return resultobj; | |
33313 | fail: | |
33314 | return NULL; | |
33315 | } | |
33316 | ||
33317 | ||
33318 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33319 | PyObject *resultobj; | |
33320 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33321 | wxBitmap *result; | |
33322 | PyObject * obj0 = 0 ; | |
33323 | char *kwnames[] = { | |
33324 | (char *) "self", NULL | |
33325 | }; | |
33326 | ||
33327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
33328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33330 | { | |
33331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33332 | { | |
33333 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
33334 | result = (wxBitmap *) &_result_ref; | |
33335 | } | |
33336 | ||
33337 | wxPyEndAllowThreads(__tstate); | |
33338 | if (PyErr_Occurred()) SWIG_fail; | |
33339 | } | |
33340 | { | |
33341 | wxBitmap* resultptr = new wxBitmap(*result); | |
33342 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33343 | } | |
33344 | return resultobj; | |
33345 | fail: | |
33346 | return NULL; | |
33347 | } | |
33348 | ||
33349 | ||
33350 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
33351 | PyObject *obj; | |
33352 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33353 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
33354 | Py_INCREF(obj); | |
33355 | return Py_BuildValue((char *)""); | |
33356 | } | |
33357 | static int _wrap_ControlNameStr_set(PyObject *_val) { | |
33358 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); | |
33359 | return 1; | |
33360 | } | |
33361 | ||
33362 | ||
33363 | static PyObject *_wrap_ControlNameStr_get() { | |
33364 | PyObject *pyobj; | |
33365 | ||
33366 | { | |
33367 | #if wxUSE_UNICODE | |
33368 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33369 | #else | |
33370 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33371 | #endif | |
33372 | } | |
33373 | return pyobj; | |
33374 | } | |
33375 | ||
33376 | ||
33377 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33378 | PyObject *resultobj; | |
33379 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 33380 | int arg2 = (int) -1 ; |
d55e5bfc RD |
33381 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
33382 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33383 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33384 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33385 | long arg5 = (long) 0 ; | |
33386 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
33387 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
33388 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
33389 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33390 | wxControl *result; | |
33391 | wxPoint temp3 ; | |
33392 | wxSize temp4 ; | |
33393 | bool temp7 = False ; | |
33394 | PyObject * obj0 = 0 ; | |
33395 | PyObject * obj1 = 0 ; | |
33396 | PyObject * obj2 = 0 ; | |
33397 | PyObject * obj3 = 0 ; | |
33398 | PyObject * obj4 = 0 ; | |
33399 | PyObject * obj5 = 0 ; | |
33400 | PyObject * obj6 = 0 ; | |
33401 | char *kwnames[] = { | |
33402 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33403 | }; | |
33404 | ||
248ed943 | 33405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
33406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
33407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
33408 | if (obj1) { |
33409 | arg2 = (int) SWIG_AsInt(obj1); | |
33410 | if (PyErr_Occurred()) SWIG_fail; | |
33411 | } | |
d55e5bfc RD |
33412 | if (obj2) { |
33413 | { | |
33414 | arg3 = &temp3; | |
33415 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33416 | } | |
33417 | } | |
33418 | if (obj3) { | |
33419 | { | |
33420 | arg4 = &temp4; | |
33421 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33422 | } | |
33423 | } | |
33424 | if (obj4) { | |
33425 | arg5 = (long) SWIG_AsLong(obj4); | |
33426 | if (PyErr_Occurred()) SWIG_fail; | |
33427 | } | |
33428 | if (obj5) { | |
33429 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
33430 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33431 | SWIG_fail; | |
33432 | if (arg6 == NULL) { | |
33433 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33434 | SWIG_fail; | |
33435 | } | |
33436 | } | |
33437 | if (obj6) { | |
33438 | { | |
33439 | arg7 = wxString_in_helper(obj6); | |
33440 | if (arg7 == NULL) SWIG_fail; | |
33441 | temp7 = True; | |
33442 | } | |
33443 | } | |
33444 | { | |
0439c23b | 33445 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33447 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
33448 | ||
33449 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33450 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 33451 | } |
b0f7404b | 33452 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
33453 | { |
33454 | if (temp7) | |
33455 | delete arg7; | |
33456 | } | |
33457 | return resultobj; | |
33458 | fail: | |
33459 | { | |
33460 | if (temp7) | |
33461 | delete arg7; | |
33462 | } | |
33463 | return NULL; | |
33464 | } | |
33465 | ||
33466 | ||
33467 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33468 | PyObject *resultobj; | |
33469 | wxControl *result; | |
33470 | char *kwnames[] = { | |
33471 | NULL | |
33472 | }; | |
33473 | ||
33474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
33475 | { | |
0439c23b | 33476 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33478 | result = (wxControl *)new wxControl(); | |
33479 | ||
33480 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33481 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 33482 | } |
b0f7404b | 33483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
33484 | return resultobj; |
33485 | fail: | |
33486 | return NULL; | |
33487 | } | |
33488 | ||
33489 | ||
33490 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33491 | PyObject *resultobj; | |
33492 | wxControl *arg1 = (wxControl *) 0 ; | |
33493 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 33494 | int arg3 = (int) -1 ; |
d55e5bfc RD |
33495 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
33496 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
33497 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
33498 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
33499 | long arg6 = (long) 0 ; | |
33500 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
33501 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
33502 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
33503 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
33504 | bool result; | |
33505 | wxPoint temp4 ; | |
33506 | wxSize temp5 ; | |
33507 | bool temp8 = False ; | |
33508 | PyObject * obj0 = 0 ; | |
33509 | PyObject * obj1 = 0 ; | |
33510 | PyObject * obj2 = 0 ; | |
33511 | PyObject * obj3 = 0 ; | |
33512 | PyObject * obj4 = 0 ; | |
33513 | PyObject * obj5 = 0 ; | |
33514 | PyObject * obj6 = 0 ; | |
33515 | PyObject * obj7 = 0 ; | |
33516 | char *kwnames[] = { | |
33517 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33518 | }; | |
33519 | ||
248ed943 | 33520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
33521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
33522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33523 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
33525 | if (obj2) { |
33526 | arg3 = (int) SWIG_AsInt(obj2); | |
33527 | if (PyErr_Occurred()) SWIG_fail; | |
33528 | } | |
d55e5bfc RD |
33529 | if (obj3) { |
33530 | { | |
33531 | arg4 = &temp4; | |
33532 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
33533 | } | |
33534 | } | |
33535 | if (obj4) { | |
33536 | { | |
33537 | arg5 = &temp5; | |
33538 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
33539 | } | |
33540 | } | |
33541 | if (obj5) { | |
33542 | arg6 = (long) SWIG_AsLong(obj5); | |
33543 | if (PyErr_Occurred()) SWIG_fail; | |
33544 | } | |
33545 | if (obj6) { | |
33546 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
33547 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33548 | SWIG_fail; | |
33549 | if (arg7 == NULL) { | |
33550 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33551 | SWIG_fail; | |
33552 | } | |
33553 | } | |
33554 | if (obj7) { | |
33555 | { | |
33556 | arg8 = wxString_in_helper(obj7); | |
33557 | if (arg8 == NULL) SWIG_fail; | |
33558 | temp8 = True; | |
33559 | } | |
33560 | } | |
33561 | { | |
33562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33563 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
33564 | ||
33565 | wxPyEndAllowThreads(__tstate); | |
33566 | if (PyErr_Occurred()) SWIG_fail; | |
33567 | } | |
33568 | { | |
33569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33570 | } | |
33571 | { | |
33572 | if (temp8) | |
33573 | delete arg8; | |
33574 | } | |
33575 | return resultobj; | |
33576 | fail: | |
33577 | { | |
33578 | if (temp8) | |
33579 | delete arg8; | |
33580 | } | |
33581 | return NULL; | |
33582 | } | |
33583 | ||
33584 | ||
33585 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33586 | PyObject *resultobj; | |
33587 | wxControl *arg1 = (wxControl *) 0 ; | |
33588 | wxCommandEvent *arg2 = 0 ; | |
33589 | PyObject * obj0 = 0 ; | |
33590 | PyObject * obj1 = 0 ; | |
33591 | char *kwnames[] = { | |
33592 | (char *) "self",(char *) "event", NULL | |
33593 | }; | |
33594 | ||
33595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
33596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33598 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
33599 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33600 | SWIG_fail; | |
33601 | if (arg2 == NULL) { | |
33602 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33603 | SWIG_fail; | |
33604 | } | |
33605 | { | |
33606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33607 | (arg1)->Command(*arg2); | |
33608 | ||
33609 | wxPyEndAllowThreads(__tstate); | |
33610 | if (PyErr_Occurred()) SWIG_fail; | |
33611 | } | |
33612 | Py_INCREF(Py_None); resultobj = Py_None; | |
33613 | return resultobj; | |
33614 | fail: | |
33615 | return NULL; | |
33616 | } | |
33617 | ||
33618 | ||
33619 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33620 | PyObject *resultobj; | |
33621 | wxControl *arg1 = (wxControl *) 0 ; | |
33622 | wxString result; | |
33623 | PyObject * obj0 = 0 ; | |
33624 | char *kwnames[] = { | |
33625 | (char *) "self", NULL | |
33626 | }; | |
33627 | ||
33628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
33629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33631 | { | |
33632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33633 | result = (arg1)->GetLabel(); | |
33634 | ||
33635 | wxPyEndAllowThreads(__tstate); | |
33636 | if (PyErr_Occurred()) SWIG_fail; | |
33637 | } | |
33638 | { | |
33639 | #if wxUSE_UNICODE | |
33640 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33641 | #else | |
33642 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33643 | #endif | |
33644 | } | |
33645 | return resultobj; | |
33646 | fail: | |
33647 | return NULL; | |
33648 | } | |
33649 | ||
33650 | ||
33651 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33652 | PyObject *resultobj; | |
33653 | wxControl *arg1 = (wxControl *) 0 ; | |
33654 | wxString *arg2 = 0 ; | |
33655 | bool temp2 = False ; | |
33656 | PyObject * obj0 = 0 ; | |
33657 | PyObject * obj1 = 0 ; | |
33658 | char *kwnames[] = { | |
33659 | (char *) "self",(char *) "label", NULL | |
33660 | }; | |
33661 | ||
33662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
33663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33665 | { | |
33666 | arg2 = wxString_in_helper(obj1); | |
33667 | if (arg2 == NULL) SWIG_fail; | |
33668 | temp2 = True; | |
33669 | } | |
33670 | { | |
33671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33672 | (arg1)->SetLabel((wxString const &)*arg2); | |
33673 | ||
33674 | wxPyEndAllowThreads(__tstate); | |
33675 | if (PyErr_Occurred()) SWIG_fail; | |
33676 | } | |
33677 | Py_INCREF(Py_None); resultobj = Py_None; | |
33678 | { | |
33679 | if (temp2) | |
33680 | delete arg2; | |
33681 | } | |
33682 | return resultobj; | |
33683 | fail: | |
33684 | { | |
33685 | if (temp2) | |
33686 | delete arg2; | |
33687 | } | |
33688 | return NULL; | |
33689 | } | |
33690 | ||
33691 | ||
33692 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33693 | PyObject *resultobj; | |
33694 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
33695 | wxVisualAttributes result; | |
33696 | PyObject * obj0 = 0 ; | |
33697 | char *kwnames[] = { | |
33698 | (char *) "variant", NULL | |
33699 | }; | |
33700 | ||
33701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
33702 | if (obj0) { | |
33703 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
33704 | if (PyErr_Occurred()) SWIG_fail; | |
33705 | } | |
33706 | { | |
a001823c | 33707 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33709 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
33710 | ||
33711 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33712 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33713 | } |
33714 | { | |
33715 | wxVisualAttributes * resultptr; | |
33716 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
33717 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
33718 | } | |
33719 | return resultobj; | |
33720 | fail: | |
33721 | return NULL; | |
33722 | } | |
33723 | ||
33724 | ||
33725 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
33726 | PyObject *obj; | |
33727 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33728 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
33729 | Py_INCREF(obj); | |
33730 | return Py_BuildValue((char *)""); | |
33731 | } | |
33732 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33733 | PyObject *resultobj; | |
33734 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33735 | wxString *arg2 = 0 ; | |
33736 | PyObject *arg3 = (PyObject *) NULL ; | |
33737 | int result; | |
33738 | bool temp2 = False ; | |
33739 | PyObject * obj0 = 0 ; | |
33740 | PyObject * obj1 = 0 ; | |
33741 | PyObject * obj2 = 0 ; | |
33742 | char *kwnames[] = { | |
33743 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
33744 | }; | |
33745 | ||
33746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33749 | { | |
33750 | arg2 = wxString_in_helper(obj1); | |
33751 | if (arg2 == NULL) SWIG_fail; | |
33752 | temp2 = True; | |
33753 | } | |
33754 | if (obj2) { | |
33755 | arg3 = obj2; | |
33756 | } | |
33757 | { | |
33758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33759 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
33760 | ||
33761 | wxPyEndAllowThreads(__tstate); | |
33762 | if (PyErr_Occurred()) SWIG_fail; | |
33763 | } | |
33764 | resultobj = SWIG_FromInt((int)result); | |
33765 | { | |
33766 | if (temp2) | |
33767 | delete arg2; | |
33768 | } | |
33769 | return resultobj; | |
33770 | fail: | |
33771 | { | |
33772 | if (temp2) | |
33773 | delete arg2; | |
33774 | } | |
33775 | return NULL; | |
33776 | } | |
33777 | ||
33778 | ||
33779 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33780 | PyObject *resultobj; | |
33781 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33782 | wxArrayString *arg2 = 0 ; | |
33783 | bool temp2 = False ; | |
33784 | PyObject * obj0 = 0 ; | |
33785 | PyObject * obj1 = 0 ; | |
33786 | char *kwnames[] = { | |
33787 | (char *) "self",(char *) "strings", NULL | |
33788 | }; | |
33789 | ||
33790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
33791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33793 | { | |
33794 | if (! PySequence_Check(obj1)) { | |
33795 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
33796 | SWIG_fail; | |
33797 | } | |
33798 | arg2 = new wxArrayString; | |
33799 | temp2 = True; | |
33800 | int i, len=PySequence_Length(obj1); | |
33801 | for (i=0; i<len; i++) { | |
33802 | PyObject* item = PySequence_GetItem(obj1, i); | |
33803 | #if wxUSE_UNICODE | |
33804 | PyObject* str = PyObject_Unicode(item); | |
33805 | #else | |
33806 | PyObject* str = PyObject_Str(item); | |
33807 | #endif | |
33808 | if (PyErr_Occurred()) SWIG_fail; | |
33809 | arg2->Add(Py2wxString(str)); | |
33810 | Py_DECREF(item); | |
33811 | Py_DECREF(str); | |
33812 | } | |
33813 | } | |
33814 | { | |
33815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33816 | (arg1)->Append((wxArrayString const &)*arg2); | |
33817 | ||
33818 | wxPyEndAllowThreads(__tstate); | |
33819 | if (PyErr_Occurred()) SWIG_fail; | |
33820 | } | |
33821 | Py_INCREF(Py_None); resultobj = Py_None; | |
33822 | { | |
33823 | if (temp2) delete arg2; | |
33824 | } | |
33825 | return resultobj; | |
33826 | fail: | |
33827 | { | |
33828 | if (temp2) delete arg2; | |
33829 | } | |
33830 | return NULL; | |
33831 | } | |
33832 | ||
33833 | ||
33834 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33835 | PyObject *resultobj; | |
33836 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33837 | wxString *arg2 = 0 ; | |
33838 | int arg3 ; | |
33839 | PyObject *arg4 = (PyObject *) NULL ; | |
33840 | int result; | |
33841 | bool temp2 = False ; | |
33842 | PyObject * obj0 = 0 ; | |
33843 | PyObject * obj1 = 0 ; | |
33844 | PyObject * obj2 = 0 ; | |
33845 | PyObject * obj3 = 0 ; | |
33846 | char *kwnames[] = { | |
33847 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
33848 | }; | |
33849 | ||
33850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
33851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33853 | { | |
33854 | arg2 = wxString_in_helper(obj1); | |
33855 | if (arg2 == NULL) SWIG_fail; | |
33856 | temp2 = True; | |
33857 | } | |
33858 | arg3 = (int) SWIG_AsInt(obj2); | |
33859 | if (PyErr_Occurred()) SWIG_fail; | |
33860 | if (obj3) { | |
33861 | arg4 = obj3; | |
33862 | } | |
33863 | { | |
33864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33865 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
33866 | ||
33867 | wxPyEndAllowThreads(__tstate); | |
33868 | if (PyErr_Occurred()) SWIG_fail; | |
33869 | } | |
33870 | resultobj = SWIG_FromInt((int)result); | |
33871 | { | |
33872 | if (temp2) | |
33873 | delete arg2; | |
33874 | } | |
33875 | return resultobj; | |
33876 | fail: | |
33877 | { | |
33878 | if (temp2) | |
33879 | delete arg2; | |
33880 | } | |
33881 | return NULL; | |
33882 | } | |
33883 | ||
33884 | ||
33885 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33886 | PyObject *resultobj; | |
33887 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33888 | PyObject * obj0 = 0 ; | |
33889 | char *kwnames[] = { | |
33890 | (char *) "self", NULL | |
33891 | }; | |
33892 | ||
33893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
33894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33896 | { | |
33897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33898 | (arg1)->Clear(); | |
33899 | ||
33900 | wxPyEndAllowThreads(__tstate); | |
33901 | if (PyErr_Occurred()) SWIG_fail; | |
33902 | } | |
33903 | Py_INCREF(Py_None); resultobj = Py_None; | |
33904 | return resultobj; | |
33905 | fail: | |
33906 | return NULL; | |
33907 | } | |
33908 | ||
33909 | ||
33910 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33911 | PyObject *resultobj; | |
33912 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33913 | int arg2 ; | |
33914 | PyObject * obj0 = 0 ; | |
33915 | PyObject * obj1 = 0 ; | |
33916 | char *kwnames[] = { | |
33917 | (char *) "self",(char *) "n", NULL | |
33918 | }; | |
33919 | ||
33920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; | |
33921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33923 | arg2 = (int) SWIG_AsInt(obj1); | |
33924 | if (PyErr_Occurred()) SWIG_fail; | |
33925 | { | |
33926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33927 | (arg1)->Delete(arg2); | |
33928 | ||
33929 | wxPyEndAllowThreads(__tstate); | |
33930 | if (PyErr_Occurred()) SWIG_fail; | |
33931 | } | |
33932 | Py_INCREF(Py_None); resultobj = Py_None; | |
33933 | return resultobj; | |
33934 | fail: | |
33935 | return NULL; | |
33936 | } | |
33937 | ||
33938 | ||
33939 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33940 | PyObject *resultobj; | |
33941 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33942 | int result; | |
33943 | PyObject * obj0 = 0 ; | |
33944 | char *kwnames[] = { | |
33945 | (char *) "self", NULL | |
33946 | }; | |
33947 | ||
33948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
33949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33951 | { | |
33952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33953 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
33954 | ||
33955 | wxPyEndAllowThreads(__tstate); | |
33956 | if (PyErr_Occurred()) SWIG_fail; | |
33957 | } | |
33958 | resultobj = SWIG_FromInt((int)result); | |
33959 | return resultobj; | |
33960 | fail: | |
33961 | return NULL; | |
33962 | } | |
33963 | ||
33964 | ||
33965 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33966 | PyObject *resultobj; | |
33967 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33968 | bool result; | |
33969 | PyObject * obj0 = 0 ; | |
33970 | char *kwnames[] = { | |
33971 | (char *) "self", NULL | |
33972 | }; | |
33973 | ||
33974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
33975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33977 | { | |
33978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33979 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
33980 | ||
33981 | wxPyEndAllowThreads(__tstate); | |
33982 | if (PyErr_Occurred()) SWIG_fail; | |
33983 | } | |
33984 | { | |
33985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33986 | } | |
33987 | return resultobj; | |
33988 | fail: | |
33989 | return NULL; | |
33990 | } | |
33991 | ||
33992 | ||
33993 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33994 | PyObject *resultobj; | |
33995 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33996 | int arg2 ; | |
33997 | wxString result; | |
33998 | PyObject * obj0 = 0 ; | |
33999 | PyObject * obj1 = 0 ; | |
34000 | char *kwnames[] = { | |
34001 | (char *) "self",(char *) "n", NULL | |
34002 | }; | |
34003 | ||
34004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; | |
34005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34007 | arg2 = (int) SWIG_AsInt(obj1); | |
34008 | if (PyErr_Occurred()) SWIG_fail; | |
34009 | { | |
34010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34011 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
34012 | ||
34013 | wxPyEndAllowThreads(__tstate); | |
34014 | if (PyErr_Occurred()) SWIG_fail; | |
34015 | } | |
34016 | { | |
34017 | #if wxUSE_UNICODE | |
34018 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34019 | #else | |
34020 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34021 | #endif | |
34022 | } | |
34023 | return resultobj; | |
34024 | fail: | |
34025 | return NULL; | |
34026 | } | |
34027 | ||
34028 | ||
34029 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34030 | PyObject *resultobj; | |
34031 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34032 | wxArrayString result; | |
34033 | PyObject * obj0 = 0 ; | |
34034 | char *kwnames[] = { | |
34035 | (char *) "self", NULL | |
34036 | }; | |
34037 | ||
34038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
34039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34041 | { | |
34042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34043 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
34044 | ||
34045 | wxPyEndAllowThreads(__tstate); | |
34046 | if (PyErr_Occurred()) SWIG_fail; | |
34047 | } | |
34048 | { | |
34049 | resultobj = wxArrayString2PyList_helper(result); | |
34050 | } | |
34051 | return resultobj; | |
34052 | fail: | |
34053 | return NULL; | |
34054 | } | |
34055 | ||
34056 | ||
34057 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34058 | PyObject *resultobj; | |
34059 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34060 | int arg2 ; | |
34061 | wxString *arg3 = 0 ; | |
34062 | bool temp3 = False ; | |
34063 | PyObject * obj0 = 0 ; | |
34064 | PyObject * obj1 = 0 ; | |
34065 | PyObject * obj2 = 0 ; | |
34066 | char *kwnames[] = { | |
34067 | (char *) "self",(char *) "n",(char *) "s", NULL | |
34068 | }; | |
34069 | ||
34070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34073 | arg2 = (int) SWIG_AsInt(obj1); | |
34074 | if (PyErr_Occurred()) SWIG_fail; | |
34075 | { | |
34076 | arg3 = wxString_in_helper(obj2); | |
34077 | if (arg3 == NULL) SWIG_fail; | |
34078 | temp3 = True; | |
34079 | } | |
34080 | { | |
34081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34082 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
34083 | ||
34084 | wxPyEndAllowThreads(__tstate); | |
34085 | if (PyErr_Occurred()) SWIG_fail; | |
34086 | } | |
34087 | Py_INCREF(Py_None); resultobj = Py_None; | |
34088 | { | |
34089 | if (temp3) | |
34090 | delete arg3; | |
34091 | } | |
34092 | return resultobj; | |
34093 | fail: | |
34094 | { | |
34095 | if (temp3) | |
34096 | delete arg3; | |
34097 | } | |
34098 | return NULL; | |
34099 | } | |
34100 | ||
34101 | ||
34102 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34103 | PyObject *resultobj; | |
34104 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34105 | wxString *arg2 = 0 ; | |
34106 | int result; | |
34107 | bool temp2 = False ; | |
34108 | PyObject * obj0 = 0 ; | |
34109 | PyObject * obj1 = 0 ; | |
34110 | char *kwnames[] = { | |
34111 | (char *) "self",(char *) "s", NULL | |
34112 | }; | |
34113 | ||
34114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
34115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34117 | { | |
34118 | arg2 = wxString_in_helper(obj1); | |
34119 | if (arg2 == NULL) SWIG_fail; | |
34120 | temp2 = True; | |
34121 | } | |
34122 | { | |
34123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34124 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
34125 | ||
34126 | wxPyEndAllowThreads(__tstate); | |
34127 | if (PyErr_Occurred()) SWIG_fail; | |
34128 | } | |
34129 | resultobj = SWIG_FromInt((int)result); | |
34130 | { | |
34131 | if (temp2) | |
34132 | delete arg2; | |
34133 | } | |
34134 | return resultobj; | |
34135 | fail: | |
34136 | { | |
34137 | if (temp2) | |
34138 | delete arg2; | |
34139 | } | |
34140 | return NULL; | |
34141 | } | |
34142 | ||
34143 | ||
34144 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34145 | PyObject *resultobj; | |
34146 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34147 | int arg2 ; | |
34148 | PyObject * obj0 = 0 ; | |
34149 | PyObject * obj1 = 0 ; | |
34150 | char *kwnames[] = { | |
34151 | (char *) "self",(char *) "n", NULL | |
34152 | }; | |
34153 | ||
34154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; | |
34155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34157 | arg2 = (int) SWIG_AsInt(obj1); | |
34158 | if (PyErr_Occurred()) SWIG_fail; | |
34159 | { | |
34160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34161 | (arg1)->Select(arg2); | |
34162 | ||
34163 | wxPyEndAllowThreads(__tstate); | |
34164 | if (PyErr_Occurred()) SWIG_fail; | |
34165 | } | |
34166 | Py_INCREF(Py_None); resultobj = Py_None; | |
34167 | return resultobj; | |
34168 | fail: | |
34169 | return NULL; | |
34170 | } | |
34171 | ||
34172 | ||
34173 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34174 | PyObject *resultobj; | |
34175 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34176 | int result; | |
34177 | PyObject * obj0 = 0 ; | |
34178 | char *kwnames[] = { | |
34179 | (char *) "self", NULL | |
34180 | }; | |
34181 | ||
34182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
34183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34185 | { | |
34186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34187 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
34188 | ||
34189 | wxPyEndAllowThreads(__tstate); | |
34190 | if (PyErr_Occurred()) SWIG_fail; | |
34191 | } | |
34192 | resultobj = SWIG_FromInt((int)result); | |
34193 | return resultobj; | |
34194 | fail: | |
34195 | return NULL; | |
34196 | } | |
34197 | ||
34198 | ||
34199 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34200 | PyObject *resultobj; | |
34201 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34202 | wxString result; | |
34203 | PyObject * obj0 = 0 ; | |
34204 | char *kwnames[] = { | |
34205 | (char *) "self", NULL | |
34206 | }; | |
34207 | ||
34208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
34209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34211 | { | |
34212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34213 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
34214 | ||
34215 | wxPyEndAllowThreads(__tstate); | |
34216 | if (PyErr_Occurred()) SWIG_fail; | |
34217 | } | |
34218 | { | |
34219 | #if wxUSE_UNICODE | |
34220 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34221 | #else | |
34222 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34223 | #endif | |
34224 | } | |
34225 | return resultobj; | |
34226 | fail: | |
34227 | return NULL; | |
34228 | } | |
34229 | ||
34230 | ||
34231 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34232 | PyObject *resultobj; | |
34233 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34234 | int arg2 ; | |
34235 | PyObject *result; | |
34236 | PyObject * obj0 = 0 ; | |
34237 | PyObject * obj1 = 0 ; | |
34238 | char *kwnames[] = { | |
34239 | (char *) "self",(char *) "n", NULL | |
34240 | }; | |
34241 | ||
34242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
34243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34245 | arg2 = (int) SWIG_AsInt(obj1); | |
34246 | if (PyErr_Occurred()) SWIG_fail; | |
34247 | { | |
34248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34249 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
34250 | ||
34251 | wxPyEndAllowThreads(__tstate); | |
34252 | if (PyErr_Occurred()) SWIG_fail; | |
34253 | } | |
34254 | resultobj = result; | |
34255 | return resultobj; | |
34256 | fail: | |
34257 | return NULL; | |
34258 | } | |
34259 | ||
34260 | ||
34261 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34262 | PyObject *resultobj; | |
34263 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34264 | int arg2 ; | |
34265 | PyObject *arg3 = (PyObject *) 0 ; | |
34266 | PyObject * obj0 = 0 ; | |
34267 | PyObject * obj1 = 0 ; | |
34268 | PyObject * obj2 = 0 ; | |
34269 | char *kwnames[] = { | |
34270 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
34271 | }; | |
34272 | ||
34273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34276 | arg2 = (int) SWIG_AsInt(obj1); | |
34277 | if (PyErr_Occurred()) SWIG_fail; | |
34278 | arg3 = obj2; | |
34279 | { | |
34280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34281 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
34282 | ||
34283 | wxPyEndAllowThreads(__tstate); | |
34284 | if (PyErr_Occurred()) SWIG_fail; | |
34285 | } | |
34286 | Py_INCREF(Py_None); resultobj = Py_None; | |
34287 | return resultobj; | |
34288 | fail: | |
34289 | return NULL; | |
34290 | } | |
34291 | ||
34292 | ||
34293 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
34294 | PyObject *obj; | |
34295 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34296 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
34297 | Py_INCREF(obj); | |
34298 | return Py_BuildValue((char *)""); | |
34299 | } | |
34300 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
34301 | PyObject *obj; | |
34302 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34303 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
34304 | Py_INCREF(obj); | |
34305 | return Py_BuildValue((char *)""); | |
34306 | } | |
34307 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34308 | PyObject *resultobj; | |
34309 | wxSizerItem *result; | |
34310 | char *kwnames[] = { | |
34311 | NULL | |
34312 | }; | |
34313 | ||
34314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
34315 | { | |
34316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34317 | result = (wxSizerItem *)new wxSizerItem(); | |
34318 | ||
34319 | wxPyEndAllowThreads(__tstate); | |
34320 | if (PyErr_Occurred()) SWIG_fail; | |
34321 | } | |
34322 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34323 | return resultobj; | |
34324 | fail: | |
34325 | return NULL; | |
34326 | } | |
34327 | ||
34328 | ||
248ed943 | 34329 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 34330 | PyObject *resultobj; |
248ed943 | 34331 | wxWindow *arg1 = (wxWindow *) 0 ; |
d55e5bfc RD |
34332 | int arg2 ; |
34333 | int arg3 ; | |
34334 | int arg4 ; | |
248ed943 | 34335 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
34336 | wxSizerItem *result; |
34337 | PyObject * obj0 = 0 ; | |
34338 | PyObject * obj1 = 0 ; | |
34339 | PyObject * obj2 = 0 ; | |
34340 | PyObject * obj3 = 0 ; | |
34341 | PyObject * obj4 = 0 ; | |
d55e5bfc | 34342 | char *kwnames[] = { |
248ed943 | 34343 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
34344 | }; |
34345 | ||
248ed943 RD |
34346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
34347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
34348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
34349 | arg2 = (int) SWIG_AsInt(obj1); |
34350 | if (PyErr_Occurred()) SWIG_fail; | |
34351 | arg3 = (int) SWIG_AsInt(obj2); | |
34352 | if (PyErr_Occurred()) SWIG_fail; | |
34353 | arg4 = (int) SWIG_AsInt(obj3); | |
34354 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
34355 | if (obj4) { |
34356 | arg5 = obj4; | |
34357 | } | |
d55e5bfc RD |
34358 | { |
34359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 34360 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
34361 | |
34362 | wxPyEndAllowThreads(__tstate); | |
34363 | if (PyErr_Occurred()) SWIG_fail; | |
34364 | } | |
34365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34366 | return resultobj; | |
34367 | fail: | |
34368 | return NULL; | |
34369 | } | |
34370 | ||
34371 | ||
248ed943 | 34372 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 34373 | PyObject *resultobj; |
248ed943 | 34374 | int arg1 ; |
d55e5bfc RD |
34375 | int arg2 ; |
34376 | int arg3 ; | |
34377 | int arg4 ; | |
248ed943 RD |
34378 | int arg5 ; |
34379 | PyObject *arg6 = (PyObject *) NULL ; | |
d55e5bfc RD |
34380 | wxSizerItem *result; |
34381 | PyObject * obj0 = 0 ; | |
34382 | PyObject * obj1 = 0 ; | |
34383 | PyObject * obj2 = 0 ; | |
34384 | PyObject * obj3 = 0 ; | |
34385 | PyObject * obj4 = 0 ; | |
248ed943 | 34386 | PyObject * obj5 = 0 ; |
d55e5bfc | 34387 | char *kwnames[] = { |
248ed943 | 34388 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
34389 | }; |
34390 | ||
248ed943 RD |
34391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
34392 | arg1 = (int) SWIG_AsInt(obj0); | |
34393 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc RD |
34394 | arg2 = (int) SWIG_AsInt(obj1); |
34395 | if (PyErr_Occurred()) SWIG_fail; | |
34396 | arg3 = (int) SWIG_AsInt(obj2); | |
34397 | if (PyErr_Occurred()) SWIG_fail; | |
34398 | arg4 = (int) SWIG_AsInt(obj3); | |
34399 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
34400 | arg5 = (int) SWIG_AsInt(obj4); |
34401 | if (PyErr_Occurred()) SWIG_fail; | |
34402 | if (obj5) { | |
34403 | arg6 = obj5; | |
34404 | } | |
d55e5bfc RD |
34405 | { |
34406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 34407 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
34408 | |
34409 | wxPyEndAllowThreads(__tstate); | |
34410 | if (PyErr_Occurred()) SWIG_fail; | |
34411 | } | |
34412 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34413 | return resultobj; | |
34414 | fail: | |
34415 | return NULL; | |
34416 | } | |
34417 | ||
34418 | ||
34419 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34420 | PyObject *resultobj; | |
34421 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34422 | int arg2 ; | |
34423 | int arg3 ; | |
34424 | int arg4 ; | |
248ed943 | 34425 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
34426 | wxSizerItem *result; |
34427 | PyObject * obj0 = 0 ; | |
34428 | PyObject * obj1 = 0 ; | |
34429 | PyObject * obj2 = 0 ; | |
34430 | PyObject * obj3 = 0 ; | |
34431 | PyObject * obj4 = 0 ; | |
34432 | char *kwnames[] = { | |
34433 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34434 | }; | |
34435 | ||
248ed943 | 34436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
34437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34439 | arg2 = (int) SWIG_AsInt(obj1); | |
34440 | if (PyErr_Occurred()) SWIG_fail; | |
34441 | arg3 = (int) SWIG_AsInt(obj2); | |
34442 | if (PyErr_Occurred()) SWIG_fail; | |
34443 | arg4 = (int) SWIG_AsInt(obj3); | |
34444 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
34445 | if (obj4) { |
34446 | arg5 = obj4; | |
34447 | } | |
d55e5bfc RD |
34448 | { |
34449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 34450 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
34451 | |
34452 | wxPyEndAllowThreads(__tstate); | |
34453 | if (PyErr_Occurred()) SWIG_fail; | |
34454 | } | |
34455 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34456 | return resultobj; | |
34457 | fail: | |
34458 | return NULL; | |
34459 | } | |
34460 | ||
34461 | ||
34462 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34463 | PyObject *resultobj; | |
34464 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34465 | PyObject * obj0 = 0 ; | |
34466 | char *kwnames[] = { | |
34467 | (char *) "self", NULL | |
34468 | }; | |
34469 | ||
34470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
34471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34473 | { | |
34474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34475 | (arg1)->DeleteWindows(); | |
34476 | ||
34477 | wxPyEndAllowThreads(__tstate); | |
34478 | if (PyErr_Occurred()) SWIG_fail; | |
34479 | } | |
34480 | Py_INCREF(Py_None); resultobj = Py_None; | |
34481 | return resultobj; | |
34482 | fail: | |
34483 | return NULL; | |
34484 | } | |
34485 | ||
34486 | ||
34487 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34488 | PyObject *resultobj; | |
34489 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34490 | PyObject * obj0 = 0 ; | |
34491 | char *kwnames[] = { | |
34492 | (char *) "self", NULL | |
34493 | }; | |
34494 | ||
34495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
34496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34498 | { | |
34499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34500 | (arg1)->DetachSizer(); | |
34501 | ||
34502 | wxPyEndAllowThreads(__tstate); | |
34503 | if (PyErr_Occurred()) SWIG_fail; | |
34504 | } | |
34505 | Py_INCREF(Py_None); resultobj = Py_None; | |
34506 | return resultobj; | |
34507 | fail: | |
34508 | return NULL; | |
34509 | } | |
34510 | ||
34511 | ||
34512 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34513 | PyObject *resultobj; | |
34514 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34515 | wxSize result; | |
34516 | PyObject * obj0 = 0 ; | |
34517 | char *kwnames[] = { | |
34518 | (char *) "self", NULL | |
34519 | }; | |
34520 | ||
34521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
34522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34524 | { | |
34525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34526 | result = (arg1)->GetSize(); | |
34527 | ||
34528 | wxPyEndAllowThreads(__tstate); | |
34529 | if (PyErr_Occurred()) SWIG_fail; | |
34530 | } | |
34531 | { | |
34532 | wxSize * resultptr; | |
34533 | resultptr = new wxSize((wxSize &) result); | |
34534 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34535 | } | |
34536 | return resultobj; | |
34537 | fail: | |
34538 | return NULL; | |
34539 | } | |
34540 | ||
34541 | ||
34542 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34543 | PyObject *resultobj; | |
34544 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34545 | wxSize result; | |
34546 | PyObject * obj0 = 0 ; | |
34547 | char *kwnames[] = { | |
34548 | (char *) "self", NULL | |
34549 | }; | |
34550 | ||
34551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
34552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34554 | { | |
34555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34556 | result = (arg1)->CalcMin(); | |
34557 | ||
34558 | wxPyEndAllowThreads(__tstate); | |
34559 | if (PyErr_Occurred()) SWIG_fail; | |
34560 | } | |
34561 | { | |
34562 | wxSize * resultptr; | |
34563 | resultptr = new wxSize((wxSize &) result); | |
34564 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34565 | } | |
34566 | return resultobj; | |
34567 | fail: | |
34568 | return NULL; | |
34569 | } | |
34570 | ||
34571 | ||
34572 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34573 | PyObject *resultobj; | |
34574 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34575 | wxPoint arg2 ; | |
34576 | wxSize arg3 ; | |
34577 | wxPoint *argp2 ; | |
34578 | wxSize *argp3 ; | |
34579 | PyObject * obj0 = 0 ; | |
34580 | PyObject * obj1 = 0 ; | |
34581 | PyObject * obj2 = 0 ; | |
34582 | char *kwnames[] = { | |
34583 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
34584 | }; | |
34585 | ||
34586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34589 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
34590 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34591 | arg2 = *argp2; | |
34592 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
34593 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34594 | arg3 = *argp3; | |
34595 | { | |
34596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34597 | (arg1)->SetDimension(arg2,arg3); | |
34598 | ||
34599 | wxPyEndAllowThreads(__tstate); | |
34600 | if (PyErr_Occurred()) SWIG_fail; | |
34601 | } | |
34602 | Py_INCREF(Py_None); resultobj = Py_None; | |
34603 | return resultobj; | |
34604 | fail: | |
34605 | return NULL; | |
34606 | } | |
34607 | ||
34608 | ||
34609 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34610 | PyObject *resultobj; | |
34611 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34612 | wxSize result; | |
34613 | PyObject * obj0 = 0 ; | |
34614 | char *kwnames[] = { | |
34615 | (char *) "self", NULL | |
34616 | }; | |
34617 | ||
34618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
34619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34621 | { | |
34622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34623 | result = (arg1)->GetMinSize(); | |
34624 | ||
34625 | wxPyEndAllowThreads(__tstate); | |
34626 | if (PyErr_Occurred()) SWIG_fail; | |
34627 | } | |
34628 | { | |
34629 | wxSize * resultptr; | |
34630 | resultptr = new wxSize((wxSize &) result); | |
34631 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34632 | } | |
34633 | return resultobj; | |
34634 | fail: | |
34635 | return NULL; | |
34636 | } | |
34637 | ||
34638 | ||
a001823c RD |
34639 | static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *self, PyObject *args, PyObject *kwargs) { |
34640 | PyObject *resultobj; | |
34641 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34642 | wxSize result; | |
34643 | PyObject * obj0 = 0 ; | |
34644 | char *kwnames[] = { | |
34645 | (char *) "self", NULL | |
34646 | }; | |
34647 | ||
34648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail; | |
34649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34651 | { | |
34652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34653 | result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder(); | |
34654 | ||
34655 | wxPyEndAllowThreads(__tstate); | |
34656 | if (PyErr_Occurred()) SWIG_fail; | |
34657 | } | |
34658 | { | |
34659 | wxSize * resultptr; | |
34660 | resultptr = new wxSize((wxSize &) result); | |
34661 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34662 | } | |
34663 | return resultobj; | |
34664 | fail: | |
34665 | return NULL; | |
34666 | } | |
34667 | ||
34668 | ||
d55e5bfc RD |
34669 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
34670 | PyObject *resultobj; | |
34671 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34672 | int arg2 ; | |
34673 | int arg3 ; | |
34674 | PyObject * obj0 = 0 ; | |
34675 | PyObject * obj1 = 0 ; | |
34676 | PyObject * obj2 = 0 ; | |
34677 | char *kwnames[] = { | |
34678 | (char *) "self",(char *) "x",(char *) "y", NULL | |
34679 | }; | |
34680 | ||
34681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34684 | arg2 = (int) SWIG_AsInt(obj1); | |
34685 | if (PyErr_Occurred()) SWIG_fail; | |
34686 | arg3 = (int) SWIG_AsInt(obj2); | |
34687 | if (PyErr_Occurred()) SWIG_fail; | |
34688 | { | |
34689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34690 | (arg1)->SetInitSize(arg2,arg3); | |
34691 | ||
34692 | wxPyEndAllowThreads(__tstate); | |
34693 | if (PyErr_Occurred()) SWIG_fail; | |
34694 | } | |
34695 | Py_INCREF(Py_None); resultobj = Py_None; | |
34696 | return resultobj; | |
34697 | fail: | |
34698 | return NULL; | |
34699 | } | |
34700 | ||
34701 | ||
34702 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34703 | PyObject *resultobj; | |
34704 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34705 | int arg2 ; | |
34706 | int arg3 ; | |
34707 | PyObject * obj0 = 0 ; | |
34708 | PyObject * obj1 = 0 ; | |
34709 | PyObject * obj2 = 0 ; | |
34710 | char *kwnames[] = { | |
34711 | (char *) "self",(char *) "width",(char *) "height", NULL | |
34712 | }; | |
34713 | ||
34714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34717 | arg2 = (int) SWIG_AsInt(obj1); | |
34718 | if (PyErr_Occurred()) SWIG_fail; | |
34719 | arg3 = (int) SWIG_AsInt(obj2); | |
34720 | if (PyErr_Occurred()) SWIG_fail; | |
34721 | { | |
34722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34723 | (arg1)->SetRatio(arg2,arg3); | |
34724 | ||
34725 | wxPyEndAllowThreads(__tstate); | |
34726 | if (PyErr_Occurred()) SWIG_fail; | |
34727 | } | |
34728 | Py_INCREF(Py_None); resultobj = Py_None; | |
34729 | return resultobj; | |
34730 | fail: | |
34731 | return NULL; | |
34732 | } | |
34733 | ||
34734 | ||
34735 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34736 | PyObject *resultobj; | |
34737 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34738 | wxSize arg2 ; | |
34739 | wxSize *argp2 ; | |
34740 | PyObject * obj0 = 0 ; | |
34741 | PyObject * obj1 = 0 ; | |
34742 | char *kwnames[] = { | |
34743 | (char *) "self",(char *) "size", NULL | |
34744 | }; | |
34745 | ||
34746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
34747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34749 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
34750 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34751 | arg2 = *argp2; | |
34752 | { | |
34753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34754 | (arg1)->SetRatio(arg2); | |
34755 | ||
34756 | wxPyEndAllowThreads(__tstate); | |
34757 | if (PyErr_Occurred()) SWIG_fail; | |
34758 | } | |
34759 | Py_INCREF(Py_None); resultobj = Py_None; | |
34760 | return resultobj; | |
34761 | fail: | |
34762 | return NULL; | |
34763 | } | |
34764 | ||
34765 | ||
34766 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34767 | PyObject *resultobj; | |
34768 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34769 | float arg2 ; | |
34770 | PyObject * obj0 = 0 ; | |
34771 | PyObject * obj1 = 0 ; | |
34772 | char *kwnames[] = { | |
34773 | (char *) "self",(char *) "ratio", NULL | |
34774 | }; | |
34775 | ||
34776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; | |
34777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34779 | arg2 = (float) SWIG_AsFloat(obj1); | |
34780 | if (PyErr_Occurred()) SWIG_fail; | |
34781 | { | |
34782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34783 | (arg1)->SetRatio(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_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34796 | PyObject *resultobj; | |
34797 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34798 | float result; | |
34799 | PyObject * obj0 = 0 ; | |
34800 | char *kwnames[] = { | |
34801 | (char *) "self", NULL | |
34802 | }; | |
34803 | ||
34804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
34805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34807 | { | |
34808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34809 | result = (float)(arg1)->GetRatio(); | |
34810 | ||
34811 | wxPyEndAllowThreads(__tstate); | |
34812 | if (PyErr_Occurred()) SWIG_fail; | |
34813 | } | |
34814 | resultobj = SWIG_FromFloat((float)result); | |
34815 | return resultobj; | |
34816 | fail: | |
34817 | return NULL; | |
34818 | } | |
34819 | ||
34820 | ||
34821 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34822 | PyObject *resultobj; | |
34823 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34824 | bool result; | |
34825 | PyObject * obj0 = 0 ; | |
34826 | char *kwnames[] = { | |
34827 | (char *) "self", NULL | |
34828 | }; | |
34829 | ||
34830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
34831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34833 | { | |
34834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34835 | result = (bool)(arg1)->IsWindow(); | |
34836 | ||
34837 | wxPyEndAllowThreads(__tstate); | |
34838 | if (PyErr_Occurred()) SWIG_fail; | |
34839 | } | |
34840 | { | |
34841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34842 | } | |
34843 | return resultobj; | |
34844 | fail: | |
34845 | return NULL; | |
34846 | } | |
34847 | ||
34848 | ||
34849 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34850 | PyObject *resultobj; | |
34851 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34852 | bool result; | |
34853 | PyObject * obj0 = 0 ; | |
34854 | char *kwnames[] = { | |
34855 | (char *) "self", NULL | |
34856 | }; | |
34857 | ||
34858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
34859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34861 | { | |
34862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34863 | result = (bool)(arg1)->IsSizer(); | |
34864 | ||
34865 | wxPyEndAllowThreads(__tstate); | |
34866 | if (PyErr_Occurred()) SWIG_fail; | |
34867 | } | |
34868 | { | |
34869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34870 | } | |
34871 | return resultobj; | |
34872 | fail: | |
34873 | return NULL; | |
34874 | } | |
34875 | ||
34876 | ||
34877 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34878 | PyObject *resultobj; | |
34879 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34880 | bool result; | |
34881 | PyObject * obj0 = 0 ; | |
34882 | char *kwnames[] = { | |
34883 | (char *) "self", NULL | |
34884 | }; | |
34885 | ||
34886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
34887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34889 | { | |
34890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34891 | result = (bool)(arg1)->IsSpacer(); | |
34892 | ||
34893 | wxPyEndAllowThreads(__tstate); | |
34894 | if (PyErr_Occurred()) SWIG_fail; | |
34895 | } | |
34896 | { | |
34897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34898 | } | |
34899 | return resultobj; | |
34900 | fail: | |
34901 | return NULL; | |
34902 | } | |
34903 | ||
34904 | ||
34905 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34906 | PyObject *resultobj; | |
34907 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34908 | int arg2 ; | |
34909 | PyObject * obj0 = 0 ; | |
34910 | PyObject * obj1 = 0 ; | |
34911 | char *kwnames[] = { | |
34912 | (char *) "self",(char *) "proportion", NULL | |
34913 | }; | |
34914 | ||
34915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; | |
34916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34918 | arg2 = (int) SWIG_AsInt(obj1); | |
34919 | if (PyErr_Occurred()) SWIG_fail; | |
34920 | { | |
34921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34922 | (arg1)->SetProportion(arg2); | |
34923 | ||
34924 | wxPyEndAllowThreads(__tstate); | |
34925 | if (PyErr_Occurred()) SWIG_fail; | |
34926 | } | |
34927 | Py_INCREF(Py_None); resultobj = Py_None; | |
34928 | return resultobj; | |
34929 | fail: | |
34930 | return NULL; | |
34931 | } | |
34932 | ||
34933 | ||
34934 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34935 | PyObject *resultobj; | |
34936 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34937 | int result; | |
34938 | PyObject * obj0 = 0 ; | |
34939 | char *kwnames[] = { | |
34940 | (char *) "self", NULL | |
34941 | }; | |
34942 | ||
34943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
34944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34946 | { | |
34947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34948 | result = (int)(arg1)->GetProportion(); | |
34949 | ||
34950 | wxPyEndAllowThreads(__tstate); | |
34951 | if (PyErr_Occurred()) SWIG_fail; | |
34952 | } | |
34953 | resultobj = SWIG_FromInt((int)result); | |
34954 | return resultobj; | |
34955 | fail: | |
34956 | return NULL; | |
34957 | } | |
34958 | ||
34959 | ||
34960 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34961 | PyObject *resultobj; | |
34962 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34963 | int arg2 ; | |
34964 | PyObject * obj0 = 0 ; | |
34965 | PyObject * obj1 = 0 ; | |
34966 | char *kwnames[] = { | |
34967 | (char *) "self",(char *) "flag", NULL | |
34968 | }; | |
34969 | ||
34970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; | |
34971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34973 | arg2 = (int) SWIG_AsInt(obj1); | |
34974 | if (PyErr_Occurred()) SWIG_fail; | |
34975 | { | |
34976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34977 | (arg1)->SetFlag(arg2); | |
34978 | ||
34979 | wxPyEndAllowThreads(__tstate); | |
34980 | if (PyErr_Occurred()) SWIG_fail; | |
34981 | } | |
34982 | Py_INCREF(Py_None); resultobj = Py_None; | |
34983 | return resultobj; | |
34984 | fail: | |
34985 | return NULL; | |
34986 | } | |
34987 | ||
34988 | ||
34989 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34990 | PyObject *resultobj; | |
34991 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34992 | int result; | |
34993 | PyObject * obj0 = 0 ; | |
34994 | char *kwnames[] = { | |
34995 | (char *) "self", NULL | |
34996 | }; | |
34997 | ||
34998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
34999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35001 | { | |
35002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35003 | result = (int)(arg1)->GetFlag(); | |
35004 | ||
35005 | wxPyEndAllowThreads(__tstate); | |
35006 | if (PyErr_Occurred()) SWIG_fail; | |
35007 | } | |
35008 | resultobj = SWIG_FromInt((int)result); | |
35009 | return resultobj; | |
35010 | fail: | |
35011 | return NULL; | |
35012 | } | |
35013 | ||
35014 | ||
35015 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35016 | PyObject *resultobj; | |
35017 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35018 | int arg2 ; | |
35019 | PyObject * obj0 = 0 ; | |
35020 | PyObject * obj1 = 0 ; | |
35021 | char *kwnames[] = { | |
35022 | (char *) "self",(char *) "border", NULL | |
35023 | }; | |
35024 | ||
35025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; | |
35026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35028 | arg2 = (int) SWIG_AsInt(obj1); | |
35029 | if (PyErr_Occurred()) SWIG_fail; | |
35030 | { | |
35031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35032 | (arg1)->SetBorder(arg2); | |
35033 | ||
35034 | wxPyEndAllowThreads(__tstate); | |
35035 | if (PyErr_Occurred()) SWIG_fail; | |
35036 | } | |
35037 | Py_INCREF(Py_None); resultobj = Py_None; | |
35038 | return resultobj; | |
35039 | fail: | |
35040 | return NULL; | |
35041 | } | |
35042 | ||
35043 | ||
35044 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35045 | PyObject *resultobj; | |
35046 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35047 | int result; | |
35048 | PyObject * obj0 = 0 ; | |
35049 | char *kwnames[] = { | |
35050 | (char *) "self", NULL | |
35051 | }; | |
35052 | ||
35053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
35054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35056 | { | |
35057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35058 | result = (int)(arg1)->GetBorder(); | |
35059 | ||
35060 | wxPyEndAllowThreads(__tstate); | |
35061 | if (PyErr_Occurred()) SWIG_fail; | |
35062 | } | |
35063 | resultobj = SWIG_FromInt((int)result); | |
35064 | return resultobj; | |
35065 | fail: | |
35066 | return NULL; | |
35067 | } | |
35068 | ||
35069 | ||
35070 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35071 | PyObject *resultobj; | |
35072 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35073 | wxWindow *result; | |
35074 | PyObject * obj0 = 0 ; | |
35075 | char *kwnames[] = { | |
35076 | (char *) "self", NULL | |
35077 | }; | |
35078 | ||
35079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
35080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35082 | { | |
35083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35084 | result = (wxWindow *)(arg1)->GetWindow(); | |
35085 | ||
35086 | wxPyEndAllowThreads(__tstate); | |
35087 | if (PyErr_Occurred()) SWIG_fail; | |
35088 | } | |
35089 | { | |
412d302d | 35090 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35091 | } |
35092 | return resultobj; | |
35093 | fail: | |
35094 | return NULL; | |
35095 | } | |
35096 | ||
35097 | ||
35098 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35099 | PyObject *resultobj; | |
35100 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35101 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35102 | PyObject * obj0 = 0 ; | |
35103 | PyObject * obj1 = 0 ; | |
35104 | char *kwnames[] = { | |
35105 | (char *) "self",(char *) "window", NULL | |
35106 | }; | |
35107 | ||
35108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
35109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35111 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35113 | { | |
35114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35115 | (arg1)->SetWindow(arg2); | |
35116 | ||
35117 | wxPyEndAllowThreads(__tstate); | |
35118 | if (PyErr_Occurred()) SWIG_fail; | |
35119 | } | |
35120 | Py_INCREF(Py_None); resultobj = Py_None; | |
35121 | return resultobj; | |
35122 | fail: | |
35123 | return NULL; | |
35124 | } | |
35125 | ||
35126 | ||
35127 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35128 | PyObject *resultobj; | |
35129 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35130 | wxSizer *result; | |
35131 | PyObject * obj0 = 0 ; | |
35132 | char *kwnames[] = { | |
35133 | (char *) "self", NULL | |
35134 | }; | |
35135 | ||
35136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
35137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35139 | { | |
35140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35141 | result = (wxSizer *)(arg1)->GetSizer(); | |
35142 | ||
35143 | wxPyEndAllowThreads(__tstate); | |
35144 | if (PyErr_Occurred()) SWIG_fail; | |
35145 | } | |
35146 | { | |
412d302d | 35147 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
35148 | } |
35149 | return resultobj; | |
35150 | fail: | |
35151 | return NULL; | |
35152 | } | |
35153 | ||
35154 | ||
35155 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35156 | PyObject *resultobj; | |
35157 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35158 | wxSizer *arg2 = (wxSizer *) 0 ; | |
35159 | PyObject * obj0 = 0 ; | |
35160 | PyObject * obj1 = 0 ; | |
35161 | char *kwnames[] = { | |
35162 | (char *) "self",(char *) "sizer", NULL | |
35163 | }; | |
35164 | ||
35165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
35166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35168 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
35169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35170 | { | |
35171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35172 | (arg1)->SetSizer(arg2); | |
35173 | ||
35174 | wxPyEndAllowThreads(__tstate); | |
35175 | if (PyErr_Occurred()) SWIG_fail; | |
35176 | } | |
35177 | Py_INCREF(Py_None); resultobj = Py_None; | |
35178 | return resultobj; | |
35179 | fail: | |
35180 | return NULL; | |
35181 | } | |
35182 | ||
35183 | ||
35184 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35185 | PyObject *resultobj; | |
35186 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35187 | wxSize *result; | |
35188 | PyObject * obj0 = 0 ; | |
35189 | char *kwnames[] = { | |
35190 | (char *) "self", NULL | |
35191 | }; | |
35192 | ||
35193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
35194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35196 | { | |
35197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35198 | { | |
35199 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
35200 | result = (wxSize *) &_result_ref; | |
35201 | } | |
35202 | ||
35203 | wxPyEndAllowThreads(__tstate); | |
35204 | if (PyErr_Occurred()) SWIG_fail; | |
35205 | } | |
35206 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
35207 | return resultobj; | |
35208 | fail: | |
35209 | return NULL; | |
35210 | } | |
35211 | ||
35212 | ||
35213 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35214 | PyObject *resultobj; | |
35215 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35216 | wxSize *arg2 = 0 ; | |
35217 | wxSize temp2 ; | |
35218 | PyObject * obj0 = 0 ; | |
35219 | PyObject * obj1 = 0 ; | |
35220 | char *kwnames[] = { | |
35221 | (char *) "self",(char *) "size", NULL | |
35222 | }; | |
35223 | ||
35224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
35225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35227 | { | |
35228 | arg2 = &temp2; | |
35229 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35230 | } | |
35231 | { | |
35232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35233 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
35234 | ||
35235 | wxPyEndAllowThreads(__tstate); | |
35236 | if (PyErr_Occurred()) SWIG_fail; | |
35237 | } | |
35238 | Py_INCREF(Py_None); resultobj = Py_None; | |
35239 | return resultobj; | |
35240 | fail: | |
35241 | return NULL; | |
35242 | } | |
35243 | ||
35244 | ||
35245 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35246 | PyObject *resultobj; | |
35247 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35248 | bool arg2 ; | |
35249 | PyObject * obj0 = 0 ; | |
35250 | PyObject * obj1 = 0 ; | |
35251 | char *kwnames[] = { | |
35252 | (char *) "self",(char *) "show", NULL | |
35253 | }; | |
35254 | ||
35255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
35256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35258 | arg2 = (bool) SWIG_AsBool(obj1); | |
35259 | if (PyErr_Occurred()) SWIG_fail; | |
35260 | { | |
35261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35262 | (arg1)->Show(arg2); | |
35263 | ||
35264 | wxPyEndAllowThreads(__tstate); | |
35265 | if (PyErr_Occurred()) SWIG_fail; | |
35266 | } | |
35267 | Py_INCREF(Py_None); resultobj = Py_None; | |
35268 | return resultobj; | |
35269 | fail: | |
35270 | return NULL; | |
35271 | } | |
35272 | ||
35273 | ||
35274 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35275 | PyObject *resultobj; | |
35276 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35277 | bool result; | |
35278 | PyObject * obj0 = 0 ; | |
35279 | char *kwnames[] = { | |
35280 | (char *) "self", NULL | |
35281 | }; | |
35282 | ||
35283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
35284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35286 | { | |
35287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35288 | result = (bool)(arg1)->IsShown(); | |
35289 | ||
35290 | wxPyEndAllowThreads(__tstate); | |
35291 | if (PyErr_Occurred()) SWIG_fail; | |
35292 | } | |
35293 | { | |
35294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35295 | } | |
35296 | return resultobj; | |
35297 | fail: | |
35298 | return NULL; | |
35299 | } | |
35300 | ||
35301 | ||
35302 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35303 | PyObject *resultobj; | |
35304 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35305 | wxPoint result; | |
35306 | PyObject * obj0 = 0 ; | |
35307 | char *kwnames[] = { | |
35308 | (char *) "self", NULL | |
35309 | }; | |
35310 | ||
35311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
35312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35314 | { | |
35315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35316 | result = (arg1)->GetPosition(); | |
35317 | ||
35318 | wxPyEndAllowThreads(__tstate); | |
35319 | if (PyErr_Occurred()) SWIG_fail; | |
35320 | } | |
35321 | { | |
35322 | wxPoint * resultptr; | |
35323 | resultptr = new wxPoint((wxPoint &) result); | |
35324 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
35325 | } | |
35326 | return resultobj; | |
35327 | fail: | |
35328 | return NULL; | |
35329 | } | |
35330 | ||
35331 | ||
35332 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35333 | PyObject *resultobj; | |
35334 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35335 | PyObject *result; | |
35336 | PyObject * obj0 = 0 ; | |
35337 | char *kwnames[] = { | |
35338 | (char *) "self", NULL | |
35339 | }; | |
35340 | ||
35341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
35342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35344 | { | |
35345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35346 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
35347 | ||
35348 | wxPyEndAllowThreads(__tstate); | |
35349 | if (PyErr_Occurred()) SWIG_fail; | |
35350 | } | |
35351 | resultobj = result; | |
35352 | return resultobj; | |
35353 | fail: | |
35354 | return NULL; | |
35355 | } | |
35356 | ||
35357 | ||
35358 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
35359 | PyObject *obj; | |
35360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35361 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
35362 | Py_INCREF(obj); | |
35363 | return Py_BuildValue((char *)""); | |
35364 | } | |
35365 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35366 | PyObject *resultobj; | |
35367 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35368 | PyObject *arg2 = (PyObject *) 0 ; | |
35369 | PyObject * obj0 = 0 ; | |
35370 | PyObject * obj1 = 0 ; | |
35371 | char *kwnames[] = { | |
35372 | (char *) "self",(char *) "_self", NULL | |
35373 | }; | |
35374 | ||
35375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
35376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35378 | arg2 = obj1; | |
35379 | { | |
35380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35381 | wxSizer__setOORInfo(arg1,arg2); | |
35382 | ||
35383 | wxPyEndAllowThreads(__tstate); | |
35384 | if (PyErr_Occurred()) SWIG_fail; | |
35385 | } | |
35386 | Py_INCREF(Py_None); resultobj = Py_None; | |
35387 | return resultobj; | |
35388 | fail: | |
35389 | return NULL; | |
35390 | } | |
35391 | ||
35392 | ||
35393 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35394 | PyObject *resultobj; | |
35395 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35396 | PyObject *arg2 = (PyObject *) 0 ; | |
35397 | int arg3 = (int) 0 ; | |
35398 | int arg4 = (int) 0 ; | |
35399 | int arg5 = (int) 0 ; | |
35400 | PyObject *arg6 = (PyObject *) NULL ; | |
35401 | PyObject * obj0 = 0 ; | |
35402 | PyObject * obj1 = 0 ; | |
35403 | PyObject * obj2 = 0 ; | |
35404 | PyObject * obj3 = 0 ; | |
35405 | PyObject * obj4 = 0 ; | |
35406 | PyObject * obj5 = 0 ; | |
35407 | char *kwnames[] = { | |
35408 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35409 | }; | |
35410 | ||
35411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35414 | arg2 = obj1; | |
35415 | if (obj2) { | |
35416 | arg3 = (int) SWIG_AsInt(obj2); | |
35417 | if (PyErr_Occurred()) SWIG_fail; | |
35418 | } | |
35419 | if (obj3) { | |
35420 | arg4 = (int) SWIG_AsInt(obj3); | |
35421 | if (PyErr_Occurred()) SWIG_fail; | |
35422 | } | |
35423 | if (obj4) { | |
35424 | arg5 = (int) SWIG_AsInt(obj4); | |
35425 | if (PyErr_Occurred()) SWIG_fail; | |
35426 | } | |
35427 | if (obj5) { | |
35428 | arg6 = obj5; | |
35429 | } | |
35430 | { | |
35431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35432 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
35433 | ||
35434 | wxPyEndAllowThreads(__tstate); | |
35435 | if (PyErr_Occurred()) SWIG_fail; | |
35436 | } | |
35437 | Py_INCREF(Py_None); resultobj = Py_None; | |
35438 | return resultobj; | |
35439 | fail: | |
35440 | return NULL; | |
35441 | } | |
35442 | ||
35443 | ||
35444 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35445 | PyObject *resultobj; | |
35446 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35447 | int arg2 ; | |
35448 | PyObject *arg3 = (PyObject *) 0 ; | |
35449 | int arg4 = (int) 0 ; | |
35450 | int arg5 = (int) 0 ; | |
35451 | int arg6 = (int) 0 ; | |
35452 | PyObject *arg7 = (PyObject *) NULL ; | |
35453 | PyObject * obj0 = 0 ; | |
35454 | PyObject * obj1 = 0 ; | |
35455 | PyObject * obj2 = 0 ; | |
35456 | PyObject * obj3 = 0 ; | |
35457 | PyObject * obj4 = 0 ; | |
35458 | PyObject * obj5 = 0 ; | |
35459 | PyObject * obj6 = 0 ; | |
35460 | char *kwnames[] = { | |
35461 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35462 | }; | |
35463 | ||
35464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
35465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35467 | arg2 = (int) SWIG_AsInt(obj1); | |
35468 | if (PyErr_Occurred()) SWIG_fail; | |
35469 | arg3 = obj2; | |
35470 | if (obj3) { | |
35471 | arg4 = (int) SWIG_AsInt(obj3); | |
35472 | if (PyErr_Occurred()) SWIG_fail; | |
35473 | } | |
35474 | if (obj4) { | |
35475 | arg5 = (int) SWIG_AsInt(obj4); | |
35476 | if (PyErr_Occurred()) SWIG_fail; | |
35477 | } | |
35478 | if (obj5) { | |
35479 | arg6 = (int) SWIG_AsInt(obj5); | |
35480 | if (PyErr_Occurred()) SWIG_fail; | |
35481 | } | |
35482 | if (obj6) { | |
35483 | arg7 = obj6; | |
35484 | } | |
35485 | { | |
35486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35487 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
35488 | ||
35489 | wxPyEndAllowThreads(__tstate); | |
35490 | if (PyErr_Occurred()) SWIG_fail; | |
35491 | } | |
35492 | Py_INCREF(Py_None); resultobj = Py_None; | |
35493 | return resultobj; | |
35494 | fail: | |
35495 | return NULL; | |
35496 | } | |
35497 | ||
35498 | ||
35499 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35500 | PyObject *resultobj; | |
35501 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35502 | PyObject *arg2 = (PyObject *) 0 ; | |
35503 | int arg3 = (int) 0 ; | |
35504 | int arg4 = (int) 0 ; | |
35505 | int arg5 = (int) 0 ; | |
35506 | PyObject *arg6 = (PyObject *) NULL ; | |
35507 | PyObject * obj0 = 0 ; | |
35508 | PyObject * obj1 = 0 ; | |
35509 | PyObject * obj2 = 0 ; | |
35510 | PyObject * obj3 = 0 ; | |
35511 | PyObject * obj4 = 0 ; | |
35512 | PyObject * obj5 = 0 ; | |
35513 | char *kwnames[] = { | |
35514 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35515 | }; | |
35516 | ||
35517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35520 | arg2 = obj1; | |
35521 | if (obj2) { | |
35522 | arg3 = (int) SWIG_AsInt(obj2); | |
35523 | if (PyErr_Occurred()) SWIG_fail; | |
35524 | } | |
35525 | if (obj3) { | |
35526 | arg4 = (int) SWIG_AsInt(obj3); | |
35527 | if (PyErr_Occurred()) SWIG_fail; | |
35528 | } | |
35529 | if (obj4) { | |
35530 | arg5 = (int) SWIG_AsInt(obj4); | |
35531 | if (PyErr_Occurred()) SWIG_fail; | |
35532 | } | |
35533 | if (obj5) { | |
35534 | arg6 = obj5; | |
35535 | } | |
35536 | { | |
35537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35538 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
35539 | ||
35540 | wxPyEndAllowThreads(__tstate); | |
35541 | if (PyErr_Occurred()) SWIG_fail; | |
35542 | } | |
35543 | Py_INCREF(Py_None); resultobj = Py_None; | |
35544 | return resultobj; | |
35545 | fail: | |
35546 | return NULL; | |
35547 | } | |
35548 | ||
35549 | ||
35550 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35551 | PyObject *resultobj; | |
35552 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35553 | PyObject *arg2 = (PyObject *) 0 ; | |
35554 | bool result; | |
35555 | PyObject * obj0 = 0 ; | |
35556 | PyObject * obj1 = 0 ; | |
35557 | char *kwnames[] = { | |
35558 | (char *) "self",(char *) "item", NULL | |
35559 | }; | |
35560 | ||
35561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
35562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35564 | arg2 = obj1; | |
35565 | { | |
35566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35567 | result = (bool)wxSizer_Remove(arg1,arg2); | |
35568 | ||
35569 | wxPyEndAllowThreads(__tstate); | |
35570 | if (PyErr_Occurred()) SWIG_fail; | |
35571 | } | |
35572 | { | |
35573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35574 | } | |
35575 | return resultobj; | |
35576 | fail: | |
35577 | return NULL; | |
35578 | } | |
35579 | ||
35580 | ||
1a6bba1e RD |
35581 | static PyObject *_wrap_Sizer_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { |
35582 | PyObject *resultobj; | |
35583 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35584 | PyObject *arg2 = (PyObject *) 0 ; | |
35585 | bool result; | |
35586 | PyObject * obj0 = 0 ; | |
35587 | PyObject * obj1 = 0 ; | |
35588 | char *kwnames[] = { | |
35589 | (char *) "self",(char *) "item", NULL | |
35590 | }; | |
35591 | ||
35592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
35593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35595 | arg2 = obj1; | |
35596 | { | |
35597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35598 | result = (bool)wxSizer_Detach(arg1,arg2); | |
35599 | ||
35600 | wxPyEndAllowThreads(__tstate); | |
35601 | if (PyErr_Occurred()) SWIG_fail; | |
35602 | } | |
35603 | { | |
35604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35605 | } | |
35606 | return resultobj; | |
35607 | fail: | |
35608 | return NULL; | |
35609 | } | |
35610 | ||
35611 | ||
d55e5bfc RD |
35612 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
35613 | PyObject *resultobj; | |
35614 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35615 | PyObject *arg2 = (PyObject *) 0 ; | |
35616 | wxSize *arg3 = 0 ; | |
35617 | wxSize temp3 ; | |
35618 | PyObject * obj0 = 0 ; | |
35619 | PyObject * obj1 = 0 ; | |
35620 | PyObject * obj2 = 0 ; | |
35621 | char *kwnames[] = { | |
35622 | (char *) "self",(char *) "item",(char *) "size", NULL | |
35623 | }; | |
35624 | ||
35625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35628 | arg2 = obj1; | |
35629 | { | |
35630 | arg3 = &temp3; | |
35631 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
35632 | } | |
35633 | { | |
35634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35635 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); | |
35636 | ||
35637 | wxPyEndAllowThreads(__tstate); | |
35638 | if (PyErr_Occurred()) SWIG_fail; | |
35639 | } | |
35640 | Py_INCREF(Py_None); resultobj = Py_None; | |
35641 | return resultobj; | |
35642 | fail: | |
35643 | return NULL; | |
35644 | } | |
35645 | ||
35646 | ||
35647 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35648 | PyObject *resultobj; | |
35649 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35650 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
35651 | PyObject * obj0 = 0 ; | |
35652 | PyObject * obj1 = 0 ; | |
35653 | char *kwnames[] = { | |
35654 | (char *) "self",(char *) "item", NULL | |
35655 | }; | |
35656 | ||
35657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
35658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
35661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35662 | { | |
35663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35664 | (arg1)->Add(arg2); | |
35665 | ||
35666 | wxPyEndAllowThreads(__tstate); | |
35667 | if (PyErr_Occurred()) SWIG_fail; | |
35668 | } | |
35669 | Py_INCREF(Py_None); resultobj = Py_None; | |
35670 | return resultobj; | |
35671 | fail: | |
35672 | return NULL; | |
35673 | } | |
35674 | ||
35675 | ||
35676 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35677 | PyObject *resultobj; | |
35678 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35679 | size_t arg2 ; | |
35680 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
35681 | PyObject * obj0 = 0 ; | |
35682 | PyObject * obj1 = 0 ; | |
35683 | PyObject * obj2 = 0 ; | |
35684 | char *kwnames[] = { | |
35685 | (char *) "self",(char *) "index",(char *) "item", NULL | |
35686 | }; | |
35687 | ||
35688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35691 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35692 | if (PyErr_Occurred()) SWIG_fail; | |
35693 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
35694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35695 | { | |
35696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35697 | (arg1)->Insert(arg2,arg3); | |
35698 | ||
35699 | wxPyEndAllowThreads(__tstate); | |
35700 | if (PyErr_Occurred()) SWIG_fail; | |
35701 | } | |
35702 | Py_INCREF(Py_None); resultobj = Py_None; | |
35703 | return resultobj; | |
35704 | fail: | |
35705 | return NULL; | |
35706 | } | |
35707 | ||
35708 | ||
35709 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35710 | PyObject *resultobj; | |
35711 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35712 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
35713 | PyObject * obj0 = 0 ; | |
35714 | PyObject * obj1 = 0 ; | |
35715 | char *kwnames[] = { | |
35716 | (char *) "self",(char *) "item", NULL | |
35717 | }; | |
35718 | ||
35719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
35720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
35723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35724 | { | |
35725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35726 | (arg1)->Prepend(arg2); | |
35727 | ||
35728 | wxPyEndAllowThreads(__tstate); | |
35729 | if (PyErr_Occurred()) SWIG_fail; | |
35730 | } | |
35731 | Py_INCREF(Py_None); resultobj = Py_None; | |
35732 | return resultobj; | |
35733 | fail: | |
35734 | return NULL; | |
35735 | } | |
35736 | ||
35737 | ||
35738 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35739 | PyObject *resultobj; | |
35740 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35741 | int arg2 ; | |
35742 | int arg3 ; | |
35743 | int arg4 ; | |
35744 | int arg5 ; | |
35745 | PyObject * obj0 = 0 ; | |
35746 | PyObject * obj1 = 0 ; | |
35747 | PyObject * obj2 = 0 ; | |
35748 | PyObject * obj3 = 0 ; | |
35749 | PyObject * obj4 = 0 ; | |
35750 | char *kwnames[] = { | |
35751 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
35752 | }; | |
35753 | ||
35754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
35755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35757 | arg2 = (int) SWIG_AsInt(obj1); | |
35758 | if (PyErr_Occurred()) SWIG_fail; | |
35759 | arg3 = (int) SWIG_AsInt(obj2); | |
35760 | if (PyErr_Occurred()) SWIG_fail; | |
35761 | arg4 = (int) SWIG_AsInt(obj3); | |
35762 | if (PyErr_Occurred()) SWIG_fail; | |
35763 | arg5 = (int) SWIG_AsInt(obj4); | |
35764 | if (PyErr_Occurred()) SWIG_fail; | |
35765 | { | |
35766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35767 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
35768 | ||
35769 | wxPyEndAllowThreads(__tstate); | |
35770 | if (PyErr_Occurred()) SWIG_fail; | |
35771 | } | |
35772 | Py_INCREF(Py_None); resultobj = Py_None; | |
35773 | return resultobj; | |
35774 | fail: | |
35775 | return NULL; | |
35776 | } | |
35777 | ||
35778 | ||
35779 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35780 | PyObject *resultobj; | |
35781 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35782 | wxSize *arg2 = 0 ; | |
35783 | wxSize temp2 ; | |
35784 | PyObject * obj0 = 0 ; | |
35785 | PyObject * obj1 = 0 ; | |
35786 | char *kwnames[] = { | |
35787 | (char *) "self",(char *) "size", NULL | |
35788 | }; | |
35789 | ||
35790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
35791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35793 | { | |
35794 | arg2 = &temp2; | |
35795 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35796 | } | |
35797 | { | |
35798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35799 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
35800 | ||
35801 | wxPyEndAllowThreads(__tstate); | |
35802 | if (PyErr_Occurred()) SWIG_fail; | |
35803 | } | |
35804 | Py_INCREF(Py_None); resultobj = Py_None; | |
35805 | return resultobj; | |
35806 | fail: | |
35807 | return NULL; | |
35808 | } | |
35809 | ||
35810 | ||
35811 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35812 | PyObject *resultobj; | |
35813 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35814 | wxSize result; | |
35815 | PyObject * obj0 = 0 ; | |
35816 | char *kwnames[] = { | |
35817 | (char *) "self", NULL | |
35818 | }; | |
35819 | ||
35820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
35821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35823 | { | |
35824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35825 | result = (arg1)->GetSize(); | |
35826 | ||
35827 | wxPyEndAllowThreads(__tstate); | |
35828 | if (PyErr_Occurred()) SWIG_fail; | |
35829 | } | |
35830 | { | |
35831 | wxSize * resultptr; | |
35832 | resultptr = new wxSize((wxSize &) result); | |
35833 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35834 | } | |
35835 | return resultobj; | |
35836 | fail: | |
35837 | return NULL; | |
35838 | } | |
35839 | ||
35840 | ||
35841 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35842 | PyObject *resultobj; | |
35843 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35844 | wxPoint result; | |
35845 | PyObject * obj0 = 0 ; | |
35846 | char *kwnames[] = { | |
35847 | (char *) "self", NULL | |
35848 | }; | |
35849 | ||
35850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
35851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35853 | { | |
35854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35855 | result = (arg1)->GetPosition(); | |
35856 | ||
35857 | wxPyEndAllowThreads(__tstate); | |
35858 | if (PyErr_Occurred()) SWIG_fail; | |
35859 | } | |
35860 | { | |
35861 | wxPoint * resultptr; | |
35862 | resultptr = new wxPoint((wxPoint &) result); | |
35863 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
35864 | } | |
35865 | return resultobj; | |
35866 | fail: | |
35867 | return NULL; | |
35868 | } | |
35869 | ||
35870 | ||
35871 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35872 | PyObject *resultobj; | |
35873 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35874 | wxSize result; | |
35875 | PyObject * obj0 = 0 ; | |
35876 | char *kwnames[] = { | |
35877 | (char *) "self", NULL | |
35878 | }; | |
35879 | ||
35880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
35881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35883 | { | |
35884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35885 | result = (arg1)->GetMinSize(); | |
35886 | ||
35887 | wxPyEndAllowThreads(__tstate); | |
35888 | if (PyErr_Occurred()) SWIG_fail; | |
35889 | } | |
35890 | { | |
35891 | wxSize * resultptr; | |
35892 | resultptr = new wxSize((wxSize &) result); | |
35893 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35894 | } | |
35895 | return resultobj; | |
35896 | fail: | |
35897 | return NULL; | |
35898 | } | |
35899 | ||
35900 | ||
35901 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35902 | PyObject *resultobj; | |
35903 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35904 | PyObject * obj0 = 0 ; | |
35905 | char *kwnames[] = { | |
35906 | (char *) "self", NULL | |
35907 | }; | |
35908 | ||
35909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
35910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35912 | { | |
35913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35914 | (arg1)->RecalcSizes(); | |
35915 | ||
35916 | wxPyEndAllowThreads(__tstate); | |
35917 | if (PyErr_Occurred()) SWIG_fail; | |
35918 | } | |
35919 | Py_INCREF(Py_None); resultobj = Py_None; | |
35920 | return resultobj; | |
35921 | fail: | |
35922 | return NULL; | |
35923 | } | |
35924 | ||
35925 | ||
35926 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35927 | PyObject *resultobj; | |
35928 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35929 | wxSize result; | |
35930 | PyObject * obj0 = 0 ; | |
35931 | char *kwnames[] = { | |
35932 | (char *) "self", NULL | |
35933 | }; | |
35934 | ||
35935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
35936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35938 | { | |
35939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35940 | result = (arg1)->CalcMin(); | |
35941 | ||
35942 | wxPyEndAllowThreads(__tstate); | |
35943 | if (PyErr_Occurred()) SWIG_fail; | |
35944 | } | |
35945 | { | |
35946 | wxSize * resultptr; | |
35947 | resultptr = new wxSize((wxSize &) result); | |
35948 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35949 | } | |
35950 | return resultobj; | |
35951 | fail: | |
35952 | return NULL; | |
35953 | } | |
35954 | ||
35955 | ||
35956 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35957 | PyObject *resultobj; | |
35958 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35959 | PyObject * obj0 = 0 ; | |
35960 | char *kwnames[] = { | |
35961 | (char *) "self", NULL | |
35962 | }; | |
35963 | ||
35964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
35965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35967 | { | |
35968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35969 | (arg1)->Layout(); | |
35970 | ||
35971 | wxPyEndAllowThreads(__tstate); | |
35972 | if (PyErr_Occurred()) SWIG_fail; | |
35973 | } | |
35974 | Py_INCREF(Py_None); resultobj = Py_None; | |
35975 | return resultobj; | |
35976 | fail: | |
35977 | return NULL; | |
35978 | } | |
35979 | ||
35980 | ||
35981 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35982 | PyObject *resultobj; | |
35983 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35984 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35985 | wxSize result; | |
35986 | PyObject * obj0 = 0 ; | |
35987 | PyObject * obj1 = 0 ; | |
35988 | char *kwnames[] = { | |
35989 | (char *) "self",(char *) "window", NULL | |
35990 | }; | |
35991 | ||
35992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
35993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35995 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35997 | { | |
35998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35999 | result = (arg1)->Fit(arg2); | |
36000 | ||
36001 | wxPyEndAllowThreads(__tstate); | |
36002 | if (PyErr_Occurred()) SWIG_fail; | |
36003 | } | |
36004 | { | |
36005 | wxSize * resultptr; | |
36006 | resultptr = new wxSize((wxSize &) result); | |
36007 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36008 | } | |
36009 | return resultobj; | |
36010 | fail: | |
36011 | return NULL; | |
36012 | } | |
36013 | ||
36014 | ||
36015 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36016 | PyObject *resultobj; | |
36017 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36018 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36019 | PyObject * obj0 = 0 ; | |
36020 | PyObject * obj1 = 0 ; | |
36021 | char *kwnames[] = { | |
36022 | (char *) "self",(char *) "window", NULL | |
36023 | }; | |
36024 | ||
36025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
36026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36028 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36030 | { | |
36031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36032 | (arg1)->FitInside(arg2); | |
36033 | ||
36034 | wxPyEndAllowThreads(__tstate); | |
36035 | if (PyErr_Occurred()) SWIG_fail; | |
36036 | } | |
36037 | Py_INCREF(Py_None); resultobj = Py_None; | |
36038 | return resultobj; | |
36039 | fail: | |
36040 | return NULL; | |
36041 | } | |
36042 | ||
36043 | ||
36044 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36045 | PyObject *resultobj; | |
36046 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36047 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36048 | PyObject * obj0 = 0 ; | |
36049 | PyObject * obj1 = 0 ; | |
36050 | char *kwnames[] = { | |
36051 | (char *) "self",(char *) "window", NULL | |
36052 | }; | |
36053 | ||
36054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36057 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36059 | { | |
36060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36061 | (arg1)->SetSizeHints(arg2); | |
36062 | ||
36063 | wxPyEndAllowThreads(__tstate); | |
36064 | if (PyErr_Occurred()) SWIG_fail; | |
36065 | } | |
36066 | Py_INCREF(Py_None); resultobj = Py_None; | |
36067 | return resultobj; | |
36068 | fail: | |
36069 | return NULL; | |
36070 | } | |
36071 | ||
36072 | ||
36073 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36074 | PyObject *resultobj; | |
36075 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36076 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36077 | PyObject * obj0 = 0 ; | |
36078 | PyObject * obj1 = 0 ; | |
36079 | char *kwnames[] = { | |
36080 | (char *) "self",(char *) "window", NULL | |
36081 | }; | |
36082 | ||
36083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36086 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36088 | { | |
36089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36090 | (arg1)->SetVirtualSizeHints(arg2); | |
36091 | ||
36092 | wxPyEndAllowThreads(__tstate); | |
36093 | if (PyErr_Occurred()) SWIG_fail; | |
36094 | } | |
36095 | Py_INCREF(Py_None); resultobj = Py_None; | |
36096 | return resultobj; | |
36097 | fail: | |
36098 | return NULL; | |
36099 | } | |
36100 | ||
36101 | ||
36102 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36103 | PyObject *resultobj; | |
36104 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36105 | bool arg2 = (bool) False ; | |
36106 | PyObject * obj0 = 0 ; | |
36107 | PyObject * obj1 = 0 ; | |
36108 | char *kwnames[] = { | |
248ed943 | 36109 | (char *) "self",(char *) "deleteWindows", NULL |
d55e5bfc RD |
36110 | }; |
36111 | ||
36112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
36113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36115 | if (obj1) { | |
36116 | arg2 = (bool) SWIG_AsBool(obj1); | |
36117 | if (PyErr_Occurred()) SWIG_fail; | |
36118 | } | |
36119 | { | |
36120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36121 | (arg1)->Clear(arg2); | |
36122 | ||
36123 | wxPyEndAllowThreads(__tstate); | |
36124 | if (PyErr_Occurred()) SWIG_fail; | |
36125 | } | |
36126 | Py_INCREF(Py_None); resultobj = Py_None; | |
36127 | return resultobj; | |
36128 | fail: | |
36129 | return NULL; | |
36130 | } | |
36131 | ||
36132 | ||
36133 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36134 | PyObject *resultobj; | |
36135 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36136 | PyObject * obj0 = 0 ; | |
36137 | char *kwnames[] = { | |
36138 | (char *) "self", NULL | |
36139 | }; | |
36140 | ||
36141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
36142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36144 | { | |
36145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36146 | (arg1)->DeleteWindows(); | |
36147 | ||
36148 | wxPyEndAllowThreads(__tstate); | |
36149 | if (PyErr_Occurred()) SWIG_fail; | |
36150 | } | |
36151 | Py_INCREF(Py_None); resultobj = Py_None; | |
36152 | return resultobj; | |
36153 | fail: | |
36154 | return NULL; | |
36155 | } | |
36156 | ||
36157 | ||
36158 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36159 | PyObject *resultobj; | |
36160 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36161 | PyObject *result; | |
36162 | PyObject * obj0 = 0 ; | |
36163 | char *kwnames[] = { | |
36164 | (char *) "self", NULL | |
36165 | }; | |
36166 | ||
36167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
36168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36170 | { | |
36171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36172 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
36173 | ||
36174 | wxPyEndAllowThreads(__tstate); | |
36175 | if (PyErr_Occurred()) SWIG_fail; | |
36176 | } | |
36177 | resultobj = result; | |
36178 | return resultobj; | |
36179 | fail: | |
36180 | return NULL; | |
36181 | } | |
36182 | ||
36183 | ||
36184 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36185 | PyObject *resultobj; | |
36186 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36187 | PyObject *arg2 = (PyObject *) 0 ; | |
36188 | bool arg3 = (bool) True ; | |
36189 | PyObject * obj0 = 0 ; | |
36190 | PyObject * obj1 = 0 ; | |
36191 | PyObject * obj2 = 0 ; | |
36192 | char *kwnames[] = { | |
36193 | (char *) "self",(char *) "item",(char *) "show", NULL | |
36194 | }; | |
36195 | ||
36196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36199 | arg2 = obj1; | |
36200 | if (obj2) { | |
36201 | arg3 = (bool) SWIG_AsBool(obj2); | |
36202 | if (PyErr_Occurred()) SWIG_fail; | |
36203 | } | |
36204 | { | |
36205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36206 | wxSizer_Show(arg1,arg2,arg3); | |
36207 | ||
36208 | wxPyEndAllowThreads(__tstate); | |
36209 | if (PyErr_Occurred()) SWIG_fail; | |
36210 | } | |
36211 | Py_INCREF(Py_None); resultobj = Py_None; | |
36212 | return resultobj; | |
36213 | fail: | |
36214 | return NULL; | |
36215 | } | |
36216 | ||
36217 | ||
d55e5bfc RD |
36218 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
36219 | PyObject *resultobj; | |
36220 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36221 | PyObject *arg2 = (PyObject *) 0 ; | |
36222 | bool result; | |
36223 | PyObject * obj0 = 0 ; | |
36224 | PyObject * obj1 = 0 ; | |
36225 | char *kwnames[] = { | |
36226 | (char *) "self",(char *) "item", NULL | |
36227 | }; | |
36228 | ||
36229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
36230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36232 | arg2 = obj1; | |
36233 | { | |
36234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36235 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
36236 | ||
36237 | wxPyEndAllowThreads(__tstate); | |
36238 | if (PyErr_Occurred()) SWIG_fail; | |
36239 | } | |
36240 | { | |
36241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36242 | } | |
36243 | return resultobj; | |
36244 | fail: | |
36245 | return NULL; | |
36246 | } | |
36247 | ||
36248 | ||
36249 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36250 | PyObject *resultobj; | |
36251 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36252 | bool arg2 ; | |
36253 | PyObject * obj0 = 0 ; | |
36254 | PyObject * obj1 = 0 ; | |
36255 | char *kwnames[] = { | |
36256 | (char *) "self",(char *) "show", NULL | |
36257 | }; | |
36258 | ||
36259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
36260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36262 | arg2 = (bool) SWIG_AsBool(obj1); | |
36263 | if (PyErr_Occurred()) SWIG_fail; | |
36264 | { | |
36265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36266 | (arg1)->ShowItems(arg2); | |
36267 | ||
36268 | wxPyEndAllowThreads(__tstate); | |
36269 | if (PyErr_Occurred()) SWIG_fail; | |
36270 | } | |
36271 | Py_INCREF(Py_None); resultobj = Py_None; | |
36272 | return resultobj; | |
36273 | fail: | |
36274 | return NULL; | |
36275 | } | |
36276 | ||
36277 | ||
36278 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
36279 | PyObject *obj; | |
36280 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36281 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
36282 | Py_INCREF(obj); | |
36283 | return Py_BuildValue((char *)""); | |
36284 | } | |
36285 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36286 | PyObject *resultobj; | |
36287 | wxPySizer *result; | |
36288 | char *kwnames[] = { | |
36289 | NULL | |
36290 | }; | |
36291 | ||
36292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
36293 | { | |
36294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36295 | result = (wxPySizer *)new wxPySizer(); | |
36296 | ||
36297 | wxPyEndAllowThreads(__tstate); | |
36298 | if (PyErr_Occurred()) SWIG_fail; | |
36299 | } | |
36300 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); | |
36301 | return resultobj; | |
36302 | fail: | |
36303 | return NULL; | |
36304 | } | |
36305 | ||
36306 | ||
36307 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36308 | PyObject *resultobj; | |
36309 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
36310 | PyObject *arg2 = (PyObject *) 0 ; | |
36311 | PyObject *arg3 = (PyObject *) 0 ; | |
36312 | PyObject * obj0 = 0 ; | |
36313 | PyObject * obj1 = 0 ; | |
36314 | PyObject * obj2 = 0 ; | |
36315 | char *kwnames[] = { | |
36316 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
36317 | }; | |
36318 | ||
36319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, | |
36321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36322 | arg2 = obj1; | |
36323 | arg3 = obj2; | |
36324 | { | |
36325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36326 | (arg1)->_setCallbackInfo(arg2,arg3); | |
36327 | ||
36328 | wxPyEndAllowThreads(__tstate); | |
36329 | if (PyErr_Occurred()) SWIG_fail; | |
36330 | } | |
36331 | Py_INCREF(Py_None); resultobj = Py_None; | |
36332 | return resultobj; | |
36333 | fail: | |
36334 | return NULL; | |
36335 | } | |
36336 | ||
36337 | ||
36338 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
36339 | PyObject *obj; | |
36340 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36341 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
36342 | Py_INCREF(obj); | |
36343 | return Py_BuildValue((char *)""); | |
36344 | } | |
36345 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36346 | PyObject *resultobj; | |
36347 | int arg1 = (int) wxHORIZONTAL ; | |
36348 | wxBoxSizer *result; | |
36349 | PyObject * obj0 = 0 ; | |
36350 | char *kwnames[] = { | |
36351 | (char *) "orient", NULL | |
36352 | }; | |
36353 | ||
36354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; | |
36355 | if (obj0) { | |
36356 | arg1 = (int) SWIG_AsInt(obj0); | |
36357 | if (PyErr_Occurred()) SWIG_fail; | |
36358 | } | |
36359 | { | |
36360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36361 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
36362 | ||
36363 | wxPyEndAllowThreads(__tstate); | |
36364 | if (PyErr_Occurred()) SWIG_fail; | |
36365 | } | |
36366 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); | |
36367 | return resultobj; | |
36368 | fail: | |
36369 | return NULL; | |
36370 | } | |
36371 | ||
36372 | ||
36373 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36374 | PyObject *resultobj; | |
36375 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36376 | int result; | |
36377 | PyObject * obj0 = 0 ; | |
36378 | char *kwnames[] = { | |
36379 | (char *) "self", NULL | |
36380 | }; | |
36381 | ||
36382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
36383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36385 | { | |
36386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36387 | result = (int)(arg1)->GetOrientation(); | |
36388 | ||
36389 | wxPyEndAllowThreads(__tstate); | |
36390 | if (PyErr_Occurred()) SWIG_fail; | |
36391 | } | |
36392 | resultobj = SWIG_FromInt((int)result); | |
36393 | return resultobj; | |
36394 | fail: | |
36395 | return NULL; | |
36396 | } | |
36397 | ||
36398 | ||
36399 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36400 | PyObject *resultobj; | |
36401 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36402 | int arg2 ; | |
36403 | PyObject * obj0 = 0 ; | |
36404 | PyObject * obj1 = 0 ; | |
36405 | char *kwnames[] = { | |
36406 | (char *) "self",(char *) "orient", NULL | |
36407 | }; | |
36408 | ||
36409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
36410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36412 | arg2 = (int) SWIG_AsInt(obj1); | |
36413 | if (PyErr_Occurred()) SWIG_fail; | |
36414 | { | |
36415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36416 | (arg1)->SetOrientation(arg2); | |
36417 | ||
36418 | wxPyEndAllowThreads(__tstate); | |
36419 | if (PyErr_Occurred()) SWIG_fail; | |
36420 | } | |
36421 | Py_INCREF(Py_None); resultobj = Py_None; | |
36422 | return resultobj; | |
36423 | fail: | |
36424 | return NULL; | |
36425 | } | |
36426 | ||
36427 | ||
d55e5bfc RD |
36428 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { |
36429 | PyObject *obj; | |
36430 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36431 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
36432 | Py_INCREF(obj); | |
36433 | return Py_BuildValue((char *)""); | |
36434 | } | |
36435 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36436 | PyObject *resultobj; | |
36437 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
36438 | int arg2 = (int) wxHORIZONTAL ; | |
36439 | wxStaticBoxSizer *result; | |
36440 | PyObject * obj0 = 0 ; | |
36441 | PyObject * obj1 = 0 ; | |
36442 | char *kwnames[] = { | |
36443 | (char *) "box",(char *) "orient", NULL | |
36444 | }; | |
36445 | ||
36446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; | |
36447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, | |
36448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36449 | if (obj1) { | |
36450 | arg2 = (int) SWIG_AsInt(obj1); | |
36451 | if (PyErr_Occurred()) SWIG_fail; | |
36452 | } | |
36453 | { | |
36454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36455 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
36456 | ||
36457 | wxPyEndAllowThreads(__tstate); | |
36458 | if (PyErr_Occurred()) SWIG_fail; | |
36459 | } | |
36460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); | |
36461 | return resultobj; | |
36462 | fail: | |
36463 | return NULL; | |
36464 | } | |
36465 | ||
36466 | ||
36467 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36468 | PyObject *resultobj; | |
36469 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
36470 | wxStaticBox *result; | |
36471 | PyObject * obj0 = 0 ; | |
36472 | char *kwnames[] = { | |
36473 | (char *) "self", NULL | |
36474 | }; | |
36475 | ||
36476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
36477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
36478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36479 | { | |
36480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36481 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
36482 | ||
36483 | wxPyEndAllowThreads(__tstate); | |
36484 | if (PyErr_Occurred()) SWIG_fail; | |
36485 | } | |
36486 | { | |
412d302d | 36487 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
36488 | } |
36489 | return resultobj; | |
36490 | fail: | |
36491 | return NULL; | |
36492 | } | |
36493 | ||
36494 | ||
d55e5bfc RD |
36495 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { |
36496 | PyObject *obj; | |
36497 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36498 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
36499 | Py_INCREF(obj); | |
36500 | return Py_BuildValue((char *)""); | |
36501 | } | |
36502 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36503 | PyObject *resultobj; | |
36504 | int arg1 = (int) 1 ; | |
36505 | int arg2 = (int) 0 ; | |
36506 | int arg3 = (int) 0 ; | |
36507 | int arg4 = (int) 0 ; | |
36508 | wxGridSizer *result; | |
36509 | PyObject * obj0 = 0 ; | |
36510 | PyObject * obj1 = 0 ; | |
36511 | PyObject * obj2 = 0 ; | |
36512 | PyObject * obj3 = 0 ; | |
36513 | char *kwnames[] = { | |
36514 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36515 | }; | |
36516 | ||
36517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36518 | if (obj0) { | |
36519 | arg1 = (int) SWIG_AsInt(obj0); | |
36520 | if (PyErr_Occurred()) SWIG_fail; | |
36521 | } | |
36522 | if (obj1) { | |
36523 | arg2 = (int) SWIG_AsInt(obj1); | |
36524 | if (PyErr_Occurred()) SWIG_fail; | |
36525 | } | |
36526 | if (obj2) { | |
36527 | arg3 = (int) SWIG_AsInt(obj2); | |
36528 | if (PyErr_Occurred()) SWIG_fail; | |
36529 | } | |
36530 | if (obj3) { | |
36531 | arg4 = (int) SWIG_AsInt(obj3); | |
36532 | if (PyErr_Occurred()) SWIG_fail; | |
36533 | } | |
36534 | { | |
36535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36536 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
36537 | ||
36538 | wxPyEndAllowThreads(__tstate); | |
36539 | if (PyErr_Occurred()) SWIG_fail; | |
36540 | } | |
36541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); | |
36542 | return resultobj; | |
36543 | fail: | |
36544 | return NULL; | |
36545 | } | |
36546 | ||
36547 | ||
d55e5bfc RD |
36548 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { |
36549 | PyObject *resultobj; | |
36550 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36551 | int arg2 ; | |
36552 | PyObject * obj0 = 0 ; | |
36553 | PyObject * obj1 = 0 ; | |
36554 | char *kwnames[] = { | |
36555 | (char *) "self",(char *) "cols", NULL | |
36556 | }; | |
36557 | ||
36558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; | |
36559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36561 | arg2 = (int) SWIG_AsInt(obj1); | |
36562 | if (PyErr_Occurred()) SWIG_fail; | |
36563 | { | |
36564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36565 | (arg1)->SetCols(arg2); | |
36566 | ||
36567 | wxPyEndAllowThreads(__tstate); | |
36568 | if (PyErr_Occurred()) SWIG_fail; | |
36569 | } | |
36570 | Py_INCREF(Py_None); resultobj = Py_None; | |
36571 | return resultobj; | |
36572 | fail: | |
36573 | return NULL; | |
36574 | } | |
36575 | ||
36576 | ||
36577 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36578 | PyObject *resultobj; | |
36579 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36580 | int arg2 ; | |
36581 | PyObject * obj0 = 0 ; | |
36582 | PyObject * obj1 = 0 ; | |
36583 | char *kwnames[] = { | |
36584 | (char *) "self",(char *) "rows", NULL | |
36585 | }; | |
36586 | ||
36587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
36588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36590 | arg2 = (int) SWIG_AsInt(obj1); | |
36591 | if (PyErr_Occurred()) SWIG_fail; | |
36592 | { | |
36593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36594 | (arg1)->SetRows(arg2); | |
36595 | ||
36596 | wxPyEndAllowThreads(__tstate); | |
36597 | if (PyErr_Occurred()) SWIG_fail; | |
36598 | } | |
36599 | Py_INCREF(Py_None); resultobj = Py_None; | |
36600 | return resultobj; | |
36601 | fail: | |
36602 | return NULL; | |
36603 | } | |
36604 | ||
36605 | ||
36606 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36607 | PyObject *resultobj; | |
36608 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36609 | int arg2 ; | |
36610 | PyObject * obj0 = 0 ; | |
36611 | PyObject * obj1 = 0 ; | |
36612 | char *kwnames[] = { | |
36613 | (char *) "self",(char *) "gap", NULL | |
36614 | }; | |
36615 | ||
36616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; | |
36617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36619 | arg2 = (int) SWIG_AsInt(obj1); | |
36620 | if (PyErr_Occurred()) SWIG_fail; | |
36621 | { | |
36622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36623 | (arg1)->SetVGap(arg2); | |
36624 | ||
36625 | wxPyEndAllowThreads(__tstate); | |
36626 | if (PyErr_Occurred()) SWIG_fail; | |
36627 | } | |
36628 | Py_INCREF(Py_None); resultobj = Py_None; | |
36629 | return resultobj; | |
36630 | fail: | |
36631 | return NULL; | |
36632 | } | |
36633 | ||
36634 | ||
36635 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36636 | PyObject *resultobj; | |
36637 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36638 | int arg2 ; | |
36639 | PyObject * obj0 = 0 ; | |
36640 | PyObject * obj1 = 0 ; | |
36641 | char *kwnames[] = { | |
36642 | (char *) "self",(char *) "gap", NULL | |
36643 | }; | |
36644 | ||
36645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; | |
36646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36648 | arg2 = (int) SWIG_AsInt(obj1); | |
36649 | if (PyErr_Occurred()) SWIG_fail; | |
36650 | { | |
36651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36652 | (arg1)->SetHGap(arg2); | |
36653 | ||
36654 | wxPyEndAllowThreads(__tstate); | |
36655 | if (PyErr_Occurred()) SWIG_fail; | |
36656 | } | |
36657 | Py_INCREF(Py_None); resultobj = Py_None; | |
36658 | return resultobj; | |
36659 | fail: | |
36660 | return NULL; | |
36661 | } | |
36662 | ||
36663 | ||
36664 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36665 | PyObject *resultobj; | |
36666 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36667 | int result; | |
36668 | PyObject * obj0 = 0 ; | |
36669 | char *kwnames[] = { | |
36670 | (char *) "self", NULL | |
36671 | }; | |
36672 | ||
36673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
36674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36676 | { | |
36677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36678 | result = (int)(arg1)->GetCols(); | |
36679 | ||
36680 | wxPyEndAllowThreads(__tstate); | |
36681 | if (PyErr_Occurred()) SWIG_fail; | |
36682 | } | |
36683 | resultobj = SWIG_FromInt((int)result); | |
36684 | return resultobj; | |
36685 | fail: | |
36686 | return NULL; | |
36687 | } | |
36688 | ||
36689 | ||
36690 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36691 | PyObject *resultobj; | |
36692 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36693 | int result; | |
36694 | PyObject * obj0 = 0 ; | |
36695 | char *kwnames[] = { | |
36696 | (char *) "self", NULL | |
36697 | }; | |
36698 | ||
36699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
36700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36702 | { | |
36703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36704 | result = (int)(arg1)->GetRows(); | |
36705 | ||
36706 | wxPyEndAllowThreads(__tstate); | |
36707 | if (PyErr_Occurred()) SWIG_fail; | |
36708 | } | |
36709 | resultobj = SWIG_FromInt((int)result); | |
36710 | return resultobj; | |
36711 | fail: | |
36712 | return NULL; | |
36713 | } | |
36714 | ||
36715 | ||
36716 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36717 | PyObject *resultobj; | |
36718 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36719 | int result; | |
36720 | PyObject * obj0 = 0 ; | |
36721 | char *kwnames[] = { | |
36722 | (char *) "self", NULL | |
36723 | }; | |
36724 | ||
36725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
36726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36728 | { | |
36729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36730 | result = (int)(arg1)->GetVGap(); | |
36731 | ||
36732 | wxPyEndAllowThreads(__tstate); | |
36733 | if (PyErr_Occurred()) SWIG_fail; | |
36734 | } | |
36735 | resultobj = SWIG_FromInt((int)result); | |
36736 | return resultobj; | |
36737 | fail: | |
36738 | return NULL; | |
36739 | } | |
36740 | ||
36741 | ||
36742 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36743 | PyObject *resultobj; | |
36744 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36745 | int result; | |
36746 | PyObject * obj0 = 0 ; | |
36747 | char *kwnames[] = { | |
36748 | (char *) "self", NULL | |
36749 | }; | |
36750 | ||
36751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
36752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36754 | { | |
36755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36756 | result = (int)(arg1)->GetHGap(); | |
36757 | ||
36758 | wxPyEndAllowThreads(__tstate); | |
36759 | if (PyErr_Occurred()) SWIG_fail; | |
36760 | } | |
36761 | resultobj = SWIG_FromInt((int)result); | |
36762 | return resultobj; | |
36763 | fail: | |
36764 | return NULL; | |
36765 | } | |
36766 | ||
36767 | ||
36768 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
36769 | PyObject *obj; | |
36770 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36771 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
36772 | Py_INCREF(obj); | |
36773 | return Py_BuildValue((char *)""); | |
36774 | } | |
36775 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36776 | PyObject *resultobj; | |
36777 | int arg1 = (int) 1 ; | |
36778 | int arg2 = (int) 0 ; | |
36779 | int arg3 = (int) 0 ; | |
36780 | int arg4 = (int) 0 ; | |
36781 | wxFlexGridSizer *result; | |
36782 | PyObject * obj0 = 0 ; | |
36783 | PyObject * obj1 = 0 ; | |
36784 | PyObject * obj2 = 0 ; | |
36785 | PyObject * obj3 = 0 ; | |
36786 | char *kwnames[] = { | |
36787 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36788 | }; | |
36789 | ||
36790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36791 | if (obj0) { | |
36792 | arg1 = (int) SWIG_AsInt(obj0); | |
36793 | if (PyErr_Occurred()) SWIG_fail; | |
36794 | } | |
36795 | if (obj1) { | |
36796 | arg2 = (int) SWIG_AsInt(obj1); | |
36797 | if (PyErr_Occurred()) SWIG_fail; | |
36798 | } | |
36799 | if (obj2) { | |
36800 | arg3 = (int) SWIG_AsInt(obj2); | |
36801 | if (PyErr_Occurred()) SWIG_fail; | |
36802 | } | |
36803 | if (obj3) { | |
36804 | arg4 = (int) SWIG_AsInt(obj3); | |
36805 | if (PyErr_Occurred()) SWIG_fail; | |
36806 | } | |
36807 | { | |
36808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36809 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
36810 | ||
36811 | wxPyEndAllowThreads(__tstate); | |
36812 | if (PyErr_Occurred()) SWIG_fail; | |
36813 | } | |
36814 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); | |
36815 | return resultobj; | |
36816 | fail: | |
36817 | return NULL; | |
36818 | } | |
36819 | ||
36820 | ||
d55e5bfc RD |
36821 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { |
36822 | PyObject *resultobj; | |
36823 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36824 | size_t arg2 ; | |
36825 | int arg3 = (int) 0 ; | |
36826 | PyObject * obj0 = 0 ; | |
36827 | PyObject * obj1 = 0 ; | |
36828 | PyObject * obj2 = 0 ; | |
36829 | char *kwnames[] = { | |
36830 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36831 | }; | |
36832 | ||
36833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36836 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36837 | if (PyErr_Occurred()) SWIG_fail; | |
36838 | if (obj2) { | |
36839 | arg3 = (int) SWIG_AsInt(obj2); | |
36840 | if (PyErr_Occurred()) SWIG_fail; | |
36841 | } | |
36842 | { | |
36843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36844 | (arg1)->AddGrowableRow(arg2,arg3); | |
36845 | ||
36846 | wxPyEndAllowThreads(__tstate); | |
36847 | if (PyErr_Occurred()) SWIG_fail; | |
36848 | } | |
36849 | Py_INCREF(Py_None); resultobj = Py_None; | |
36850 | return resultobj; | |
36851 | fail: | |
36852 | return NULL; | |
36853 | } | |
36854 | ||
36855 | ||
36856 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36857 | PyObject *resultobj; | |
36858 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36859 | size_t arg2 ; | |
36860 | PyObject * obj0 = 0 ; | |
36861 | PyObject * obj1 = 0 ; | |
36862 | char *kwnames[] = { | |
36863 | (char *) "self",(char *) "idx", NULL | |
36864 | }; | |
36865 | ||
36866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
36867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36869 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36870 | if (PyErr_Occurred()) SWIG_fail; | |
36871 | { | |
36872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36873 | (arg1)->RemoveGrowableRow(arg2); | |
36874 | ||
36875 | wxPyEndAllowThreads(__tstate); | |
36876 | if (PyErr_Occurred()) SWIG_fail; | |
36877 | } | |
36878 | Py_INCREF(Py_None); resultobj = Py_None; | |
36879 | return resultobj; | |
36880 | fail: | |
36881 | return NULL; | |
36882 | } | |
36883 | ||
36884 | ||
36885 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36886 | PyObject *resultobj; | |
36887 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36888 | size_t arg2 ; | |
36889 | int arg3 = (int) 0 ; | |
36890 | PyObject * obj0 = 0 ; | |
36891 | PyObject * obj1 = 0 ; | |
36892 | PyObject * obj2 = 0 ; | |
36893 | char *kwnames[] = { | |
36894 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36895 | }; | |
36896 | ||
36897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36900 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36901 | if (PyErr_Occurred()) SWIG_fail; | |
36902 | if (obj2) { | |
36903 | arg3 = (int) SWIG_AsInt(obj2); | |
36904 | if (PyErr_Occurred()) SWIG_fail; | |
36905 | } | |
36906 | { | |
36907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36908 | (arg1)->AddGrowableCol(arg2,arg3); | |
36909 | ||
36910 | wxPyEndAllowThreads(__tstate); | |
36911 | if (PyErr_Occurred()) SWIG_fail; | |
36912 | } | |
36913 | Py_INCREF(Py_None); resultobj = Py_None; | |
36914 | return resultobj; | |
36915 | fail: | |
36916 | return NULL; | |
36917 | } | |
36918 | ||
36919 | ||
36920 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36921 | PyObject *resultobj; | |
36922 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36923 | size_t arg2 ; | |
36924 | PyObject * obj0 = 0 ; | |
36925 | PyObject * obj1 = 0 ; | |
36926 | char *kwnames[] = { | |
36927 | (char *) "self",(char *) "idx", NULL | |
36928 | }; | |
36929 | ||
36930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
36931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36933 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36934 | if (PyErr_Occurred()) SWIG_fail; | |
36935 | { | |
36936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36937 | (arg1)->RemoveGrowableCol(arg2); | |
36938 | ||
36939 | wxPyEndAllowThreads(__tstate); | |
36940 | if (PyErr_Occurred()) SWIG_fail; | |
36941 | } | |
36942 | Py_INCREF(Py_None); resultobj = Py_None; | |
36943 | return resultobj; | |
36944 | fail: | |
36945 | return NULL; | |
36946 | } | |
36947 | ||
36948 | ||
36949 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36950 | PyObject *resultobj; | |
36951 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36952 | int arg2 ; | |
36953 | PyObject * obj0 = 0 ; | |
36954 | PyObject * obj1 = 0 ; | |
36955 | char *kwnames[] = { | |
36956 | (char *) "self",(char *) "direction", NULL | |
36957 | }; | |
36958 | ||
36959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; | |
36960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36962 | arg2 = (int) SWIG_AsInt(obj1); | |
36963 | if (PyErr_Occurred()) SWIG_fail; | |
36964 | { | |
36965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36966 | (arg1)->SetFlexibleDirection(arg2); | |
36967 | ||
36968 | wxPyEndAllowThreads(__tstate); | |
36969 | if (PyErr_Occurred()) SWIG_fail; | |
36970 | } | |
36971 | Py_INCREF(Py_None); resultobj = Py_None; | |
36972 | return resultobj; | |
36973 | fail: | |
36974 | return NULL; | |
36975 | } | |
36976 | ||
36977 | ||
36978 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36979 | PyObject *resultobj; | |
36980 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36981 | int result; | |
36982 | PyObject * obj0 = 0 ; | |
36983 | char *kwnames[] = { | |
36984 | (char *) "self", NULL | |
36985 | }; | |
36986 | ||
36987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
36988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36990 | { | |
36991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36992 | result = (int)(arg1)->GetFlexibleDirection(); | |
36993 | ||
36994 | wxPyEndAllowThreads(__tstate); | |
36995 | if (PyErr_Occurred()) SWIG_fail; | |
36996 | } | |
36997 | resultobj = SWIG_FromInt((int)result); | |
36998 | return resultobj; | |
36999 | fail: | |
37000 | return NULL; | |
37001 | } | |
37002 | ||
37003 | ||
37004 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37005 | PyObject *resultobj; | |
37006 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37007 | int arg2 ; | |
37008 | PyObject * obj0 = 0 ; | |
37009 | PyObject * obj1 = 0 ; | |
37010 | char *kwnames[] = { | |
37011 | (char *) "self",(char *) "mode", NULL | |
37012 | }; | |
37013 | ||
37014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; | |
37015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37017 | arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); | |
37018 | if (PyErr_Occurred()) SWIG_fail; | |
37019 | { | |
37020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37021 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
37022 | ||
37023 | wxPyEndAllowThreads(__tstate); | |
37024 | if (PyErr_Occurred()) SWIG_fail; | |
37025 | } | |
37026 | Py_INCREF(Py_None); resultobj = Py_None; | |
37027 | return resultobj; | |
37028 | fail: | |
37029 | return NULL; | |
37030 | } | |
37031 | ||
37032 | ||
37033 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37034 | PyObject *resultobj; | |
37035 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37036 | int result; | |
37037 | PyObject * obj0 = 0 ; | |
37038 | char *kwnames[] = { | |
37039 | (char *) "self", NULL | |
37040 | }; | |
37041 | ||
37042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
37043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37045 | { | |
37046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37047 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
37048 | ||
37049 | wxPyEndAllowThreads(__tstate); | |
37050 | if (PyErr_Occurred()) SWIG_fail; | |
37051 | } | |
37052 | resultobj = SWIG_FromInt((int)result); | |
37053 | return resultobj; | |
37054 | fail: | |
37055 | return NULL; | |
37056 | } | |
37057 | ||
37058 | ||
37059 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37060 | PyObject *resultobj; | |
37061 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37062 | wxArrayInt *result; | |
37063 | PyObject * obj0 = 0 ; | |
37064 | char *kwnames[] = { | |
37065 | (char *) "self", NULL | |
37066 | }; | |
37067 | ||
37068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
37069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37071 | { | |
37072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37073 | { | |
37074 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
37075 | result = (wxArrayInt *) &_result_ref; | |
37076 | } | |
37077 | ||
37078 | wxPyEndAllowThreads(__tstate); | |
37079 | if (PyErr_Occurred()) SWIG_fail; | |
37080 | } | |
37081 | { | |
37082 | resultobj = PyList_New(0); | |
37083 | size_t idx; | |
37084 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37085 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37086 | PyList_Append(resultobj, val); | |
37087 | Py_DECREF(val); | |
37088 | } | |
37089 | } | |
37090 | return resultobj; | |
37091 | fail: | |
37092 | return NULL; | |
37093 | } | |
37094 | ||
37095 | ||
37096 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37097 | PyObject *resultobj; | |
37098 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37099 | wxArrayInt *result; | |
37100 | PyObject * obj0 = 0 ; | |
37101 | char *kwnames[] = { | |
37102 | (char *) "self", NULL | |
37103 | }; | |
37104 | ||
37105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
37106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37108 | { | |
37109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37110 | { | |
37111 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
37112 | result = (wxArrayInt *) &_result_ref; | |
37113 | } | |
37114 | ||
37115 | wxPyEndAllowThreads(__tstate); | |
37116 | if (PyErr_Occurred()) SWIG_fail; | |
37117 | } | |
37118 | { | |
37119 | resultobj = PyList_New(0); | |
37120 | size_t idx; | |
37121 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37122 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37123 | PyList_Append(resultobj, val); | |
37124 | Py_DECREF(val); | |
37125 | } | |
37126 | } | |
37127 | return resultobj; | |
37128 | fail: | |
37129 | return NULL; | |
37130 | } | |
37131 | ||
37132 | ||
37133 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { | |
37134 | PyObject *obj; | |
37135 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37136 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
37137 | Py_INCREF(obj); | |
37138 | return Py_BuildValue((char *)""); | |
37139 | } | |
37140 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37141 | PyObject *resultobj; | |
37142 | int arg1 = (int) 0 ; | |
37143 | int arg2 = (int) 0 ; | |
37144 | wxGBPosition *result; | |
37145 | PyObject * obj0 = 0 ; | |
37146 | PyObject * obj1 = 0 ; | |
37147 | char *kwnames[] = { | |
37148 | (char *) "row",(char *) "col", NULL | |
37149 | }; | |
37150 | ||
37151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; | |
37152 | if (obj0) { | |
37153 | arg1 = (int) SWIG_AsInt(obj0); | |
37154 | if (PyErr_Occurred()) SWIG_fail; | |
37155 | } | |
37156 | if (obj1) { | |
37157 | arg2 = (int) SWIG_AsInt(obj1); | |
37158 | if (PyErr_Occurred()) SWIG_fail; | |
37159 | } | |
37160 | { | |
37161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37162 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
37163 | ||
37164 | wxPyEndAllowThreads(__tstate); | |
37165 | if (PyErr_Occurred()) SWIG_fail; | |
37166 | } | |
37167 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); | |
37168 | return resultobj; | |
37169 | fail: | |
37170 | return NULL; | |
37171 | } | |
37172 | ||
37173 | ||
37174 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37175 | PyObject *resultobj; | |
37176 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37177 | int result; | |
37178 | PyObject * obj0 = 0 ; | |
37179 | char *kwnames[] = { | |
37180 | (char *) "self", NULL | |
37181 | }; | |
37182 | ||
37183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
37184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37186 | { | |
37187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37188 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
37189 | ||
37190 | wxPyEndAllowThreads(__tstate); | |
37191 | if (PyErr_Occurred()) SWIG_fail; | |
37192 | } | |
37193 | resultobj = SWIG_FromInt((int)result); | |
37194 | return resultobj; | |
37195 | fail: | |
37196 | return NULL; | |
37197 | } | |
37198 | ||
37199 | ||
37200 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37201 | PyObject *resultobj; | |
37202 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37203 | int result; | |
37204 | PyObject * obj0 = 0 ; | |
37205 | char *kwnames[] = { | |
37206 | (char *) "self", NULL | |
37207 | }; | |
37208 | ||
37209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
37210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37212 | { | |
37213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37214 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
37215 | ||
37216 | wxPyEndAllowThreads(__tstate); | |
37217 | if (PyErr_Occurred()) SWIG_fail; | |
37218 | } | |
37219 | resultobj = SWIG_FromInt((int)result); | |
37220 | return resultobj; | |
37221 | fail: | |
37222 | return NULL; | |
37223 | } | |
37224 | ||
37225 | ||
37226 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37227 | PyObject *resultobj; | |
37228 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37229 | int arg2 ; | |
37230 | PyObject * obj0 = 0 ; | |
37231 | PyObject * obj1 = 0 ; | |
37232 | char *kwnames[] = { | |
37233 | (char *) "self",(char *) "row", NULL | |
37234 | }; | |
37235 | ||
37236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
37237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37239 | arg2 = (int) SWIG_AsInt(obj1); | |
37240 | if (PyErr_Occurred()) SWIG_fail; | |
37241 | { | |
37242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37243 | (arg1)->SetRow(arg2); | |
37244 | ||
37245 | wxPyEndAllowThreads(__tstate); | |
37246 | if (PyErr_Occurred()) SWIG_fail; | |
37247 | } | |
37248 | Py_INCREF(Py_None); resultobj = Py_None; | |
37249 | return resultobj; | |
37250 | fail: | |
37251 | return NULL; | |
37252 | } | |
37253 | ||
37254 | ||
37255 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37256 | PyObject *resultobj; | |
37257 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37258 | int arg2 ; | |
37259 | PyObject * obj0 = 0 ; | |
37260 | PyObject * obj1 = 0 ; | |
37261 | char *kwnames[] = { | |
37262 | (char *) "self",(char *) "col", NULL | |
37263 | }; | |
37264 | ||
37265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
37266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37268 | arg2 = (int) SWIG_AsInt(obj1); | |
37269 | if (PyErr_Occurred()) SWIG_fail; | |
37270 | { | |
37271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37272 | (arg1)->SetCol(arg2); | |
37273 | ||
37274 | wxPyEndAllowThreads(__tstate); | |
37275 | if (PyErr_Occurred()) SWIG_fail; | |
37276 | } | |
37277 | Py_INCREF(Py_None); resultobj = Py_None; | |
37278 | return resultobj; | |
37279 | fail: | |
37280 | return NULL; | |
37281 | } | |
37282 | ||
37283 | ||
37284 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37285 | PyObject *resultobj; | |
37286 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37287 | wxGBPosition *arg2 = 0 ; | |
37288 | bool result; | |
37289 | wxGBPosition temp2 ; | |
37290 | PyObject * obj0 = 0 ; | |
37291 | PyObject * obj1 = 0 ; | |
37292 | char *kwnames[] = { | |
37293 | (char *) "self",(char *) "other", NULL | |
37294 | }; | |
37295 | ||
37296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
37297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37299 | { | |
37300 | arg2 = &temp2; | |
37301 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37302 | } | |
37303 | { | |
37304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37305 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); | |
37306 | ||
37307 | wxPyEndAllowThreads(__tstate); | |
37308 | if (PyErr_Occurred()) SWIG_fail; | |
37309 | } | |
37310 | { | |
37311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37312 | } | |
37313 | return resultobj; | |
37314 | fail: | |
37315 | return NULL; | |
37316 | } | |
37317 | ||
37318 | ||
37319 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37320 | PyObject *resultobj; | |
37321 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37322 | wxGBPosition *arg2 = 0 ; | |
37323 | bool result; | |
37324 | wxGBPosition temp2 ; | |
37325 | PyObject * obj0 = 0 ; | |
37326 | PyObject * obj1 = 0 ; | |
37327 | char *kwnames[] = { | |
37328 | (char *) "self",(char *) "other", NULL | |
37329 | }; | |
37330 | ||
37331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
37332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37334 | { | |
37335 | arg2 = &temp2; | |
37336 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37337 | } | |
37338 | { | |
37339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37340 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); | |
37341 | ||
37342 | wxPyEndAllowThreads(__tstate); | |
37343 | if (PyErr_Occurred()) SWIG_fail; | |
37344 | } | |
37345 | { | |
37346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37347 | } | |
37348 | return resultobj; | |
37349 | fail: | |
37350 | return NULL; | |
37351 | } | |
37352 | ||
37353 | ||
37354 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37355 | PyObject *resultobj; | |
37356 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37357 | int arg2 = (int) 0 ; | |
37358 | int arg3 = (int) 0 ; | |
37359 | PyObject * obj0 = 0 ; | |
37360 | PyObject * obj1 = 0 ; | |
37361 | PyObject * obj2 = 0 ; | |
37362 | char *kwnames[] = { | |
37363 | (char *) "self",(char *) "row",(char *) "col", NULL | |
37364 | }; | |
37365 | ||
37366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37369 | if (obj1) { | |
37370 | arg2 = (int) SWIG_AsInt(obj1); | |
37371 | if (PyErr_Occurred()) SWIG_fail; | |
37372 | } | |
37373 | if (obj2) { | |
37374 | arg3 = (int) SWIG_AsInt(obj2); | |
37375 | if (PyErr_Occurred()) SWIG_fail; | |
37376 | } | |
37377 | { | |
37378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37379 | wxGBPosition_Set(arg1,arg2,arg3); | |
37380 | ||
37381 | wxPyEndAllowThreads(__tstate); | |
37382 | if (PyErr_Occurred()) SWIG_fail; | |
37383 | } | |
37384 | Py_INCREF(Py_None); resultobj = Py_None; | |
37385 | return resultobj; | |
37386 | fail: | |
37387 | return NULL; | |
37388 | } | |
37389 | ||
37390 | ||
37391 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37392 | PyObject *resultobj; | |
37393 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37394 | PyObject *result; | |
37395 | PyObject * obj0 = 0 ; | |
37396 | char *kwnames[] = { | |
37397 | (char *) "self", NULL | |
37398 | }; | |
37399 | ||
37400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; | |
37401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37403 | { | |
37404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37405 | result = (PyObject *)wxGBPosition_Get(arg1); | |
37406 | ||
37407 | wxPyEndAllowThreads(__tstate); | |
37408 | if (PyErr_Occurred()) SWIG_fail; | |
37409 | } | |
37410 | resultobj = result; | |
37411 | return resultobj; | |
37412 | fail: | |
37413 | return NULL; | |
37414 | } | |
37415 | ||
37416 | ||
37417 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
37418 | PyObject *obj; | |
37419 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37420 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
37421 | Py_INCREF(obj); | |
37422 | return Py_BuildValue((char *)""); | |
37423 | } | |
37424 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37425 | PyObject *resultobj; | |
37426 | int arg1 = (int) 1 ; | |
37427 | int arg2 = (int) 1 ; | |
37428 | wxGBSpan *result; | |
37429 | PyObject * obj0 = 0 ; | |
37430 | PyObject * obj1 = 0 ; | |
37431 | char *kwnames[] = { | |
37432 | (char *) "rowspan",(char *) "colspan", NULL | |
37433 | }; | |
37434 | ||
37435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; | |
37436 | if (obj0) { | |
37437 | arg1 = (int) SWIG_AsInt(obj0); | |
37438 | if (PyErr_Occurred()) SWIG_fail; | |
37439 | } | |
37440 | if (obj1) { | |
37441 | arg2 = (int) SWIG_AsInt(obj1); | |
37442 | if (PyErr_Occurred()) SWIG_fail; | |
37443 | } | |
37444 | { | |
37445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37446 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
37447 | ||
37448 | wxPyEndAllowThreads(__tstate); | |
37449 | if (PyErr_Occurred()) SWIG_fail; | |
37450 | } | |
37451 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); | |
37452 | return resultobj; | |
37453 | fail: | |
37454 | return NULL; | |
37455 | } | |
37456 | ||
37457 | ||
37458 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37459 | PyObject *resultobj; | |
37460 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37461 | int result; | |
37462 | PyObject * obj0 = 0 ; | |
37463 | char *kwnames[] = { | |
37464 | (char *) "self", NULL | |
37465 | }; | |
37466 | ||
37467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
37468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37470 | { | |
37471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37472 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
37473 | ||
37474 | wxPyEndAllowThreads(__tstate); | |
37475 | if (PyErr_Occurred()) SWIG_fail; | |
37476 | } | |
37477 | resultobj = SWIG_FromInt((int)result); | |
37478 | return resultobj; | |
37479 | fail: | |
37480 | return NULL; | |
37481 | } | |
37482 | ||
37483 | ||
37484 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37485 | PyObject *resultobj; | |
37486 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37487 | int result; | |
37488 | PyObject * obj0 = 0 ; | |
37489 | char *kwnames[] = { | |
37490 | (char *) "self", NULL | |
37491 | }; | |
37492 | ||
37493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
37494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37496 | { | |
37497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37498 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
37499 | ||
37500 | wxPyEndAllowThreads(__tstate); | |
37501 | if (PyErr_Occurred()) SWIG_fail; | |
37502 | } | |
37503 | resultobj = SWIG_FromInt((int)result); | |
37504 | return resultobj; | |
37505 | fail: | |
37506 | return NULL; | |
37507 | } | |
37508 | ||
37509 | ||
37510 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37511 | PyObject *resultobj; | |
37512 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37513 | int arg2 ; | |
37514 | PyObject * obj0 = 0 ; | |
37515 | PyObject * obj1 = 0 ; | |
37516 | char *kwnames[] = { | |
37517 | (char *) "self",(char *) "rowspan", NULL | |
37518 | }; | |
37519 | ||
37520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; | |
37521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37523 | arg2 = (int) SWIG_AsInt(obj1); | |
37524 | if (PyErr_Occurred()) SWIG_fail; | |
37525 | { | |
37526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37527 | (arg1)->SetRowspan(arg2); | |
37528 | ||
37529 | wxPyEndAllowThreads(__tstate); | |
37530 | if (PyErr_Occurred()) SWIG_fail; | |
37531 | } | |
37532 | Py_INCREF(Py_None); resultobj = Py_None; | |
37533 | return resultobj; | |
37534 | fail: | |
37535 | return NULL; | |
37536 | } | |
37537 | ||
37538 | ||
37539 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37540 | PyObject *resultobj; | |
37541 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37542 | int arg2 ; | |
37543 | PyObject * obj0 = 0 ; | |
37544 | PyObject * obj1 = 0 ; | |
37545 | char *kwnames[] = { | |
37546 | (char *) "self",(char *) "colspan", NULL | |
37547 | }; | |
37548 | ||
37549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; | |
37550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37552 | arg2 = (int) SWIG_AsInt(obj1); | |
37553 | if (PyErr_Occurred()) SWIG_fail; | |
37554 | { | |
37555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37556 | (arg1)->SetColspan(arg2); | |
37557 | ||
37558 | wxPyEndAllowThreads(__tstate); | |
37559 | if (PyErr_Occurred()) SWIG_fail; | |
37560 | } | |
37561 | Py_INCREF(Py_None); resultobj = Py_None; | |
37562 | return resultobj; | |
37563 | fail: | |
37564 | return NULL; | |
37565 | } | |
37566 | ||
37567 | ||
37568 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37569 | PyObject *resultobj; | |
37570 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37571 | wxGBSpan *arg2 = 0 ; | |
37572 | bool result; | |
37573 | wxGBSpan temp2 ; | |
37574 | PyObject * obj0 = 0 ; | |
37575 | PyObject * obj1 = 0 ; | |
37576 | char *kwnames[] = { | |
37577 | (char *) "self",(char *) "other", NULL | |
37578 | }; | |
37579 | ||
37580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
37581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37583 | { | |
37584 | arg2 = &temp2; | |
37585 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37586 | } | |
37587 | { | |
37588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37589 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); | |
37590 | ||
37591 | wxPyEndAllowThreads(__tstate); | |
37592 | if (PyErr_Occurred()) SWIG_fail; | |
37593 | } | |
37594 | { | |
37595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37596 | } | |
37597 | return resultobj; | |
37598 | fail: | |
37599 | return NULL; | |
37600 | } | |
37601 | ||
37602 | ||
37603 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37604 | PyObject *resultobj; | |
37605 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37606 | wxGBSpan *arg2 = 0 ; | |
37607 | bool result; | |
37608 | wxGBSpan temp2 ; | |
37609 | PyObject * obj0 = 0 ; | |
37610 | PyObject * obj1 = 0 ; | |
37611 | char *kwnames[] = { | |
37612 | (char *) "self",(char *) "other", NULL | |
37613 | }; | |
37614 | ||
37615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
37616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37618 | { | |
37619 | arg2 = &temp2; | |
37620 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37621 | } | |
37622 | { | |
37623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37624 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); | |
37625 | ||
37626 | wxPyEndAllowThreads(__tstate); | |
37627 | if (PyErr_Occurred()) SWIG_fail; | |
37628 | } | |
37629 | { | |
37630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37631 | } | |
37632 | return resultobj; | |
37633 | fail: | |
37634 | return NULL; | |
37635 | } | |
37636 | ||
37637 | ||
37638 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37639 | PyObject *resultobj; | |
37640 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37641 | int arg2 = (int) 1 ; | |
37642 | int arg3 = (int) 1 ; | |
37643 | PyObject * obj0 = 0 ; | |
37644 | PyObject * obj1 = 0 ; | |
37645 | PyObject * obj2 = 0 ; | |
37646 | char *kwnames[] = { | |
37647 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
37648 | }; | |
37649 | ||
37650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37653 | if (obj1) { | |
37654 | arg2 = (int) SWIG_AsInt(obj1); | |
37655 | if (PyErr_Occurred()) SWIG_fail; | |
37656 | } | |
37657 | if (obj2) { | |
37658 | arg3 = (int) SWIG_AsInt(obj2); | |
37659 | if (PyErr_Occurred()) SWIG_fail; | |
37660 | } | |
37661 | { | |
37662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37663 | wxGBSpan_Set(arg1,arg2,arg3); | |
37664 | ||
37665 | wxPyEndAllowThreads(__tstate); | |
37666 | if (PyErr_Occurred()) SWIG_fail; | |
37667 | } | |
37668 | Py_INCREF(Py_None); resultobj = Py_None; | |
37669 | return resultobj; | |
37670 | fail: | |
37671 | return NULL; | |
37672 | } | |
37673 | ||
37674 | ||
37675 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37676 | PyObject *resultobj; | |
37677 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37678 | PyObject *result; | |
37679 | PyObject * obj0 = 0 ; | |
37680 | char *kwnames[] = { | |
37681 | (char *) "self", NULL | |
37682 | }; | |
37683 | ||
37684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; | |
37685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37687 | { | |
37688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37689 | result = (PyObject *)wxGBSpan_Get(arg1); | |
37690 | ||
37691 | wxPyEndAllowThreads(__tstate); | |
37692 | if (PyErr_Occurred()) SWIG_fail; | |
37693 | } | |
37694 | resultobj = result; | |
37695 | return resultobj; | |
37696 | fail: | |
37697 | return NULL; | |
37698 | } | |
37699 | ||
37700 | ||
37701 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
37702 | PyObject *obj; | |
37703 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37704 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
37705 | Py_INCREF(obj); | |
37706 | return Py_BuildValue((char *)""); | |
37707 | } | |
37708 | static int _wrap_DefaultSpan_set(PyObject *_val) { | |
37709 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); | |
37710 | return 1; | |
37711 | } | |
37712 | ||
37713 | ||
37714 | static PyObject *_wrap_DefaultSpan_get() { | |
37715 | PyObject *pyobj; | |
37716 | ||
37717 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); | |
37718 | return pyobj; | |
37719 | } | |
37720 | ||
37721 | ||
37722 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37723 | PyObject *resultobj; | |
37724 | wxGBSizerItem *result; | |
37725 | char *kwnames[] = { | |
37726 | NULL | |
37727 | }; | |
37728 | ||
37729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
37730 | { | |
37731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37732 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
37733 | ||
37734 | wxPyEndAllowThreads(__tstate); | |
37735 | if (PyErr_Occurred()) SWIG_fail; | |
37736 | } | |
37737 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37738 | return resultobj; | |
37739 | fail: | |
37740 | return NULL; | |
37741 | } | |
37742 | ||
37743 | ||
37744 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37745 | PyObject *resultobj; | |
37746 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37747 | wxGBPosition *arg2 = 0 ; | |
37748 | wxGBSpan *arg3 = 0 ; | |
37749 | int arg4 ; | |
37750 | int arg5 ; | |
248ed943 | 37751 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
37752 | wxGBSizerItem *result; |
37753 | wxGBPosition temp2 ; | |
37754 | wxGBSpan temp3 ; | |
37755 | PyObject * obj0 = 0 ; | |
37756 | PyObject * obj1 = 0 ; | |
37757 | PyObject * obj2 = 0 ; | |
37758 | PyObject * obj3 = 0 ; | |
37759 | PyObject * obj4 = 0 ; | |
37760 | PyObject * obj5 = 0 ; | |
37761 | char *kwnames[] = { | |
37762 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37763 | }; | |
37764 | ||
248ed943 | 37765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
37766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
37767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37768 | { | |
37769 | arg2 = &temp2; | |
37770 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37771 | } | |
37772 | { | |
37773 | arg3 = &temp3; | |
37774 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37775 | } | |
37776 | arg4 = (int) SWIG_AsInt(obj3); | |
37777 | if (PyErr_Occurred()) SWIG_fail; | |
37778 | arg5 = (int) SWIG_AsInt(obj4); | |
37779 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
37780 | if (obj5) { |
37781 | arg6 = obj5; | |
37782 | } | |
d55e5bfc RD |
37783 | { |
37784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 37785 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
37786 | |
37787 | wxPyEndAllowThreads(__tstate); | |
37788 | if (PyErr_Occurred()) SWIG_fail; | |
37789 | } | |
37790 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37791 | return resultobj; | |
37792 | fail: | |
37793 | return NULL; | |
37794 | } | |
37795 | ||
37796 | ||
37797 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37798 | PyObject *resultobj; | |
37799 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37800 | wxGBPosition *arg2 = 0 ; | |
37801 | wxGBSpan *arg3 = 0 ; | |
37802 | int arg4 ; | |
37803 | int arg5 ; | |
248ed943 | 37804 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
37805 | wxGBSizerItem *result; |
37806 | wxGBPosition temp2 ; | |
37807 | wxGBSpan temp3 ; | |
37808 | PyObject * obj0 = 0 ; | |
37809 | PyObject * obj1 = 0 ; | |
37810 | PyObject * obj2 = 0 ; | |
37811 | PyObject * obj3 = 0 ; | |
37812 | PyObject * obj4 = 0 ; | |
37813 | PyObject * obj5 = 0 ; | |
37814 | char *kwnames[] = { | |
37815 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37816 | }; | |
37817 | ||
248ed943 | 37818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
37819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
37820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37821 | { | |
37822 | arg2 = &temp2; | |
37823 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37824 | } | |
37825 | { | |
37826 | arg3 = &temp3; | |
37827 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37828 | } | |
37829 | arg4 = (int) SWIG_AsInt(obj3); | |
37830 | if (PyErr_Occurred()) SWIG_fail; | |
37831 | arg5 = (int) SWIG_AsInt(obj4); | |
37832 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
37833 | if (obj5) { |
37834 | arg6 = obj5; | |
37835 | } | |
d55e5bfc RD |
37836 | { |
37837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 37838 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
37839 | |
37840 | wxPyEndAllowThreads(__tstate); | |
37841 | if (PyErr_Occurred()) SWIG_fail; | |
37842 | } | |
37843 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37844 | return resultobj; | |
37845 | fail: | |
37846 | return NULL; | |
37847 | } | |
37848 | ||
37849 | ||
37850 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37851 | PyObject *resultobj; | |
37852 | int arg1 ; | |
37853 | int arg2 ; | |
37854 | wxGBPosition *arg3 = 0 ; | |
37855 | wxGBSpan *arg4 = 0 ; | |
37856 | int arg5 ; | |
37857 | int arg6 ; | |
248ed943 | 37858 | PyObject *arg7 = (PyObject *) NULL ; |
d55e5bfc RD |
37859 | wxGBSizerItem *result; |
37860 | wxGBPosition temp3 ; | |
37861 | wxGBSpan temp4 ; | |
37862 | PyObject * obj0 = 0 ; | |
37863 | PyObject * obj1 = 0 ; | |
37864 | PyObject * obj2 = 0 ; | |
37865 | PyObject * obj3 = 0 ; | |
37866 | PyObject * obj4 = 0 ; | |
37867 | PyObject * obj5 = 0 ; | |
37868 | PyObject * obj6 = 0 ; | |
37869 | char *kwnames[] = { | |
37870 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37871 | }; | |
37872 | ||
248ed943 | 37873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
37874 | arg1 = (int) SWIG_AsInt(obj0); |
37875 | if (PyErr_Occurred()) SWIG_fail; | |
37876 | arg2 = (int) SWIG_AsInt(obj1); | |
37877 | if (PyErr_Occurred()) SWIG_fail; | |
37878 | { | |
37879 | arg3 = &temp3; | |
37880 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37881 | } | |
37882 | { | |
37883 | arg4 = &temp4; | |
37884 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37885 | } | |
37886 | arg5 = (int) SWIG_AsInt(obj4); | |
37887 | if (PyErr_Occurred()) SWIG_fail; | |
37888 | arg6 = (int) SWIG_AsInt(obj5); | |
37889 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
37890 | if (obj6) { |
37891 | arg7 = obj6; | |
37892 | } | |
d55e5bfc RD |
37893 | { |
37894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 37895 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
37896 | |
37897 | wxPyEndAllowThreads(__tstate); | |
37898 | if (PyErr_Occurred()) SWIG_fail; | |
37899 | } | |
37900 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37901 | return resultobj; | |
37902 | fail: | |
37903 | return NULL; | |
37904 | } | |
37905 | ||
37906 | ||
37907 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37908 | PyObject *resultobj; | |
37909 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37910 | wxGBPosition result; | |
37911 | PyObject * obj0 = 0 ; | |
37912 | char *kwnames[] = { | |
37913 | (char *) "self", NULL | |
37914 | }; | |
37915 | ||
37916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
37917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37919 | { | |
37920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37921 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
37922 | ||
37923 | wxPyEndAllowThreads(__tstate); | |
37924 | if (PyErr_Occurred()) SWIG_fail; | |
37925 | } | |
37926 | { | |
37927 | wxGBPosition * resultptr; | |
37928 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
37929 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
37930 | } | |
37931 | return resultobj; | |
37932 | fail: | |
37933 | return NULL; | |
37934 | } | |
37935 | ||
37936 | ||
37937 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37938 | PyObject *resultobj; | |
37939 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37940 | wxGBSpan result; | |
37941 | PyObject * obj0 = 0 ; | |
37942 | char *kwnames[] = { | |
37943 | (char *) "self", NULL | |
37944 | }; | |
37945 | ||
37946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
37947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37949 | { | |
37950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37951 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
37952 | ||
37953 | wxPyEndAllowThreads(__tstate); | |
37954 | if (PyErr_Occurred()) SWIG_fail; | |
37955 | } | |
37956 | { | |
37957 | wxGBSpan * resultptr; | |
37958 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
37959 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
37960 | } | |
37961 | return resultobj; | |
37962 | fail: | |
37963 | return NULL; | |
37964 | } | |
37965 | ||
37966 | ||
37967 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37968 | PyObject *resultobj; | |
37969 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37970 | wxGBPosition *arg2 = 0 ; | |
37971 | bool result; | |
37972 | wxGBPosition temp2 ; | |
37973 | PyObject * obj0 = 0 ; | |
37974 | PyObject * obj1 = 0 ; | |
37975 | char *kwnames[] = { | |
37976 | (char *) "self",(char *) "pos", NULL | |
37977 | }; | |
37978 | ||
37979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
37980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37982 | { | |
37983 | arg2 = &temp2; | |
37984 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37985 | } | |
37986 | { | |
37987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37988 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
37989 | ||
37990 | wxPyEndAllowThreads(__tstate); | |
37991 | if (PyErr_Occurred()) SWIG_fail; | |
37992 | } | |
37993 | { | |
37994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37995 | } | |
37996 | return resultobj; | |
37997 | fail: | |
37998 | return NULL; | |
37999 | } | |
38000 | ||
38001 | ||
38002 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38003 | PyObject *resultobj; | |
38004 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38005 | wxGBSpan *arg2 = 0 ; | |
38006 | bool result; | |
38007 | wxGBSpan temp2 ; | |
38008 | PyObject * obj0 = 0 ; | |
38009 | PyObject * obj1 = 0 ; | |
38010 | char *kwnames[] = { | |
38011 | (char *) "self",(char *) "span", NULL | |
38012 | }; | |
38013 | ||
38014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
38015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38017 | { | |
38018 | arg2 = &temp2; | |
38019 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38020 | } | |
38021 | { | |
38022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38023 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
38024 | ||
38025 | wxPyEndAllowThreads(__tstate); | |
38026 | if (PyErr_Occurred()) SWIG_fail; | |
38027 | } | |
38028 | { | |
38029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38030 | } | |
38031 | return resultobj; | |
38032 | fail: | |
38033 | return NULL; | |
38034 | } | |
38035 | ||
38036 | ||
248ed943 | 38037 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38038 | PyObject *resultobj; |
38039 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38040 | wxGBSizerItem *arg2 = 0 ; | |
38041 | bool result; | |
38042 | PyObject * obj0 = 0 ; | |
38043 | PyObject * obj1 = 0 ; | |
248ed943 RD |
38044 | char *kwnames[] = { |
38045 | (char *) "self",(char *) "other", NULL | |
38046 | }; | |
d55e5bfc | 38047 | |
248ed943 | 38048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
38049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38051 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38052 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
38053 | SWIG_fail; | |
38054 | if (arg2 == NULL) { | |
38055 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
38056 | SWIG_fail; | |
38057 | } | |
38058 | { | |
38059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38060 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
38061 | ||
38062 | wxPyEndAllowThreads(__tstate); | |
38063 | if (PyErr_Occurred()) SWIG_fail; | |
38064 | } | |
38065 | { | |
38066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38067 | } | |
38068 | return resultobj; | |
38069 | fail: | |
38070 | return NULL; | |
38071 | } | |
38072 | ||
38073 | ||
248ed943 | 38074 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38075 | PyObject *resultobj; |
38076 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38077 | wxGBPosition *arg2 = 0 ; | |
38078 | wxGBSpan *arg3 = 0 ; | |
38079 | bool result; | |
38080 | wxGBPosition temp2 ; | |
38081 | wxGBSpan temp3 ; | |
38082 | PyObject * obj0 = 0 ; | |
38083 | PyObject * obj1 = 0 ; | |
38084 | PyObject * obj2 = 0 ; | |
248ed943 RD |
38085 | char *kwnames[] = { |
38086 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
38087 | }; | |
d55e5bfc | 38088 | |
248ed943 | 38089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
38090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38092 | { | |
38093 | arg2 = &temp2; | |
38094 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38095 | } | |
38096 | { | |
38097 | arg3 = &temp3; | |
38098 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38099 | } | |
38100 | { | |
38101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38102 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
38103 | ||
38104 | wxPyEndAllowThreads(__tstate); | |
38105 | if (PyErr_Occurred()) SWIG_fail; | |
38106 | } | |
38107 | { | |
38108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38109 | } | |
38110 | return resultobj; | |
38111 | fail: | |
38112 | return NULL; | |
38113 | } | |
38114 | ||
38115 | ||
d55e5bfc RD |
38116 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
38117 | PyObject *resultobj; | |
38118 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
248ed943 | 38119 | wxGBPosition result; |
d55e5bfc | 38120 | PyObject * obj0 = 0 ; |
d55e5bfc | 38121 | char *kwnames[] = { |
248ed943 | 38122 | (char *) "self", NULL |
d55e5bfc RD |
38123 | }; |
38124 | ||
248ed943 | 38125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
38126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
38128 | { |
38129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38130 | result = wxGBSizerItem_GetEndPos(arg1); |
d55e5bfc RD |
38131 | |
38132 | wxPyEndAllowThreads(__tstate); | |
38133 | if (PyErr_Occurred()) SWIG_fail; | |
38134 | } | |
248ed943 RD |
38135 | { |
38136 | wxGBPosition * resultptr; | |
38137 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38138 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38139 | } | |
d55e5bfc RD |
38140 | return resultobj; |
38141 | fail: | |
38142 | return NULL; | |
38143 | } | |
38144 | ||
38145 | ||
38146 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38147 | PyObject *resultobj; | |
38148 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38149 | wxGridBagSizer *result; | |
38150 | PyObject * obj0 = 0 ; | |
38151 | char *kwnames[] = { | |
38152 | (char *) "self", NULL | |
38153 | }; | |
38154 | ||
38155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
38156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38158 | { | |
38159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38160 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
38161 | ||
38162 | wxPyEndAllowThreads(__tstate); | |
38163 | if (PyErr_Occurred()) SWIG_fail; | |
38164 | } | |
38165 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); | |
38166 | return resultobj; | |
38167 | fail: | |
38168 | return NULL; | |
38169 | } | |
38170 | ||
38171 | ||
38172 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38173 | PyObject *resultobj; | |
38174 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38175 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
38176 | PyObject * obj0 = 0 ; | |
38177 | PyObject * obj1 = 0 ; | |
38178 | char *kwnames[] = { | |
38179 | (char *) "self",(char *) "sizer", NULL | |
38180 | }; | |
38181 | ||
38182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
38183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38185 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
38186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38187 | { | |
38188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38189 | (arg1)->SetGBSizer(arg2); | |
38190 | ||
38191 | wxPyEndAllowThreads(__tstate); | |
38192 | if (PyErr_Occurred()) SWIG_fail; | |
38193 | } | |
38194 | Py_INCREF(Py_None); resultobj = Py_None; | |
38195 | return resultobj; | |
38196 | fail: | |
38197 | return NULL; | |
38198 | } | |
38199 | ||
38200 | ||
38201 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
38202 | PyObject *obj; | |
38203 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38204 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
38205 | Py_INCREF(obj); | |
38206 | return Py_BuildValue((char *)""); | |
38207 | } | |
38208 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38209 | PyObject *resultobj; | |
38210 | int arg1 = (int) 0 ; | |
38211 | int arg2 = (int) 0 ; | |
38212 | wxGridBagSizer *result; | |
38213 | PyObject * obj0 = 0 ; | |
38214 | PyObject * obj1 = 0 ; | |
38215 | char *kwnames[] = { | |
38216 | (char *) "vgap",(char *) "hgap", NULL | |
38217 | }; | |
38218 | ||
38219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; | |
38220 | if (obj0) { | |
38221 | arg1 = (int) SWIG_AsInt(obj0); | |
38222 | if (PyErr_Occurred()) SWIG_fail; | |
38223 | } | |
38224 | if (obj1) { | |
38225 | arg2 = (int) SWIG_AsInt(obj1); | |
38226 | if (PyErr_Occurred()) SWIG_fail; | |
38227 | } | |
38228 | { | |
38229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38230 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
38231 | ||
38232 | wxPyEndAllowThreads(__tstate); | |
38233 | if (PyErr_Occurred()) SWIG_fail; | |
38234 | } | |
38235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); | |
38236 | return resultobj; | |
38237 | fail: | |
38238 | return NULL; | |
38239 | } | |
38240 | ||
38241 | ||
38242 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38243 | PyObject *resultobj; | |
38244 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38245 | PyObject *arg2 = (PyObject *) 0 ; | |
38246 | wxGBPosition *arg3 = 0 ; | |
38247 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
38248 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
38249 | int arg5 = (int) 0 ; | |
38250 | int arg6 = (int) 0 ; | |
38251 | PyObject *arg7 = (PyObject *) NULL ; | |
38252 | bool result; | |
38253 | wxGBPosition temp3 ; | |
38254 | wxGBSpan temp4 ; | |
38255 | PyObject * obj0 = 0 ; | |
38256 | PyObject * obj1 = 0 ; | |
38257 | PyObject * obj2 = 0 ; | |
38258 | PyObject * obj3 = 0 ; | |
38259 | PyObject * obj4 = 0 ; | |
38260 | PyObject * obj5 = 0 ; | |
38261 | PyObject * obj6 = 0 ; | |
38262 | char *kwnames[] = { | |
38263 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38264 | }; | |
38265 | ||
38266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
38267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38269 | arg2 = obj1; | |
38270 | { | |
38271 | arg3 = &temp3; | |
38272 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38273 | } | |
38274 | if (obj3) { | |
38275 | { | |
38276 | arg4 = &temp4; | |
38277 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38278 | } | |
38279 | } | |
38280 | if (obj4) { | |
38281 | arg5 = (int) SWIG_AsInt(obj4); | |
38282 | if (PyErr_Occurred()) SWIG_fail; | |
38283 | } | |
38284 | if (obj5) { | |
38285 | arg6 = (int) SWIG_AsInt(obj5); | |
38286 | if (PyErr_Occurred()) SWIG_fail; | |
38287 | } | |
38288 | if (obj6) { | |
38289 | arg7 = obj6; | |
38290 | } | |
38291 | { | |
38292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38293 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
38294 | ||
38295 | wxPyEndAllowThreads(__tstate); | |
38296 | if (PyErr_Occurred()) SWIG_fail; | |
38297 | } | |
38298 | { | |
38299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38300 | } | |
38301 | return resultobj; | |
38302 | fail: | |
38303 | return NULL; | |
38304 | } | |
38305 | ||
38306 | ||
38307 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38308 | PyObject *resultobj; | |
38309 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38310 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
38311 | bool result; | |
38312 | PyObject * obj0 = 0 ; | |
38313 | PyObject * obj1 = 0 ; | |
38314 | char *kwnames[] = { | |
38315 | (char *) "self",(char *) "item", NULL | |
38316 | }; | |
38317 | ||
38318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
38319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38321 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38323 | { | |
38324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38325 | result = (bool)(arg1)->Add(arg2); | |
38326 | ||
38327 | wxPyEndAllowThreads(__tstate); | |
38328 | if (PyErr_Occurred()) SWIG_fail; | |
38329 | } | |
38330 | { | |
38331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38332 | } | |
38333 | return resultobj; | |
38334 | fail: | |
38335 | return NULL; | |
38336 | } | |
38337 | ||
38338 | ||
38339 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38340 | PyObject *resultobj; | |
38341 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38342 | wxSize result; | |
38343 | PyObject * obj0 = 0 ; | |
38344 | char *kwnames[] = { | |
38345 | (char *) "self", NULL | |
38346 | }; | |
38347 | ||
38348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
38349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38351 | { | |
38352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38353 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
38354 | ||
38355 | wxPyEndAllowThreads(__tstate); | |
38356 | if (PyErr_Occurred()) SWIG_fail; | |
38357 | } | |
38358 | { | |
38359 | wxSize * resultptr; | |
38360 | resultptr = new wxSize((wxSize &) result); | |
38361 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
38362 | } | |
38363 | return resultobj; | |
38364 | fail: | |
38365 | return NULL; | |
38366 | } | |
38367 | ||
38368 | ||
38369 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38370 | PyObject *resultobj; | |
38371 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38372 | wxSize *arg2 = 0 ; | |
38373 | wxSize temp2 ; | |
38374 | PyObject * obj0 = 0 ; | |
38375 | PyObject * obj1 = 0 ; | |
38376 | char *kwnames[] = { | |
38377 | (char *) "self",(char *) "sz", NULL | |
38378 | }; | |
38379 | ||
38380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
38381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38383 | { | |
38384 | arg2 = &temp2; | |
38385 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
38386 | } | |
38387 | { | |
38388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38389 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
38390 | ||
38391 | wxPyEndAllowThreads(__tstate); | |
38392 | if (PyErr_Occurred()) SWIG_fail; | |
38393 | } | |
38394 | Py_INCREF(Py_None); resultobj = Py_None; | |
38395 | return resultobj; | |
38396 | fail: | |
38397 | return NULL; | |
38398 | } | |
38399 | ||
38400 | ||
38401 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
38402 | PyObject *resultobj; | |
38403 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38404 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38405 | wxGBPosition result; | |
38406 | PyObject * obj0 = 0 ; | |
38407 | PyObject * obj1 = 0 ; | |
38408 | ||
38409 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38412 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38414 | { | |
38415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38416 | result = (arg1)->GetItemPosition(arg2); | |
38417 | ||
38418 | wxPyEndAllowThreads(__tstate); | |
38419 | if (PyErr_Occurred()) SWIG_fail; | |
38420 | } | |
38421 | { | |
38422 | wxGBPosition * resultptr; | |
38423 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38424 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38425 | } | |
38426 | return resultobj; | |
38427 | fail: | |
38428 | return NULL; | |
38429 | } | |
38430 | ||
38431 | ||
38432 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
38433 | PyObject *resultobj; | |
38434 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38435 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38436 | wxGBPosition result; | |
38437 | PyObject * obj0 = 0 ; | |
38438 | PyObject * obj1 = 0 ; | |
38439 | ||
38440 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38443 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38445 | { | |
38446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38447 | result = (arg1)->GetItemPosition(arg2); | |
38448 | ||
38449 | wxPyEndAllowThreads(__tstate); | |
38450 | if (PyErr_Occurred()) SWIG_fail; | |
38451 | } | |
38452 | { | |
38453 | wxGBPosition * resultptr; | |
38454 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38455 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38456 | } | |
38457 | return resultobj; | |
38458 | fail: | |
38459 | return NULL; | |
38460 | } | |
38461 | ||
38462 | ||
38463 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
38464 | PyObject *resultobj; | |
38465 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38466 | size_t arg2 ; | |
38467 | wxGBPosition result; | |
38468 | PyObject * obj0 = 0 ; | |
38469 | PyObject * obj1 = 0 ; | |
38470 | ||
38471 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38474 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38475 | if (PyErr_Occurred()) SWIG_fail; | |
38476 | { | |
38477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38478 | result = (arg1)->GetItemPosition(arg2); | |
38479 | ||
38480 | wxPyEndAllowThreads(__tstate); | |
38481 | if (PyErr_Occurred()) SWIG_fail; | |
38482 | } | |
38483 | { | |
38484 | wxGBPosition * resultptr; | |
38485 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38486 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38487 | } | |
38488 | return resultobj; | |
38489 | fail: | |
38490 | return NULL; | |
38491 | } | |
38492 | ||
38493 | ||
38494 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
38495 | int argc; | |
38496 | PyObject *argv[3]; | |
38497 | int ii; | |
38498 | ||
38499 | argc = PyObject_Length(args); | |
38500 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38501 | argv[ii] = PyTuple_GetItem(args,ii); | |
38502 | } | |
38503 | if (argc == 2) { | |
38504 | int _v; | |
38505 | { | |
38506 | void *ptr; | |
38507 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38508 | _v = 0; | |
38509 | PyErr_Clear(); | |
38510 | } else { | |
38511 | _v = 1; | |
38512 | } | |
38513 | } | |
38514 | if (_v) { | |
38515 | { | |
38516 | void *ptr; | |
38517 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38518 | _v = 0; | |
38519 | PyErr_Clear(); | |
38520 | } else { | |
38521 | _v = 1; | |
38522 | } | |
38523 | } | |
38524 | if (_v) { | |
38525 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
38526 | } | |
38527 | } | |
38528 | } | |
38529 | if (argc == 2) { | |
38530 | int _v; | |
38531 | { | |
38532 | void *ptr; | |
38533 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38534 | _v = 0; | |
38535 | PyErr_Clear(); | |
38536 | } else { | |
38537 | _v = 1; | |
38538 | } | |
38539 | } | |
38540 | if (_v) { | |
38541 | { | |
38542 | void *ptr; | |
38543 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38544 | _v = 0; | |
38545 | PyErr_Clear(); | |
38546 | } else { | |
38547 | _v = 1; | |
38548 | } | |
38549 | } | |
38550 | if (_v) { | |
38551 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
38552 | } | |
38553 | } | |
38554 | } | |
38555 | if (argc == 2) { | |
38556 | int _v; | |
38557 | { | |
38558 | void *ptr; | |
38559 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38560 | _v = 0; | |
38561 | PyErr_Clear(); | |
38562 | } else { | |
38563 | _v = 1; | |
38564 | } | |
38565 | } | |
38566 | if (_v) { | |
38567 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
38568 | if (_v) { | |
38569 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
38570 | } | |
38571 | } | |
38572 | } | |
38573 | ||
38574 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
38575 | return NULL; | |
38576 | } | |
38577 | ||
38578 | ||
38579 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
38580 | PyObject *resultobj; | |
38581 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38582 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38583 | wxGBPosition *arg3 = 0 ; | |
38584 | bool result; | |
38585 | wxGBPosition temp3 ; | |
38586 | PyObject * obj0 = 0 ; | |
38587 | PyObject * obj1 = 0 ; | |
38588 | PyObject * obj2 = 0 ; | |
38589 | ||
38590 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38593 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38595 | { | |
38596 | arg3 = &temp3; | |
38597 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38598 | } | |
38599 | { | |
38600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38601 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38602 | ||
38603 | wxPyEndAllowThreads(__tstate); | |
38604 | if (PyErr_Occurred()) SWIG_fail; | |
38605 | } | |
38606 | { | |
38607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38608 | } | |
38609 | return resultobj; | |
38610 | fail: | |
38611 | return NULL; | |
38612 | } | |
38613 | ||
38614 | ||
38615 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
38616 | PyObject *resultobj; | |
38617 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38618 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38619 | wxGBPosition *arg3 = 0 ; | |
38620 | bool result; | |
38621 | wxGBPosition temp3 ; | |
38622 | PyObject * obj0 = 0 ; | |
38623 | PyObject * obj1 = 0 ; | |
38624 | PyObject * obj2 = 0 ; | |
38625 | ||
38626 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38629 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38631 | { | |
38632 | arg3 = &temp3; | |
38633 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38634 | } | |
38635 | { | |
38636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38637 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38638 | ||
38639 | wxPyEndAllowThreads(__tstate); | |
38640 | if (PyErr_Occurred()) SWIG_fail; | |
38641 | } | |
38642 | { | |
38643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38644 | } | |
38645 | return resultobj; | |
38646 | fail: | |
38647 | return NULL; | |
38648 | } | |
38649 | ||
38650 | ||
38651 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
38652 | PyObject *resultobj; | |
38653 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38654 | size_t arg2 ; | |
38655 | wxGBPosition *arg3 = 0 ; | |
38656 | bool result; | |
38657 | wxGBPosition temp3 ; | |
38658 | PyObject * obj0 = 0 ; | |
38659 | PyObject * obj1 = 0 ; | |
38660 | PyObject * obj2 = 0 ; | |
38661 | ||
38662 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38665 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38666 | if (PyErr_Occurred()) SWIG_fail; | |
38667 | { | |
38668 | arg3 = &temp3; | |
38669 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38670 | } | |
38671 | { | |
38672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38673 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38674 | ||
38675 | wxPyEndAllowThreads(__tstate); | |
38676 | if (PyErr_Occurred()) SWIG_fail; | |
38677 | } | |
38678 | { | |
38679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38680 | } | |
38681 | return resultobj; | |
38682 | fail: | |
38683 | return NULL; | |
38684 | } | |
38685 | ||
38686 | ||
38687 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
38688 | int argc; | |
38689 | PyObject *argv[4]; | |
38690 | int ii; | |
38691 | ||
38692 | argc = PyObject_Length(args); | |
38693 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38694 | argv[ii] = PyTuple_GetItem(args,ii); | |
38695 | } | |
38696 | if (argc == 3) { | |
38697 | int _v; | |
38698 | { | |
38699 | void *ptr; | |
38700 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38701 | _v = 0; | |
38702 | PyErr_Clear(); | |
38703 | } else { | |
38704 | _v = 1; | |
38705 | } | |
38706 | } | |
38707 | if (_v) { | |
38708 | { | |
38709 | void *ptr; | |
38710 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38711 | _v = 0; | |
38712 | PyErr_Clear(); | |
38713 | } else { | |
38714 | _v = 1; | |
38715 | } | |
38716 | } | |
38717 | if (_v) { | |
38718 | { | |
38719 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38720 | } | |
38721 | if (_v) { | |
38722 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
38723 | } | |
38724 | } | |
38725 | } | |
38726 | } | |
38727 | if (argc == 3) { | |
38728 | int _v; | |
38729 | { | |
38730 | void *ptr; | |
38731 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38732 | _v = 0; | |
38733 | PyErr_Clear(); | |
38734 | } else { | |
38735 | _v = 1; | |
38736 | } | |
38737 | } | |
38738 | if (_v) { | |
38739 | { | |
38740 | void *ptr; | |
38741 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38742 | _v = 0; | |
38743 | PyErr_Clear(); | |
38744 | } else { | |
38745 | _v = 1; | |
38746 | } | |
38747 | } | |
38748 | if (_v) { | |
38749 | { | |
38750 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38751 | } | |
38752 | if (_v) { | |
38753 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
38754 | } | |
38755 | } | |
38756 | } | |
38757 | } | |
38758 | if (argc == 3) { | |
38759 | int _v; | |
38760 | { | |
38761 | void *ptr; | |
38762 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38763 | _v = 0; | |
38764 | PyErr_Clear(); | |
38765 | } else { | |
38766 | _v = 1; | |
38767 | } | |
38768 | } | |
38769 | if (_v) { | |
38770 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
38771 | if (_v) { | |
38772 | { | |
38773 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38774 | } | |
38775 | if (_v) { | |
38776 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
38777 | } | |
38778 | } | |
38779 | } | |
38780 | } | |
38781 | ||
38782 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
38783 | return NULL; | |
38784 | } | |
38785 | ||
38786 | ||
38787 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38788 | PyObject *resultobj; | |
38789 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38790 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38791 | wxGBSpan result; | |
38792 | PyObject * obj0 = 0 ; | |
38793 | PyObject * obj1 = 0 ; | |
38794 | ||
38795 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38798 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38800 | { | |
38801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38802 | result = (arg1)->GetItemSpan(arg2); | |
38803 | ||
38804 | wxPyEndAllowThreads(__tstate); | |
38805 | if (PyErr_Occurred()) SWIG_fail; | |
38806 | } | |
38807 | { | |
38808 | wxGBSpan * resultptr; | |
38809 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38810 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38811 | } | |
38812 | return resultobj; | |
38813 | fail: | |
38814 | return NULL; | |
38815 | } | |
38816 | ||
38817 | ||
38818 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38819 | PyObject *resultobj; | |
38820 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38821 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38822 | wxGBSpan result; | |
38823 | PyObject * obj0 = 0 ; | |
38824 | PyObject * obj1 = 0 ; | |
38825 | ||
38826 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38829 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38831 | { | |
38832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38833 | result = (arg1)->GetItemSpan(arg2); | |
38834 | ||
38835 | wxPyEndAllowThreads(__tstate); | |
38836 | if (PyErr_Occurred()) SWIG_fail; | |
38837 | } | |
38838 | { | |
38839 | wxGBSpan * resultptr; | |
38840 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38841 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38842 | } | |
38843 | return resultobj; | |
38844 | fail: | |
38845 | return NULL; | |
38846 | } | |
38847 | ||
38848 | ||
38849 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38850 | PyObject *resultobj; | |
38851 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38852 | size_t arg2 ; | |
38853 | wxGBSpan result; | |
38854 | PyObject * obj0 = 0 ; | |
38855 | PyObject * obj1 = 0 ; | |
38856 | ||
38857 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38860 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38861 | if (PyErr_Occurred()) SWIG_fail; | |
38862 | { | |
38863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38864 | result = (arg1)->GetItemSpan(arg2); | |
38865 | ||
38866 | wxPyEndAllowThreads(__tstate); | |
38867 | if (PyErr_Occurred()) SWIG_fail; | |
38868 | } | |
38869 | { | |
38870 | wxGBSpan * resultptr; | |
38871 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38872 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38873 | } | |
38874 | return resultobj; | |
38875 | fail: | |
38876 | return NULL; | |
38877 | } | |
38878 | ||
38879 | ||
38880 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
38881 | int argc; | |
38882 | PyObject *argv[3]; | |
38883 | int ii; | |
38884 | ||
38885 | argc = PyObject_Length(args); | |
38886 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38887 | argv[ii] = PyTuple_GetItem(args,ii); | |
38888 | } | |
38889 | if (argc == 2) { | |
38890 | int _v; | |
38891 | { | |
38892 | void *ptr; | |
38893 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38894 | _v = 0; | |
38895 | PyErr_Clear(); | |
38896 | } else { | |
38897 | _v = 1; | |
38898 | } | |
38899 | } | |
38900 | if (_v) { | |
38901 | { | |
38902 | void *ptr; | |
38903 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38904 | _v = 0; | |
38905 | PyErr_Clear(); | |
38906 | } else { | |
38907 | _v = 1; | |
38908 | } | |
38909 | } | |
38910 | if (_v) { | |
38911 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
38912 | } | |
38913 | } | |
38914 | } | |
38915 | if (argc == 2) { | |
38916 | int _v; | |
38917 | { | |
38918 | void *ptr; | |
38919 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38920 | _v = 0; | |
38921 | PyErr_Clear(); | |
38922 | } else { | |
38923 | _v = 1; | |
38924 | } | |
38925 | } | |
38926 | if (_v) { | |
38927 | { | |
38928 | void *ptr; | |
38929 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38930 | _v = 0; | |
38931 | PyErr_Clear(); | |
38932 | } else { | |
38933 | _v = 1; | |
38934 | } | |
38935 | } | |
38936 | if (_v) { | |
38937 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
38938 | } | |
38939 | } | |
38940 | } | |
38941 | if (argc == 2) { | |
38942 | int _v; | |
38943 | { | |
38944 | void *ptr; | |
38945 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38946 | _v = 0; | |
38947 | PyErr_Clear(); | |
38948 | } else { | |
38949 | _v = 1; | |
38950 | } | |
38951 | } | |
38952 | if (_v) { | |
38953 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
38954 | if (_v) { | |
38955 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
38956 | } | |
38957 | } | |
38958 | } | |
38959 | ||
38960 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
38961 | return NULL; | |
38962 | } | |
38963 | ||
38964 | ||
38965 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38966 | PyObject *resultobj; | |
38967 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38968 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38969 | wxGBSpan *arg3 = 0 ; | |
38970 | bool result; | |
38971 | wxGBSpan temp3 ; | |
38972 | PyObject * obj0 = 0 ; | |
38973 | PyObject * obj1 = 0 ; | |
38974 | PyObject * obj2 = 0 ; | |
38975 | ||
38976 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
38977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38979 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38981 | { | |
38982 | arg3 = &temp3; | |
38983 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38984 | } | |
38985 | { | |
38986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38987 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38988 | ||
38989 | wxPyEndAllowThreads(__tstate); | |
38990 | if (PyErr_Occurred()) SWIG_fail; | |
38991 | } | |
38992 | { | |
38993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38994 | } | |
38995 | return resultobj; | |
38996 | fail: | |
38997 | return NULL; | |
38998 | } | |
38999 | ||
39000 | ||
39001 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
39002 | PyObject *resultobj; | |
39003 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39004 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39005 | wxGBSpan *arg3 = 0 ; | |
39006 | bool result; | |
39007 | wxGBSpan temp3 ; | |
39008 | PyObject * obj0 = 0 ; | |
39009 | PyObject * obj1 = 0 ; | |
39010 | PyObject * obj2 = 0 ; | |
39011 | ||
39012 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39015 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39017 | { | |
39018 | arg3 = &temp3; | |
39019 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39020 | } | |
39021 | { | |
39022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39023 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39024 | ||
39025 | wxPyEndAllowThreads(__tstate); | |
39026 | if (PyErr_Occurred()) SWIG_fail; | |
39027 | } | |
39028 | { | |
39029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39030 | } | |
39031 | return resultobj; | |
39032 | fail: | |
39033 | return NULL; | |
39034 | } | |
39035 | ||
39036 | ||
39037 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
39038 | PyObject *resultobj; | |
39039 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39040 | size_t arg2 ; | |
39041 | wxGBSpan *arg3 = 0 ; | |
39042 | bool result; | |
39043 | wxGBSpan temp3 ; | |
39044 | PyObject * obj0 = 0 ; | |
39045 | PyObject * obj1 = 0 ; | |
39046 | PyObject * obj2 = 0 ; | |
39047 | ||
39048 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39051 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
39052 | if (PyErr_Occurred()) SWIG_fail; | |
39053 | { | |
39054 | arg3 = &temp3; | |
39055 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39056 | } | |
39057 | { | |
39058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39059 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39060 | ||
39061 | wxPyEndAllowThreads(__tstate); | |
39062 | if (PyErr_Occurred()) SWIG_fail; | |
39063 | } | |
39064 | { | |
39065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39066 | } | |
39067 | return resultobj; | |
39068 | fail: | |
39069 | return NULL; | |
39070 | } | |
39071 | ||
39072 | ||
39073 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
39074 | int argc; | |
39075 | PyObject *argv[4]; | |
39076 | int ii; | |
39077 | ||
39078 | argc = PyObject_Length(args); | |
39079 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39080 | argv[ii] = PyTuple_GetItem(args,ii); | |
39081 | } | |
39082 | if (argc == 3) { | |
39083 | int _v; | |
39084 | { | |
39085 | void *ptr; | |
39086 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39087 | _v = 0; | |
39088 | PyErr_Clear(); | |
39089 | } else { | |
39090 | _v = 1; | |
39091 | } | |
39092 | } | |
39093 | if (_v) { | |
39094 | { | |
39095 | void *ptr; | |
39096 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39097 | _v = 0; | |
39098 | PyErr_Clear(); | |
39099 | } else { | |
39100 | _v = 1; | |
39101 | } | |
39102 | } | |
39103 | if (_v) { | |
39104 | { | |
39105 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39106 | } | |
39107 | if (_v) { | |
39108 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
39109 | } | |
39110 | } | |
39111 | } | |
39112 | } | |
39113 | if (argc == 3) { | |
39114 | int _v; | |
39115 | { | |
39116 | void *ptr; | |
39117 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39118 | _v = 0; | |
39119 | PyErr_Clear(); | |
39120 | } else { | |
39121 | _v = 1; | |
39122 | } | |
39123 | } | |
39124 | if (_v) { | |
39125 | { | |
39126 | void *ptr; | |
39127 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39128 | _v = 0; | |
39129 | PyErr_Clear(); | |
39130 | } else { | |
39131 | _v = 1; | |
39132 | } | |
39133 | } | |
39134 | if (_v) { | |
39135 | { | |
39136 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39137 | } | |
39138 | if (_v) { | |
39139 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
39140 | } | |
39141 | } | |
39142 | } | |
39143 | } | |
39144 | if (argc == 3) { | |
39145 | int _v; | |
39146 | { | |
39147 | void *ptr; | |
39148 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39149 | _v = 0; | |
39150 | PyErr_Clear(); | |
39151 | } else { | |
39152 | _v = 1; | |
39153 | } | |
39154 | } | |
39155 | if (_v) { | |
39156 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
39157 | if (_v) { | |
39158 | { | |
39159 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39160 | } | |
39161 | if (_v) { | |
39162 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
39163 | } | |
39164 | } | |
39165 | } | |
39166 | } | |
39167 | ||
39168 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
39169 | return NULL; | |
39170 | } | |
39171 | ||
39172 | ||
39173 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
39174 | PyObject *resultobj; | |
39175 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39176 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39177 | wxGBSizerItem *result; | |
39178 | PyObject * obj0 = 0 ; | |
39179 | PyObject * obj1 = 0 ; | |
39180 | ||
39181 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39184 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39186 | { | |
39187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39188 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39189 | ||
39190 | wxPyEndAllowThreads(__tstate); | |
39191 | if (PyErr_Occurred()) SWIG_fail; | |
39192 | } | |
39193 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39194 | return resultobj; | |
39195 | fail: | |
39196 | return NULL; | |
39197 | } | |
39198 | ||
39199 | ||
39200 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
39201 | PyObject *resultobj; | |
39202 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39203 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39204 | wxGBSizerItem *result; | |
39205 | PyObject * obj0 = 0 ; | |
39206 | PyObject * obj1 = 0 ; | |
39207 | ||
39208 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39211 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39213 | { | |
39214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39215 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39216 | ||
39217 | wxPyEndAllowThreads(__tstate); | |
39218 | if (PyErr_Occurred()) SWIG_fail; | |
39219 | } | |
39220 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39221 | return resultobj; | |
39222 | fail: | |
39223 | return NULL; | |
39224 | } | |
39225 | ||
39226 | ||
39227 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
39228 | int argc; | |
39229 | PyObject *argv[3]; | |
39230 | int ii; | |
39231 | ||
39232 | argc = PyObject_Length(args); | |
39233 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39234 | argv[ii] = PyTuple_GetItem(args,ii); | |
39235 | } | |
39236 | if (argc == 2) { | |
39237 | int _v; | |
39238 | { | |
39239 | void *ptr; | |
39240 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39241 | _v = 0; | |
39242 | PyErr_Clear(); | |
39243 | } else { | |
39244 | _v = 1; | |
39245 | } | |
39246 | } | |
39247 | if (_v) { | |
39248 | { | |
39249 | void *ptr; | |
39250 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39251 | _v = 0; | |
39252 | PyErr_Clear(); | |
39253 | } else { | |
39254 | _v = 1; | |
39255 | } | |
39256 | } | |
39257 | if (_v) { | |
39258 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
39259 | } | |
39260 | } | |
39261 | } | |
39262 | if (argc == 2) { | |
39263 | int _v; | |
39264 | { | |
39265 | void *ptr; | |
39266 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39267 | _v = 0; | |
39268 | PyErr_Clear(); | |
39269 | } else { | |
39270 | _v = 1; | |
39271 | } | |
39272 | } | |
39273 | if (_v) { | |
39274 | { | |
39275 | void *ptr; | |
39276 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39277 | _v = 0; | |
39278 | PyErr_Clear(); | |
39279 | } else { | |
39280 | _v = 1; | |
39281 | } | |
39282 | } | |
39283 | if (_v) { | |
39284 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
39285 | } | |
39286 | } | |
39287 | } | |
39288 | ||
39289 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
39290 | return NULL; | |
39291 | } | |
39292 | ||
39293 | ||
39294 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39295 | PyObject *resultobj; | |
39296 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39297 | wxGBPosition *arg2 = 0 ; | |
39298 | wxGBSizerItem *result; | |
39299 | wxGBPosition temp2 ; | |
39300 | PyObject * obj0 = 0 ; | |
39301 | PyObject * obj1 = 0 ; | |
39302 | char *kwnames[] = { | |
39303 | (char *) "self",(char *) "pos", NULL | |
39304 | }; | |
39305 | ||
39306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
39307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39309 | { | |
39310 | arg2 = &temp2; | |
39311 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39312 | } | |
39313 | { | |
39314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39315 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
39316 | ||
39317 | wxPyEndAllowThreads(__tstate); | |
39318 | if (PyErr_Occurred()) SWIG_fail; | |
39319 | } | |
39320 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39321 | return resultobj; | |
39322 | fail: | |
39323 | return NULL; | |
39324 | } | |
39325 | ||
39326 | ||
39327 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39328 | PyObject *resultobj; | |
39329 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39330 | wxPoint *arg2 = 0 ; | |
39331 | wxGBSizerItem *result; | |
39332 | wxPoint temp2 ; | |
39333 | PyObject * obj0 = 0 ; | |
39334 | PyObject * obj1 = 0 ; | |
39335 | char *kwnames[] = { | |
39336 | (char *) "self",(char *) "pt", NULL | |
39337 | }; | |
39338 | ||
39339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
39340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39342 | { | |
39343 | arg2 = &temp2; | |
39344 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39345 | } | |
39346 | { | |
39347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39348 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
39349 | ||
39350 | wxPyEndAllowThreads(__tstate); | |
39351 | if (PyErr_Occurred()) SWIG_fail; | |
39352 | } | |
39353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39354 | return resultobj; | |
39355 | fail: | |
39356 | return NULL; | |
39357 | } | |
39358 | ||
39359 | ||
248ed943 | 39360 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39361 | PyObject *resultobj; |
39362 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39363 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
39364 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
39365 | bool result; | |
39366 | PyObject * obj0 = 0 ; | |
39367 | PyObject * obj1 = 0 ; | |
39368 | PyObject * obj2 = 0 ; | |
248ed943 RD |
39369 | char *kwnames[] = { |
39370 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
39371 | }; | |
d55e5bfc | 39372 | |
248ed943 | 39373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
39374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39376 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
39377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39378 | if (obj2) { | |
39379 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, | |
39380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39381 | } | |
39382 | { | |
39383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39384 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
39385 | ||
39386 | wxPyEndAllowThreads(__tstate); | |
39387 | if (PyErr_Occurred()) SWIG_fail; | |
39388 | } | |
39389 | { | |
39390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39391 | } | |
39392 | return resultobj; | |
39393 | fail: | |
39394 | return NULL; | |
39395 | } | |
39396 | ||
39397 | ||
248ed943 | 39398 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39399 | PyObject *resultobj; |
39400 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39401 | wxGBPosition *arg2 = 0 ; | |
39402 | wxGBSpan *arg3 = 0 ; | |
39403 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
39404 | bool result; | |
39405 | wxGBPosition temp2 ; | |
39406 | wxGBSpan temp3 ; | |
39407 | PyObject * obj0 = 0 ; | |
39408 | PyObject * obj1 = 0 ; | |
39409 | PyObject * obj2 = 0 ; | |
39410 | PyObject * obj3 = 0 ; | |
248ed943 RD |
39411 | char *kwnames[] = { |
39412 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
39413 | }; | |
d55e5bfc | 39414 | |
248ed943 | 39415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
39416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39418 | { | |
39419 | arg2 = &temp2; | |
39420 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39421 | } | |
39422 | { | |
39423 | arg3 = &temp3; | |
39424 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39425 | } | |
39426 | if (obj3) { | |
39427 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, | |
39428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39429 | } | |
39430 | { | |
39431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39432 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
39433 | ||
39434 | wxPyEndAllowThreads(__tstate); | |
39435 | if (PyErr_Occurred()) SWIG_fail; | |
39436 | } | |
39437 | { | |
39438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39439 | } | |
39440 | return resultobj; | |
39441 | fail: | |
39442 | return NULL; | |
39443 | } | |
39444 | ||
39445 | ||
d55e5bfc RD |
39446 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { |
39447 | PyObject *obj; | |
39448 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39449 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
39450 | Py_INCREF(obj); | |
39451 | return Py_BuildValue((char *)""); | |
39452 | } | |
39453 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39454 | PyObject *resultobj; | |
39455 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39456 | int arg2 ; | |
39457 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39458 | int arg4 ; | |
39459 | int arg5 = (int) 0 ; | |
39460 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
39461 | PyObject * obj0 = 0 ; | |
39462 | PyObject * obj1 = 0 ; | |
39463 | PyObject * obj2 = 0 ; | |
39464 | PyObject * obj3 = 0 ; | |
39465 | PyObject * obj4 = 0 ; | |
39466 | PyObject * obj5 = 0 ; | |
39467 | char *kwnames[] = { | |
39468 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
39469 | }; | |
39470 | ||
39471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
39472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39474 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
39475 | if (PyErr_Occurred()) SWIG_fail; | |
39476 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39478 | arg4 = (wxEdge) SWIG_AsInt(obj3); | |
39479 | if (PyErr_Occurred()) SWIG_fail; | |
39480 | if (obj4) { | |
39481 | arg5 = (int) SWIG_AsInt(obj4); | |
39482 | if (PyErr_Occurred()) SWIG_fail; | |
39483 | } | |
39484 | if (obj5) { | |
39485 | arg6 = (int) SWIG_AsInt(obj5); | |
39486 | if (PyErr_Occurred()) SWIG_fail; | |
39487 | } | |
39488 | { | |
39489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39490 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
39491 | ||
39492 | wxPyEndAllowThreads(__tstate); | |
39493 | if (PyErr_Occurred()) SWIG_fail; | |
39494 | } | |
39495 | Py_INCREF(Py_None); resultobj = Py_None; | |
39496 | return resultobj; | |
39497 | fail: | |
39498 | return NULL; | |
39499 | } | |
39500 | ||
39501 | ||
39502 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39503 | PyObject *resultobj; | |
39504 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39505 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39506 | int arg3 = (int) 0 ; | |
39507 | PyObject * obj0 = 0 ; | |
39508 | PyObject * obj1 = 0 ; | |
39509 | PyObject * obj2 = 0 ; | |
39510 | char *kwnames[] = { | |
39511 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39512 | }; | |
39513 | ||
39514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39517 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39519 | if (obj2) { | |
39520 | arg3 = (int) SWIG_AsInt(obj2); | |
39521 | if (PyErr_Occurred()) SWIG_fail; | |
39522 | } | |
39523 | { | |
39524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39525 | (arg1)->LeftOf(arg2,arg3); | |
39526 | ||
39527 | wxPyEndAllowThreads(__tstate); | |
39528 | if (PyErr_Occurred()) SWIG_fail; | |
39529 | } | |
39530 | Py_INCREF(Py_None); resultobj = Py_None; | |
39531 | return resultobj; | |
39532 | fail: | |
39533 | return NULL; | |
39534 | } | |
39535 | ||
39536 | ||
39537 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39538 | PyObject *resultobj; | |
39539 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39540 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39541 | int arg3 = (int) 0 ; | |
39542 | PyObject * obj0 = 0 ; | |
39543 | PyObject * obj1 = 0 ; | |
39544 | PyObject * obj2 = 0 ; | |
39545 | char *kwnames[] = { | |
39546 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39547 | }; | |
39548 | ||
39549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39552 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39554 | if (obj2) { | |
39555 | arg3 = (int) SWIG_AsInt(obj2); | |
39556 | if (PyErr_Occurred()) SWIG_fail; | |
39557 | } | |
39558 | { | |
39559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39560 | (arg1)->RightOf(arg2,arg3); | |
39561 | ||
39562 | wxPyEndAllowThreads(__tstate); | |
39563 | if (PyErr_Occurred()) SWIG_fail; | |
39564 | } | |
39565 | Py_INCREF(Py_None); resultobj = Py_None; | |
39566 | return resultobj; | |
39567 | fail: | |
39568 | return NULL; | |
39569 | } | |
39570 | ||
39571 | ||
39572 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39573 | PyObject *resultobj; | |
39574 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39575 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39576 | int arg3 = (int) 0 ; | |
39577 | PyObject * obj0 = 0 ; | |
39578 | PyObject * obj1 = 0 ; | |
39579 | PyObject * obj2 = 0 ; | |
39580 | char *kwnames[] = { | |
39581 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39582 | }; | |
39583 | ||
39584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39589 | if (obj2) { | |
39590 | arg3 = (int) SWIG_AsInt(obj2); | |
39591 | if (PyErr_Occurred()) SWIG_fail; | |
39592 | } | |
39593 | { | |
39594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39595 | (arg1)->Above(arg2,arg3); | |
39596 | ||
39597 | wxPyEndAllowThreads(__tstate); | |
39598 | if (PyErr_Occurred()) SWIG_fail; | |
39599 | } | |
39600 | Py_INCREF(Py_None); resultobj = Py_None; | |
39601 | return resultobj; | |
39602 | fail: | |
39603 | return NULL; | |
39604 | } | |
39605 | ||
39606 | ||
39607 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39608 | PyObject *resultobj; | |
39609 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39610 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39611 | int arg3 = (int) 0 ; | |
39612 | PyObject * obj0 = 0 ; | |
39613 | PyObject * obj1 = 0 ; | |
39614 | PyObject * obj2 = 0 ; | |
39615 | char *kwnames[] = { | |
39616 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39617 | }; | |
39618 | ||
39619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39622 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39624 | if (obj2) { | |
39625 | arg3 = (int) SWIG_AsInt(obj2); | |
39626 | if (PyErr_Occurred()) SWIG_fail; | |
39627 | } | |
39628 | { | |
39629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39630 | (arg1)->Below(arg2,arg3); | |
39631 | ||
39632 | wxPyEndAllowThreads(__tstate); | |
39633 | if (PyErr_Occurred()) SWIG_fail; | |
39634 | } | |
39635 | Py_INCREF(Py_None); resultobj = Py_None; | |
39636 | return resultobj; | |
39637 | fail: | |
39638 | return NULL; | |
39639 | } | |
39640 | ||
39641 | ||
39642 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39643 | PyObject *resultobj; | |
39644 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39645 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39646 | int arg3 ; | |
39647 | int arg4 = (int) 0 ; | |
39648 | PyObject * obj0 = 0 ; | |
39649 | PyObject * obj1 = 0 ; | |
39650 | PyObject * obj2 = 0 ; | |
39651 | PyObject * obj3 = 0 ; | |
39652 | char *kwnames[] = { | |
39653 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
39654 | }; | |
39655 | ||
39656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39659 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39661 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39662 | if (PyErr_Occurred()) SWIG_fail; | |
39663 | if (obj3) { | |
39664 | arg4 = (int) SWIG_AsInt(obj3); | |
39665 | if (PyErr_Occurred()) SWIG_fail; | |
39666 | } | |
39667 | { | |
39668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39669 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
39670 | ||
39671 | wxPyEndAllowThreads(__tstate); | |
39672 | if (PyErr_Occurred()) SWIG_fail; | |
39673 | } | |
39674 | Py_INCREF(Py_None); resultobj = Py_None; | |
39675 | return resultobj; | |
39676 | fail: | |
39677 | return NULL; | |
39678 | } | |
39679 | ||
39680 | ||
39681 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39682 | PyObject *resultobj; | |
39683 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39684 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39685 | int arg3 ; | |
39686 | int arg4 ; | |
39687 | PyObject * obj0 = 0 ; | |
39688 | PyObject * obj1 = 0 ; | |
39689 | PyObject * obj2 = 0 ; | |
39690 | PyObject * obj3 = 0 ; | |
39691 | char *kwnames[] = { | |
39692 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
39693 | }; | |
39694 | ||
39695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39698 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39700 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39701 | if (PyErr_Occurred()) SWIG_fail; | |
39702 | arg4 = (int) SWIG_AsInt(obj3); | |
39703 | if (PyErr_Occurred()) SWIG_fail; | |
39704 | { | |
39705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39706 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
39707 | ||
39708 | wxPyEndAllowThreads(__tstate); | |
39709 | if (PyErr_Occurred()) SWIG_fail; | |
39710 | } | |
39711 | Py_INCREF(Py_None); resultobj = Py_None; | |
39712 | return resultobj; | |
39713 | fail: | |
39714 | return NULL; | |
39715 | } | |
39716 | ||
39717 | ||
39718 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39719 | PyObject *resultobj; | |
39720 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39721 | int arg2 ; | |
39722 | PyObject * obj0 = 0 ; | |
39723 | PyObject * obj1 = 0 ; | |
39724 | char *kwnames[] = { | |
39725 | (char *) "self",(char *) "val", NULL | |
39726 | }; | |
39727 | ||
39728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; | |
39729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39731 | arg2 = (int) SWIG_AsInt(obj1); | |
39732 | if (PyErr_Occurred()) SWIG_fail; | |
39733 | { | |
39734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39735 | (arg1)->Absolute(arg2); | |
39736 | ||
39737 | wxPyEndAllowThreads(__tstate); | |
39738 | if (PyErr_Occurred()) SWIG_fail; | |
39739 | } | |
39740 | Py_INCREF(Py_None); resultobj = Py_None; | |
39741 | return resultobj; | |
39742 | fail: | |
39743 | return NULL; | |
39744 | } | |
39745 | ||
39746 | ||
39747 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39748 | PyObject *resultobj; | |
39749 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39750 | PyObject * obj0 = 0 ; | |
39751 | char *kwnames[] = { | |
39752 | (char *) "self", NULL | |
39753 | }; | |
39754 | ||
39755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
39756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39758 | { | |
39759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39760 | (arg1)->Unconstrained(); | |
39761 | ||
39762 | wxPyEndAllowThreads(__tstate); | |
39763 | if (PyErr_Occurred()) SWIG_fail; | |
39764 | } | |
39765 | Py_INCREF(Py_None); resultobj = Py_None; | |
39766 | return resultobj; | |
39767 | fail: | |
39768 | return NULL; | |
39769 | } | |
39770 | ||
39771 | ||
39772 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39773 | PyObject *resultobj; | |
39774 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39775 | PyObject * obj0 = 0 ; | |
39776 | char *kwnames[] = { | |
39777 | (char *) "self", NULL | |
39778 | }; | |
39779 | ||
39780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
39781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39783 | { | |
39784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39785 | (arg1)->AsIs(); | |
39786 | ||
39787 | wxPyEndAllowThreads(__tstate); | |
39788 | if (PyErr_Occurred()) SWIG_fail; | |
39789 | } | |
39790 | Py_INCREF(Py_None); resultobj = Py_None; | |
39791 | return resultobj; | |
39792 | fail: | |
39793 | return NULL; | |
39794 | } | |
39795 | ||
39796 | ||
39797 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39798 | PyObject *resultobj; | |
39799 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39800 | wxWindow *result; | |
39801 | PyObject * obj0 = 0 ; | |
39802 | char *kwnames[] = { | |
39803 | (char *) "self", NULL | |
39804 | }; | |
39805 | ||
39806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
39807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39809 | { | |
39810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39811 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
39812 | ||
39813 | wxPyEndAllowThreads(__tstate); | |
39814 | if (PyErr_Occurred()) SWIG_fail; | |
39815 | } | |
39816 | { | |
412d302d | 39817 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
39818 | } |
39819 | return resultobj; | |
39820 | fail: | |
39821 | return NULL; | |
39822 | } | |
39823 | ||
39824 | ||
39825 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39826 | PyObject *resultobj; | |
39827 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39828 | int result; | |
39829 | PyObject * obj0 = 0 ; | |
39830 | char *kwnames[] = { | |
39831 | (char *) "self", NULL | |
39832 | }; | |
39833 | ||
39834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
39835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39837 | { | |
39838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39839 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
39840 | ||
39841 | wxPyEndAllowThreads(__tstate); | |
39842 | if (PyErr_Occurred()) SWIG_fail; | |
39843 | } | |
39844 | resultobj = SWIG_FromInt((int)result); | |
39845 | return resultobj; | |
39846 | fail: | |
39847 | return NULL; | |
39848 | } | |
39849 | ||
39850 | ||
39851 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39852 | PyObject *resultobj; | |
39853 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39854 | int arg2 ; | |
39855 | PyObject * obj0 = 0 ; | |
39856 | PyObject * obj1 = 0 ; | |
39857 | char *kwnames[] = { | |
39858 | (char *) "self",(char *) "which", NULL | |
39859 | }; | |
39860 | ||
39861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
39862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39864 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39865 | if (PyErr_Occurred()) SWIG_fail; | |
39866 | { | |
39867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39868 | (arg1)->SetEdge((wxEdge )arg2); | |
39869 | ||
39870 | wxPyEndAllowThreads(__tstate); | |
39871 | if (PyErr_Occurred()) SWIG_fail; | |
39872 | } | |
39873 | Py_INCREF(Py_None); resultobj = Py_None; | |
39874 | return resultobj; | |
39875 | fail: | |
39876 | return NULL; | |
39877 | } | |
39878 | ||
39879 | ||
39880 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39881 | PyObject *resultobj; | |
39882 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39883 | int arg2 ; | |
39884 | PyObject * obj0 = 0 ; | |
39885 | PyObject * obj1 = 0 ; | |
39886 | char *kwnames[] = { | |
39887 | (char *) "self",(char *) "v", NULL | |
39888 | }; | |
39889 | ||
39890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
39891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39893 | arg2 = (int) SWIG_AsInt(obj1); | |
39894 | if (PyErr_Occurred()) SWIG_fail; | |
39895 | { | |
39896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39897 | (arg1)->SetValue(arg2); | |
39898 | ||
39899 | wxPyEndAllowThreads(__tstate); | |
39900 | if (PyErr_Occurred()) SWIG_fail; | |
39901 | } | |
39902 | Py_INCREF(Py_None); resultobj = Py_None; | |
39903 | return resultobj; | |
39904 | fail: | |
39905 | return NULL; | |
39906 | } | |
39907 | ||
39908 | ||
39909 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39910 | PyObject *resultobj; | |
39911 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39912 | int result; | |
39913 | PyObject * obj0 = 0 ; | |
39914 | char *kwnames[] = { | |
39915 | (char *) "self", NULL | |
39916 | }; | |
39917 | ||
39918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
39919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39921 | { | |
39922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39923 | result = (int)(arg1)->GetMargin(); | |
39924 | ||
39925 | wxPyEndAllowThreads(__tstate); | |
39926 | if (PyErr_Occurred()) SWIG_fail; | |
39927 | } | |
39928 | resultobj = SWIG_FromInt((int)result); | |
39929 | return resultobj; | |
39930 | fail: | |
39931 | return NULL; | |
39932 | } | |
39933 | ||
39934 | ||
39935 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39936 | PyObject *resultobj; | |
39937 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39938 | int arg2 ; | |
39939 | PyObject * obj0 = 0 ; | |
39940 | PyObject * obj1 = 0 ; | |
39941 | char *kwnames[] = { | |
39942 | (char *) "self",(char *) "m", NULL | |
39943 | }; | |
39944 | ||
39945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; | |
39946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39948 | arg2 = (int) SWIG_AsInt(obj1); | |
39949 | if (PyErr_Occurred()) SWIG_fail; | |
39950 | { | |
39951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39952 | (arg1)->SetMargin(arg2); | |
39953 | ||
39954 | wxPyEndAllowThreads(__tstate); | |
39955 | if (PyErr_Occurred()) SWIG_fail; | |
39956 | } | |
39957 | Py_INCREF(Py_None); resultobj = Py_None; | |
39958 | return resultobj; | |
39959 | fail: | |
39960 | return NULL; | |
39961 | } | |
39962 | ||
39963 | ||
39964 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39965 | PyObject *resultobj; | |
39966 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39967 | int result; | |
39968 | PyObject * obj0 = 0 ; | |
39969 | char *kwnames[] = { | |
39970 | (char *) "self", NULL | |
39971 | }; | |
39972 | ||
39973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
39974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39976 | { | |
39977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39978 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
39979 | ||
39980 | wxPyEndAllowThreads(__tstate); | |
39981 | if (PyErr_Occurred()) SWIG_fail; | |
39982 | } | |
39983 | resultobj = SWIG_FromInt((int)result); | |
39984 | return resultobj; | |
39985 | fail: | |
39986 | return NULL; | |
39987 | } | |
39988 | ||
39989 | ||
39990 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39991 | PyObject *resultobj; | |
39992 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39993 | int result; | |
39994 | PyObject * obj0 = 0 ; | |
39995 | char *kwnames[] = { | |
39996 | (char *) "self", NULL | |
39997 | }; | |
39998 | ||
39999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
40000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40002 | { | |
40003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40004 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
40005 | ||
40006 | wxPyEndAllowThreads(__tstate); | |
40007 | if (PyErr_Occurred()) SWIG_fail; | |
40008 | } | |
40009 | resultobj = SWIG_FromInt((int)result); | |
40010 | return resultobj; | |
40011 | fail: | |
40012 | return NULL; | |
40013 | } | |
40014 | ||
40015 | ||
40016 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40017 | PyObject *resultobj; | |
40018 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40019 | int result; | |
40020 | PyObject * obj0 = 0 ; | |
40021 | char *kwnames[] = { | |
40022 | (char *) "self", NULL | |
40023 | }; | |
40024 | ||
40025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
40026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40028 | { | |
40029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40030 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
40031 | ||
40032 | wxPyEndAllowThreads(__tstate); | |
40033 | if (PyErr_Occurred()) SWIG_fail; | |
40034 | } | |
40035 | resultobj = SWIG_FromInt((int)result); | |
40036 | return resultobj; | |
40037 | fail: | |
40038 | return NULL; | |
40039 | } | |
40040 | ||
40041 | ||
40042 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40043 | PyObject *resultobj; | |
40044 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40045 | bool result; | |
40046 | PyObject * obj0 = 0 ; | |
40047 | char *kwnames[] = { | |
40048 | (char *) "self", NULL | |
40049 | }; | |
40050 | ||
40051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
40052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40054 | { | |
40055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40056 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
40057 | ||
40058 | wxPyEndAllowThreads(__tstate); | |
40059 | if (PyErr_Occurred()) SWIG_fail; | |
40060 | } | |
40061 | { | |
40062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40063 | } | |
40064 | return resultobj; | |
40065 | fail: | |
40066 | return NULL; | |
40067 | } | |
40068 | ||
40069 | ||
40070 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40071 | PyObject *resultobj; | |
40072 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40073 | bool arg2 ; | |
40074 | PyObject * obj0 = 0 ; | |
40075 | PyObject * obj1 = 0 ; | |
40076 | char *kwnames[] = { | |
40077 | (char *) "self",(char *) "d", NULL | |
40078 | }; | |
40079 | ||
40080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
40081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40083 | arg2 = (bool) SWIG_AsBool(obj1); | |
40084 | if (PyErr_Occurred()) SWIG_fail; | |
40085 | { | |
40086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40087 | (arg1)->SetDone(arg2); | |
40088 | ||
40089 | wxPyEndAllowThreads(__tstate); | |
40090 | if (PyErr_Occurred()) SWIG_fail; | |
40091 | } | |
40092 | Py_INCREF(Py_None); resultobj = Py_None; | |
40093 | return resultobj; | |
40094 | fail: | |
40095 | return NULL; | |
40096 | } | |
40097 | ||
40098 | ||
40099 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40100 | PyObject *resultobj; | |
40101 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40102 | int result; | |
40103 | PyObject * obj0 = 0 ; | |
40104 | char *kwnames[] = { | |
40105 | (char *) "self", NULL | |
40106 | }; | |
40107 | ||
40108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
40109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40111 | { | |
40112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40113 | result = (int)(arg1)->GetRelationship(); | |
40114 | ||
40115 | wxPyEndAllowThreads(__tstate); | |
40116 | if (PyErr_Occurred()) SWIG_fail; | |
40117 | } | |
40118 | resultobj = SWIG_FromInt((int)result); | |
40119 | return resultobj; | |
40120 | fail: | |
40121 | return NULL; | |
40122 | } | |
40123 | ||
40124 | ||
40125 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40126 | PyObject *resultobj; | |
40127 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40128 | int arg2 ; | |
40129 | PyObject * obj0 = 0 ; | |
40130 | PyObject * obj1 = 0 ; | |
40131 | char *kwnames[] = { | |
40132 | (char *) "self",(char *) "r", NULL | |
40133 | }; | |
40134 | ||
40135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; | |
40136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40138 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
40139 | if (PyErr_Occurred()) SWIG_fail; | |
40140 | { | |
40141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40142 | (arg1)->SetRelationship((wxRelationship )arg2); | |
40143 | ||
40144 | wxPyEndAllowThreads(__tstate); | |
40145 | if (PyErr_Occurred()) SWIG_fail; | |
40146 | } | |
40147 | Py_INCREF(Py_None); resultobj = Py_None; | |
40148 | return resultobj; | |
40149 | fail: | |
40150 | return NULL; | |
40151 | } | |
40152 | ||
40153 | ||
40154 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40155 | PyObject *resultobj; | |
40156 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40157 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40158 | bool result; | |
40159 | PyObject * obj0 = 0 ; | |
40160 | PyObject * obj1 = 0 ; | |
40161 | char *kwnames[] = { | |
40162 | (char *) "self",(char *) "otherW", NULL | |
40163 | }; | |
40164 | ||
40165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
40166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40168 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40170 | { | |
40171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40172 | result = (bool)(arg1)->ResetIfWin(arg2); | |
40173 | ||
40174 | wxPyEndAllowThreads(__tstate); | |
40175 | if (PyErr_Occurred()) SWIG_fail; | |
40176 | } | |
40177 | { | |
40178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40179 | } | |
40180 | return resultobj; | |
40181 | fail: | |
40182 | return NULL; | |
40183 | } | |
40184 | ||
40185 | ||
40186 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40187 | PyObject *resultobj; | |
40188 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40189 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
40190 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40191 | bool result; | |
40192 | PyObject * obj0 = 0 ; | |
40193 | PyObject * obj1 = 0 ; | |
40194 | PyObject * obj2 = 0 ; | |
40195 | char *kwnames[] = { | |
40196 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
40197 | }; | |
40198 | ||
40199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40202 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
40203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40204 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40206 | { | |
40207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40208 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
40209 | ||
40210 | wxPyEndAllowThreads(__tstate); | |
40211 | if (PyErr_Occurred()) SWIG_fail; | |
40212 | } | |
40213 | { | |
40214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40215 | } | |
40216 | return resultobj; | |
40217 | fail: | |
40218 | return NULL; | |
40219 | } | |
40220 | ||
40221 | ||
40222 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40223 | PyObject *resultobj; | |
40224 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40225 | int arg2 ; | |
40226 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40227 | wxWindow *arg4 = (wxWindow *) 0 ; | |
40228 | int result; | |
40229 | PyObject * obj0 = 0 ; | |
40230 | PyObject * obj1 = 0 ; | |
40231 | PyObject * obj2 = 0 ; | |
40232 | PyObject * obj3 = 0 ; | |
40233 | char *kwnames[] = { | |
40234 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
40235 | }; | |
40236 | ||
40237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40240 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
40241 | if (PyErr_Occurred()) SWIG_fail; | |
40242 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40244 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
40245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40246 | { | |
40247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40248 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
40249 | ||
40250 | wxPyEndAllowThreads(__tstate); | |
40251 | if (PyErr_Occurred()) SWIG_fail; | |
40252 | } | |
40253 | resultobj = SWIG_FromInt((int)result); | |
40254 | return resultobj; | |
40255 | fail: | |
40256 | return NULL; | |
40257 | } | |
40258 | ||
40259 | ||
40260 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
40261 | PyObject *obj; | |
40262 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40263 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
40264 | Py_INCREF(obj); | |
40265 | return Py_BuildValue((char *)""); | |
40266 | } | |
40267 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40268 | PyObject *resultobj; | |
40269 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40270 | wxIndividualLayoutConstraint *result; | |
40271 | PyObject * obj0 = 0 ; | |
40272 | char *kwnames[] = { | |
40273 | (char *) "self", NULL | |
40274 | }; | |
40275 | ||
40276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
40277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40279 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
40280 | ||
40281 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40282 | return resultobj; | |
40283 | fail: | |
40284 | return NULL; | |
40285 | } | |
40286 | ||
40287 | ||
40288 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40289 | PyObject *resultobj; | |
40290 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40291 | wxIndividualLayoutConstraint *result; | |
40292 | PyObject * obj0 = 0 ; | |
40293 | char *kwnames[] = { | |
40294 | (char *) "self", NULL | |
40295 | }; | |
40296 | ||
40297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
40298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40300 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
40301 | ||
40302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40303 | return resultobj; | |
40304 | fail: | |
40305 | return NULL; | |
40306 | } | |
40307 | ||
40308 | ||
40309 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40310 | PyObject *resultobj; | |
40311 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40312 | wxIndividualLayoutConstraint *result; | |
40313 | PyObject * obj0 = 0 ; | |
40314 | char *kwnames[] = { | |
40315 | (char *) "self", NULL | |
40316 | }; | |
40317 | ||
40318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
40319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40321 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
40322 | ||
40323 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40324 | return resultobj; | |
40325 | fail: | |
40326 | return NULL; | |
40327 | } | |
40328 | ||
40329 | ||
40330 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40331 | PyObject *resultobj; | |
40332 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40333 | wxIndividualLayoutConstraint *result; | |
40334 | PyObject * obj0 = 0 ; | |
40335 | char *kwnames[] = { | |
40336 | (char *) "self", NULL | |
40337 | }; | |
40338 | ||
40339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
40340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40342 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
40343 | ||
40344 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40345 | return resultobj; | |
40346 | fail: | |
40347 | return NULL; | |
40348 | } | |
40349 | ||
40350 | ||
40351 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40352 | PyObject *resultobj; | |
40353 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40354 | wxIndividualLayoutConstraint *result; | |
40355 | PyObject * obj0 = 0 ; | |
40356 | char *kwnames[] = { | |
40357 | (char *) "self", NULL | |
40358 | }; | |
40359 | ||
40360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
40361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40363 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
40364 | ||
40365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40366 | return resultobj; | |
40367 | fail: | |
40368 | return NULL; | |
40369 | } | |
40370 | ||
40371 | ||
40372 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40373 | PyObject *resultobj; | |
40374 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40375 | wxIndividualLayoutConstraint *result; | |
40376 | PyObject * obj0 = 0 ; | |
40377 | char *kwnames[] = { | |
40378 | (char *) "self", NULL | |
40379 | }; | |
40380 | ||
40381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
40382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40384 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
40385 | ||
40386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40387 | return resultobj; | |
40388 | fail: | |
40389 | return NULL; | |
40390 | } | |
40391 | ||
40392 | ||
40393 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40394 | PyObject *resultobj; | |
40395 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40396 | wxIndividualLayoutConstraint *result; | |
40397 | PyObject * obj0 = 0 ; | |
40398 | char *kwnames[] = { | |
40399 | (char *) "self", NULL | |
40400 | }; | |
40401 | ||
40402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
40403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40405 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
40406 | ||
40407 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40408 | return resultobj; | |
40409 | fail: | |
40410 | return NULL; | |
40411 | } | |
40412 | ||
40413 | ||
40414 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40415 | PyObject *resultobj; | |
40416 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40417 | wxIndividualLayoutConstraint *result; | |
40418 | PyObject * obj0 = 0 ; | |
40419 | char *kwnames[] = { | |
40420 | (char *) "self", NULL | |
40421 | }; | |
40422 | ||
40423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
40424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40426 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
40427 | ||
40428 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40429 | return resultobj; | |
40430 | fail: | |
40431 | return NULL; | |
40432 | } | |
40433 | ||
40434 | ||
40435 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40436 | PyObject *resultobj; | |
40437 | wxLayoutConstraints *result; | |
40438 | char *kwnames[] = { | |
40439 | NULL | |
40440 | }; | |
40441 | ||
40442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
40443 | { | |
40444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40445 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
40446 | ||
40447 | wxPyEndAllowThreads(__tstate); | |
40448 | if (PyErr_Occurred()) SWIG_fail; | |
40449 | } | |
40450 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); | |
40451 | return resultobj; | |
40452 | fail: | |
40453 | return NULL; | |
40454 | } | |
40455 | ||
40456 | ||
40457 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40458 | PyObject *resultobj; | |
40459 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40460 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40461 | int *arg3 = (int *) 0 ; | |
40462 | bool result; | |
40463 | int temp3 ; | |
40464 | PyObject * obj0 = 0 ; | |
40465 | PyObject * obj1 = 0 ; | |
40466 | char *kwnames[] = { | |
40467 | (char *) "self",(char *) "win", NULL | |
40468 | }; | |
40469 | ||
40470 | arg3 = &temp3; | |
40471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
40472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40474 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40476 | { | |
40477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40478 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
40479 | ||
40480 | wxPyEndAllowThreads(__tstate); | |
40481 | if (PyErr_Occurred()) SWIG_fail; | |
40482 | } | |
40483 | { | |
40484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40485 | } | |
40486 | { | |
40487 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
40488 | resultobj = t_output_helper(resultobj,o); | |
40489 | } | |
40490 | return resultobj; | |
40491 | fail: | |
40492 | return NULL; | |
40493 | } | |
40494 | ||
40495 | ||
40496 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40497 | PyObject *resultobj; | |
40498 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40499 | bool result; | |
40500 | PyObject * obj0 = 0 ; | |
40501 | char *kwnames[] = { | |
40502 | (char *) "self", NULL | |
40503 | }; | |
40504 | ||
40505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
40506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40508 | { | |
40509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40510 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
40511 | ||
40512 | wxPyEndAllowThreads(__tstate); | |
40513 | if (PyErr_Occurred()) SWIG_fail; | |
40514 | } | |
40515 | { | |
40516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40517 | } | |
40518 | return resultobj; | |
40519 | fail: | |
40520 | return NULL; | |
40521 | } | |
40522 | ||
40523 | ||
40524 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
40525 | PyObject *obj; | |
40526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40527 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
40528 | Py_INCREF(obj); | |
40529 | return Py_BuildValue((char *)""); | |
40530 | } | |
40531 | static PyMethodDef SwigMethods[] = { | |
40532 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
40533 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, | |
40534 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40535 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40536 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
40537 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
40538 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40539 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
40540 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40541 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
40542 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
40543 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40544 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40545 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
40546 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40547 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
40548 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
40549 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
40550 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40551 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40552 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40553 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40554 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS }, | |
40555 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS }, | |
40556 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, | |
40557 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, | |
40558 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40559 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40560 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40561 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40562 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
40563 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
40564 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40565 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40566 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, | |
40567 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40568 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, | |
40569 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, | |
40570 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, | |
40571 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40572 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40573 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40574 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40575 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
40576 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
40577 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40578 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40579 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
40580 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40581 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40582 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40583 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
40584 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, | |
40585 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, | |
40586 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40587 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
40588 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
40589 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40590 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40591 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
40592 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40593 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
40594 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40595 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40596 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40597 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40598 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40599 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40600 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40601 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40602 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
40603 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
40604 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
40605 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
40606 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, | |
40607 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
40608 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40609 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
40610 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
40611 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
40612 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
40613 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40614 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
40615 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
40616 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
40617 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
40618 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
40619 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
40620 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40621 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40622 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40623 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
40624 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
40625 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
40626 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40627 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40628 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40629 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40630 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
40631 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40632 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
40633 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40634 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
40635 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, | |
40636 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, | |
40637 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
40638 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
40639 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
40640 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
40641 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
40642 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
40643 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40644 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40645 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40646 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40647 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
40648 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
40649 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
40650 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
40651 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
40652 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40653 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40654 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
40655 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
40656 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40657 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40658 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40659 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40660 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40661 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40662 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
40663 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, | |
40664 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, | |
40665 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
40666 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
40667 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
40668 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
40669 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
40670 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
40671 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
40672 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
40673 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
40674 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
40675 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
40676 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
40677 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40678 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
40679 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
40680 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
40681 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
40682 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
40683 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
40684 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
40685 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40686 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40687 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
40688 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40689 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
40690 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40691 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
40692 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
40693 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
40694 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
40695 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40696 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40697 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40698 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40699 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40700 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
40701 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
40702 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40703 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
40704 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
40705 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
40706 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40707 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40708 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
40709 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
40710 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40711 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40712 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40713 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40714 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
40715 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
40716 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
40717 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
40718 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40719 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40720 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40721 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
40722 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40723 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40724 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40725 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40726 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40727 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
40728 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
40729 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40730 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
40731 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40732 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
40733 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40734 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40735 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40736 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40737 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
40738 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
40739 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40740 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
40741 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40742 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40743 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40744 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40745 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
40746 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40747 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
40748 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40749 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
40750 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
40751 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
40752 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
40753 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
40754 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
40755 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
40756 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 40757 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
40758 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
40759 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
40760 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
40761 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40762 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
40763 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
40764 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
40765 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
40766 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
40767 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
40768 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
40769 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40770 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40771 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40772 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
4cf4100f | 40773 | { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
40774 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, |
40775 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40776 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
40777 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
40778 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40779 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
40780 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40781 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
40782 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
40783 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
40784 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40785 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40786 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40787 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40788 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
40789 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
40790 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
40791 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
40792 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
40793 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40794 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40795 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40796 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40797 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40798 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40799 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
40800 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
40801 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
40802 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
40803 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
40804 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
40805 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
40806 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
40807 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
40808 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40809 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
40810 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
40811 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40812 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
40813 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40814 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
40815 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
40816 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40817 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40818 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
40819 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
40820 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
40821 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40822 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40823 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
d55e5bfc RD |
40824 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, |
40825 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
40826 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
40827 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
40828 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
40829 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
40830 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
40831 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
40832 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40833 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
40834 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40835 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
40836 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
40837 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
40838 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40839 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
40840 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40841 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
40842 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40843 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
40844 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40845 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
c0de73ae RD |
40846 | { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS }, |
40847 | { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS }, | |
d55e5bfc RD |
40848 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, |
40849 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40850 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40851 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40852 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40853 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40854 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40855 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
40856 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
40857 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40858 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
40859 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
40860 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40861 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
40862 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
40863 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
40864 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40865 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40866 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40867 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40868 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40869 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40870 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40871 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40872 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40873 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
40874 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
40875 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
40876 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
40877 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
40878 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40879 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
40880 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40881 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40882 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
40883 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40884 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40885 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
40886 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40887 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
40888 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
40889 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
40890 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40891 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
40892 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40893 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40894 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
40895 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
40896 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40897 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
40898 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40899 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40900 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
40901 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
40902 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
40903 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
40904 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40905 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40906 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40907 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40908 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
40909 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
40910 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40911 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40912 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40913 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40914 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
40915 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40916 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
40917 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
40918 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
40919 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
40920 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
40921 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40922 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
40923 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40924 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40925 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40926 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
412d302d | 40927 | { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
40928 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, |
40929 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
40930 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
40931 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
40932 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
40933 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
40934 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
40935 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
40936 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
40937 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40938 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40939 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40940 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
40941 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
40942 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
40943 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
40944 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40945 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40946 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
40947 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40948 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40949 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
40950 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
40951 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
40952 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
40953 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40954 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40955 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40956 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40957 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40958 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40959 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40960 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40961 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40962 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40963 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40964 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40965 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40966 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40967 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40968 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40969 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40970 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40971 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
40972 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
40973 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
40974 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
40975 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
40976 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
40977 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
40978 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
40979 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40980 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40981 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40982 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40983 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
40984 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
40985 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40986 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40987 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40988 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40989 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
412d302d | 40990 | { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
40991 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, |
40992 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
19272049 | 40993 | { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
40994 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, |
40995 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
40996 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40997 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40998 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40999 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
41000 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
41001 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
41002 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
41003 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
41004 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
41005 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
41006 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41007 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41008 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41009 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41010 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41011 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41012 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41013 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41014 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
41015 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
41016 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
41017 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
41018 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
41019 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
41020 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
41021 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
41022 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41023 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
41024 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
41025 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
41026 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
41027 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
41028 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
41029 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
41030 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
41031 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
41032 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41033 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
41034 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
41035 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41036 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
41037 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
41038 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
41039 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
41040 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
41041 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
41042 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
41043 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
41044 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
41045 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
41046 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
41047 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
41048 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
41049 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41050 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41051 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
41052 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
41053 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41054 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
41055 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
41056 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
41057 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
41058 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
41059 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
41060 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
41061 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
41062 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
41063 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41064 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
41065 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
41066 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
41067 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
41068 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
41069 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
41070 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
41071 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
41072 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
41073 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
41074 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
41075 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
41076 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
41077 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
41078 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
41079 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
41080 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
41081 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
41082 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41083 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
41084 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
41085 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
41086 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
41087 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
41088 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41089 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
41090 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
41091 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
41092 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41093 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
41094 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41095 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
41096 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
41097 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
41098 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
41099 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
41100 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
41101 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
41102 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
41103 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
41104 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
41105 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
41106 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
41107 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
41108 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
41109 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
41110 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
41111 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
41112 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
41113 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
41114 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
41115 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
41116 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
41117 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
41118 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41119 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
41120 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
41121 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
41122 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
908b74cd | 41123 | { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
41124 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, |
41125 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
41126 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
41127 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
41128 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41129 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
41130 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41131 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41132 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
41133 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
41134 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41135 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41136 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
41137 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
41138 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
41139 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
41140 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
41141 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
41142 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
41143 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
41144 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41145 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41146 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
41147 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
41148 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
41149 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
41150 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
41151 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
41152 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
41153 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
41154 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
41155 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
41156 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41157 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
41158 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
41159 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
41160 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
41161 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
41162 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
41163 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
41164 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
41165 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
41166 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
41167 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
41168 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
41169 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
41170 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
41171 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
41172 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
41173 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
41174 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, | |
41175 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
41176 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
41177 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
41178 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
41179 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
41180 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
41181 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
41182 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
41183 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, | |
41184 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, | |
41185 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
41186 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41187 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41188 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41189 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
41190 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
41191 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41192 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41193 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41194 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
41195 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
41196 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
41197 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
41198 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
41199 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
41200 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
41201 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
41202 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
41203 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
41204 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
41205 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
41206 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
41207 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
41208 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41209 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, |
41210 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
41211 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
41212 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
41213 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
41214 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
41215 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
41216 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
41217 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
41218 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41219 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41220 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS }, | |
41221 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS }, | |
41222 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS }, | |
41223 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS }, | |
41224 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS }, | |
41225 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS }, | |
41226 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS }, | |
41227 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, | |
41228 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
41229 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
41230 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
41231 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
41232 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
41233 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
41234 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41235 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41236 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41237 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41238 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
41239 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
41240 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
41241 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
41242 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, | |
41243 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
41244 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
41245 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
41246 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
41247 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
41248 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
41249 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
41250 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
41251 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
41252 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
f8167d6e | 41253 | { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
41254 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, |
41255 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
41256 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
41257 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
41258 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
41259 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41260 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
41261 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41262 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41263 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
41264 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
41265 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41266 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
41267 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
41268 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
41269 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
a001823c RD |
41270 | { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS }, |
41271 | { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41272 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, |
41273 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
41274 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
41275 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
41276 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
41277 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
03837c5c RD |
41278 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, |
41279 | { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS }, | |
41280 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41281 | { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS }, | |
908b74cd RD |
41282 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, |
41283 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41284 | { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41285 | { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41286 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, |
41287 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
41288 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
41289 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41290 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, |
41291 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
41292 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
41293 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41294 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
41295 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
41296 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
41297 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41298 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
41299 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41300 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41301 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
41302 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
41303 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
41304 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
41305 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
41306 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
41307 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
41308 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41309 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41310 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
41311 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
41312 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
41313 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
41314 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
41315 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
41316 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
41317 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
908b74cd | 41318 | { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS }, |
bf26d883 RD |
41319 | { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS }, |
41320 | { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41321 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
41322 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
41323 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
41324 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
41325 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
41326 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
41327 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
41328 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
41329 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
41330 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41331 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41332 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41333 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41334 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41335 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
41336 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
41337 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS }, | |
41338 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
41339 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
41340 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
41341 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
41342 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
41343 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
41344 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
41345 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
41346 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
41347 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
41348 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
41349 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
41350 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
41351 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
41352 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
41353 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
41354 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
41355 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
41356 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
41357 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
41358 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
41359 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
41360 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
41361 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
41362 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
41363 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
41364 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
41365 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
41366 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
41367 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
41368 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41369 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41370 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
412d302d | 41371 | { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 41372 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
fa47d7a7 | 41373 | { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
41374 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
41375 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41376 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
41377 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
41378 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
fa47d7a7 | 41379 | { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
41380 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, |
41381 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
41382 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
41383 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
41384 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
41385 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
41386 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
41387 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
41388 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
41389 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
41390 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
41391 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
41392 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
41393 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS }, | |
41394 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, | |
41395 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
41396 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
41397 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
41398 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS }, | |
41399 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
41400 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
41401 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
41402 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
41403 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
41404 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
41405 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
41406 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
41407 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
41408 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
41409 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
41410 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
41411 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
41412 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
41413 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
41414 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
41415 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
41416 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
41417 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
41418 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
41419 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
41420 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
41421 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41422 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41423 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
41424 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
41425 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
41426 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41427 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
41428 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41429 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
41430 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
41431 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41432 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
41433 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
41434 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
41435 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
41436 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
41437 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
41438 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
41439 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
41440 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
41441 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
41442 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
41443 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41444 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41445 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
41446 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
41447 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
41448 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
41449 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41450 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
41451 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
41452 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
41453 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41454 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41455 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41456 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
41457 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
41458 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
41459 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
41460 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41461 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41462 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41463 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41464 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
41465 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
41466 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
41467 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41468 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41469 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41470 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
41471 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41472 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
41473 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
41474 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
41475 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
41476 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
41477 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
41478 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
41479 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
41480 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
41481 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
41482 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
41483 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41484 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41485 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
41486 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41487 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41488 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41489 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41490 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41491 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41492 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41493 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41494 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41495 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
41496 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
41497 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
41498 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
41499 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
41500 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
41501 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
41502 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
41503 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
41504 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
41505 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
41506 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
41507 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
41508 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41509 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
41510 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41511 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
41512 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41513 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
41514 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
41515 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
41516 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
41517 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
41518 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
41519 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
41520 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41521 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
41522 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41523 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41524 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41525 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41526 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41527 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41528 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
41529 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
41530 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
41531 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
41532 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
41533 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
41534 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41535 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41536 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
41537 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
41538 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41539 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
41540 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41541 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
41542 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
41543 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
41544 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS }, | |
41545 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
41546 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
41547 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41548 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41549 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41550 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41551 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41552 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
41553 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41554 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
41555 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
41556 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
41557 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
41558 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
41559 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
41560 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
41561 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
41562 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
41563 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41564 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41565 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
41566 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41567 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41568 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
41569 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
41570 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
41571 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
41572 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
41573 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
41574 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41575 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41576 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
41577 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
41578 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
41579 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
41580 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
41581 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41582 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41583 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41584 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
41585 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
41586 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
41587 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41588 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
41589 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
41590 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
41591 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
41592 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
41593 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
41594 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
41595 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
41596 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
41597 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
41598 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
41599 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41600 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41601 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
41602 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
41603 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc | 41604 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, |
248ed943 | 41605 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
41606 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, |
41607 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41608 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
41609 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41610 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41611 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41612 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
a001823c | 41613 | { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
41614 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, |
41615 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
41616 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
41617 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41618 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41619 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
41620 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
41621 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41622 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41623 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41624 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41625 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41626 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41627 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41628 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41629 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41630 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41631 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41632 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41633 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41634 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
41635 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41636 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41637 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
41638 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
41639 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
41640 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41641 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41642 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
41643 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
1a6bba1e | 41644 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
41645 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, |
41646 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41647 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
41648 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
41649 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41650 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41651 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41652 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41653 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41654 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41655 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41656 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
41657 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
41658 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
41659 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41660 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41661 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
41662 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41663 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
41664 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41665 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, |
41666 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
41667 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
41668 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
41669 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41670 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
41671 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41672 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41673 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41674 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, |
41675 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41676 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41677 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, |
41678 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41679 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, |
41680 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
41681 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41682 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41683 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
41684 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
41685 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41686 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41687 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
41688 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41689 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, |
41690 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
41691 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41692 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41693 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41694 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41695 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
41696 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
41697 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, | |
41698 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
41699 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, | |
41700 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
41701 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
41702 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
41703 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
41704 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
41705 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41706 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
41707 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, | |
41708 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
41709 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, | |
41710 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
41711 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41712 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41713 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41714 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41715 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41716 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
41717 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, | |
41718 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
41719 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, | |
41720 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
41721 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
41722 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
41723 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41724 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
41725 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
41726 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
41727 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
248ed943 RD |
41728 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS }, |
41729 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41730 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, |
41731 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41732 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41733 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
41734 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
41735 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41736 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41737 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41738 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41739 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
41740 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
41741 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
41742 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
41743 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
41744 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
41745 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
248ed943 RD |
41746 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS }, |
41747 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41748 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, |
41749 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
41750 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
41751 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
41752 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
41753 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
41754 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
41755 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
41756 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
41757 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
41758 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
41759 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
41760 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
41761 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41762 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
41763 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41764 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41765 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
41766 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
41767 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
41768 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
41769 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
41770 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41771 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41772 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
41773 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
41774 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41775 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
41776 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
41777 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
41778 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
41779 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
41780 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
41781 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
41782 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
41783 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
41784 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41785 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41786 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
41787 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
41788 | { NULL, NULL } | |
41789 | }; | |
41790 | ||
41791 | ||
41792 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
41793 | ||
41794 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
41795 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
41796 | } | |
41797 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
41798 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
41799 | } | |
41800 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
41801 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41802 | } | |
41803 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
41804 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41805 | } | |
41806 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
41807 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
41808 | } | |
41809 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
41810 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41811 | } | |
41812 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
41813 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
41814 | } | |
41815 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
41816 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41817 | } | |
41818 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
41819 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41820 | } | |
41821 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
41822 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
41823 | } | |
41824 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
41825 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
41826 | } | |
41827 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
41828 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
41829 | } | |
41830 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
41831 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
41832 | } | |
41833 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
41834 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
41835 | } | |
41836 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41837 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41838 | } | |
41839 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41840 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41841 | } | |
41842 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41843 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41844 | } | |
41845 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41846 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41847 | } | |
41848 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41849 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41850 | } | |
41851 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41852 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41853 | } | |
41854 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41855 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41856 | } | |
41857 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41858 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41859 | } | |
41860 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
41861 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
41862 | } | |
41863 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
41864 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
41865 | } | |
41866 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
41867 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
41868 | } | |
41869 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
41870 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
41871 | } | |
41872 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
41873 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
41874 | } | |
41875 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
41876 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
41877 | } | |
41878 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
41879 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41880 | } | |
41881 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
41882 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41883 | } | |
41884 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
41885 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41886 | } | |
41887 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
41888 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41889 | } | |
41890 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
41891 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41892 | } | |
41893 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
41894 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
41895 | } | |
41896 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
41897 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
41898 | } | |
41899 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
41900 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41901 | } | |
41902 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
41903 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
41904 | } | |
41905 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
41906 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
41907 | } | |
41908 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
41909 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41910 | } | |
41911 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
41912 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41913 | } | |
41914 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
41915 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41916 | } | |
41917 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
41918 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
41919 | } | |
41920 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
41921 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
41922 | } | |
41923 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
41924 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41925 | } | |
41926 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
41927 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41928 | } | |
41929 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
41930 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41931 | } | |
41932 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
41933 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
41934 | } | |
41935 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
41936 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
41937 | } | |
41938 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
41939 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
41940 | } | |
41941 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
41942 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
41943 | } | |
41944 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
41945 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41946 | } | |
41947 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
41948 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
41949 | } | |
41950 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
41951 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
41952 | } | |
41953 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
41954 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
41955 | } | |
41956 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
41957 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
41958 | } | |
41959 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
41960 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
41961 | } | |
41962 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
41963 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
41964 | } | |
41965 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
41966 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
41967 | } | |
41968 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
41969 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
41970 | } | |
41971 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
41972 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
41973 | } | |
41974 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
41975 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
41976 | } | |
41977 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
41978 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41979 | } | |
41980 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
41981 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
41982 | } | |
41983 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
41984 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
41985 | } | |
41986 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
41987 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41988 | } | |
41989 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
41990 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41991 | } | |
41992 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
41993 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
41994 | } | |
41995 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
41996 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
41997 | } | |
41998 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
41999 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
42000 | } | |
42001 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
42002 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
42003 | } | |
42004 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
42005 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
42006 | } | |
42007 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
42008 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
42009 | } | |
42010 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
42011 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
42012 | } | |
42013 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
42014 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
42015 | } | |
42016 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42017 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
42018 | } | |
42019 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42020 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
42021 | } | |
42022 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42023 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
42024 | } | |
42025 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
42026 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
42027 | } | |
42028 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
42029 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
42030 | } | |
42031 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
42032 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42033 | } | |
42034 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
42035 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
42036 | } | |
42037 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
42038 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
42039 | } | |
42040 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
42041 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
42042 | } | |
42043 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
42044 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
42045 | } | |
42046 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
42047 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
42048 | } | |
42049 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
42050 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
42051 | } | |
42052 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
42053 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
42054 | } | |
42055 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
42056 | return (void *)((wxObject *) ((wxSizer *) x)); | |
42057 | } | |
42058 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
42059 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
42060 | } | |
42061 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
42062 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42063 | } | |
42064 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
42065 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
42066 | } | |
42067 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
42068 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
42069 | } | |
42070 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
42071 | return (void *)((wxObject *) ((wxImage *) x)); | |
42072 | } | |
42073 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
42074 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
42075 | } | |
42076 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
42077 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42078 | } | |
42079 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
42080 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
42081 | } | |
42082 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
42083 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
42084 | } | |
42085 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
42086 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
42087 | } | |
42088 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
42089 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
42090 | } | |
42091 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
42092 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
42093 | } | |
42094 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
42095 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42096 | } | |
42097 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
42098 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
42099 | } | |
42100 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
42101 | return (void *)((wxObject *) ((wxEvent *) x)); | |
42102 | } | |
42103 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
42104 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
42105 | } | |
42106 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
42107 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
42108 | } | |
42109 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
42110 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
42111 | } | |
42112 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
42113 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
42114 | } | |
42115 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
42116 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
42117 | } | |
42118 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
42119 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42120 | } | |
42121 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
42122 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42123 | } | |
42124 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
42125 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
42126 | } | |
42127 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
42128 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42129 | } | |
42130 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
42131 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
42132 | } | |
42133 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
42134 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
42135 | } | |
42136 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
42137 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
42138 | } | |
42139 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
42140 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
42141 | } | |
42142 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
42143 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
42144 | } | |
42145 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
42146 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42147 | } | |
42148 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
42149 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42150 | } | |
42151 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
42152 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
42153 | } | |
42154 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
42155 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
42156 | } | |
42157 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
42158 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
42159 | } | |
42160 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
42161 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
42162 | } | |
42163 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
42164 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
42165 | } | |
42166 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
42167 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
42168 | } | |
42169 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
42170 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
42171 | } | |
42172 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
42173 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
42174 | } | |
42175 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
42176 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42177 | } | |
42178 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
42179 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42180 | } | |
42181 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
42182 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42183 | } | |
42184 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
42185 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42186 | } | |
42187 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
42188 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42189 | } | |
42190 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
42191 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
42192 | } | |
42193 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
42194 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
42195 | } | |
42196 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
42197 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42198 | } | |
42199 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
42200 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
42201 | } | |
42202 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
42203 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
42204 | } | |
42205 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
42206 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
42207 | } | |
42208 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
42209 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
42210 | } | |
42211 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
42212 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
42213 | } | |
42214 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
42215 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
42216 | } | |
42217 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
42218 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
42219 | } | |
42220 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
42221 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42222 | } | |
42223 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
42224 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
42225 | } | |
42226 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
42227 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42228 | } | |
42229 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
42230 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42231 | } | |
42232 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
42233 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42234 | } | |
42235 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
42236 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
42237 | } | |
42238 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
42239 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
42240 | } | |
42241 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
42242 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
42243 | } | |
42244 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
42245 | return (void *)((wxWindow *) ((wxControl *) x)); | |
42246 | } | |
42247 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
42248 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
42249 | } | |
42250 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
42251 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
42252 | } | |
42253 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
42254 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42255 | } | |
42256 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
42257 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
42258 | } | |
42259 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
42260 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42261 | } | |
42262 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
42263 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42264 | } | |
42265 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
42266 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42267 | } | |
42268 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
42269 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42270 | } | |
42271 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
42272 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42273 | } | |
42274 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
42275 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42276 | } | |
42277 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
42278 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
42279 | } | |
42280 | static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42281 | static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0, 0, 0, 0},{"_p_wxRealPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42282 | static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0, 0, 0, 0},{"_p_wxSizerItem", 0, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42283 | static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0, 0, 0, 0},{"_p_wxGBSizerItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42284 | static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0, 0, 0, 0},{"_p_wxScrollEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42285 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42286 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42287 | static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0, 0, 0, 0},{"_p_wxBoxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42288 | static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0, 0, 0, 0},{"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42289 | static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42290 | static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0, 0, 0, 0},{"_p_wxAcceleratorEntry", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42291 | static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0, 0, 0, 0},{"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42292 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42293 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42294 | static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", 0, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42295 | static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42296 | static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0, 0, 0, 0},{"_p_wxInitDialogEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42297 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42298 | static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0, 0, 0, 0},{"_p_wxNcPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42299 | static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0, 0, 0, 0},{"_p_wxPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42300 | static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42301 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42302 | static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42303 | static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42304 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42305 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42306 | static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0, 0, 0, 0},{"_p_wxMenuBarBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42307 | static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0, 0, 0, 0},{"_p_wxSetCursorEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42308 | static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0, 0, 0, 0},{"_p_wxFSFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42309 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42310 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42311 | static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0, 0, 0, 0},{"_p_wxPoint2D", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42312 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42313 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42314 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42315 | static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0, 0, 0, 0},{"_p_wxPySizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42316 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42317 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42318 | static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0, 0, 0, 0},{"_p_wxPyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42319 | static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0, 0, 0, 0},{"_p_wxPropagationDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42320 | static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0, 0, 0, 0},{"_p_wxAppTraits", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42321 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42322 | static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0, 0, 0, 0},{"_p_wxShowEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42323 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
42324 | static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0, 0, 0, 0},{"_p_wxIconizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
42325 | static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0, 0, 0, 0},{"_p_wxActivateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42326 | static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0, 0, 0, 0},{"_p_wxMoveEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42327 | static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0, 0, 0, 0},{"_p_wxSizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
c0de73ae | 42328 | static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0, 0, 0, 0},{"_p_wxMaximizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
42329 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
42330 | static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0, 0, 0, 0},{"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42331 | static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0, 0, 0, 0},{"_p_wxIdleEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42332 | static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0, 0, 0, 0},{"_p_wxMenuItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42333 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42334 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42335 | static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0, 0, 0, 0},{"_p_wxTIFFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42336 | static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0, 0, 0, 0},{"_p_wxXPMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42337 | static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0, 0, 0, 0},{"_p_wxPNMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42338 | static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0, 0, 0, 0},{"_p_wxJPEGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42339 | static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0, 0, 0, 0},{"_p_wxPCXHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42340 | static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0, 0, 0, 0},{"_p_wxGIFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42341 | static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0, 0, 0, 0},{"_p_wxPNGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42342 | static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0, 0, 0, 0},{"_p_wxANIHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42343 | static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0, 0, 0, 0},{"_p_wxMemoryFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42344 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42345 | static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0, 0, 0, 0},{"_p_wxCURHandler", 0, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42346 | static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0, 0, 0, 0},{"_p_wxICOHandler", 0, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42347 | static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0, 0, 0, 0},{"_p_wxBMPHandler", 0, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42348 | static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0, 0, 0, 0},{"_p_wxImageHandler", 0, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42349 | static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0, 0, 0, 0},{"_p_wxFileSystemHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42350 | static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42351 | static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0, 0, 0, 0},{"_p_wxInternetFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42352 | static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0, 0, 0, 0},{"_p_wxZipFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42353 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42354 | static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0, 0, 0, 0},{"_p_wxGBSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42355 | static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0, 0, 0, 0},{"_p_wxPropagateOnce", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42356 | static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0, 0, 0, 0},{"_p_wxAcceleratorTable", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42357 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42358 | static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0, 0, 0, 0},{"_p_wxGBPosition", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42359 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42360 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42361 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0, 0, 0, 0},{"_p_wxScrollWinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42362 | static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0, 0, 0, 0},{"_p_wxImageHistogram", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42363 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42364 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42365 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42366 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42367 | static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0, 0, 0, 0},{"_p_wxPyInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42368 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42369 | static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42370 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42371 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42372 | static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42373 | static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42374 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42375 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0, 0, 0, 0},{"_p_wxMenuBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42376 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42377 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42378 | static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0, 0, 0, 0},{"_p_wxMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42379 | static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42380 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42381 | static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0, 0, 0, 0},{"_p_wxCloseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42382 | static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0, 0, 0, 0},{"_p_wxEraseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42383 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42384 | static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0, 0, 0, 0},{"_p_wxPyApp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42385 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42386 | static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0, 0, 0, 0},{"_p_wxPyCommandEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42387 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
c0de73ae | 42388 | static swig_type_info _swigt__p_wxQuantize[] = {{"_p_wxQuantize", 0, "wxQuantize *", 0, 0, 0, 0},{"_p_wxQuantize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
42389 | static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
42390 | static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0, 0, 0, 0},{"_p_wxFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42391 | static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0, 0, 0, 0},{"_p_wxDropFilesEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42392 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42393 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42394 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42395 | static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0, 0, 0, 0},{"_p_wxPyValidator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42396 | ||
42397 | static swig_type_info *swig_types_initial[] = { | |
42398 | _swigt__p_wxLayoutConstraints, | |
42399 | _swigt__p_wxRealPoint, | |
42400 | _swigt__p_wxSizerItem, | |
42401 | _swigt__p_wxGBSizerItem, | |
42402 | _swigt__p_wxScrollEvent, | |
42403 | _swigt__p_wxIndividualLayoutConstraint, | |
42404 | _swigt__p_wxSizer, | |
42405 | _swigt__p_wxBoxSizer, | |
42406 | _swigt__p_wxStaticBoxSizer, | |
42407 | _swigt__p_wxGridBagSizer, | |
42408 | _swigt__p_wxAcceleratorEntry, | |
42409 | _swigt__p_wxUpdateUIEvent, | |
42410 | _swigt__p_wxMenu, | |
42411 | _swigt__p_wxEvent, | |
42412 | _swigt__p_wxGridSizer, | |
42413 | _swigt__p_wxFlexGridSizer, | |
42414 | _swigt__p_wxInitDialogEvent, | |
42415 | _swigt__p_wxItemContainer, | |
42416 | _swigt__p_wxNcPaintEvent, | |
42417 | _swigt__p_wxPaintEvent, | |
42418 | _swigt__p_wxSysColourChangedEvent, | |
42419 | _swigt__p_wxMouseCaptureChangedEvent, | |
42420 | _swigt__p_wxDisplayChangedEvent, | |
42421 | _swigt__p_wxPaletteChangedEvent, | |
42422 | _swigt__p_wxControl, | |
42423 | _swigt__p_wxFont, | |
42424 | _swigt__p_wxMenuBarBase, | |
42425 | _swigt__p_wxSetCursorEvent, | |
42426 | _swigt__p_wxFSFile, | |
42427 | _swigt__p_wxCaret, | |
42428 | _swigt__p_wxRegion, | |
42429 | _swigt__p_wxPoint2D, | |
42430 | _swigt__p_int, | |
42431 | _swigt__p_wxSize, | |
42432 | _swigt__p_wxDC, | |
42433 | _swigt__p_wxPySizer, | |
42434 | _swigt__p_wxVisualAttributes, | |
42435 | _swigt__p_wxNotifyEvent, | |
42436 | _swigt__p_wxPyEvent, | |
42437 | _swigt__p_wxPropagationDisabler, | |
42438 | _swigt__p_wxAppTraits, | |
42439 | _swigt__p_wxArrayString, | |
42440 | _swigt__p_wxShowEvent, | |
42441 | _swigt__p_wxToolTip, | |
d55e5bfc RD |
42442 | _swigt__p_wxIconizeEvent, |
42443 | _swigt__p_wxActivateEvent, | |
42444 | _swigt__p_wxMoveEvent, | |
42445 | _swigt__p_wxSizeEvent, | |
c0de73ae | 42446 | _swigt__p_wxMaximizeEvent, |
d55e5bfc RD |
42447 | _swigt__p_wxQueryNewPaletteEvent, |
42448 | _swigt__p_wxWindowCreateEvent, | |
42449 | _swigt__p_wxIdleEvent, | |
42450 | _swigt__p_wxMenuItem, | |
42451 | _swigt__p_wxStaticBox, | |
42452 | _swigt__p_long, | |
42453 | _swigt__p_wxTIFFHandler, | |
42454 | _swigt__p_wxXPMHandler, | |
42455 | _swigt__p_wxPNMHandler, | |
42456 | _swigt__p_wxJPEGHandler, | |
42457 | _swigt__p_wxPCXHandler, | |
42458 | _swigt__p_wxGIFHandler, | |
42459 | _swigt__p_wxPNGHandler, | |
42460 | _swigt__p_wxANIHandler, | |
42461 | _swigt__p_wxMemoryFSHandler, | |
42462 | _swigt__p_wxEvtHandler, | |
42463 | _swigt__p_wxCURHandler, | |
42464 | _swigt__p_wxICOHandler, | |
42465 | _swigt__p_wxBMPHandler, | |
42466 | _swigt__p_wxImageHandler, | |
42467 | _swigt__p_wxFileSystemHandler, | |
42468 | _swigt__p_wxPyFileSystemHandler, | |
42469 | _swigt__p_wxInternetFSHandler, | |
42470 | _swigt__p_wxZipFSHandler, | |
42471 | _swigt__p_wxRect, | |
42472 | _swigt__p_wxGBSpan, | |
42473 | _swigt__p_wxPropagateOnce, | |
42474 | _swigt__p_wxAcceleratorTable, | |
42475 | _swigt__p_char, | |
42476 | _swigt__p_wxGBPosition, | |
42477 | _swigt__p_wxImage, | |
42478 | _swigt__p_wxFrame, | |
42479 | _swigt__p_wxScrollWinEvent, | |
42480 | _swigt__p_wxImageHistogram, | |
42481 | _swigt__p_byte, | |
42482 | _swigt__p_wxPoint, | |
42483 | _swigt__p_wxCursor, | |
42484 | _swigt__p_wxObject, | |
42485 | _swigt__p_wxPyInputStream, | |
42486 | _swigt__p_wxOutputStream, | |
42487 | _swigt__p_wxInputStream, | |
42488 | _swigt__p_wxDateTime, | |
42489 | _swigt__p_wxKeyEvent, | |
42490 | _swigt__p_wxNavigationKeyEvent, | |
42491 | _swigt__p_wxWindowDestroyEvent, | |
42492 | _swigt__p_wxWindow, | |
42493 | _swigt__p_wxMenuBar, | |
42494 | _swigt__p_wxFileSystem, | |
42495 | _swigt__p_wxBitmap, | |
42496 | _swigt__p_wxMenuEvent, | |
42497 | _swigt__p_wxContextMenuEvent, | |
42498 | _swigt__p_unsigned_char, | |
42499 | _swigt__p_wxCloseEvent, | |
42500 | _swigt__p_wxEraseEvent, | |
42501 | _swigt__p_wxMouseEvent, | |
42502 | _swigt__p_wxPyApp, | |
42503 | _swigt__p_wxCommandEvent, | |
42504 | _swigt__p_wxPyCommandEvent, | |
42505 | _swigt__p_wxPyDropTarget, | |
c0de73ae | 42506 | _swigt__p_wxQuantize, |
d55e5bfc RD |
42507 | _swigt__p_wxChildFocusEvent, |
42508 | _swigt__p_wxFocusEvent, | |
42509 | _swigt__p_wxDropFilesEvent, | |
42510 | _swigt__p_wxControlWithItems, | |
42511 | _swigt__p_wxColour, | |
42512 | _swigt__p_wxValidator, | |
42513 | _swigt__p_wxPyValidator, | |
42514 | 0 | |
42515 | }; | |
42516 | ||
42517 | ||
42518 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
42519 | ||
42520 | static swig_const_info swig_const_table[] = { | |
42521 | {0}}; | |
42522 | ||
42523 | #ifdef __cplusplus | |
42524 | } | |
42525 | #endif | |
42526 | ||
42527 | #ifdef __cplusplus | |
42528 | extern "C" | |
42529 | #endif | |
42530 | SWIGEXPORT(void) SWIG_init(void) { | |
42531 | static PyObject *SWIG_globals = 0; | |
42532 | static int typeinit = 0; | |
42533 | PyObject *m, *d; | |
42534 | int i; | |
42535 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
42536 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
42537 | d = PyModule_GetDict(m); | |
42538 | ||
42539 | if (!typeinit) { | |
42540 | for (i = 0; swig_types_initial[i]; i++) { | |
42541 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
42542 | } | |
42543 | typeinit = 1; | |
42544 | } | |
42545 | SWIG_InstallConstants(d,swig_const_table); | |
42546 | ||
42547 | ||
42548 | #ifndef wxPyUSE_EXPORT | |
42549 | // Make our API structure a CObject so other modules can import it | |
42550 | // from this module. | |
42551 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
42552 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
42553 | Py_XDECREF(cobj); | |
42554 | #endif | |
42555 | ||
42556 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); | |
42557 | PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); | |
42558 | PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); | |
42559 | PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); | |
42560 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); | |
42561 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); | |
42562 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); | |
42563 | PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); | |
42564 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); | |
42565 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); | |
42566 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); | |
42567 | PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); | |
42568 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); | |
42569 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); | |
42570 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); | |
42571 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); | |
42572 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); | |
42573 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); | |
42574 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); | |
42575 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
42576 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); | |
42577 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); | |
42578 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); | |
42579 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); | |
42580 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); | |
42581 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB)); | |
42582 | PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); | |
42583 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); | |
42584 | PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); | |
42585 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); | |
42586 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); | |
42587 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); | |
42588 | PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); | |
42589 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); | |
42590 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); | |
42591 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); | |
42592 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); | |
42593 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); | |
42594 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); | |
42595 | PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); | |
42596 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); | |
42597 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); | |
42598 | PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); | |
42599 | PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); | |
42600 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); | |
42601 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); | |
42602 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); | |
42603 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); | |
42604 | PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); | |
42605 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); | |
42606 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); | |
42607 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); | |
42608 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); | |
42609 | PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); | |
42610 | PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); | |
42611 | PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); | |
42612 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); | |
42613 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); | |
42614 | PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); | |
42615 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); | |
42616 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); | |
42617 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); | |
42618 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); | |
42619 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); | |
42620 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); | |
42621 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); | |
42622 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); | |
42623 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); | |
42624 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); | |
42625 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); | |
42626 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); | |
42627 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); | |
42628 | PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); | |
42629 | PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); | |
42630 | PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); | |
42631 | PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); | |
42632 | PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); | |
42633 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); | |
42634 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); | |
42635 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); | |
42636 | PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); | |
42637 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); | |
42638 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); | |
42639 | PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); | |
42640 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); | |
42641 | PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); | |
42642 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); | |
42643 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); | |
42644 | PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); | |
42645 | PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); | |
42646 | PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); | |
42647 | PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); | |
42648 | PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); | |
42649 | PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); | |
42650 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
42651 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
42652 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); | |
42653 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); | |
42654 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
42655 | PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); | |
42656 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); | |
42657 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
42658 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
42659 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); | |
42660 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
42661 | PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); | |
42662 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); | |
42663 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); | |
42664 | PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); | |
42665 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); | |
42666 | PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); | |
42667 | PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); | |
42668 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); | |
42669 | PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); | |
42670 | PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); | |
42671 | PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); | |
42672 | PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); | |
42673 | PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); | |
42674 | PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); | |
42675 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); | |
42676 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); | |
42677 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); | |
42678 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); | |
42679 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); | |
42680 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); | |
42681 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); | |
42682 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); | |
42683 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); | |
42684 | PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); | |
42685 | PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); | |
42686 | PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); | |
42687 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); | |
42688 | PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); | |
42689 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); | |
42690 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); | |
42691 | PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); | |
42692 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); | |
42693 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); | |
42694 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); | |
42695 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); | |
42696 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); | |
42697 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); | |
42698 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); | |
42699 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); | |
42700 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); | |
42701 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); | |
42702 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); | |
42703 | PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); | |
42704 | PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); | |
42705 | PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); | |
42706 | PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); | |
42707 | PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); | |
42708 | PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); | |
42709 | PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); | |
42710 | PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); | |
42711 | PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); | |
42712 | PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); | |
42713 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); | |
42714 | PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); | |
42715 | PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); | |
42716 | PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); | |
42717 | PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); | |
42718 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); | |
42719 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); | |
42720 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); | |
42721 | PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); | |
42722 | PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); | |
42723 | PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); | |
42724 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); | |
42725 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); | |
42726 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); | |
42727 | PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); | |
42728 | PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); | |
42729 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); | |
42730 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); | |
42731 | PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); | |
42732 | PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); | |
42733 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); | |
42734 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); | |
42735 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); | |
42736 | PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); | |
42737 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); | |
42738 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); | |
42739 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); | |
42740 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); | |
42741 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); | |
42742 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); | |
42743 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); | |
42744 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); | |
42745 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); | |
42746 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); | |
42747 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); | |
42748 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
42749 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); | |
42750 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); | |
42751 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); | |
42752 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
42753 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
42754 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); | |
42755 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); | |
42756 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
42757 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
42758 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); | |
42759 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
42760 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
42761 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
42762 | PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); | |
42763 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); | |
42764 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); | |
42765 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); | |
42766 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); | |
42767 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); | |
42768 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); | |
42769 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); | |
42770 | PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); | |
42771 | PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); | |
42772 | PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); | |
42773 | PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); | |
42774 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); | |
42775 | PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); | |
42776 | PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); | |
42777 | PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); | |
42778 | PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); | |
42779 | PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); | |
42780 | PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); | |
42781 | PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); | |
42782 | PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); | |
42783 | PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); | |
42784 | PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); | |
42785 | PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); | |
42786 | PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); | |
42787 | PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); | |
42788 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); | |
42789 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
42790 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
42791 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); | |
42792 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); | |
42793 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); | |
42794 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); | |
42795 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
42796 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
42797 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); | |
42798 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); | |
42799 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); | |
42800 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); | |
42801 | PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); | |
42802 | PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); | |
42803 | PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); | |
42804 | PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); | |
42805 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE)); | |
42806 | PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); | |
42807 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); | |
42808 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); | |
42809 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); | |
42810 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); | |
42811 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); | |
42812 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); | |
42813 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); | |
42814 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); | |
42815 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); | |
42816 | PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); | |
42817 | PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); | |
42818 | PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); | |
42819 | PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); | |
42820 | PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); | |
42821 | PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); | |
42822 | PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); | |
42823 | PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); | |
42824 | PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); | |
42825 | PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); | |
42826 | PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); | |
42827 | PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); | |
42828 | PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); | |
42829 | PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); | |
42830 | PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); | |
42831 | PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); | |
42832 | PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); | |
42833 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); | |
42834 | PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); | |
42835 | PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); | |
42836 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); | |
42837 | PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); | |
42838 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); | |
42839 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); | |
42840 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); | |
42841 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); | |
42842 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); | |
42843 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); | |
42844 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); | |
42845 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); | |
42846 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); | |
42847 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); | |
42848 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); | |
42849 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); | |
42850 | PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); | |
42851 | PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); | |
42852 | PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); | |
42853 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); | |
42854 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); | |
42855 | PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); | |
42856 | PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); | |
42857 | PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); | |
42858 | PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); | |
42859 | PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); | |
42860 | PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); | |
42861 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); | |
42862 | PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); | |
42863 | PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); | |
42864 | PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); | |
42865 | PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); | |
42866 | PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); | |
42867 | PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); | |
42868 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); | |
42869 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); | |
42870 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); | |
42871 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); | |
42872 | PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); | |
42873 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); | |
42874 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); | |
42875 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); | |
42876 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); | |
42877 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); | |
42878 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); | |
42879 | PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); | |
42880 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); | |
42881 | PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); | |
42882 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); | |
42883 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); | |
42884 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); | |
42885 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); | |
42886 | PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); | |
42887 | PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); | |
42888 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); | |
42889 | PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); | |
42890 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); | |
42891 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); | |
42892 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); | |
42893 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); | |
42894 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); | |
42895 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); | |
42896 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); | |
42897 | PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); | |
42898 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); | |
42899 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); | |
42900 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); | |
42901 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); | |
42902 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); | |
42903 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); | |
42904 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); | |
42905 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); | |
42906 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); | |
42907 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); | |
42908 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); | |
42909 | PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); | |
42910 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); | |
42911 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); | |
42912 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); | |
42913 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); | |
42914 | PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); | |
42915 | PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); | |
42916 | PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); | |
42917 | PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); | |
42918 | PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); | |
42919 | PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); | |
42920 | PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); | |
42921 | PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); | |
42922 | PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); | |
42923 | PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); | |
42924 | PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); | |
42925 | PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); | |
42926 | PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); | |
42927 | PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); | |
42928 | PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); | |
42929 | PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); | |
42930 | PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); | |
42931 | PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); | |
42932 | PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); | |
42933 | PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); | |
42934 | PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); | |
42935 | PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); | |
42936 | PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); | |
42937 | PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); | |
42938 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); | |
42939 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); | |
42940 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); | |
42941 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); | |
42942 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); | |
42943 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); | |
42944 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); | |
42945 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); | |
42946 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); | |
42947 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); | |
42948 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); | |
42949 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); | |
42950 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); | |
42951 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); | |
42952 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); | |
42953 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); | |
42954 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); | |
42955 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
42956 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); | |
42957 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
42958 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); | |
42959 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); | |
42960 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); | |
42961 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); | |
42962 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); | |
42963 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
42964 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); | |
42965 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
42966 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
42967 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
42968 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
42969 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); | |
42970 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); | |
42971 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); | |
42972 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); | |
42973 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); | |
42974 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); | |
42975 | PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); | |
42976 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); | |
42977 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); | |
42978 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); | |
42979 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); | |
42980 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); | |
42981 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); | |
42982 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); | |
42983 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); | |
42984 | PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); | |
42985 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); | |
42986 | PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); | |
42987 | PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); | |
42988 | PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); | |
42989 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); | |
42990 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); | |
42991 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); | |
42992 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); | |
42993 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); | |
42994 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); | |
42995 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); | |
42996 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); | |
42997 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); | |
42998 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); | |
42999 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); | |
43000 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); | |
43001 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); | |
43002 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); | |
43003 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); | |
43004 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); | |
43005 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); | |
43006 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); | |
43007 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); | |
43008 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); | |
43009 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); | |
43010 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
43011 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); | |
43012 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
43013 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
43014 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); | |
43015 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
43016 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); | |
43017 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); | |
43018 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); | |
43019 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); | |
43020 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
43021 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
43022 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
43023 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); | |
43024 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
43025 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
43026 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
43027 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); | |
43028 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); | |
43029 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); | |
43030 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); | |
43031 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
43032 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
43033 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); | |
43034 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); | |
43035 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); | |
43036 | PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); | |
43037 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
43038 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
43039 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); | |
43040 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
43041 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); | |
43042 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); | |
43043 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); | |
43044 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); | |
43045 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); | |
43046 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); | |
43047 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); | |
43048 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
43049 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
43050 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
43051 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
43052 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
43053 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
43054 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
43055 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
43056 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
43057 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
43058 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); | |
43059 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
43060 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
43061 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); | |
43062 | PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); | |
43063 | PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); | |
43064 | PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); | |
43065 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); | |
43066 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); | |
43067 | PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); | |
43068 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); | |
43069 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); | |
43070 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
43071 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
43072 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
43073 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); | |
43074 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); | |
43075 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); | |
43076 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); | |
43077 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); | |
43078 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
43079 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); | |
43080 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
43081 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); | |
43082 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); | |
43083 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); | |
43084 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
43085 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); | |
43086 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); | |
43087 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); | |
43088 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); | |
43089 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); | |
43090 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); | |
43091 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
43092 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); | |
43093 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); | |
43094 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); | |
43095 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
43096 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); | |
43097 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); | |
43098 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); | |
43099 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); | |
43100 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); | |
43101 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
43102 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); | |
43103 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
43104 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); | |
43105 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
43106 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); | |
43107 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); | |
43108 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
43109 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
43110 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
43111 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); | |
43112 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); | |
43113 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); | |
43114 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); | |
43115 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); | |
43116 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); | |
43117 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); | |
43118 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); | |
43119 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); | |
43120 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); | |
43121 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); | |
43122 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); | |
43123 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); | |
43124 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); | |
43125 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
43126 | PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); | |
43127 | PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); | |
43128 | PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); | |
43129 | ||
43130 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
43131 | ||
43132 | ||
43133 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
43134 | ||
43135 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
43136 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
43137 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
43138 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
43139 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
43140 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
43141 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); | |
43142 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
43143 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); | |
43144 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); | |
43145 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); | |
43146 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); | |
43147 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); | |
43148 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); | |
43149 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); | |
43150 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); | |
43151 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); | |
c0de73ae RD |
43152 | PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_FromInt((int)wxQUANTIZE_INCLUDE_WINDOWS_COLOURS)); |
43153 | PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_FromInt((int)wxQUANTIZE_FILL_DESTINATION_IMAGE)); | |
d55e5bfc RD |
43154 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); |
43155 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
43156 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); | |
43157 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
43158 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
43159 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
43160 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
43161 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
43162 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
43163 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
43164 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
43165 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
43166 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
43167 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
43168 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
43169 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
43170 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
43171 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
43172 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
43173 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
43174 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
43175 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
43176 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
43177 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
43178 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
43179 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
43180 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
43181 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
43182 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
43183 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
43184 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
43185 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
43186 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
43187 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
43188 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
43189 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
43190 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
43191 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
43192 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
43193 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
43194 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
43195 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
43196 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
43197 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
43198 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
43199 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
43200 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
43201 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
43202 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
43203 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
43204 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
43205 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
43206 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
43207 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
43208 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
43209 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
43210 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
43211 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
43212 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
43213 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
43214 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
43215 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
43216 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
43217 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
43218 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
43219 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
43220 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
43221 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
43222 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
43223 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
43224 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
43225 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
43226 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
43227 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
43228 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
43229 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
43230 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
43231 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
43232 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
43233 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
43234 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
43235 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
43236 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
43237 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
43238 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
43239 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
43240 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
43241 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
43242 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
43243 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
43244 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
43245 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
43246 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
43247 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
43248 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
43249 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
43250 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
43251 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
43252 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
43253 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
43254 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
43255 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
43256 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
43257 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
43258 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
43259 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
43260 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
43261 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
43262 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
43263 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
43264 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
43265 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
43266 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
43267 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
43268 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
43269 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
43270 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); | |
43271 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); | |
43272 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); | |
43273 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
43274 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
43275 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
43276 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
b0f7404b | 43277 | PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_FromInt((int)wxNavigationKeyEvent::IsBackward)); |
908b74cd RD |
43278 | PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_FromInt((int)wxNavigationKeyEvent::IsForward)); |
43279 | PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_FromInt((int)wxNavigationKeyEvent::WinChange)); | |
d55e5bfc RD |
43280 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); |
43281 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
43282 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
43283 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
43284 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
43285 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
43286 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); | |
43287 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); | |
43288 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); | |
43289 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
43290 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL)); | |
43291 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL)); | |
43292 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI)); | |
43293 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE)); | |
43294 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX)); | |
43295 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); | |
43296 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
43297 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); | |
43298 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
43299 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
43300 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); | |
43301 | PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); | |
43302 | PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); | |
43303 | PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); | |
43304 | PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); | |
43305 | PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); | |
43306 | PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); | |
43307 | PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); | |
43308 | PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); | |
43309 | PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); | |
43310 | PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); | |
43311 | PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); | |
43312 | PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); | |
43313 | PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); | |
43314 | PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); | |
43315 | PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); | |
43316 | PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); | |
43317 | PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); | |
43318 | PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); | |
43319 | PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); | |
43320 | ||
43321 | // Initialize threading, some globals and such | |
43322 | __wxPyPreStart(d); | |
43323 | ||
43324 | ||
43325 | // Although these are defined in __version__ they need to be here too so | |
43326 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
43327 | // versions match. | |
43328 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
43329 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
43330 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
43331 | ||
43332 | } | |
43333 |