]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.20 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
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 | ||
f0983263 RD |
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 | |
d14a1e28 | 82 | #else |
f0983263 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
f0983263 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
f0983263 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
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 { | |
f0983263 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
f0983263 | 104 | void *clientdata; |
d14a1e28 RD |
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 *); | |
f0983263 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
423f194a | 124 | |
d14a1e28 RD |
125 | #endif |
126 | ||
f0983263 | 127 | |
d14a1e28 RD |
128 | /*********************************************************************** |
129 | * pyrun.swg for wxPython | |
130 | * | |
131 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
132 | * but not the runtime functions themselves. This helps keep the | |
133 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
134 | * anyway. | |
135 | * | |
136 | ************************************************************************/ | |
137 | ||
d14a1e28 RD |
138 | #include "Python.h" |
139 | ||
140 | #ifdef __cplusplus | |
141 | extern "C" { | |
142 | #endif | |
143 | ||
144 | #define SWIG_PY_INT 1 | |
145 | #define SWIG_PY_FLOAT 2 | |
146 | #define SWIG_PY_STRING 3 | |
147 | #define SWIG_PY_POINTER 4 | |
148 | #define SWIG_PY_BINARY 5 | |
149 | ||
150 | /* Flags for pointer conversion */ | |
151 | ||
152 | #define SWIG_POINTER_EXCEPTION 0x1 | |
153 | #define SWIG_POINTER_DISOWN 0x2 | |
154 | ||
155 | /* Exception handling in wrappers */ | |
156 | #define SWIG_fail goto fail | |
157 | ||
158 | /* Constant information structure */ | |
159 | typedef struct swig_const_info { | |
160 | int type; | |
161 | char *name; | |
162 | long lvalue; | |
163 | double dvalue; | |
164 | void *pvalue; | |
165 | swig_type_info **ptype; | |
166 | } swig_const_info; | |
167 | ||
d14a1e28 RD |
168 | /* Common SWIG API */ |
169 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
170 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
171 | #define SWIG_NewPointerObj(p, type, flags) \ | |
172 | SWIG_Python_NewPointerObj(p, type, flags) | |
173 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
174 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
175 | ||
176 | /* Python-specific SWIG API */ | |
177 | #define SWIG_newvarlink() \ | |
178 | SWIG_Python_newvarlink() | |
179 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
180 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
181 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
182 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
183 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
184 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
185 | #define SWIG_InstallConstants(d, constants) \ | |
186 | SWIG_Python_InstallConstants(d, constants) | |
187 | ||
188 | ||
f0983263 RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
d14a1e28 RD |
198 | |
199 | ||
200 | /* Contract support */ | |
201 | ||
423f194a | 202 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 203 | |
d14a1e28 RD |
204 | #ifdef __cplusplus |
205 | } | |
206 | #endif | |
207 | ||
208 | ||
209 | ||
210 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
211 | ||
212 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[0] | |
213 | #define SWIGTYPE_p_wxRealPoint swig_types[1] | |
214 | #define SWIGTYPE_p_wxSizerItem swig_types[2] | |
215 | #define SWIGTYPE_p_wxGBSizerItem swig_types[3] | |
216 | #define SWIGTYPE_p_wxScrollEvent swig_types[4] | |
217 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5] | |
218 | #define SWIGTYPE_p_wxSizer swig_types[6] | |
219 | #define SWIGTYPE_p_wxBoxSizer swig_types[7] | |
220 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[8] | |
221 | #define SWIGTYPE_p_wxGridBagSizer swig_types[9] | |
222 | #define SWIGTYPE_p_wxAcceleratorEntry swig_types[10] | |
223 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[11] | |
224 | #define SWIGTYPE_p_wxMenu swig_types[12] | |
225 | #define SWIGTYPE_p_wxEvent swig_types[13] | |
226 | #define SWIGTYPE_p_wxGridSizer swig_types[14] | |
227 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[15] | |
228 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[16] | |
229 | #define SWIGTYPE_p_wxItemContainer swig_types[17] | |
230 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[18] | |
231 | #define SWIGTYPE_p_wxPaintEvent swig_types[19] | |
232 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20] | |
233 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21] | |
234 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22] | |
235 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23] | |
236 | #define SWIGTYPE_p_wxControl swig_types[24] | |
237 | #define SWIGTYPE_p_wxFont swig_types[25] | |
238 | #define SWIGTYPE_p_wxMenuBarBase swig_types[26] | |
239 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[27] | |
240 | #define SWIGTYPE_p_wxFSFile swig_types[28] | |
241 | #define SWIGTYPE_p_wxCaret swig_types[29] | |
242 | #define SWIGTYPE_p_wxRegion swig_types[30] | |
243 | #define SWIGTYPE_p_wxPoint2D swig_types[31] | |
244 | #define SWIGTYPE_p_int swig_types[32] | |
245 | #define SWIGTYPE_p_wxSize swig_types[33] | |
246 | #define SWIGTYPE_p_wxDC swig_types[34] | |
247 | #define SWIGTYPE_p_wxPySizer swig_types[35] | |
248 | #define SWIGTYPE_p_wxNotifyEvent swig_types[36] | |
249 | #define SWIGTYPE_p_wxPyEvent swig_types[37] | |
250 | #define SWIGTYPE_p_wxPropagationDisabler swig_types[38] | |
251 | #define SWIGTYPE_p_wxAppTraits swig_types[39] | |
252 | #define SWIGTYPE_p_wxArrayString swig_types[40] | |
253 | #define SWIGTYPE_p_wxShowEvent swig_types[41] | |
254 | #define SWIGTYPE_p_wxToolTip swig_types[42] | |
255 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[43] | |
256 | #define SWIGTYPE_p_wxIconizeEvent swig_types[44] | |
257 | #define SWIGTYPE_p_wxActivateEvent swig_types[45] | |
258 | #define SWIGTYPE_p_wxMoveEvent swig_types[46] | |
259 | #define SWIGTYPE_p_wxSizeEvent swig_types[47] | |
260 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[48] | |
261 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[49] | |
262 | #define SWIGTYPE_p_wxIdleEvent swig_types[50] | |
263 | #define SWIGTYPE_p_wxMenuItem swig_types[51] | |
264 | #define SWIGTYPE_p_wxStaticBox swig_types[52] | |
265 | #define SWIGTYPE_p_long swig_types[53] | |
266 | #define SWIGTYPE_p_wxTIFFHandler swig_types[54] | |
267 | #define SWIGTYPE_p_wxXPMHandler swig_types[55] | |
268 | #define SWIGTYPE_p_wxPNMHandler swig_types[56] | |
269 | #define SWIGTYPE_p_wxJPEGHandler swig_types[57] | |
270 | #define SWIGTYPE_p_wxPCXHandler swig_types[58] | |
271 | #define SWIGTYPE_p_wxGIFHandler swig_types[59] | |
272 | #define SWIGTYPE_p_wxPNGHandler swig_types[60] | |
273 | #define SWIGTYPE_p_wxANIHandler swig_types[61] | |
274 | #define SWIGTYPE_p_wxMemoryFSHandler swig_types[62] | |
275 | #define SWIGTYPE_p_wxEvtHandler swig_types[63] | |
276 | #define SWIGTYPE_p_wxCURHandler swig_types[64] | |
277 | #define SWIGTYPE_p_wxICOHandler swig_types[65] | |
278 | #define SWIGTYPE_p_wxBMPHandler swig_types[66] | |
279 | #define SWIGTYPE_p_wxImageHandler swig_types[67] | |
280 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[68] | |
281 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[69] | |
282 | #define SWIGTYPE_p_wxInternetFSHandler swig_types[70] | |
283 | #define SWIGTYPE_p_wxZipFSHandler swig_types[71] | |
284 | #define SWIGTYPE_p_wxRect swig_types[72] | |
285 | #define SWIGTYPE_p_wxGBSpan swig_types[73] | |
286 | #define SWIGTYPE_p_wxPropagateOnce swig_types[74] | |
287 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[75] | |
288 | #define SWIGTYPE_p_wxGBPosition swig_types[76] | |
289 | #define SWIGTYPE_p_wxImage swig_types[77] | |
290 | #define SWIGTYPE_p_wxFrame swig_types[78] | |
291 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[79] | |
292 | #define SWIGTYPE_p_wxImageHistogram swig_types[80] | |
293 | #define SWIGTYPE_p_byte swig_types[81] | |
294 | #define SWIGTYPE_p_wxPoint swig_types[82] | |
295 | #define SWIGTYPE_p_wxCursor swig_types[83] | |
296 | #define SWIGTYPE_p_wxObject swig_types[84] | |
297 | #define SWIGTYPE_p_wxPyInputStream swig_types[85] | |
298 | #define SWIGTYPE_p_wxOutputStream swig_types[86] | |
299 | #define SWIGTYPE_p_wxInputStream swig_types[87] | |
300 | #define SWIGTYPE_p_wxDateTime swig_types[88] | |
301 | #define SWIGTYPE_p_wxKeyEvent swig_types[89] | |
302 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[90] | |
303 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[91] | |
304 | #define SWIGTYPE_p_wxWindow swig_types[92] | |
305 | #define SWIGTYPE_p_wxMenuBar swig_types[93] | |
306 | #define SWIGTYPE_p_wxString swig_types[94] | |
307 | #define SWIGTYPE_p_wxFileSystem swig_types[95] | |
308 | #define SWIGTYPE_p_wxBitmap swig_types[96] | |
309 | #define SWIGTYPE_p_wxMenuEvent swig_types[97] | |
310 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[98] | |
311 | #define SWIGTYPE_p_unsigned_char swig_types[99] | |
312 | #define SWIGTYPE_p_wxCloseEvent swig_types[100] | |
313 | #define SWIGTYPE_p_wxEraseEvent swig_types[101] | |
314 | #define SWIGTYPE_p_wxMouseEvent swig_types[102] | |
315 | #define SWIGTYPE_p_wxPyApp swig_types[103] | |
316 | #define SWIGTYPE_p_wxCommandEvent swig_types[104] | |
317 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[105] | |
44127b65 | 318 | #define SWIGTYPE_p_wxPyDropTarget swig_types[106] |
d14a1e28 RD |
319 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[107] |
320 | #define SWIGTYPE_p_wxFocusEvent swig_types[108] | |
321 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[109] | |
322 | #define SWIGTYPE_p_wxControlWithItems swig_types[110] | |
323 | #define SWIGTYPE_p_wxColour swig_types[111] | |
324 | #define SWIGTYPE_p_wxValidator swig_types[112] | |
325 | #define SWIGTYPE_p_wxPyValidator swig_types[113] | |
326 | static swig_type_info *swig_types[115]; | |
327 | ||
328 | /* -------- TYPES TABLE (END) -------- */ | |
329 | ||
330 | ||
331 | /*----------------------------------------------- | |
332 | @(target):= _core.so | |
333 | ------------------------------------------------*/ | |
334 | #define SWIG_init init_core | |
335 | ||
336 | #define SWIG_name "_core" | |
337 | ||
338 | #include "wx/wxPython/wxPython_int.h" | |
339 | #include "wx/wxPython/pyclasses.h" | |
340 | ||
341 | ||
342 | #ifndef wxPyUSE_EXPORT | |
343 | // Helper functions for dealing with SWIG objects and such. These are | |
344 | // located here so they know about the SWIG types and functions declared | |
345 | // in the wrapper code. | |
346 | ||
347 | #include <wx/hashmap.h> | |
348 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
349 | ||
350 | ||
351 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
352 | // name of a class either looks up the type info in the cache, or scans the | |
353 | // SWIG tables for it. | |
354 | extern PyObject* wxPyPtrTypeMap; | |
355 | static | |
356 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
357 | ||
358 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
359 | ||
360 | if (typeInfoCache == NULL) | |
361 | typeInfoCache = new wxPyTypeInfoHashMap; | |
362 | ||
363 | wxString name(className); | |
364 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
365 | ||
366 | if (! swigType) { | |
367 | // it wasn't in the cache, so look it up from SWIG | |
368 | name.Append(wxT(" *")); | |
369 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
370 | ||
371 | // if it still wasn't found, try looking for a mapped name | |
372 | if (!swigType) { | |
373 | PyObject* item; | |
374 | name = className; | |
375 | ||
376 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
377 | (char*)(const char*)name.mbc_str())) != NULL) { | |
378 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
379 | name.Append(wxT(" *")); | |
380 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
381 | } | |
382 | } | |
383 | if (swigType) { | |
384 | // and add it to the map if found | |
385 | (*typeInfoCache)[className] = swigType; | |
386 | } | |
387 | } | |
388 | return swigType; | |
389 | } | |
390 | ||
391 | ||
392 | // Check if a class name is a type known to SWIG | |
393 | bool wxPyCheckSwigType(const wxChar* className) { | |
394 | ||
395 | swig_type_info* swigType = wxPyFindSwigType(className); | |
396 | return swigType != NULL; | |
397 | } | |
398 | ||
399 | ||
400 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
401 | // object for it. | |
402 | PyObject* wxPyConstructObject(void* ptr, | |
403 | const wxChar* className, | |
404 | int setThisOwn) { | |
405 | ||
406 | swig_type_info* swigType = wxPyFindSwigType(className); | |
407 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
408 | ||
409 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
410 | } | |
411 | ||
412 | ||
413 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
414 | // Ensures that the proxy object is of the specified (or derived) type. If | |
415 | // not able to perform the conversion then a Python exception is set and the | |
423f194a | 416 | // error should be handled properly in the caller. Returns True on success. |
d14a1e28 RD |
417 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, |
418 | const wxChar* className) { | |
419 | ||
420 | swig_type_info* swigType = wxPyFindSwigType(className); | |
423f194a | 421 | wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr")); |
d14a1e28 RD |
422 | |
423 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
424 | } | |
425 | ||
426 | ||
427 | // Make a SWIGified pointer object suitable for a .this attribute | |
428 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
429 | ||
430 | PyObject* robj = NULL; | |
431 | ||
432 | swig_type_info* swigType = wxPyFindSwigType(className); | |
433 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
434 | ||
435 | #ifdef SWIG_COBJECT_TYPES | |
436 | robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); | |
437 | #else | |
438 | { | |
439 | char result[1024]; | |
440 | char *r = result; | |
441 | *(r++) = '_'; | |
442 | r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); | |
443 | strcpy(r, swigType->name); | |
444 | robj = PyString_FromString(result); | |
445 | } | |
446 | #endif | |
447 | ||
448 | return robj; | |
449 | } | |
450 | ||
451 | ||
452 | ||
453 | ||
454 | // Export a C API in a struct. Other modules will be able to load this from | |
455 | // the wx.core module and will then have safe access to these functions, even if | |
456 | // they are located in another shared library. | |
457 | static wxPyCoreAPI API = { | |
458 | ||
459 | (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, | |
460 | (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, | |
461 | (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, | |
462 | (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, | |
463 | (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, | |
464 | (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, | |
465 | (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, | |
466 | (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, | |
467 | (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, | |
468 | (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, | |
469 | (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, | |
470 | (p_SWIG_Python_PackData_t)SWIG_Python_PackData, | |
471 | (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, | |
472 | (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, | |
473 | (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, | |
474 | (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, | |
475 | (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, | |
476 | ||
477 | wxPyCheckSwigType, | |
478 | wxPyConstructObject, | |
479 | wxPyConvertSwigPtr, | |
480 | wxPyMakeSwigPtr, | |
481 | ||
482 | wxPyBeginAllowThreads, | |
483 | wxPyEndAllowThreads, | |
484 | wxPyBeginBlockThreads, | |
485 | wxPyEndBlockThreads, | |
486 | ||
487 | wxPy_ConvertList, | |
488 | ||
489 | wxString_in_helper, | |
490 | Py2wxString, | |
491 | wx2PyString, | |
492 | ||
493 | byte_LIST_helper, | |
494 | int_LIST_helper, | |
495 | long_LIST_helper, | |
496 | string_LIST_helper, | |
497 | wxPoint_LIST_helper, | |
498 | wxBitmap_LIST_helper, | |
499 | wxString_LIST_helper, | |
500 | wxAcceleratorEntry_LIST_helper, | |
501 | ||
502 | wxSize_helper, | |
503 | wxPoint_helper, | |
504 | wxRealPoint_helper, | |
505 | wxRect_helper, | |
506 | wxColour_helper, | |
507 | wxPoint2D_helper, | |
508 | ||
509 | wxPySimple_typecheck, | |
510 | wxColour_typecheck, | |
511 | ||
512 | wxPyCBH_setCallbackInfo, | |
513 | wxPyCBH_findCallback, | |
514 | wxPyCBH_callCallback, | |
515 | wxPyCBH_callCallbackObj, | |
516 | wxPyCBH_delete, | |
517 | ||
518 | wxPyMake_wxObject, | |
519 | wxPyMake_wxSizer, | |
520 | wxPyPtrTypeMap_Add, | |
521 | wxPy2int_seq_helper, | |
522 | wxPy4int_seq_helper, | |
523 | wxArrayString2PyList_helper, | |
524 | wxArrayInt2PyList_helper, | |
525 | ||
526 | wxPyClientData_dtor, | |
527 | wxPyUserData_dtor, | |
528 | wxPyOORClientData_dtor, | |
529 | ||
530 | wxPyCBInputStream_create, | |
531 | ||
532 | wxPyInstance_Check, | |
533 | wxPySwigInstance_Check | |
534 | ||
535 | }; | |
536 | ||
537 | #endif | |
538 | ||
539 | ||
d14a1e28 RD |
540 | #if ! wxUSE_HOTKEY |
541 | enum wxHotkeyModifier | |
542 | { | |
543 | wxMOD_NONE = 0, | |
544 | wxMOD_ALT = 1, | |
545 | wxMOD_CONTROL = 2, | |
546 | wxMOD_SHIFT = 4, | |
547 | wxMOD_WIN = 8 | |
548 | }; | |
549 | #define wxEVT_HOTKEY 9999 | |
550 | #endif | |
551 | ||
d03fd34d | 552 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
553 | wxString wxObject_GetClassName(wxObject *self){ |
554 | return self->GetClassInfo()->GetClassName(); | |
555 | } | |
556 | void wxObject_Destroy(wxObject *self){ | |
557 | delete self; | |
558 | } | |
559 | ||
560 | #ifndef __WXMAC__ | |
561 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
562 | #endif | |
563 | ||
423f194a | 564 | PyObject *wxSize_Get(wxSize *self){ |
d14a1e28 RD |
565 | wxPyBeginBlockThreads(); |
566 | PyObject* tup = PyTuple_New(2); | |
567 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
568 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
569 | wxPyEndBlockThreads(); | |
570 | return tup; | |
571 | } | |
572 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ | |
573 | self->x = x; | |
574 | self->y = y; | |
575 | } | |
423f194a | 576 | PyObject *wxRealPoint_Get(wxRealPoint *self){ |
d14a1e28 RD |
577 | wxPyBeginBlockThreads(); |
578 | PyObject* tup = PyTuple_New(2); | |
579 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
580 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
581 | wxPyEndBlockThreads(); | |
582 | return tup; | |
583 | } | |
584 | void wxPoint_Set(wxPoint *self,long x,long y){ | |
585 | self->x = x; | |
586 | self->y = y; | |
587 | } | |
423f194a | 588 | PyObject *wxPoint_Get(wxPoint *self){ |
d14a1e28 RD |
589 | wxPyBeginBlockThreads(); |
590 | PyObject* tup = PyTuple_New(2); | |
591 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
592 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
593 | wxPyEndBlockThreads(); | |
594 | return tup; | |
595 | } | |
596 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
597 | self->x = x; | |
598 | self->y = y; | |
599 | self->width = width; | |
600 | self->height = height; | |
601 | } | |
423f194a | 602 | PyObject *wxRect_Get(wxRect *self){ |
d14a1e28 RD |
603 | wxPyBeginBlockThreads(); |
604 | PyObject* tup = PyTuple_New(4); | |
605 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
606 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
607 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
608 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
609 | wxPyEndBlockThreads(); | |
610 | return tup; | |
611 | } | |
612 | ||
613 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
614 | wxRegion reg1(*r1); | |
615 | wxRegion reg2(*r2); | |
616 | wxRect dest(0,0,0,0); | |
617 | PyObject* obj; | |
618 | ||
619 | reg1.Intersect(reg2); | |
620 | dest = reg1.GetBox(); | |
621 | ||
622 | if (dest != wxRect(0,0,0,0)) { | |
623 | wxPyBeginBlockThreads(); | |
624 | wxRect* newRect = new wxRect(dest); | |
423f194a | 625 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); |
d14a1e28 RD |
626 | wxPyEndBlockThreads(); |
627 | return obj; | |
628 | } | |
629 | Py_INCREF(Py_None); | |
630 | return Py_None; | |
631 | } | |
632 | ||
633 | ||
634 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
635 | PyObject* o2; | |
636 | PyObject* o3; | |
637 | ||
638 | if (!target) { | |
639 | target = o; | |
640 | } else if (target == Py_None) { | |
641 | Py_DECREF(Py_None); | |
642 | target = o; | |
643 | } else { | |
644 | if (!PyTuple_Check(target)) { | |
645 | o2 = target; | |
646 | target = PyTuple_New(1); | |
647 | PyTuple_SetItem(target, 0, o2); | |
648 | } | |
649 | o3 = PyTuple_New(1); | |
650 | PyTuple_SetItem(o3, 0, o); | |
651 | ||
652 | o2 = target; | |
653 | target = PySequence_Concat(o2, o3); | |
654 | Py_DECREF(o2); | |
655 | Py_DECREF(o3); | |
656 | } | |
657 | return target; | |
658 | } | |
659 | ||
660 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
661 | self->m_x = x; | |
662 | self->m_y = y; | |
663 | } | |
423f194a | 664 | PyObject *wxPoint2D_Get(wxPoint2D *self){ |
d14a1e28 RD |
665 | wxPyBeginBlockThreads(); |
666 | PyObject* tup = PyTuple_New(2); | |
667 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
668 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
669 | wxPyEndBlockThreads(); | |
670 | return tup; | |
671 | } | |
672 | ||
673 | #include "wx/wxPython/pyistream.h" | |
674 | ||
675 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
676 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
677 | if (wxis) | |
678 | return new wxPyInputStream(wxis); | |
679 | else | |
680 | return NULL; | |
681 | } | |
682 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ | |
683 | // We use only strings for the streams, not unicode | |
684 | PyObject* str = PyObject_Str(obj); | |
685 | if (! str) { | |
686 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
687 | return; | |
688 | } | |
689 | self->Write(PyString_AS_STRING(str), | |
690 | PyString_GET_SIZE(str)); | |
691 | Py_DECREF(str); | |
692 | } | |
693 | ||
694 | #include "wx/wxPython/pyistream.h" | |
695 | ||
696 | ||
697 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
698 | { | |
699 | public: | |
700 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
701 | ||
702 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
703 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
704 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
705 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
706 | ||
707 | wxString GetProtocol(const wxString& location) { | |
708 | return wxFileSystemHandler::GetProtocol(location); | |
709 | } | |
710 | ||
711 | wxString GetLeftLocation(const wxString& location) { | |
712 | return wxFileSystemHandler::GetLeftLocation(location); | |
713 | } | |
714 | ||
715 | wxString GetAnchor(const wxString& location) { | |
716 | return wxFileSystemHandler::GetAnchor(location); | |
717 | } | |
718 | ||
719 | wxString GetRightLocation(const wxString& location) { | |
720 | return wxFileSystemHandler::GetRightLocation(location); | |
721 | } | |
722 | ||
723 | wxString GetMimeTypeFromExt(const wxString& location) { | |
724 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
725 | } | |
726 | ||
727 | PYPRIVATE; | |
728 | }; | |
729 | ||
730 | ||
731 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
732 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
733 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
734 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
735 | ||
736 | ||
737 | wxString wxFileSystem_URLToFileName(const wxString& url) { | |
738 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
739 | return fname.GetFullPath(); | |
740 | } | |
741 | ||
742 | ||
743 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
744 | wxImage& image, | |
745 | long type) { | |
746 | wxMemoryFSHandler::AddFile(filename, image, type); | |
747 | } | |
748 | ||
749 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
750 | const wxBitmap& bitmap, | |
751 | long type) { | |
752 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
753 | } | |
754 | ||
755 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
756 | PyObject* data) { | |
757 | wxMemoryFSHandler::AddFile(filename, | |
758 | // TODO: Verify data type | |
759 | (void*)PyString_AsString(data), | |
760 | (size_t)PyString_Size(data)); | |
761 | } | |
762 | ||
763 | ||
764 | #include "wx/wxPython/pyistream.h" | |
765 | ||
766 | wxImage *new_wxImage(int width,int height,bool clear){ | |
767 | if (width > 0 && height > 0) | |
768 | return new wxImage(width, height, clear); | |
769 | else | |
770 | return new wxImage; | |
771 | } | |
772 | wxImage *new_wxImage(wxBitmap const &bitmap){ | |
773 | return new wxImage(bitmap.ConvertToImage()); | |
774 | } | |
775 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
776 | // Copy the source data so the wxImage can clean it up later | |
777 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
778 | if (copy == NULL) { | |
779 | PyErr_NoMemory(); | |
780 | return NULL; | |
781 | } | |
782 | memcpy(copy, data, width*height*3); | |
423f194a | 783 | return new wxImage(width, height, copy, False); |
d14a1e28 RD |
784 | } |
785 | PyObject *wxImage_GetData(wxImage *self){ | |
786 | unsigned char* data = self->GetData(); | |
787 | int len = self->GetWidth() * self->GetHeight() * 3; | |
788 | PyObject* rv; | |
789 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
790 | return rv; | |
791 | } | |
792 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
793 | unsigned char* dataPtr; | |
794 | ||
795 | if (! PyString_Check(data)) { | |
796 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
797 | return /* NULL */ ; | |
798 | } | |
799 | ||
800 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
801 | dataPtr = (unsigned char*) malloc(len); | |
802 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
803 | self->SetData(dataPtr); | |
804 | // wxImage takes ownership of dataPtr... | |
805 | } | |
806 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
807 | unsigned char* data = self->GetData(); | |
808 | int len = self->GetWidth() * self->GetHeight() * 3; | |
809 | PyObject* rv; | |
810 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
811 | return rv; | |
812 | } | |
813 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
814 | unsigned char* buffer; | |
815 | int size; | |
816 | ||
817 | wxPyBeginBlockThreads(); | |
818 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
819 | goto done; | |
820 | ||
821 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
822 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
823 | goto done; | |
824 | } | |
825 | self->SetData(buffer); | |
826 | done: | |
827 | wxPyEndBlockThreads(); | |
828 | } | |
829 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
830 | unsigned char* data = self->GetAlpha(); | |
831 | if (! data) { | |
832 | RETURN_NONE(); | |
833 | } else { | |
834 | int len = self->GetWidth() * self->GetHeight(); | |
835 | PyObject* rv; | |
836 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
837 | return rv; | |
838 | } | |
839 | } | |
840 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
841 | unsigned char* dataPtr; | |
842 | ||
843 | if (! PyString_Check(data)) { | |
844 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
845 | return /* NULL */ ; | |
846 | } | |
847 | ||
848 | size_t len = self->GetWidth() * self->GetHeight(); | |
849 | dataPtr = (unsigned char*) malloc(len); | |
850 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
851 | self->SetAlpha(dataPtr); | |
852 | // wxImage takes ownership of dataPtr... | |
853 | } | |
854 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
855 | unsigned char* data = self->GetAlpha(); | |
856 | int len = self->GetWidth() * self->GetHeight(); | |
857 | PyObject* rv; | |
858 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
859 | return rv; | |
860 | } | |
861 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
862 | unsigned char* buffer; | |
863 | int size; | |
864 | ||
865 | wxPyBeginBlockThreads(); | |
866 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
867 | goto done; | |
868 | ||
869 | if (size != self->GetWidth() * self->GetHeight()) { | |
870 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
871 | goto done; | |
872 | } | |
873 | self->SetAlpha(buffer); | |
874 | done: | |
875 | wxPyEndBlockThreads(); | |
876 | } | |
877 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ | |
878 | wxBitmap bitmap(*self); | |
879 | return bitmap; | |
880 | } | |
881 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
882 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
883 | wxBitmap bitmap( mono, 1 ); | |
884 | return bitmap; | |
885 | } | |
886 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
887 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
888 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
889 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
890 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
891 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
892 | if (PyCallable_Check(func)) { | |
893 | self->Connect(id, lastId, eventType, | |
894 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
895 | new wxPyCallback(func)); | |
896 | } | |
897 | else if (func == Py_None) { | |
898 | self->Disconnect(id, lastId, eventType, | |
899 | (wxObjectEventFunction) | |
900 | &wxPyCallback::EventThunker); | |
901 | } | |
902 | else { | |
903 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
904 | } | |
905 | } | |
906 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
907 | return self->Disconnect(id, lastId, eventType, | |
908 | (wxObjectEventFunction) | |
909 | &wxPyCallback::EventThunker); | |
910 | } | |
911 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
912 | if (_self && _self != Py_None) { | |
913 | self->SetClientObject(new wxPyOORClientData(_self)); | |
914 | } | |
915 | else { | |
916 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
917 | if (data) { | |
918 | self->SetClientObject(NULL); // This will delete it too | |
919 | } | |
920 | } | |
921 | } | |
922 | int wxKeyEvent_GetUniChar(wxKeyEvent *self){ | |
a64def11 RD |
923 | #if wxUSE_UNICODE |
924 | return self->m_uniChar; | |
925 | #else | |
d14a1e28 | 926 | return 0; |
a64def11 | 927 | #endif |
d14a1e28 RD |
928 | } |
929 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ | |
930 | self->m_size = size; | |
931 | } | |
932 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
933 | self->m_pos = pos; | |
934 | } | |
935 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
936 | int count = self->GetNumberOfFiles(); | |
937 | wxString* files = self->GetFiles(); | |
938 | PyObject* list = PyList_New(count); | |
939 | ||
940 | if (!list) { | |
941 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
942 | return NULL; | |
943 | } | |
944 | ||
945 | for (int i=0; i<count; i++) { | |
a64def11 | 946 | PyList_SetItem(list, i, wx2PyString(files[i])); |
d14a1e28 RD |
947 | } |
948 | return list; | |
949 | } | |
950 | ||
951 | ||
952 | wxPyApp *new_wxPyApp(){ | |
953 | wxPythonApp = new wxPyApp(); | |
954 | return wxPythonApp; | |
955 | } | |
956 | ||
957 | void wxApp_CleanUp() { | |
958 | __wxPyCleanup(); | |
959 | } | |
960 | ||
961 | ||
962 | wxPyApp* wxGetApp() { | |
963 | return (wxPyApp*)wxTheApp; | |
964 | } | |
965 | ||
966 | ||
967 | ||
423f194a | 968 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
d14a1e28 RD |
969 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
970 | wxWindowList& list = self->GetChildren(); | |
971 | return wxPy_ConvertList(&list); | |
972 | } | |
973 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
974 | ||
975 | ||
976 | ||
423f194a | 977 | return False; |
d14a1e28 RD |
978 | |
979 | } | |
980 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
981 | ||
982 | ||
983 | ||
423f194a | 984 | return False; |
d14a1e28 RD |
985 | |
986 | } | |
987 | long wxWindow_GetHandle(wxWindow *self){ | |
988 | return wxPyGetWinHandle(self); | |
989 | } | |
990 | ||
991 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
992 | return wxWindow::FindWindowById(id, parent); | |
993 | } | |
994 | ||
995 | wxWindow* wxFindWindowByName( const wxString& name, | |
996 | const wxWindow *parent = NULL ) { | |
997 | return wxWindow::FindWindowByName(name, parent); | |
998 | } | |
999 | ||
1000 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1001 | const wxWindow *parent = NULL ) { | |
1002 | return wxWindow::FindWindowByLabel(label, parent); | |
1003 | } | |
1004 | ||
1005 | ||
1006 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
1007 | #ifdef __WXMSW__ | |
1008 | wxWindow* win = new wxWindow; | |
1009 | win->SetHWND(hWnd); | |
1010 | win->SubclassWin(hWnd); | |
1011 | return win; | |
1012 | #else | |
cbd72d4f | 1013 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1014 | return NULL; |
1015 | #endif | |
1016 | } | |
1017 | ||
1018 | ||
1019 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1020 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1021 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1022 | ||
1023 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1024 | ||
1025 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1026 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1027 | wxMenuItemList& list = self->GetMenuItems(); | |
1028 | return wxPy_ConvertList(&list); | |
1029 | } | |
d03fd34d | 1030 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1031 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1032 | if (clientData) { | |
1033 | wxPyClientData* data = new wxPyClientData(clientData); | |
1034 | return self->Append(item, data); | |
1035 | } else | |
1036 | return self->Append(item); | |
1037 | } | |
1038 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1039 | if (clientData) { | |
1040 | wxPyClientData* data = new wxPyClientData(clientData); | |
1041 | return self->Insert(item, pos, data); | |
1042 | } else | |
1043 | return self->Insert(item, pos); | |
1044 | } | |
1045 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1046 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1047 | if (data) { | |
1048 | Py_INCREF(data->m_obj); | |
1049 | return data->m_obj; | |
1050 | } else { | |
1051 | Py_INCREF(Py_None); | |
1052 | return Py_None; | |
1053 | } | |
1054 | } | |
1055 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1056 | wxPyClientData* data = new wxPyClientData(clientData); | |
1057 | self->SetClientObject(n, data); | |
1058 | } | |
1059 | ||
1060 | ||
1061 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
1062 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1063 | if (data) { | |
1064 | Py_INCREF(data->m_obj); | |
1065 | return data->m_obj; | |
1066 | } else { | |
1067 | Py_INCREF(Py_None); | |
1068 | return Py_None; | |
1069 | } | |
1070 | } | |
1071 | ||
1072 | // Figure out the type of the sizer item | |
1073 | ||
1074 | struct wxPySizerItemInfo { | |
1075 | wxPySizerItemInfo() | |
423f194a RD |
1076 | : window(NULL), sizer(NULL), gotSize(False), |
1077 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1078 | {} |
1079 | ||
1080 | wxWindow* window; | |
1081 | wxSizer* sizer; | |
1082 | bool gotSize; | |
1083 | wxSize size; | |
1084 | bool gotPos; | |
1085 | int pos; | |
1086 | }; | |
1087 | ||
1088 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1089 | ||
1090 | wxPySizerItemInfo info; | |
1091 | wxSize size; | |
1092 | wxSize* sizePtr = &size; | |
1093 | ||
1094 | // Find out what the type of the item is | |
1095 | // try wxWindow | |
1096 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1097 | PyErr_Clear(); | |
1098 | info.window = NULL; | |
1099 | ||
1100 | // try wxSizer | |
1101 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1102 | PyErr_Clear(); | |
1103 | info.sizer = NULL; | |
1104 | ||
1105 | // try wxSize or (w,h) | |
1106 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1107 | info.size = *sizePtr; | |
423f194a | 1108 | info.gotSize = True; |
d14a1e28 RD |
1109 | } |
1110 | ||
1111 | // or a single int | |
1112 | if (checkIdx && PyInt_Check(item)) { | |
1113 | info.pos = PyInt_AsLong(item); | |
423f194a | 1114 | info.gotPos = True; |
d14a1e28 RD |
1115 | } |
1116 | } | |
1117 | } | |
1118 | ||
1119 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1120 | // no expected type, figure out what kind of error message to generate | |
1121 | if ( !checkSize && !checkIdx ) | |
1122 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1123 | else if ( checkSize && !checkIdx ) | |
1124 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1125 | else if ( !checkSize && checkIdx) | |
1126 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1127 | else | |
1128 | // can this one happen? | |
1129 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1130 | } | |
1131 | ||
1132 | return info; | |
1133 | } | |
1134 | ||
1135 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1136 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1137 | } | |
1138 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1139 | ||
1140 | wxPyUserData* data = NULL; | |
1141 | wxPyBeginBlockThreads(); | |
423f194a | 1142 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1143 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1144 | data = new wxPyUserData(userData); | |
1145 | wxPyEndBlockThreads(); | |
1146 | ||
1147 | // Now call the real Add method if a valid item type was found | |
1148 | if ( info.window ) | |
1149 | self->Add(info.window, proportion, flag, border, data); | |
1150 | else if ( info.sizer ) | |
1151 | self->Add(info.sizer, proportion, flag, border, data); | |
1152 | else if (info.gotSize) | |
1153 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1154 | proportion, flag, border, data); | |
1155 | } | |
1156 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1157 | ||
1158 | wxPyUserData* data = NULL; | |
1159 | wxPyBeginBlockThreads(); | |
423f194a | 1160 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1161 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1162 | data = new wxPyUserData(userData); | |
1163 | wxPyEndBlockThreads(); | |
1164 | ||
1165 | // Now call the real Insert method if a valid item type was found | |
1166 | if ( info.window ) | |
1167 | self->Insert(before, info.window, proportion, flag, border, data); | |
1168 | else if ( info.sizer ) | |
1169 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1170 | else if (info.gotSize) | |
1171 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1172 | proportion, flag, border, data); | |
1173 | } | |
1174 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1175 | ||
1176 | wxPyUserData* data = NULL; | |
1177 | wxPyBeginBlockThreads(); | |
423f194a | 1178 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1179 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1180 | data = new wxPyUserData(userData); | |
1181 | wxPyEndBlockThreads(); | |
1182 | ||
1183 | // Now call the real Prepend method if a valid item type was found | |
1184 | if ( info.window ) | |
1185 | self->Prepend(info.window, proportion, flag, border, data); | |
1186 | else if ( info.sizer ) | |
1187 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1188 | else if (info.gotSize) | |
1189 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1190 | proportion, flag, border, data); | |
1191 | } | |
1192 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1193 | wxPyBeginBlockThreads(); | |
423f194a | 1194 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1195 | wxPyEndBlockThreads(); |
1196 | if ( info.window ) | |
1197 | return self->Remove(info.window); | |
1198 | else if ( info.sizer ) | |
1199 | return self->Remove(info.sizer); | |
1200 | else if ( info.gotPos ) | |
1201 | return self->Remove(info.pos); | |
1202 | else | |
423f194a | 1203 | return False; |
d14a1e28 | 1204 | } |
423f194a | 1205 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
d14a1e28 | 1206 | wxPyBeginBlockThreads(); |
423f194a | 1207 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1208 | wxPyEndBlockThreads(); |
1209 | if ( info.window ) | |
1210 | self->SetItemMinSize(info.window, size); | |
1211 | else if ( info.sizer ) | |
1212 | self->SetItemMinSize(info.sizer, size); | |
1213 | else if ( info.gotPos ) | |
1214 | self->SetItemMinSize(info.pos, size); | |
1215 | } | |
1216 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1217 | wxSizerItemList& list = self->GetChildren(); | |
1218 | return wxPy_ConvertList(&list); | |
1219 | } | |
1220 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
423f194a | 1221 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1222 | if ( info.window ) |
1223 | self->Show(info.window, show); | |
1224 | else if ( info.sizer ) | |
1225 | self->Show(info.sizer, show); | |
1226 | } | |
1227 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
423f194a | 1228 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1229 | if ( info.window ) |
1230 | self->Hide(info.window); | |
1231 | else if ( info.sizer ) | |
1232 | self->Hide(info.sizer); | |
1233 | } | |
1234 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
423f194a | 1235 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1236 | if ( info.window ) |
1237 | return self->IsShown(info.window); | |
1238 | else if ( info.sizer ) | |
1239 | return self->IsShown(info.sizer); | |
1240 | else | |
423f194a | 1241 | return False; |
d14a1e28 RD |
1242 | } |
1243 | ||
1244 | // See pyclasses.h | |
1245 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1246 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1247 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1248 | ||
1249 | ||
1250 | ||
1251 | ||
1252 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1253 | { | |
1254 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1255 | } | |
1256 | ||
1257 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1258 | { | |
1259 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1260 | } | |
1261 | ||
1262 | ||
423f194a RD |
1263 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1264 | self->SetRow(row); | |
1265 | self->SetCol(col); | |
1266 | } | |
1267 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
d14a1e28 RD |
1268 | wxPyBeginBlockThreads(); |
1269 | PyObject* tup = PyTuple_New(2); | |
1270 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1271 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1272 | wxPyEndBlockThreads(); | |
1273 | return tup; | |
1274 | } | |
423f194a RD |
1275 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1276 | self->SetRowspan(rowspan); | |
1277 | self->SetColspan(colspan); | |
1278 | } | |
1279 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
d14a1e28 RD |
1280 | wxPyBeginBlockThreads(); |
1281 | PyObject* tup = PyTuple_New(2); | |
1282 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1283 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
1284 | wxPyEndBlockThreads(); | |
1285 | return tup; | |
1286 | } | |
1287 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1288 | ||
1289 | wxPyUserData* data = NULL; | |
1290 | wxPyBeginBlockThreads(); | |
423f194a | 1291 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1292 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1293 | data = new wxPyUserData(userData); | |
1294 | wxPyEndBlockThreads(); | |
1295 | ||
1296 | // Now call the real Add method if a valid item type was found | |
1297 | if ( info.window ) | |
1298 | return self->Add(info.window, pos, span, flag, border, data); | |
1299 | else if ( info.sizer ) | |
1300 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1301 | else if (info.gotSize) | |
1302 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1303 | pos, span, flag, border, data); | |
423f194a | 1304 | return False; |
d14a1e28 RD |
1305 | } |
1306 | ||
1307 | ||
1308 | #ifdef __cplusplus | |
1309 | extern "C" { | |
1310 | #endif | |
d03fd34d RD |
1311 | static int _wrap_EmptyString_set(PyObject *_val) { |
1312 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); | |
1313 | return 1; | |
1314 | } | |
1315 | ||
1316 | ||
1317 | static PyObject *_wrap_EmptyString_get() { | |
1318 | PyObject *pyobj; | |
1319 | ||
1320 | { | |
1321 | #if wxUSE_UNICODE | |
1322 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1323 | #else | |
1324 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1325 | #endif | |
1326 | } | |
1327 | return pyobj; | |
1328 | } | |
1329 | ||
1330 | ||
d14a1e28 RD |
1331 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1332 | PyObject *resultobj; | |
1333 | wxObject *arg1 = (wxObject *) 0 ; | |
1334 | wxString result; | |
1335 | PyObject * obj0 = 0 ; | |
1336 | char *kwnames[] = { | |
1337 | (char *) "self", NULL | |
1338 | }; | |
1339 | ||
1340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
1341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1342 | { | |
1343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1344 | result = wxObject_GetClassName(arg1); | |
1345 | ||
1346 | wxPyEndAllowThreads(__tstate); | |
1347 | if (PyErr_Occurred()) SWIG_fail; | |
1348 | } | |
1349 | { | |
1350 | #if wxUSE_UNICODE | |
1351 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1352 | #else | |
1353 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1354 | #endif | |
1355 | } | |
1356 | return resultobj; | |
1357 | fail: | |
1358 | return NULL; | |
1359 | } | |
1360 | ||
1361 | ||
1362 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1363 | PyObject *resultobj; | |
1364 | wxObject *arg1 = (wxObject *) 0 ; | |
1365 | PyObject * obj0 = 0 ; | |
1366 | char *kwnames[] = { | |
1367 | (char *) "self", NULL | |
1368 | }; | |
1369 | ||
1370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
1371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1372 | { | |
1373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1374 | wxObject_Destroy(arg1); | |
1375 | ||
1376 | wxPyEndAllowThreads(__tstate); | |
1377 | if (PyErr_Occurred()) SWIG_fail; | |
1378 | } | |
1379 | Py_INCREF(Py_None); resultobj = Py_None; | |
1380 | return resultobj; | |
1381 | fail: | |
1382 | return NULL; | |
1383 | } | |
1384 | ||
1385 | ||
1386 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1387 | PyObject *obj; | |
1388 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1389 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1390 | Py_INCREF(obj); | |
1391 | return Py_BuildValue((char *)""); | |
1392 | } | |
1393 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1394 | PyObject *resultobj; | |
1395 | wxSize *arg1 = (wxSize *) 0 ; | |
1396 | int arg2 ; | |
1397 | PyObject * obj0 = 0 ; | |
1398 | char *kwnames[] = { | |
1399 | (char *) "self",(char *) "x", NULL | |
1400 | }; | |
1401 | ||
1402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_width_set",kwnames,&obj0,&arg2)) goto fail; | |
1403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1404 | if (arg1) (arg1)->x = arg2; | |
1405 | ||
1406 | Py_INCREF(Py_None); resultobj = Py_None; | |
1407 | return resultobj; | |
1408 | fail: | |
1409 | return NULL; | |
1410 | } | |
1411 | ||
1412 | ||
1413 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1414 | PyObject *resultobj; | |
1415 | wxSize *arg1 = (wxSize *) 0 ; | |
1416 | int result; | |
1417 | PyObject * obj0 = 0 ; | |
1418 | char *kwnames[] = { | |
1419 | (char *) "self", NULL | |
1420 | }; | |
1421 | ||
1422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
1423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1424 | result = (int) ((arg1)->x); | |
1425 | ||
1426 | resultobj = PyInt_FromLong((long)result); | |
1427 | return resultobj; | |
1428 | fail: | |
1429 | return NULL; | |
1430 | } | |
1431 | ||
1432 | ||
1433 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1434 | PyObject *resultobj; | |
1435 | wxSize *arg1 = (wxSize *) 0 ; | |
1436 | int arg2 ; | |
1437 | PyObject * obj0 = 0 ; | |
1438 | char *kwnames[] = { | |
1439 | (char *) "self",(char *) "y", NULL | |
1440 | }; | |
1441 | ||
1442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_height_set",kwnames,&obj0,&arg2)) goto fail; | |
1443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1444 | if (arg1) (arg1)->y = arg2; | |
1445 | ||
1446 | Py_INCREF(Py_None); resultobj = Py_None; | |
1447 | return resultobj; | |
1448 | fail: | |
1449 | return NULL; | |
1450 | } | |
1451 | ||
1452 | ||
1453 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1454 | PyObject *resultobj; | |
1455 | wxSize *arg1 = (wxSize *) 0 ; | |
1456 | int result; | |
1457 | PyObject * obj0 = 0 ; | |
1458 | char *kwnames[] = { | |
1459 | (char *) "self", NULL | |
1460 | }; | |
1461 | ||
1462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
1463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1464 | result = (int) ((arg1)->y); | |
1465 | ||
1466 | resultobj = PyInt_FromLong((long)result); | |
1467 | return resultobj; | |
1468 | fail: | |
1469 | return NULL; | |
1470 | } | |
1471 | ||
1472 | ||
1473 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1474 | PyObject *resultobj; | |
1475 | int arg1 = (int) 0 ; | |
1476 | int arg2 = (int) 0 ; | |
1477 | wxSize *result; | |
1478 | char *kwnames[] = { | |
1479 | (char *) "w",(char *) "h", NULL | |
1480 | }; | |
1481 | ||
1482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Size",kwnames,&arg1,&arg2)) goto fail; | |
1483 | { | |
1484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1485 | result = (wxSize *)new wxSize(arg1,arg2); | |
1486 | ||
1487 | wxPyEndAllowThreads(__tstate); | |
1488 | if (PyErr_Occurred()) SWIG_fail; | |
1489 | } | |
1490 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 1); | |
1491 | return resultobj; | |
1492 | fail: | |
1493 | return NULL; | |
1494 | } | |
1495 | ||
1496 | ||
1497 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1498 | PyObject *resultobj; | |
1499 | wxSize *arg1 = (wxSize *) 0 ; | |
1500 | PyObject * obj0 = 0 ; | |
1501 | char *kwnames[] = { | |
1502 | (char *) "self", NULL | |
1503 | }; | |
1504 | ||
1505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
1506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1507 | { | |
1508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1509 | delete arg1; | |
1510 | ||
1511 | wxPyEndAllowThreads(__tstate); | |
1512 | if (PyErr_Occurred()) SWIG_fail; | |
1513 | } | |
1514 | Py_INCREF(Py_None); resultobj = Py_None; | |
1515 | return resultobj; | |
1516 | fail: | |
1517 | return NULL; | |
1518 | } | |
1519 | ||
1520 | ||
1521 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1522 | PyObject *resultobj; | |
1523 | wxSize *arg1 = (wxSize *) 0 ; | |
1524 | wxSize *arg2 = 0 ; | |
1525 | bool result; | |
1526 | wxSize temp2 ; | |
1527 | PyObject * obj0 = 0 ; | |
1528 | PyObject * obj1 = 0 ; | |
1529 | char *kwnames[] = { | |
1530 | (char *) "self",(char *) "sz", NULL | |
1531 | }; | |
1532 | ||
1533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1535 | { | |
1536 | arg2 = &temp2; | |
1537 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1538 | } | |
1539 | { | |
1540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 1541 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
1542 | |
1543 | wxPyEndAllowThreads(__tstate); | |
1544 | if (PyErr_Occurred()) SWIG_fail; | |
1545 | } | |
1546 | resultobj = PyInt_FromLong((long)result); | |
1547 | return resultobj; | |
1548 | fail: | |
1549 | return NULL; | |
1550 | } | |
1551 | ||
1552 | ||
1553 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1554 | PyObject *resultobj; | |
1555 | wxSize *arg1 = (wxSize *) 0 ; | |
1556 | wxSize *arg2 = 0 ; | |
1557 | bool result; | |
1558 | wxSize temp2 ; | |
1559 | PyObject * obj0 = 0 ; | |
1560 | PyObject * obj1 = 0 ; | |
1561 | char *kwnames[] = { | |
1562 | (char *) "self",(char *) "sz", NULL | |
1563 | }; | |
1564 | ||
1565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1567 | { | |
1568 | arg2 = &temp2; | |
1569 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1570 | } | |
1571 | { | |
1572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 1573 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
1574 | |
1575 | wxPyEndAllowThreads(__tstate); | |
1576 | if (PyErr_Occurred()) SWIG_fail; | |
1577 | } | |
1578 | resultobj = PyInt_FromLong((long)result); | |
1579 | return resultobj; | |
1580 | fail: | |
1581 | return NULL; | |
1582 | } | |
1583 | ||
1584 | ||
1585 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1586 | PyObject *resultobj; | |
1587 | wxSize *arg1 = (wxSize *) 0 ; | |
1588 | wxSize *arg2 = 0 ; | |
1589 | wxSize result; | |
1590 | wxSize temp2 ; | |
1591 | PyObject * obj0 = 0 ; | |
1592 | PyObject * obj1 = 0 ; | |
1593 | char *kwnames[] = { | |
1594 | (char *) "self",(char *) "sz", NULL | |
1595 | }; | |
1596 | ||
1597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
1598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1599 | { | |
1600 | arg2 = &temp2; | |
1601 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1602 | } | |
1603 | { | |
1604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1605 | result = (arg1)->operator +((wxSize const &)*arg2); | |
1606 | ||
1607 | wxPyEndAllowThreads(__tstate); | |
1608 | if (PyErr_Occurred()) SWIG_fail; | |
1609 | } | |
1610 | { | |
1611 | wxSize * resultptr; | |
1612 | resultptr = new wxSize((wxSize &) result); | |
1613 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1614 | } | |
1615 | return resultobj; | |
1616 | fail: | |
1617 | return NULL; | |
1618 | } | |
1619 | ||
1620 | ||
1621 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1622 | PyObject *resultobj; | |
1623 | wxSize *arg1 = (wxSize *) 0 ; | |
1624 | wxSize *arg2 = 0 ; | |
1625 | wxSize result; | |
1626 | wxSize temp2 ; | |
1627 | PyObject * obj0 = 0 ; | |
1628 | PyObject * obj1 = 0 ; | |
1629 | char *kwnames[] = { | |
1630 | (char *) "self",(char *) "sz", NULL | |
1631 | }; | |
1632 | ||
1633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
1634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1635 | { | |
1636 | arg2 = &temp2; | |
1637 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1638 | } | |
1639 | { | |
1640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1641 | result = (arg1)->operator -((wxSize const &)*arg2); | |
1642 | ||
1643 | wxPyEndAllowThreads(__tstate); | |
1644 | if (PyErr_Occurred()) SWIG_fail; | |
1645 | } | |
1646 | { | |
1647 | wxSize * resultptr; | |
1648 | resultptr = new wxSize((wxSize &) result); | |
1649 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1650 | } | |
1651 | return resultobj; | |
1652 | fail: | |
1653 | return NULL; | |
1654 | } | |
1655 | ||
1656 | ||
1657 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1658 | PyObject *resultobj; | |
1659 | wxSize *arg1 = (wxSize *) 0 ; | |
1660 | wxSize *arg2 = 0 ; | |
1661 | wxSize temp2 ; | |
1662 | PyObject * obj0 = 0 ; | |
1663 | PyObject * obj1 = 0 ; | |
1664 | char *kwnames[] = { | |
1665 | (char *) "self",(char *) "sz", NULL | |
1666 | }; | |
1667 | ||
1668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
1669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1670 | { | |
1671 | arg2 = &temp2; | |
1672 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1673 | } | |
1674 | { | |
1675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1676 | (arg1)->IncTo((wxSize const &)*arg2); | |
1677 | ||
1678 | wxPyEndAllowThreads(__tstate); | |
1679 | if (PyErr_Occurred()) SWIG_fail; | |
1680 | } | |
1681 | Py_INCREF(Py_None); resultobj = Py_None; | |
1682 | return resultobj; | |
1683 | fail: | |
1684 | return NULL; | |
1685 | } | |
1686 | ||
1687 | ||
1688 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1689 | PyObject *resultobj; | |
1690 | wxSize *arg1 = (wxSize *) 0 ; | |
1691 | wxSize *arg2 = 0 ; | |
1692 | wxSize temp2 ; | |
1693 | PyObject * obj0 = 0 ; | |
1694 | PyObject * obj1 = 0 ; | |
1695 | char *kwnames[] = { | |
1696 | (char *) "self",(char *) "sz", NULL | |
1697 | }; | |
1698 | ||
1699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
1700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1701 | { | |
1702 | arg2 = &temp2; | |
1703 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1704 | } | |
1705 | { | |
1706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1707 | (arg1)->DecTo((wxSize const &)*arg2); | |
1708 | ||
1709 | wxPyEndAllowThreads(__tstate); | |
1710 | if (PyErr_Occurred()) SWIG_fail; | |
1711 | } | |
1712 | Py_INCREF(Py_None); resultobj = Py_None; | |
1713 | return resultobj; | |
1714 | fail: | |
1715 | return NULL; | |
1716 | } | |
1717 | ||
1718 | ||
1719 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1720 | PyObject *resultobj; | |
1721 | wxSize *arg1 = (wxSize *) 0 ; | |
1722 | int arg2 ; | |
1723 | int arg3 ; | |
1724 | PyObject * obj0 = 0 ; | |
1725 | char *kwnames[] = { | |
423f194a | 1726 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
1727 | }; |
1728 | ||
1729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Size_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1731 | { | |
1732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1733 | (arg1)->Set(arg2,arg3); | |
1734 | ||
1735 | wxPyEndAllowThreads(__tstate); | |
1736 | if (PyErr_Occurred()) SWIG_fail; | |
1737 | } | |
1738 | Py_INCREF(Py_None); resultobj = Py_None; | |
1739 | return resultobj; | |
1740 | fail: | |
1741 | return NULL; | |
1742 | } | |
1743 | ||
1744 | ||
1745 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1746 | PyObject *resultobj; | |
1747 | wxSize *arg1 = (wxSize *) 0 ; | |
1748 | int arg2 ; | |
1749 | PyObject * obj0 = 0 ; | |
1750 | char *kwnames[] = { | |
1751 | (char *) "self",(char *) "w", NULL | |
1752 | }; | |
1753 | ||
1754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
1755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1756 | { | |
1757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1758 | (arg1)->SetWidth(arg2); | |
1759 | ||
1760 | wxPyEndAllowThreads(__tstate); | |
1761 | if (PyErr_Occurred()) SWIG_fail; | |
1762 | } | |
1763 | Py_INCREF(Py_None); resultobj = Py_None; | |
1764 | return resultobj; | |
1765 | fail: | |
1766 | return NULL; | |
1767 | } | |
1768 | ||
1769 | ||
1770 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1771 | PyObject *resultobj; | |
1772 | wxSize *arg1 = (wxSize *) 0 ; | |
1773 | int arg2 ; | |
1774 | PyObject * obj0 = 0 ; | |
1775 | char *kwnames[] = { | |
1776 | (char *) "self",(char *) "h", NULL | |
1777 | }; | |
1778 | ||
1779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
1780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1781 | { | |
1782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1783 | (arg1)->SetHeight(arg2); | |
1784 | ||
1785 | wxPyEndAllowThreads(__tstate); | |
1786 | if (PyErr_Occurred()) SWIG_fail; | |
1787 | } | |
1788 | Py_INCREF(Py_None); resultobj = Py_None; | |
1789 | return resultobj; | |
1790 | fail: | |
1791 | return NULL; | |
1792 | } | |
1793 | ||
1794 | ||
1795 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1796 | PyObject *resultobj; | |
1797 | wxSize *arg1 = (wxSize *) 0 ; | |
1798 | int result; | |
1799 | PyObject * obj0 = 0 ; | |
1800 | char *kwnames[] = { | |
1801 | (char *) "self", NULL | |
1802 | }; | |
1803 | ||
1804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
1805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1806 | { | |
1807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1808 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
1809 | ||
1810 | wxPyEndAllowThreads(__tstate); | |
1811 | if (PyErr_Occurred()) SWIG_fail; | |
1812 | } | |
1813 | resultobj = PyInt_FromLong((long)result); | |
1814 | return resultobj; | |
1815 | fail: | |
1816 | return NULL; | |
1817 | } | |
1818 | ||
1819 | ||
1820 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1821 | PyObject *resultobj; | |
1822 | wxSize *arg1 = (wxSize *) 0 ; | |
1823 | int result; | |
1824 | PyObject * obj0 = 0 ; | |
1825 | char *kwnames[] = { | |
1826 | (char *) "self", NULL | |
1827 | }; | |
1828 | ||
1829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
1830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1831 | { | |
1832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1833 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
1834 | ||
1835 | wxPyEndAllowThreads(__tstate); | |
1836 | if (PyErr_Occurred()) SWIG_fail; | |
1837 | } | |
1838 | resultobj = PyInt_FromLong((long)result); | |
1839 | return resultobj; | |
1840 | fail: | |
1841 | return NULL; | |
1842 | } | |
1843 | ||
1844 | ||
423f194a | 1845 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1846 | PyObject *resultobj; |
1847 | wxSize *arg1 = (wxSize *) 0 ; | |
1848 | PyObject *result; | |
1849 | PyObject * obj0 = 0 ; | |
1850 | char *kwnames[] = { | |
1851 | (char *) "self", NULL | |
1852 | }; | |
1853 | ||
423f194a | 1854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
1855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1856 | { | |
1857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 1858 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
1859 | |
1860 | wxPyEndAllowThreads(__tstate); | |
1861 | if (PyErr_Occurred()) SWIG_fail; | |
1862 | } | |
1863 | resultobj = result; | |
1864 | return resultobj; | |
1865 | fail: | |
1866 | return NULL; | |
1867 | } | |
1868 | ||
1869 | ||
1870 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
1871 | PyObject *obj; | |
1872 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1873 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
1874 | Py_INCREF(obj); | |
1875 | return Py_BuildValue((char *)""); | |
1876 | } | |
1877 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1878 | PyObject *resultobj; | |
1879 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1880 | double arg2 ; | |
1881 | PyObject * obj0 = 0 ; | |
1882 | char *kwnames[] = { | |
1883 | (char *) "self",(char *) "x", NULL | |
1884 | }; | |
1885 | ||
1886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:RealPoint_x_set",kwnames,&obj0,&arg2)) goto fail; | |
1887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1888 | if (arg1) (arg1)->x = arg2; | |
1889 | ||
1890 | Py_INCREF(Py_None); resultobj = Py_None; | |
1891 | return resultobj; | |
1892 | fail: | |
1893 | return NULL; | |
1894 | } | |
1895 | ||
1896 | ||
1897 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1898 | PyObject *resultobj; | |
1899 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1900 | double result; | |
1901 | PyObject * obj0 = 0 ; | |
1902 | char *kwnames[] = { | |
1903 | (char *) "self", NULL | |
1904 | }; | |
1905 | ||
1906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
1907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1908 | result = (double) ((arg1)->x); | |
1909 | ||
1910 | resultobj = PyFloat_FromDouble(result); | |
1911 | return resultobj; | |
1912 | fail: | |
1913 | return NULL; | |
1914 | } | |
1915 | ||
1916 | ||
1917 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1918 | PyObject *resultobj; | |
1919 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1920 | double arg2 ; | |
1921 | PyObject * obj0 = 0 ; | |
1922 | char *kwnames[] = { | |
1923 | (char *) "self",(char *) "y", NULL | |
1924 | }; | |
1925 | ||
1926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:RealPoint_y_set",kwnames,&obj0,&arg2)) goto fail; | |
1927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1928 | if (arg1) (arg1)->y = arg2; | |
1929 | ||
1930 | Py_INCREF(Py_None); resultobj = Py_None; | |
1931 | return resultobj; | |
1932 | fail: | |
1933 | return NULL; | |
1934 | } | |
1935 | ||
1936 | ||
1937 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1938 | PyObject *resultobj; | |
1939 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1940 | double result; | |
1941 | PyObject * obj0 = 0 ; | |
1942 | char *kwnames[] = { | |
1943 | (char *) "self", NULL | |
1944 | }; | |
1945 | ||
1946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
1947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1948 | result = (double) ((arg1)->y); | |
1949 | ||
1950 | resultobj = PyFloat_FromDouble(result); | |
1951 | return resultobj; | |
1952 | fail: | |
1953 | return NULL; | |
1954 | } | |
1955 | ||
1956 | ||
1957 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1958 | PyObject *resultobj; | |
1959 | double arg1 = (double) 0.0 ; | |
1960 | double arg2 = (double) 0.0 ; | |
1961 | wxRealPoint *result; | |
1962 | char *kwnames[] = { | |
1963 | (char *) "x",(char *) "y", NULL | |
1964 | }; | |
1965 | ||
1966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|dd:new_RealPoint",kwnames,&arg1,&arg2)) goto fail; | |
1967 | { | |
1968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1969 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
1970 | ||
1971 | wxPyEndAllowThreads(__tstate); | |
1972 | if (PyErr_Occurred()) SWIG_fail; | |
1973 | } | |
1974 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRealPoint, 1); | |
1975 | return resultobj; | |
1976 | fail: | |
1977 | return NULL; | |
1978 | } | |
1979 | ||
1980 | ||
1981 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1982 | PyObject *resultobj; | |
1983 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1984 | PyObject * obj0 = 0 ; | |
1985 | char *kwnames[] = { | |
1986 | (char *) "self", NULL | |
1987 | }; | |
1988 | ||
1989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
1990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1991 | { | |
1992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1993 | delete arg1; | |
1994 | ||
1995 | wxPyEndAllowThreads(__tstate); | |
1996 | if (PyErr_Occurred()) SWIG_fail; | |
1997 | } | |
1998 | Py_INCREF(Py_None); resultobj = Py_None; | |
1999 | return resultobj; | |
2000 | fail: | |
2001 | return NULL; | |
2002 | } | |
2003 | ||
2004 | ||
423f194a | 2005 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2006 | PyObject *resultobj; |
2007 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2008 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2009 | bool result; |
d14a1e28 RD |
2010 | wxRealPoint temp2 ; |
2011 | PyObject * obj0 = 0 ; | |
2012 | PyObject * obj1 = 0 ; | |
2013 | char *kwnames[] = { | |
2014 | (char *) "self",(char *) "pt", NULL | |
2015 | }; | |
2016 | ||
423f194a | 2017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2019 | { | |
2020 | arg2 = &temp2; | |
2021 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2022 | } | |
2023 | { | |
2024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2025 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2026 | |
2027 | wxPyEndAllowThreads(__tstate); | |
2028 | if (PyErr_Occurred()) SWIG_fail; | |
2029 | } | |
423f194a | 2030 | resultobj = PyInt_FromLong((long)result); |
d14a1e28 RD |
2031 | return resultobj; |
2032 | fail: | |
2033 | return NULL; | |
2034 | } | |
2035 | ||
2036 | ||
423f194a | 2037 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2038 | PyObject *resultobj; |
2039 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2040 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2041 | bool result; |
d14a1e28 RD |
2042 | wxRealPoint temp2 ; |
2043 | PyObject * obj0 = 0 ; | |
2044 | PyObject * obj1 = 0 ; | |
2045 | char *kwnames[] = { | |
2046 | (char *) "self",(char *) "pt", NULL | |
2047 | }; | |
2048 | ||
423f194a | 2049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2051 | { | |
2052 | arg2 = &temp2; | |
2053 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2054 | } | |
2055 | { | |
2056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2057 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2058 | |
2059 | wxPyEndAllowThreads(__tstate); | |
2060 | if (PyErr_Occurred()) SWIG_fail; | |
2061 | } | |
423f194a | 2062 | resultobj = PyInt_FromLong((long)result); |
d14a1e28 RD |
2063 | return resultobj; |
2064 | fail: | |
2065 | return NULL; | |
2066 | } | |
2067 | ||
2068 | ||
423f194a | 2069 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2070 | PyObject *resultobj; |
2071 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2072 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2073 | wxRealPoint result; |
d14a1e28 RD |
2074 | wxRealPoint temp2 ; |
2075 | PyObject * obj0 = 0 ; | |
2076 | PyObject * obj1 = 0 ; | |
2077 | char *kwnames[] = { | |
2078 | (char *) "self",(char *) "pt", NULL | |
2079 | }; | |
2080 | ||
423f194a | 2081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2083 | { | |
2084 | arg2 = &temp2; | |
2085 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2086 | } | |
2087 | { | |
2088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2089 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2090 | |
2091 | wxPyEndAllowThreads(__tstate); | |
2092 | if (PyErr_Occurred()) SWIG_fail; | |
2093 | } | |
423f194a RD |
2094 | { |
2095 | wxRealPoint * resultptr; | |
2096 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2097 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2098 | } | |
d14a1e28 RD |
2099 | return resultobj; |
2100 | fail: | |
2101 | return NULL; | |
2102 | } | |
2103 | ||
2104 | ||
423f194a | 2105 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2106 | PyObject *resultobj; |
2107 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2108 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2109 | wxRealPoint result; |
d14a1e28 RD |
2110 | wxRealPoint temp2 ; |
2111 | PyObject * obj0 = 0 ; | |
2112 | PyObject * obj1 = 0 ; | |
2113 | char *kwnames[] = { | |
2114 | (char *) "self",(char *) "pt", NULL | |
2115 | }; | |
2116 | ||
423f194a | 2117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2119 | { | |
2120 | arg2 = &temp2; | |
2121 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2122 | } | |
2123 | { | |
2124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2125 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2126 | |
2127 | wxPyEndAllowThreads(__tstate); | |
2128 | if (PyErr_Occurred()) SWIG_fail; | |
2129 | } | |
423f194a RD |
2130 | { |
2131 | wxRealPoint * resultptr; | |
2132 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2133 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2134 | } | |
d14a1e28 RD |
2135 | return resultobj; |
2136 | fail: | |
2137 | return NULL; | |
2138 | } | |
2139 | ||
2140 | ||
2141 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2142 | PyObject *resultobj; | |
2143 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2144 | double arg2 ; | |
2145 | double arg3 ; | |
2146 | PyObject * obj0 = 0 ; | |
2147 | char *kwnames[] = { | |
2148 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2149 | }; | |
2150 | ||
2151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:RealPoint_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2153 | { | |
2154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2155 | wxRealPoint_Set(arg1,arg2,arg3); | |
2156 | ||
2157 | wxPyEndAllowThreads(__tstate); | |
2158 | if (PyErr_Occurred()) SWIG_fail; | |
2159 | } | |
2160 | Py_INCREF(Py_None); resultobj = Py_None; | |
2161 | return resultobj; | |
2162 | fail: | |
2163 | return NULL; | |
2164 | } | |
2165 | ||
2166 | ||
423f194a | 2167 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2168 | PyObject *resultobj; |
2169 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2170 | PyObject *result; | |
2171 | PyObject * obj0 = 0 ; | |
2172 | char *kwnames[] = { | |
2173 | (char *) "self", NULL | |
2174 | }; | |
2175 | ||
423f194a | 2176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2178 | { | |
2179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2180 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2181 | |
2182 | wxPyEndAllowThreads(__tstate); | |
2183 | if (PyErr_Occurred()) SWIG_fail; | |
2184 | } | |
2185 | resultobj = result; | |
2186 | return resultobj; | |
2187 | fail: | |
2188 | return NULL; | |
2189 | } | |
2190 | ||
2191 | ||
2192 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2193 | PyObject *obj; | |
2194 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2195 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2196 | Py_INCREF(obj); | |
2197 | return Py_BuildValue((char *)""); | |
2198 | } | |
2199 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2200 | PyObject *resultobj; | |
2201 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2202 | int arg2 ; | |
2203 | PyObject * obj0 = 0 ; | |
2204 | char *kwnames[] = { | |
2205 | (char *) "self",(char *) "x", NULL | |
2206 | }; | |
2207 | ||
2208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Point_x_set",kwnames,&obj0,&arg2)) goto fail; | |
2209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2210 | if (arg1) (arg1)->x = arg2; | |
2211 | ||
2212 | Py_INCREF(Py_None); resultobj = Py_None; | |
2213 | return resultobj; | |
2214 | fail: | |
2215 | return NULL; | |
2216 | } | |
2217 | ||
2218 | ||
2219 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2220 | PyObject *resultobj; | |
2221 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2222 | int result; | |
2223 | PyObject * obj0 = 0 ; | |
2224 | char *kwnames[] = { | |
2225 | (char *) "self", NULL | |
2226 | }; | |
2227 | ||
2228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2230 | result = (int) ((arg1)->x); | |
2231 | ||
2232 | resultobj = PyInt_FromLong((long)result); | |
2233 | return resultobj; | |
2234 | fail: | |
2235 | return NULL; | |
2236 | } | |
2237 | ||
2238 | ||
2239 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2240 | PyObject *resultobj; | |
2241 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2242 | int arg2 ; | |
2243 | PyObject * obj0 = 0 ; | |
2244 | char *kwnames[] = { | |
2245 | (char *) "self",(char *) "y", NULL | |
2246 | }; | |
2247 | ||
2248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Point_y_set",kwnames,&obj0,&arg2)) goto fail; | |
2249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2250 | if (arg1) (arg1)->y = arg2; | |
2251 | ||
2252 | Py_INCREF(Py_None); resultobj = Py_None; | |
2253 | return resultobj; | |
2254 | fail: | |
2255 | return NULL; | |
2256 | } | |
2257 | ||
2258 | ||
2259 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2260 | PyObject *resultobj; | |
2261 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2262 | int result; | |
2263 | PyObject * obj0 = 0 ; | |
2264 | char *kwnames[] = { | |
2265 | (char *) "self", NULL | |
2266 | }; | |
2267 | ||
2268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2270 | result = (int) ((arg1)->y); | |
2271 | ||
2272 | resultobj = PyInt_FromLong((long)result); | |
2273 | return resultobj; | |
2274 | fail: | |
2275 | return NULL; | |
2276 | } | |
2277 | ||
2278 | ||
2279 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2280 | PyObject *resultobj; | |
2281 | int arg1 = (int) 0 ; | |
2282 | int arg2 = (int) 0 ; | |
2283 | wxPoint *result; | |
2284 | char *kwnames[] = { | |
2285 | (char *) "x",(char *) "y", NULL | |
2286 | }; | |
2287 | ||
2288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Point",kwnames,&arg1,&arg2)) goto fail; | |
2289 | { | |
2290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2291 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2292 | ||
2293 | wxPyEndAllowThreads(__tstate); | |
2294 | if (PyErr_Occurred()) SWIG_fail; | |
2295 | } | |
2296 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 1); | |
2297 | return resultobj; | |
2298 | fail: | |
2299 | return NULL; | |
2300 | } | |
2301 | ||
2302 | ||
2303 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2304 | PyObject *resultobj; | |
2305 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2306 | PyObject * obj0 = 0 ; | |
2307 | char *kwnames[] = { | |
2308 | (char *) "self", NULL | |
2309 | }; | |
2310 | ||
2311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2313 | { | |
2314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2315 | delete arg1; | |
2316 | ||
2317 | wxPyEndAllowThreads(__tstate); | |
2318 | if (PyErr_Occurred()) SWIG_fail; | |
2319 | } | |
2320 | Py_INCREF(Py_None); resultobj = Py_None; | |
2321 | return resultobj; | |
2322 | fail: | |
2323 | return NULL; | |
2324 | } | |
2325 | ||
2326 | ||
2327 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2328 | PyObject *resultobj; | |
2329 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2330 | wxPoint *arg2 = 0 ; | |
2331 | bool result; | |
2332 | wxPoint temp2 ; | |
2333 | PyObject * obj0 = 0 ; | |
2334 | PyObject * obj1 = 0 ; | |
2335 | char *kwnames[] = { | |
423f194a | 2336 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2337 | }; |
2338 | ||
2339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2341 | { | |
2342 | arg2 = &temp2; | |
2343 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2344 | } | |
2345 | { | |
2346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2347 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
2348 | |
2349 | wxPyEndAllowThreads(__tstate); | |
2350 | if (PyErr_Occurred()) SWIG_fail; | |
2351 | } | |
2352 | resultobj = PyInt_FromLong((long)result); | |
2353 | return resultobj; | |
2354 | fail: | |
2355 | return NULL; | |
2356 | } | |
2357 | ||
2358 | ||
2359 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2360 | PyObject *resultobj; | |
2361 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2362 | wxPoint *arg2 = 0 ; | |
2363 | bool result; | |
2364 | wxPoint temp2 ; | |
2365 | PyObject * obj0 = 0 ; | |
2366 | PyObject * obj1 = 0 ; | |
2367 | char *kwnames[] = { | |
423f194a | 2368 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2369 | }; |
2370 | ||
2371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2373 | { | |
2374 | arg2 = &temp2; | |
2375 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2376 | } | |
2377 | { | |
2378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2379 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
2380 | |
2381 | wxPyEndAllowThreads(__tstate); | |
2382 | if (PyErr_Occurred()) SWIG_fail; | |
2383 | } | |
2384 | resultobj = PyInt_FromLong((long)result); | |
2385 | return resultobj; | |
2386 | fail: | |
2387 | return NULL; | |
2388 | } | |
2389 | ||
2390 | ||
2391 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2392 | PyObject *resultobj; | |
2393 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2394 | wxPoint *arg2 = 0 ; | |
2395 | wxPoint result; | |
2396 | wxPoint temp2 ; | |
2397 | PyObject * obj0 = 0 ; | |
2398 | PyObject * obj1 = 0 ; | |
2399 | char *kwnames[] = { | |
423f194a | 2400 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2401 | }; |
2402 | ||
2403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
2404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2405 | { | |
2406 | arg2 = &temp2; | |
2407 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2408 | } | |
2409 | { | |
2410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2411 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
2412 | |
2413 | wxPyEndAllowThreads(__tstate); | |
2414 | if (PyErr_Occurred()) SWIG_fail; | |
2415 | } | |
2416 | { | |
2417 | wxPoint * resultptr; | |
2418 | resultptr = new wxPoint((wxPoint &) result); | |
2419 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2420 | } | |
2421 | return resultobj; | |
2422 | fail: | |
2423 | return NULL; | |
2424 | } | |
2425 | ||
2426 | ||
2427 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2428 | PyObject *resultobj; | |
2429 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2430 | wxPoint *arg2 = 0 ; | |
2431 | wxPoint result; | |
2432 | wxPoint temp2 ; | |
2433 | PyObject * obj0 = 0 ; | |
2434 | PyObject * obj1 = 0 ; | |
2435 | char *kwnames[] = { | |
423f194a | 2436 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2437 | }; |
2438 | ||
2439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2441 | { | |
2442 | arg2 = &temp2; | |
2443 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2444 | } | |
2445 | { | |
2446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2447 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
2448 | |
2449 | wxPyEndAllowThreads(__tstate); | |
2450 | if (PyErr_Occurred()) SWIG_fail; | |
2451 | } | |
2452 | { | |
2453 | wxPoint * resultptr; | |
2454 | resultptr = new wxPoint((wxPoint &) result); | |
2455 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2456 | } | |
2457 | return resultobj; | |
2458 | fail: | |
2459 | return NULL; | |
2460 | } | |
2461 | ||
2462 | ||
2463 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2464 | PyObject *resultobj; | |
2465 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2466 | wxPoint *arg2 = 0 ; | |
2467 | wxPoint *result; | |
2468 | wxPoint temp2 ; | |
2469 | PyObject * obj0 = 0 ; | |
2470 | PyObject * obj1 = 0 ; | |
2471 | char *kwnames[] = { | |
423f194a | 2472 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2473 | }; |
2474 | ||
2475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2477 | { | |
2478 | arg2 = &temp2; | |
2479 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2480 | } | |
2481 | { | |
2482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2483 | { | |
2484 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
2485 | result = (wxPoint *) &_result_ref; | |
2486 | } | |
2487 | ||
2488 | wxPyEndAllowThreads(__tstate); | |
2489 | if (PyErr_Occurred()) SWIG_fail; | |
2490 | } | |
2491 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2492 | return resultobj; | |
2493 | fail: | |
2494 | return NULL; | |
2495 | } | |
2496 | ||
2497 | ||
2498 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2499 | PyObject *resultobj; | |
2500 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2501 | wxPoint *arg2 = 0 ; | |
2502 | wxPoint *result; | |
2503 | wxPoint temp2 ; | |
2504 | PyObject * obj0 = 0 ; | |
2505 | PyObject * obj1 = 0 ; | |
2506 | char *kwnames[] = { | |
423f194a | 2507 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2508 | }; |
2509 | ||
2510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2512 | { | |
2513 | arg2 = &temp2; | |
2514 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2515 | } | |
2516 | { | |
2517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2518 | { | |
2519 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
2520 | result = (wxPoint *) &_result_ref; | |
2521 | } | |
2522 | ||
2523 | wxPyEndAllowThreads(__tstate); | |
2524 | if (PyErr_Occurred()) SWIG_fail; | |
2525 | } | |
2526 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2527 | return resultobj; | |
2528 | fail: | |
2529 | return NULL; | |
2530 | } | |
2531 | ||
2532 | ||
2533 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2534 | PyObject *resultobj; | |
2535 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2536 | long arg2 ; | |
2537 | long arg3 ; | |
2538 | PyObject * obj0 = 0 ; | |
2539 | char *kwnames[] = { | |
2540 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2541 | }; | |
2542 | ||
2543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:Point_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2545 | { | |
2546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2547 | wxPoint_Set(arg1,arg2,arg3); | |
2548 | ||
2549 | wxPyEndAllowThreads(__tstate); | |
2550 | if (PyErr_Occurred()) SWIG_fail; | |
2551 | } | |
2552 | Py_INCREF(Py_None); resultobj = Py_None; | |
2553 | return resultobj; | |
2554 | fail: | |
2555 | return NULL; | |
2556 | } | |
2557 | ||
2558 | ||
423f194a | 2559 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2560 | PyObject *resultobj; |
2561 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2562 | PyObject *result; | |
2563 | PyObject * obj0 = 0 ; | |
2564 | char *kwnames[] = { | |
2565 | (char *) "self", NULL | |
2566 | }; | |
2567 | ||
423f194a | 2568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2570 | { | |
2571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2572 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
2573 | |
2574 | wxPyEndAllowThreads(__tstate); | |
2575 | if (PyErr_Occurred()) SWIG_fail; | |
2576 | } | |
2577 | resultobj = result; | |
2578 | return resultobj; | |
2579 | fail: | |
2580 | return NULL; | |
2581 | } | |
2582 | ||
2583 | ||
2584 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
2585 | PyObject *obj; | |
2586 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2587 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
2588 | Py_INCREF(obj); | |
2589 | return Py_BuildValue((char *)""); | |
2590 | } | |
2591 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2592 | PyObject *resultobj; | |
2593 | int arg1 = (int) 0 ; | |
2594 | int arg2 = (int) 0 ; | |
2595 | int arg3 = (int) 0 ; | |
2596 | int arg4 = (int) 0 ; | |
2597 | wxRect *result; | |
2598 | char *kwnames[] = { | |
2599 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
2600 | }; | |
2601 | ||
2602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Rect",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
2603 | { | |
2604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2605 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
2606 | ||
2607 | wxPyEndAllowThreads(__tstate); | |
2608 | if (PyErr_Occurred()) SWIG_fail; | |
2609 | } | |
2610 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2611 | return resultobj; | |
2612 | fail: | |
2613 | return NULL; | |
2614 | } | |
2615 | ||
2616 | ||
2617 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2618 | PyObject *resultobj; | |
2619 | wxPoint *arg1 = 0 ; | |
2620 | wxPoint *arg2 = 0 ; | |
2621 | wxRect *result; | |
2622 | wxPoint temp1 ; | |
2623 | wxPoint temp2 ; | |
2624 | PyObject * obj0 = 0 ; | |
2625 | PyObject * obj1 = 0 ; | |
2626 | char *kwnames[] = { | |
2627 | (char *) "topLeft",(char *) "bottomRight", NULL | |
2628 | }; | |
2629 | ||
2630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
2631 | { | |
2632 | arg1 = &temp1; | |
2633 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2634 | } | |
2635 | { | |
2636 | arg2 = &temp2; | |
2637 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2638 | } | |
2639 | { | |
2640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2641 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
2642 | ||
2643 | wxPyEndAllowThreads(__tstate); | |
2644 | if (PyErr_Occurred()) SWIG_fail; | |
2645 | } | |
2646 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2647 | return resultobj; | |
2648 | fail: | |
2649 | return NULL; | |
2650 | } | |
2651 | ||
2652 | ||
2653 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2654 | PyObject *resultobj; | |
2655 | wxPoint *arg1 = 0 ; | |
2656 | wxSize *arg2 = 0 ; | |
2657 | wxRect *result; | |
2658 | wxPoint temp1 ; | |
2659 | wxSize temp2 ; | |
2660 | PyObject * obj0 = 0 ; | |
2661 | PyObject * obj1 = 0 ; | |
2662 | char *kwnames[] = { | |
2663 | (char *) "pos",(char *) "size", NULL | |
2664 | }; | |
2665 | ||
2666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
2667 | { | |
2668 | arg1 = &temp1; | |
2669 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2670 | } | |
2671 | { | |
2672 | arg2 = &temp2; | |
2673 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2674 | } | |
2675 | { | |
2676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2677 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
2678 | ||
2679 | wxPyEndAllowThreads(__tstate); | |
2680 | if (PyErr_Occurred()) SWIG_fail; | |
2681 | } | |
2682 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2683 | return resultobj; | |
2684 | fail: | |
2685 | return NULL; | |
2686 | } | |
2687 | ||
2688 | ||
2689 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2690 | PyObject *resultobj; | |
2691 | wxRect *arg1 = (wxRect *) 0 ; | |
2692 | PyObject * obj0 = 0 ; | |
2693 | char *kwnames[] = { | |
2694 | (char *) "self", NULL | |
2695 | }; | |
2696 | ||
2697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
2698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2699 | { | |
2700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2701 | delete arg1; | |
2702 | ||
2703 | wxPyEndAllowThreads(__tstate); | |
2704 | if (PyErr_Occurred()) SWIG_fail; | |
2705 | } | |
2706 | Py_INCREF(Py_None); resultobj = Py_None; | |
2707 | return resultobj; | |
2708 | fail: | |
2709 | return NULL; | |
2710 | } | |
2711 | ||
2712 | ||
2713 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2714 | PyObject *resultobj; | |
2715 | wxRect *arg1 = (wxRect *) 0 ; | |
2716 | int result; | |
2717 | PyObject * obj0 = 0 ; | |
2718 | char *kwnames[] = { | |
2719 | (char *) "self", NULL | |
2720 | }; | |
2721 | ||
2722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
2723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2724 | { | |
2725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2726 | result = (int)((wxRect const *)arg1)->GetX(); | |
2727 | ||
2728 | wxPyEndAllowThreads(__tstate); | |
2729 | if (PyErr_Occurred()) SWIG_fail; | |
2730 | } | |
2731 | resultobj = PyInt_FromLong((long)result); | |
2732 | return resultobj; | |
2733 | fail: | |
2734 | return NULL; | |
2735 | } | |
2736 | ||
2737 | ||
2738 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2739 | PyObject *resultobj; | |
2740 | wxRect *arg1 = (wxRect *) 0 ; | |
2741 | int arg2 ; | |
2742 | PyObject * obj0 = 0 ; | |
2743 | char *kwnames[] = { | |
2744 | (char *) "self",(char *) "x", NULL | |
2745 | }; | |
2746 | ||
2747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetX",kwnames,&obj0,&arg2)) goto fail; | |
2748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2749 | { | |
2750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2751 | (arg1)->SetX(arg2); | |
2752 | ||
2753 | wxPyEndAllowThreads(__tstate); | |
2754 | if (PyErr_Occurred()) SWIG_fail; | |
2755 | } | |
2756 | Py_INCREF(Py_None); resultobj = Py_None; | |
2757 | return resultobj; | |
2758 | fail: | |
2759 | return NULL; | |
2760 | } | |
2761 | ||
2762 | ||
2763 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2764 | PyObject *resultobj; | |
2765 | wxRect *arg1 = (wxRect *) 0 ; | |
2766 | int result; | |
2767 | PyObject * obj0 = 0 ; | |
2768 | char *kwnames[] = { | |
2769 | (char *) "self", NULL | |
2770 | }; | |
2771 | ||
2772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
2773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2774 | { | |
2775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2776 | result = (int)(arg1)->GetY(); | |
2777 | ||
2778 | wxPyEndAllowThreads(__tstate); | |
2779 | if (PyErr_Occurred()) SWIG_fail; | |
2780 | } | |
2781 | resultobj = PyInt_FromLong((long)result); | |
2782 | return resultobj; | |
2783 | fail: | |
2784 | return NULL; | |
2785 | } | |
2786 | ||
2787 | ||
2788 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2789 | PyObject *resultobj; | |
2790 | wxRect *arg1 = (wxRect *) 0 ; | |
2791 | int arg2 ; | |
2792 | PyObject * obj0 = 0 ; | |
2793 | char *kwnames[] = { | |
2794 | (char *) "self",(char *) "y", NULL | |
2795 | }; | |
2796 | ||
2797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetY",kwnames,&obj0,&arg2)) goto fail; | |
2798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2799 | { | |
2800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2801 | (arg1)->SetY(arg2); | |
2802 | ||
2803 | wxPyEndAllowThreads(__tstate); | |
2804 | if (PyErr_Occurred()) SWIG_fail; | |
2805 | } | |
2806 | Py_INCREF(Py_None); resultobj = Py_None; | |
2807 | return resultobj; | |
2808 | fail: | |
2809 | return NULL; | |
2810 | } | |
2811 | ||
2812 | ||
2813 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2814 | PyObject *resultobj; | |
2815 | wxRect *arg1 = (wxRect *) 0 ; | |
2816 | int result; | |
2817 | PyObject * obj0 = 0 ; | |
2818 | char *kwnames[] = { | |
2819 | (char *) "self", NULL | |
2820 | }; | |
2821 | ||
2822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
2823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2824 | { | |
2825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2826 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
2827 | ||
2828 | wxPyEndAllowThreads(__tstate); | |
2829 | if (PyErr_Occurred()) SWIG_fail; | |
2830 | } | |
2831 | resultobj = PyInt_FromLong((long)result); | |
2832 | return resultobj; | |
2833 | fail: | |
2834 | return NULL; | |
2835 | } | |
2836 | ||
2837 | ||
2838 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2839 | PyObject *resultobj; | |
2840 | wxRect *arg1 = (wxRect *) 0 ; | |
2841 | int arg2 ; | |
2842 | PyObject * obj0 = 0 ; | |
2843 | char *kwnames[] = { | |
2844 | (char *) "self",(char *) "w", NULL | |
2845 | }; | |
2846 | ||
2847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
2848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2849 | { | |
2850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2851 | (arg1)->SetWidth(arg2); | |
2852 | ||
2853 | wxPyEndAllowThreads(__tstate); | |
2854 | if (PyErr_Occurred()) SWIG_fail; | |
2855 | } | |
2856 | Py_INCREF(Py_None); resultobj = Py_None; | |
2857 | return resultobj; | |
2858 | fail: | |
2859 | return NULL; | |
2860 | } | |
2861 | ||
2862 | ||
2863 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2864 | PyObject *resultobj; | |
2865 | wxRect *arg1 = (wxRect *) 0 ; | |
2866 | int result; | |
2867 | PyObject * obj0 = 0 ; | |
2868 | char *kwnames[] = { | |
2869 | (char *) "self", NULL | |
2870 | }; | |
2871 | ||
2872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
2873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2874 | { | |
2875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2876 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
2877 | ||
2878 | wxPyEndAllowThreads(__tstate); | |
2879 | if (PyErr_Occurred()) SWIG_fail; | |
2880 | } | |
2881 | resultobj = PyInt_FromLong((long)result); | |
2882 | return resultobj; | |
2883 | fail: | |
2884 | return NULL; | |
2885 | } | |
2886 | ||
2887 | ||
2888 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2889 | PyObject *resultobj; | |
2890 | wxRect *arg1 = (wxRect *) 0 ; | |
2891 | int arg2 ; | |
2892 | PyObject * obj0 = 0 ; | |
2893 | char *kwnames[] = { | |
2894 | (char *) "self",(char *) "h", NULL | |
2895 | }; | |
2896 | ||
2897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
2898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2899 | { | |
2900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2901 | (arg1)->SetHeight(arg2); | |
2902 | ||
2903 | wxPyEndAllowThreads(__tstate); | |
2904 | if (PyErr_Occurred()) SWIG_fail; | |
2905 | } | |
2906 | Py_INCREF(Py_None); resultobj = Py_None; | |
2907 | return resultobj; | |
2908 | fail: | |
2909 | return NULL; | |
2910 | } | |
2911 | ||
2912 | ||
2913 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2914 | PyObject *resultobj; | |
2915 | wxRect *arg1 = (wxRect *) 0 ; | |
2916 | wxPoint result; | |
2917 | PyObject * obj0 = 0 ; | |
2918 | char *kwnames[] = { | |
2919 | (char *) "self", NULL | |
2920 | }; | |
2921 | ||
2922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
2923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2924 | { | |
2925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2926 | result = ((wxRect const *)arg1)->GetPosition(); | |
2927 | ||
2928 | wxPyEndAllowThreads(__tstate); | |
2929 | if (PyErr_Occurred()) SWIG_fail; | |
2930 | } | |
2931 | { | |
2932 | wxPoint * resultptr; | |
2933 | resultptr = new wxPoint((wxPoint &) result); | |
2934 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2935 | } | |
2936 | return resultobj; | |
2937 | fail: | |
2938 | return NULL; | |
2939 | } | |
2940 | ||
2941 | ||
2942 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2943 | PyObject *resultobj; | |
2944 | wxRect *arg1 = (wxRect *) 0 ; | |
2945 | wxPoint *arg2 = 0 ; | |
2946 | wxPoint temp2 ; | |
2947 | PyObject * obj0 = 0 ; | |
2948 | PyObject * obj1 = 0 ; | |
2949 | char *kwnames[] = { | |
2950 | (char *) "self",(char *) "p", NULL | |
2951 | }; | |
2952 | ||
2953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2955 | { | |
2956 | arg2 = &temp2; | |
2957 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2958 | } | |
2959 | { | |
2960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2961 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
2962 | ||
2963 | wxPyEndAllowThreads(__tstate); | |
2964 | if (PyErr_Occurred()) SWIG_fail; | |
2965 | } | |
2966 | Py_INCREF(Py_None); resultobj = Py_None; | |
2967 | return resultobj; | |
2968 | fail: | |
2969 | return NULL; | |
2970 | } | |
2971 | ||
2972 | ||
2973 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2974 | PyObject *resultobj; | |
2975 | wxRect *arg1 = (wxRect *) 0 ; | |
2976 | wxSize result; | |
2977 | PyObject * obj0 = 0 ; | |
2978 | char *kwnames[] = { | |
2979 | (char *) "self", NULL | |
2980 | }; | |
2981 | ||
2982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
2983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2984 | { | |
2985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2986 | result = ((wxRect const *)arg1)->GetSize(); | |
2987 | ||
2988 | wxPyEndAllowThreads(__tstate); | |
2989 | if (PyErr_Occurred()) SWIG_fail; | |
2990 | } | |
2991 | { | |
2992 | wxSize * resultptr; | |
2993 | resultptr = new wxSize((wxSize &) result); | |
2994 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
2995 | } | |
2996 | return resultobj; | |
2997 | fail: | |
2998 | return NULL; | |
2999 | } | |
3000 | ||
3001 | ||
3002 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3003 | PyObject *resultobj; | |
3004 | wxRect *arg1 = (wxRect *) 0 ; | |
3005 | wxSize *arg2 = 0 ; | |
3006 | wxSize temp2 ; | |
3007 | PyObject * obj0 = 0 ; | |
3008 | PyObject * obj1 = 0 ; | |
3009 | char *kwnames[] = { | |
3010 | (char *) "self",(char *) "s", NULL | |
3011 | }; | |
3012 | ||
3013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3015 | { | |
3016 | arg2 = &temp2; | |
3017 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3018 | } | |
3019 | { | |
3020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3021 | (arg1)->SetSize((wxSize const &)*arg2); | |
3022 | ||
3023 | wxPyEndAllowThreads(__tstate); | |
3024 | if (PyErr_Occurred()) SWIG_fail; | |
3025 | } | |
3026 | Py_INCREF(Py_None); resultobj = Py_None; | |
3027 | return resultobj; | |
3028 | fail: | |
3029 | return NULL; | |
3030 | } | |
3031 | ||
3032 | ||
9fd4be55 RD |
3033 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3034 | PyObject *resultobj; | |
3035 | wxRect *arg1 = (wxRect *) 0 ; | |
3036 | wxPoint result; | |
3037 | PyObject * obj0 = 0 ; | |
3038 | char *kwnames[] = { | |
3039 | (char *) "self", NULL | |
3040 | }; | |
3041 | ||
3042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
3043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3044 | { | |
3045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3046 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3047 | ||
3048 | wxPyEndAllowThreads(__tstate); | |
3049 | if (PyErr_Occurred()) SWIG_fail; | |
3050 | } | |
3051 | { | |
3052 | wxPoint * resultptr; | |
3053 | resultptr = new wxPoint((wxPoint &) result); | |
3054 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3055 | } | |
3056 | return resultobj; | |
3057 | fail: | |
3058 | return NULL; | |
3059 | } | |
3060 | ||
3061 | ||
3062 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3063 | PyObject *resultobj; | |
3064 | wxRect *arg1 = (wxRect *) 0 ; | |
3065 | wxPoint *arg2 = 0 ; | |
3066 | wxPoint temp2 ; | |
3067 | PyObject * obj0 = 0 ; | |
3068 | PyObject * obj1 = 0 ; | |
3069 | char *kwnames[] = { | |
3070 | (char *) "self",(char *) "p", NULL | |
3071 | }; | |
3072 | ||
3073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
3074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3075 | { | |
3076 | arg2 = &temp2; | |
3077 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3078 | } | |
3079 | { | |
3080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3081 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3082 | ||
3083 | wxPyEndAllowThreads(__tstate); | |
3084 | if (PyErr_Occurred()) SWIG_fail; | |
3085 | } | |
3086 | Py_INCREF(Py_None); resultobj = Py_None; | |
3087 | return resultobj; | |
3088 | fail: | |
3089 | return NULL; | |
3090 | } | |
3091 | ||
3092 | ||
3093 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3094 | PyObject *resultobj; | |
3095 | wxRect *arg1 = (wxRect *) 0 ; | |
3096 | wxPoint result; | |
3097 | PyObject * obj0 = 0 ; | |
3098 | char *kwnames[] = { | |
3099 | (char *) "self", NULL | |
3100 | }; | |
3101 | ||
3102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
3103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3104 | { | |
3105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3106 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3107 | ||
3108 | wxPyEndAllowThreads(__tstate); | |
3109 | if (PyErr_Occurred()) SWIG_fail; | |
3110 | } | |
3111 | { | |
3112 | wxPoint * resultptr; | |
3113 | resultptr = new wxPoint((wxPoint &) result); | |
3114 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3115 | } | |
3116 | return resultobj; | |
3117 | fail: | |
3118 | return NULL; | |
3119 | } | |
3120 | ||
3121 | ||
3122 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3123 | PyObject *resultobj; | |
3124 | wxRect *arg1 = (wxRect *) 0 ; | |
3125 | wxPoint *arg2 = 0 ; | |
3126 | wxPoint temp2 ; | |
3127 | PyObject * obj0 = 0 ; | |
3128 | PyObject * obj1 = 0 ; | |
3129 | char *kwnames[] = { | |
3130 | (char *) "self",(char *) "p", NULL | |
3131 | }; | |
3132 | ||
3133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
3134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3135 | { | |
3136 | arg2 = &temp2; | |
3137 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3138 | } | |
3139 | { | |
3140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3141 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3142 | ||
3143 | wxPyEndAllowThreads(__tstate); | |
3144 | if (PyErr_Occurred()) SWIG_fail; | |
3145 | } | |
3146 | Py_INCREF(Py_None); resultobj = Py_None; | |
3147 | return resultobj; | |
3148 | fail: | |
3149 | return NULL; | |
3150 | } | |
3151 | ||
3152 | ||
d14a1e28 RD |
3153 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3154 | PyObject *resultobj; | |
3155 | wxRect *arg1 = (wxRect *) 0 ; | |
3156 | int result; | |
3157 | PyObject * obj0 = 0 ; | |
3158 | char *kwnames[] = { | |
3159 | (char *) "self", NULL | |
3160 | }; | |
3161 | ||
3162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
3163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3164 | { | |
3165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3166 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3167 | ||
3168 | wxPyEndAllowThreads(__tstate); | |
3169 | if (PyErr_Occurred()) SWIG_fail; | |
3170 | } | |
3171 | resultobj = PyInt_FromLong((long)result); | |
3172 | return resultobj; | |
3173 | fail: | |
3174 | return NULL; | |
3175 | } | |
3176 | ||
3177 | ||
3178 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3179 | PyObject *resultobj; | |
3180 | wxRect *arg1 = (wxRect *) 0 ; | |
3181 | int result; | |
3182 | PyObject * obj0 = 0 ; | |
3183 | char *kwnames[] = { | |
3184 | (char *) "self", NULL | |
3185 | }; | |
3186 | ||
3187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
3188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3189 | { | |
3190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3191 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3192 | ||
3193 | wxPyEndAllowThreads(__tstate); | |
3194 | if (PyErr_Occurred()) SWIG_fail; | |
3195 | } | |
3196 | resultobj = PyInt_FromLong((long)result); | |
3197 | return resultobj; | |
3198 | fail: | |
3199 | return NULL; | |
3200 | } | |
3201 | ||
3202 | ||
3203 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3204 | PyObject *resultobj; | |
3205 | wxRect *arg1 = (wxRect *) 0 ; | |
3206 | int result; | |
3207 | PyObject * obj0 = 0 ; | |
3208 | char *kwnames[] = { | |
3209 | (char *) "self", NULL | |
3210 | }; | |
3211 | ||
3212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
3213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3214 | { | |
3215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3216 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3217 | ||
3218 | wxPyEndAllowThreads(__tstate); | |
3219 | if (PyErr_Occurred()) SWIG_fail; | |
3220 | } | |
3221 | resultobj = PyInt_FromLong((long)result); | |
3222 | return resultobj; | |
3223 | fail: | |
3224 | return NULL; | |
3225 | } | |
3226 | ||
3227 | ||
3228 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3229 | PyObject *resultobj; | |
3230 | wxRect *arg1 = (wxRect *) 0 ; | |
3231 | int result; | |
3232 | PyObject * obj0 = 0 ; | |
3233 | char *kwnames[] = { | |
3234 | (char *) "self", NULL | |
3235 | }; | |
3236 | ||
3237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
3238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3239 | { | |
3240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3241 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3242 | ||
3243 | wxPyEndAllowThreads(__tstate); | |
3244 | if (PyErr_Occurred()) SWIG_fail; | |
3245 | } | |
3246 | resultobj = PyInt_FromLong((long)result); | |
3247 | return resultobj; | |
3248 | fail: | |
3249 | return NULL; | |
3250 | } | |
3251 | ||
3252 | ||
3253 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3254 | PyObject *resultobj; | |
3255 | wxRect *arg1 = (wxRect *) 0 ; | |
3256 | int arg2 ; | |
3257 | PyObject * obj0 = 0 ; | |
3258 | char *kwnames[] = { | |
3259 | (char *) "self",(char *) "left", NULL | |
3260 | }; | |
3261 | ||
3262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetLeft",kwnames,&obj0,&arg2)) goto fail; | |
3263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3264 | { | |
3265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3266 | (arg1)->SetLeft(arg2); | |
3267 | ||
3268 | wxPyEndAllowThreads(__tstate); | |
3269 | if (PyErr_Occurred()) SWIG_fail; | |
3270 | } | |
3271 | Py_INCREF(Py_None); resultobj = Py_None; | |
3272 | return resultobj; | |
3273 | fail: | |
3274 | return NULL; | |
3275 | } | |
3276 | ||
3277 | ||
3278 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3279 | PyObject *resultobj; | |
3280 | wxRect *arg1 = (wxRect *) 0 ; | |
3281 | int arg2 ; | |
3282 | PyObject * obj0 = 0 ; | |
3283 | char *kwnames[] = { | |
3284 | (char *) "self",(char *) "right", NULL | |
3285 | }; | |
3286 | ||
3287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetRight",kwnames,&obj0,&arg2)) goto fail; | |
3288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3289 | { | |
3290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3291 | (arg1)->SetRight(arg2); | |
3292 | ||
3293 | wxPyEndAllowThreads(__tstate); | |
3294 | if (PyErr_Occurred()) SWIG_fail; | |
3295 | } | |
3296 | Py_INCREF(Py_None); resultobj = Py_None; | |
3297 | return resultobj; | |
3298 | fail: | |
3299 | return NULL; | |
3300 | } | |
3301 | ||
3302 | ||
3303 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3304 | PyObject *resultobj; | |
3305 | wxRect *arg1 = (wxRect *) 0 ; | |
3306 | int arg2 ; | |
3307 | PyObject * obj0 = 0 ; | |
3308 | char *kwnames[] = { | |
3309 | (char *) "self",(char *) "top", NULL | |
3310 | }; | |
3311 | ||
3312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetTop",kwnames,&obj0,&arg2)) goto fail; | |
3313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3314 | { | |
3315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3316 | (arg1)->SetTop(arg2); | |
3317 | ||
3318 | wxPyEndAllowThreads(__tstate); | |
3319 | if (PyErr_Occurred()) SWIG_fail; | |
3320 | } | |
3321 | Py_INCREF(Py_None); resultobj = Py_None; | |
3322 | return resultobj; | |
3323 | fail: | |
3324 | return NULL; | |
3325 | } | |
3326 | ||
3327 | ||
3328 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3329 | PyObject *resultobj; | |
3330 | wxRect *arg1 = (wxRect *) 0 ; | |
3331 | int arg2 ; | |
3332 | PyObject * obj0 = 0 ; | |
3333 | char *kwnames[] = { | |
3334 | (char *) "self",(char *) "bottom", NULL | |
3335 | }; | |
3336 | ||
3337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetBottom",kwnames,&obj0,&arg2)) goto fail; | |
3338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3339 | { | |
3340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3341 | (arg1)->SetBottom(arg2); | |
3342 | ||
3343 | wxPyEndAllowThreads(__tstate); | |
3344 | if (PyErr_Occurred()) SWIG_fail; | |
3345 | } | |
3346 | Py_INCREF(Py_None); resultobj = Py_None; | |
3347 | return resultobj; | |
3348 | fail: | |
3349 | return NULL; | |
3350 | } | |
3351 | ||
3352 | ||
3353 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3354 | PyObject *resultobj; | |
3355 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3356 | int arg2 ; |
3357 | int arg3 ; | |
d14a1e28 RD |
3358 | wxRect *result; |
3359 | PyObject * obj0 = 0 ; | |
3360 | char *kwnames[] = { | |
3361 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3362 | }; | |
3363 | ||
3364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_Inflate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3366 | { | |
3367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3368 | { | |
3369 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
3370 | result = (wxRect *) &_result_ref; | |
3371 | } | |
3372 | ||
3373 | wxPyEndAllowThreads(__tstate); | |
3374 | if (PyErr_Occurred()) SWIG_fail; | |
3375 | } | |
3376 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3377 | return resultobj; | |
3378 | fail: | |
3379 | return NULL; | |
3380 | } | |
3381 | ||
3382 | ||
3383 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3384 | PyObject *resultobj; | |
3385 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3386 | int arg2 ; |
3387 | int arg3 ; | |
d14a1e28 RD |
3388 | wxRect *result; |
3389 | PyObject * obj0 = 0 ; | |
3390 | char *kwnames[] = { | |
3391 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3392 | }; | |
3393 | ||
3394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_Deflate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3396 | { | |
3397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3398 | { | |
3399 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
3400 | result = (wxRect *) &_result_ref; | |
3401 | } | |
3402 | ||
3403 | wxPyEndAllowThreads(__tstate); | |
3404 | if (PyErr_Occurred()) SWIG_fail; | |
3405 | } | |
3406 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3407 | return resultobj; | |
3408 | fail: | |
3409 | return NULL; | |
3410 | } | |
3411 | ||
3412 | ||
3413 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3414 | PyObject *resultobj; | |
3415 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3416 | int arg2 ; |
3417 | int arg3 ; | |
d14a1e28 RD |
3418 | PyObject * obj0 = 0 ; |
3419 | char *kwnames[] = { | |
3420 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3421 | }; | |
3422 | ||
3423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_OffsetXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3425 | { | |
3426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3427 | (arg1)->Offset(arg2,arg3); | |
3428 | ||
3429 | wxPyEndAllowThreads(__tstate); | |
3430 | if (PyErr_Occurred()) SWIG_fail; | |
3431 | } | |
3432 | Py_INCREF(Py_None); resultobj = Py_None; | |
3433 | return resultobj; | |
3434 | fail: | |
3435 | return NULL; | |
3436 | } | |
3437 | ||
3438 | ||
3439 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3440 | PyObject *resultobj; | |
3441 | wxRect *arg1 = (wxRect *) 0 ; | |
3442 | wxPoint *arg2 = 0 ; | |
3443 | wxPoint temp2 ; | |
3444 | PyObject * obj0 = 0 ; | |
3445 | PyObject * obj1 = 0 ; | |
3446 | char *kwnames[] = { | |
3447 | (char *) "self",(char *) "pt", NULL | |
3448 | }; | |
3449 | ||
3450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
3451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3452 | { | |
3453 | arg2 = &temp2; | |
3454 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3455 | } | |
3456 | { | |
3457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3458 | (arg1)->Offset((wxPoint const &)*arg2); | |
3459 | ||
3460 | wxPyEndAllowThreads(__tstate); | |
3461 | if (PyErr_Occurred()) SWIG_fail; | |
3462 | } | |
3463 | Py_INCREF(Py_None); resultobj = Py_None; | |
3464 | return resultobj; | |
3465 | fail: | |
3466 | return NULL; | |
3467 | } | |
3468 | ||
3469 | ||
3470 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3471 | PyObject *resultobj; | |
3472 | wxRect *arg1 = (wxRect *) 0 ; | |
3473 | wxRect *arg2 = 0 ; | |
3474 | wxRect *result; | |
3475 | wxRect temp2 ; | |
3476 | PyObject * obj0 = 0 ; | |
3477 | PyObject * obj1 = 0 ; | |
3478 | char *kwnames[] = { | |
3479 | (char *) "self",(char *) "rect", NULL | |
3480 | }; | |
3481 | ||
3482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
3483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3484 | { | |
3485 | arg2 = &temp2; | |
3486 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3487 | } | |
3488 | { | |
3489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3490 | { | |
3491 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
3492 | result = (wxRect *) &_result_ref; | |
3493 | } | |
3494 | ||
3495 | wxPyEndAllowThreads(__tstate); | |
3496 | if (PyErr_Occurred()) SWIG_fail; | |
3497 | } | |
3498 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3499 | return resultobj; | |
3500 | fail: | |
3501 | return NULL; | |
3502 | } | |
3503 | ||
3504 | ||
3505 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3506 | PyObject *resultobj; | |
3507 | wxRect *arg1 = (wxRect *) 0 ; | |
3508 | wxRect *arg2 = 0 ; | |
3509 | wxRect result; | |
3510 | wxRect temp2 ; | |
3511 | PyObject * obj0 = 0 ; | |
3512 | PyObject * obj1 = 0 ; | |
3513 | char *kwnames[] = { | |
3514 | (char *) "self",(char *) "rect", NULL | |
3515 | }; | |
3516 | ||
3517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
3518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3519 | { | |
3520 | arg2 = &temp2; | |
3521 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3522 | } | |
3523 | { | |
3524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3525 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
3526 | ||
3527 | wxPyEndAllowThreads(__tstate); | |
3528 | if (PyErr_Occurred()) SWIG_fail; | |
3529 | } | |
3530 | { | |
3531 | wxRect * resultptr; | |
3532 | resultptr = new wxRect((wxRect &) result); | |
3533 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3534 | } | |
3535 | return resultobj; | |
3536 | fail: | |
3537 | return NULL; | |
3538 | } | |
3539 | ||
3540 | ||
3541 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3542 | PyObject *resultobj; | |
3543 | wxRect *arg1 = (wxRect *) 0 ; | |
3544 | wxRect *arg2 = 0 ; | |
3545 | wxRect *result; | |
3546 | wxRect temp2 ; | |
3547 | PyObject * obj0 = 0 ; | |
3548 | PyObject * obj1 = 0 ; | |
3549 | char *kwnames[] = { | |
3550 | (char *) "self",(char *) "rect", NULL | |
3551 | }; | |
3552 | ||
3553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3555 | { | |
3556 | arg2 = &temp2; | |
3557 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3558 | } | |
3559 | { | |
3560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3561 | { | |
3562 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
3563 | result = (wxRect *) &_result_ref; | |
3564 | } | |
3565 | ||
3566 | wxPyEndAllowThreads(__tstate); | |
3567 | if (PyErr_Occurred()) SWIG_fail; | |
3568 | } | |
3569 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3570 | return resultobj; | |
3571 | fail: | |
3572 | return NULL; | |
3573 | } | |
3574 | ||
3575 | ||
3576 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3577 | PyObject *resultobj; | |
3578 | wxRect *arg1 = (wxRect *) 0 ; | |
3579 | wxRect *arg2 = 0 ; | |
3580 | bool result; | |
3581 | wxRect temp2 ; | |
3582 | PyObject * obj0 = 0 ; | |
3583 | PyObject * obj1 = 0 ; | |
3584 | char *kwnames[] = { | |
3585 | (char *) "self",(char *) "rect", NULL | |
3586 | }; | |
3587 | ||
3588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3590 | { | |
3591 | arg2 = &temp2; | |
3592 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3593 | } | |
3594 | { | |
3595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3596 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
3597 | ||
3598 | wxPyEndAllowThreads(__tstate); | |
3599 | if (PyErr_Occurred()) SWIG_fail; | |
3600 | } | |
3601 | resultobj = PyInt_FromLong((long)result); | |
3602 | return resultobj; | |
3603 | fail: | |
3604 | return NULL; | |
3605 | } | |
3606 | ||
3607 | ||
3608 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3609 | PyObject *resultobj; | |
3610 | wxRect *arg1 = (wxRect *) 0 ; | |
3611 | wxRect *arg2 = 0 ; | |
3612 | bool result; | |
3613 | wxRect temp2 ; | |
3614 | PyObject * obj0 = 0 ; | |
3615 | PyObject * obj1 = 0 ; | |
3616 | char *kwnames[] = { | |
3617 | (char *) "self",(char *) "rect", NULL | |
3618 | }; | |
3619 | ||
3620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3622 | { | |
3623 | arg2 = &temp2; | |
3624 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3625 | } | |
3626 | { | |
3627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3628 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
3629 | ||
3630 | wxPyEndAllowThreads(__tstate); | |
3631 | if (PyErr_Occurred()) SWIG_fail; | |
3632 | } | |
3633 | resultobj = PyInt_FromLong((long)result); | |
3634 | return resultobj; | |
3635 | fail: | |
3636 | return NULL; | |
3637 | } | |
3638 | ||
3639 | ||
3640 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3641 | PyObject *resultobj; | |
3642 | wxRect *arg1 = (wxRect *) 0 ; | |
3643 | int arg2 ; | |
3644 | int arg3 ; | |
3645 | bool result; | |
3646 | PyObject * obj0 = 0 ; | |
3647 | char *kwnames[] = { | |
3648 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3649 | }; | |
3650 | ||
3651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_InsideXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3653 | { | |
3654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3655 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
3656 | ||
3657 | wxPyEndAllowThreads(__tstate); | |
3658 | if (PyErr_Occurred()) SWIG_fail; | |
3659 | } | |
3660 | resultobj = PyInt_FromLong((long)result); | |
3661 | return resultobj; | |
3662 | fail: | |
3663 | return NULL; | |
3664 | } | |
3665 | ||
3666 | ||
3667 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3668 | PyObject *resultobj; | |
3669 | wxRect *arg1 = (wxRect *) 0 ; | |
3670 | wxPoint *arg2 = 0 ; | |
3671 | bool result; | |
3672 | wxPoint temp2 ; | |
3673 | PyObject * obj0 = 0 ; | |
3674 | PyObject * obj1 = 0 ; | |
3675 | char *kwnames[] = { | |
3676 | (char *) "self",(char *) "pt", NULL | |
3677 | }; | |
3678 | ||
3679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
3680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3681 | { | |
3682 | arg2 = &temp2; | |
3683 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3684 | } | |
3685 | { | |
3686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3687 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
3688 | ||
3689 | wxPyEndAllowThreads(__tstate); | |
3690 | if (PyErr_Occurred()) SWIG_fail; | |
3691 | } | |
3692 | resultobj = PyInt_FromLong((long)result); | |
3693 | return resultobj; | |
3694 | fail: | |
3695 | return NULL; | |
3696 | } | |
3697 | ||
3698 | ||
3699 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3700 | PyObject *resultobj; | |
3701 | wxRect *arg1 = (wxRect *) 0 ; | |
3702 | wxRect *arg2 = 0 ; | |
3703 | bool result; | |
3704 | wxRect temp2 ; | |
3705 | PyObject * obj0 = 0 ; | |
3706 | PyObject * obj1 = 0 ; | |
3707 | char *kwnames[] = { | |
3708 | (char *) "self",(char *) "rect", NULL | |
3709 | }; | |
3710 | ||
3711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
3712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3713 | { | |
3714 | arg2 = &temp2; | |
3715 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3716 | } | |
3717 | { | |
3718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3719 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
3720 | ||
3721 | wxPyEndAllowThreads(__tstate); | |
3722 | if (PyErr_Occurred()) SWIG_fail; | |
3723 | } | |
3724 | resultobj = PyInt_FromLong((long)result); | |
3725 | return resultobj; | |
3726 | fail: | |
3727 | return NULL; | |
3728 | } | |
3729 | ||
3730 | ||
3731 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3732 | PyObject *resultobj; | |
3733 | wxRect *arg1 = (wxRect *) 0 ; | |
3734 | int arg2 ; | |
3735 | PyObject * obj0 = 0 ; | |
3736 | char *kwnames[] = { | |
3737 | (char *) "self",(char *) "x", NULL | |
3738 | }; | |
3739 | ||
3740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_x_set",kwnames,&obj0,&arg2)) goto fail; | |
3741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3742 | if (arg1) (arg1)->x = arg2; | |
3743 | ||
3744 | Py_INCREF(Py_None); resultobj = Py_None; | |
3745 | return resultobj; | |
3746 | fail: | |
3747 | return NULL; | |
3748 | } | |
3749 | ||
3750 | ||
3751 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3752 | PyObject *resultobj; | |
3753 | wxRect *arg1 = (wxRect *) 0 ; | |
3754 | int result; | |
3755 | PyObject * obj0 = 0 ; | |
3756 | char *kwnames[] = { | |
3757 | (char *) "self", NULL | |
3758 | }; | |
3759 | ||
3760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
3761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3762 | result = (int) ((arg1)->x); | |
3763 | ||
3764 | resultobj = PyInt_FromLong((long)result); | |
3765 | return resultobj; | |
3766 | fail: | |
3767 | return NULL; | |
3768 | } | |
3769 | ||
3770 | ||
3771 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3772 | PyObject *resultobj; | |
3773 | wxRect *arg1 = (wxRect *) 0 ; | |
3774 | int arg2 ; | |
3775 | PyObject * obj0 = 0 ; | |
3776 | char *kwnames[] = { | |
3777 | (char *) "self",(char *) "y", NULL | |
3778 | }; | |
3779 | ||
3780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_y_set",kwnames,&obj0,&arg2)) goto fail; | |
3781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3782 | if (arg1) (arg1)->y = arg2; | |
3783 | ||
3784 | Py_INCREF(Py_None); resultobj = Py_None; | |
3785 | return resultobj; | |
3786 | fail: | |
3787 | return NULL; | |
3788 | } | |
3789 | ||
3790 | ||
3791 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3792 | PyObject *resultobj; | |
3793 | wxRect *arg1 = (wxRect *) 0 ; | |
3794 | int result; | |
3795 | PyObject * obj0 = 0 ; | |
3796 | char *kwnames[] = { | |
3797 | (char *) "self", NULL | |
3798 | }; | |
3799 | ||
3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
3801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3802 | result = (int) ((arg1)->y); | |
3803 | ||
3804 | resultobj = PyInt_FromLong((long)result); | |
3805 | return resultobj; | |
3806 | fail: | |
3807 | return NULL; | |
3808 | } | |
3809 | ||
3810 | ||
3811 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3812 | PyObject *resultobj; | |
3813 | wxRect *arg1 = (wxRect *) 0 ; | |
3814 | int arg2 ; | |
3815 | PyObject * obj0 = 0 ; | |
3816 | char *kwnames[] = { | |
3817 | (char *) "self",(char *) "width", NULL | |
3818 | }; | |
3819 | ||
3820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_width_set",kwnames,&obj0,&arg2)) goto fail; | |
3821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3822 | if (arg1) (arg1)->width = arg2; | |
3823 | ||
3824 | Py_INCREF(Py_None); resultobj = Py_None; | |
3825 | return resultobj; | |
3826 | fail: | |
3827 | return NULL; | |
3828 | } | |
3829 | ||
3830 | ||
3831 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3832 | PyObject *resultobj; | |
3833 | wxRect *arg1 = (wxRect *) 0 ; | |
3834 | int result; | |
3835 | PyObject * obj0 = 0 ; | |
3836 | char *kwnames[] = { | |
3837 | (char *) "self", NULL | |
3838 | }; | |
3839 | ||
3840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
3841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3842 | result = (int) ((arg1)->width); | |
3843 | ||
3844 | resultobj = PyInt_FromLong((long)result); | |
3845 | return resultobj; | |
3846 | fail: | |
3847 | return NULL; | |
3848 | } | |
3849 | ||
3850 | ||
3851 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3852 | PyObject *resultobj; | |
3853 | wxRect *arg1 = (wxRect *) 0 ; | |
3854 | int arg2 ; | |
3855 | PyObject * obj0 = 0 ; | |
3856 | char *kwnames[] = { | |
3857 | (char *) "self",(char *) "height", NULL | |
3858 | }; | |
3859 | ||
3860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_height_set",kwnames,&obj0,&arg2)) goto fail; | |
3861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3862 | if (arg1) (arg1)->height = arg2; | |
3863 | ||
3864 | Py_INCREF(Py_None); resultobj = Py_None; | |
3865 | return resultobj; | |
3866 | fail: | |
3867 | return NULL; | |
3868 | } | |
3869 | ||
3870 | ||
3871 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3872 | PyObject *resultobj; | |
3873 | wxRect *arg1 = (wxRect *) 0 ; | |
3874 | int result; | |
3875 | PyObject * obj0 = 0 ; | |
3876 | char *kwnames[] = { | |
3877 | (char *) "self", NULL | |
3878 | }; | |
3879 | ||
3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
3881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3882 | result = (int) ((arg1)->height); | |
3883 | ||
3884 | resultobj = PyInt_FromLong((long)result); | |
3885 | return resultobj; | |
3886 | fail: | |
3887 | return NULL; | |
3888 | } | |
3889 | ||
3890 | ||
3891 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3892 | PyObject *resultobj; | |
3893 | wxRect *arg1 = (wxRect *) 0 ; | |
3894 | int arg2 = (int) 0 ; | |
3895 | int arg3 = (int) 0 ; | |
3896 | int arg4 = (int) 0 ; | |
3897 | int arg5 = (int) 0 ; | |
3898 | PyObject * obj0 = 0 ; | |
3899 | char *kwnames[] = { | |
3900 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3901 | }; | |
3902 | ||
3903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiii:Rect_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
3904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3905 | { | |
3906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3907 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
3908 | ||
3909 | wxPyEndAllowThreads(__tstate); | |
3910 | if (PyErr_Occurred()) SWIG_fail; | |
3911 | } | |
3912 | Py_INCREF(Py_None); resultobj = Py_None; | |
3913 | return resultobj; | |
3914 | fail: | |
3915 | return NULL; | |
3916 | } | |
3917 | ||
3918 | ||
423f194a | 3919 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3920 | PyObject *resultobj; |
3921 | wxRect *arg1 = (wxRect *) 0 ; | |
3922 | PyObject *result; | |
3923 | PyObject * obj0 = 0 ; | |
3924 | char *kwnames[] = { | |
3925 | (char *) "self", NULL | |
3926 | }; | |
3927 | ||
423f194a | 3928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
3929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3930 | { | |
3931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 3932 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
3933 | |
3934 | wxPyEndAllowThreads(__tstate); | |
3935 | if (PyErr_Occurred()) SWIG_fail; | |
3936 | } | |
3937 | resultobj = result; | |
3938 | return resultobj; | |
3939 | fail: | |
3940 | return NULL; | |
3941 | } | |
3942 | ||
3943 | ||
3944 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
3945 | PyObject *obj; | |
3946 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3947 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
3948 | Py_INCREF(obj); | |
3949 | return Py_BuildValue((char *)""); | |
3950 | } | |
3951 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3952 | PyObject *resultobj; | |
3953 | wxRect *arg1 = (wxRect *) 0 ; | |
3954 | wxRect *arg2 = (wxRect *) 0 ; | |
3955 | PyObject *result; | |
3956 | PyObject * obj0 = 0 ; | |
3957 | PyObject * obj1 = 0 ; | |
3958 | char *kwnames[] = { | |
3959 | (char *) "r1",(char *) "r2", NULL | |
3960 | }; | |
3961 | ||
3962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
3963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3964 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3965 | { | |
3966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3967 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
3968 | ||
3969 | wxPyEndAllowThreads(__tstate); | |
3970 | if (PyErr_Occurred()) SWIG_fail; | |
3971 | } | |
3972 | resultobj = result; | |
3973 | return resultobj; | |
3974 | fail: | |
3975 | return NULL; | |
3976 | } | |
3977 | ||
3978 | ||
3979 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3980 | PyObject *resultobj; | |
3981 | double arg1 = (double) 0.0 ; | |
3982 | double arg2 = (double) 0.0 ; | |
3983 | wxPoint2D *result; | |
3984 | char *kwnames[] = { | |
3985 | (char *) "x",(char *) "y", NULL | |
3986 | }; | |
3987 | ||
3988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|dd:new_Point2D",kwnames,&arg1,&arg2)) goto fail; | |
3989 | { | |
3990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3991 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
3992 | ||
3993 | wxPyEndAllowThreads(__tstate); | |
3994 | if (PyErr_Occurred()) SWIG_fail; | |
3995 | } | |
3996 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
3997 | return resultobj; | |
3998 | fail: | |
3999 | return NULL; | |
4000 | } | |
4001 | ||
4002 | ||
4003 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4004 | PyObject *resultobj; | |
4005 | wxPoint2D *arg1 = 0 ; | |
4006 | wxPoint2D *result; | |
4007 | wxPoint2D temp1 ; | |
4008 | PyObject * obj0 = 0 ; | |
4009 | char *kwnames[] = { | |
4010 | (char *) "pt", NULL | |
4011 | }; | |
4012 | ||
4013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4014 | { | |
4015 | arg1 = &temp1; | |
4016 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4017 | } | |
4018 | { | |
4019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4020 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4021 | ||
4022 | wxPyEndAllowThreads(__tstate); | |
4023 | if (PyErr_Occurred()) SWIG_fail; | |
4024 | } | |
4025 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4026 | return resultobj; | |
4027 | fail: | |
4028 | return NULL; | |
4029 | } | |
4030 | ||
4031 | ||
4032 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4033 | PyObject *resultobj; | |
4034 | wxPoint *arg1 = 0 ; | |
4035 | wxPoint2D *result; | |
4036 | wxPoint temp1 ; | |
4037 | PyObject * obj0 = 0 ; | |
4038 | char *kwnames[] = { | |
4039 | (char *) "pt", NULL | |
4040 | }; | |
4041 | ||
4042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4043 | { | |
4044 | arg1 = &temp1; | |
4045 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4046 | } | |
4047 | { | |
4048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4049 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4050 | ||
4051 | wxPyEndAllowThreads(__tstate); | |
4052 | if (PyErr_Occurred()) SWIG_fail; | |
4053 | } | |
4054 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4055 | return resultobj; | |
4056 | fail: | |
4057 | return NULL; | |
4058 | } | |
4059 | ||
4060 | ||
4061 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4062 | PyObject *resultobj; | |
4063 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4064 | int *arg2 = (int *) 0 ; | |
4065 | int *arg3 = (int *) 0 ; | |
4066 | int temp2 ; | |
4067 | int temp3 ; | |
4068 | PyObject * obj0 = 0 ; | |
4069 | char *kwnames[] = { | |
4070 | (char *) "self", NULL | |
4071 | }; | |
4072 | ||
4073 | arg2 = &temp2; | |
4074 | arg3 = &temp3; | |
4075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
4076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4077 | { | |
4078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4079 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4080 | ||
4081 | wxPyEndAllowThreads(__tstate); | |
4082 | if (PyErr_Occurred()) SWIG_fail; | |
4083 | } | |
4084 | Py_INCREF(Py_None); resultobj = Py_None; | |
4085 | { | |
4086 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4087 | resultobj = t_output_helper(resultobj,o); | |
4088 | } | |
4089 | { | |
4090 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4091 | resultobj = t_output_helper(resultobj,o); | |
4092 | } | |
4093 | return resultobj; | |
4094 | fail: | |
4095 | return NULL; | |
4096 | } | |
4097 | ||
4098 | ||
4099 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4100 | PyObject *resultobj; | |
4101 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4102 | int *arg2 = (int *) 0 ; | |
4103 | int *arg3 = (int *) 0 ; | |
4104 | int temp2 ; | |
4105 | int temp3 ; | |
4106 | PyObject * obj0 = 0 ; | |
4107 | char *kwnames[] = { | |
4108 | (char *) "self", NULL | |
4109 | }; | |
4110 | ||
4111 | arg2 = &temp2; | |
4112 | arg3 = &temp3; | |
4113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
4114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4115 | { | |
4116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4117 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4118 | ||
4119 | wxPyEndAllowThreads(__tstate); | |
4120 | if (PyErr_Occurred()) SWIG_fail; | |
4121 | } | |
4122 | Py_INCREF(Py_None); resultobj = Py_None; | |
4123 | { | |
4124 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4125 | resultobj = t_output_helper(resultobj,o); | |
4126 | } | |
4127 | { | |
4128 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4129 | resultobj = t_output_helper(resultobj,o); | |
4130 | } | |
4131 | return resultobj; | |
4132 | fail: | |
4133 | return NULL; | |
4134 | } | |
4135 | ||
4136 | ||
4137 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4138 | PyObject *resultobj; | |
4139 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4140 | double result; | |
4141 | PyObject * obj0 = 0 ; | |
4142 | char *kwnames[] = { | |
4143 | (char *) "self", NULL | |
4144 | }; | |
4145 | ||
4146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
4147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4148 | { | |
4149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4150 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4151 | ||
4152 | wxPyEndAllowThreads(__tstate); | |
4153 | if (PyErr_Occurred()) SWIG_fail; | |
4154 | } | |
4155 | resultobj = PyFloat_FromDouble(result); | |
4156 | return resultobj; | |
4157 | fail: | |
4158 | return NULL; | |
4159 | } | |
4160 | ||
4161 | ||
4162 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4163 | PyObject *resultobj; | |
4164 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4165 | double result; | |
4166 | PyObject * obj0 = 0 ; | |
4167 | char *kwnames[] = { | |
4168 | (char *) "self", NULL | |
4169 | }; | |
4170 | ||
4171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
4172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4173 | { | |
4174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4175 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4176 | ||
4177 | wxPyEndAllowThreads(__tstate); | |
4178 | if (PyErr_Occurred()) SWIG_fail; | |
4179 | } | |
4180 | resultobj = PyFloat_FromDouble(result); | |
4181 | return resultobj; | |
4182 | fail: | |
4183 | return NULL; | |
4184 | } | |
4185 | ||
4186 | ||
4187 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4188 | PyObject *resultobj; | |
4189 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4190 | double arg2 ; | |
4191 | PyObject * obj0 = 0 ; | |
4192 | char *kwnames[] = { | |
4193 | (char *) "self",(char *) "length", NULL | |
4194 | }; | |
4195 | ||
4196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_SetVectorLength",kwnames,&obj0,&arg2)) goto fail; | |
4197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4198 | { | |
4199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4200 | (arg1)->SetVectorLength(arg2); | |
4201 | ||
4202 | wxPyEndAllowThreads(__tstate); | |
4203 | if (PyErr_Occurred()) SWIG_fail; | |
4204 | } | |
4205 | Py_INCREF(Py_None); resultobj = Py_None; | |
4206 | return resultobj; | |
4207 | fail: | |
4208 | return NULL; | |
4209 | } | |
4210 | ||
4211 | ||
4212 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4213 | PyObject *resultobj; | |
4214 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4215 | double arg2 ; | |
4216 | PyObject * obj0 = 0 ; | |
4217 | char *kwnames[] = { | |
4218 | (char *) "self",(char *) "degrees", NULL | |
4219 | }; | |
4220 | ||
4221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_SetVectorAngle",kwnames,&obj0,&arg2)) goto fail; | |
4222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4223 | { | |
4224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4225 | (arg1)->SetVectorAngle(arg2); | |
4226 | ||
4227 | wxPyEndAllowThreads(__tstate); | |
4228 | if (PyErr_Occurred()) SWIG_fail; | |
4229 | } | |
4230 | Py_INCREF(Py_None); resultobj = Py_None; | |
4231 | return resultobj; | |
4232 | fail: | |
4233 | return NULL; | |
4234 | } | |
4235 | ||
4236 | ||
4237 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4238 | PyObject *resultobj; | |
4239 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4240 | wxPoint2D *arg2 = 0 ; | |
4241 | double result; | |
4242 | wxPoint2D temp2 ; | |
4243 | PyObject * obj0 = 0 ; | |
4244 | PyObject * obj1 = 0 ; | |
4245 | char *kwnames[] = { | |
4246 | (char *) "self",(char *) "pt", NULL | |
4247 | }; | |
4248 | ||
4249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
4250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4251 | { | |
4252 | arg2 = &temp2; | |
4253 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4254 | } | |
4255 | { | |
4256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4257 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
4258 | ||
4259 | wxPyEndAllowThreads(__tstate); | |
4260 | if (PyErr_Occurred()) SWIG_fail; | |
4261 | } | |
4262 | resultobj = PyFloat_FromDouble(result); | |
4263 | return resultobj; | |
4264 | fail: | |
4265 | return NULL; | |
4266 | } | |
4267 | ||
4268 | ||
4269 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4270 | PyObject *resultobj; | |
4271 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4272 | wxPoint2D *arg2 = 0 ; | |
4273 | double result; | |
4274 | wxPoint2D temp2 ; | |
4275 | PyObject * obj0 = 0 ; | |
4276 | PyObject * obj1 = 0 ; | |
4277 | char *kwnames[] = { | |
4278 | (char *) "self",(char *) "pt", NULL | |
4279 | }; | |
4280 | ||
4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
4282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4283 | { | |
4284 | arg2 = &temp2; | |
4285 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4286 | } | |
4287 | { | |
4288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4289 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
4290 | ||
4291 | wxPyEndAllowThreads(__tstate); | |
4292 | if (PyErr_Occurred()) SWIG_fail; | |
4293 | } | |
4294 | resultobj = PyFloat_FromDouble(result); | |
4295 | return resultobj; | |
4296 | fail: | |
4297 | return NULL; | |
4298 | } | |
4299 | ||
4300 | ||
4301 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4302 | PyObject *resultobj; | |
4303 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4304 | wxPoint2D *arg2 = 0 ; | |
4305 | double result; | |
4306 | wxPoint2D temp2 ; | |
4307 | PyObject * obj0 = 0 ; | |
4308 | PyObject * obj1 = 0 ; | |
4309 | char *kwnames[] = { | |
4310 | (char *) "self",(char *) "vec", NULL | |
4311 | }; | |
4312 | ||
4313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
4314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4315 | { | |
4316 | arg2 = &temp2; | |
4317 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4318 | } | |
4319 | { | |
4320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4321 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
4322 | ||
4323 | wxPyEndAllowThreads(__tstate); | |
4324 | if (PyErr_Occurred()) SWIG_fail; | |
4325 | } | |
4326 | resultobj = PyFloat_FromDouble(result); | |
4327 | return resultobj; | |
4328 | fail: | |
4329 | return NULL; | |
4330 | } | |
4331 | ||
4332 | ||
4333 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4334 | PyObject *resultobj; | |
4335 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4336 | wxPoint2D *arg2 = 0 ; | |
4337 | double result; | |
4338 | wxPoint2D temp2 ; | |
4339 | PyObject * obj0 = 0 ; | |
4340 | PyObject * obj1 = 0 ; | |
4341 | char *kwnames[] = { | |
4342 | (char *) "self",(char *) "vec", NULL | |
4343 | }; | |
4344 | ||
4345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
4346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4347 | { | |
4348 | arg2 = &temp2; | |
4349 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4350 | } | |
4351 | { | |
4352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4353 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
4354 | ||
4355 | wxPyEndAllowThreads(__tstate); | |
4356 | if (PyErr_Occurred()) SWIG_fail; | |
4357 | } | |
4358 | resultobj = PyFloat_FromDouble(result); | |
4359 | return resultobj; | |
4360 | fail: | |
4361 | return NULL; | |
4362 | } | |
4363 | ||
4364 | ||
4365 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4366 | PyObject *resultobj; | |
4367 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4368 | wxPoint2D result; | |
4369 | PyObject * obj0 = 0 ; | |
4370 | char *kwnames[] = { | |
4371 | (char *) "self", NULL | |
4372 | }; | |
4373 | ||
4374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
4375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4376 | { | |
4377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4378 | result = (arg1)->operator -(); | |
4379 | ||
4380 | wxPyEndAllowThreads(__tstate); | |
4381 | if (PyErr_Occurred()) SWIG_fail; | |
4382 | } | |
4383 | { | |
4384 | wxPoint2D * resultptr; | |
4385 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
4386 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint2D, 1); | |
4387 | } | |
4388 | return resultobj; | |
4389 | fail: | |
4390 | return NULL; | |
4391 | } | |
4392 | ||
4393 | ||
4394 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4395 | PyObject *resultobj; | |
4396 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4397 | wxPoint2D *arg2 = 0 ; | |
4398 | wxPoint2D *result; | |
4399 | wxPoint2D temp2 ; | |
4400 | PyObject * obj0 = 0 ; | |
4401 | PyObject * obj1 = 0 ; | |
4402 | char *kwnames[] = { | |
4403 | (char *) "self",(char *) "pt", NULL | |
4404 | }; | |
4405 | ||
4406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4408 | { | |
4409 | arg2 = &temp2; | |
4410 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4411 | } | |
4412 | { | |
4413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4414 | { | |
4415 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
4416 | result = (wxPoint2D *) &_result_ref; | |
4417 | } | |
4418 | ||
4419 | wxPyEndAllowThreads(__tstate); | |
4420 | if (PyErr_Occurred()) SWIG_fail; | |
4421 | } | |
4422 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4423 | return resultobj; | |
4424 | fail: | |
4425 | return NULL; | |
4426 | } | |
4427 | ||
4428 | ||
4429 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4430 | PyObject *resultobj; | |
4431 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4432 | wxPoint2D *arg2 = 0 ; | |
4433 | wxPoint2D *result; | |
4434 | wxPoint2D temp2 ; | |
4435 | PyObject * obj0 = 0 ; | |
4436 | PyObject * obj1 = 0 ; | |
4437 | char *kwnames[] = { | |
4438 | (char *) "self",(char *) "pt", NULL | |
4439 | }; | |
4440 | ||
4441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
4442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4443 | { | |
4444 | arg2 = &temp2; | |
4445 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4446 | } | |
4447 | { | |
4448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4449 | { | |
4450 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
4451 | result = (wxPoint2D *) &_result_ref; | |
4452 | } | |
4453 | ||
4454 | wxPyEndAllowThreads(__tstate); | |
4455 | if (PyErr_Occurred()) SWIG_fail; | |
4456 | } | |
4457 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4458 | return resultobj; | |
4459 | fail: | |
4460 | return NULL; | |
4461 | } | |
4462 | ||
4463 | ||
4464 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4465 | PyObject *resultobj; | |
4466 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4467 | wxPoint2D *arg2 = 0 ; | |
4468 | wxPoint2D *result; | |
4469 | wxPoint2D temp2 ; | |
4470 | PyObject * obj0 = 0 ; | |
4471 | PyObject * obj1 = 0 ; | |
4472 | char *kwnames[] = { | |
4473 | (char *) "self",(char *) "pt", NULL | |
4474 | }; | |
4475 | ||
4476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
4477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4478 | { | |
4479 | arg2 = &temp2; | |
4480 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4481 | } | |
4482 | { | |
4483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4484 | { | |
4485 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
4486 | result = (wxPoint2D *) &_result_ref; | |
4487 | } | |
4488 | ||
4489 | wxPyEndAllowThreads(__tstate); | |
4490 | if (PyErr_Occurred()) SWIG_fail; | |
4491 | } | |
4492 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4493 | return resultobj; | |
4494 | fail: | |
4495 | return NULL; | |
4496 | } | |
4497 | ||
4498 | ||
4499 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4500 | PyObject *resultobj; | |
4501 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4502 | wxPoint2D *arg2 = 0 ; | |
4503 | wxPoint2D *result; | |
4504 | wxPoint2D 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:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
4512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4513 | { | |
4514 | arg2 = &temp2; | |
4515 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4516 | } | |
4517 | { | |
4518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4519 | { | |
4520 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
4521 | result = (wxPoint2D *) &_result_ref; | |
4522 | } | |
4523 | ||
4524 | wxPyEndAllowThreads(__tstate); | |
4525 | if (PyErr_Occurred()) SWIG_fail; | |
4526 | } | |
4527 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4528 | return resultobj; | |
4529 | fail: | |
4530 | return NULL; | |
4531 | } | |
4532 | ||
4533 | ||
4534 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4535 | PyObject *resultobj; | |
4536 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4537 | wxPoint2D *arg2 = 0 ; | |
4538 | bool result; | |
4539 | wxPoint2D temp2 ; | |
4540 | PyObject * obj0 = 0 ; | |
4541 | PyObject * obj1 = 0 ; | |
4542 | char *kwnames[] = { | |
4543 | (char *) "self",(char *) "pt", NULL | |
4544 | }; | |
4545 | ||
4546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4548 | { | |
4549 | arg2 = &temp2; | |
4550 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4551 | } | |
4552 | { | |
4553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4554 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
4555 | ||
4556 | wxPyEndAllowThreads(__tstate); | |
4557 | if (PyErr_Occurred()) SWIG_fail; | |
4558 | } | |
4559 | resultobj = PyInt_FromLong((long)result); | |
4560 | return resultobj; | |
4561 | fail: | |
4562 | return NULL; | |
4563 | } | |
4564 | ||
4565 | ||
4566 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4567 | PyObject *resultobj; | |
4568 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4569 | wxPoint2D *arg2 = 0 ; | |
4570 | bool result; | |
4571 | wxPoint2D temp2 ; | |
4572 | PyObject * obj0 = 0 ; | |
4573 | PyObject * obj1 = 0 ; | |
4574 | char *kwnames[] = { | |
4575 | (char *) "self",(char *) "pt", NULL | |
4576 | }; | |
4577 | ||
4578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4580 | { | |
4581 | arg2 = &temp2; | |
4582 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4583 | } | |
4584 | { | |
4585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4586 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
4587 | ||
4588 | wxPyEndAllowThreads(__tstate); | |
4589 | if (PyErr_Occurred()) SWIG_fail; | |
4590 | } | |
4591 | resultobj = PyInt_FromLong((long)result); | |
4592 | return resultobj; | |
4593 | fail: | |
4594 | return NULL; | |
4595 | } | |
4596 | ||
4597 | ||
d14a1e28 RD |
4598 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
4599 | PyObject *resultobj; | |
4600 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4601 | double arg2 ; | |
4602 | PyObject * obj0 = 0 ; | |
4603 | char *kwnames[] = { | |
4604 | (char *) "self",(char *) "m_x", NULL | |
4605 | }; | |
4606 | ||
4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_x_set",kwnames,&obj0,&arg2)) goto fail; | |
4608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4609 | if (arg1) (arg1)->m_x = arg2; | |
4610 | ||
4611 | Py_INCREF(Py_None); resultobj = Py_None; | |
4612 | return resultobj; | |
4613 | fail: | |
4614 | return NULL; | |
4615 | } | |
4616 | ||
4617 | ||
4618 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4619 | PyObject *resultobj; | |
4620 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4621 | double result; | |
4622 | PyObject * obj0 = 0 ; | |
4623 | char *kwnames[] = { | |
4624 | (char *) "self", NULL | |
4625 | }; | |
4626 | ||
4627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
4628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4629 | result = (double) ((arg1)->m_x); | |
4630 | ||
4631 | resultobj = PyFloat_FromDouble(result); | |
4632 | return resultobj; | |
4633 | fail: | |
4634 | return NULL; | |
4635 | } | |
4636 | ||
4637 | ||
4638 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4639 | PyObject *resultobj; | |
4640 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4641 | double arg2 ; | |
4642 | PyObject * obj0 = 0 ; | |
4643 | char *kwnames[] = { | |
4644 | (char *) "self",(char *) "m_y", NULL | |
4645 | }; | |
4646 | ||
4647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_y_set",kwnames,&obj0,&arg2)) goto fail; | |
4648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4649 | if (arg1) (arg1)->m_y = arg2; | |
4650 | ||
4651 | Py_INCREF(Py_None); resultobj = Py_None; | |
4652 | return resultobj; | |
4653 | fail: | |
4654 | return NULL; | |
4655 | } | |
4656 | ||
4657 | ||
4658 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4659 | PyObject *resultobj; | |
4660 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4661 | double result; | |
4662 | PyObject * obj0 = 0 ; | |
4663 | char *kwnames[] = { | |
4664 | (char *) "self", NULL | |
4665 | }; | |
4666 | ||
4667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
4668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4669 | result = (double) ((arg1)->m_y); | |
4670 | ||
4671 | resultobj = PyFloat_FromDouble(result); | |
4672 | return resultobj; | |
4673 | fail: | |
4674 | return NULL; | |
4675 | } | |
4676 | ||
4677 | ||
4678 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4679 | PyObject *resultobj; | |
4680 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4681 | double arg2 = (double) 0 ; | |
4682 | double arg3 = (double) 0 ; | |
4683 | PyObject * obj0 = 0 ; | |
4684 | char *kwnames[] = { | |
4685 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4686 | }; | |
4687 | ||
4688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|dd:Point2D_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4690 | { | |
4691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4692 | wxPoint2D_Set(arg1,arg2,arg3); | |
4693 | ||
4694 | wxPyEndAllowThreads(__tstate); | |
4695 | if (PyErr_Occurred()) SWIG_fail; | |
4696 | } | |
4697 | Py_INCREF(Py_None); resultobj = Py_None; | |
4698 | return resultobj; | |
4699 | fail: | |
4700 | return NULL; | |
4701 | } | |
4702 | ||
4703 | ||
423f194a | 4704 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4705 | PyObject *resultobj; |
4706 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4707 | PyObject *result; | |
4708 | PyObject * obj0 = 0 ; | |
4709 | char *kwnames[] = { | |
4710 | (char *) "self", NULL | |
4711 | }; | |
4712 | ||
423f194a | 4713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4715 | { | |
4716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4717 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
4718 | |
4719 | wxPyEndAllowThreads(__tstate); | |
4720 | if (PyErr_Occurred()) SWIG_fail; | |
4721 | } | |
4722 | resultobj = result; | |
4723 | return resultobj; | |
4724 | fail: | |
4725 | return NULL; | |
4726 | } | |
4727 | ||
4728 | ||
4729 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
4730 | PyObject *obj; | |
4731 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4732 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
4733 | Py_INCREF(obj); | |
4734 | return Py_BuildValue((char *)""); | |
4735 | } | |
4736 | static int _wrap_DefaultPosition_set(PyObject *_val) { | |
4737 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); | |
4738 | return 1; | |
4739 | } | |
4740 | ||
4741 | ||
4742 | static PyObject *_wrap_DefaultPosition_get() { | |
4743 | PyObject *pyobj; | |
4744 | ||
4745 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultPosition, SWIGTYPE_p_wxPoint, 0); | |
4746 | return pyobj; | |
4747 | } | |
4748 | ||
4749 | ||
4750 | static int _wrap_DefaultSize_set(PyObject *_val) { | |
4751 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); | |
4752 | return 1; | |
4753 | } | |
4754 | ||
4755 | ||
4756 | static PyObject *_wrap_DefaultSize_get() { | |
4757 | PyObject *pyobj; | |
4758 | ||
4759 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSize, SWIGTYPE_p_wxSize, 0); | |
4760 | return pyobj; | |
4761 | } | |
4762 | ||
4763 | ||
4764 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4765 | PyObject *resultobj; | |
4766 | PyObject *arg1 = (PyObject *) 0 ; | |
4767 | wxPyInputStream *result; | |
4768 | PyObject * obj0 = 0 ; | |
4769 | char *kwnames[] = { | |
4770 | (char *) "p", NULL | |
4771 | }; | |
4772 | ||
4773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
4774 | arg1 = obj0; | |
4775 | { | |
4776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4777 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
4778 | ||
4779 | wxPyEndAllowThreads(__tstate); | |
4780 | if (PyErr_Occurred()) SWIG_fail; | |
4781 | } | |
4782 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyInputStream, 1); | |
4783 | return resultobj; | |
4784 | fail: | |
4785 | return NULL; | |
4786 | } | |
4787 | ||
4788 | ||
4789 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4790 | PyObject *resultobj; | |
4791 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4792 | PyObject * obj0 = 0 ; | |
4793 | char *kwnames[] = { | |
4794 | (char *) "self", NULL | |
4795 | }; | |
4796 | ||
4797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
4798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4799 | { | |
4800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4801 | (arg1)->close(); | |
4802 | ||
4803 | wxPyEndAllowThreads(__tstate); | |
4804 | if (PyErr_Occurred()) SWIG_fail; | |
4805 | } | |
4806 | Py_INCREF(Py_None); resultobj = Py_None; | |
4807 | return resultobj; | |
4808 | fail: | |
4809 | return NULL; | |
4810 | } | |
4811 | ||
4812 | ||
4813 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4814 | PyObject *resultobj; | |
4815 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4816 | PyObject * obj0 = 0 ; | |
4817 | char *kwnames[] = { | |
4818 | (char *) "self", NULL | |
4819 | }; | |
4820 | ||
4821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
4822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4823 | { | |
4824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4825 | (arg1)->flush(); | |
4826 | ||
4827 | wxPyEndAllowThreads(__tstate); | |
4828 | if (PyErr_Occurred()) SWIG_fail; | |
4829 | } | |
4830 | Py_INCREF(Py_None); resultobj = Py_None; | |
4831 | return resultobj; | |
4832 | fail: | |
4833 | return NULL; | |
4834 | } | |
4835 | ||
4836 | ||
4837 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4838 | PyObject *resultobj; | |
4839 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4840 | bool result; | |
4841 | PyObject * obj0 = 0 ; | |
4842 | char *kwnames[] = { | |
4843 | (char *) "self", NULL | |
4844 | }; | |
4845 | ||
4846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
4847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4848 | { | |
4849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4850 | result = (bool)(arg1)->eof(); | |
4851 | ||
4852 | wxPyEndAllowThreads(__tstate); | |
4853 | if (PyErr_Occurred()) SWIG_fail; | |
4854 | } | |
4855 | resultobj = PyInt_FromLong((long)result); | |
4856 | return resultobj; | |
4857 | fail: | |
4858 | return NULL; | |
4859 | } | |
4860 | ||
4861 | ||
4862 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4863 | PyObject *resultobj; | |
4864 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4865 | int arg2 = (int) -1 ; | |
4866 | PyObject *result; | |
4867 | PyObject * obj0 = 0 ; | |
4868 | char *kwnames[] = { | |
4869 | (char *) "self",(char *) "size", NULL | |
4870 | }; | |
4871 | ||
4872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:InputStream_read",kwnames,&obj0,&arg2)) goto fail; | |
4873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4874 | { | |
4875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4876 | result = (PyObject *)(arg1)->read(arg2); | |
4877 | ||
4878 | wxPyEndAllowThreads(__tstate); | |
4879 | if (PyErr_Occurred()) SWIG_fail; | |
4880 | } | |
4881 | resultobj = result; | |
4882 | return resultobj; | |
4883 | fail: | |
4884 | return NULL; | |
4885 | } | |
4886 | ||
4887 | ||
4888 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4889 | PyObject *resultobj; | |
4890 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4891 | int arg2 = (int) -1 ; | |
4892 | PyObject *result; | |
4893 | PyObject * obj0 = 0 ; | |
4894 | char *kwnames[] = { | |
4895 | (char *) "self",(char *) "size", NULL | |
4896 | }; | |
4897 | ||
4898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:InputStream_readline",kwnames,&obj0,&arg2)) goto fail; | |
4899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4900 | { | |
4901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4902 | result = (PyObject *)(arg1)->readline(arg2); | |
4903 | ||
4904 | wxPyEndAllowThreads(__tstate); | |
4905 | if (PyErr_Occurred()) SWIG_fail; | |
4906 | } | |
4907 | resultobj = result; | |
4908 | return resultobj; | |
4909 | fail: | |
4910 | return NULL; | |
4911 | } | |
4912 | ||
4913 | ||
4914 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4915 | PyObject *resultobj; | |
4916 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4917 | int arg2 = (int) -1 ; | |
4918 | PyObject *result; | |
4919 | PyObject * obj0 = 0 ; | |
4920 | char *kwnames[] = { | |
4921 | (char *) "self",(char *) "sizehint", NULL | |
4922 | }; | |
4923 | ||
4924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:InputStream_readlines",kwnames,&obj0,&arg2)) goto fail; | |
4925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4926 | { | |
4927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4928 | result = (PyObject *)(arg1)->readlines(arg2); | |
4929 | ||
4930 | wxPyEndAllowThreads(__tstate); | |
4931 | if (PyErr_Occurred()) SWIG_fail; | |
4932 | } | |
4933 | resultobj = result; | |
4934 | return resultobj; | |
4935 | fail: | |
4936 | return NULL; | |
4937 | } | |
4938 | ||
4939 | ||
4940 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4941 | PyObject *resultobj; | |
4942 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4943 | int arg2 ; | |
4944 | int arg3 = (int) 0 ; | |
4945 | PyObject * obj0 = 0 ; | |
4946 | char *kwnames[] = { | |
4947 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
4948 | }; | |
4949 | ||
4950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:InputStream_seek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4952 | { | |
4953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4954 | (arg1)->seek(arg2,arg3); | |
4955 | ||
4956 | wxPyEndAllowThreads(__tstate); | |
4957 | if (PyErr_Occurred()) SWIG_fail; | |
4958 | } | |
4959 | Py_INCREF(Py_None); resultobj = Py_None; | |
4960 | return resultobj; | |
4961 | fail: | |
4962 | return NULL; | |
4963 | } | |
4964 | ||
4965 | ||
4966 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4967 | PyObject *resultobj; | |
4968 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4969 | int result; | |
4970 | PyObject * obj0 = 0 ; | |
4971 | char *kwnames[] = { | |
4972 | (char *) "self", NULL | |
4973 | }; | |
4974 | ||
4975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
4976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4977 | { | |
4978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4979 | result = (int)(arg1)->tell(); | |
4980 | ||
4981 | wxPyEndAllowThreads(__tstate); | |
4982 | if (PyErr_Occurred()) SWIG_fail; | |
4983 | } | |
4984 | resultobj = PyInt_FromLong((long)result); | |
4985 | return resultobj; | |
4986 | fail: | |
4987 | return NULL; | |
4988 | } | |
4989 | ||
4990 | ||
4991 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4992 | PyObject *resultobj; | |
4993 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4994 | char result; | |
4995 | PyObject * obj0 = 0 ; | |
4996 | char *kwnames[] = { | |
4997 | (char *) "self", NULL | |
4998 | }; | |
4999 | ||
5000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
5001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5002 | { | |
5003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5004 | result = (char)(arg1)->Peek(); | |
5005 | ||
5006 | wxPyEndAllowThreads(__tstate); | |
5007 | if (PyErr_Occurred()) SWIG_fail; | |
5008 | } | |
5009 | resultobj = Py_BuildValue((char*)"c",result); | |
5010 | return resultobj; | |
5011 | fail: | |
5012 | return NULL; | |
5013 | } | |
5014 | ||
5015 | ||
5016 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5017 | PyObject *resultobj; | |
5018 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5019 | char result; | |
5020 | PyObject * obj0 = 0 ; | |
5021 | char *kwnames[] = { | |
5022 | (char *) "self", NULL | |
5023 | }; | |
5024 | ||
5025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
5026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5027 | { | |
5028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5029 | result = (char)(arg1)->GetC(); | |
5030 | ||
5031 | wxPyEndAllowThreads(__tstate); | |
5032 | if (PyErr_Occurred()) SWIG_fail; | |
5033 | } | |
5034 | resultobj = Py_BuildValue((char*)"c",result); | |
5035 | return resultobj; | |
5036 | fail: | |
5037 | return NULL; | |
5038 | } | |
5039 | ||
5040 | ||
5041 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5042 | PyObject *resultobj; | |
5043 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5044 | size_t result; | |
5045 | PyObject * obj0 = 0 ; | |
5046 | char *kwnames[] = { | |
5047 | (char *) "self", NULL | |
5048 | }; | |
5049 | ||
5050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
5051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5052 | { | |
5053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5054 | result = (size_t)(arg1)->LastRead(); | |
5055 | ||
5056 | wxPyEndAllowThreads(__tstate); | |
5057 | if (PyErr_Occurred()) SWIG_fail; | |
5058 | } | |
5059 | resultobj = PyInt_FromLong((long)result); | |
5060 | return resultobj; | |
5061 | fail: | |
5062 | return NULL; | |
5063 | } | |
5064 | ||
5065 | ||
5066 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5067 | PyObject *resultobj; | |
5068 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5069 | bool result; | |
5070 | PyObject * obj0 = 0 ; | |
5071 | char *kwnames[] = { | |
5072 | (char *) "self", NULL | |
5073 | }; | |
5074 | ||
5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
5076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5077 | { | |
5078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5079 | result = (bool)(arg1)->CanRead(); | |
5080 | ||
5081 | wxPyEndAllowThreads(__tstate); | |
5082 | if (PyErr_Occurred()) SWIG_fail; | |
5083 | } | |
5084 | resultobj = PyInt_FromLong((long)result); | |
5085 | return resultobj; | |
5086 | fail: | |
5087 | return NULL; | |
5088 | } | |
5089 | ||
5090 | ||
5091 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5092 | PyObject *resultobj; | |
5093 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5094 | bool result; | |
5095 | PyObject * obj0 = 0 ; | |
5096 | char *kwnames[] = { | |
5097 | (char *) "self", NULL | |
5098 | }; | |
5099 | ||
5100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
5101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5102 | { | |
5103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5104 | result = (bool)(arg1)->Eof(); | |
5105 | ||
5106 | wxPyEndAllowThreads(__tstate); | |
5107 | if (PyErr_Occurred()) SWIG_fail; | |
5108 | } | |
5109 | resultobj = PyInt_FromLong((long)result); | |
5110 | return resultobj; | |
5111 | fail: | |
5112 | return NULL; | |
5113 | } | |
5114 | ||
5115 | ||
5116 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5117 | PyObject *resultobj; | |
5118 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5119 | char arg2 ; | |
5120 | bool result; | |
5121 | PyObject * obj0 = 0 ; | |
5122 | char *kwnames[] = { | |
5123 | (char *) "self",(char *) "c", NULL | |
5124 | }; | |
5125 | ||
5126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oc:InputStream_Ungetch",kwnames,&obj0,&arg2)) goto fail; | |
5127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5128 | { | |
5129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5130 | result = (bool)(arg1)->Ungetch(arg2); | |
5131 | ||
5132 | wxPyEndAllowThreads(__tstate); | |
5133 | if (PyErr_Occurred()) SWIG_fail; | |
5134 | } | |
5135 | resultobj = PyInt_FromLong((long)result); | |
5136 | return resultobj; | |
5137 | fail: | |
5138 | return NULL; | |
5139 | } | |
5140 | ||
5141 | ||
5142 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5143 | PyObject *resultobj; | |
5144 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5145 | long arg2 ; | |
5146 | int arg3 = (int) wxFromStart ; | |
5147 | long result; | |
5148 | PyObject * obj0 = 0 ; | |
5149 | char *kwnames[] = { | |
5150 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
5151 | }; | |
5152 | ||
5153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:InputStream_SeekI",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5155 | { | |
5156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5157 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
5158 | ||
5159 | wxPyEndAllowThreads(__tstate); | |
5160 | if (PyErr_Occurred()) SWIG_fail; | |
5161 | } | |
5162 | resultobj = PyInt_FromLong((long)result); | |
5163 | return resultobj; | |
5164 | fail: | |
5165 | return NULL; | |
5166 | } | |
5167 | ||
5168 | ||
5169 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5170 | PyObject *resultobj; | |
5171 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5172 | long result; | |
5173 | PyObject * obj0 = 0 ; | |
5174 | char *kwnames[] = { | |
5175 | (char *) "self", NULL | |
5176 | }; | |
5177 | ||
5178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
5179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5180 | { | |
5181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5182 | result = (long)(arg1)->TellI(); | |
5183 | ||
5184 | wxPyEndAllowThreads(__tstate); | |
5185 | if (PyErr_Occurred()) SWIG_fail; | |
5186 | } | |
5187 | resultobj = PyInt_FromLong((long)result); | |
5188 | return resultobj; | |
5189 | fail: | |
5190 | return NULL; | |
5191 | } | |
5192 | ||
5193 | ||
5194 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
5195 | PyObject *obj; | |
5196 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5197 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
5198 | Py_INCREF(obj); | |
5199 | return Py_BuildValue((char *)""); | |
5200 | } | |
5201 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5202 | PyObject *resultobj; | |
5203 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
5204 | PyObject *arg2 = (PyObject *) 0 ; | |
5205 | PyObject * obj0 = 0 ; | |
5206 | PyObject * obj1 = 0 ; | |
5207 | char *kwnames[] = { | |
5208 | (char *) "self",(char *) "obj", NULL | |
5209 | }; | |
5210 | ||
5211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
5212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxOutputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5213 | arg2 = obj1; | |
5214 | { | |
5215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5216 | wxOutputStream_write(arg1,arg2); | |
5217 | ||
5218 | wxPyEndAllowThreads(__tstate); | |
5219 | if (PyErr_Occurred()) SWIG_fail; | |
5220 | } | |
5221 | Py_INCREF(Py_None); resultobj = Py_None; | |
5222 | return resultobj; | |
5223 | fail: | |
5224 | return NULL; | |
5225 | } | |
5226 | ||
5227 | ||
5228 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
5229 | PyObject *obj; | |
5230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5231 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
5232 | Py_INCREF(obj); | |
5233 | return Py_BuildValue((char *)""); | |
5234 | } | |
5235 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5236 | PyObject *resultobj; | |
5237 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
5238 | wxString *arg2 = 0 ; | |
5239 | wxString *arg3 = 0 ; | |
5240 | wxString *arg4 = 0 ; | |
5241 | wxDateTime arg5 ; | |
5242 | wxFSFile *result; | |
5243 | wxPyInputStream *temp1 ; | |
5244 | bool created1 ; | |
423f194a RD |
5245 | bool temp2 = False ; |
5246 | bool temp3 = False ; | |
5247 | bool temp4 = False ; | |
d14a1e28 RD |
5248 | wxDateTime *argp5 ; |
5249 | PyObject * obj0 = 0 ; | |
5250 | PyObject * obj1 = 0 ; | |
5251 | PyObject * obj2 = 0 ; | |
5252 | PyObject * obj3 = 0 ; | |
5253 | PyObject * obj4 = 0 ; | |
5254 | char *kwnames[] = { | |
5255 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
5256 | }; | |
5257 | ||
5258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5259 | { | |
5260 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
5261 | arg1 = temp1->m_wxis; | |
423f194a | 5262 | created1 = False; |
d14a1e28 RD |
5263 | } else { |
5264 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 5265 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
5266 | if (arg1 == NULL) { |
5267 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
5268 | SWIG_fail; | |
5269 | } | |
423f194a | 5270 | created1 = True; |
d14a1e28 RD |
5271 | } |
5272 | } | |
5273 | { | |
5274 | arg2 = wxString_in_helper(obj1); | |
5275 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5276 | temp2 = True; |
d14a1e28 RD |
5277 | } |
5278 | { | |
5279 | arg3 = wxString_in_helper(obj2); | |
5280 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 5281 | temp3 = True; |
d14a1e28 RD |
5282 | } |
5283 | { | |
5284 | arg4 = wxString_in_helper(obj3); | |
5285 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 5286 | temp4 = True; |
d14a1e28 RD |
5287 | } |
5288 | if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
5289 | arg5 = *argp5; | |
5290 | { | |
5291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5292 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
5293 | ||
5294 | wxPyEndAllowThreads(__tstate); | |
5295 | if (PyErr_Occurred()) SWIG_fail; | |
5296 | } | |
5297 | { | |
5298 | resultobj = wxPyMake_wxObject(result); | |
5299 | } | |
5300 | { | |
5301 | if (created1) | |
5302 | delete arg1; | |
5303 | } | |
5304 | { | |
5305 | if (temp2) | |
5306 | delete arg2; | |
5307 | } | |
5308 | { | |
5309 | if (temp3) | |
5310 | delete arg3; | |
5311 | } | |
5312 | { | |
5313 | if (temp4) | |
5314 | delete arg4; | |
5315 | } | |
5316 | return resultobj; | |
5317 | fail: | |
5318 | { | |
5319 | if (created1) | |
5320 | delete arg1; | |
5321 | } | |
5322 | { | |
5323 | if (temp2) | |
5324 | delete arg2; | |
5325 | } | |
5326 | { | |
5327 | if (temp3) | |
5328 | delete arg3; | |
5329 | } | |
5330 | { | |
5331 | if (temp4) | |
5332 | delete arg4; | |
5333 | } | |
5334 | return NULL; | |
5335 | } | |
5336 | ||
5337 | ||
5338 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5339 | PyObject *resultobj; | |
5340 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5341 | PyObject * obj0 = 0 ; | |
5342 | char *kwnames[] = { | |
5343 | (char *) "self", NULL | |
5344 | }; | |
5345 | ||
5346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
5347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5348 | { | |
5349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5350 | delete arg1; | |
5351 | ||
5352 | wxPyEndAllowThreads(__tstate); | |
5353 | if (PyErr_Occurred()) SWIG_fail; | |
5354 | } | |
5355 | Py_INCREF(Py_None); resultobj = Py_None; | |
5356 | return resultobj; | |
5357 | fail: | |
5358 | return NULL; | |
5359 | } | |
5360 | ||
5361 | ||
5362 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5363 | PyObject *resultobj; | |
5364 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5365 | wxInputStream *result; | |
5366 | PyObject * obj0 = 0 ; | |
5367 | char *kwnames[] = { | |
5368 | (char *) "self", NULL | |
5369 | }; | |
5370 | ||
5371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
5372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5373 | { | |
5374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5375 | result = (wxInputStream *)(arg1)->GetStream(); | |
5376 | ||
5377 | wxPyEndAllowThreads(__tstate); | |
5378 | if (PyErr_Occurred()) SWIG_fail; | |
5379 | } | |
5380 | { | |
5381 | wxPyInputStream * _ptr = NULL; | |
5382 | ||
5383 | if (result) { | |
5384 | _ptr = new wxPyInputStream(result); | |
5385 | } | |
423f194a | 5386 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
5387 | } |
5388 | return resultobj; | |
5389 | fail: | |
5390 | return NULL; | |
5391 | } | |
5392 | ||
5393 | ||
5394 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5395 | PyObject *resultobj; | |
5396 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5397 | wxString *result; | |
5398 | PyObject * obj0 = 0 ; | |
5399 | char *kwnames[] = { | |
5400 | (char *) "self", NULL | |
5401 | }; | |
5402 | ||
5403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
5404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5405 | { | |
5406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5407 | { | |
5408 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
5409 | result = (wxString *) &_result_ref; | |
5410 | } | |
5411 | ||
5412 | wxPyEndAllowThreads(__tstate); | |
5413 | if (PyErr_Occurred()) SWIG_fail; | |
5414 | } | |
f0983263 RD |
5415 | { |
5416 | #if wxUSE_UNICODE | |
5417 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5418 | #else | |
5419 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5420 | #endif | |
5421 | } | |
d14a1e28 RD |
5422 | return resultobj; |
5423 | fail: | |
5424 | return NULL; | |
5425 | } | |
5426 | ||
5427 | ||
5428 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5429 | PyObject *resultobj; | |
5430 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5431 | wxString *result; | |
5432 | PyObject * obj0 = 0 ; | |
5433 | char *kwnames[] = { | |
5434 | (char *) "self", NULL | |
5435 | }; | |
5436 | ||
5437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
5438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5439 | { | |
5440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5441 | { | |
5442 | wxString const &_result_ref = (arg1)->GetLocation(); | |
5443 | result = (wxString *) &_result_ref; | |
5444 | } | |
5445 | ||
5446 | wxPyEndAllowThreads(__tstate); | |
5447 | if (PyErr_Occurred()) SWIG_fail; | |
5448 | } | |
f0983263 RD |
5449 | { |
5450 | #if wxUSE_UNICODE | |
5451 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5452 | #else | |
5453 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5454 | #endif | |
5455 | } | |
d14a1e28 RD |
5456 | return resultobj; |
5457 | fail: | |
5458 | return NULL; | |
5459 | } | |
5460 | ||
5461 | ||
5462 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5463 | PyObject *resultobj; | |
5464 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5465 | wxString *result; | |
5466 | PyObject * obj0 = 0 ; | |
5467 | char *kwnames[] = { | |
5468 | (char *) "self", NULL | |
5469 | }; | |
5470 | ||
5471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
5472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5473 | { | |
5474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5475 | { | |
5476 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
5477 | result = (wxString *) &_result_ref; | |
5478 | } | |
5479 | ||
5480 | wxPyEndAllowThreads(__tstate); | |
5481 | if (PyErr_Occurred()) SWIG_fail; | |
5482 | } | |
f0983263 RD |
5483 | { |
5484 | #if wxUSE_UNICODE | |
5485 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5486 | #else | |
5487 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5488 | #endif | |
5489 | } | |
d14a1e28 RD |
5490 | return resultobj; |
5491 | fail: | |
5492 | return NULL; | |
5493 | } | |
5494 | ||
5495 | ||
5496 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5497 | PyObject *resultobj; | |
5498 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5499 | wxDateTime result; | |
5500 | PyObject * obj0 = 0 ; | |
5501 | char *kwnames[] = { | |
5502 | (char *) "self", NULL | |
5503 | }; | |
5504 | ||
5505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
5506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5507 | { | |
5508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5509 | result = (arg1)->GetModificationTime(); | |
5510 | ||
5511 | wxPyEndAllowThreads(__tstate); | |
5512 | if (PyErr_Occurred()) SWIG_fail; | |
5513 | } | |
5514 | { | |
5515 | wxDateTime * resultptr; | |
5516 | resultptr = new wxDateTime((wxDateTime &) result); | |
5517 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
5518 | } | |
5519 | return resultobj; | |
5520 | fail: | |
5521 | return NULL; | |
5522 | } | |
5523 | ||
5524 | ||
5525 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
5526 | PyObject *obj; | |
5527 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5528 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
5529 | Py_INCREF(obj); | |
5530 | return Py_BuildValue((char *)""); | |
5531 | } | |
5532 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
5533 | PyObject *obj; | |
5534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5535 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
5536 | Py_INCREF(obj); | |
5537 | return Py_BuildValue((char *)""); | |
5538 | } | |
5539 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5540 | PyObject *resultobj; | |
5541 | wxPyFileSystemHandler *result; | |
5542 | char *kwnames[] = { | |
5543 | NULL | |
5544 | }; | |
5545 | ||
5546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
5547 | { | |
5548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5549 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
5550 | ||
5551 | wxPyEndAllowThreads(__tstate); | |
5552 | if (PyErr_Occurred()) SWIG_fail; | |
5553 | } | |
5554 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
5555 | return resultobj; | |
5556 | fail: | |
5557 | return NULL; | |
5558 | } | |
5559 | ||
5560 | ||
5561 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5562 | PyObject *resultobj; | |
5563 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5564 | PyObject *arg2 = (PyObject *) 0 ; | |
5565 | PyObject *arg3 = (PyObject *) 0 ; | |
5566 | PyObject * obj0 = 0 ; | |
5567 | PyObject * obj1 = 0 ; | |
5568 | PyObject * obj2 = 0 ; | |
5569 | char *kwnames[] = { | |
5570 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5571 | }; | |
5572 | ||
5573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5575 | arg2 = obj1; | |
5576 | arg3 = obj2; | |
5577 | { | |
5578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5579 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5580 | ||
5581 | wxPyEndAllowThreads(__tstate); | |
5582 | if (PyErr_Occurred()) SWIG_fail; | |
5583 | } | |
5584 | Py_INCREF(Py_None); resultobj = Py_None; | |
5585 | return resultobj; | |
5586 | fail: | |
5587 | return NULL; | |
5588 | } | |
5589 | ||
5590 | ||
5591 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5592 | PyObject *resultobj; | |
5593 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5594 | wxString *arg2 = 0 ; | |
5595 | bool result; | |
423f194a | 5596 | bool temp2 = False ; |
d14a1e28 RD |
5597 | PyObject * obj0 = 0 ; |
5598 | PyObject * obj1 = 0 ; | |
5599 | char *kwnames[] = { | |
5600 | (char *) "self",(char *) "location", NULL | |
5601 | }; | |
5602 | ||
5603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
5604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5605 | { | |
5606 | arg2 = wxString_in_helper(obj1); | |
5607 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5608 | temp2 = True; |
d14a1e28 RD |
5609 | } |
5610 | { | |
5611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5612 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
5613 | ||
5614 | wxPyEndAllowThreads(__tstate); | |
5615 | if (PyErr_Occurred()) SWIG_fail; | |
5616 | } | |
5617 | resultobj = PyInt_FromLong((long)result); | |
5618 | { | |
5619 | if (temp2) | |
5620 | delete arg2; | |
5621 | } | |
5622 | return resultobj; | |
5623 | fail: | |
5624 | { | |
5625 | if (temp2) | |
5626 | delete arg2; | |
5627 | } | |
5628 | return NULL; | |
5629 | } | |
5630 | ||
5631 | ||
5632 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5633 | PyObject *resultobj; | |
5634 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5635 | wxFileSystem *arg2 = 0 ; | |
5636 | wxString *arg3 = 0 ; | |
5637 | wxFSFile *result; | |
423f194a | 5638 | bool temp3 = False ; |
d14a1e28 RD |
5639 | PyObject * obj0 = 0 ; |
5640 | PyObject * obj1 = 0 ; | |
5641 | PyObject * obj2 = 0 ; | |
5642 | char *kwnames[] = { | |
5643 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
5644 | }; | |
5645 | ||
5646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5648 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5649 | if (arg2 == NULL) { | |
5650 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5651 | } | |
5652 | { | |
5653 | arg3 = wxString_in_helper(obj2); | |
5654 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 5655 | temp3 = True; |
d14a1e28 RD |
5656 | } |
5657 | { | |
5658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5659 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
5660 | ||
5661 | wxPyEndAllowThreads(__tstate); | |
5662 | if (PyErr_Occurred()) SWIG_fail; | |
5663 | } | |
5664 | { | |
5665 | resultobj = wxPyMake_wxObject(result); | |
5666 | } | |
5667 | { | |
5668 | if (temp3) | |
5669 | delete arg3; | |
5670 | } | |
5671 | return resultobj; | |
5672 | fail: | |
5673 | { | |
5674 | if (temp3) | |
5675 | delete arg3; | |
5676 | } | |
5677 | return NULL; | |
5678 | } | |
5679 | ||
5680 | ||
5681 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5682 | PyObject *resultobj; | |
5683 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5684 | wxString *arg2 = 0 ; | |
5685 | int arg3 = (int) 0 ; | |
5686 | wxString result; | |
423f194a | 5687 | bool temp2 = False ; |
d14a1e28 RD |
5688 | PyObject * obj0 = 0 ; |
5689 | PyObject * obj1 = 0 ; | |
5690 | char *kwnames[] = { | |
5691 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
5692 | }; | |
5693 | ||
5694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5696 | { | |
5697 | arg2 = wxString_in_helper(obj1); | |
5698 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5699 | temp2 = True; |
d14a1e28 RD |
5700 | } |
5701 | { | |
5702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5703 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
5704 | ||
5705 | wxPyEndAllowThreads(__tstate); | |
5706 | if (PyErr_Occurred()) SWIG_fail; | |
5707 | } | |
5708 | { | |
5709 | #if wxUSE_UNICODE | |
5710 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5711 | #else | |
5712 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5713 | #endif | |
5714 | } | |
5715 | { | |
5716 | if (temp2) | |
5717 | delete arg2; | |
5718 | } | |
5719 | return resultobj; | |
5720 | fail: | |
5721 | { | |
5722 | if (temp2) | |
5723 | delete arg2; | |
5724 | } | |
5725 | return NULL; | |
5726 | } | |
5727 | ||
5728 | ||
5729 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5730 | PyObject *resultobj; | |
5731 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5732 | wxString result; | |
5733 | PyObject * obj0 = 0 ; | |
5734 | char *kwnames[] = { | |
5735 | (char *) "self", NULL | |
5736 | }; | |
5737 | ||
5738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
5739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5740 | { | |
5741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5742 | result = (arg1)->FindNext(); | |
5743 | ||
5744 | wxPyEndAllowThreads(__tstate); | |
5745 | if (PyErr_Occurred()) SWIG_fail; | |
5746 | } | |
5747 | { | |
5748 | #if wxUSE_UNICODE | |
5749 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5750 | #else | |
5751 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5752 | #endif | |
5753 | } | |
5754 | return resultobj; | |
5755 | fail: | |
5756 | return NULL; | |
5757 | } | |
5758 | ||
5759 | ||
5760 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5761 | PyObject *resultobj; | |
5762 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5763 | wxString *arg2 = 0 ; | |
5764 | wxString result; | |
423f194a | 5765 | bool temp2 = False ; |
d14a1e28 RD |
5766 | PyObject * obj0 = 0 ; |
5767 | PyObject * obj1 = 0 ; | |
5768 | char *kwnames[] = { | |
5769 | (char *) "self",(char *) "location", NULL | |
5770 | }; | |
5771 | ||
5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
5773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5774 | { | |
5775 | arg2 = wxString_in_helper(obj1); | |
5776 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5777 | temp2 = True; |
d14a1e28 RD |
5778 | } |
5779 | { | |
5780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5781 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
5782 | ||
5783 | wxPyEndAllowThreads(__tstate); | |
5784 | if (PyErr_Occurred()) SWIG_fail; | |
5785 | } | |
5786 | { | |
5787 | #if wxUSE_UNICODE | |
5788 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5789 | #else | |
5790 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5791 | #endif | |
5792 | } | |
5793 | { | |
5794 | if (temp2) | |
5795 | delete arg2; | |
5796 | } | |
5797 | return resultobj; | |
5798 | fail: | |
5799 | { | |
5800 | if (temp2) | |
5801 | delete arg2; | |
5802 | } | |
5803 | return NULL; | |
5804 | } | |
5805 | ||
5806 | ||
5807 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5808 | PyObject *resultobj; | |
5809 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5810 | wxString *arg2 = 0 ; | |
5811 | wxString result; | |
423f194a | 5812 | bool temp2 = False ; |
d14a1e28 RD |
5813 | PyObject * obj0 = 0 ; |
5814 | PyObject * obj1 = 0 ; | |
5815 | char *kwnames[] = { | |
5816 | (char *) "self",(char *) "location", NULL | |
5817 | }; | |
5818 | ||
5819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
5820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5821 | { | |
5822 | arg2 = wxString_in_helper(obj1); | |
5823 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5824 | temp2 = True; |
d14a1e28 RD |
5825 | } |
5826 | { | |
5827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5828 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
5829 | ||
5830 | wxPyEndAllowThreads(__tstate); | |
5831 | if (PyErr_Occurred()) SWIG_fail; | |
5832 | } | |
5833 | { | |
5834 | #if wxUSE_UNICODE | |
5835 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5836 | #else | |
5837 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5838 | #endif | |
5839 | } | |
5840 | { | |
5841 | if (temp2) | |
5842 | delete arg2; | |
5843 | } | |
5844 | return resultobj; | |
5845 | fail: | |
5846 | { | |
5847 | if (temp2) | |
5848 | delete arg2; | |
5849 | } | |
5850 | return NULL; | |
5851 | } | |
5852 | ||
5853 | ||
5854 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5855 | PyObject *resultobj; | |
5856 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5857 | wxString *arg2 = 0 ; | |
5858 | wxString result; | |
423f194a | 5859 | bool temp2 = False ; |
d14a1e28 RD |
5860 | PyObject * obj0 = 0 ; |
5861 | PyObject * obj1 = 0 ; | |
5862 | char *kwnames[] = { | |
5863 | (char *) "self",(char *) "location", NULL | |
5864 | }; | |
5865 | ||
5866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
5867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5868 | { | |
5869 | arg2 = wxString_in_helper(obj1); | |
5870 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5871 | temp2 = True; |
d14a1e28 RD |
5872 | } |
5873 | { | |
5874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5875 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
5876 | ||
5877 | wxPyEndAllowThreads(__tstate); | |
5878 | if (PyErr_Occurred()) SWIG_fail; | |
5879 | } | |
5880 | { | |
5881 | #if wxUSE_UNICODE | |
5882 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5883 | #else | |
5884 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5885 | #endif | |
5886 | } | |
5887 | { | |
5888 | if (temp2) | |
5889 | delete arg2; | |
5890 | } | |
5891 | return resultobj; | |
5892 | fail: | |
5893 | { | |
5894 | if (temp2) | |
5895 | delete arg2; | |
5896 | } | |
5897 | return NULL; | |
5898 | } | |
5899 | ||
5900 | ||
5901 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5902 | PyObject *resultobj; | |
5903 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5904 | wxString *arg2 = 0 ; | |
5905 | wxString result; | |
423f194a | 5906 | bool temp2 = False ; |
d14a1e28 RD |
5907 | PyObject * obj0 = 0 ; |
5908 | PyObject * obj1 = 0 ; | |
5909 | char *kwnames[] = { | |
5910 | (char *) "self",(char *) "location", NULL | |
5911 | }; | |
5912 | ||
5913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
5914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5915 | { | |
5916 | arg2 = wxString_in_helper(obj1); | |
5917 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5918 | temp2 = True; |
d14a1e28 RD |
5919 | } |
5920 | { | |
5921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5922 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
5923 | ||
5924 | wxPyEndAllowThreads(__tstate); | |
5925 | if (PyErr_Occurred()) SWIG_fail; | |
5926 | } | |
5927 | { | |
5928 | #if wxUSE_UNICODE | |
5929 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5930 | #else | |
5931 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5932 | #endif | |
5933 | } | |
5934 | { | |
5935 | if (temp2) | |
5936 | delete arg2; | |
5937 | } | |
5938 | return resultobj; | |
5939 | fail: | |
5940 | { | |
5941 | if (temp2) | |
5942 | delete arg2; | |
5943 | } | |
5944 | return NULL; | |
5945 | } | |
5946 | ||
5947 | ||
5948 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5949 | PyObject *resultobj; | |
5950 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5951 | wxString *arg2 = 0 ; | |
5952 | wxString result; | |
423f194a | 5953 | bool temp2 = False ; |
d14a1e28 RD |
5954 | PyObject * obj0 = 0 ; |
5955 | PyObject * obj1 = 0 ; | |
5956 | char *kwnames[] = { | |
5957 | (char *) "self",(char *) "location", NULL | |
5958 | }; | |
5959 | ||
5960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
5961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5962 | { | |
5963 | arg2 = wxString_in_helper(obj1); | |
5964 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5965 | temp2 = True; |
d14a1e28 RD |
5966 | } |
5967 | { | |
5968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5969 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
5970 | ||
5971 | wxPyEndAllowThreads(__tstate); | |
5972 | if (PyErr_Occurred()) SWIG_fail; | |
5973 | } | |
5974 | { | |
5975 | #if wxUSE_UNICODE | |
5976 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5977 | #else | |
5978 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5979 | #endif | |
5980 | } | |
5981 | { | |
5982 | if (temp2) | |
5983 | delete arg2; | |
5984 | } | |
5985 | return resultobj; | |
5986 | fail: | |
5987 | { | |
5988 | if (temp2) | |
5989 | delete arg2; | |
5990 | } | |
5991 | return NULL; | |
5992 | } | |
5993 | ||
5994 | ||
5995 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
5996 | PyObject *obj; | |
5997 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5998 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
5999 | Py_INCREF(obj); | |
6000 | return Py_BuildValue((char *)""); | |
6001 | } | |
6002 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6003 | PyObject *resultobj; | |
6004 | wxFileSystem *result; | |
6005 | char *kwnames[] = { | |
6006 | NULL | |
6007 | }; | |
6008 | ||
6009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6010 | { | |
6011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6012 | result = (wxFileSystem *)new wxFileSystem(); | |
6013 | ||
6014 | wxPyEndAllowThreads(__tstate); | |
6015 | if (PyErr_Occurred()) SWIG_fail; | |
6016 | } | |
6017 | { | |
6018 | resultobj = wxPyMake_wxObject(result); | |
6019 | } | |
6020 | return resultobj; | |
6021 | fail: | |
6022 | return NULL; | |
6023 | } | |
6024 | ||
6025 | ||
6026 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6027 | PyObject *resultobj; | |
6028 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6029 | PyObject * obj0 = 0 ; | |
6030 | char *kwnames[] = { | |
6031 | (char *) "self", NULL | |
6032 | }; | |
6033 | ||
6034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
6035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6036 | { | |
6037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6038 | delete arg1; | |
6039 | ||
6040 | wxPyEndAllowThreads(__tstate); | |
6041 | if (PyErr_Occurred()) SWIG_fail; | |
6042 | } | |
6043 | Py_INCREF(Py_None); resultobj = Py_None; | |
6044 | return resultobj; | |
6045 | fail: | |
6046 | return NULL; | |
6047 | } | |
6048 | ||
6049 | ||
6050 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6051 | PyObject *resultobj; | |
6052 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6053 | wxString *arg2 = 0 ; | |
423f194a RD |
6054 | bool arg3 = (bool) False ; |
6055 | bool temp2 = False ; | |
d14a1e28 RD |
6056 | PyObject * obj0 = 0 ; |
6057 | PyObject * obj1 = 0 ; | |
6058 | PyObject * obj2 = 0 ; | |
6059 | char *kwnames[] = { | |
6060 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
6061 | }; | |
6062 | ||
6063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6065 | { | |
6066 | arg2 = wxString_in_helper(obj1); | |
6067 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6068 | temp2 = True; |
d14a1e28 RD |
6069 | } |
6070 | if (obj2) { | |
6071 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6072 | if (PyErr_Occurred()) SWIG_fail; | |
6073 | } | |
6074 | { | |
6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6076 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
6077 | ||
6078 | wxPyEndAllowThreads(__tstate); | |
6079 | if (PyErr_Occurred()) SWIG_fail; | |
6080 | } | |
6081 | Py_INCREF(Py_None); resultobj = Py_None; | |
6082 | { | |
6083 | if (temp2) | |
6084 | delete arg2; | |
6085 | } | |
6086 | return resultobj; | |
6087 | fail: | |
6088 | { | |
6089 | if (temp2) | |
6090 | delete arg2; | |
6091 | } | |
6092 | return NULL; | |
6093 | } | |
6094 | ||
6095 | ||
6096 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6097 | PyObject *resultobj; | |
6098 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6099 | wxString result; | |
6100 | PyObject * obj0 = 0 ; | |
6101 | char *kwnames[] = { | |
6102 | (char *) "self", NULL | |
6103 | }; | |
6104 | ||
6105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
6106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6107 | { | |
6108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6109 | result = (arg1)->GetPath(); | |
6110 | ||
6111 | wxPyEndAllowThreads(__tstate); | |
6112 | if (PyErr_Occurred()) SWIG_fail; | |
6113 | } | |
6114 | { | |
6115 | #if wxUSE_UNICODE | |
6116 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6117 | #else | |
6118 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6119 | #endif | |
6120 | } | |
6121 | return resultobj; | |
6122 | fail: | |
6123 | return NULL; | |
6124 | } | |
6125 | ||
6126 | ||
6127 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6128 | PyObject *resultobj; | |
6129 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6130 | wxString *arg2 = 0 ; | |
6131 | wxFSFile *result; | |
423f194a | 6132 | bool temp2 = False ; |
d14a1e28 RD |
6133 | PyObject * obj0 = 0 ; |
6134 | PyObject * obj1 = 0 ; | |
6135 | char *kwnames[] = { | |
6136 | (char *) "self",(char *) "location", NULL | |
6137 | }; | |
6138 | ||
6139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
6140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6141 | { | |
6142 | arg2 = wxString_in_helper(obj1); | |
6143 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6144 | temp2 = True; |
d14a1e28 RD |
6145 | } |
6146 | { | |
6147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6148 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
6149 | ||
6150 | wxPyEndAllowThreads(__tstate); | |
6151 | if (PyErr_Occurred()) SWIG_fail; | |
6152 | } | |
6153 | { | |
6154 | resultobj = wxPyMake_wxObject(result); | |
6155 | } | |
6156 | { | |
6157 | if (temp2) | |
6158 | delete arg2; | |
6159 | } | |
6160 | return resultobj; | |
6161 | fail: | |
6162 | { | |
6163 | if (temp2) | |
6164 | delete arg2; | |
6165 | } | |
6166 | return NULL; | |
6167 | } | |
6168 | ||
6169 | ||
6170 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6171 | PyObject *resultobj; | |
6172 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6173 | wxString *arg2 = 0 ; | |
6174 | int arg3 = (int) 0 ; | |
6175 | wxString result; | |
423f194a | 6176 | bool temp2 = False ; |
d14a1e28 RD |
6177 | PyObject * obj0 = 0 ; |
6178 | PyObject * obj1 = 0 ; | |
6179 | char *kwnames[] = { | |
6180 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6181 | }; | |
6182 | ||
6183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileSystem_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6185 | { | |
6186 | arg2 = wxString_in_helper(obj1); | |
6187 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6188 | temp2 = True; |
d14a1e28 RD |
6189 | } |
6190 | { | |
6191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6192 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6193 | ||
6194 | wxPyEndAllowThreads(__tstate); | |
6195 | if (PyErr_Occurred()) SWIG_fail; | |
6196 | } | |
6197 | { | |
6198 | #if wxUSE_UNICODE | |
6199 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6200 | #else | |
6201 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6202 | #endif | |
6203 | } | |
6204 | { | |
6205 | if (temp2) | |
6206 | delete arg2; | |
6207 | } | |
6208 | return resultobj; | |
6209 | fail: | |
6210 | { | |
6211 | if (temp2) | |
6212 | delete arg2; | |
6213 | } | |
6214 | return NULL; | |
6215 | } | |
6216 | ||
6217 | ||
6218 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6219 | PyObject *resultobj; | |
6220 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6221 | wxString result; | |
6222 | PyObject * obj0 = 0 ; | |
6223 | char *kwnames[] = { | |
6224 | (char *) "self", NULL | |
6225 | }; | |
6226 | ||
6227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
6228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6229 | { | |
6230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6231 | result = (arg1)->FindNext(); | |
6232 | ||
6233 | wxPyEndAllowThreads(__tstate); | |
6234 | if (PyErr_Occurred()) SWIG_fail; | |
6235 | } | |
6236 | { | |
6237 | #if wxUSE_UNICODE | |
6238 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6239 | #else | |
6240 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6241 | #endif | |
6242 | } | |
6243 | return resultobj; | |
6244 | fail: | |
6245 | return NULL; | |
6246 | } | |
6247 | ||
6248 | ||
6249 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6250 | PyObject *resultobj; | |
6251 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
6252 | PyObject * obj0 = 0 ; | |
6253 | char *kwnames[] = { | |
6254 | (char *) "handler", NULL | |
6255 | }; | |
6256 | ||
6257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
6258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6259 | { | |
6260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6261 | wxFileSystem::AddHandler(arg1); | |
6262 | ||
6263 | wxPyEndAllowThreads(__tstate); | |
6264 | if (PyErr_Occurred()) SWIG_fail; | |
6265 | } | |
6266 | Py_INCREF(Py_None); resultobj = Py_None; | |
6267 | return resultobj; | |
6268 | fail: | |
6269 | return NULL; | |
6270 | } | |
6271 | ||
6272 | ||
6273 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6274 | PyObject *resultobj; | |
6275 | char *kwnames[] = { | |
6276 | NULL | |
6277 | }; | |
6278 | ||
6279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
6280 | { | |
6281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6282 | wxFileSystem::CleanUpHandlers(); | |
6283 | ||
6284 | wxPyEndAllowThreads(__tstate); | |
6285 | if (PyErr_Occurred()) SWIG_fail; | |
6286 | } | |
6287 | Py_INCREF(Py_None); resultobj = Py_None; | |
6288 | return resultobj; | |
6289 | fail: | |
6290 | return NULL; | |
6291 | } | |
6292 | ||
6293 | ||
6294 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6295 | PyObject *resultobj; | |
6296 | wxString *arg1 = 0 ; | |
6297 | wxString result; | |
423f194a | 6298 | bool temp1 = False ; |
d14a1e28 RD |
6299 | PyObject * obj0 = 0 ; |
6300 | char *kwnames[] = { | |
6301 | (char *) "filename", NULL | |
6302 | }; | |
6303 | ||
6304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
6305 | { | |
6306 | arg1 = wxString_in_helper(obj0); | |
6307 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6308 | temp1 = True; |
d14a1e28 RD |
6309 | } |
6310 | { | |
6311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6312 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
6313 | ||
6314 | wxPyEndAllowThreads(__tstate); | |
6315 | if (PyErr_Occurred()) SWIG_fail; | |
6316 | } | |
6317 | { | |
6318 | #if wxUSE_UNICODE | |
6319 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6320 | #else | |
6321 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6322 | #endif | |
6323 | } | |
6324 | { | |
6325 | if (temp1) | |
6326 | delete arg1; | |
6327 | } | |
6328 | return resultobj; | |
6329 | fail: | |
6330 | { | |
6331 | if (temp1) | |
6332 | delete arg1; | |
6333 | } | |
6334 | return NULL; | |
6335 | } | |
6336 | ||
6337 | ||
6338 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
6339 | PyObject *obj; | |
6340 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6341 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
6342 | Py_INCREF(obj); | |
6343 | return Py_BuildValue((char *)""); | |
6344 | } | |
6345 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6346 | PyObject *resultobj; | |
6347 | wxString *arg1 = 0 ; | |
6348 | wxString result; | |
423f194a | 6349 | bool temp1 = False ; |
d14a1e28 RD |
6350 | PyObject * obj0 = 0 ; |
6351 | char *kwnames[] = { | |
6352 | (char *) "url", NULL | |
6353 | }; | |
6354 | ||
6355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
6356 | { | |
6357 | arg1 = wxString_in_helper(obj0); | |
6358 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6359 | temp1 = True; |
d14a1e28 RD |
6360 | } |
6361 | { | |
6362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6363 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
6364 | ||
6365 | wxPyEndAllowThreads(__tstate); | |
6366 | if (PyErr_Occurred()) SWIG_fail; | |
6367 | } | |
6368 | { | |
6369 | #if wxUSE_UNICODE | |
6370 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6371 | #else | |
6372 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6373 | #endif | |
6374 | } | |
6375 | { | |
6376 | if (temp1) | |
6377 | delete arg1; | |
6378 | } | |
6379 | return resultobj; | |
6380 | fail: | |
6381 | { | |
6382 | if (temp1) | |
6383 | delete arg1; | |
6384 | } | |
6385 | return NULL; | |
6386 | } | |
6387 | ||
6388 | ||
6389 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6390 | PyObject *resultobj; | |
6391 | wxInternetFSHandler *result; | |
6392 | char *kwnames[] = { | |
6393 | NULL | |
6394 | }; | |
6395 | ||
6396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
6397 | { | |
6398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6399 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
6400 | ||
6401 | wxPyEndAllowThreads(__tstate); | |
6402 | if (PyErr_Occurred()) SWIG_fail; | |
6403 | } | |
6404 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInternetFSHandler, 1); | |
6405 | return resultobj; | |
6406 | fail: | |
6407 | return NULL; | |
6408 | } | |
6409 | ||
6410 | ||
6411 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6412 | PyObject *resultobj; | |
6413 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
6414 | wxString *arg2 = 0 ; | |
6415 | bool result; | |
423f194a | 6416 | bool temp2 = False ; |
d14a1e28 RD |
6417 | PyObject * obj0 = 0 ; |
6418 | PyObject * obj1 = 0 ; | |
6419 | char *kwnames[] = { | |
6420 | (char *) "self",(char *) "location", NULL | |
6421 | }; | |
6422 | ||
6423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6425 | { | |
6426 | arg2 = wxString_in_helper(obj1); | |
6427 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6428 | temp2 = True; |
d14a1e28 RD |
6429 | } |
6430 | { | |
6431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6432 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6433 | ||
6434 | wxPyEndAllowThreads(__tstate); | |
6435 | if (PyErr_Occurred()) SWIG_fail; | |
6436 | } | |
6437 | resultobj = PyInt_FromLong((long)result); | |
6438 | { | |
6439 | if (temp2) | |
6440 | delete arg2; | |
6441 | } | |
6442 | return resultobj; | |
6443 | fail: | |
6444 | { | |
6445 | if (temp2) | |
6446 | delete arg2; | |
6447 | } | |
6448 | return NULL; | |
6449 | } | |
6450 | ||
6451 | ||
6452 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6453 | PyObject *resultobj; | |
6454 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
6455 | wxFileSystem *arg2 = 0 ; | |
6456 | wxString *arg3 = 0 ; | |
6457 | wxFSFile *result; | |
423f194a | 6458 | bool temp3 = False ; |
d14a1e28 RD |
6459 | PyObject * obj0 = 0 ; |
6460 | PyObject * obj1 = 0 ; | |
6461 | PyObject * obj2 = 0 ; | |
6462 | char *kwnames[] = { | |
6463 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6464 | }; | |
6465 | ||
6466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6468 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6469 | if (arg2 == NULL) { | |
6470 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6471 | } | |
6472 | { | |
6473 | arg3 = wxString_in_helper(obj2); | |
6474 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6475 | temp3 = True; |
d14a1e28 RD |
6476 | } |
6477 | { | |
6478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6479 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6480 | ||
6481 | wxPyEndAllowThreads(__tstate); | |
6482 | if (PyErr_Occurred()) SWIG_fail; | |
6483 | } | |
6484 | { | |
6485 | resultobj = wxPyMake_wxObject(result); | |
6486 | } | |
6487 | { | |
6488 | if (temp3) | |
6489 | delete arg3; | |
6490 | } | |
6491 | return resultobj; | |
6492 | fail: | |
6493 | { | |
6494 | if (temp3) | |
6495 | delete arg3; | |
6496 | } | |
6497 | return NULL; | |
6498 | } | |
6499 | ||
6500 | ||
6501 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
6502 | PyObject *obj; | |
6503 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6504 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
6505 | Py_INCREF(obj); | |
6506 | return Py_BuildValue((char *)""); | |
6507 | } | |
6508 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6509 | PyObject *resultobj; | |
6510 | wxZipFSHandler *result; | |
6511 | char *kwnames[] = { | |
6512 | NULL | |
6513 | }; | |
6514 | ||
6515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
6516 | { | |
6517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6518 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
6519 | ||
6520 | wxPyEndAllowThreads(__tstate); | |
6521 | if (PyErr_Occurred()) SWIG_fail; | |
6522 | } | |
6523 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxZipFSHandler, 1); | |
6524 | return resultobj; | |
6525 | fail: | |
6526 | return NULL; | |
6527 | } | |
6528 | ||
6529 | ||
6530 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6531 | PyObject *resultobj; | |
6532 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6533 | wxString *arg2 = 0 ; | |
6534 | bool result; | |
423f194a | 6535 | bool temp2 = False ; |
d14a1e28 RD |
6536 | PyObject * obj0 = 0 ; |
6537 | PyObject * obj1 = 0 ; | |
6538 | char *kwnames[] = { | |
6539 | (char *) "self",(char *) "location", NULL | |
6540 | }; | |
6541 | ||
6542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6544 | { | |
6545 | arg2 = wxString_in_helper(obj1); | |
6546 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6547 | temp2 = True; |
d14a1e28 RD |
6548 | } |
6549 | { | |
6550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6551 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6552 | ||
6553 | wxPyEndAllowThreads(__tstate); | |
6554 | if (PyErr_Occurred()) SWIG_fail; | |
6555 | } | |
6556 | resultobj = PyInt_FromLong((long)result); | |
6557 | { | |
6558 | if (temp2) | |
6559 | delete arg2; | |
6560 | } | |
6561 | return resultobj; | |
6562 | fail: | |
6563 | { | |
6564 | if (temp2) | |
6565 | delete arg2; | |
6566 | } | |
6567 | return NULL; | |
6568 | } | |
6569 | ||
6570 | ||
6571 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6572 | PyObject *resultobj; | |
6573 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6574 | wxFileSystem *arg2 = 0 ; | |
6575 | wxString *arg3 = 0 ; | |
6576 | wxFSFile *result; | |
423f194a | 6577 | bool temp3 = False ; |
d14a1e28 RD |
6578 | PyObject * obj0 = 0 ; |
6579 | PyObject * obj1 = 0 ; | |
6580 | PyObject * obj2 = 0 ; | |
6581 | char *kwnames[] = { | |
6582 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6583 | }; | |
6584 | ||
6585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6587 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6588 | if (arg2 == NULL) { | |
6589 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6590 | } | |
6591 | { | |
6592 | arg3 = wxString_in_helper(obj2); | |
6593 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6594 | temp3 = True; |
d14a1e28 RD |
6595 | } |
6596 | { | |
6597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6598 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6599 | ||
6600 | wxPyEndAllowThreads(__tstate); | |
6601 | if (PyErr_Occurred()) SWIG_fail; | |
6602 | } | |
6603 | { | |
6604 | resultobj = wxPyMake_wxObject(result); | |
6605 | } | |
6606 | { | |
6607 | if (temp3) | |
6608 | delete arg3; | |
6609 | } | |
6610 | return resultobj; | |
6611 | fail: | |
6612 | { | |
6613 | if (temp3) | |
6614 | delete arg3; | |
6615 | } | |
6616 | return NULL; | |
6617 | } | |
6618 | ||
6619 | ||
6620 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6621 | PyObject *resultobj; | |
6622 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6623 | wxString *arg2 = 0 ; | |
6624 | int arg3 = (int) 0 ; | |
6625 | wxString result; | |
423f194a | 6626 | bool temp2 = False ; |
d14a1e28 RD |
6627 | PyObject * obj0 = 0 ; |
6628 | PyObject * obj1 = 0 ; | |
6629 | char *kwnames[] = { | |
6630 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6631 | }; | |
6632 | ||
6633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6635 | { | |
6636 | arg2 = wxString_in_helper(obj1); | |
6637 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6638 | temp2 = True; |
d14a1e28 RD |
6639 | } |
6640 | { | |
6641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6642 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6643 | ||
6644 | wxPyEndAllowThreads(__tstate); | |
6645 | if (PyErr_Occurred()) SWIG_fail; | |
6646 | } | |
6647 | { | |
6648 | #if wxUSE_UNICODE | |
6649 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6650 | #else | |
6651 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6652 | #endif | |
6653 | } | |
6654 | { | |
6655 | if (temp2) | |
6656 | delete arg2; | |
6657 | } | |
6658 | return resultobj; | |
6659 | fail: | |
6660 | { | |
6661 | if (temp2) | |
6662 | delete arg2; | |
6663 | } | |
6664 | return NULL; | |
6665 | } | |
6666 | ||
6667 | ||
6668 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6669 | PyObject *resultobj; | |
6670 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6671 | wxString result; | |
6672 | PyObject * obj0 = 0 ; | |
6673 | char *kwnames[] = { | |
6674 | (char *) "self", NULL | |
6675 | }; | |
6676 | ||
6677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
6678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6679 | { | |
6680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6681 | result = (arg1)->FindNext(); | |
6682 | ||
6683 | wxPyEndAllowThreads(__tstate); | |
6684 | if (PyErr_Occurred()) SWIG_fail; | |
6685 | } | |
6686 | { | |
6687 | #if wxUSE_UNICODE | |
6688 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6689 | #else | |
6690 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6691 | #endif | |
6692 | } | |
6693 | return resultobj; | |
6694 | fail: | |
6695 | return NULL; | |
6696 | } | |
6697 | ||
6698 | ||
6699 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
6700 | PyObject *obj; | |
6701 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6702 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
6703 | Py_INCREF(obj); | |
6704 | return Py_BuildValue((char *)""); | |
6705 | } | |
6706 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6707 | PyObject *resultobj; | |
6708 | wxString *arg1 = 0 ; | |
6709 | wxImage *arg2 = 0 ; | |
6710 | long arg3 ; | |
423f194a | 6711 | bool temp1 = False ; |
d14a1e28 RD |
6712 | PyObject * obj0 = 0 ; |
6713 | PyObject * obj1 = 0 ; | |
6714 | char *kwnames[] = { | |
6715 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
6716 | }; | |
6717 | ||
6718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6719 | { | |
6720 | arg1 = wxString_in_helper(obj0); | |
6721 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6722 | temp1 = True; |
d14a1e28 RD |
6723 | } |
6724 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6725 | if (arg2 == NULL) { | |
6726 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6727 | } | |
6728 | { | |
6729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6730 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
6731 | ||
6732 | wxPyEndAllowThreads(__tstate); | |
6733 | if (PyErr_Occurred()) SWIG_fail; | |
6734 | } | |
6735 | Py_INCREF(Py_None); resultobj = Py_None; | |
6736 | { | |
6737 | if (temp1) | |
6738 | delete arg1; | |
6739 | } | |
6740 | return resultobj; | |
6741 | fail: | |
6742 | { | |
6743 | if (temp1) | |
6744 | delete arg1; | |
6745 | } | |
6746 | return NULL; | |
6747 | } | |
6748 | ||
6749 | ||
6750 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6751 | PyObject *resultobj; | |
6752 | wxString *arg1 = 0 ; | |
6753 | wxBitmap *arg2 = 0 ; | |
6754 | long arg3 ; | |
423f194a | 6755 | bool temp1 = False ; |
d14a1e28 RD |
6756 | PyObject * obj0 = 0 ; |
6757 | PyObject * obj1 = 0 ; | |
6758 | char *kwnames[] = { | |
6759 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
6760 | }; | |
6761 | ||
6762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6763 | { | |
6764 | arg1 = wxString_in_helper(obj0); | |
6765 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6766 | temp1 = True; |
d14a1e28 RD |
6767 | } |
6768 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6769 | if (arg2 == NULL) { | |
6770 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6771 | } | |
6772 | { | |
6773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6774 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
6775 | ||
6776 | wxPyEndAllowThreads(__tstate); | |
6777 | if (PyErr_Occurred()) SWIG_fail; | |
6778 | } | |
6779 | Py_INCREF(Py_None); resultobj = Py_None; | |
6780 | { | |
6781 | if (temp1) | |
6782 | delete arg1; | |
6783 | } | |
6784 | return resultobj; | |
6785 | fail: | |
6786 | { | |
6787 | if (temp1) | |
6788 | delete arg1; | |
6789 | } | |
6790 | return NULL; | |
6791 | } | |
6792 | ||
6793 | ||
6794 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6795 | PyObject *resultobj; | |
6796 | wxString *arg1 = 0 ; | |
6797 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 6798 | bool temp1 = False ; |
d14a1e28 RD |
6799 | PyObject * obj0 = 0 ; |
6800 | PyObject * obj1 = 0 ; | |
6801 | char *kwnames[] = { | |
6802 | (char *) "filename",(char *) "data", NULL | |
6803 | }; | |
6804 | ||
6805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
6806 | { | |
6807 | arg1 = wxString_in_helper(obj0); | |
6808 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6809 | temp1 = True; |
d14a1e28 RD |
6810 | } |
6811 | arg2 = obj1; | |
6812 | { | |
6813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6814 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
6815 | ||
6816 | wxPyEndAllowThreads(__tstate); | |
6817 | if (PyErr_Occurred()) SWIG_fail; | |
6818 | } | |
6819 | Py_INCREF(Py_None); resultobj = Py_None; | |
6820 | { | |
6821 | if (temp1) | |
6822 | delete arg1; | |
6823 | } | |
6824 | return resultobj; | |
6825 | fail: | |
6826 | { | |
6827 | if (temp1) | |
6828 | delete arg1; | |
6829 | } | |
6830 | return NULL; | |
6831 | } | |
6832 | ||
6833 | ||
6834 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6835 | PyObject *resultobj; | |
6836 | wxMemoryFSHandler *result; | |
6837 | char *kwnames[] = { | |
6838 | NULL | |
6839 | }; | |
6840 | ||
6841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
6842 | { | |
6843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6844 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
6845 | ||
6846 | wxPyEndAllowThreads(__tstate); | |
6847 | if (PyErr_Occurred()) SWIG_fail; | |
6848 | } | |
6849 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryFSHandler, 1); | |
6850 | return resultobj; | |
6851 | fail: | |
6852 | return NULL; | |
6853 | } | |
6854 | ||
6855 | ||
6856 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6857 | PyObject *resultobj; | |
6858 | wxString *arg1 = 0 ; | |
423f194a | 6859 | bool temp1 = False ; |
d14a1e28 RD |
6860 | PyObject * obj0 = 0 ; |
6861 | char *kwnames[] = { | |
6862 | (char *) "filename", NULL | |
6863 | }; | |
6864 | ||
6865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
6866 | { | |
6867 | arg1 = wxString_in_helper(obj0); | |
6868 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6869 | temp1 = True; |
d14a1e28 RD |
6870 | } |
6871 | { | |
6872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6873 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
6874 | ||
6875 | wxPyEndAllowThreads(__tstate); | |
6876 | if (PyErr_Occurred()) SWIG_fail; | |
6877 | } | |
6878 | Py_INCREF(Py_None); resultobj = Py_None; | |
6879 | { | |
6880 | if (temp1) | |
6881 | delete arg1; | |
6882 | } | |
6883 | return resultobj; | |
6884 | fail: | |
6885 | { | |
6886 | if (temp1) | |
6887 | delete arg1; | |
6888 | } | |
6889 | return NULL; | |
6890 | } | |
6891 | ||
6892 | ||
6893 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6894 | PyObject *resultobj; | |
6895 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
6896 | wxString *arg2 = 0 ; | |
6897 | bool result; | |
423f194a | 6898 | bool temp2 = False ; |
d14a1e28 RD |
6899 | PyObject * obj0 = 0 ; |
6900 | PyObject * obj1 = 0 ; | |
6901 | char *kwnames[] = { | |
6902 | (char *) "self",(char *) "location", NULL | |
6903 | }; | |
6904 | ||
6905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6907 | { | |
6908 | arg2 = wxString_in_helper(obj1); | |
6909 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6910 | temp2 = True; |
d14a1e28 RD |
6911 | } |
6912 | { | |
6913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6914 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6915 | ||
6916 | wxPyEndAllowThreads(__tstate); | |
6917 | if (PyErr_Occurred()) SWIG_fail; | |
6918 | } | |
6919 | resultobj = PyInt_FromLong((long)result); | |
6920 | { | |
6921 | if (temp2) | |
6922 | delete arg2; | |
6923 | } | |
6924 | return resultobj; | |
6925 | fail: | |
6926 | { | |
6927 | if (temp2) | |
6928 | delete arg2; | |
6929 | } | |
6930 | return NULL; | |
6931 | } | |
6932 | ||
6933 | ||
6934 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6935 | PyObject *resultobj; | |
6936 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
6937 | wxFileSystem *arg2 = 0 ; | |
6938 | wxString *arg3 = 0 ; | |
6939 | wxFSFile *result; | |
423f194a | 6940 | bool temp3 = False ; |
d14a1e28 RD |
6941 | PyObject * obj0 = 0 ; |
6942 | PyObject * obj1 = 0 ; | |
6943 | PyObject * obj2 = 0 ; | |
6944 | char *kwnames[] = { | |
6945 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6946 | }; | |
6947 | ||
6948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6950 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6951 | if (arg2 == NULL) { | |
6952 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6953 | } | |
6954 | { | |
6955 | arg3 = wxString_in_helper(obj2); | |
6956 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6957 | temp3 = True; |
d14a1e28 RD |
6958 | } |
6959 | { | |
6960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6961 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6962 | ||
6963 | wxPyEndAllowThreads(__tstate); | |
6964 | if (PyErr_Occurred()) SWIG_fail; | |
6965 | } | |
6966 | { | |
6967 | resultobj = wxPyMake_wxObject(result); | |
6968 | } | |
6969 | { | |
6970 | if (temp3) | |
6971 | delete arg3; | |
6972 | } | |
6973 | return resultobj; | |
6974 | fail: | |
6975 | { | |
6976 | if (temp3) | |
6977 | delete arg3; | |
6978 | } | |
6979 | return NULL; | |
6980 | } | |
6981 | ||
6982 | ||
6983 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6984 | PyObject *resultobj; | |
6985 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
6986 | wxString *arg2 = 0 ; | |
6987 | int arg3 = (int) 0 ; | |
6988 | wxString result; | |
423f194a | 6989 | bool temp2 = False ; |
d14a1e28 RD |
6990 | PyObject * obj0 = 0 ; |
6991 | PyObject * obj1 = 0 ; | |
6992 | char *kwnames[] = { | |
6993 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6994 | }; | |
6995 | ||
6996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6998 | { | |
6999 | arg2 = wxString_in_helper(obj1); | |
7000 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7001 | temp2 = True; |
d14a1e28 RD |
7002 | } |
7003 | { | |
7004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7005 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7006 | ||
7007 | wxPyEndAllowThreads(__tstate); | |
7008 | if (PyErr_Occurred()) SWIG_fail; | |
7009 | } | |
7010 | { | |
7011 | #if wxUSE_UNICODE | |
7012 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7013 | #else | |
7014 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7015 | #endif | |
7016 | } | |
7017 | { | |
7018 | if (temp2) | |
7019 | delete arg2; | |
7020 | } | |
7021 | return resultobj; | |
7022 | fail: | |
7023 | { | |
7024 | if (temp2) | |
7025 | delete arg2; | |
7026 | } | |
7027 | return NULL; | |
7028 | } | |
7029 | ||
7030 | ||
7031 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7032 | PyObject *resultobj; | |
7033 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7034 | wxString result; | |
7035 | PyObject * obj0 = 0 ; | |
7036 | char *kwnames[] = { | |
7037 | (char *) "self", NULL | |
7038 | }; | |
7039 | ||
7040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7042 | { | |
7043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7044 | result = (arg1)->FindNext(); | |
7045 | ||
7046 | wxPyEndAllowThreads(__tstate); | |
7047 | if (PyErr_Occurred()) SWIG_fail; | |
7048 | } | |
7049 | { | |
7050 | #if wxUSE_UNICODE | |
7051 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7052 | #else | |
7053 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7054 | #endif | |
7055 | } | |
7056 | return resultobj; | |
7057 | fail: | |
7058 | return NULL; | |
7059 | } | |
7060 | ||
7061 | ||
7062 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7063 | PyObject *obj; | |
7064 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7065 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
7066 | Py_INCREF(obj); | |
7067 | return Py_BuildValue((char *)""); | |
7068 | } | |
7069 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7070 | PyObject *resultobj; | |
7071 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7072 | wxString result; | |
7073 | PyObject * obj0 = 0 ; | |
7074 | char *kwnames[] = { | |
7075 | (char *) "self", NULL | |
7076 | }; | |
7077 | ||
7078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
7079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7080 | { | |
7081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7082 | result = (arg1)->GetName(); | |
7083 | ||
7084 | wxPyEndAllowThreads(__tstate); | |
7085 | if (PyErr_Occurred()) SWIG_fail; | |
7086 | } | |
7087 | { | |
7088 | #if wxUSE_UNICODE | |
7089 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7090 | #else | |
7091 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7092 | #endif | |
7093 | } | |
7094 | return resultobj; | |
7095 | fail: | |
7096 | return NULL; | |
7097 | } | |
7098 | ||
7099 | ||
7100 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7101 | PyObject *resultobj; | |
7102 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7103 | wxString result; | |
7104 | PyObject * obj0 = 0 ; | |
7105 | char *kwnames[] = { | |
7106 | (char *) "self", NULL | |
7107 | }; | |
7108 | ||
7109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
7110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7111 | { | |
7112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7113 | result = (arg1)->GetExtension(); | |
7114 | ||
7115 | wxPyEndAllowThreads(__tstate); | |
7116 | if (PyErr_Occurred()) SWIG_fail; | |
7117 | } | |
7118 | { | |
7119 | #if wxUSE_UNICODE | |
7120 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7121 | #else | |
7122 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7123 | #endif | |
7124 | } | |
7125 | return resultobj; | |
7126 | fail: | |
7127 | return NULL; | |
7128 | } | |
7129 | ||
7130 | ||
7131 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7132 | PyObject *resultobj; | |
7133 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7134 | long result; | |
7135 | PyObject * obj0 = 0 ; | |
7136 | char *kwnames[] = { | |
7137 | (char *) "self", NULL | |
7138 | }; | |
7139 | ||
7140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
7141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7142 | { | |
7143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7144 | result = (long)(arg1)->GetType(); | |
7145 | ||
7146 | wxPyEndAllowThreads(__tstate); | |
7147 | if (PyErr_Occurred()) SWIG_fail; | |
7148 | } | |
7149 | resultobj = PyInt_FromLong((long)result); | |
7150 | return resultobj; | |
7151 | fail: | |
7152 | return NULL; | |
7153 | } | |
7154 | ||
7155 | ||
7156 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7157 | PyObject *resultobj; | |
7158 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7159 | wxString result; | |
7160 | PyObject * obj0 = 0 ; | |
7161 | char *kwnames[] = { | |
7162 | (char *) "self", NULL | |
7163 | }; | |
7164 | ||
7165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
7166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7167 | { | |
7168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7169 | result = (arg1)->GetMimeType(); | |
7170 | ||
7171 | wxPyEndAllowThreads(__tstate); | |
7172 | if (PyErr_Occurred()) SWIG_fail; | |
7173 | } | |
7174 | { | |
7175 | #if wxUSE_UNICODE | |
7176 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7177 | #else | |
7178 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7179 | #endif | |
7180 | } | |
7181 | return resultobj; | |
7182 | fail: | |
7183 | return NULL; | |
7184 | } | |
7185 | ||
7186 | ||
7187 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7188 | PyObject *resultobj; | |
7189 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7190 | wxString *arg2 = 0 ; | |
7191 | bool result; | |
423f194a | 7192 | bool temp2 = False ; |
d14a1e28 RD |
7193 | PyObject * obj0 = 0 ; |
7194 | PyObject * obj1 = 0 ; | |
7195 | char *kwnames[] = { | |
7196 | (char *) "self",(char *) "name", NULL | |
7197 | }; | |
7198 | ||
7199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
7200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7201 | { | |
7202 | arg2 = wxString_in_helper(obj1); | |
7203 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7204 | temp2 = True; |
d14a1e28 RD |
7205 | } |
7206 | { | |
7207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7208 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
7209 | ||
7210 | wxPyEndAllowThreads(__tstate); | |
7211 | if (PyErr_Occurred()) SWIG_fail; | |
7212 | } | |
7213 | resultobj = PyInt_FromLong((long)result); | |
7214 | { | |
7215 | if (temp2) | |
7216 | delete arg2; | |
7217 | } | |
7218 | return resultobj; | |
7219 | fail: | |
7220 | { | |
7221 | if (temp2) | |
7222 | delete arg2; | |
7223 | } | |
7224 | return NULL; | |
7225 | } | |
7226 | ||
7227 | ||
7228 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7229 | PyObject *resultobj; | |
7230 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7231 | wxString *arg2 = 0 ; | |
423f194a | 7232 | bool temp2 = False ; |
d14a1e28 RD |
7233 | PyObject * obj0 = 0 ; |
7234 | PyObject * obj1 = 0 ; | |
7235 | char *kwnames[] = { | |
7236 | (char *) "self",(char *) "name", NULL | |
7237 | }; | |
7238 | ||
7239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
7240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7241 | { | |
7242 | arg2 = wxString_in_helper(obj1); | |
7243 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7244 | temp2 = True; |
d14a1e28 RD |
7245 | } |
7246 | { | |
7247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7248 | (arg1)->SetName((wxString const &)*arg2); | |
7249 | ||
7250 | wxPyEndAllowThreads(__tstate); | |
7251 | if (PyErr_Occurred()) SWIG_fail; | |
7252 | } | |
7253 | Py_INCREF(Py_None); resultobj = Py_None; | |
7254 | { | |
7255 | if (temp2) | |
7256 | delete arg2; | |
7257 | } | |
7258 | return resultobj; | |
7259 | fail: | |
7260 | { | |
7261 | if (temp2) | |
7262 | delete arg2; | |
7263 | } | |
7264 | return NULL; | |
7265 | } | |
7266 | ||
7267 | ||
7268 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7269 | PyObject *resultobj; | |
7270 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7271 | wxString *arg2 = 0 ; | |
423f194a | 7272 | bool temp2 = False ; |
d14a1e28 RD |
7273 | PyObject * obj0 = 0 ; |
7274 | PyObject * obj1 = 0 ; | |
7275 | char *kwnames[] = { | |
7276 | (char *) "self",(char *) "extension", NULL | |
7277 | }; | |
7278 | ||
7279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
7280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7281 | { | |
7282 | arg2 = wxString_in_helper(obj1); | |
7283 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7284 | temp2 = True; |
d14a1e28 RD |
7285 | } |
7286 | { | |
7287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7288 | (arg1)->SetExtension((wxString const &)*arg2); | |
7289 | ||
7290 | wxPyEndAllowThreads(__tstate); | |
7291 | if (PyErr_Occurred()) SWIG_fail; | |
7292 | } | |
7293 | Py_INCREF(Py_None); resultobj = Py_None; | |
7294 | { | |
7295 | if (temp2) | |
7296 | delete arg2; | |
7297 | } | |
7298 | return resultobj; | |
7299 | fail: | |
7300 | { | |
7301 | if (temp2) | |
7302 | delete arg2; | |
7303 | } | |
7304 | return NULL; | |
7305 | } | |
7306 | ||
7307 | ||
7308 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7309 | PyObject *resultobj; | |
7310 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7311 | long arg2 ; | |
7312 | PyObject * obj0 = 0 ; | |
7313 | char *kwnames[] = { | |
7314 | (char *) "self",(char *) "type", NULL | |
7315 | }; | |
7316 | ||
7317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ImageHandler_SetType",kwnames,&obj0,&arg2)) goto fail; | |
7318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7319 | { | |
7320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7321 | (arg1)->SetType(arg2); | |
7322 | ||
7323 | wxPyEndAllowThreads(__tstate); | |
7324 | if (PyErr_Occurred()) SWIG_fail; | |
7325 | } | |
7326 | Py_INCREF(Py_None); resultobj = Py_None; | |
7327 | return resultobj; | |
7328 | fail: | |
7329 | return NULL; | |
7330 | } | |
7331 | ||
7332 | ||
7333 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7334 | PyObject *resultobj; | |
7335 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7336 | wxString *arg2 = 0 ; | |
423f194a | 7337 | bool temp2 = False ; |
d14a1e28 RD |
7338 | PyObject * obj0 = 0 ; |
7339 | PyObject * obj1 = 0 ; | |
7340 | char *kwnames[] = { | |
7341 | (char *) "self",(char *) "mimetype", NULL | |
7342 | }; | |
7343 | ||
7344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
7345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7346 | { | |
7347 | arg2 = wxString_in_helper(obj1); | |
7348 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7349 | temp2 = True; |
d14a1e28 RD |
7350 | } |
7351 | { | |
7352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7353 | (arg1)->SetMimeType((wxString const &)*arg2); | |
7354 | ||
7355 | wxPyEndAllowThreads(__tstate); | |
7356 | if (PyErr_Occurred()) SWIG_fail; | |
7357 | } | |
7358 | Py_INCREF(Py_None); resultobj = Py_None; | |
7359 | { | |
7360 | if (temp2) | |
7361 | delete arg2; | |
7362 | } | |
7363 | return resultobj; | |
7364 | fail: | |
7365 | { | |
7366 | if (temp2) | |
7367 | delete arg2; | |
7368 | } | |
7369 | return NULL; | |
7370 | } | |
7371 | ||
7372 | ||
7373 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
7374 | PyObject *obj; | |
7375 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7376 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
7377 | Py_INCREF(obj); | |
7378 | return Py_BuildValue((char *)""); | |
7379 | } | |
7380 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7381 | PyObject *resultobj; | |
7382 | wxImageHistogram *result; | |
7383 | char *kwnames[] = { | |
7384 | NULL | |
7385 | }; | |
7386 | ||
7387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
7388 | { | |
7389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7390 | result = (wxImageHistogram *)new wxImageHistogram(); | |
7391 | ||
7392 | wxPyEndAllowThreads(__tstate); | |
7393 | if (PyErr_Occurred()) SWIG_fail; | |
7394 | } | |
7395 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImageHistogram, 1); | |
7396 | return resultobj; | |
7397 | fail: | |
7398 | return NULL; | |
7399 | } | |
7400 | ||
7401 | ||
7402 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7403 | PyObject *resultobj; | |
7404 | unsigned char arg1 ; | |
7405 | unsigned char arg2 ; | |
7406 | unsigned char arg3 ; | |
7407 | unsigned long result; | |
7408 | PyObject * obj0 = 0 ; | |
7409 | PyObject * obj1 = 0 ; | |
7410 | PyObject * obj2 = 0 ; | |
7411 | char *kwnames[] = { | |
7412 | (char *) "r",(char *) "g",(char *) "b", NULL | |
7413 | }; | |
7414 | ||
7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7416 | arg1 = (unsigned char) PyInt_AsLong(obj0); | |
7417 | if (PyErr_Occurred()) SWIG_fail; | |
7418 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
7419 | if (PyErr_Occurred()) SWIG_fail; | |
7420 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
7421 | if (PyErr_Occurred()) SWIG_fail; | |
7422 | { | |
7423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7424 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
7425 | ||
7426 | wxPyEndAllowThreads(__tstate); | |
7427 | if (PyErr_Occurred()) SWIG_fail; | |
7428 | } | |
7429 | resultobj = PyInt_FromLong((long)result); | |
7430 | return resultobj; | |
7431 | fail: | |
7432 | return NULL; | |
7433 | } | |
7434 | ||
7435 | ||
7436 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7437 | PyObject *resultobj; | |
7438 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
7439 | unsigned char *arg2 = (unsigned char *) 0 ; | |
7440 | unsigned char *arg3 = (unsigned char *) 0 ; | |
7441 | unsigned char *arg4 = (unsigned char *) 0 ; | |
7442 | unsigned char arg5 = (unsigned char) 1 ; | |
7443 | unsigned char arg6 = (unsigned char) 0 ; | |
7444 | unsigned char arg7 = (unsigned char) 0 ; | |
7445 | bool result; | |
7446 | unsigned char temp2 ; | |
7447 | unsigned char temp3 ; | |
7448 | unsigned char temp4 ; | |
7449 | PyObject * obj0 = 0 ; | |
7450 | PyObject * obj1 = 0 ; | |
7451 | PyObject * obj2 = 0 ; | |
7452 | PyObject * obj3 = 0 ; | |
7453 | char *kwnames[] = { | |
7454 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
7455 | }; | |
7456 | ||
7457 | arg2 = &temp2; | |
7458 | arg3 = &temp3; | |
7459 | arg4 = &temp4; | |
7460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7462 | if (obj1) { | |
7463 | arg5 = (unsigned char) PyInt_AsLong(obj1); | |
7464 | if (PyErr_Occurred()) SWIG_fail; | |
7465 | } | |
7466 | if (obj2) { | |
7467 | arg6 = (unsigned char) PyInt_AsLong(obj2); | |
7468 | if (PyErr_Occurred()) SWIG_fail; | |
7469 | } | |
7470 | if (obj3) { | |
7471 | arg7 = (unsigned char) PyInt_AsLong(obj3); | |
7472 | if (PyErr_Occurred()) SWIG_fail; | |
7473 | } | |
7474 | { | |
7475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7476 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
7477 | ||
7478 | wxPyEndAllowThreads(__tstate); | |
7479 | if (PyErr_Occurred()) SWIG_fail; | |
7480 | } | |
7481 | resultobj = PyInt_FromLong((long)result); | |
7482 | { | |
7483 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
7484 | resultobj = t_output_helper(resultobj,o); | |
7485 | } | |
7486 | { | |
7487 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7488 | resultobj = t_output_helper(resultobj,o); | |
7489 | } | |
7490 | { | |
7491 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
7492 | resultobj = t_output_helper(resultobj,o); | |
7493 | } | |
7494 | return resultobj; | |
7495 | fail: | |
7496 | return NULL; | |
7497 | } | |
7498 | ||
7499 | ||
7500 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
7501 | PyObject *obj; | |
7502 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7503 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
7504 | Py_INCREF(obj); | |
7505 | return Py_BuildValue((char *)""); | |
7506 | } | |
7507 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7508 | PyObject *resultobj; | |
7509 | wxString *arg1 = 0 ; | |
7510 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
7511 | int arg3 = (int) -1 ; | |
7512 | wxImage *result; | |
423f194a | 7513 | bool temp1 = False ; |
d14a1e28 RD |
7514 | PyObject * obj0 = 0 ; |
7515 | char *kwnames[] = { | |
7516 | (char *) "name",(char *) "type",(char *) "index", NULL | |
7517 | }; | |
7518 | ||
7519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|li:new_Image",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7520 | { | |
7521 | arg1 = wxString_in_helper(obj0); | |
7522 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7523 | temp1 = True; |
d14a1e28 RD |
7524 | } |
7525 | { | |
7526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7527 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
7528 | ||
7529 | wxPyEndAllowThreads(__tstate); | |
7530 | if (PyErr_Occurred()) SWIG_fail; | |
7531 | } | |
7532 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7533 | { | |
7534 | if (temp1) | |
7535 | delete arg1; | |
7536 | } | |
7537 | return resultobj; | |
7538 | fail: | |
7539 | { | |
7540 | if (temp1) | |
7541 | delete arg1; | |
7542 | } | |
7543 | return NULL; | |
7544 | } | |
7545 | ||
7546 | ||
7547 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7548 | PyObject *resultobj; | |
7549 | wxImage *arg1 = (wxImage *) 0 ; | |
7550 | PyObject * obj0 = 0 ; | |
7551 | char *kwnames[] = { | |
7552 | (char *) "self", NULL | |
7553 | }; | |
7554 | ||
7555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
7556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7557 | { | |
7558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7559 | delete arg1; | |
7560 | ||
7561 | wxPyEndAllowThreads(__tstate); | |
7562 | if (PyErr_Occurred()) SWIG_fail; | |
7563 | } | |
7564 | Py_INCREF(Py_None); resultobj = Py_None; | |
7565 | return resultobj; | |
7566 | fail: | |
7567 | return NULL; | |
7568 | } | |
7569 | ||
7570 | ||
7571 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7572 | PyObject *resultobj; | |
7573 | wxString *arg1 = 0 ; | |
7574 | wxString *arg2 = 0 ; | |
7575 | int arg3 = (int) -1 ; | |
7576 | wxImage *result; | |
423f194a RD |
7577 | bool temp1 = False ; |
7578 | bool temp2 = False ; | |
d14a1e28 RD |
7579 | PyObject * obj0 = 0 ; |
7580 | PyObject * obj1 = 0 ; | |
7581 | char *kwnames[] = { | |
7582 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
7583 | }; | |
7584 | ||
7585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:new_ImageFromMime",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
7586 | { | |
7587 | arg1 = wxString_in_helper(obj0); | |
7588 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7589 | temp1 = True; |
d14a1e28 RD |
7590 | } |
7591 | { | |
7592 | arg2 = wxString_in_helper(obj1); | |
7593 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7594 | temp2 = True; |
d14a1e28 RD |
7595 | } |
7596 | { | |
7597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7598 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
7599 | ||
7600 | wxPyEndAllowThreads(__tstate); | |
7601 | if (PyErr_Occurred()) SWIG_fail; | |
7602 | } | |
7603 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7604 | { | |
7605 | if (temp1) | |
7606 | delete arg1; | |
7607 | } | |
7608 | { | |
7609 | if (temp2) | |
7610 | delete arg2; | |
7611 | } | |
7612 | return resultobj; | |
7613 | fail: | |
7614 | { | |
7615 | if (temp1) | |
7616 | delete arg1; | |
7617 | } | |
7618 | { | |
7619 | if (temp2) | |
7620 | delete arg2; | |
7621 | } | |
7622 | return NULL; | |
7623 | } | |
7624 | ||
7625 | ||
7626 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7627 | PyObject *resultobj; | |
7628 | wxInputStream *arg1 = 0 ; | |
7629 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
7630 | int arg3 = (int) -1 ; | |
7631 | wxImage *result; | |
7632 | wxPyInputStream *temp1 ; | |
7633 | bool created1 ; | |
7634 | PyObject * obj0 = 0 ; | |
7635 | char *kwnames[] = { | |
7636 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
7637 | }; | |
7638 | ||
7639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|li:new_ImageFromStream",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7640 | { | |
7641 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
7642 | arg1 = temp1->m_wxis; | |
423f194a | 7643 | created1 = False; |
d14a1e28 RD |
7644 | } else { |
7645 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 7646 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
7647 | if (arg1 == NULL) { |
7648 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
7649 | SWIG_fail; | |
7650 | } | |
423f194a | 7651 | created1 = True; |
d14a1e28 RD |
7652 | } |
7653 | } | |
7654 | { | |
7655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7656 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
7657 | ||
7658 | wxPyEndAllowThreads(__tstate); | |
7659 | if (PyErr_Occurred()) SWIG_fail; | |
7660 | } | |
7661 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7662 | { | |
7663 | if (created1) | |
7664 | delete arg1; | |
7665 | } | |
7666 | return resultobj; | |
7667 | fail: | |
7668 | { | |
7669 | if (created1) | |
7670 | delete arg1; | |
7671 | } | |
7672 | return NULL; | |
7673 | } | |
7674 | ||
7675 | ||
7676 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7677 | PyObject *resultobj; | |
7678 | wxInputStream *arg1 = 0 ; | |
7679 | wxString *arg2 = 0 ; | |
7680 | int arg3 = (int) -1 ; | |
7681 | wxImage *result; | |
7682 | wxPyInputStream *temp1 ; | |
7683 | bool created1 ; | |
423f194a | 7684 | bool temp2 = False ; |
d14a1e28 RD |
7685 | PyObject * obj0 = 0 ; |
7686 | PyObject * obj1 = 0 ; | |
7687 | char *kwnames[] = { | |
7688 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
7689 | }; | |
7690 | ||
7691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
7692 | { | |
7693 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
7694 | arg1 = temp1->m_wxis; | |
423f194a | 7695 | created1 = False; |
d14a1e28 RD |
7696 | } else { |
7697 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 7698 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
7699 | if (arg1 == NULL) { |
7700 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
7701 | SWIG_fail; | |
7702 | } | |
423f194a | 7703 | created1 = True; |
d14a1e28 RD |
7704 | } |
7705 | } | |
7706 | { | |
7707 | arg2 = wxString_in_helper(obj1); | |
7708 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7709 | temp2 = True; |
d14a1e28 RD |
7710 | } |
7711 | { | |
7712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7713 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
7714 | ||
7715 | wxPyEndAllowThreads(__tstate); | |
7716 | if (PyErr_Occurred()) SWIG_fail; | |
7717 | } | |
7718 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7719 | { | |
7720 | if (created1) | |
7721 | delete arg1; | |
7722 | } | |
7723 | { | |
7724 | if (temp2) | |
7725 | delete arg2; | |
7726 | } | |
7727 | return resultobj; | |
7728 | fail: | |
7729 | { | |
7730 | if (created1) | |
7731 | delete arg1; | |
7732 | } | |
7733 | { | |
7734 | if (temp2) | |
7735 | delete arg2; | |
7736 | } | |
7737 | return NULL; | |
7738 | } | |
7739 | ||
7740 | ||
7741 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7742 | PyObject *resultobj; | |
7743 | int arg1 = (int) 0 ; | |
7744 | int arg2 = (int) 0 ; | |
423f194a | 7745 | bool arg3 = (bool) True ; |
d14a1e28 RD |
7746 | wxImage *result; |
7747 | PyObject * obj2 = 0 ; | |
7748 | char *kwnames[] = { | |
7749 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
7750 | }; | |
7751 | ||
7752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_EmptyImage",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
7753 | if (obj2) { | |
7754 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
7755 | if (PyErr_Occurred()) SWIG_fail; | |
7756 | } | |
7757 | { | |
7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7759 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
7760 | ||
7761 | wxPyEndAllowThreads(__tstate); | |
7762 | if (PyErr_Occurred()) SWIG_fail; | |
7763 | } | |
7764 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7765 | return resultobj; | |
7766 | fail: | |
7767 | return NULL; | |
7768 | } | |
7769 | ||
7770 | ||
7771 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7772 | PyObject *resultobj; | |
7773 | wxBitmap *arg1 = 0 ; | |
7774 | wxImage *result; | |
7775 | PyObject * obj0 = 0 ; | |
7776 | char *kwnames[] = { | |
7777 | (char *) "bitmap", NULL | |
7778 | }; | |
7779 | ||
7780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
7781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7782 | if (arg1 == NULL) { | |
7783 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7784 | } | |
7785 | { | |
7786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7787 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
7788 | ||
7789 | wxPyEndAllowThreads(__tstate); | |
7790 | if (PyErr_Occurred()) SWIG_fail; | |
7791 | } | |
7792 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7793 | return resultobj; | |
7794 | fail: | |
7795 | return NULL; | |
7796 | } | |
7797 | ||
7798 | ||
7799 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7800 | PyObject *resultobj; | |
7801 | int arg1 ; | |
7802 | int arg2 ; | |
7803 | unsigned char *arg3 = (unsigned char *) 0 ; | |
7804 | wxImage *result; | |
7805 | PyObject * obj2 = 0 ; | |
7806 | char *kwnames[] = { | |
7807 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7808 | }; | |
7809 | ||
7810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiO:new_ImageFromData",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
7811 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7812 | { | |
7813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7814 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
7815 | ||
7816 | wxPyEndAllowThreads(__tstate); | |
7817 | if (PyErr_Occurred()) SWIG_fail; | |
7818 | } | |
7819 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7820 | return resultobj; | |
7821 | fail: | |
7822 | return NULL; | |
7823 | } | |
7824 | ||
7825 | ||
7826 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7827 | PyObject *resultobj; | |
7828 | wxImage *arg1 = (wxImage *) 0 ; | |
7829 | int arg2 ; | |
7830 | int arg3 ; | |
7831 | PyObject * obj0 = 0 ; | |
7832 | char *kwnames[] = { | |
7833 | (char *) "self",(char *) "width",(char *) "height", NULL | |
7834 | }; | |
7835 | ||
7836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_Create",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7838 | { | |
7839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7840 | (arg1)->Create(arg2,arg3); | |
7841 | ||
7842 | wxPyEndAllowThreads(__tstate); | |
7843 | if (PyErr_Occurred()) SWIG_fail; | |
7844 | } | |
7845 | Py_INCREF(Py_None); resultobj = Py_None; | |
7846 | return resultobj; | |
7847 | fail: | |
7848 | return NULL; | |
7849 | } | |
7850 | ||
7851 | ||
7852 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7853 | PyObject *resultobj; | |
7854 | wxImage *arg1 = (wxImage *) 0 ; | |
7855 | PyObject * obj0 = 0 ; | |
7856 | char *kwnames[] = { | |
7857 | (char *) "self", NULL | |
7858 | }; | |
7859 | ||
7860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
7861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7862 | { | |
7863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7864 | (arg1)->Destroy(); | |
7865 | ||
7866 | wxPyEndAllowThreads(__tstate); | |
7867 | if (PyErr_Occurred()) SWIG_fail; | |
7868 | } | |
7869 | Py_INCREF(Py_None); resultobj = Py_None; | |
7870 | return resultobj; | |
7871 | fail: | |
7872 | return NULL; | |
7873 | } | |
7874 | ||
7875 | ||
7876 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7877 | PyObject *resultobj; | |
7878 | wxImage *arg1 = (wxImage *) 0 ; | |
7879 | int arg2 ; | |
7880 | int arg3 ; | |
7881 | SwigValueWrapper< wxImage > result; | |
7882 | PyObject * obj0 = 0 ; | |
7883 | char *kwnames[] = { | |
7884 | (char *) "self",(char *) "width",(char *) "height", NULL | |
7885 | }; | |
7886 | ||
7887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_Scale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7889 | { | |
7890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7891 | result = (arg1)->Scale(arg2,arg3); | |
7892 | ||
7893 | wxPyEndAllowThreads(__tstate); | |
7894 | if (PyErr_Occurred()) SWIG_fail; | |
7895 | } | |
7896 | { | |
7897 | wxImage * resultptr; | |
7898 | resultptr = new wxImage((wxImage &) result); | |
7899 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
7900 | } | |
7901 | return resultobj; | |
7902 | fail: | |
7903 | return NULL; | |
7904 | } | |
7905 | ||
7906 | ||
7907 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7908 | PyObject *resultobj; | |
7909 | wxImage *arg1 = (wxImage *) 0 ; | |
7910 | int arg2 ; | |
7911 | int arg3 ; | |
7912 | SwigValueWrapper< wxImage > result; | |
7913 | PyObject * obj0 = 0 ; | |
7914 | char *kwnames[] = { | |
7915 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
7916 | }; | |
7917 | ||
7918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_ShrinkBy",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7920 | { | |
7921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7922 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
7923 | ||
7924 | wxPyEndAllowThreads(__tstate); | |
7925 | if (PyErr_Occurred()) SWIG_fail; | |
7926 | } | |
7927 | { | |
7928 | wxImage * resultptr; | |
7929 | resultptr = new wxImage((wxImage &) result); | |
7930 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
7931 | } | |
7932 | return resultobj; | |
7933 | fail: | |
7934 | return NULL; | |
7935 | } | |
7936 | ||
7937 | ||
7938 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7939 | PyObject *resultobj; | |
7940 | wxImage *arg1 = (wxImage *) 0 ; | |
7941 | int arg2 ; | |
7942 | int arg3 ; | |
7943 | wxImage *result; | |
7944 | PyObject * obj0 = 0 ; | |
7945 | char *kwnames[] = { | |
7946 | (char *) "self",(char *) "width",(char *) "height", NULL | |
7947 | }; | |
7948 | ||
7949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_Rescale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7951 | { | |
7952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7953 | { | |
7954 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
7955 | result = (wxImage *) &_result_ref; | |
7956 | } | |
7957 | ||
7958 | wxPyEndAllowThreads(__tstate); | |
7959 | if (PyErr_Occurred()) SWIG_fail; | |
7960 | } | |
7961 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 0); | |
7962 | return resultobj; | |
7963 | fail: | |
7964 | return NULL; | |
7965 | } | |
7966 | ||
7967 | ||
7968 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7969 | PyObject *resultobj; | |
7970 | wxImage *arg1 = (wxImage *) 0 ; | |
7971 | int arg2 ; | |
7972 | int arg3 ; | |
7973 | unsigned char arg4 ; | |
7974 | unsigned char arg5 ; | |
7975 | unsigned char arg6 ; | |
7976 | PyObject * obj0 = 0 ; | |
7977 | PyObject * obj3 = 0 ; | |
7978 | PyObject * obj4 = 0 ; | |
7979 | PyObject * obj5 = 0 ; | |
7980 | char *kwnames[] = { | |
7981 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
7982 | }; | |
7983 | ||
7984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiOOO:Image_SetRGB",kwnames,&obj0,&arg2,&arg3,&obj3,&obj4,&obj5)) goto fail; | |
7985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7986 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
7987 | if (PyErr_Occurred()) SWIG_fail; | |
7988 | arg5 = (unsigned char) PyInt_AsLong(obj4); | |
7989 | if (PyErr_Occurred()) SWIG_fail; | |
7990 | arg6 = (unsigned char) PyInt_AsLong(obj5); | |
7991 | if (PyErr_Occurred()) SWIG_fail; | |
7992 | { | |
7993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7994 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
7995 | ||
7996 | wxPyEndAllowThreads(__tstate); | |
7997 | if (PyErr_Occurred()) SWIG_fail; | |
7998 | } | |
7999 | Py_INCREF(Py_None); resultobj = Py_None; | |
8000 | return resultobj; | |
8001 | fail: | |
8002 | return NULL; | |
8003 | } | |
8004 | ||
8005 | ||
8006 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8007 | PyObject *resultobj; | |
8008 | wxImage *arg1 = (wxImage *) 0 ; | |
8009 | int arg2 ; | |
8010 | int arg3 ; | |
8011 | unsigned char result; | |
8012 | PyObject * obj0 = 0 ; | |
8013 | char *kwnames[] = { | |
8014 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8015 | }; | |
8016 | ||
8017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetRed",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8019 | { | |
8020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8021 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
8022 | ||
8023 | wxPyEndAllowThreads(__tstate); | |
8024 | if (PyErr_Occurred()) SWIG_fail; | |
8025 | } | |
8026 | resultobj = PyInt_FromLong((long)result); | |
8027 | return resultobj; | |
8028 | fail: | |
8029 | return NULL; | |
8030 | } | |
8031 | ||
8032 | ||
8033 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8034 | PyObject *resultobj; | |
8035 | wxImage *arg1 = (wxImage *) 0 ; | |
8036 | int arg2 ; | |
8037 | int arg3 ; | |
8038 | unsigned char result; | |
8039 | PyObject * obj0 = 0 ; | |
8040 | char *kwnames[] = { | |
8041 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8042 | }; | |
8043 | ||
8044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetGreen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8046 | { | |
8047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8048 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
8049 | ||
8050 | wxPyEndAllowThreads(__tstate); | |
8051 | if (PyErr_Occurred()) SWIG_fail; | |
8052 | } | |
8053 | resultobj = PyInt_FromLong((long)result); | |
8054 | return resultobj; | |
8055 | fail: | |
8056 | return NULL; | |
8057 | } | |
8058 | ||
8059 | ||
8060 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8061 | PyObject *resultobj; | |
8062 | wxImage *arg1 = (wxImage *) 0 ; | |
8063 | int arg2 ; | |
8064 | int arg3 ; | |
8065 | unsigned char result; | |
8066 | PyObject * obj0 = 0 ; | |
8067 | char *kwnames[] = { | |
8068 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8069 | }; | |
8070 | ||
8071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetBlue",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8073 | { | |
8074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8075 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
8076 | ||
8077 | wxPyEndAllowThreads(__tstate); | |
8078 | if (PyErr_Occurred()) SWIG_fail; | |
8079 | } | |
8080 | resultobj = PyInt_FromLong((long)result); | |
8081 | return resultobj; | |
8082 | fail: | |
8083 | return NULL; | |
8084 | } | |
8085 | ||
8086 | ||
8087 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8088 | PyObject *resultobj; | |
8089 | wxImage *arg1 = (wxImage *) 0 ; | |
8090 | int arg2 ; | |
8091 | int arg3 ; | |
8092 | unsigned char arg4 ; | |
8093 | PyObject * obj0 = 0 ; | |
8094 | PyObject * obj3 = 0 ; | |
8095 | char *kwnames[] = { | |
8096 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
8097 | }; | |
8098 | ||
8099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Image_SetAlpha",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
8100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8101 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
8102 | if (PyErr_Occurred()) SWIG_fail; | |
8103 | { | |
8104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8105 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
8106 | ||
8107 | wxPyEndAllowThreads(__tstate); | |
8108 | if (PyErr_Occurred()) SWIG_fail; | |
8109 | } | |
8110 | Py_INCREF(Py_None); resultobj = Py_None; | |
8111 | return resultobj; | |
8112 | fail: | |
8113 | return NULL; | |
8114 | } | |
8115 | ||
8116 | ||
8117 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8118 | PyObject *resultobj; | |
8119 | wxImage *arg1 = (wxImage *) 0 ; | |
8120 | int arg2 ; | |
8121 | int arg3 ; | |
8122 | unsigned char result; | |
8123 | PyObject * obj0 = 0 ; | |
8124 | char *kwnames[] = { | |
8125 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8126 | }; | |
8127 | ||
8128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetAlpha",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8130 | { | |
8131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8132 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
8133 | ||
8134 | wxPyEndAllowThreads(__tstate); | |
8135 | if (PyErr_Occurred()) SWIG_fail; | |
8136 | } | |
8137 | resultobj = PyInt_FromLong((long)result); | |
8138 | return resultobj; | |
8139 | fail: | |
8140 | return NULL; | |
8141 | } | |
8142 | ||
8143 | ||
8144 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8145 | PyObject *resultobj; | |
8146 | wxImage *arg1 = (wxImage *) 0 ; | |
8147 | bool result; | |
8148 | PyObject * obj0 = 0 ; | |
8149 | char *kwnames[] = { | |
8150 | (char *) "self", NULL | |
8151 | }; | |
8152 | ||
8153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
8154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8155 | { | |
8156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8157 | result = (bool)(arg1)->HasAlpha(); | |
8158 | ||
8159 | wxPyEndAllowThreads(__tstate); | |
8160 | if (PyErr_Occurred()) SWIG_fail; | |
8161 | } | |
8162 | resultobj = PyInt_FromLong((long)result); | |
8163 | return resultobj; | |
8164 | fail: | |
8165 | return NULL; | |
8166 | } | |
8167 | ||
8168 | ||
8169 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8170 | PyObject *resultobj; | |
8171 | wxImage *arg1 = (wxImage *) 0 ; | |
8172 | byte *arg2 = (byte *) 0 ; | |
8173 | byte *arg3 = (byte *) 0 ; | |
8174 | byte *arg4 = (byte *) 0 ; | |
8175 | byte arg5 = (byte) 0 ; | |
8176 | byte arg6 = (byte) 0 ; | |
8177 | byte arg7 = (byte) 0 ; | |
8178 | bool result; | |
8179 | byte temp2 ; | |
8180 | byte temp3 ; | |
8181 | byte temp4 ; | |
8182 | PyObject * obj0 = 0 ; | |
8183 | PyObject * obj1 = 0 ; | |
8184 | PyObject * obj2 = 0 ; | |
8185 | PyObject * obj3 = 0 ; | |
8186 | char *kwnames[] = { | |
8187 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8188 | }; | |
8189 | ||
8190 | arg2 = &temp2; | |
8191 | arg3 = &temp3; | |
8192 | arg4 = &temp4; | |
8193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8195 | if (obj1) { | |
8196 | arg5 = (byte) PyInt_AsLong(obj1); | |
8197 | if (PyErr_Occurred()) SWIG_fail; | |
8198 | } | |
8199 | if (obj2) { | |
8200 | arg6 = (byte) PyInt_AsLong(obj2); | |
8201 | if (PyErr_Occurred()) SWIG_fail; | |
8202 | } | |
8203 | if (obj3) { | |
8204 | arg7 = (byte) PyInt_AsLong(obj3); | |
8205 | if (PyErr_Occurred()) SWIG_fail; | |
8206 | } | |
8207 | { | |
8208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8209 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8210 | ||
8211 | wxPyEndAllowThreads(__tstate); | |
8212 | if (PyErr_Occurred()) SWIG_fail; | |
8213 | } | |
8214 | resultobj = PyInt_FromLong((long)result); | |
8215 | { | |
8216 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8217 | resultobj = t_output_helper(resultobj,o); | |
8218 | } | |
8219 | { | |
8220 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8221 | resultobj = t_output_helper(resultobj,o); | |
8222 | } | |
8223 | { | |
8224 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8225 | resultobj = t_output_helper(resultobj,o); | |
8226 | } | |
8227 | return resultobj; | |
8228 | fail: | |
8229 | return NULL; | |
8230 | } | |
8231 | ||
8232 | ||
8233 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8234 | PyObject *resultobj; | |
8235 | wxImage *arg1 = (wxImage *) 0 ; | |
8236 | wxImage *arg2 = 0 ; | |
8237 | byte arg3 ; | |
8238 | byte arg4 ; | |
8239 | byte arg5 ; | |
8240 | bool result; | |
8241 | PyObject * obj0 = 0 ; | |
8242 | PyObject * obj1 = 0 ; | |
8243 | PyObject * obj2 = 0 ; | |
8244 | PyObject * obj3 = 0 ; | |
8245 | PyObject * obj4 = 0 ; | |
8246 | char *kwnames[] = { | |
8247 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
8248 | }; | |
8249 | ||
8250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8252 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8253 | if (arg2 == NULL) { | |
8254 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8255 | } | |
8256 | arg3 = (byte) PyInt_AsLong(obj2); | |
8257 | if (PyErr_Occurred()) SWIG_fail; | |
8258 | arg4 = (byte) PyInt_AsLong(obj3); | |
8259 | if (PyErr_Occurred()) SWIG_fail; | |
8260 | arg5 = (byte) PyInt_AsLong(obj4); | |
8261 | if (PyErr_Occurred()) SWIG_fail; | |
8262 | { | |
8263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8264 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
8265 | ||
8266 | wxPyEndAllowThreads(__tstate); | |
8267 | if (PyErr_Occurred()) SWIG_fail; | |
8268 | } | |
8269 | resultobj = PyInt_FromLong((long)result); | |
8270 | return resultobj; | |
8271 | fail: | |
8272 | return NULL; | |
8273 | } | |
8274 | ||
8275 | ||
8276 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8277 | PyObject *resultobj; | |
8278 | wxString *arg1 = 0 ; | |
8279 | bool result; | |
423f194a | 8280 | bool temp1 = False ; |
d14a1e28 RD |
8281 | PyObject * obj0 = 0 ; |
8282 | char *kwnames[] = { | |
8283 | (char *) "name", NULL | |
8284 | }; | |
8285 | ||
8286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
8287 | { | |
8288 | arg1 = wxString_in_helper(obj0); | |
8289 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8290 | temp1 = True; |
d14a1e28 RD |
8291 | } |
8292 | { | |
8293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8294 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
8295 | ||
8296 | wxPyEndAllowThreads(__tstate); | |
8297 | if (PyErr_Occurred()) SWIG_fail; | |
8298 | } | |
8299 | resultobj = PyInt_FromLong((long)result); | |
8300 | { | |
8301 | if (temp1) | |
8302 | delete arg1; | |
8303 | } | |
8304 | return resultobj; | |
8305 | fail: | |
8306 | { | |
8307 | if (temp1) | |
8308 | delete arg1; | |
8309 | } | |
8310 | return NULL; | |
8311 | } | |
8312 | ||
8313 | ||
8314 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8315 | PyObject *resultobj; | |
8316 | wxString *arg1 = 0 ; | |
8317 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8318 | int result; | |
423f194a | 8319 | bool temp1 = False ; |
d14a1e28 RD |
8320 | PyObject * obj0 = 0 ; |
8321 | char *kwnames[] = { | |
8322 | (char *) "name",(char *) "type", NULL | |
8323 | }; | |
8324 | ||
8325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:Image_GetImageCount",kwnames,&obj0,&arg2)) goto fail; | |
8326 | { | |
8327 | arg1 = wxString_in_helper(obj0); | |
8328 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8329 | temp1 = True; |
d14a1e28 RD |
8330 | } |
8331 | { | |
8332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8333 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
8334 | ||
8335 | wxPyEndAllowThreads(__tstate); | |
8336 | if (PyErr_Occurred()) SWIG_fail; | |
8337 | } | |
8338 | resultobj = PyInt_FromLong((long)result); | |
8339 | { | |
8340 | if (temp1) | |
8341 | delete arg1; | |
8342 | } | |
8343 | return resultobj; | |
8344 | fail: | |
8345 | { | |
8346 | if (temp1) | |
8347 | delete arg1; | |
8348 | } | |
8349 | return NULL; | |
8350 | } | |
8351 | ||
8352 | ||
8353 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8354 | PyObject *resultobj; | |
8355 | wxImage *arg1 = (wxImage *) 0 ; | |
8356 | wxString *arg2 = 0 ; | |
8357 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
8358 | int arg4 = (int) -1 ; | |
8359 | bool result; | |
423f194a | 8360 | bool temp2 = False ; |
d14a1e28 RD |
8361 | PyObject * obj0 = 0 ; |
8362 | PyObject * obj1 = 0 ; | |
8363 | char *kwnames[] = { | |
8364 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
8365 | }; | |
8366 | ||
8367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|li:Image_LoadFile",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
8368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8369 | { | |
8370 | arg2 = wxString_in_helper(obj1); | |
8371 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8372 | temp2 = True; |
d14a1e28 RD |
8373 | } |
8374 | { | |
8375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8376 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
8377 | ||
8378 | wxPyEndAllowThreads(__tstate); | |
8379 | if (PyErr_Occurred()) SWIG_fail; | |
8380 | } | |
8381 | resultobj = PyInt_FromLong((long)result); | |
8382 | { | |
8383 | if (temp2) | |
8384 | delete arg2; | |
8385 | } | |
8386 | return resultobj; | |
8387 | fail: | |
8388 | { | |
8389 | if (temp2) | |
8390 | delete arg2; | |
8391 | } | |
8392 | return NULL; | |
8393 | } | |
8394 | ||
8395 | ||
8396 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8397 | PyObject *resultobj; | |
8398 | wxImage *arg1 = (wxImage *) 0 ; | |
8399 | wxString *arg2 = 0 ; | |
8400 | wxString *arg3 = 0 ; | |
8401 | int arg4 = (int) -1 ; | |
8402 | bool result; | |
423f194a RD |
8403 | bool temp2 = False ; |
8404 | bool temp3 = False ; | |
d14a1e28 RD |
8405 | PyObject * obj0 = 0 ; |
8406 | PyObject * obj1 = 0 ; | |
8407 | PyObject * obj2 = 0 ; | |
8408 | char *kwnames[] = { | |
8409 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8410 | }; | |
8411 | ||
8412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
8413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8414 | { | |
8415 | arg2 = wxString_in_helper(obj1); | |
8416 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8417 | temp2 = True; |
d14a1e28 RD |
8418 | } |
8419 | { | |
8420 | arg3 = wxString_in_helper(obj2); | |
8421 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8422 | temp3 = True; |
d14a1e28 RD |
8423 | } |
8424 | { | |
8425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8426 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
8427 | ||
8428 | wxPyEndAllowThreads(__tstate); | |
8429 | if (PyErr_Occurred()) SWIG_fail; | |
8430 | } | |
8431 | resultobj = PyInt_FromLong((long)result); | |
8432 | { | |
8433 | if (temp2) | |
8434 | delete arg2; | |
8435 | } | |
8436 | { | |
8437 | if (temp3) | |
8438 | delete arg3; | |
8439 | } | |
8440 | return resultobj; | |
8441 | fail: | |
8442 | { | |
8443 | if (temp2) | |
8444 | delete arg2; | |
8445 | } | |
8446 | { | |
8447 | if (temp3) | |
8448 | delete arg3; | |
8449 | } | |
8450 | return NULL; | |
8451 | } | |
8452 | ||
8453 | ||
8454 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8455 | PyObject *resultobj; | |
8456 | wxImage *arg1 = (wxImage *) 0 ; | |
8457 | wxString *arg2 = 0 ; | |
8458 | int arg3 ; | |
8459 | bool result; | |
423f194a | 8460 | bool temp2 = False ; |
d14a1e28 RD |
8461 | PyObject * obj0 = 0 ; |
8462 | PyObject * obj1 = 0 ; | |
8463 | char *kwnames[] = { | |
8464 | (char *) "self",(char *) "name",(char *) "type", NULL | |
8465 | }; | |
8466 | ||
8467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Image_SaveFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
8468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8469 | { | |
8470 | arg2 = wxString_in_helper(obj1); | |
8471 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8472 | temp2 = True; |
d14a1e28 RD |
8473 | } |
8474 | { | |
8475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8476 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
8477 | ||
8478 | wxPyEndAllowThreads(__tstate); | |
8479 | if (PyErr_Occurred()) SWIG_fail; | |
8480 | } | |
8481 | resultobj = PyInt_FromLong((long)result); | |
8482 | { | |
8483 | if (temp2) | |
8484 | delete arg2; | |
8485 | } | |
8486 | return resultobj; | |
8487 | fail: | |
8488 | { | |
8489 | if (temp2) | |
8490 | delete arg2; | |
8491 | } | |
8492 | return NULL; | |
8493 | } | |
8494 | ||
8495 | ||
8496 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8497 | PyObject *resultobj; | |
8498 | wxImage *arg1 = (wxImage *) 0 ; | |
8499 | wxString *arg2 = 0 ; | |
8500 | wxString *arg3 = 0 ; | |
8501 | bool result; | |
423f194a RD |
8502 | bool temp2 = False ; |
8503 | bool temp3 = False ; | |
d14a1e28 RD |
8504 | PyObject * obj0 = 0 ; |
8505 | PyObject * obj1 = 0 ; | |
8506 | PyObject * obj2 = 0 ; | |
8507 | char *kwnames[] = { | |
8508 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
8509 | }; | |
8510 | ||
8511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8513 | { | |
8514 | arg2 = wxString_in_helper(obj1); | |
8515 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8516 | temp2 = True; |
d14a1e28 RD |
8517 | } |
8518 | { | |
8519 | arg3 = wxString_in_helper(obj2); | |
8520 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8521 | temp3 = True; |
d14a1e28 RD |
8522 | } |
8523 | { | |
8524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8525 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
8526 | ||
8527 | wxPyEndAllowThreads(__tstate); | |
8528 | if (PyErr_Occurred()) SWIG_fail; | |
8529 | } | |
8530 | resultobj = PyInt_FromLong((long)result); | |
8531 | { | |
8532 | if (temp2) | |
8533 | delete arg2; | |
8534 | } | |
8535 | { | |
8536 | if (temp3) | |
8537 | delete arg3; | |
8538 | } | |
8539 | return resultobj; | |
8540 | fail: | |
8541 | { | |
8542 | if (temp2) | |
8543 | delete arg2; | |
8544 | } | |
8545 | { | |
8546 | if (temp3) | |
8547 | delete arg3; | |
8548 | } | |
8549 | return NULL; | |
8550 | } | |
8551 | ||
8552 | ||
8553 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8554 | PyObject *resultobj; | |
8555 | wxInputStream *arg1 = 0 ; | |
8556 | bool result; | |
8557 | wxPyInputStream *temp1 ; | |
8558 | bool created1 ; | |
8559 | PyObject * obj0 = 0 ; | |
8560 | char *kwnames[] = { | |
8561 | (char *) "stream", NULL | |
8562 | }; | |
8563 | ||
8564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
8565 | { | |
8566 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8567 | arg1 = temp1->m_wxis; | |
423f194a | 8568 | created1 = False; |
d14a1e28 RD |
8569 | } else { |
8570 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8571 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8572 | if (arg1 == NULL) { |
8573 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8574 | SWIG_fail; | |
8575 | } | |
423f194a | 8576 | created1 = True; |
d14a1e28 RD |
8577 | } |
8578 | } | |
8579 | { | |
8580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8581 | result = (bool)wxImage::CanRead(*arg1); | |
8582 | ||
8583 | wxPyEndAllowThreads(__tstate); | |
8584 | if (PyErr_Occurred()) SWIG_fail; | |
8585 | } | |
8586 | resultobj = PyInt_FromLong((long)result); | |
8587 | { | |
8588 | if (created1) | |
8589 | delete arg1; | |
8590 | } | |
8591 | return resultobj; | |
8592 | fail: | |
8593 | { | |
8594 | if (created1) | |
8595 | delete arg1; | |
8596 | } | |
8597 | return NULL; | |
8598 | } | |
8599 | ||
8600 | ||
8601 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8602 | PyObject *resultobj; | |
8603 | wxImage *arg1 = (wxImage *) 0 ; | |
8604 | wxInputStream *arg2 = 0 ; | |
8605 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
8606 | int arg4 = (int) -1 ; | |
8607 | bool result; | |
8608 | wxPyInputStream *temp2 ; | |
8609 | bool created2 ; | |
8610 | PyObject * obj0 = 0 ; | |
8611 | PyObject * obj1 = 0 ; | |
8612 | char *kwnames[] = { | |
8613 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
8614 | }; | |
8615 | ||
8616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|li:Image_LoadStream",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
8617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8618 | { | |
8619 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
8620 | arg2 = temp2->m_wxis; | |
423f194a | 8621 | created2 = False; |
d14a1e28 RD |
8622 | } else { |
8623 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8624 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
8625 | if (arg2 == NULL) { |
8626 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8627 | SWIG_fail; | |
8628 | } | |
423f194a | 8629 | created2 = True; |
d14a1e28 RD |
8630 | } |
8631 | } | |
8632 | { | |
8633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8634 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
8635 | ||
8636 | wxPyEndAllowThreads(__tstate); | |
8637 | if (PyErr_Occurred()) SWIG_fail; | |
8638 | } | |
8639 | resultobj = PyInt_FromLong((long)result); | |
8640 | { | |
8641 | if (created2) | |
8642 | delete arg2; | |
8643 | } | |
8644 | return resultobj; | |
8645 | fail: | |
8646 | { | |
8647 | if (created2) | |
8648 | delete arg2; | |
8649 | } | |
8650 | return NULL; | |
8651 | } | |
8652 | ||
8653 | ||
8654 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8655 | PyObject *resultobj; | |
8656 | wxImage *arg1 = (wxImage *) 0 ; | |
8657 | wxInputStream *arg2 = 0 ; | |
8658 | wxString *arg3 = 0 ; | |
8659 | int arg4 = (int) -1 ; | |
8660 | bool result; | |
8661 | wxPyInputStream *temp2 ; | |
8662 | bool created2 ; | |
423f194a | 8663 | bool temp3 = False ; |
d14a1e28 RD |
8664 | PyObject * obj0 = 0 ; |
8665 | PyObject * obj1 = 0 ; | |
8666 | PyObject * obj2 = 0 ; | |
8667 | char *kwnames[] = { | |
8668 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8669 | }; | |
8670 | ||
8671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
8672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8673 | { | |
8674 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
8675 | arg2 = temp2->m_wxis; | |
423f194a | 8676 | created2 = False; |
d14a1e28 RD |
8677 | } else { |
8678 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8679 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
8680 | if (arg2 == NULL) { |
8681 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8682 | SWIG_fail; | |
8683 | } | |
423f194a | 8684 | created2 = True; |
d14a1e28 RD |
8685 | } |
8686 | } | |
8687 | { | |
8688 | arg3 = wxString_in_helper(obj2); | |
8689 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8690 | temp3 = True; |
d14a1e28 RD |
8691 | } |
8692 | { | |
8693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8694 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
8695 | ||
8696 | wxPyEndAllowThreads(__tstate); | |
8697 | if (PyErr_Occurred()) SWIG_fail; | |
8698 | } | |
8699 | resultobj = PyInt_FromLong((long)result); | |
8700 | { | |
8701 | if (created2) | |
8702 | delete arg2; | |
8703 | } | |
8704 | { | |
8705 | if (temp3) | |
8706 | delete arg3; | |
8707 | } | |
8708 | return resultobj; | |
8709 | fail: | |
8710 | { | |
8711 | if (created2) | |
8712 | delete arg2; | |
8713 | } | |
8714 | { | |
8715 | if (temp3) | |
8716 | delete arg3; | |
8717 | } | |
8718 | return NULL; | |
8719 | } | |
8720 | ||
8721 | ||
8722 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8723 | PyObject *resultobj; | |
8724 | wxImage *arg1 = (wxImage *) 0 ; | |
8725 | bool result; | |
8726 | PyObject * obj0 = 0 ; | |
8727 | char *kwnames[] = { | |
8728 | (char *) "self", NULL | |
8729 | }; | |
8730 | ||
8731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
8732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8733 | { | |
8734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8735 | result = (bool)(arg1)->Ok(); | |
8736 | ||
8737 | wxPyEndAllowThreads(__tstate); | |
8738 | if (PyErr_Occurred()) SWIG_fail; | |
8739 | } | |
8740 | resultobj = PyInt_FromLong((long)result); | |
8741 | return resultobj; | |
8742 | fail: | |
8743 | return NULL; | |
8744 | } | |
8745 | ||
8746 | ||
8747 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8748 | PyObject *resultobj; | |
8749 | wxImage *arg1 = (wxImage *) 0 ; | |
8750 | int result; | |
8751 | PyObject * obj0 = 0 ; | |
8752 | char *kwnames[] = { | |
8753 | (char *) "self", NULL | |
8754 | }; | |
8755 | ||
8756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
8757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8758 | { | |
8759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8760 | result = (int)(arg1)->GetWidth(); | |
8761 | ||
8762 | wxPyEndAllowThreads(__tstate); | |
8763 | if (PyErr_Occurred()) SWIG_fail; | |
8764 | } | |
8765 | resultobj = PyInt_FromLong((long)result); | |
8766 | return resultobj; | |
8767 | fail: | |
8768 | return NULL; | |
8769 | } | |
8770 | ||
8771 | ||
8772 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8773 | PyObject *resultobj; | |
8774 | wxImage *arg1 = (wxImage *) 0 ; | |
8775 | int result; | |
8776 | PyObject * obj0 = 0 ; | |
8777 | char *kwnames[] = { | |
8778 | (char *) "self", NULL | |
8779 | }; | |
8780 | ||
8781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
8782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8783 | { | |
8784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8785 | result = (int)(arg1)->GetHeight(); | |
8786 | ||
8787 | wxPyEndAllowThreads(__tstate); | |
8788 | if (PyErr_Occurred()) SWIG_fail; | |
8789 | } | |
8790 | resultobj = PyInt_FromLong((long)result); | |
8791 | return resultobj; | |
8792 | fail: | |
8793 | return NULL; | |
8794 | } | |
8795 | ||
8796 | ||
8797 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8798 | PyObject *resultobj; | |
8799 | wxImage *arg1 = (wxImage *) 0 ; | |
8800 | wxRect *arg2 = 0 ; | |
8801 | SwigValueWrapper< wxImage > result; | |
8802 | wxRect temp2 ; | |
8803 | PyObject * obj0 = 0 ; | |
8804 | PyObject * obj1 = 0 ; | |
8805 | char *kwnames[] = { | |
8806 | (char *) "self",(char *) "rect", NULL | |
8807 | }; | |
8808 | ||
8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
8810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8811 | { | |
8812 | arg2 = &temp2; | |
8813 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8814 | } | |
8815 | { | |
8816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8817 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
8818 | ||
8819 | wxPyEndAllowThreads(__tstate); | |
8820 | if (PyErr_Occurred()) SWIG_fail; | |
8821 | } | |
8822 | { | |
8823 | wxImage * resultptr; | |
8824 | resultptr = new wxImage((wxImage &) result); | |
8825 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8826 | } | |
8827 | return resultobj; | |
8828 | fail: | |
8829 | return NULL; | |
8830 | } | |
8831 | ||
8832 | ||
8833 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8834 | PyObject *resultobj; | |
8835 | wxImage *arg1 = (wxImage *) 0 ; | |
8836 | SwigValueWrapper< wxImage > result; | |
8837 | PyObject * obj0 = 0 ; | |
8838 | char *kwnames[] = { | |
8839 | (char *) "self", NULL | |
8840 | }; | |
8841 | ||
8842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
8843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8844 | { | |
8845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8846 | result = (arg1)->Copy(); | |
8847 | ||
8848 | wxPyEndAllowThreads(__tstate); | |
8849 | if (PyErr_Occurred()) SWIG_fail; | |
8850 | } | |
8851 | { | |
8852 | wxImage * resultptr; | |
8853 | resultptr = new wxImage((wxImage &) result); | |
8854 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8855 | } | |
8856 | return resultobj; | |
8857 | fail: | |
8858 | return NULL; | |
8859 | } | |
8860 | ||
8861 | ||
8862 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8863 | PyObject *resultobj; | |
8864 | wxImage *arg1 = (wxImage *) 0 ; | |
8865 | wxImage *arg2 = 0 ; | |
8866 | int arg3 ; | |
8867 | int arg4 ; | |
8868 | PyObject * obj0 = 0 ; | |
8869 | PyObject * obj1 = 0 ; | |
8870 | char *kwnames[] = { | |
8871 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
8872 | }; | |
8873 | ||
8874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:Image_Paste",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
8875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8876 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8877 | if (arg2 == NULL) { | |
8878 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8879 | } | |
8880 | { | |
8881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8882 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
8883 | ||
8884 | wxPyEndAllowThreads(__tstate); | |
8885 | if (PyErr_Occurred()) SWIG_fail; | |
8886 | } | |
8887 | Py_INCREF(Py_None); resultobj = Py_None; | |
8888 | return resultobj; | |
8889 | fail: | |
8890 | return NULL; | |
8891 | } | |
8892 | ||
8893 | ||
8894 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8895 | PyObject *resultobj; | |
8896 | wxImage *arg1 = (wxImage *) 0 ; | |
8897 | PyObject *result; | |
8898 | PyObject * obj0 = 0 ; | |
8899 | char *kwnames[] = { | |
8900 | (char *) "self", NULL | |
8901 | }; | |
8902 | ||
8903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
8904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8905 | { | |
8906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8907 | result = (PyObject *)wxImage_GetData(arg1); | |
8908 | ||
8909 | wxPyEndAllowThreads(__tstate); | |
8910 | if (PyErr_Occurred()) SWIG_fail; | |
8911 | } | |
8912 | resultobj = result; | |
8913 | return resultobj; | |
8914 | fail: | |
8915 | return NULL; | |
8916 | } | |
8917 | ||
8918 | ||
8919 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8920 | PyObject *resultobj; | |
8921 | wxImage *arg1 = (wxImage *) 0 ; | |
8922 | PyObject *arg2 = (PyObject *) 0 ; | |
8923 | PyObject * obj0 = 0 ; | |
8924 | PyObject * obj1 = 0 ; | |
8925 | char *kwnames[] = { | |
8926 | (char *) "self",(char *) "data", NULL | |
8927 | }; | |
8928 | ||
8929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
8930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8931 | arg2 = obj1; | |
8932 | { | |
8933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8934 | wxImage_SetData(arg1,arg2); | |
8935 | ||
8936 | wxPyEndAllowThreads(__tstate); | |
8937 | if (PyErr_Occurred()) SWIG_fail; | |
8938 | } | |
8939 | Py_INCREF(Py_None); resultobj = Py_None; | |
8940 | return resultobj; | |
8941 | fail: | |
8942 | return NULL; | |
8943 | } | |
8944 | ||
8945 | ||
8946 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8947 | PyObject *resultobj; | |
8948 | wxImage *arg1 = (wxImage *) 0 ; | |
8949 | PyObject *result; | |
8950 | PyObject * obj0 = 0 ; | |
8951 | char *kwnames[] = { | |
8952 | (char *) "self", NULL | |
8953 | }; | |
8954 | ||
8955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
8956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8957 | { | |
8958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8959 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
8960 | ||
8961 | wxPyEndAllowThreads(__tstate); | |
8962 | if (PyErr_Occurred()) SWIG_fail; | |
8963 | } | |
8964 | resultobj = result; | |
8965 | return resultobj; | |
8966 | fail: | |
8967 | return NULL; | |
8968 | } | |
8969 | ||
8970 | ||
8971 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8972 | PyObject *resultobj; | |
8973 | wxImage *arg1 = (wxImage *) 0 ; | |
8974 | PyObject *arg2 = (PyObject *) 0 ; | |
8975 | PyObject * obj0 = 0 ; | |
8976 | PyObject * obj1 = 0 ; | |
8977 | char *kwnames[] = { | |
8978 | (char *) "self",(char *) "data", NULL | |
8979 | }; | |
8980 | ||
8981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
8982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8983 | arg2 = obj1; | |
8984 | { | |
8985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8986 | wxImage_SetDataBuffer(arg1,arg2); | |
8987 | ||
8988 | wxPyEndAllowThreads(__tstate); | |
8989 | if (PyErr_Occurred()) SWIG_fail; | |
8990 | } | |
8991 | Py_INCREF(Py_None); resultobj = Py_None; | |
8992 | return resultobj; | |
8993 | fail: | |
8994 | return NULL; | |
8995 | } | |
8996 | ||
8997 | ||
8998 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8999 | PyObject *resultobj; | |
9000 | wxImage *arg1 = (wxImage *) 0 ; | |
9001 | PyObject *result; | |
9002 | PyObject * obj0 = 0 ; | |
9003 | char *kwnames[] = { | |
9004 | (char *) "self", NULL | |
9005 | }; | |
9006 | ||
9007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
9008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9009 | { | |
9010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9011 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
9012 | ||
9013 | wxPyEndAllowThreads(__tstate); | |
9014 | if (PyErr_Occurred()) SWIG_fail; | |
9015 | } | |
9016 | resultobj = result; | |
9017 | return resultobj; | |
9018 | fail: | |
9019 | return NULL; | |
9020 | } | |
9021 | ||
9022 | ||
9023 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9024 | PyObject *resultobj; | |
9025 | wxImage *arg1 = (wxImage *) 0 ; | |
9026 | PyObject *arg2 = (PyObject *) 0 ; | |
9027 | PyObject * obj0 = 0 ; | |
9028 | PyObject * obj1 = 0 ; | |
9029 | char *kwnames[] = { | |
9030 | (char *) "self",(char *) "data", NULL | |
9031 | }; | |
9032 | ||
9033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
9034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9035 | arg2 = obj1; | |
9036 | { | |
9037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9038 | wxImage_SetAlphaData(arg1,arg2); | |
9039 | ||
9040 | wxPyEndAllowThreads(__tstate); | |
9041 | if (PyErr_Occurred()) SWIG_fail; | |
9042 | } | |
9043 | Py_INCREF(Py_None); resultobj = Py_None; | |
9044 | return resultobj; | |
9045 | fail: | |
9046 | return NULL; | |
9047 | } | |
9048 | ||
9049 | ||
9050 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9051 | PyObject *resultobj; | |
9052 | wxImage *arg1 = (wxImage *) 0 ; | |
9053 | PyObject *result; | |
9054 | PyObject * obj0 = 0 ; | |
9055 | char *kwnames[] = { | |
9056 | (char *) "self", NULL | |
9057 | }; | |
9058 | ||
9059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
9060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9061 | { | |
9062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9063 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
9064 | ||
9065 | wxPyEndAllowThreads(__tstate); | |
9066 | if (PyErr_Occurred()) SWIG_fail; | |
9067 | } | |
9068 | resultobj = result; | |
9069 | return resultobj; | |
9070 | fail: | |
9071 | return NULL; | |
9072 | } | |
9073 | ||
9074 | ||
9075 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9076 | PyObject *resultobj; | |
9077 | wxImage *arg1 = (wxImage *) 0 ; | |
9078 | PyObject *arg2 = (PyObject *) 0 ; | |
9079 | PyObject * obj0 = 0 ; | |
9080 | PyObject * obj1 = 0 ; | |
9081 | char *kwnames[] = { | |
9082 | (char *) "self",(char *) "data", NULL | |
9083 | }; | |
9084 | ||
9085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
9086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9087 | arg2 = obj1; | |
9088 | { | |
9089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9090 | wxImage_SetAlphaBuffer(arg1,arg2); | |
9091 | ||
9092 | wxPyEndAllowThreads(__tstate); | |
9093 | if (PyErr_Occurred()) SWIG_fail; | |
9094 | } | |
9095 | Py_INCREF(Py_None); resultobj = Py_None; | |
9096 | return resultobj; | |
9097 | fail: | |
9098 | return NULL; | |
9099 | } | |
9100 | ||
9101 | ||
9102 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9103 | PyObject *resultobj; | |
9104 | wxImage *arg1 = (wxImage *) 0 ; | |
9105 | unsigned char arg2 ; | |
9106 | unsigned char arg3 ; | |
9107 | unsigned char arg4 ; | |
9108 | PyObject * obj0 = 0 ; | |
9109 | PyObject * obj1 = 0 ; | |
9110 | PyObject * obj2 = 0 ; | |
9111 | PyObject * obj3 = 0 ; | |
9112 | char *kwnames[] = { | |
9113 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9114 | }; | |
9115 | ||
9116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9118 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
9119 | if (PyErr_Occurred()) SWIG_fail; | |
9120 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
9121 | if (PyErr_Occurred()) SWIG_fail; | |
9122 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
9123 | if (PyErr_Occurred()) SWIG_fail; | |
9124 | { | |
9125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9126 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
9127 | ||
9128 | wxPyEndAllowThreads(__tstate); | |
9129 | if (PyErr_Occurred()) SWIG_fail; | |
9130 | } | |
9131 | Py_INCREF(Py_None); resultobj = Py_None; | |
9132 | return resultobj; | |
9133 | fail: | |
9134 | return NULL; | |
9135 | } | |
9136 | ||
9137 | ||
9138 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9139 | PyObject *resultobj; | |
9140 | wxImage *arg1 = (wxImage *) 0 ; | |
9141 | unsigned char result; | |
9142 | PyObject * obj0 = 0 ; | |
9143 | char *kwnames[] = { | |
9144 | (char *) "self", NULL | |
9145 | }; | |
9146 | ||
9147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
9148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9149 | { | |
9150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9151 | result = (unsigned char)(arg1)->GetMaskRed(); | |
9152 | ||
9153 | wxPyEndAllowThreads(__tstate); | |
9154 | if (PyErr_Occurred()) SWIG_fail; | |
9155 | } | |
9156 | resultobj = PyInt_FromLong((long)result); | |
9157 | return resultobj; | |
9158 | fail: | |
9159 | return NULL; | |
9160 | } | |
9161 | ||
9162 | ||
9163 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9164 | PyObject *resultobj; | |
9165 | wxImage *arg1 = (wxImage *) 0 ; | |
9166 | unsigned char result; | |
9167 | PyObject * obj0 = 0 ; | |
9168 | char *kwnames[] = { | |
9169 | (char *) "self", NULL | |
9170 | }; | |
9171 | ||
9172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
9173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9174 | { | |
9175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9176 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
9177 | ||
9178 | wxPyEndAllowThreads(__tstate); | |
9179 | if (PyErr_Occurred()) SWIG_fail; | |
9180 | } | |
9181 | resultobj = PyInt_FromLong((long)result); | |
9182 | return resultobj; | |
9183 | fail: | |
9184 | return NULL; | |
9185 | } | |
9186 | ||
9187 | ||
9188 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9189 | PyObject *resultobj; | |
9190 | wxImage *arg1 = (wxImage *) 0 ; | |
9191 | unsigned char result; | |
9192 | PyObject * obj0 = 0 ; | |
9193 | char *kwnames[] = { | |
9194 | (char *) "self", NULL | |
9195 | }; | |
9196 | ||
9197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
9198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9199 | { | |
9200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9201 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
9202 | ||
9203 | wxPyEndAllowThreads(__tstate); | |
9204 | if (PyErr_Occurred()) SWIG_fail; | |
9205 | } | |
9206 | resultobj = PyInt_FromLong((long)result); | |
9207 | return resultobj; | |
9208 | fail: | |
9209 | return NULL; | |
9210 | } | |
9211 | ||
9212 | ||
9213 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9214 | PyObject *resultobj; | |
9215 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 9216 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9217 | PyObject * obj0 = 0 ; |
9218 | PyObject * obj1 = 0 ; | |
9219 | char *kwnames[] = { | |
9220 | (char *) "self",(char *) "mask", NULL | |
9221 | }; | |
9222 | ||
9223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
9224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9225 | if (obj1) { | |
9226 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
9227 | if (PyErr_Occurred()) SWIG_fail; | |
9228 | } | |
9229 | { | |
9230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9231 | (arg1)->SetMask(arg2); | |
9232 | ||
9233 | wxPyEndAllowThreads(__tstate); | |
9234 | if (PyErr_Occurred()) SWIG_fail; | |
9235 | } | |
9236 | Py_INCREF(Py_None); resultobj = Py_None; | |
9237 | return resultobj; | |
9238 | fail: | |
9239 | return NULL; | |
9240 | } | |
9241 | ||
9242 | ||
9243 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9244 | PyObject *resultobj; | |
9245 | wxImage *arg1 = (wxImage *) 0 ; | |
9246 | bool result; | |
9247 | PyObject * obj0 = 0 ; | |
9248 | char *kwnames[] = { | |
9249 | (char *) "self", NULL | |
9250 | }; | |
9251 | ||
9252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
9253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9254 | { | |
9255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9256 | result = (bool)(arg1)->HasMask(); | |
9257 | ||
9258 | wxPyEndAllowThreads(__tstate); | |
9259 | if (PyErr_Occurred()) SWIG_fail; | |
9260 | } | |
9261 | resultobj = PyInt_FromLong((long)result); | |
9262 | return resultobj; | |
9263 | fail: | |
9264 | return NULL; | |
9265 | } | |
9266 | ||
9267 | ||
9268 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9269 | PyObject *resultobj; | |
9270 | wxImage *arg1 = (wxImage *) 0 ; | |
9271 | double arg2 ; | |
9272 | wxPoint *arg3 = 0 ; | |
423f194a | 9273 | bool arg4 = (bool) True ; |
d14a1e28 RD |
9274 | wxPoint *arg5 = (wxPoint *) NULL ; |
9275 | SwigValueWrapper< wxImage > result; | |
9276 | wxPoint temp3 ; | |
9277 | PyObject * obj0 = 0 ; | |
9278 | PyObject * obj2 = 0 ; | |
9279 | PyObject * obj3 = 0 ; | |
9280 | PyObject * obj4 = 0 ; | |
9281 | char *kwnames[] = { | |
9282 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
9283 | }; | |
9284 | ||
9285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OdO|OO:Image_Rotate",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4)) goto fail; | |
9286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9287 | { | |
9288 | arg3 = &temp3; | |
9289 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9290 | } | |
9291 | if (obj3) { | |
9292 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
9293 | if (PyErr_Occurred()) SWIG_fail; | |
9294 | } | |
9295 | if (obj4) { | |
9296 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9297 | } | |
9298 | { | |
9299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9300 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
9301 | ||
9302 | wxPyEndAllowThreads(__tstate); | |
9303 | if (PyErr_Occurred()) SWIG_fail; | |
9304 | } | |
9305 | { | |
9306 | wxImage * resultptr; | |
9307 | resultptr = new wxImage((wxImage &) result); | |
9308 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9309 | } | |
9310 | return resultobj; | |
9311 | fail: | |
9312 | return NULL; | |
9313 | } | |
9314 | ||
9315 | ||
9316 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9317 | PyObject *resultobj; | |
9318 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 9319 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9320 | SwigValueWrapper< wxImage > result; |
9321 | PyObject * obj0 = 0 ; | |
9322 | PyObject * obj1 = 0 ; | |
9323 | char *kwnames[] = { | |
9324 | (char *) "self",(char *) "clockwise", NULL | |
9325 | }; | |
9326 | ||
9327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
9328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9329 | if (obj1) { | |
9330 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
9331 | if (PyErr_Occurred()) SWIG_fail; | |
9332 | } | |
9333 | { | |
9334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9335 | result = (arg1)->Rotate90(arg2); | |
9336 | ||
9337 | wxPyEndAllowThreads(__tstate); | |
9338 | if (PyErr_Occurred()) SWIG_fail; | |
9339 | } | |
9340 | { | |
9341 | wxImage * resultptr; | |
9342 | resultptr = new wxImage((wxImage &) result); | |
9343 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9344 | } | |
9345 | return resultobj; | |
9346 | fail: | |
9347 | return NULL; | |
9348 | } | |
9349 | ||
9350 | ||
9351 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9352 | PyObject *resultobj; | |
9353 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 9354 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9355 | SwigValueWrapper< wxImage > result; |
9356 | PyObject * obj0 = 0 ; | |
9357 | PyObject * obj1 = 0 ; | |
9358 | char *kwnames[] = { | |
9359 | (char *) "self",(char *) "horizontally", NULL | |
9360 | }; | |
9361 | ||
9362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
9363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9364 | if (obj1) { | |
9365 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
9366 | if (PyErr_Occurred()) SWIG_fail; | |
9367 | } | |
9368 | { | |
9369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9370 | result = (arg1)->Mirror(arg2); | |
9371 | ||
9372 | wxPyEndAllowThreads(__tstate); | |
9373 | if (PyErr_Occurred()) SWIG_fail; | |
9374 | } | |
9375 | { | |
9376 | wxImage * resultptr; | |
9377 | resultptr = new wxImage((wxImage &) result); | |
9378 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9379 | } | |
9380 | return resultobj; | |
9381 | fail: | |
9382 | return NULL; | |
9383 | } | |
9384 | ||
9385 | ||
9386 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9387 | PyObject *resultobj; | |
9388 | wxImage *arg1 = (wxImage *) 0 ; | |
9389 | unsigned char arg2 ; | |
9390 | unsigned char arg3 ; | |
9391 | unsigned char arg4 ; | |
9392 | unsigned char arg5 ; | |
9393 | unsigned char arg6 ; | |
9394 | unsigned char arg7 ; | |
9395 | PyObject * obj0 = 0 ; | |
9396 | PyObject * obj1 = 0 ; | |
9397 | PyObject * obj2 = 0 ; | |
9398 | PyObject * obj3 = 0 ; | |
9399 | PyObject * obj4 = 0 ; | |
9400 | PyObject * obj5 = 0 ; | |
9401 | PyObject * obj6 = 0 ; | |
9402 | char *kwnames[] = { | |
9403 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
9404 | }; | |
9405 | ||
9406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9408 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
9409 | if (PyErr_Occurred()) SWIG_fail; | |
9410 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
9411 | if (PyErr_Occurred()) SWIG_fail; | |
9412 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
9413 | if (PyErr_Occurred()) SWIG_fail; | |
9414 | arg5 = (unsigned char) PyInt_AsLong(obj4); | |
9415 | if (PyErr_Occurred()) SWIG_fail; | |
9416 | arg6 = (unsigned char) PyInt_AsLong(obj5); | |
9417 | if (PyErr_Occurred()) SWIG_fail; | |
9418 | arg7 = (unsigned char) PyInt_AsLong(obj6); | |
9419 | if (PyErr_Occurred()) SWIG_fail; | |
9420 | { | |
9421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9422 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
9423 | ||
9424 | wxPyEndAllowThreads(__tstate); | |
9425 | if (PyErr_Occurred()) SWIG_fail; | |
9426 | } | |
9427 | Py_INCREF(Py_None); resultobj = Py_None; | |
9428 | return resultobj; | |
9429 | fail: | |
9430 | return NULL; | |
9431 | } | |
9432 | ||
9433 | ||
9434 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9435 | PyObject *resultobj; | |
9436 | wxImage *arg1 = (wxImage *) 0 ; | |
9437 | unsigned char arg2 ; | |
9438 | unsigned char arg3 ; | |
9439 | unsigned char arg4 ; | |
9440 | SwigValueWrapper< wxImage > result; | |
9441 | PyObject * obj0 = 0 ; | |
9442 | PyObject * obj1 = 0 ; | |
9443 | PyObject * obj2 = 0 ; | |
9444 | PyObject * obj3 = 0 ; | |
9445 | char *kwnames[] = { | |
9446 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9447 | }; | |
9448 | ||
9449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9451 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
9452 | if (PyErr_Occurred()) SWIG_fail; | |
9453 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
9454 | if (PyErr_Occurred()) SWIG_fail; | |
9455 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
9456 | if (PyErr_Occurred()) SWIG_fail; | |
9457 | { | |
9458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9459 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
9460 | ||
9461 | wxPyEndAllowThreads(__tstate); | |
9462 | if (PyErr_Occurred()) SWIG_fail; | |
9463 | } | |
9464 | { | |
9465 | wxImage * resultptr; | |
9466 | resultptr = new wxImage((wxImage &) result); | |
9467 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9468 | } | |
9469 | return resultobj; | |
9470 | fail: | |
9471 | return NULL; | |
9472 | } | |
9473 | ||
9474 | ||
9475 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9476 | PyObject *resultobj; | |
9477 | wxImage *arg1 = (wxImage *) 0 ; | |
9478 | wxString *arg2 = 0 ; | |
9479 | wxString *arg3 = 0 ; | |
423f194a RD |
9480 | bool temp2 = False ; |
9481 | bool temp3 = False ; | |
d14a1e28 RD |
9482 | PyObject * obj0 = 0 ; |
9483 | PyObject * obj1 = 0 ; | |
9484 | PyObject * obj2 = 0 ; | |
9485 | char *kwnames[] = { | |
9486 | (char *) "self",(char *) "name",(char *) "value", NULL | |
9487 | }; | |
9488 | ||
9489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9491 | { | |
9492 | arg2 = wxString_in_helper(obj1); | |
9493 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9494 | temp2 = True; |
d14a1e28 RD |
9495 | } |
9496 | { | |
9497 | arg3 = wxString_in_helper(obj2); | |
9498 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9499 | temp3 = True; |
d14a1e28 RD |
9500 | } |
9501 | { | |
9502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9503 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
9504 | ||
9505 | wxPyEndAllowThreads(__tstate); | |
9506 | if (PyErr_Occurred()) SWIG_fail; | |
9507 | } | |
9508 | Py_INCREF(Py_None); resultobj = Py_None; | |
9509 | { | |
9510 | if (temp2) | |
9511 | delete arg2; | |
9512 | } | |
9513 | { | |
9514 | if (temp3) | |
9515 | delete arg3; | |
9516 | } | |
9517 | return resultobj; | |
9518 | fail: | |
9519 | { | |
9520 | if (temp2) | |
9521 | delete arg2; | |
9522 | } | |
9523 | { | |
9524 | if (temp3) | |
9525 | delete arg3; | |
9526 | } | |
9527 | return NULL; | |
9528 | } | |
9529 | ||
9530 | ||
9531 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9532 | PyObject *resultobj; | |
9533 | wxImage *arg1 = (wxImage *) 0 ; | |
9534 | wxString *arg2 = 0 ; | |
9535 | int arg3 ; | |
423f194a | 9536 | bool temp2 = False ; |
d14a1e28 RD |
9537 | PyObject * obj0 = 0 ; |
9538 | PyObject * obj1 = 0 ; | |
9539 | char *kwnames[] = { | |
9540 | (char *) "self",(char *) "name",(char *) "value", NULL | |
9541 | }; | |
9542 | ||
9543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Image_SetOptionInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
9544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9545 | { | |
9546 | arg2 = wxString_in_helper(obj1); | |
9547 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9548 | temp2 = True; |
d14a1e28 RD |
9549 | } |
9550 | { | |
9551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9552 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
9553 | ||
9554 | wxPyEndAllowThreads(__tstate); | |
9555 | if (PyErr_Occurred()) SWIG_fail; | |
9556 | } | |
9557 | Py_INCREF(Py_None); resultobj = Py_None; | |
9558 | { | |
9559 | if (temp2) | |
9560 | delete arg2; | |
9561 | } | |
9562 | return resultobj; | |
9563 | fail: | |
9564 | { | |
9565 | if (temp2) | |
9566 | delete arg2; | |
9567 | } | |
9568 | return NULL; | |
9569 | } | |
9570 | ||
9571 | ||
9572 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9573 | PyObject *resultobj; | |
9574 | wxImage *arg1 = (wxImage *) 0 ; | |
9575 | wxString *arg2 = 0 ; | |
9576 | wxString result; | |
423f194a | 9577 | bool temp2 = False ; |
d14a1e28 RD |
9578 | PyObject * obj0 = 0 ; |
9579 | PyObject * obj1 = 0 ; | |
9580 | char *kwnames[] = { | |
9581 | (char *) "self",(char *) "name", NULL | |
9582 | }; | |
9583 | ||
9584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
9585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9586 | { | |
9587 | arg2 = wxString_in_helper(obj1); | |
9588 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9589 | temp2 = True; |
d14a1e28 RD |
9590 | } |
9591 | { | |
9592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9593 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
9594 | ||
9595 | wxPyEndAllowThreads(__tstate); | |
9596 | if (PyErr_Occurred()) SWIG_fail; | |
9597 | } | |
9598 | { | |
9599 | #if wxUSE_UNICODE | |
9600 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9601 | #else | |
9602 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9603 | #endif | |
9604 | } | |
9605 | { | |
9606 | if (temp2) | |
9607 | delete arg2; | |
9608 | } | |
9609 | return resultobj; | |
9610 | fail: | |
9611 | { | |
9612 | if (temp2) | |
9613 | delete arg2; | |
9614 | } | |
9615 | return NULL; | |
9616 | } | |
9617 | ||
9618 | ||
9619 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9620 | PyObject *resultobj; | |
9621 | wxImage *arg1 = (wxImage *) 0 ; | |
9622 | wxString *arg2 = 0 ; | |
9623 | int result; | |
423f194a | 9624 | bool temp2 = False ; |
d14a1e28 RD |
9625 | PyObject * obj0 = 0 ; |
9626 | PyObject * obj1 = 0 ; | |
9627 | char *kwnames[] = { | |
9628 | (char *) "self",(char *) "name", NULL | |
9629 | }; | |
9630 | ||
9631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
9632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9633 | { | |
9634 | arg2 = wxString_in_helper(obj1); | |
9635 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9636 | temp2 = True; |
d14a1e28 RD |
9637 | } |
9638 | { | |
9639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9640 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
9641 | ||
9642 | wxPyEndAllowThreads(__tstate); | |
9643 | if (PyErr_Occurred()) SWIG_fail; | |
9644 | } | |
9645 | resultobj = PyInt_FromLong((long)result); | |
9646 | { | |
9647 | if (temp2) | |
9648 | delete arg2; | |
9649 | } | |
9650 | return resultobj; | |
9651 | fail: | |
9652 | { | |
9653 | if (temp2) | |
9654 | delete arg2; | |
9655 | } | |
9656 | return NULL; | |
9657 | } | |
9658 | ||
9659 | ||
9660 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9661 | PyObject *resultobj; | |
9662 | wxImage *arg1 = (wxImage *) 0 ; | |
9663 | wxString *arg2 = 0 ; | |
9664 | bool result; | |
423f194a | 9665 | bool temp2 = False ; |
d14a1e28 RD |
9666 | PyObject * obj0 = 0 ; |
9667 | PyObject * obj1 = 0 ; | |
9668 | char *kwnames[] = { | |
9669 | (char *) "self",(char *) "name", NULL | |
9670 | }; | |
9671 | ||
9672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
9673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9674 | { | |
9675 | arg2 = wxString_in_helper(obj1); | |
9676 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9677 | temp2 = True; |
d14a1e28 RD |
9678 | } |
9679 | { | |
9680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9681 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
9682 | ||
9683 | wxPyEndAllowThreads(__tstate); | |
9684 | if (PyErr_Occurred()) SWIG_fail; | |
9685 | } | |
9686 | resultobj = PyInt_FromLong((long)result); | |
9687 | { | |
9688 | if (temp2) | |
9689 | delete arg2; | |
9690 | } | |
9691 | return resultobj; | |
9692 | fail: | |
9693 | { | |
9694 | if (temp2) | |
9695 | delete arg2; | |
9696 | } | |
9697 | return NULL; | |
9698 | } | |
9699 | ||
9700 | ||
9701 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9702 | PyObject *resultobj; | |
9703 | wxImage *arg1 = (wxImage *) 0 ; | |
9704 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
9705 | unsigned long result; | |
9706 | PyObject * obj0 = 0 ; | |
9707 | PyObject * obj1 = 0 ; | |
9708 | char *kwnames[] = { | |
9709 | (char *) "self",(char *) "stopafter", NULL | |
9710 | }; | |
9711 | ||
9712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
9713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9714 | if (obj1) { | |
9715 | arg2 = (unsigned long) PyInt_AsLong(obj1); | |
9716 | if (PyErr_Occurred()) SWIG_fail; | |
9717 | } | |
9718 | { | |
9719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9720 | result = (unsigned long)(arg1)->CountColours(arg2); | |
9721 | ||
9722 | wxPyEndAllowThreads(__tstate); | |
9723 | if (PyErr_Occurred()) SWIG_fail; | |
9724 | } | |
9725 | resultobj = PyInt_FromLong((long)result); | |
9726 | return resultobj; | |
9727 | fail: | |
9728 | return NULL; | |
9729 | } | |
9730 | ||
9731 | ||
9732 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9733 | PyObject *resultobj; | |
9734 | wxImage *arg1 = (wxImage *) 0 ; | |
9735 | wxImageHistogram *arg2 = 0 ; | |
9736 | unsigned long result; | |
9737 | PyObject * obj0 = 0 ; | |
9738 | PyObject * obj1 = 0 ; | |
9739 | char *kwnames[] = { | |
9740 | (char *) "self",(char *) "h", NULL | |
9741 | }; | |
9742 | ||
9743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
9744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9745 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9746 | if (arg2 == NULL) { | |
9747 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9748 | } | |
9749 | { | |
9750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9751 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
9752 | ||
9753 | wxPyEndAllowThreads(__tstate); | |
9754 | if (PyErr_Occurred()) SWIG_fail; | |
9755 | } | |
9756 | resultobj = PyInt_FromLong((long)result); | |
9757 | return resultobj; | |
9758 | fail: | |
9759 | return NULL; | |
9760 | } | |
9761 | ||
9762 | ||
9763 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9764 | PyObject *resultobj; | |
9765 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9766 | PyObject * obj0 = 0 ; | |
9767 | char *kwnames[] = { | |
9768 | (char *) "handler", NULL | |
9769 | }; | |
9770 | ||
9771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
9772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9773 | { | |
9774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9775 | wxImage::AddHandler(arg1); | |
9776 | ||
9777 | wxPyEndAllowThreads(__tstate); | |
9778 | if (PyErr_Occurred()) SWIG_fail; | |
9779 | } | |
9780 | Py_INCREF(Py_None); resultobj = Py_None; | |
9781 | return resultobj; | |
9782 | fail: | |
9783 | return NULL; | |
9784 | } | |
9785 | ||
9786 | ||
9787 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9788 | PyObject *resultobj; | |
9789 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9790 | PyObject * obj0 = 0 ; | |
9791 | char *kwnames[] = { | |
9792 | (char *) "handler", NULL | |
9793 | }; | |
9794 | ||
9795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
9796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9797 | { | |
9798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9799 | wxImage::InsertHandler(arg1); | |
9800 | ||
9801 | wxPyEndAllowThreads(__tstate); | |
9802 | if (PyErr_Occurred()) SWIG_fail; | |
9803 | } | |
9804 | Py_INCREF(Py_None); resultobj = Py_None; | |
9805 | return resultobj; | |
9806 | fail: | |
9807 | return NULL; | |
9808 | } | |
9809 | ||
9810 | ||
9811 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9812 | PyObject *resultobj; | |
9813 | wxString *arg1 = 0 ; | |
9814 | bool result; | |
423f194a | 9815 | bool temp1 = False ; |
d14a1e28 RD |
9816 | PyObject * obj0 = 0 ; |
9817 | char *kwnames[] = { | |
9818 | (char *) "name", NULL | |
9819 | }; | |
9820 | ||
9821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
9822 | { | |
9823 | arg1 = wxString_in_helper(obj0); | |
9824 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9825 | temp1 = True; |
d14a1e28 RD |
9826 | } |
9827 | { | |
9828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9829 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
9830 | ||
9831 | wxPyEndAllowThreads(__tstate); | |
9832 | if (PyErr_Occurred()) SWIG_fail; | |
9833 | } | |
9834 | resultobj = PyInt_FromLong((long)result); | |
9835 | { | |
9836 | if (temp1) | |
9837 | delete arg1; | |
9838 | } | |
9839 | return resultobj; | |
9840 | fail: | |
9841 | { | |
9842 | if (temp1) | |
9843 | delete arg1; | |
9844 | } | |
9845 | return NULL; | |
9846 | } | |
9847 | ||
9848 | ||
9849 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9850 | PyObject *resultobj; | |
9851 | wxString result; | |
9852 | char *kwnames[] = { | |
9853 | NULL | |
9854 | }; | |
9855 | ||
9856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
9857 | { | |
9858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9859 | result = wxImage::GetImageExtWildcard(); | |
9860 | ||
9861 | wxPyEndAllowThreads(__tstate); | |
9862 | if (PyErr_Occurred()) SWIG_fail; | |
9863 | } | |
9864 | { | |
9865 | #if wxUSE_UNICODE | |
9866 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9867 | #else | |
9868 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9869 | #endif | |
9870 | } | |
9871 | return resultobj; | |
9872 | fail: | |
9873 | return NULL; | |
9874 | } | |
9875 | ||
9876 | ||
9877 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9878 | PyObject *resultobj; | |
9879 | wxImage *arg1 = (wxImage *) 0 ; | |
9880 | wxBitmap result; | |
9881 | PyObject * obj0 = 0 ; | |
9882 | char *kwnames[] = { | |
9883 | (char *) "self", NULL | |
9884 | }; | |
9885 | ||
9886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
9887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9888 | { | |
9889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9890 | result = wxImage_ConvertToBitmap(arg1); | |
9891 | ||
9892 | wxPyEndAllowThreads(__tstate); | |
9893 | if (PyErr_Occurred()) SWIG_fail; | |
9894 | } | |
9895 | { | |
9896 | wxBitmap * resultptr; | |
9897 | resultptr = new wxBitmap((wxBitmap &) result); | |
9898 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
9899 | } | |
9900 | return resultobj; | |
9901 | fail: | |
9902 | return NULL; | |
9903 | } | |
9904 | ||
9905 | ||
9906 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9907 | PyObject *resultobj; | |
9908 | wxImage *arg1 = (wxImage *) 0 ; | |
9909 | unsigned char arg2 ; | |
9910 | unsigned char arg3 ; | |
9911 | unsigned char arg4 ; | |
9912 | wxBitmap result; | |
9913 | PyObject * obj0 = 0 ; | |
9914 | PyObject * obj1 = 0 ; | |
9915 | PyObject * obj2 = 0 ; | |
9916 | PyObject * obj3 = 0 ; | |
9917 | char *kwnames[] = { | |
9918 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
9919 | }; | |
9920 | ||
9921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9923 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
9924 | if (PyErr_Occurred()) SWIG_fail; | |
9925 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
9926 | if (PyErr_Occurred()) SWIG_fail; | |
9927 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
9928 | if (PyErr_Occurred()) SWIG_fail; | |
9929 | { | |
9930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9931 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
9932 | ||
9933 | wxPyEndAllowThreads(__tstate); | |
9934 | if (PyErr_Occurred()) SWIG_fail; | |
9935 | } | |
9936 | { | |
9937 | wxBitmap * resultptr; | |
9938 | resultptr = new wxBitmap((wxBitmap &) result); | |
9939 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
9940 | } | |
9941 | return resultobj; | |
9942 | fail: | |
9943 | return NULL; | |
9944 | } | |
9945 | ||
9946 | ||
9947 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
9948 | PyObject *obj; | |
9949 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9950 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
9951 | Py_INCREF(obj); | |
9952 | return Py_BuildValue((char *)""); | |
9953 | } | |
9954 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9955 | PyObject *resultobj; | |
9956 | char *kwnames[] = { | |
9957 | NULL | |
9958 | }; | |
9959 | ||
9960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
9961 | { | |
9962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9963 | wxInitAllImageHandlers(); | |
9964 | ||
9965 | wxPyEndAllowThreads(__tstate); | |
9966 | if (PyErr_Occurred()) SWIG_fail; | |
9967 | } | |
9968 | Py_INCREF(Py_None); resultobj = Py_None; | |
9969 | return resultobj; | |
9970 | fail: | |
9971 | return NULL; | |
9972 | } | |
9973 | ||
9974 | ||
9975 | static int _wrap_NullImage_set(PyObject *_val) { | |
9976 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); | |
9977 | return 1; | |
9978 | } | |
9979 | ||
9980 | ||
9981 | static PyObject *_wrap_NullImage_get() { | |
9982 | PyObject *pyobj; | |
9983 | ||
9984 | pyobj = SWIG_NewPointerObj((void *) &wxNullImage, SWIGTYPE_p_wxImage, 0); | |
9985 | return pyobj; | |
9986 | } | |
9987 | ||
9988 | ||
9989 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { | |
9990 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); | |
9991 | return 1; | |
9992 | } | |
9993 | ||
9994 | ||
9995 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
9996 | PyObject *pyobj; | |
9997 | ||
9998 | { | |
9999 | #if wxUSE_UNICODE | |
10000 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
10001 | #else | |
10002 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
10003 | #endif | |
10004 | } | |
10005 | return pyobj; | |
10006 | } | |
10007 | ||
10008 | ||
10009 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { | |
10010 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); | |
10011 | return 1; | |
10012 | } | |
10013 | ||
10014 | ||
10015 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
10016 | PyObject *pyobj; | |
10017 | ||
10018 | { | |
10019 | #if wxUSE_UNICODE | |
10020 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10021 | #else | |
10022 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10023 | #endif | |
10024 | } | |
10025 | return pyobj; | |
10026 | } | |
10027 | ||
10028 | ||
10029 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { | |
10030 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); | |
10031 | return 1; | |
10032 | } | |
10033 | ||
10034 | ||
10035 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
10036 | PyObject *pyobj; | |
10037 | ||
10038 | { | |
10039 | #if wxUSE_UNICODE | |
10040 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10041 | #else | |
10042 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10043 | #endif | |
10044 | } | |
10045 | return pyobj; | |
10046 | } | |
10047 | ||
10048 | ||
10049 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { | |
10050 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); | |
10051 | return 1; | |
10052 | } | |
10053 | ||
10054 | ||
10055 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
10056 | PyObject *pyobj; | |
10057 | ||
10058 | { | |
10059 | #if wxUSE_UNICODE | |
10060 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10061 | #else | |
10062 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10063 | #endif | |
10064 | } | |
10065 | return pyobj; | |
10066 | } | |
10067 | ||
10068 | ||
10069 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { | |
10070 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); | |
10071 | return 1; | |
10072 | } | |
10073 | ||
10074 | ||
10075 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
10076 | PyObject *pyobj; | |
10077 | ||
10078 | { | |
10079 | #if wxUSE_UNICODE | |
10080 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10081 | #else | |
10082 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10083 | #endif | |
10084 | } | |
10085 | return pyobj; | |
10086 | } | |
10087 | ||
10088 | ||
10089 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10090 | PyObject *resultobj; | |
10091 | wxBMPHandler *result; | |
10092 | char *kwnames[] = { | |
10093 | NULL | |
10094 | }; | |
10095 | ||
10096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
10097 | { | |
10098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10099 | result = (wxBMPHandler *)new wxBMPHandler(); | |
10100 | ||
10101 | wxPyEndAllowThreads(__tstate); | |
10102 | if (PyErr_Occurred()) SWIG_fail; | |
10103 | } | |
10104 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBMPHandler, 1); | |
10105 | return resultobj; | |
10106 | fail: | |
10107 | return NULL; | |
10108 | } | |
10109 | ||
10110 | ||
10111 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
10112 | PyObject *obj; | |
10113 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10114 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
10115 | Py_INCREF(obj); | |
10116 | return Py_BuildValue((char *)""); | |
10117 | } | |
10118 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10119 | PyObject *resultobj; | |
10120 | wxICOHandler *result; | |
10121 | char *kwnames[] = { | |
10122 | NULL | |
10123 | }; | |
10124 | ||
10125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
10126 | { | |
10127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10128 | result = (wxICOHandler *)new wxICOHandler(); | |
10129 | ||
10130 | wxPyEndAllowThreads(__tstate); | |
10131 | if (PyErr_Occurred()) SWIG_fail; | |
10132 | } | |
10133 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxICOHandler, 1); | |
10134 | return resultobj; | |
10135 | fail: | |
10136 | return NULL; | |
10137 | } | |
10138 | ||
10139 | ||
10140 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
10141 | PyObject *obj; | |
10142 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10143 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
10144 | Py_INCREF(obj); | |
10145 | return Py_BuildValue((char *)""); | |
10146 | } | |
10147 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10148 | PyObject *resultobj; | |
10149 | wxCURHandler *result; | |
10150 | char *kwnames[] = { | |
10151 | NULL | |
10152 | }; | |
10153 | ||
10154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
10155 | { | |
10156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10157 | result = (wxCURHandler *)new wxCURHandler(); | |
10158 | ||
10159 | wxPyEndAllowThreads(__tstate); | |
10160 | if (PyErr_Occurred()) SWIG_fail; | |
10161 | } | |
10162 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCURHandler, 1); | |
10163 | return resultobj; | |
10164 | fail: | |
10165 | return NULL; | |
10166 | } | |
10167 | ||
10168 | ||
10169 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
10170 | PyObject *obj; | |
10171 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10172 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
10173 | Py_INCREF(obj); | |
10174 | return Py_BuildValue((char *)""); | |
10175 | } | |
10176 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10177 | PyObject *resultobj; | |
10178 | wxANIHandler *result; | |
10179 | char *kwnames[] = { | |
10180 | NULL | |
10181 | }; | |
10182 | ||
10183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
10184 | { | |
10185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10186 | result = (wxANIHandler *)new wxANIHandler(); | |
10187 | ||
10188 | wxPyEndAllowThreads(__tstate); | |
10189 | if (PyErr_Occurred()) SWIG_fail; | |
10190 | } | |
10191 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxANIHandler, 1); | |
10192 | return resultobj; | |
10193 | fail: | |
10194 | return NULL; | |
10195 | } | |
10196 | ||
10197 | ||
10198 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
10199 | PyObject *obj; | |
10200 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10201 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
10202 | Py_INCREF(obj); | |
10203 | return Py_BuildValue((char *)""); | |
10204 | } | |
10205 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10206 | PyObject *resultobj; | |
10207 | wxPNGHandler *result; | |
10208 | char *kwnames[] = { | |
10209 | NULL | |
10210 | }; | |
10211 | ||
10212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
10213 | { | |
10214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10215 | result = (wxPNGHandler *)new wxPNGHandler(); | |
10216 | ||
10217 | wxPyEndAllowThreads(__tstate); | |
10218 | if (PyErr_Occurred()) SWIG_fail; | |
10219 | } | |
10220 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNGHandler, 1); | |
10221 | return resultobj; | |
10222 | fail: | |
10223 | return NULL; | |
10224 | } | |
10225 | ||
10226 | ||
10227 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
10228 | PyObject *obj; | |
10229 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10230 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
10231 | Py_INCREF(obj); | |
10232 | return Py_BuildValue((char *)""); | |
10233 | } | |
10234 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10235 | PyObject *resultobj; | |
10236 | wxGIFHandler *result; | |
10237 | char *kwnames[] = { | |
10238 | NULL | |
10239 | }; | |
10240 | ||
10241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
10242 | { | |
10243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10244 | result = (wxGIFHandler *)new wxGIFHandler(); | |
10245 | ||
10246 | wxPyEndAllowThreads(__tstate); | |
10247 | if (PyErr_Occurred()) SWIG_fail; | |
10248 | } | |
10249 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGIFHandler, 1); | |
10250 | return resultobj; | |
10251 | fail: | |
10252 | return NULL; | |
10253 | } | |
10254 | ||
10255 | ||
10256 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
10257 | PyObject *obj; | |
10258 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10259 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
10260 | Py_INCREF(obj); | |
10261 | return Py_BuildValue((char *)""); | |
10262 | } | |
10263 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10264 | PyObject *resultobj; | |
10265 | wxPCXHandler *result; | |
10266 | char *kwnames[] = { | |
10267 | NULL | |
10268 | }; | |
10269 | ||
10270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
10271 | { | |
10272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10273 | result = (wxPCXHandler *)new wxPCXHandler(); | |
10274 | ||
10275 | wxPyEndAllowThreads(__tstate); | |
10276 | if (PyErr_Occurred()) SWIG_fail; | |
10277 | } | |
10278 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPCXHandler, 1); | |
10279 | return resultobj; | |
10280 | fail: | |
10281 | return NULL; | |
10282 | } | |
10283 | ||
10284 | ||
10285 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
10286 | PyObject *obj; | |
10287 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10288 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
10289 | Py_INCREF(obj); | |
10290 | return Py_BuildValue((char *)""); | |
10291 | } | |
10292 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10293 | PyObject *resultobj; | |
10294 | wxJPEGHandler *result; | |
10295 | char *kwnames[] = { | |
10296 | NULL | |
10297 | }; | |
10298 | ||
10299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
10300 | { | |
10301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10302 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
10303 | ||
10304 | wxPyEndAllowThreads(__tstate); | |
10305 | if (PyErr_Occurred()) SWIG_fail; | |
10306 | } | |
10307 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJPEGHandler, 1); | |
10308 | return resultobj; | |
10309 | fail: | |
10310 | return NULL; | |
10311 | } | |
10312 | ||
10313 | ||
10314 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
10315 | PyObject *obj; | |
10316 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10317 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
10318 | Py_INCREF(obj); | |
10319 | return Py_BuildValue((char *)""); | |
10320 | } | |
10321 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10322 | PyObject *resultobj; | |
10323 | wxPNMHandler *result; | |
10324 | char *kwnames[] = { | |
10325 | NULL | |
10326 | }; | |
10327 | ||
10328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
10329 | { | |
10330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10331 | result = (wxPNMHandler *)new wxPNMHandler(); | |
10332 | ||
10333 | wxPyEndAllowThreads(__tstate); | |
10334 | if (PyErr_Occurred()) SWIG_fail; | |
10335 | } | |
10336 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNMHandler, 1); | |
10337 | return resultobj; | |
10338 | fail: | |
10339 | return NULL; | |
10340 | } | |
10341 | ||
10342 | ||
10343 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
10344 | PyObject *obj; | |
10345 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10346 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
10347 | Py_INCREF(obj); | |
10348 | return Py_BuildValue((char *)""); | |
10349 | } | |
10350 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10351 | PyObject *resultobj; | |
10352 | wxXPMHandler *result; | |
10353 | char *kwnames[] = { | |
10354 | NULL | |
10355 | }; | |
10356 | ||
10357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
10358 | { | |
10359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10360 | result = (wxXPMHandler *)new wxXPMHandler(); | |
10361 | ||
10362 | wxPyEndAllowThreads(__tstate); | |
10363 | if (PyErr_Occurred()) SWIG_fail; | |
10364 | } | |
10365 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxXPMHandler, 1); | |
10366 | return resultobj; | |
10367 | fail: | |
10368 | return NULL; | |
10369 | } | |
10370 | ||
10371 | ||
10372 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
10373 | PyObject *obj; | |
10374 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10375 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
10376 | Py_INCREF(obj); | |
10377 | return Py_BuildValue((char *)""); | |
10378 | } | |
10379 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10380 | PyObject *resultobj; | |
10381 | wxTIFFHandler *result; | |
10382 | char *kwnames[] = { | |
10383 | NULL | |
10384 | }; | |
10385 | ||
10386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
10387 | { | |
10388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10389 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
10390 | ||
10391 | wxPyEndAllowThreads(__tstate); | |
10392 | if (PyErr_Occurred()) SWIG_fail; | |
10393 | } | |
10394 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTIFFHandler, 1); | |
10395 | return resultobj; | |
10396 | fail: | |
10397 | return NULL; | |
10398 | } | |
10399 | ||
10400 | ||
10401 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
10402 | PyObject *obj; | |
10403 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10404 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
10405 | Py_INCREF(obj); | |
10406 | return Py_BuildValue((char *)""); | |
10407 | } | |
10408 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10409 | PyObject *resultobj; | |
10410 | wxEvtHandler *result; | |
10411 | char *kwnames[] = { | |
10412 | NULL | |
10413 | }; | |
10414 | ||
10415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
10416 | { | |
10417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10418 | result = (wxEvtHandler *)new wxEvtHandler(); | |
10419 | ||
10420 | wxPyEndAllowThreads(__tstate); | |
10421 | if (PyErr_Occurred()) SWIG_fail; | |
10422 | } | |
10423 | { | |
10424 | resultobj = wxPyMake_wxObject(result); | |
10425 | } | |
10426 | return resultobj; | |
10427 | fail: | |
10428 | return NULL; | |
10429 | } | |
10430 | ||
10431 | ||
10432 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10433 | PyObject *resultobj; | |
10434 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10435 | wxEvtHandler *result; | |
10436 | PyObject * obj0 = 0 ; | |
10437 | char *kwnames[] = { | |
10438 | (char *) "self", NULL | |
10439 | }; | |
10440 | ||
10441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
10442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10443 | { | |
10444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10445 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
10446 | ||
10447 | wxPyEndAllowThreads(__tstate); | |
10448 | if (PyErr_Occurred()) SWIG_fail; | |
10449 | } | |
10450 | { | |
10451 | resultobj = wxPyMake_wxObject(result); | |
10452 | } | |
10453 | return resultobj; | |
10454 | fail: | |
10455 | return NULL; | |
10456 | } | |
10457 | ||
10458 | ||
10459 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10460 | PyObject *resultobj; | |
10461 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10462 | wxEvtHandler *result; | |
10463 | PyObject * obj0 = 0 ; | |
10464 | char *kwnames[] = { | |
10465 | (char *) "self", NULL | |
10466 | }; | |
10467 | ||
10468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
10469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10470 | { | |
10471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10472 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
10473 | ||
10474 | wxPyEndAllowThreads(__tstate); | |
10475 | if (PyErr_Occurred()) SWIG_fail; | |
10476 | } | |
10477 | { | |
10478 | resultobj = wxPyMake_wxObject(result); | |
10479 | } | |
10480 | return resultobj; | |
10481 | fail: | |
10482 | return NULL; | |
10483 | } | |
10484 | ||
10485 | ||
10486 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10487 | PyObject *resultobj; | |
10488 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10489 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
10490 | PyObject * obj0 = 0 ; | |
10491 | PyObject * obj1 = 0 ; | |
10492 | char *kwnames[] = { | |
10493 | (char *) "self",(char *) "handler", NULL | |
10494 | }; | |
10495 | ||
10496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
10497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10498 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10499 | { | |
10500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10501 | (arg1)->SetNextHandler(arg2); | |
10502 | ||
10503 | wxPyEndAllowThreads(__tstate); | |
10504 | if (PyErr_Occurred()) SWIG_fail; | |
10505 | } | |
10506 | Py_INCREF(Py_None); resultobj = Py_None; | |
10507 | return resultobj; | |
10508 | fail: | |
10509 | return NULL; | |
10510 | } | |
10511 | ||
10512 | ||
10513 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10514 | PyObject *resultobj; | |
10515 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10516 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
10517 | PyObject * obj0 = 0 ; | |
10518 | PyObject * obj1 = 0 ; | |
10519 | char *kwnames[] = { | |
10520 | (char *) "self",(char *) "handler", NULL | |
10521 | }; | |
10522 | ||
10523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
10524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10525 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10526 | { | |
10527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10528 | (arg1)->SetPreviousHandler(arg2); | |
10529 | ||
10530 | wxPyEndAllowThreads(__tstate); | |
10531 | if (PyErr_Occurred()) SWIG_fail; | |
10532 | } | |
10533 | Py_INCREF(Py_None); resultobj = Py_None; | |
10534 | return resultobj; | |
10535 | fail: | |
10536 | return NULL; | |
10537 | } | |
10538 | ||
10539 | ||
10540 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10541 | PyObject *resultobj; | |
10542 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10543 | bool result; | |
10544 | PyObject * obj0 = 0 ; | |
10545 | char *kwnames[] = { | |
10546 | (char *) "self", NULL | |
10547 | }; | |
10548 | ||
10549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
10550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10551 | { | |
10552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10553 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
10554 | ||
10555 | wxPyEndAllowThreads(__tstate); | |
10556 | if (PyErr_Occurred()) SWIG_fail; | |
10557 | } | |
10558 | resultobj = PyInt_FromLong((long)result); | |
10559 | return resultobj; | |
10560 | fail: | |
10561 | return NULL; | |
10562 | } | |
10563 | ||
10564 | ||
10565 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10566 | PyObject *resultobj; | |
10567 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10568 | bool arg2 ; | |
10569 | PyObject * obj0 = 0 ; | |
10570 | PyObject * obj1 = 0 ; | |
10571 | char *kwnames[] = { | |
10572 | (char *) "self",(char *) "enabled", NULL | |
10573 | }; | |
10574 | ||
10575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
10576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10577 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10578 | if (PyErr_Occurred()) SWIG_fail; | |
10579 | { | |
10580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10581 | (arg1)->SetEvtHandlerEnabled(arg2); | |
10582 | ||
10583 | wxPyEndAllowThreads(__tstate); | |
10584 | if (PyErr_Occurred()) SWIG_fail; | |
10585 | } | |
10586 | Py_INCREF(Py_None); resultobj = Py_None; | |
10587 | return resultobj; | |
10588 | fail: | |
10589 | return NULL; | |
10590 | } | |
10591 | ||
10592 | ||
10593 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10594 | PyObject *resultobj; | |
10595 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10596 | wxEvent *arg2 = 0 ; | |
10597 | bool result; | |
10598 | PyObject * obj0 = 0 ; | |
10599 | PyObject * obj1 = 0 ; | |
10600 | char *kwnames[] = { | |
10601 | (char *) "self",(char *) "event", NULL | |
10602 | }; | |
10603 | ||
10604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
10605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10606 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10607 | if (arg2 == NULL) { | |
10608 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10609 | } | |
10610 | { | |
10611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10612 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
10613 | ||
10614 | wxPyEndAllowThreads(__tstate); | |
10615 | if (PyErr_Occurred()) SWIG_fail; | |
10616 | } | |
10617 | resultobj = PyInt_FromLong((long)result); | |
10618 | return resultobj; | |
10619 | fail: | |
10620 | return NULL; | |
10621 | } | |
10622 | ||
10623 | ||
10624 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10625 | PyObject *resultobj; | |
10626 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10627 | wxEvent *arg2 = 0 ; | |
10628 | PyObject * obj0 = 0 ; | |
10629 | PyObject * obj1 = 0 ; | |
10630 | char *kwnames[] = { | |
10631 | (char *) "self",(char *) "event", NULL | |
10632 | }; | |
10633 | ||
10634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
10635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10636 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10637 | if (arg2 == NULL) { | |
10638 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10639 | } | |
10640 | { | |
10641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10642 | (arg1)->AddPendingEvent(*arg2); | |
10643 | ||
10644 | wxPyEndAllowThreads(__tstate); | |
10645 | if (PyErr_Occurred()) SWIG_fail; | |
10646 | } | |
10647 | Py_INCREF(Py_None); resultobj = Py_None; | |
10648 | return resultobj; | |
10649 | fail: | |
10650 | return NULL; | |
10651 | } | |
10652 | ||
10653 | ||
10654 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10655 | PyObject *resultobj; | |
10656 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10657 | PyObject * obj0 = 0 ; | |
10658 | char *kwnames[] = { | |
10659 | (char *) "self", NULL | |
10660 | }; | |
10661 | ||
10662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
10663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10664 | { | |
10665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10666 | (arg1)->ProcessPendingEvents(); | |
10667 | ||
10668 | wxPyEndAllowThreads(__tstate); | |
10669 | if (PyErr_Occurred()) SWIG_fail; | |
10670 | } | |
10671 | Py_INCREF(Py_None); resultobj = Py_None; | |
10672 | return resultobj; | |
10673 | fail: | |
10674 | return NULL; | |
10675 | } | |
10676 | ||
10677 | ||
10678 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10679 | PyObject *resultobj; | |
10680 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10681 | int arg2 ; | |
10682 | int arg3 ; | |
10683 | int arg4 ; | |
10684 | PyObject *arg5 = (PyObject *) 0 ; | |
10685 | PyObject * obj0 = 0 ; | |
10686 | PyObject * obj4 = 0 ; | |
10687 | char *kwnames[] = { | |
10688 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
10689 | }; | |
10690 | ||
10691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiO:EvtHandler_Connect",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
10692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10693 | arg5 = obj4; | |
10694 | { | |
10695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10696 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
10697 | ||
10698 | wxPyEndAllowThreads(__tstate); | |
10699 | if (PyErr_Occurred()) SWIG_fail; | |
10700 | } | |
10701 | Py_INCREF(Py_None); resultobj = Py_None; | |
10702 | return resultobj; | |
10703 | fail: | |
10704 | return NULL; | |
10705 | } | |
10706 | ||
10707 | ||
10708 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10709 | PyObject *resultobj; | |
10710 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10711 | int arg2 ; | |
10712 | int arg3 = (int) -1 ; | |
10713 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
10714 | bool result; | |
10715 | PyObject * obj0 = 0 ; | |
10716 | char *kwnames[] = { | |
10717 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
10718 | }; | |
10719 | ||
10720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:EvtHandler_Disconnect",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
10721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10722 | { | |
10723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10724 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
10725 | ||
10726 | wxPyEndAllowThreads(__tstate); | |
10727 | if (PyErr_Occurred()) SWIG_fail; | |
10728 | } | |
10729 | resultobj = PyInt_FromLong((long)result); | |
10730 | return resultobj; | |
10731 | fail: | |
10732 | return NULL; | |
10733 | } | |
10734 | ||
10735 | ||
10736 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10737 | PyObject *resultobj; | |
10738 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10739 | PyObject *arg2 = (PyObject *) 0 ; | |
10740 | PyObject * obj0 = 0 ; | |
10741 | PyObject * obj1 = 0 ; | |
10742 | char *kwnames[] = { | |
10743 | (char *) "self",(char *) "_self", NULL | |
10744 | }; | |
10745 | ||
10746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
10747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10748 | arg2 = obj1; | |
10749 | { | |
10750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10751 | wxEvtHandler__setOORInfo(arg1,arg2); | |
10752 | ||
10753 | wxPyEndAllowThreads(__tstate); | |
10754 | if (PyErr_Occurred()) SWIG_fail; | |
10755 | } | |
10756 | Py_INCREF(Py_None); resultobj = Py_None; | |
10757 | return resultobj; | |
10758 | fail: | |
10759 | return NULL; | |
10760 | } | |
10761 | ||
10762 | ||
10763 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
10764 | PyObject *obj; | |
10765 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10766 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
10767 | Py_INCREF(obj); | |
10768 | return Py_BuildValue((char *)""); | |
10769 | } | |
10770 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10771 | PyObject *resultobj; | |
10772 | wxEventType result; | |
10773 | char *kwnames[] = { | |
10774 | NULL | |
10775 | }; | |
10776 | ||
10777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
10778 | { | |
10779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10780 | result = (wxEventType)wxNewEventType(); | |
10781 | ||
10782 | wxPyEndAllowThreads(__tstate); | |
10783 | if (PyErr_Occurred()) SWIG_fail; | |
10784 | } | |
10785 | resultobj = PyInt_FromLong((long)result); | |
10786 | return resultobj; | |
10787 | fail: | |
10788 | return NULL; | |
10789 | } | |
10790 | ||
10791 | ||
10792 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10793 | PyObject *resultobj; | |
10794 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10795 | PyObject * obj0 = 0 ; | |
10796 | char *kwnames[] = { | |
10797 | (char *) "self", NULL | |
10798 | }; | |
10799 | ||
10800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
10801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10802 | { | |
10803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10804 | delete arg1; | |
10805 | ||
10806 | wxPyEndAllowThreads(__tstate); | |
10807 | if (PyErr_Occurred()) SWIG_fail; | |
10808 | } | |
10809 | Py_INCREF(Py_None); resultobj = Py_None; | |
10810 | return resultobj; | |
10811 | fail: | |
10812 | return NULL; | |
10813 | } | |
10814 | ||
10815 | ||
10816 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10817 | PyObject *resultobj; | |
10818 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10819 | wxEventType arg2 ; | |
10820 | PyObject * obj0 = 0 ; | |
10821 | char *kwnames[] = { | |
10822 | (char *) "self",(char *) "typ", NULL | |
10823 | }; | |
10824 | ||
10825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Event_SetEventType",kwnames,&obj0,&arg2)) goto fail; | |
10826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10827 | { | |
10828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10829 | (arg1)->SetEventType(arg2); | |
10830 | ||
10831 | wxPyEndAllowThreads(__tstate); | |
10832 | if (PyErr_Occurred()) SWIG_fail; | |
10833 | } | |
10834 | Py_INCREF(Py_None); resultobj = Py_None; | |
10835 | return resultobj; | |
10836 | fail: | |
10837 | return NULL; | |
10838 | } | |
10839 | ||
10840 | ||
10841 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10842 | PyObject *resultobj; | |
10843 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10844 | wxEventType result; | |
10845 | PyObject * obj0 = 0 ; | |
10846 | char *kwnames[] = { | |
10847 | (char *) "self", NULL | |
10848 | }; | |
10849 | ||
10850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
10851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10852 | { | |
10853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10854 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
10855 | ||
10856 | wxPyEndAllowThreads(__tstate); | |
10857 | if (PyErr_Occurred()) SWIG_fail; | |
10858 | } | |
10859 | resultobj = PyInt_FromLong((long)result); | |
10860 | return resultobj; | |
10861 | fail: | |
10862 | return NULL; | |
10863 | } | |
10864 | ||
10865 | ||
10866 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10867 | PyObject *resultobj; | |
10868 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10869 | wxObject *result; | |
10870 | PyObject * obj0 = 0 ; | |
10871 | char *kwnames[] = { | |
10872 | (char *) "self", NULL | |
10873 | }; | |
10874 | ||
10875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
10876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10877 | { | |
10878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10879 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
10880 | ||
10881 | wxPyEndAllowThreads(__tstate); | |
10882 | if (PyErr_Occurred()) SWIG_fail; | |
10883 | } | |
10884 | { | |
10885 | resultobj = wxPyMake_wxObject(result); | |
10886 | } | |
10887 | return resultobj; | |
10888 | fail: | |
10889 | return NULL; | |
10890 | } | |
10891 | ||
10892 | ||
10893 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10894 | PyObject *resultobj; | |
10895 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10896 | wxObject *arg2 = (wxObject *) 0 ; | |
10897 | PyObject * obj0 = 0 ; | |
10898 | PyObject * obj1 = 0 ; | |
10899 | char *kwnames[] = { | |
10900 | (char *) "self",(char *) "obj", NULL | |
10901 | }; | |
10902 | ||
10903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
10904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10905 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10906 | { | |
10907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10908 | (arg1)->SetEventObject(arg2); | |
10909 | ||
10910 | wxPyEndAllowThreads(__tstate); | |
10911 | if (PyErr_Occurred()) SWIG_fail; | |
10912 | } | |
10913 | Py_INCREF(Py_None); resultobj = Py_None; | |
10914 | return resultobj; | |
10915 | fail: | |
10916 | return NULL; | |
10917 | } | |
10918 | ||
10919 | ||
10920 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10921 | PyObject *resultobj; | |
10922 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10923 | long result; | |
10924 | PyObject * obj0 = 0 ; | |
10925 | char *kwnames[] = { | |
10926 | (char *) "self", NULL | |
10927 | }; | |
10928 | ||
10929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
10930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10931 | { | |
10932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10933 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
10934 | ||
10935 | wxPyEndAllowThreads(__tstate); | |
10936 | if (PyErr_Occurred()) SWIG_fail; | |
10937 | } | |
10938 | resultobj = PyInt_FromLong((long)result); | |
10939 | return resultobj; | |
10940 | fail: | |
10941 | return NULL; | |
10942 | } | |
10943 | ||
10944 | ||
10945 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10946 | PyObject *resultobj; | |
10947 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10948 | long arg2 = (long) 0 ; | |
10949 | PyObject * obj0 = 0 ; | |
10950 | char *kwnames[] = { | |
10951 | (char *) "self",(char *) "ts", NULL | |
10952 | }; | |
10953 | ||
10954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:Event_SetTimestamp",kwnames,&obj0,&arg2)) goto fail; | |
10955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10956 | { | |
10957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10958 | (arg1)->SetTimestamp(arg2); | |
10959 | ||
10960 | wxPyEndAllowThreads(__tstate); | |
10961 | if (PyErr_Occurred()) SWIG_fail; | |
10962 | } | |
10963 | Py_INCREF(Py_None); resultobj = Py_None; | |
10964 | return resultobj; | |
10965 | fail: | |
10966 | return NULL; | |
10967 | } | |
10968 | ||
10969 | ||
10970 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10971 | PyObject *resultobj; | |
10972 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10973 | int result; | |
10974 | PyObject * obj0 = 0 ; | |
10975 | char *kwnames[] = { | |
10976 | (char *) "self", NULL | |
10977 | }; | |
10978 | ||
10979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
10980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10981 | { | |
10982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10983 | result = (int)((wxEvent const *)arg1)->GetId(); | |
10984 | ||
10985 | wxPyEndAllowThreads(__tstate); | |
10986 | if (PyErr_Occurred()) SWIG_fail; | |
10987 | } | |
10988 | resultobj = PyInt_FromLong((long)result); | |
10989 | return resultobj; | |
10990 | fail: | |
10991 | return NULL; | |
10992 | } | |
10993 | ||
10994 | ||
10995 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10996 | PyObject *resultobj; | |
10997 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10998 | int arg2 ; | |
10999 | PyObject * obj0 = 0 ; | |
11000 | char *kwnames[] = { | |
11001 | (char *) "self",(char *) "Id", NULL | |
11002 | }; | |
11003 | ||
11004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Event_SetId",kwnames,&obj0,&arg2)) goto fail; | |
11005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11006 | { | |
11007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11008 | (arg1)->SetId(arg2); | |
11009 | ||
11010 | wxPyEndAllowThreads(__tstate); | |
11011 | if (PyErr_Occurred()) SWIG_fail; | |
11012 | } | |
11013 | Py_INCREF(Py_None); resultobj = Py_None; | |
11014 | return resultobj; | |
11015 | fail: | |
11016 | return NULL; | |
11017 | } | |
11018 | ||
11019 | ||
11020 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11021 | PyObject *resultobj; | |
11022 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11023 | bool result; | |
11024 | PyObject * obj0 = 0 ; | |
11025 | char *kwnames[] = { | |
11026 | (char *) "self", NULL | |
11027 | }; | |
11028 | ||
11029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
11030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11031 | { | |
11032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11033 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
11034 | ||
11035 | wxPyEndAllowThreads(__tstate); | |
11036 | if (PyErr_Occurred()) SWIG_fail; | |
11037 | } | |
11038 | resultobj = PyInt_FromLong((long)result); | |
11039 | return resultobj; | |
11040 | fail: | |
11041 | return NULL; | |
11042 | } | |
11043 | ||
11044 | ||
11045 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11046 | PyObject *resultobj; | |
11047 | wxEvent *arg1 = (wxEvent *) 0 ; | |
423f194a | 11048 | bool arg2 = (bool) True ; |
d14a1e28 RD |
11049 | PyObject * obj0 = 0 ; |
11050 | PyObject * obj1 = 0 ; | |
11051 | char *kwnames[] = { | |
11052 | (char *) "self",(char *) "skip", NULL | |
11053 | }; | |
11054 | ||
11055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
11056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11057 | if (obj1) { | |
11058 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
11059 | if (PyErr_Occurred()) SWIG_fail; | |
11060 | } | |
11061 | { | |
11062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11063 | (arg1)->Skip(arg2); | |
11064 | ||
11065 | wxPyEndAllowThreads(__tstate); | |
11066 | if (PyErr_Occurred()) SWIG_fail; | |
11067 | } | |
11068 | Py_INCREF(Py_None); resultobj = Py_None; | |
11069 | return resultobj; | |
11070 | fail: | |
11071 | return NULL; | |
11072 | } | |
11073 | ||
11074 | ||
11075 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11076 | PyObject *resultobj; | |
11077 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11078 | bool result; | |
11079 | PyObject * obj0 = 0 ; | |
11080 | char *kwnames[] = { | |
11081 | (char *) "self", NULL | |
11082 | }; | |
11083 | ||
11084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
11085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11086 | { | |
11087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11088 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
11089 | ||
11090 | wxPyEndAllowThreads(__tstate); | |
11091 | if (PyErr_Occurred()) SWIG_fail; | |
11092 | } | |
11093 | resultobj = PyInt_FromLong((long)result); | |
11094 | return resultobj; | |
11095 | fail: | |
11096 | return NULL; | |
11097 | } | |
11098 | ||
11099 | ||
11100 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11101 | PyObject *resultobj; | |
11102 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11103 | bool result; | |
11104 | PyObject * obj0 = 0 ; | |
11105 | char *kwnames[] = { | |
11106 | (char *) "self", NULL | |
11107 | }; | |
11108 | ||
11109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
11110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11111 | { | |
11112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11113 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
11114 | ||
11115 | wxPyEndAllowThreads(__tstate); | |
11116 | if (PyErr_Occurred()) SWIG_fail; | |
11117 | } | |
11118 | resultobj = PyInt_FromLong((long)result); | |
11119 | return resultobj; | |
11120 | fail: | |
11121 | return NULL; | |
11122 | } | |
11123 | ||
11124 | ||
11125 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11126 | PyObject *resultobj; | |
11127 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11128 | int result; | |
11129 | PyObject * obj0 = 0 ; | |
11130 | char *kwnames[] = { | |
11131 | (char *) "self", NULL | |
11132 | }; | |
11133 | ||
11134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
11135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11136 | { | |
11137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11138 | result = (int)(arg1)->StopPropagation(); | |
11139 | ||
11140 | wxPyEndAllowThreads(__tstate); | |
11141 | if (PyErr_Occurred()) SWIG_fail; | |
11142 | } | |
11143 | resultobj = PyInt_FromLong((long)result); | |
11144 | return resultobj; | |
11145 | fail: | |
11146 | return NULL; | |
11147 | } | |
11148 | ||
11149 | ||
11150 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11151 | PyObject *resultobj; | |
11152 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11153 | int arg2 ; | |
11154 | PyObject * obj0 = 0 ; | |
11155 | char *kwnames[] = { | |
11156 | (char *) "self",(char *) "propagationLevel", NULL | |
11157 | }; | |
11158 | ||
11159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Event_ResumePropagation",kwnames,&obj0,&arg2)) goto fail; | |
11160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11161 | { | |
11162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11163 | (arg1)->ResumePropagation(arg2); | |
11164 | ||
11165 | wxPyEndAllowThreads(__tstate); | |
11166 | if (PyErr_Occurred()) SWIG_fail; | |
11167 | } | |
11168 | Py_INCREF(Py_None); resultobj = Py_None; | |
11169 | return resultobj; | |
11170 | fail: | |
11171 | return NULL; | |
11172 | } | |
11173 | ||
11174 | ||
11175 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11176 | PyObject *resultobj; | |
11177 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11178 | wxEvent *result; | |
11179 | PyObject * obj0 = 0 ; | |
11180 | char *kwnames[] = { | |
11181 | (char *) "self", NULL | |
11182 | }; | |
11183 | ||
11184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
11185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11186 | { | |
11187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11188 | result = (wxEvent *)(arg1)->Clone(); | |
11189 | ||
11190 | wxPyEndAllowThreads(__tstate); | |
11191 | if (PyErr_Occurred()) SWIG_fail; | |
11192 | } | |
11193 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
11194 | return resultobj; | |
11195 | fail: | |
11196 | return NULL; | |
11197 | } | |
11198 | ||
11199 | ||
11200 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
11201 | PyObject *obj; | |
11202 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11203 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
11204 | Py_INCREF(obj); | |
11205 | return Py_BuildValue((char *)""); | |
11206 | } | |
11207 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11208 | PyObject *resultobj; | |
11209 | wxEvent *arg1 = 0 ; | |
11210 | wxPropagationDisabler *result; | |
11211 | PyObject * obj0 = 0 ; | |
11212 | char *kwnames[] = { | |
11213 | (char *) "event", NULL | |
11214 | }; | |
11215 | ||
11216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
11217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11218 | if (arg1 == NULL) { | |
11219 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11220 | } | |
11221 | { | |
11222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11223 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
11224 | ||
11225 | wxPyEndAllowThreads(__tstate); | |
11226 | if (PyErr_Occurred()) SWIG_fail; | |
11227 | } | |
11228 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagationDisabler, 1); | |
11229 | return resultobj; | |
11230 | fail: | |
11231 | return NULL; | |
11232 | } | |
11233 | ||
11234 | ||
11235 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11236 | PyObject *resultobj; | |
11237 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
11238 | PyObject * obj0 = 0 ; | |
11239 | char *kwnames[] = { | |
11240 | (char *) "self", NULL | |
11241 | }; | |
11242 | ||
11243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
11244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagationDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11245 | { | |
11246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11247 | delete arg1; | |
11248 | ||
11249 | wxPyEndAllowThreads(__tstate); | |
11250 | if (PyErr_Occurred()) SWIG_fail; | |
11251 | } | |
11252 | Py_INCREF(Py_None); resultobj = Py_None; | |
11253 | return resultobj; | |
11254 | fail: | |
11255 | return NULL; | |
11256 | } | |
11257 | ||
11258 | ||
11259 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
11260 | PyObject *obj; | |
11261 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11262 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
11263 | Py_INCREF(obj); | |
11264 | return Py_BuildValue((char *)""); | |
11265 | } | |
11266 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11267 | PyObject *resultobj; | |
11268 | wxEvent *arg1 = 0 ; | |
11269 | wxPropagateOnce *result; | |
11270 | PyObject * obj0 = 0 ; | |
11271 | char *kwnames[] = { | |
11272 | (char *) "event", NULL | |
11273 | }; | |
11274 | ||
11275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
11276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11277 | if (arg1 == NULL) { | |
11278 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11279 | } | |
11280 | { | |
11281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11282 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
11283 | ||
11284 | wxPyEndAllowThreads(__tstate); | |
11285 | if (PyErr_Occurred()) SWIG_fail; | |
11286 | } | |
11287 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagateOnce, 1); | |
11288 | return resultobj; | |
11289 | fail: | |
11290 | return NULL; | |
11291 | } | |
11292 | ||
11293 | ||
11294 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11295 | PyObject *resultobj; | |
11296 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
11297 | PyObject * obj0 = 0 ; | |
11298 | char *kwnames[] = { | |
11299 | (char *) "self", NULL | |
11300 | }; | |
11301 | ||
11302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
11303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagateOnce,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11304 | { | |
11305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11306 | delete arg1; | |
11307 | ||
11308 | wxPyEndAllowThreads(__tstate); | |
11309 | if (PyErr_Occurred()) SWIG_fail; | |
11310 | } | |
11311 | Py_INCREF(Py_None); resultobj = Py_None; | |
11312 | return resultobj; | |
11313 | fail: | |
11314 | return NULL; | |
11315 | } | |
11316 | ||
11317 | ||
11318 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
11319 | PyObject *obj; | |
11320 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11321 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
11322 | Py_INCREF(obj); | |
11323 | return Py_BuildValue((char *)""); | |
11324 | } | |
11325 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11326 | PyObject *resultobj; | |
11327 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11328 | int arg2 = (int) 0 ; | |
11329 | wxCommandEvent *result; | |
11330 | char *kwnames[] = { | |
11331 | (char *) "commandType",(char *) "winid", NULL | |
11332 | }; | |
11333 | ||
11334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_CommandEvent",kwnames,&arg1,&arg2)) goto fail; | |
11335 | { | |
11336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11337 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
11338 | ||
11339 | wxPyEndAllowThreads(__tstate); | |
11340 | if (PyErr_Occurred()) SWIG_fail; | |
11341 | } | |
11342 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCommandEvent, 1); | |
11343 | return resultobj; | |
11344 | fail: | |
11345 | return NULL; | |
11346 | } | |
11347 | ||
11348 | ||
11349 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11350 | PyObject *resultobj; | |
11351 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11352 | int result; | |
11353 | PyObject * obj0 = 0 ; | |
11354 | char *kwnames[] = { | |
11355 | (char *) "self", NULL | |
11356 | }; | |
11357 | ||
11358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
11359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11360 | { | |
11361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11362 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
11363 | ||
11364 | wxPyEndAllowThreads(__tstate); | |
11365 | if (PyErr_Occurred()) SWIG_fail; | |
11366 | } | |
11367 | resultobj = PyInt_FromLong((long)result); | |
11368 | return resultobj; | |
11369 | fail: | |
11370 | return NULL; | |
11371 | } | |
11372 | ||
11373 | ||
11374 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11375 | PyObject *resultobj; | |
11376 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11377 | wxString *arg2 = 0 ; | |
423f194a | 11378 | bool temp2 = False ; |
d14a1e28 RD |
11379 | PyObject * obj0 = 0 ; |
11380 | PyObject * obj1 = 0 ; | |
11381 | char *kwnames[] = { | |
11382 | (char *) "self",(char *) "s", NULL | |
11383 | }; | |
11384 | ||
11385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
11386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11387 | { | |
11388 | arg2 = wxString_in_helper(obj1); | |
11389 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11390 | temp2 = True; |
d14a1e28 RD |
11391 | } |
11392 | { | |
11393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11394 | (arg1)->SetString((wxString const &)*arg2); | |
11395 | ||
11396 | wxPyEndAllowThreads(__tstate); | |
11397 | if (PyErr_Occurred()) SWIG_fail; | |
11398 | } | |
11399 | Py_INCREF(Py_None); resultobj = Py_None; | |
11400 | { | |
11401 | if (temp2) | |
11402 | delete arg2; | |
11403 | } | |
11404 | return resultobj; | |
11405 | fail: | |
11406 | { | |
11407 | if (temp2) | |
11408 | delete arg2; | |
11409 | } | |
11410 | return NULL; | |
11411 | } | |
11412 | ||
11413 | ||
11414 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11415 | PyObject *resultobj; | |
11416 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11417 | wxString result; | |
11418 | PyObject * obj0 = 0 ; | |
11419 | char *kwnames[] = { | |
11420 | (char *) "self", NULL | |
11421 | }; | |
11422 | ||
11423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
11424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11425 | { | |
11426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11427 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
11428 | ||
11429 | wxPyEndAllowThreads(__tstate); | |
11430 | if (PyErr_Occurred()) SWIG_fail; | |
11431 | } | |
11432 | { | |
11433 | #if wxUSE_UNICODE | |
11434 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11435 | #else | |
11436 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11437 | #endif | |
11438 | } | |
11439 | return resultobj; | |
11440 | fail: | |
11441 | return NULL; | |
11442 | } | |
11443 | ||
11444 | ||
11445 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11446 | PyObject *resultobj; | |
11447 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11448 | bool result; | |
11449 | PyObject * obj0 = 0 ; | |
11450 | char *kwnames[] = { | |
11451 | (char *) "self", NULL | |
11452 | }; | |
11453 | ||
11454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
11455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11456 | { | |
11457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11458 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
11459 | ||
11460 | wxPyEndAllowThreads(__tstate); | |
11461 | if (PyErr_Occurred()) SWIG_fail; | |
11462 | } | |
11463 | resultobj = PyInt_FromLong((long)result); | |
11464 | return resultobj; | |
11465 | fail: | |
11466 | return NULL; | |
11467 | } | |
11468 | ||
11469 | ||
11470 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11471 | PyObject *resultobj; | |
11472 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11473 | bool result; | |
11474 | PyObject * obj0 = 0 ; | |
11475 | char *kwnames[] = { | |
11476 | (char *) "self", NULL | |
11477 | }; | |
11478 | ||
11479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
11480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11481 | { | |
11482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11483 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
11484 | ||
11485 | wxPyEndAllowThreads(__tstate); | |
11486 | if (PyErr_Occurred()) SWIG_fail; | |
11487 | } | |
11488 | resultobj = PyInt_FromLong((long)result); | |
11489 | return resultobj; | |
11490 | fail: | |
11491 | return NULL; | |
11492 | } | |
11493 | ||
11494 | ||
11495 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11496 | PyObject *resultobj; | |
11497 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11498 | long arg2 ; | |
11499 | PyObject * obj0 = 0 ; | |
11500 | char *kwnames[] = { | |
11501 | (char *) "self",(char *) "extraLong", NULL | |
11502 | }; | |
11503 | ||
11504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:CommandEvent_SetExtraLong",kwnames,&obj0,&arg2)) goto fail; | |
11505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11506 | { | |
11507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11508 | (arg1)->SetExtraLong(arg2); | |
11509 | ||
11510 | wxPyEndAllowThreads(__tstate); | |
11511 | if (PyErr_Occurred()) SWIG_fail; | |
11512 | } | |
11513 | Py_INCREF(Py_None); resultobj = Py_None; | |
11514 | return resultobj; | |
11515 | fail: | |
11516 | return NULL; | |
11517 | } | |
11518 | ||
11519 | ||
11520 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11521 | PyObject *resultobj; | |
11522 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11523 | long result; | |
11524 | PyObject * obj0 = 0 ; | |
11525 | char *kwnames[] = { | |
11526 | (char *) "self", NULL | |
11527 | }; | |
11528 | ||
11529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
11530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11531 | { | |
11532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11533 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
11534 | ||
11535 | wxPyEndAllowThreads(__tstate); | |
11536 | if (PyErr_Occurred()) SWIG_fail; | |
11537 | } | |
11538 | resultobj = PyInt_FromLong((long)result); | |
11539 | return resultobj; | |
11540 | fail: | |
11541 | return NULL; | |
11542 | } | |
11543 | ||
11544 | ||
11545 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11546 | PyObject *resultobj; | |
11547 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11548 | int arg2 ; | |
11549 | PyObject * obj0 = 0 ; | |
11550 | char *kwnames[] = { | |
11551 | (char *) "self",(char *) "i", NULL | |
11552 | }; | |
11553 | ||
11554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CommandEvent_SetInt",kwnames,&obj0,&arg2)) goto fail; | |
11555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11556 | { | |
11557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11558 | (arg1)->SetInt(arg2); | |
11559 | ||
11560 | wxPyEndAllowThreads(__tstate); | |
11561 | if (PyErr_Occurred()) SWIG_fail; | |
11562 | } | |
11563 | Py_INCREF(Py_None); resultobj = Py_None; | |
11564 | return resultobj; | |
11565 | fail: | |
11566 | return NULL; | |
11567 | } | |
11568 | ||
11569 | ||
11570 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11571 | PyObject *resultobj; | |
11572 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11573 | long result; | |
11574 | PyObject * obj0 = 0 ; | |
11575 | char *kwnames[] = { | |
11576 | (char *) "self", NULL | |
11577 | }; | |
11578 | ||
11579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
11580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11581 | { | |
11582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11583 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
11584 | ||
11585 | wxPyEndAllowThreads(__tstate); | |
11586 | if (PyErr_Occurred()) SWIG_fail; | |
11587 | } | |
11588 | resultobj = PyInt_FromLong((long)result); | |
11589 | return resultobj; | |
11590 | fail: | |
11591 | return NULL; | |
11592 | } | |
11593 | ||
11594 | ||
11595 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11596 | PyObject *resultobj; | |
11597 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11598 | wxEvent *result; | |
11599 | PyObject * obj0 = 0 ; | |
11600 | char *kwnames[] = { | |
11601 | (char *) "self", NULL | |
11602 | }; | |
11603 | ||
11604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
11605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11606 | { | |
11607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11608 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
11609 | ||
11610 | wxPyEndAllowThreads(__tstate); | |
11611 | if (PyErr_Occurred()) SWIG_fail; | |
11612 | } | |
11613 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
11614 | return resultobj; | |
11615 | fail: | |
11616 | return NULL; | |
11617 | } | |
11618 | ||
11619 | ||
11620 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
11621 | PyObject *obj; | |
11622 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11623 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
11624 | Py_INCREF(obj); | |
11625 | return Py_BuildValue((char *)""); | |
11626 | } | |
11627 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11628 | PyObject *resultobj; | |
11629 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11630 | int arg2 = (int) 0 ; | |
11631 | wxNotifyEvent *result; | |
11632 | char *kwnames[] = { | |
11633 | (char *) "commandType",(char *) "winid", NULL | |
11634 | }; | |
11635 | ||
11636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_NotifyEvent",kwnames,&arg1,&arg2)) goto fail; | |
11637 | { | |
11638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11639 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
11640 | ||
11641 | wxPyEndAllowThreads(__tstate); | |
11642 | if (PyErr_Occurred()) SWIG_fail; | |
11643 | } | |
11644 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotifyEvent, 1); | |
11645 | return resultobj; | |
11646 | fail: | |
11647 | return NULL; | |
11648 | } | |
11649 | ||
11650 | ||
11651 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11652 | PyObject *resultobj; | |
11653 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
11654 | PyObject * obj0 = 0 ; | |
11655 | char *kwnames[] = { | |
11656 | (char *) "self", NULL | |
11657 | }; | |
11658 | ||
11659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
11660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11661 | { | |
11662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11663 | (arg1)->Veto(); | |
11664 | ||
11665 | wxPyEndAllowThreads(__tstate); | |
11666 | if (PyErr_Occurred()) SWIG_fail; | |
11667 | } | |
11668 | Py_INCREF(Py_None); resultobj = Py_None; | |
11669 | return resultobj; | |
11670 | fail: | |
11671 | return NULL; | |
11672 | } | |
11673 | ||
11674 | ||
11675 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11676 | PyObject *resultobj; | |
11677 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
11678 | PyObject * obj0 = 0 ; | |
11679 | char *kwnames[] = { | |
11680 | (char *) "self", NULL | |
11681 | }; | |
11682 | ||
11683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
11684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11685 | { | |
11686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11687 | (arg1)->Allow(); | |
11688 | ||
11689 | wxPyEndAllowThreads(__tstate); | |
11690 | if (PyErr_Occurred()) SWIG_fail; | |
11691 | } | |
11692 | Py_INCREF(Py_None); resultobj = Py_None; | |
11693 | return resultobj; | |
11694 | fail: | |
11695 | return NULL; | |
11696 | } | |
11697 | ||
11698 | ||
11699 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11700 | PyObject *resultobj; | |
11701 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
11702 | bool result; | |
11703 | PyObject * obj0 = 0 ; | |
11704 | char *kwnames[] = { | |
11705 | (char *) "self", NULL | |
11706 | }; | |
11707 | ||
11708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
11709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11710 | { | |
11711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11712 | result = (bool)(arg1)->IsAllowed(); | |
11713 | ||
11714 | wxPyEndAllowThreads(__tstate); | |
11715 | if (PyErr_Occurred()) SWIG_fail; | |
11716 | } | |
11717 | resultobj = PyInt_FromLong((long)result); | |
11718 | return resultobj; | |
11719 | fail: | |
11720 | return NULL; | |
11721 | } | |
11722 | ||
11723 | ||
11724 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
11725 | PyObject *obj; | |
11726 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11727 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
11728 | Py_INCREF(obj); | |
11729 | return Py_BuildValue((char *)""); | |
11730 | } | |
11731 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11732 | PyObject *resultobj; | |
11733 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11734 | int arg2 = (int) 0 ; | |
11735 | int arg3 = (int) 0 ; | |
11736 | int arg4 = (int) 0 ; | |
11737 | wxScrollEvent *result; | |
11738 | char *kwnames[] = { | |
11739 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
11740 | }; | |
11741 | ||
11742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_ScrollEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
11743 | { | |
11744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11745 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
11746 | ||
11747 | wxPyEndAllowThreads(__tstate); | |
11748 | if (PyErr_Occurred()) SWIG_fail; | |
11749 | } | |
11750 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollEvent, 1); | |
11751 | return resultobj; | |
11752 | fail: | |
11753 | return NULL; | |
11754 | } | |
11755 | ||
11756 | ||
11757 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11758 | PyObject *resultobj; | |
11759 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
11760 | int result; | |
11761 | PyObject * obj0 = 0 ; | |
11762 | char *kwnames[] = { | |
11763 | (char *) "self", NULL | |
11764 | }; | |
11765 | ||
11766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
11767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11768 | { | |
11769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11770 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
11771 | ||
11772 | wxPyEndAllowThreads(__tstate); | |
11773 | if (PyErr_Occurred()) SWIG_fail; | |
11774 | } | |
11775 | resultobj = PyInt_FromLong((long)result); | |
11776 | return resultobj; | |
11777 | fail: | |
11778 | return NULL; | |
11779 | } | |
11780 | ||
11781 | ||
11782 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11783 | PyObject *resultobj; | |
11784 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
11785 | int result; | |
11786 | PyObject * obj0 = 0 ; | |
11787 | char *kwnames[] = { | |
11788 | (char *) "self", NULL | |
11789 | }; | |
11790 | ||
11791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11793 | { | |
11794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11795 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
11796 | ||
11797 | wxPyEndAllowThreads(__tstate); | |
11798 | if (PyErr_Occurred()) SWIG_fail; | |
11799 | } | |
11800 | resultobj = PyInt_FromLong((long)result); | |
11801 | return resultobj; | |
11802 | fail: | |
11803 | return NULL; | |
11804 | } | |
11805 | ||
11806 | ||
11807 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11808 | PyObject *resultobj; | |
11809 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
11810 | int arg2 ; | |
11811 | PyObject * obj0 = 0 ; | |
11812 | char *kwnames[] = { | |
11813 | (char *) "self",(char *) "orient", NULL | |
11814 | }; | |
11815 | ||
11816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollEvent_SetOrientation",kwnames,&obj0,&arg2)) goto fail; | |
11817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11818 | { | |
11819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11820 | (arg1)->SetOrientation(arg2); | |
11821 | ||
11822 | wxPyEndAllowThreads(__tstate); | |
11823 | if (PyErr_Occurred()) SWIG_fail; | |
11824 | } | |
11825 | Py_INCREF(Py_None); resultobj = Py_None; | |
11826 | return resultobj; | |
11827 | fail: | |
11828 | return NULL; | |
11829 | } | |
11830 | ||
11831 | ||
11832 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11833 | PyObject *resultobj; | |
11834 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
11835 | int arg2 ; | |
11836 | PyObject * obj0 = 0 ; | |
11837 | char *kwnames[] = { | |
11838 | (char *) "self",(char *) "pos", NULL | |
11839 | }; | |
11840 | ||
11841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollEvent_SetPosition",kwnames,&obj0,&arg2)) goto fail; | |
11842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11843 | { | |
11844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11845 | (arg1)->SetPosition(arg2); | |
11846 | ||
11847 | wxPyEndAllowThreads(__tstate); | |
11848 | if (PyErr_Occurred()) SWIG_fail; | |
11849 | } | |
11850 | Py_INCREF(Py_None); resultobj = Py_None; | |
11851 | return resultobj; | |
11852 | fail: | |
11853 | return NULL; | |
11854 | } | |
11855 | ||
11856 | ||
11857 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
11858 | PyObject *obj; | |
11859 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11860 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
11861 | Py_INCREF(obj); | |
11862 | return Py_BuildValue((char *)""); | |
11863 | } | |
11864 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11865 | PyObject *resultobj; | |
11866 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11867 | int arg2 = (int) 0 ; | |
11868 | int arg3 = (int) 0 ; | |
11869 | wxScrollWinEvent *result; | |
11870 | char *kwnames[] = { | |
11871 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
11872 | }; | |
11873 | ||
11874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iii:new_ScrollWinEvent",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
11875 | { | |
11876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11877 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
11878 | ||
11879 | wxPyEndAllowThreads(__tstate); | |
11880 | if (PyErr_Occurred()) SWIG_fail; | |
11881 | } | |
11882 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollWinEvent, 1); | |
11883 | return resultobj; | |
11884 | fail: | |
11885 | return NULL; | |
11886 | } | |
11887 | ||
11888 | ||
11889 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11890 | PyObject *resultobj; | |
11891 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
11892 | int result; | |
11893 | PyObject * obj0 = 0 ; | |
11894 | char *kwnames[] = { | |
11895 | (char *) "self", NULL | |
11896 | }; | |
11897 | ||
11898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
11899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11900 | { | |
11901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11902 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
11903 | ||
11904 | wxPyEndAllowThreads(__tstate); | |
11905 | if (PyErr_Occurred()) SWIG_fail; | |
11906 | } | |
11907 | resultobj = PyInt_FromLong((long)result); | |
11908 | return resultobj; | |
11909 | fail: | |
11910 | return NULL; | |
11911 | } | |
11912 | ||
11913 | ||
11914 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11915 | PyObject *resultobj; | |
11916 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
11917 | int result; | |
11918 | PyObject * obj0 = 0 ; | |
11919 | char *kwnames[] = { | |
11920 | (char *) "self", NULL | |
11921 | }; | |
11922 | ||
11923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11925 | { | |
11926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11927 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
11928 | ||
11929 | wxPyEndAllowThreads(__tstate); | |
11930 | if (PyErr_Occurred()) SWIG_fail; | |
11931 | } | |
11932 | resultobj = PyInt_FromLong((long)result); | |
11933 | return resultobj; | |
11934 | fail: | |
11935 | return NULL; | |
11936 | } | |
11937 | ||
11938 | ||
11939 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11940 | PyObject *resultobj; | |
11941 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
11942 | int arg2 ; | |
11943 | PyObject * obj0 = 0 ; | |
11944 | char *kwnames[] = { | |
11945 | (char *) "self",(char *) "orient", NULL | |
11946 | }; | |
11947 | ||
11948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollWinEvent_SetOrientation",kwnames,&obj0,&arg2)) goto fail; | |
11949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11950 | { | |
11951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11952 | (arg1)->SetOrientation(arg2); | |
11953 | ||
11954 | wxPyEndAllowThreads(__tstate); | |
11955 | if (PyErr_Occurred()) SWIG_fail; | |
11956 | } | |
11957 | Py_INCREF(Py_None); resultobj = Py_None; | |
11958 | return resultobj; | |
11959 | fail: | |
11960 | return NULL; | |
11961 | } | |
11962 | ||
11963 | ||
11964 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11965 | PyObject *resultobj; | |
11966 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
11967 | int arg2 ; | |
11968 | PyObject * obj0 = 0 ; | |
11969 | char *kwnames[] = { | |
11970 | (char *) "self",(char *) "pos", NULL | |
11971 | }; | |
11972 | ||
11973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollWinEvent_SetPosition",kwnames,&obj0,&arg2)) goto fail; | |
11974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11975 | { | |
11976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11977 | (arg1)->SetPosition(arg2); | |
11978 | ||
11979 | wxPyEndAllowThreads(__tstate); | |
11980 | if (PyErr_Occurred()) SWIG_fail; | |
11981 | } | |
11982 | Py_INCREF(Py_None); resultobj = Py_None; | |
11983 | return resultobj; | |
11984 | fail: | |
11985 | return NULL; | |
11986 | } | |
11987 | ||
11988 | ||
11989 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
11990 | PyObject *obj; | |
11991 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11992 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
11993 | Py_INCREF(obj); | |
11994 | return Py_BuildValue((char *)""); | |
11995 | } | |
11996 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11997 | PyObject *resultobj; | |
11998 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11999 | wxMouseEvent *result; | |
12000 | char *kwnames[] = { | |
12001 | (char *) "mouseType", NULL | |
12002 | }; | |
12003 | ||
12004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_MouseEvent",kwnames,&arg1)) goto fail; | |
12005 | { | |
12006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12007 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
12008 | ||
12009 | wxPyEndAllowThreads(__tstate); | |
12010 | if (PyErr_Occurred()) SWIG_fail; | |
12011 | } | |
12012 | { | |
12013 | resultobj = wxPyMake_wxObject(result); | |
12014 | } | |
12015 | return resultobj; | |
12016 | fail: | |
12017 | return NULL; | |
12018 | } | |
12019 | ||
12020 | ||
12021 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12022 | PyObject *resultobj; | |
12023 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12024 | bool result; | |
12025 | PyObject * obj0 = 0 ; | |
12026 | char *kwnames[] = { | |
12027 | (char *) "self", NULL | |
12028 | }; | |
12029 | ||
12030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
12031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12032 | { | |
12033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12034 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
12035 | ||
12036 | wxPyEndAllowThreads(__tstate); | |
12037 | if (PyErr_Occurred()) SWIG_fail; | |
12038 | } | |
12039 | resultobj = PyInt_FromLong((long)result); | |
12040 | return resultobj; | |
12041 | fail: | |
12042 | return NULL; | |
12043 | } | |
12044 | ||
12045 | ||
12046 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12047 | PyObject *resultobj; | |
12048 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12049 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
12050 | bool result; | |
12051 | PyObject * obj0 = 0 ; | |
12052 | char *kwnames[] = { | |
12053 | (char *) "self",(char *) "but", NULL | |
12054 | }; | |
12055 | ||
12056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:MouseEvent_ButtonDown",kwnames,&obj0,&arg2)) goto fail; | |
12057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12058 | { | |
12059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12060 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
12061 | ||
12062 | wxPyEndAllowThreads(__tstate); | |
12063 | if (PyErr_Occurred()) SWIG_fail; | |
12064 | } | |
12065 | resultobj = PyInt_FromLong((long)result); | |
12066 | return resultobj; | |
12067 | fail: | |
12068 | return NULL; | |
12069 | } | |
12070 | ||
12071 | ||
12072 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12073 | PyObject *resultobj; | |
12074 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12075 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
12076 | bool result; | |
12077 | PyObject * obj0 = 0 ; | |
12078 | char *kwnames[] = { | |
12079 | (char *) "self",(char *) "but", NULL | |
12080 | }; | |
12081 | ||
12082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:MouseEvent_ButtonDClick",kwnames,&obj0,&arg2)) goto fail; | |
12083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12084 | { | |
12085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12086 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
12087 | ||
12088 | wxPyEndAllowThreads(__tstate); | |
12089 | if (PyErr_Occurred()) SWIG_fail; | |
12090 | } | |
12091 | resultobj = PyInt_FromLong((long)result); | |
12092 | return resultobj; | |
12093 | fail: | |
12094 | return NULL; | |
12095 | } | |
12096 | ||
12097 | ||
12098 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12099 | PyObject *resultobj; | |
12100 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12101 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
12102 | bool result; | |
12103 | PyObject * obj0 = 0 ; | |
12104 | char *kwnames[] = { | |
12105 | (char *) "self",(char *) "but", NULL | |
12106 | }; | |
12107 | ||
12108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:MouseEvent_ButtonUp",kwnames,&obj0,&arg2)) goto fail; | |
12109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12110 | { | |
12111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12112 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
12113 | ||
12114 | wxPyEndAllowThreads(__tstate); | |
12115 | if (PyErr_Occurred()) SWIG_fail; | |
12116 | } | |
12117 | resultobj = PyInt_FromLong((long)result); | |
12118 | return resultobj; | |
12119 | fail: | |
12120 | return NULL; | |
12121 | } | |
12122 | ||
12123 | ||
12124 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12125 | PyObject *resultobj; | |
12126 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12127 | int arg2 ; | |
12128 | bool result; | |
12129 | PyObject * obj0 = 0 ; | |
12130 | char *kwnames[] = { | |
12131 | (char *) "self",(char *) "but", NULL | |
12132 | }; | |
12133 | ||
12134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_Button",kwnames,&obj0,&arg2)) goto fail; | |
12135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12136 | { | |
12137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12138 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
12139 | ||
12140 | wxPyEndAllowThreads(__tstate); | |
12141 | if (PyErr_Occurred()) SWIG_fail; | |
12142 | } | |
12143 | resultobj = PyInt_FromLong((long)result); | |
12144 | return resultobj; | |
12145 | fail: | |
12146 | return NULL; | |
12147 | } | |
12148 | ||
12149 | ||
12150 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12151 | PyObject *resultobj; | |
12152 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12153 | int arg2 ; | |
12154 | bool result; | |
12155 | PyObject * obj0 = 0 ; | |
12156 | char *kwnames[] = { | |
12157 | (char *) "self",(char *) "but", NULL | |
12158 | }; | |
12159 | ||
12160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_ButtonIsDown",kwnames,&obj0,&arg2)) goto fail; | |
12161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12162 | { | |
12163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12164 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
12165 | ||
12166 | wxPyEndAllowThreads(__tstate); | |
12167 | if (PyErr_Occurred()) SWIG_fail; | |
12168 | } | |
12169 | resultobj = PyInt_FromLong((long)result); | |
12170 | return resultobj; | |
12171 | fail: | |
12172 | return NULL; | |
12173 | } | |
12174 | ||
12175 | ||
12176 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12177 | PyObject *resultobj; | |
12178 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12179 | int result; | |
12180 | PyObject * obj0 = 0 ; | |
12181 | char *kwnames[] = { | |
12182 | (char *) "self", NULL | |
12183 | }; | |
12184 | ||
12185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
12186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12187 | { | |
12188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12189 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
12190 | ||
12191 | wxPyEndAllowThreads(__tstate); | |
12192 | if (PyErr_Occurred()) SWIG_fail; | |
12193 | } | |
12194 | resultobj = PyInt_FromLong((long)result); | |
12195 | return resultobj; | |
12196 | fail: | |
12197 | return NULL; | |
12198 | } | |
12199 | ||
12200 | ||
12201 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12202 | PyObject *resultobj; | |
12203 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12204 | bool result; | |
12205 | PyObject * obj0 = 0 ; | |
12206 | char *kwnames[] = { | |
12207 | (char *) "self", NULL | |
12208 | }; | |
12209 | ||
12210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
12211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12212 | { | |
12213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12214 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
12215 | ||
12216 | wxPyEndAllowThreads(__tstate); | |
12217 | if (PyErr_Occurred()) SWIG_fail; | |
12218 | } | |
12219 | resultobj = PyInt_FromLong((long)result); | |
12220 | return resultobj; | |
12221 | fail: | |
12222 | return NULL; | |
12223 | } | |
12224 | ||
12225 | ||
12226 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12227 | PyObject *resultobj; | |
12228 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12229 | bool result; | |
12230 | PyObject * obj0 = 0 ; | |
12231 | char *kwnames[] = { | |
12232 | (char *) "self", NULL | |
12233 | }; | |
12234 | ||
12235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
12236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12237 | { | |
12238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12239 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
12240 | ||
12241 | wxPyEndAllowThreads(__tstate); | |
12242 | if (PyErr_Occurred()) SWIG_fail; | |
12243 | } | |
12244 | resultobj = PyInt_FromLong((long)result); | |
12245 | return resultobj; | |
12246 | fail: | |
12247 | return NULL; | |
12248 | } | |
12249 | ||
12250 | ||
12251 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12252 | PyObject *resultobj; | |
12253 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12254 | bool result; | |
12255 | PyObject * obj0 = 0 ; | |
12256 | char *kwnames[] = { | |
12257 | (char *) "self", NULL | |
12258 | }; | |
12259 | ||
12260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
12261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12262 | { | |
12263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12264 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
12265 | ||
12266 | wxPyEndAllowThreads(__tstate); | |
12267 | if (PyErr_Occurred()) SWIG_fail; | |
12268 | } | |
12269 | resultobj = PyInt_FromLong((long)result); | |
12270 | return resultobj; | |
12271 | fail: | |
12272 | return NULL; | |
12273 | } | |
12274 | ||
12275 | ||
12276 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12277 | PyObject *resultobj; | |
12278 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12279 | bool result; | |
12280 | PyObject * obj0 = 0 ; | |
12281 | char *kwnames[] = { | |
12282 | (char *) "self", NULL | |
12283 | }; | |
12284 | ||
12285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
12286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12287 | { | |
12288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12289 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
12290 | ||
12291 | wxPyEndAllowThreads(__tstate); | |
12292 | if (PyErr_Occurred()) SWIG_fail; | |
12293 | } | |
12294 | resultobj = PyInt_FromLong((long)result); | |
12295 | return resultobj; | |
12296 | fail: | |
12297 | return NULL; | |
12298 | } | |
12299 | ||
12300 | ||
12301 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12302 | PyObject *resultobj; | |
12303 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12304 | bool result; | |
12305 | PyObject * obj0 = 0 ; | |
12306 | char *kwnames[] = { | |
12307 | (char *) "self", NULL | |
12308 | }; | |
12309 | ||
12310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
12311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12312 | { | |
12313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12314 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
12315 | ||
12316 | wxPyEndAllowThreads(__tstate); | |
12317 | if (PyErr_Occurred()) SWIG_fail; | |
12318 | } | |
12319 | resultobj = PyInt_FromLong((long)result); | |
12320 | return resultobj; | |
12321 | fail: | |
12322 | return NULL; | |
12323 | } | |
12324 | ||
12325 | ||
12326 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12327 | PyObject *resultobj; | |
12328 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12329 | bool result; | |
12330 | PyObject * obj0 = 0 ; | |
12331 | char *kwnames[] = { | |
12332 | (char *) "self", NULL | |
12333 | }; | |
12334 | ||
12335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
12336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12337 | { | |
12338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12339 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
12340 | ||
12341 | wxPyEndAllowThreads(__tstate); | |
12342 | if (PyErr_Occurred()) SWIG_fail; | |
12343 | } | |
12344 | resultobj = PyInt_FromLong((long)result); | |
12345 | return resultobj; | |
12346 | fail: | |
12347 | return NULL; | |
12348 | } | |
12349 | ||
12350 | ||
12351 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12352 | PyObject *resultobj; | |
12353 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12354 | bool result; | |
12355 | PyObject * obj0 = 0 ; | |
12356 | char *kwnames[] = { | |
12357 | (char *) "self", NULL | |
12358 | }; | |
12359 | ||
12360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
12361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12362 | { | |
12363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12364 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
12365 | ||
12366 | wxPyEndAllowThreads(__tstate); | |
12367 | if (PyErr_Occurred()) SWIG_fail; | |
12368 | } | |
12369 | resultobj = PyInt_FromLong((long)result); | |
12370 | return resultobj; | |
12371 | fail: | |
12372 | return NULL; | |
12373 | } | |
12374 | ||
12375 | ||
12376 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12377 | PyObject *resultobj; | |
12378 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12379 | bool result; | |
12380 | PyObject * obj0 = 0 ; | |
12381 | char *kwnames[] = { | |
12382 | (char *) "self", NULL | |
12383 | }; | |
12384 | ||
12385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
12386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12387 | { | |
12388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12389 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
12390 | ||
12391 | wxPyEndAllowThreads(__tstate); | |
12392 | if (PyErr_Occurred()) SWIG_fail; | |
12393 | } | |
12394 | resultobj = PyInt_FromLong((long)result); | |
12395 | return resultobj; | |
12396 | fail: | |
12397 | return NULL; | |
12398 | } | |
12399 | ||
12400 | ||
12401 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12402 | PyObject *resultobj; | |
12403 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12404 | bool result; | |
12405 | PyObject * obj0 = 0 ; | |
12406 | char *kwnames[] = { | |
12407 | (char *) "self", NULL | |
12408 | }; | |
12409 | ||
12410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
12411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12412 | { | |
12413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12414 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
12415 | ||
12416 | wxPyEndAllowThreads(__tstate); | |
12417 | if (PyErr_Occurred()) SWIG_fail; | |
12418 | } | |
12419 | resultobj = PyInt_FromLong((long)result); | |
12420 | return resultobj; | |
12421 | fail: | |
12422 | return NULL; | |
12423 | } | |
12424 | ||
12425 | ||
12426 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12427 | PyObject *resultobj; | |
12428 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12429 | bool result; | |
12430 | PyObject * obj0 = 0 ; | |
12431 | char *kwnames[] = { | |
12432 | (char *) "self", NULL | |
12433 | }; | |
12434 | ||
12435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
12436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12437 | { | |
12438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12439 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
12440 | ||
12441 | wxPyEndAllowThreads(__tstate); | |
12442 | if (PyErr_Occurred()) SWIG_fail; | |
12443 | } | |
12444 | resultobj = PyInt_FromLong((long)result); | |
12445 | return resultobj; | |
12446 | fail: | |
12447 | return NULL; | |
12448 | } | |
12449 | ||
12450 | ||
12451 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12452 | PyObject *resultobj; | |
12453 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12454 | bool result; | |
12455 | PyObject * obj0 = 0 ; | |
12456 | char *kwnames[] = { | |
12457 | (char *) "self", NULL | |
12458 | }; | |
12459 | ||
12460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
12461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12462 | { | |
12463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12464 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
12465 | ||
12466 | wxPyEndAllowThreads(__tstate); | |
12467 | if (PyErr_Occurred()) SWIG_fail; | |
12468 | } | |
12469 | resultobj = PyInt_FromLong((long)result); | |
12470 | return resultobj; | |
12471 | fail: | |
12472 | return NULL; | |
12473 | } | |
12474 | ||
12475 | ||
12476 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12477 | PyObject *resultobj; | |
12478 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12479 | bool result; | |
12480 | PyObject * obj0 = 0 ; | |
12481 | char *kwnames[] = { | |
12482 | (char *) "self", NULL | |
12483 | }; | |
12484 | ||
12485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
12486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12487 | { | |
12488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12489 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
12490 | ||
12491 | wxPyEndAllowThreads(__tstate); | |
12492 | if (PyErr_Occurred()) SWIG_fail; | |
12493 | } | |
12494 | resultobj = PyInt_FromLong((long)result); | |
12495 | return resultobj; | |
12496 | fail: | |
12497 | return NULL; | |
12498 | } | |
12499 | ||
12500 | ||
12501 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12502 | PyObject *resultobj; | |
12503 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12504 | bool result; | |
12505 | PyObject * obj0 = 0 ; | |
12506 | char *kwnames[] = { | |
12507 | (char *) "self", NULL | |
12508 | }; | |
12509 | ||
12510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
12511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12512 | { | |
12513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12514 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
12515 | ||
12516 | wxPyEndAllowThreads(__tstate); | |
12517 | if (PyErr_Occurred()) SWIG_fail; | |
12518 | } | |
12519 | resultobj = PyInt_FromLong((long)result); | |
12520 | return resultobj; | |
12521 | fail: | |
12522 | return NULL; | |
12523 | } | |
12524 | ||
12525 | ||
12526 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12527 | PyObject *resultobj; | |
12528 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12529 | bool result; | |
12530 | PyObject * obj0 = 0 ; | |
12531 | char *kwnames[] = { | |
12532 | (char *) "self", NULL | |
12533 | }; | |
12534 | ||
12535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
12536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12537 | { | |
12538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12539 | result = (bool)(arg1)->LeftIsDown(); | |
12540 | ||
12541 | wxPyEndAllowThreads(__tstate); | |
12542 | if (PyErr_Occurred()) SWIG_fail; | |
12543 | } | |
12544 | resultobj = PyInt_FromLong((long)result); | |
12545 | return resultobj; | |
12546 | fail: | |
12547 | return NULL; | |
12548 | } | |
12549 | ||
12550 | ||
12551 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12552 | PyObject *resultobj; | |
12553 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12554 | bool result; | |
12555 | PyObject * obj0 = 0 ; | |
12556 | char *kwnames[] = { | |
12557 | (char *) "self", NULL | |
12558 | }; | |
12559 | ||
12560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
12561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12562 | { | |
12563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12564 | result = (bool)(arg1)->MiddleIsDown(); | |
12565 | ||
12566 | wxPyEndAllowThreads(__tstate); | |
12567 | if (PyErr_Occurred()) SWIG_fail; | |
12568 | } | |
12569 | resultobj = PyInt_FromLong((long)result); | |
12570 | return resultobj; | |
12571 | fail: | |
12572 | return NULL; | |
12573 | } | |
12574 | ||
12575 | ||
12576 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12577 | PyObject *resultobj; | |
12578 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12579 | bool result; | |
12580 | PyObject * obj0 = 0 ; | |
12581 | char *kwnames[] = { | |
12582 | (char *) "self", NULL | |
12583 | }; | |
12584 | ||
12585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
12586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12587 | { | |
12588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12589 | result = (bool)(arg1)->RightIsDown(); | |
12590 | ||
12591 | wxPyEndAllowThreads(__tstate); | |
12592 | if (PyErr_Occurred()) SWIG_fail; | |
12593 | } | |
12594 | resultobj = PyInt_FromLong((long)result); | |
12595 | return resultobj; | |
12596 | fail: | |
12597 | return NULL; | |
12598 | } | |
12599 | ||
12600 | ||
12601 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12602 | PyObject *resultobj; | |
12603 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12604 | bool result; | |
12605 | PyObject * obj0 = 0 ; | |
12606 | char *kwnames[] = { | |
12607 | (char *) "self", NULL | |
12608 | }; | |
12609 | ||
12610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
12611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12612 | { | |
12613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12614 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
12615 | ||
12616 | wxPyEndAllowThreads(__tstate); | |
12617 | if (PyErr_Occurred()) SWIG_fail; | |
12618 | } | |
12619 | resultobj = PyInt_FromLong((long)result); | |
12620 | return resultobj; | |
12621 | fail: | |
12622 | return NULL; | |
12623 | } | |
12624 | ||
12625 | ||
12626 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12627 | PyObject *resultobj; | |
12628 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12629 | bool result; | |
12630 | PyObject * obj0 = 0 ; | |
12631 | char *kwnames[] = { | |
12632 | (char *) "self", NULL | |
12633 | }; | |
12634 | ||
12635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
12636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12637 | { | |
12638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12639 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
12640 | ||
12641 | wxPyEndAllowThreads(__tstate); | |
12642 | if (PyErr_Occurred()) SWIG_fail; | |
12643 | } | |
12644 | resultobj = PyInt_FromLong((long)result); | |
12645 | return resultobj; | |
12646 | fail: | |
12647 | return NULL; | |
12648 | } | |
12649 | ||
12650 | ||
12651 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12652 | PyObject *resultobj; | |
12653 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12654 | bool result; | |
12655 | PyObject * obj0 = 0 ; | |
12656 | char *kwnames[] = { | |
12657 | (char *) "self", NULL | |
12658 | }; | |
12659 | ||
12660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
12661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12662 | { | |
12663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12664 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
12665 | ||
12666 | wxPyEndAllowThreads(__tstate); | |
12667 | if (PyErr_Occurred()) SWIG_fail; | |
12668 | } | |
12669 | resultobj = PyInt_FromLong((long)result); | |
12670 | return resultobj; | |
12671 | fail: | |
12672 | return NULL; | |
12673 | } | |
12674 | ||
12675 | ||
12676 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12677 | PyObject *resultobj; | |
12678 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12679 | bool result; | |
12680 | PyObject * obj0 = 0 ; | |
12681 | char *kwnames[] = { | |
12682 | (char *) "self", NULL | |
12683 | }; | |
12684 | ||
12685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
12686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12687 | { | |
12688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12689 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
12690 | ||
12691 | wxPyEndAllowThreads(__tstate); | |
12692 | if (PyErr_Occurred()) SWIG_fail; | |
12693 | } | |
12694 | resultobj = PyInt_FromLong((long)result); | |
12695 | return resultobj; | |
12696 | fail: | |
12697 | return NULL; | |
12698 | } | |
12699 | ||
12700 | ||
12701 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12702 | PyObject *resultobj; | |
12703 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12704 | wxPoint result; | |
12705 | PyObject * obj0 = 0 ; | |
12706 | char *kwnames[] = { | |
12707 | (char *) "self", NULL | |
12708 | }; | |
12709 | ||
12710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
12711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12712 | { | |
12713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12714 | result = (arg1)->GetPosition(); | |
12715 | ||
12716 | wxPyEndAllowThreads(__tstate); | |
12717 | if (PyErr_Occurred()) SWIG_fail; | |
12718 | } | |
12719 | { | |
12720 | wxPoint * resultptr; | |
12721 | resultptr = new wxPoint((wxPoint &) result); | |
12722 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
12723 | } | |
12724 | return resultobj; | |
12725 | fail: | |
12726 | return NULL; | |
12727 | } | |
12728 | ||
12729 | ||
12730 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12731 | PyObject *resultobj; | |
12732 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12733 | long *arg2 = (long *) 0 ; | |
12734 | long *arg3 = (long *) 0 ; | |
12735 | long temp2 ; | |
12736 | long temp3 ; | |
12737 | PyObject * obj0 = 0 ; | |
12738 | char *kwnames[] = { | |
12739 | (char *) "self", NULL | |
12740 | }; | |
12741 | ||
12742 | arg2 = &temp2; | |
12743 | arg3 = &temp3; | |
12744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
12745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12746 | { | |
12747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12748 | (arg1)->GetPosition(arg2,arg3); | |
12749 | ||
12750 | wxPyEndAllowThreads(__tstate); | |
12751 | if (PyErr_Occurred()) SWIG_fail; | |
12752 | } | |
12753 | Py_INCREF(Py_None); resultobj = Py_None; | |
12754 | { | |
12755 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12756 | resultobj = t_output_helper(resultobj,o); | |
12757 | } | |
12758 | { | |
12759 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12760 | resultobj = t_output_helper(resultobj,o); | |
12761 | } | |
12762 | return resultobj; | |
12763 | fail: | |
12764 | return NULL; | |
12765 | } | |
12766 | ||
12767 | ||
12768 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12769 | PyObject *resultobj; | |
12770 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12771 | wxDC *arg2 = 0 ; | |
12772 | wxPoint result; | |
12773 | PyObject * obj0 = 0 ; | |
12774 | PyObject * obj1 = 0 ; | |
12775 | char *kwnames[] = { | |
12776 | (char *) "self",(char *) "dc", NULL | |
12777 | }; | |
12778 | ||
12779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
12780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12781 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12782 | if (arg2 == NULL) { | |
12783 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12784 | } | |
12785 | { | |
12786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12787 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
12788 | ||
12789 | wxPyEndAllowThreads(__tstate); | |
12790 | if (PyErr_Occurred()) SWIG_fail; | |
12791 | } | |
12792 | { | |
12793 | wxPoint * resultptr; | |
12794 | resultptr = new wxPoint((wxPoint &) result); | |
12795 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
12796 | } | |
12797 | return resultobj; | |
12798 | fail: | |
12799 | return NULL; | |
12800 | } | |
12801 | ||
12802 | ||
12803 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12804 | PyObject *resultobj; | |
12805 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 12806 | int result; |
d14a1e28 RD |
12807 | PyObject * obj0 = 0 ; |
12808 | char *kwnames[] = { | |
12809 | (char *) "self", NULL | |
12810 | }; | |
12811 | ||
12812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
12813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12814 | { | |
12815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12816 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
12817 | |
12818 | wxPyEndAllowThreads(__tstate); | |
12819 | if (PyErr_Occurred()) SWIG_fail; | |
12820 | } | |
12821 | resultobj = PyInt_FromLong((long)result); | |
12822 | return resultobj; | |
12823 | fail: | |
12824 | return NULL; | |
12825 | } | |
12826 | ||
12827 | ||
12828 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12829 | PyObject *resultobj; | |
12830 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 12831 | int result; |
d14a1e28 RD |
12832 | PyObject * obj0 = 0 ; |
12833 | char *kwnames[] = { | |
12834 | (char *) "self", NULL | |
12835 | }; | |
12836 | ||
12837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
12838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12839 | { | |
12840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12841 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
12842 | |
12843 | wxPyEndAllowThreads(__tstate); | |
12844 | if (PyErr_Occurred()) SWIG_fail; | |
12845 | } | |
12846 | resultobj = PyInt_FromLong((long)result); | |
12847 | return resultobj; | |
12848 | fail: | |
12849 | return NULL; | |
12850 | } | |
12851 | ||
12852 | ||
12853 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12854 | PyObject *resultobj; | |
12855 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12856 | int result; | |
12857 | PyObject * obj0 = 0 ; | |
12858 | char *kwnames[] = { | |
12859 | (char *) "self", NULL | |
12860 | }; | |
12861 | ||
12862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
12863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12864 | { | |
12865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12866 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
12867 | ||
12868 | wxPyEndAllowThreads(__tstate); | |
12869 | if (PyErr_Occurred()) SWIG_fail; | |
12870 | } | |
12871 | resultobj = PyInt_FromLong((long)result); | |
12872 | return resultobj; | |
12873 | fail: | |
12874 | return NULL; | |
12875 | } | |
12876 | ||
12877 | ||
12878 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12879 | PyObject *resultobj; | |
12880 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12881 | int result; | |
12882 | PyObject * obj0 = 0 ; | |
12883 | char *kwnames[] = { | |
12884 | (char *) "self", NULL | |
12885 | }; | |
12886 | ||
12887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
12888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12889 | { | |
12890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12891 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
12892 | ||
12893 | wxPyEndAllowThreads(__tstate); | |
12894 | if (PyErr_Occurred()) SWIG_fail; | |
12895 | } | |
12896 | resultobj = PyInt_FromLong((long)result); | |
12897 | return resultobj; | |
12898 | fail: | |
12899 | return NULL; | |
12900 | } | |
12901 | ||
12902 | ||
12903 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12904 | PyObject *resultobj; | |
12905 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12906 | int result; | |
12907 | PyObject * obj0 = 0 ; | |
12908 | char *kwnames[] = { | |
12909 | (char *) "self", NULL | |
12910 | }; | |
12911 | ||
12912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
12913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12914 | { | |
12915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12916 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
12917 | ||
12918 | wxPyEndAllowThreads(__tstate); | |
12919 | if (PyErr_Occurred()) SWIG_fail; | |
12920 | } | |
12921 | resultobj = PyInt_FromLong((long)result); | |
12922 | return resultobj; | |
12923 | fail: | |
12924 | return NULL; | |
12925 | } | |
12926 | ||
12927 | ||
12928 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12929 | PyObject *resultobj; | |
12930 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12931 | bool result; | |
12932 | PyObject * obj0 = 0 ; | |
12933 | char *kwnames[] = { | |
12934 | (char *) "self", NULL | |
12935 | }; | |
12936 | ||
12937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
12938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12939 | { | |
12940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12941 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
12942 | ||
12943 | wxPyEndAllowThreads(__tstate); | |
12944 | if (PyErr_Occurred()) SWIG_fail; | |
12945 | } | |
12946 | resultobj = PyInt_FromLong((long)result); | |
12947 | return resultobj; | |
12948 | fail: | |
12949 | return NULL; | |
12950 | } | |
12951 | ||
12952 | ||
12953 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12954 | PyObject *resultobj; | |
12955 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 12956 | int arg2 ; |
d14a1e28 RD |
12957 | PyObject * obj0 = 0 ; |
12958 | char *kwnames[] = { | |
12959 | (char *) "self",(char *) "m_x", NULL | |
12960 | }; | |
12961 | ||
12962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_x_set",kwnames,&obj0,&arg2)) goto fail; | |
12963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12964 | if (arg1) (arg1)->m_x = arg2; | |
12965 | ||
12966 | Py_INCREF(Py_None); resultobj = Py_None; | |
12967 | return resultobj; | |
12968 | fail: | |
12969 | return NULL; | |
12970 | } | |
12971 | ||
12972 | ||
12973 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12974 | PyObject *resultobj; | |
12975 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 12976 | int result; |
d14a1e28 RD |
12977 | PyObject * obj0 = 0 ; |
12978 | char *kwnames[] = { | |
12979 | (char *) "self", NULL | |
12980 | }; | |
12981 | ||
12982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
12983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 12984 | result = (int) ((arg1)->m_x); |
d14a1e28 RD |
12985 | |
12986 | resultobj = PyInt_FromLong((long)result); | |
12987 | return resultobj; | |
12988 | fail: | |
12989 | return NULL; | |
12990 | } | |
12991 | ||
12992 | ||
12993 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12994 | PyObject *resultobj; | |
12995 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 12996 | int arg2 ; |
d14a1e28 RD |
12997 | PyObject * obj0 = 0 ; |
12998 | char *kwnames[] = { | |
12999 | (char *) "self",(char *) "m_y", NULL | |
13000 | }; | |
13001 | ||
13002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_y_set",kwnames,&obj0,&arg2)) goto fail; | |
13003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13004 | if (arg1) (arg1)->m_y = arg2; | |
13005 | ||
13006 | Py_INCREF(Py_None); resultobj = Py_None; | |
13007 | return resultobj; | |
13008 | fail: | |
13009 | return NULL; | |
13010 | } | |
13011 | ||
13012 | ||
13013 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13014 | PyObject *resultobj; | |
13015 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 13016 | int result; |
d14a1e28 RD |
13017 | PyObject * obj0 = 0 ; |
13018 | char *kwnames[] = { | |
13019 | (char *) "self", NULL | |
13020 | }; | |
13021 | ||
13022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
13023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 13024 | result = (int) ((arg1)->m_y); |
d14a1e28 RD |
13025 | |
13026 | resultobj = PyInt_FromLong((long)result); | |
13027 | return resultobj; | |
13028 | fail: | |
13029 | return NULL; | |
13030 | } | |
13031 | ||
13032 | ||
13033 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13034 | PyObject *resultobj; | |
13035 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13036 | bool arg2 ; | |
13037 | PyObject * obj0 = 0 ; | |
13038 | PyObject * obj1 = 0 ; | |
13039 | char *kwnames[] = { | |
13040 | (char *) "self",(char *) "m_leftDown", NULL | |
13041 | }; | |
13042 | ||
13043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13045 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13046 | if (PyErr_Occurred()) SWIG_fail; | |
13047 | if (arg1) (arg1)->m_leftDown = arg2; | |
13048 | ||
13049 | Py_INCREF(Py_None); resultobj = Py_None; | |
13050 | return resultobj; | |
13051 | fail: | |
13052 | return NULL; | |
13053 | } | |
13054 | ||
13055 | ||
13056 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13057 | PyObject *resultobj; | |
13058 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13059 | bool result; | |
13060 | PyObject * obj0 = 0 ; | |
13061 | char *kwnames[] = { | |
13062 | (char *) "self", NULL | |
13063 | }; | |
13064 | ||
13065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
13066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13067 | result = (bool) ((arg1)->m_leftDown); | |
13068 | ||
13069 | resultobj = PyInt_FromLong((long)result); | |
13070 | return resultobj; | |
13071 | fail: | |
13072 | return NULL; | |
13073 | } | |
13074 | ||
13075 | ||
13076 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13077 | PyObject *resultobj; | |
13078 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13079 | bool arg2 ; | |
13080 | PyObject * obj0 = 0 ; | |
13081 | PyObject * obj1 = 0 ; | |
13082 | char *kwnames[] = { | |
13083 | (char *) "self",(char *) "m_middleDown", NULL | |
13084 | }; | |
13085 | ||
13086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13088 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13089 | if (PyErr_Occurred()) SWIG_fail; | |
13090 | if (arg1) (arg1)->m_middleDown = arg2; | |
13091 | ||
13092 | Py_INCREF(Py_None); resultobj = Py_None; | |
13093 | return resultobj; | |
13094 | fail: | |
13095 | return NULL; | |
13096 | } | |
13097 | ||
13098 | ||
13099 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13100 | PyObject *resultobj; | |
13101 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13102 | bool result; | |
13103 | PyObject * obj0 = 0 ; | |
13104 | char *kwnames[] = { | |
13105 | (char *) "self", NULL | |
13106 | }; | |
13107 | ||
13108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
13109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13110 | result = (bool) ((arg1)->m_middleDown); | |
13111 | ||
13112 | resultobj = PyInt_FromLong((long)result); | |
13113 | return resultobj; | |
13114 | fail: | |
13115 | return NULL; | |
13116 | } | |
13117 | ||
13118 | ||
13119 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13120 | PyObject *resultobj; | |
13121 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13122 | bool arg2 ; | |
13123 | PyObject * obj0 = 0 ; | |
13124 | PyObject * obj1 = 0 ; | |
13125 | char *kwnames[] = { | |
13126 | (char *) "self",(char *) "m_rightDown", NULL | |
13127 | }; | |
13128 | ||
13129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13131 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13132 | if (PyErr_Occurred()) SWIG_fail; | |
13133 | if (arg1) (arg1)->m_rightDown = arg2; | |
13134 | ||
13135 | Py_INCREF(Py_None); resultobj = Py_None; | |
13136 | return resultobj; | |
13137 | fail: | |
13138 | return NULL; | |
13139 | } | |
13140 | ||
13141 | ||
13142 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13143 | PyObject *resultobj; | |
13144 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13145 | bool result; | |
13146 | PyObject * obj0 = 0 ; | |
13147 | char *kwnames[] = { | |
13148 | (char *) "self", NULL | |
13149 | }; | |
13150 | ||
13151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
13152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13153 | result = (bool) ((arg1)->m_rightDown); | |
13154 | ||
13155 | resultobj = PyInt_FromLong((long)result); | |
13156 | return resultobj; | |
13157 | fail: | |
13158 | return NULL; | |
13159 | } | |
13160 | ||
13161 | ||
13162 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13163 | PyObject *resultobj; | |
13164 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13165 | bool arg2 ; | |
13166 | PyObject * obj0 = 0 ; | |
13167 | PyObject * obj1 = 0 ; | |
13168 | char *kwnames[] = { | |
13169 | (char *) "self",(char *) "m_controlDown", NULL | |
13170 | }; | |
13171 | ||
13172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13174 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13175 | if (PyErr_Occurred()) SWIG_fail; | |
13176 | if (arg1) (arg1)->m_controlDown = arg2; | |
13177 | ||
13178 | Py_INCREF(Py_None); resultobj = Py_None; | |
13179 | return resultobj; | |
13180 | fail: | |
13181 | return NULL; | |
13182 | } | |
13183 | ||
13184 | ||
13185 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13186 | PyObject *resultobj; | |
13187 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13188 | bool result; | |
13189 | PyObject * obj0 = 0 ; | |
13190 | char *kwnames[] = { | |
13191 | (char *) "self", NULL | |
13192 | }; | |
13193 | ||
13194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
13195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13196 | result = (bool) ((arg1)->m_controlDown); | |
13197 | ||
13198 | resultobj = PyInt_FromLong((long)result); | |
13199 | return resultobj; | |
13200 | fail: | |
13201 | return NULL; | |
13202 | } | |
13203 | ||
13204 | ||
13205 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13206 | PyObject *resultobj; | |
13207 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13208 | bool arg2 ; | |
13209 | PyObject * obj0 = 0 ; | |
13210 | PyObject * obj1 = 0 ; | |
13211 | char *kwnames[] = { | |
13212 | (char *) "self",(char *) "m_shiftDown", NULL | |
13213 | }; | |
13214 | ||
13215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13217 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13218 | if (PyErr_Occurred()) SWIG_fail; | |
13219 | if (arg1) (arg1)->m_shiftDown = arg2; | |
13220 | ||
13221 | Py_INCREF(Py_None); resultobj = Py_None; | |
13222 | return resultobj; | |
13223 | fail: | |
13224 | return NULL; | |
13225 | } | |
13226 | ||
13227 | ||
13228 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13229 | PyObject *resultobj; | |
13230 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13231 | bool result; | |
13232 | PyObject * obj0 = 0 ; | |
13233 | char *kwnames[] = { | |
13234 | (char *) "self", NULL | |
13235 | }; | |
13236 | ||
13237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
13238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13239 | result = (bool) ((arg1)->m_shiftDown); | |
13240 | ||
13241 | resultobj = PyInt_FromLong((long)result); | |
13242 | return resultobj; | |
13243 | fail: | |
13244 | return NULL; | |
13245 | } | |
13246 | ||
13247 | ||
13248 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13249 | PyObject *resultobj; | |
13250 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13251 | bool arg2 ; | |
13252 | PyObject * obj0 = 0 ; | |
13253 | PyObject * obj1 = 0 ; | |
13254 | char *kwnames[] = { | |
13255 | (char *) "self",(char *) "m_altDown", NULL | |
13256 | }; | |
13257 | ||
13258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13260 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13261 | if (PyErr_Occurred()) SWIG_fail; | |
13262 | if (arg1) (arg1)->m_altDown = arg2; | |
13263 | ||
13264 | Py_INCREF(Py_None); resultobj = Py_None; | |
13265 | return resultobj; | |
13266 | fail: | |
13267 | return NULL; | |
13268 | } | |
13269 | ||
13270 | ||
13271 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13272 | PyObject *resultobj; | |
13273 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13274 | bool result; | |
13275 | PyObject * obj0 = 0 ; | |
13276 | char *kwnames[] = { | |
13277 | (char *) "self", NULL | |
13278 | }; | |
13279 | ||
13280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
13281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13282 | result = (bool) ((arg1)->m_altDown); | |
13283 | ||
13284 | resultobj = PyInt_FromLong((long)result); | |
13285 | return resultobj; | |
13286 | fail: | |
13287 | return NULL; | |
13288 | } | |
13289 | ||
13290 | ||
13291 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13292 | PyObject *resultobj; | |
13293 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13294 | bool arg2 ; | |
13295 | PyObject * obj0 = 0 ; | |
13296 | PyObject * obj1 = 0 ; | |
13297 | char *kwnames[] = { | |
13298 | (char *) "self",(char *) "m_metaDown", NULL | |
13299 | }; | |
13300 | ||
13301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13303 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13304 | if (PyErr_Occurred()) SWIG_fail; | |
13305 | if (arg1) (arg1)->m_metaDown = arg2; | |
13306 | ||
13307 | Py_INCREF(Py_None); resultobj = Py_None; | |
13308 | return resultobj; | |
13309 | fail: | |
13310 | return NULL; | |
13311 | } | |
13312 | ||
13313 | ||
13314 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13315 | PyObject *resultobj; | |
13316 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13317 | bool result; | |
13318 | PyObject * obj0 = 0 ; | |
13319 | char *kwnames[] = { | |
13320 | (char *) "self", NULL | |
13321 | }; | |
13322 | ||
13323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
13324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13325 | result = (bool) ((arg1)->m_metaDown); | |
13326 | ||
13327 | resultobj = PyInt_FromLong((long)result); | |
13328 | return resultobj; | |
13329 | fail: | |
13330 | return NULL; | |
13331 | } | |
13332 | ||
13333 | ||
13334 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13335 | PyObject *resultobj; | |
13336 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13337 | int arg2 ; | |
13338 | PyObject * obj0 = 0 ; | |
13339 | char *kwnames[] = { | |
13340 | (char *) "self",(char *) "m_wheelRotation", NULL | |
13341 | }; | |
13342 | ||
13343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&arg2)) goto fail; | |
13344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13345 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
13346 | ||
13347 | Py_INCREF(Py_None); resultobj = Py_None; | |
13348 | return resultobj; | |
13349 | fail: | |
13350 | return NULL; | |
13351 | } | |
13352 | ||
13353 | ||
13354 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13355 | PyObject *resultobj; | |
13356 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13357 | int result; | |
13358 | PyObject * obj0 = 0 ; | |
13359 | char *kwnames[] = { | |
13360 | (char *) "self", NULL | |
13361 | }; | |
13362 | ||
13363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
13364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13365 | result = (int) ((arg1)->m_wheelRotation); | |
13366 | ||
13367 | resultobj = PyInt_FromLong((long)result); | |
13368 | return resultobj; | |
13369 | fail: | |
13370 | return NULL; | |
13371 | } | |
13372 | ||
13373 | ||
13374 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13375 | PyObject *resultobj; | |
13376 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13377 | int arg2 ; | |
13378 | PyObject * obj0 = 0 ; | |
13379 | char *kwnames[] = { | |
13380 | (char *) "self",(char *) "m_wheelDelta", NULL | |
13381 | }; | |
13382 | ||
13383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&arg2)) goto fail; | |
13384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13385 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
13386 | ||
13387 | Py_INCREF(Py_None); resultobj = Py_None; | |
13388 | return resultobj; | |
13389 | fail: | |
13390 | return NULL; | |
13391 | } | |
13392 | ||
13393 | ||
13394 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13395 | PyObject *resultobj; | |
13396 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13397 | int result; | |
13398 | PyObject * obj0 = 0 ; | |
13399 | char *kwnames[] = { | |
13400 | (char *) "self", NULL | |
13401 | }; | |
13402 | ||
13403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
13404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13405 | result = (int) ((arg1)->m_wheelDelta); | |
13406 | ||
13407 | resultobj = PyInt_FromLong((long)result); | |
13408 | return resultobj; | |
13409 | fail: | |
13410 | return NULL; | |
13411 | } | |
13412 | ||
13413 | ||
13414 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13415 | PyObject *resultobj; | |
13416 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13417 | int arg2 ; | |
13418 | PyObject * obj0 = 0 ; | |
13419 | char *kwnames[] = { | |
13420 | (char *) "self",(char *) "m_linesPerAction", NULL | |
13421 | }; | |
13422 | ||
13423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&arg2)) goto fail; | |
13424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13425 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
13426 | ||
13427 | Py_INCREF(Py_None); resultobj = Py_None; | |
13428 | return resultobj; | |
13429 | fail: | |
13430 | return NULL; | |
13431 | } | |
13432 | ||
13433 | ||
13434 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13435 | PyObject *resultobj; | |
13436 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13437 | int result; | |
13438 | PyObject * obj0 = 0 ; | |
13439 | char *kwnames[] = { | |
13440 | (char *) "self", NULL | |
13441 | }; | |
13442 | ||
13443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
13444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13445 | result = (int) ((arg1)->m_linesPerAction); | |
13446 | ||
13447 | resultobj = PyInt_FromLong((long)result); | |
13448 | return resultobj; | |
13449 | fail: | |
13450 | return NULL; | |
13451 | } | |
13452 | ||
13453 | ||
13454 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
13455 | PyObject *obj; | |
13456 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13457 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
13458 | Py_INCREF(obj); | |
13459 | return Py_BuildValue((char *)""); | |
13460 | } | |
13461 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13462 | PyObject *resultobj; | |
423f194a RD |
13463 | int arg1 = (int) 0 ; |
13464 | int arg2 = (int) 0 ; | |
d14a1e28 RD |
13465 | wxSetCursorEvent *result; |
13466 | char *kwnames[] = { | |
13467 | (char *) "x",(char *) "y", NULL | |
13468 | }; | |
13469 | ||
13470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_SetCursorEvent",kwnames,&arg1,&arg2)) goto fail; | |
13471 | { | |
13472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13473 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
13474 | ||
13475 | wxPyEndAllowThreads(__tstate); | |
13476 | if (PyErr_Occurred()) SWIG_fail; | |
13477 | } | |
13478 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSetCursorEvent, 1); | |
13479 | return resultobj; | |
13480 | fail: | |
13481 | return NULL; | |
13482 | } | |
13483 | ||
13484 | ||
13485 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13486 | PyObject *resultobj; | |
13487 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 13488 | int result; |
d14a1e28 RD |
13489 | PyObject * obj0 = 0 ; |
13490 | char *kwnames[] = { | |
13491 | (char *) "self", NULL | |
13492 | }; | |
13493 | ||
13494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
13495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13496 | { | |
13497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13498 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
13499 | |
13500 | wxPyEndAllowThreads(__tstate); | |
13501 | if (PyErr_Occurred()) SWIG_fail; | |
13502 | } | |
13503 | resultobj = PyInt_FromLong((long)result); | |
13504 | return resultobj; | |
13505 | fail: | |
13506 | return NULL; | |
13507 | } | |
13508 | ||
13509 | ||
13510 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13511 | PyObject *resultobj; | |
13512 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 13513 | int result; |
d14a1e28 RD |
13514 | PyObject * obj0 = 0 ; |
13515 | char *kwnames[] = { | |
13516 | (char *) "self", NULL | |
13517 | }; | |
13518 | ||
13519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
13520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13521 | { | |
13522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13523 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
13524 | |
13525 | wxPyEndAllowThreads(__tstate); | |
13526 | if (PyErr_Occurred()) SWIG_fail; | |
13527 | } | |
13528 | resultobj = PyInt_FromLong((long)result); | |
13529 | return resultobj; | |
13530 | fail: | |
13531 | return NULL; | |
13532 | } | |
13533 | ||
13534 | ||
13535 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13536 | PyObject *resultobj; | |
13537 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13538 | wxCursor *arg2 = 0 ; | |
13539 | PyObject * obj0 = 0 ; | |
13540 | PyObject * obj1 = 0 ; | |
13541 | char *kwnames[] = { | |
13542 | (char *) "self",(char *) "cursor", NULL | |
13543 | }; | |
13544 | ||
13545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
13546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13547 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13548 | if (arg2 == NULL) { | |
13549 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13550 | } | |
13551 | { | |
13552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13553 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
13554 | ||
13555 | wxPyEndAllowThreads(__tstate); | |
13556 | if (PyErr_Occurred()) SWIG_fail; | |
13557 | } | |
13558 | Py_INCREF(Py_None); resultobj = Py_None; | |
13559 | return resultobj; | |
13560 | fail: | |
13561 | return NULL; | |
13562 | } | |
13563 | ||
13564 | ||
13565 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13566 | PyObject *resultobj; | |
13567 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13568 | wxCursor *result; | |
13569 | PyObject * obj0 = 0 ; | |
13570 | char *kwnames[] = { | |
13571 | (char *) "self", NULL | |
13572 | }; | |
13573 | ||
13574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
13575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13576 | { | |
13577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13578 | { | |
13579 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
13580 | result = (wxCursor *) &_result_ref; | |
13581 | } | |
13582 | ||
13583 | wxPyEndAllowThreads(__tstate); | |
13584 | if (PyErr_Occurred()) SWIG_fail; | |
13585 | } | |
13586 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
13587 | return resultobj; | |
13588 | fail: | |
13589 | return NULL; | |
13590 | } | |
13591 | ||
13592 | ||
13593 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13594 | PyObject *resultobj; | |
13595 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13596 | bool result; | |
13597 | PyObject * obj0 = 0 ; | |
13598 | char *kwnames[] = { | |
13599 | (char *) "self", NULL | |
13600 | }; | |
13601 | ||
13602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
13603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13604 | { | |
13605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13606 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
13607 | ||
13608 | wxPyEndAllowThreads(__tstate); | |
13609 | if (PyErr_Occurred()) SWIG_fail; | |
13610 | } | |
13611 | resultobj = PyInt_FromLong((long)result); | |
13612 | return resultobj; | |
13613 | fail: | |
13614 | return NULL; | |
13615 | } | |
13616 | ||
13617 | ||
13618 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
13619 | PyObject *obj; | |
13620 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13621 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
13622 | Py_INCREF(obj); | |
13623 | return Py_BuildValue((char *)""); | |
13624 | } | |
13625 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13626 | PyObject *resultobj; | |
13627 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13628 | wxKeyEvent *result; | |
13629 | char *kwnames[] = { | |
13630 | (char *) "keyType", NULL | |
13631 | }; | |
13632 | ||
13633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_KeyEvent",kwnames,&arg1)) goto fail; | |
13634 | { | |
13635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13636 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
13637 | ||
13638 | wxPyEndAllowThreads(__tstate); | |
13639 | if (PyErr_Occurred()) SWIG_fail; | |
13640 | } | |
13641 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 1); | |
13642 | return resultobj; | |
13643 | fail: | |
13644 | return NULL; | |
13645 | } | |
13646 | ||
13647 | ||
13648 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13649 | PyObject *resultobj; | |
13650 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13651 | bool result; | |
13652 | PyObject * obj0 = 0 ; | |
13653 | char *kwnames[] = { | |
13654 | (char *) "self", NULL | |
13655 | }; | |
13656 | ||
13657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
13658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13659 | { | |
13660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13661 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
13662 | ||
13663 | wxPyEndAllowThreads(__tstate); | |
13664 | if (PyErr_Occurred()) SWIG_fail; | |
13665 | } | |
13666 | resultobj = PyInt_FromLong((long)result); | |
13667 | return resultobj; | |
13668 | fail: | |
13669 | return NULL; | |
13670 | } | |
13671 | ||
13672 | ||
13673 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13674 | PyObject *resultobj; | |
13675 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13676 | bool result; | |
13677 | PyObject * obj0 = 0 ; | |
13678 | char *kwnames[] = { | |
13679 | (char *) "self", NULL | |
13680 | }; | |
13681 | ||
13682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
13683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13684 | { | |
13685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13686 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
13687 | ||
13688 | wxPyEndAllowThreads(__tstate); | |
13689 | if (PyErr_Occurred()) SWIG_fail; | |
13690 | } | |
13691 | resultobj = PyInt_FromLong((long)result); | |
13692 | return resultobj; | |
13693 | fail: | |
13694 | return NULL; | |
13695 | } | |
13696 | ||
13697 | ||
13698 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13699 | PyObject *resultobj; | |
13700 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13701 | bool result; | |
13702 | PyObject * obj0 = 0 ; | |
13703 | char *kwnames[] = { | |
13704 | (char *) "self", NULL | |
13705 | }; | |
13706 | ||
13707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
13708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13709 | { | |
13710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13711 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
13712 | ||
13713 | wxPyEndAllowThreads(__tstate); | |
13714 | if (PyErr_Occurred()) SWIG_fail; | |
13715 | } | |
13716 | resultobj = PyInt_FromLong((long)result); | |
13717 | return resultobj; | |
13718 | fail: | |
13719 | return NULL; | |
13720 | } | |
13721 | ||
13722 | ||
13723 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13724 | PyObject *resultobj; | |
13725 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13726 | bool result; | |
13727 | PyObject * obj0 = 0 ; | |
13728 | char *kwnames[] = { | |
13729 | (char *) "self", NULL | |
13730 | }; | |
13731 | ||
13732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
13733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13734 | { | |
13735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13736 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
13737 | ||
13738 | wxPyEndAllowThreads(__tstate); | |
13739 | if (PyErr_Occurred()) SWIG_fail; | |
13740 | } | |
13741 | resultobj = PyInt_FromLong((long)result); | |
13742 | return resultobj; | |
13743 | fail: | |
13744 | return NULL; | |
13745 | } | |
13746 | ||
13747 | ||
13748 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13749 | PyObject *resultobj; | |
13750 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13751 | bool result; | |
13752 | PyObject * obj0 = 0 ; | |
13753 | char *kwnames[] = { | |
13754 | (char *) "self", NULL | |
13755 | }; | |
13756 | ||
13757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
13758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13759 | { | |
13760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13761 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
13762 | ||
13763 | wxPyEndAllowThreads(__tstate); | |
13764 | if (PyErr_Occurred()) SWIG_fail; | |
13765 | } | |
13766 | resultobj = PyInt_FromLong((long)result); | |
13767 | return resultobj; | |
13768 | fail: | |
13769 | return NULL; | |
13770 | } | |
13771 | ||
13772 | ||
13773 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13774 | PyObject *resultobj; | |
13775 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13776 | int result; | |
13777 | PyObject * obj0 = 0 ; | |
13778 | char *kwnames[] = { | |
13779 | (char *) "self", NULL | |
13780 | }; | |
13781 | ||
13782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
13783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13784 | { | |
13785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13786 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
13787 | ||
13788 | wxPyEndAllowThreads(__tstate); | |
13789 | if (PyErr_Occurred()) SWIG_fail; | |
13790 | } | |
13791 | resultobj = PyInt_FromLong((long)result); | |
13792 | return resultobj; | |
13793 | fail: | |
13794 | return NULL; | |
13795 | } | |
13796 | ||
13797 | ||
13798 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13799 | PyObject *resultobj; | |
13800 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13801 | int result; | |
13802 | PyObject * obj0 = 0 ; | |
13803 | char *kwnames[] = { | |
13804 | (char *) "self", NULL | |
13805 | }; | |
13806 | ||
13807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
13808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13809 | { | |
13810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13811 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
13812 | ||
13813 | wxPyEndAllowThreads(__tstate); | |
13814 | if (PyErr_Occurred()) SWIG_fail; | |
13815 | } | |
13816 | resultobj = PyInt_FromLong((long)result); | |
13817 | return resultobj; | |
13818 | fail: | |
13819 | return NULL; | |
13820 | } | |
13821 | ||
13822 | ||
13823 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13824 | PyObject *resultobj; | |
13825 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 13826 | unsigned int result; |
d14a1e28 RD |
13827 | PyObject * obj0 = 0 ; |
13828 | char *kwnames[] = { | |
13829 | (char *) "self", NULL | |
13830 | }; | |
13831 | ||
13832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
13833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13834 | { | |
13835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13836 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
13837 | |
13838 | wxPyEndAllowThreads(__tstate); | |
13839 | if (PyErr_Occurred()) SWIG_fail; | |
13840 | } | |
13841 | resultobj = PyInt_FromLong((long)result); | |
13842 | return resultobj; | |
13843 | fail: | |
13844 | return NULL; | |
13845 | } | |
13846 | ||
13847 | ||
13848 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13849 | PyObject *resultobj; | |
13850 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 13851 | unsigned int result; |
d14a1e28 RD |
13852 | PyObject * obj0 = 0 ; |
13853 | char *kwnames[] = { | |
13854 | (char *) "self", NULL | |
13855 | }; | |
13856 | ||
13857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
13858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13859 | { | |
13860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13861 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
13862 | |
13863 | wxPyEndAllowThreads(__tstate); | |
13864 | if (PyErr_Occurred()) SWIG_fail; | |
13865 | } | |
13866 | resultobj = PyInt_FromLong((long)result); | |
13867 | return resultobj; | |
13868 | fail: | |
13869 | return NULL; | |
13870 | } | |
13871 | ||
13872 | ||
13873 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13874 | PyObject *resultobj; | |
13875 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13876 | wxPoint result; | |
13877 | PyObject * obj0 = 0 ; | |
13878 | char *kwnames[] = { | |
13879 | (char *) "self", NULL | |
13880 | }; | |
13881 | ||
13882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13884 | { | |
13885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13886 | result = (arg1)->GetPosition(); | |
13887 | ||
13888 | wxPyEndAllowThreads(__tstate); | |
13889 | if (PyErr_Occurred()) SWIG_fail; | |
13890 | } | |
13891 | { | |
13892 | wxPoint * resultptr; | |
13893 | resultptr = new wxPoint((wxPoint &) result); | |
13894 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
13895 | } | |
13896 | return resultobj; | |
13897 | fail: | |
13898 | return NULL; | |
13899 | } | |
13900 | ||
13901 | ||
13902 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13903 | PyObject *resultobj; | |
13904 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13905 | long *arg2 = (long *) 0 ; | |
13906 | long *arg3 = (long *) 0 ; | |
13907 | long temp2 ; | |
13908 | long temp3 ; | |
13909 | PyObject * obj0 = 0 ; | |
13910 | char *kwnames[] = { | |
13911 | (char *) "self", NULL | |
13912 | }; | |
13913 | ||
13914 | arg2 = &temp2; | |
13915 | arg3 = &temp3; | |
13916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
13917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13918 | { | |
13919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13920 | (arg1)->GetPosition(arg2,arg3); | |
13921 | ||
13922 | wxPyEndAllowThreads(__tstate); | |
13923 | if (PyErr_Occurred()) SWIG_fail; | |
13924 | } | |
13925 | Py_INCREF(Py_None); resultobj = Py_None; | |
13926 | { | |
13927 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13928 | resultobj = t_output_helper(resultobj,o); | |
13929 | } | |
13930 | { | |
13931 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13932 | resultobj = t_output_helper(resultobj,o); | |
13933 | } | |
13934 | return resultobj; | |
13935 | fail: | |
13936 | return NULL; | |
13937 | } | |
13938 | ||
13939 | ||
13940 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13941 | PyObject *resultobj; | |
13942 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 13943 | int result; |
d14a1e28 RD |
13944 | PyObject * obj0 = 0 ; |
13945 | char *kwnames[] = { | |
13946 | (char *) "self", NULL | |
13947 | }; | |
13948 | ||
13949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
13950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13951 | { | |
13952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13953 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
13954 | |
13955 | wxPyEndAllowThreads(__tstate); | |
13956 | if (PyErr_Occurred()) SWIG_fail; | |
13957 | } | |
13958 | resultobj = PyInt_FromLong((long)result); | |
13959 | return resultobj; | |
13960 | fail: | |
13961 | return NULL; | |
13962 | } | |
13963 | ||
13964 | ||
13965 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13966 | PyObject *resultobj; | |
13967 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 13968 | int result; |
d14a1e28 RD |
13969 | PyObject * obj0 = 0 ; |
13970 | char *kwnames[] = { | |
13971 | (char *) "self", NULL | |
13972 | }; | |
13973 | ||
13974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
13975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13976 | { | |
13977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13978 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
13979 | |
13980 | wxPyEndAllowThreads(__tstate); | |
13981 | if (PyErr_Occurred()) SWIG_fail; | |
13982 | } | |
13983 | resultobj = PyInt_FromLong((long)result); | |
13984 | return resultobj; | |
13985 | fail: | |
13986 | return NULL; | |
13987 | } | |
13988 | ||
13989 | ||
13990 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13991 | PyObject *resultobj; | |
13992 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 13993 | int arg2 ; |
d14a1e28 RD |
13994 | PyObject * obj0 = 0 ; |
13995 | char *kwnames[] = { | |
13996 | (char *) "self",(char *) "m_x", NULL | |
13997 | }; | |
13998 | ||
13999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:KeyEvent_m_x_set",kwnames,&obj0,&arg2)) goto fail; | |
14000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14001 | if (arg1) (arg1)->m_x = arg2; | |
14002 | ||
14003 | Py_INCREF(Py_None); resultobj = Py_None; | |
14004 | return resultobj; | |
14005 | fail: | |
14006 | return NULL; | |
14007 | } | |
14008 | ||
14009 | ||
14010 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14011 | PyObject *resultobj; | |
14012 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14013 | int result; |
d14a1e28 RD |
14014 | PyObject * obj0 = 0 ; |
14015 | char *kwnames[] = { | |
14016 | (char *) "self", NULL | |
14017 | }; | |
14018 | ||
14019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
14020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14021 | result = (int) ((arg1)->m_x); |
d14a1e28 RD |
14022 | |
14023 | resultobj = PyInt_FromLong((long)result); | |
14024 | return resultobj; | |
14025 | fail: | |
14026 | return NULL; | |
14027 | } | |
14028 | ||
14029 | ||
14030 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14031 | PyObject *resultobj; | |
14032 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14033 | int arg2 ; |
d14a1e28 RD |
14034 | PyObject * obj0 = 0 ; |
14035 | char *kwnames[] = { | |
14036 | (char *) "self",(char *) "m_y", NULL | |
14037 | }; | |
14038 | ||
14039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:KeyEvent_m_y_set",kwnames,&obj0,&arg2)) goto fail; | |
14040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14041 | if (arg1) (arg1)->m_y = arg2; | |
14042 | ||
14043 | Py_INCREF(Py_None); resultobj = Py_None; | |
14044 | return resultobj; | |
14045 | fail: | |
14046 | return NULL; | |
14047 | } | |
14048 | ||
14049 | ||
14050 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14051 | PyObject *resultobj; | |
14052 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14053 | int result; |
d14a1e28 RD |
14054 | PyObject * obj0 = 0 ; |
14055 | char *kwnames[] = { | |
14056 | (char *) "self", NULL | |
14057 | }; | |
14058 | ||
14059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
14060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14061 | result = (int) ((arg1)->m_y); |
d14a1e28 RD |
14062 | |
14063 | resultobj = PyInt_FromLong((long)result); | |
14064 | return resultobj; | |
14065 | fail: | |
14066 | return NULL; | |
14067 | } | |
14068 | ||
14069 | ||
14070 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14071 | PyObject *resultobj; | |
14072 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14073 | long arg2 ; | |
14074 | PyObject * obj0 = 0 ; | |
14075 | char *kwnames[] = { | |
14076 | (char *) "self",(char *) "m_keyCode", NULL | |
14077 | }; | |
14078 | ||
14079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:KeyEvent_m_keyCode_set",kwnames,&obj0,&arg2)) goto fail; | |
14080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14081 | if (arg1) (arg1)->m_keyCode = arg2; | |
14082 | ||
14083 | Py_INCREF(Py_None); resultobj = Py_None; | |
14084 | return resultobj; | |
14085 | fail: | |
14086 | return NULL; | |
14087 | } | |
14088 | ||
14089 | ||
14090 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14091 | PyObject *resultobj; | |
14092 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14093 | long result; | |
14094 | PyObject * obj0 = 0 ; | |
14095 | char *kwnames[] = { | |
14096 | (char *) "self", NULL | |
14097 | }; | |
14098 | ||
14099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
14100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14101 | result = (long) ((arg1)->m_keyCode); | |
14102 | ||
14103 | resultobj = PyInt_FromLong((long)result); | |
14104 | return resultobj; | |
14105 | fail: | |
14106 | return NULL; | |
14107 | } | |
14108 | ||
14109 | ||
14110 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14111 | PyObject *resultobj; | |
14112 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14113 | bool arg2 ; | |
14114 | PyObject * obj0 = 0 ; | |
14115 | PyObject * obj1 = 0 ; | |
14116 | char *kwnames[] = { | |
14117 | (char *) "self",(char *) "m_controlDown", NULL | |
14118 | }; | |
14119 | ||
14120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14122 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14123 | if (PyErr_Occurred()) SWIG_fail; | |
14124 | if (arg1) (arg1)->m_controlDown = arg2; | |
14125 | ||
14126 | Py_INCREF(Py_None); resultobj = Py_None; | |
14127 | return resultobj; | |
14128 | fail: | |
14129 | return NULL; | |
14130 | } | |
14131 | ||
14132 | ||
14133 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14134 | PyObject *resultobj; | |
14135 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14136 | bool result; | |
14137 | PyObject * obj0 = 0 ; | |
14138 | char *kwnames[] = { | |
14139 | (char *) "self", NULL | |
14140 | }; | |
14141 | ||
14142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
14143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14144 | result = (bool) ((arg1)->m_controlDown); | |
14145 | ||
14146 | resultobj = PyInt_FromLong((long)result); | |
14147 | return resultobj; | |
14148 | fail: | |
14149 | return NULL; | |
14150 | } | |
14151 | ||
14152 | ||
14153 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14154 | PyObject *resultobj; | |
14155 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14156 | bool arg2 ; | |
14157 | PyObject * obj0 = 0 ; | |
14158 | PyObject * obj1 = 0 ; | |
14159 | char *kwnames[] = { | |
14160 | (char *) "self",(char *) "m_shiftDown", NULL | |
14161 | }; | |
14162 | ||
14163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14165 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14166 | if (PyErr_Occurred()) SWIG_fail; | |
14167 | if (arg1) (arg1)->m_shiftDown = arg2; | |
14168 | ||
14169 | Py_INCREF(Py_None); resultobj = Py_None; | |
14170 | return resultobj; | |
14171 | fail: | |
14172 | return NULL; | |
14173 | } | |
14174 | ||
14175 | ||
14176 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14177 | PyObject *resultobj; | |
14178 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14179 | bool result; | |
14180 | PyObject * obj0 = 0 ; | |
14181 | char *kwnames[] = { | |
14182 | (char *) "self", NULL | |
14183 | }; | |
14184 | ||
14185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
14186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14187 | result = (bool) ((arg1)->m_shiftDown); | |
14188 | ||
14189 | resultobj = PyInt_FromLong((long)result); | |
14190 | return resultobj; | |
14191 | fail: | |
14192 | return NULL; | |
14193 | } | |
14194 | ||
14195 | ||
14196 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14197 | PyObject *resultobj; | |
14198 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14199 | bool arg2 ; | |
14200 | PyObject * obj0 = 0 ; | |
14201 | PyObject * obj1 = 0 ; | |
14202 | char *kwnames[] = { | |
14203 | (char *) "self",(char *) "m_altDown", NULL | |
14204 | }; | |
14205 | ||
14206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14208 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14209 | if (PyErr_Occurred()) SWIG_fail; | |
14210 | if (arg1) (arg1)->m_altDown = arg2; | |
14211 | ||
14212 | Py_INCREF(Py_None); resultobj = Py_None; | |
14213 | return resultobj; | |
14214 | fail: | |
14215 | return NULL; | |
14216 | } | |
14217 | ||
14218 | ||
14219 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14220 | PyObject *resultobj; | |
14221 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14222 | bool result; | |
14223 | PyObject * obj0 = 0 ; | |
14224 | char *kwnames[] = { | |
14225 | (char *) "self", NULL | |
14226 | }; | |
14227 | ||
14228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
14229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14230 | result = (bool) ((arg1)->m_altDown); | |
14231 | ||
14232 | resultobj = PyInt_FromLong((long)result); | |
14233 | return resultobj; | |
14234 | fail: | |
14235 | return NULL; | |
14236 | } | |
14237 | ||
14238 | ||
14239 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14240 | PyObject *resultobj; | |
14241 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14242 | bool arg2 ; | |
14243 | PyObject * obj0 = 0 ; | |
14244 | PyObject * obj1 = 0 ; | |
14245 | char *kwnames[] = { | |
14246 | (char *) "self",(char *) "m_metaDown", NULL | |
14247 | }; | |
14248 | ||
14249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14251 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14252 | if (PyErr_Occurred()) SWIG_fail; | |
14253 | if (arg1) (arg1)->m_metaDown = arg2; | |
14254 | ||
14255 | Py_INCREF(Py_None); resultobj = Py_None; | |
14256 | return resultobj; | |
14257 | fail: | |
14258 | return NULL; | |
14259 | } | |
14260 | ||
14261 | ||
14262 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14263 | PyObject *resultobj; | |
14264 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14265 | bool result; | |
14266 | PyObject * obj0 = 0 ; | |
14267 | char *kwnames[] = { | |
14268 | (char *) "self", NULL | |
14269 | }; | |
14270 | ||
14271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
14272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14273 | result = (bool) ((arg1)->m_metaDown); | |
14274 | ||
14275 | resultobj = PyInt_FromLong((long)result); | |
14276 | return resultobj; | |
14277 | fail: | |
14278 | return NULL; | |
14279 | } | |
14280 | ||
14281 | ||
14282 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14283 | PyObject *resultobj; | |
14284 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14285 | bool arg2 ; | |
14286 | PyObject * obj0 = 0 ; | |
14287 | PyObject * obj1 = 0 ; | |
14288 | char *kwnames[] = { | |
14289 | (char *) "self",(char *) "m_scanCode", NULL | |
14290 | }; | |
14291 | ||
14292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
14293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14294 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14295 | if (PyErr_Occurred()) SWIG_fail; | |
14296 | if (arg1) (arg1)->m_scanCode = arg2; | |
14297 | ||
14298 | Py_INCREF(Py_None); resultobj = Py_None; | |
14299 | return resultobj; | |
14300 | fail: | |
14301 | return NULL; | |
14302 | } | |
14303 | ||
14304 | ||
14305 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14306 | PyObject *resultobj; | |
14307 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14308 | bool result; | |
14309 | PyObject * obj0 = 0 ; | |
14310 | char *kwnames[] = { | |
14311 | (char *) "self", NULL | |
14312 | }; | |
14313 | ||
14314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
14315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14316 | result = (bool) ((arg1)->m_scanCode); | |
14317 | ||
14318 | resultobj = PyInt_FromLong((long)result); | |
14319 | return resultobj; | |
14320 | fail: | |
14321 | return NULL; | |
14322 | } | |
14323 | ||
14324 | ||
14325 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14326 | PyObject *resultobj; | |
14327 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14328 | unsigned int arg2 ; |
d14a1e28 RD |
14329 | PyObject * obj0 = 0 ; |
14330 | PyObject * obj1 = 0 ; | |
14331 | char *kwnames[] = { | |
14332 | (char *) "self",(char *) "m_rawCode", NULL | |
14333 | }; | |
14334 | ||
14335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
14336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14337 | arg2 = (unsigned int) PyInt_AsLong(obj1); |
d14a1e28 RD |
14338 | if (PyErr_Occurred()) SWIG_fail; |
14339 | if (arg1) (arg1)->m_rawCode = arg2; | |
14340 | ||
14341 | Py_INCREF(Py_None); resultobj = Py_None; | |
14342 | return resultobj; | |
14343 | fail: | |
14344 | return NULL; | |
14345 | } | |
14346 | ||
14347 | ||
14348 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14349 | PyObject *resultobj; | |
14350 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14351 | unsigned int result; |
d14a1e28 RD |
14352 | PyObject * obj0 = 0 ; |
14353 | char *kwnames[] = { | |
14354 | (char *) "self", NULL | |
14355 | }; | |
14356 | ||
14357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
14358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14359 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 RD |
14360 | |
14361 | resultobj = PyInt_FromLong((long)result); | |
14362 | return resultobj; | |
14363 | fail: | |
14364 | return NULL; | |
14365 | } | |
14366 | ||
14367 | ||
14368 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14369 | PyObject *resultobj; | |
14370 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14371 | unsigned int arg2 ; |
d14a1e28 RD |
14372 | PyObject * obj0 = 0 ; |
14373 | PyObject * obj1 = 0 ; | |
14374 | char *kwnames[] = { | |
14375 | (char *) "self",(char *) "m_rawFlags", NULL | |
14376 | }; | |
14377 | ||
14378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
14379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14380 | arg2 = (unsigned int) PyInt_AsLong(obj1); |
d14a1e28 RD |
14381 | if (PyErr_Occurred()) SWIG_fail; |
14382 | if (arg1) (arg1)->m_rawFlags = arg2; | |
14383 | ||
14384 | Py_INCREF(Py_None); resultobj = Py_None; | |
14385 | return resultobj; | |
14386 | fail: | |
14387 | return NULL; | |
14388 | } | |
14389 | ||
14390 | ||
14391 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14392 | PyObject *resultobj; | |
14393 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14394 | unsigned int result; |
d14a1e28 RD |
14395 | PyObject * obj0 = 0 ; |
14396 | char *kwnames[] = { | |
14397 | (char *) "self", NULL | |
14398 | }; | |
14399 | ||
14400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
14401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14402 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 RD |
14403 | |
14404 | resultobj = PyInt_FromLong((long)result); | |
14405 | return resultobj; | |
14406 | fail: | |
14407 | return NULL; | |
14408 | } | |
14409 | ||
14410 | ||
14411 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
14412 | PyObject *obj; | |
14413 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14414 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
14415 | Py_INCREF(obj); | |
14416 | return Py_BuildValue((char *)""); | |
14417 | } | |
14418 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14419 | PyObject *resultobj; | |
14420 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
14421 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
14422 | int arg2 = (int) 0 ; | |
14423 | wxSizeEvent *result; | |
14424 | wxSize temp1 ; | |
14425 | PyObject * obj0 = 0 ; | |
14426 | char *kwnames[] = { | |
14427 | (char *) "sz",(char *) "winid", NULL | |
14428 | }; | |
14429 | ||
14430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_SizeEvent",kwnames,&obj0,&arg2)) goto fail; | |
14431 | if (obj0) { | |
14432 | { | |
14433 | arg1 = &temp1; | |
14434 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14435 | } | |
14436 | } | |
14437 | { | |
14438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14439 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
14440 | ||
14441 | wxPyEndAllowThreads(__tstate); | |
14442 | if (PyErr_Occurred()) SWIG_fail; | |
14443 | } | |
14444 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizeEvent, 1); | |
14445 | return resultobj; | |
14446 | fail: | |
14447 | return NULL; | |
14448 | } | |
14449 | ||
14450 | ||
14451 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14452 | PyObject *resultobj; | |
14453 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14454 | wxSize result; | |
14455 | PyObject * obj0 = 0 ; | |
14456 | char *kwnames[] = { | |
14457 | (char *) "self", NULL | |
14458 | }; | |
14459 | ||
14460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
14461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14462 | { | |
14463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14464 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
14465 | ||
14466 | wxPyEndAllowThreads(__tstate); | |
14467 | if (PyErr_Occurred()) SWIG_fail; | |
14468 | } | |
14469 | { | |
14470 | wxSize * resultptr; | |
14471 | resultptr = new wxSize((wxSize &) result); | |
14472 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14473 | } | |
14474 | return resultobj; | |
14475 | fail: | |
14476 | return NULL; | |
14477 | } | |
14478 | ||
14479 | ||
14480 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14481 | PyObject *resultobj; | |
14482 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14483 | wxRect result; | |
14484 | PyObject * obj0 = 0 ; | |
14485 | char *kwnames[] = { | |
14486 | (char *) "self", NULL | |
14487 | }; | |
14488 | ||
14489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
14490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14491 | { | |
14492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14493 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
14494 | ||
14495 | wxPyEndAllowThreads(__tstate); | |
14496 | if (PyErr_Occurred()) SWIG_fail; | |
14497 | } | |
14498 | { | |
14499 | wxRect * resultptr; | |
14500 | resultptr = new wxRect((wxRect &) result); | |
14501 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
14502 | } | |
14503 | return resultobj; | |
14504 | fail: | |
14505 | return NULL; | |
14506 | } | |
14507 | ||
14508 | ||
14509 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14510 | PyObject *resultobj; | |
14511 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14512 | wxRect arg2 ; | |
14513 | wxRect *argp2 ; | |
14514 | PyObject * obj0 = 0 ; | |
14515 | PyObject * obj1 = 0 ; | |
14516 | char *kwnames[] = { | |
14517 | (char *) "self",(char *) "rect", NULL | |
14518 | }; | |
14519 | ||
14520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
14521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14522 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14523 | arg2 = *argp2; | |
14524 | { | |
14525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14526 | (arg1)->SetRect(arg2); | |
14527 | ||
14528 | wxPyEndAllowThreads(__tstate); | |
14529 | if (PyErr_Occurred()) SWIG_fail; | |
14530 | } | |
14531 | Py_INCREF(Py_None); resultobj = Py_None; | |
14532 | return resultobj; | |
14533 | fail: | |
14534 | return NULL; | |
14535 | } | |
14536 | ||
14537 | ||
14538 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14539 | PyObject *resultobj; | |
14540 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14541 | wxSize arg2 ; | |
14542 | wxSize *argp2 ; | |
14543 | PyObject * obj0 = 0 ; | |
14544 | PyObject * obj1 = 0 ; | |
14545 | char *kwnames[] = { | |
14546 | (char *) "self",(char *) "size", NULL | |
14547 | }; | |
14548 | ||
14549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
14550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14551 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14552 | arg2 = *argp2; | |
14553 | { | |
14554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14555 | wxSizeEvent_SetSize(arg1,arg2); | |
14556 | ||
14557 | wxPyEndAllowThreads(__tstate); | |
14558 | if (PyErr_Occurred()) SWIG_fail; | |
14559 | } | |
14560 | Py_INCREF(Py_None); resultobj = Py_None; | |
14561 | return resultobj; | |
14562 | fail: | |
14563 | return NULL; | |
14564 | } | |
14565 | ||
14566 | ||
14567 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14568 | PyObject *resultobj; | |
14569 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14570 | wxSize *arg2 = (wxSize *) 0 ; | |
14571 | PyObject * obj0 = 0 ; | |
14572 | PyObject * obj1 = 0 ; | |
14573 | char *kwnames[] = { | |
14574 | (char *) "self",(char *) "m_size", NULL | |
14575 | }; | |
14576 | ||
14577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
14578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14579 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14580 | if (arg1) (arg1)->m_size = *arg2; | |
14581 | ||
14582 | Py_INCREF(Py_None); resultobj = Py_None; | |
14583 | return resultobj; | |
14584 | fail: | |
14585 | return NULL; | |
14586 | } | |
14587 | ||
14588 | ||
14589 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14590 | PyObject *resultobj; | |
14591 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14592 | wxSize *result; | |
14593 | PyObject * obj0 = 0 ; | |
14594 | char *kwnames[] = { | |
14595 | (char *) "self", NULL | |
14596 | }; | |
14597 | ||
14598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
14599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14600 | result = (wxSize *)& ((arg1)->m_size); | |
14601 | ||
14602 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
14603 | return resultobj; | |
14604 | fail: | |
14605 | return NULL; | |
14606 | } | |
14607 | ||
14608 | ||
14609 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14610 | PyObject *resultobj; | |
14611 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14612 | wxRect *arg2 = (wxRect *) 0 ; | |
14613 | PyObject * obj0 = 0 ; | |
14614 | PyObject * obj1 = 0 ; | |
14615 | char *kwnames[] = { | |
14616 | (char *) "self",(char *) "m_rect", NULL | |
14617 | }; | |
14618 | ||
14619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
14620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14621 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14622 | if (arg1) (arg1)->m_rect = *arg2; | |
14623 | ||
14624 | Py_INCREF(Py_None); resultobj = Py_None; | |
14625 | return resultobj; | |
14626 | fail: | |
14627 | return NULL; | |
14628 | } | |
14629 | ||
14630 | ||
14631 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14632 | PyObject *resultobj; | |
14633 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14634 | wxRect *result; | |
14635 | PyObject * obj0 = 0 ; | |
14636 | char *kwnames[] = { | |
14637 | (char *) "self", NULL | |
14638 | }; | |
14639 | ||
14640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
14641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14642 | result = (wxRect *)& ((arg1)->m_rect); | |
14643 | ||
14644 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
14645 | return resultobj; | |
14646 | fail: | |
14647 | return NULL; | |
14648 | } | |
14649 | ||
14650 | ||
14651 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
14652 | PyObject *obj; | |
14653 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14654 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
14655 | Py_INCREF(obj); | |
14656 | return Py_BuildValue((char *)""); | |
14657 | } | |
14658 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14659 | PyObject *resultobj; | |
14660 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
14661 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
14662 | int arg2 = (int) 0 ; | |
14663 | wxMoveEvent *result; | |
14664 | wxPoint temp1 ; | |
14665 | PyObject * obj0 = 0 ; | |
14666 | char *kwnames[] = { | |
14667 | (char *) "pos",(char *) "winid", NULL | |
14668 | }; | |
14669 | ||
14670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_MoveEvent",kwnames,&obj0,&arg2)) goto fail; | |
14671 | if (obj0) { | |
14672 | { | |
14673 | arg1 = &temp1; | |
14674 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
14675 | } | |
14676 | } | |
14677 | { | |
14678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14679 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
14680 | ||
14681 | wxPyEndAllowThreads(__tstate); | |
14682 | if (PyErr_Occurred()) SWIG_fail; | |
14683 | } | |
14684 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMoveEvent, 1); | |
14685 | return resultobj; | |
14686 | fail: | |
14687 | return NULL; | |
14688 | } | |
14689 | ||
14690 | ||
14691 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14692 | PyObject *resultobj; | |
14693 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14694 | wxPoint result; | |
14695 | PyObject * obj0 = 0 ; | |
14696 | char *kwnames[] = { | |
14697 | (char *) "self", NULL | |
14698 | }; | |
14699 | ||
14700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14702 | { | |
14703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14704 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
14705 | ||
14706 | wxPyEndAllowThreads(__tstate); | |
14707 | if (PyErr_Occurred()) SWIG_fail; | |
14708 | } | |
14709 | { | |
14710 | wxPoint * resultptr; | |
14711 | resultptr = new wxPoint((wxPoint &) result); | |
14712 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
14713 | } | |
14714 | return resultobj; | |
14715 | fail: | |
14716 | return NULL; | |
14717 | } | |
14718 | ||
14719 | ||
14720 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14721 | PyObject *resultobj; | |
14722 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14723 | wxRect result; | |
14724 | PyObject * obj0 = 0 ; | |
14725 | char *kwnames[] = { | |
14726 | (char *) "self", NULL | |
14727 | }; | |
14728 | ||
14729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
14730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14731 | { | |
14732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14733 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
14734 | ||
14735 | wxPyEndAllowThreads(__tstate); | |
14736 | if (PyErr_Occurred()) SWIG_fail; | |
14737 | } | |
14738 | { | |
14739 | wxRect * resultptr; | |
14740 | resultptr = new wxRect((wxRect &) result); | |
14741 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
14742 | } | |
14743 | return resultobj; | |
14744 | fail: | |
14745 | return NULL; | |
14746 | } | |
14747 | ||
14748 | ||
14749 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14750 | PyObject *resultobj; | |
14751 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14752 | wxRect arg2 ; | |
14753 | wxRect *argp2 ; | |
14754 | PyObject * obj0 = 0 ; | |
14755 | PyObject * obj1 = 0 ; | |
14756 | char *kwnames[] = { | |
14757 | (char *) "self",(char *) "rect", NULL | |
14758 | }; | |
14759 | ||
14760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
14761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14762 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14763 | arg2 = *argp2; | |
14764 | { | |
14765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14766 | (arg1)->SetRect(arg2); | |
14767 | ||
14768 | wxPyEndAllowThreads(__tstate); | |
14769 | if (PyErr_Occurred()) SWIG_fail; | |
14770 | } | |
14771 | Py_INCREF(Py_None); resultobj = Py_None; | |
14772 | return resultobj; | |
14773 | fail: | |
14774 | return NULL; | |
14775 | } | |
14776 | ||
14777 | ||
14778 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14779 | PyObject *resultobj; | |
14780 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14781 | wxPoint arg2 ; | |
14782 | wxPoint *argp2 ; | |
14783 | PyObject * obj0 = 0 ; | |
14784 | PyObject * obj1 = 0 ; | |
14785 | char *kwnames[] = { | |
14786 | (char *) "self",(char *) "pos", NULL | |
14787 | }; | |
14788 | ||
14789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
14790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14791 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14792 | arg2 = *argp2; | |
14793 | { | |
14794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14795 | wxMoveEvent_SetPosition(arg1,arg2); | |
14796 | ||
14797 | wxPyEndAllowThreads(__tstate); | |
14798 | if (PyErr_Occurred()) SWIG_fail; | |
14799 | } | |
14800 | Py_INCREF(Py_None); resultobj = Py_None; | |
14801 | return resultobj; | |
14802 | fail: | |
14803 | return NULL; | |
14804 | } | |
14805 | ||
14806 | ||
14807 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14808 | PyObject *resultobj; | |
14809 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14810 | wxPoint *arg2 = (wxPoint *) 0 ; | |
14811 | PyObject * obj0 = 0 ; | |
14812 | PyObject * obj1 = 0 ; | |
14813 | char *kwnames[] = { | |
14814 | (char *) "self",(char *) "m_pos", NULL | |
14815 | }; | |
14816 | ||
14817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
14818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14819 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14820 | if (arg1) (arg1)->m_pos = *arg2; | |
14821 | ||
14822 | Py_INCREF(Py_None); resultobj = Py_None; | |
14823 | return resultobj; | |
14824 | fail: | |
14825 | return NULL; | |
14826 | } | |
14827 | ||
14828 | ||
14829 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14830 | PyObject *resultobj; | |
14831 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14832 | wxPoint *result; | |
14833 | PyObject * obj0 = 0 ; | |
14834 | char *kwnames[] = { | |
14835 | (char *) "self", NULL | |
14836 | }; | |
14837 | ||
14838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
14839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14840 | result = (wxPoint *)& ((arg1)->m_pos); | |
14841 | ||
14842 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
14843 | return resultobj; | |
14844 | fail: | |
14845 | return NULL; | |
14846 | } | |
14847 | ||
14848 | ||
14849 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14850 | PyObject *resultobj; | |
14851 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14852 | wxRect *arg2 = (wxRect *) 0 ; | |
14853 | PyObject * obj0 = 0 ; | |
14854 | PyObject * obj1 = 0 ; | |
14855 | char *kwnames[] = { | |
14856 | (char *) "self",(char *) "m_rect", NULL | |
14857 | }; | |
14858 | ||
14859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
14860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14861 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14862 | if (arg1) (arg1)->m_rect = *arg2; | |
14863 | ||
14864 | Py_INCREF(Py_None); resultobj = Py_None; | |
14865 | return resultobj; | |
14866 | fail: | |
14867 | return NULL; | |
14868 | } | |
14869 | ||
14870 | ||
14871 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14872 | PyObject *resultobj; | |
14873 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14874 | wxRect *result; | |
14875 | PyObject * obj0 = 0 ; | |
14876 | char *kwnames[] = { | |
14877 | (char *) "self", NULL | |
14878 | }; | |
14879 | ||
14880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
14881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14882 | result = (wxRect *)& ((arg1)->m_rect); | |
14883 | ||
14884 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
14885 | return resultobj; | |
14886 | fail: | |
14887 | return NULL; | |
14888 | } | |
14889 | ||
14890 | ||
14891 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
14892 | PyObject *obj; | |
14893 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14894 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
14895 | Py_INCREF(obj); | |
14896 | return Py_BuildValue((char *)""); | |
14897 | } | |
14898 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14899 | PyObject *resultobj; | |
14900 | int arg1 = (int) 0 ; | |
14901 | wxPaintEvent *result; | |
14902 | char *kwnames[] = { | |
14903 | (char *) "Id", NULL | |
14904 | }; | |
14905 | ||
14906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_PaintEvent",kwnames,&arg1)) goto fail; | |
14907 | { | |
14908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14909 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
14910 | ||
14911 | wxPyEndAllowThreads(__tstate); | |
14912 | if (PyErr_Occurred()) SWIG_fail; | |
14913 | } | |
14914 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintEvent, 1); | |
14915 | return resultobj; | |
14916 | fail: | |
14917 | return NULL; | |
14918 | } | |
14919 | ||
14920 | ||
14921 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
14922 | PyObject *obj; | |
14923 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14924 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
14925 | Py_INCREF(obj); | |
14926 | return Py_BuildValue((char *)""); | |
14927 | } | |
14928 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14929 | PyObject *resultobj; | |
14930 | int arg1 = (int) 0 ; | |
14931 | wxNcPaintEvent *result; | |
14932 | char *kwnames[] = { | |
14933 | (char *) "winid", NULL | |
14934 | }; | |
14935 | ||
14936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_NcPaintEvent",kwnames,&arg1)) goto fail; | |
14937 | { | |
14938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14939 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
14940 | ||
14941 | wxPyEndAllowThreads(__tstate); | |
14942 | if (PyErr_Occurred()) SWIG_fail; | |
14943 | } | |
14944 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNcPaintEvent, 1); | |
14945 | return resultobj; | |
14946 | fail: | |
14947 | return NULL; | |
14948 | } | |
14949 | ||
14950 | ||
14951 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
14952 | PyObject *obj; | |
14953 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14954 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
14955 | Py_INCREF(obj); | |
14956 | return Py_BuildValue((char *)""); | |
14957 | } | |
14958 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14959 | PyObject *resultobj; | |
14960 | int arg1 = (int) 0 ; | |
14961 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
14962 | wxEraseEvent *result; | |
14963 | PyObject * obj1 = 0 ; | |
14964 | char *kwnames[] = { | |
14965 | (char *) "Id",(char *) "dc", NULL | |
14966 | }; | |
14967 | ||
14968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_EraseEvent",kwnames,&arg1,&obj1)) goto fail; | |
14969 | if (obj1) { | |
14970 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14971 | } | |
14972 | { | |
14973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14974 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
14975 | ||
14976 | wxPyEndAllowThreads(__tstate); | |
14977 | if (PyErr_Occurred()) SWIG_fail; | |
14978 | } | |
14979 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEraseEvent, 1); | |
14980 | return resultobj; | |
14981 | fail: | |
14982 | return NULL; | |
14983 | } | |
14984 | ||
14985 | ||
14986 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14987 | PyObject *resultobj; | |
14988 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
14989 | wxDC *result; | |
14990 | PyObject * obj0 = 0 ; | |
14991 | char *kwnames[] = { | |
14992 | (char *) "self", NULL | |
14993 | }; | |
14994 | ||
14995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
14996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEraseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14997 | { | |
14998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14999 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
15000 | ||
15001 | wxPyEndAllowThreads(__tstate); | |
15002 | if (PyErr_Occurred()) SWIG_fail; | |
15003 | } | |
15004 | { | |
15005 | resultobj = wxPyMake_wxObject(result); | |
15006 | } | |
15007 | return resultobj; | |
15008 | fail: | |
15009 | return NULL; | |
15010 | } | |
15011 | ||
15012 | ||
15013 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
15014 | PyObject *obj; | |
15015 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15016 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
15017 | Py_INCREF(obj); | |
15018 | return Py_BuildValue((char *)""); | |
15019 | } | |
15020 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15021 | PyObject *resultobj; | |
15022 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15023 | int arg2 = (int) 0 ; | |
15024 | wxFocusEvent *result; | |
15025 | char *kwnames[] = { | |
15026 | (char *) "type",(char *) "winid", NULL | |
15027 | }; | |
15028 | ||
15029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_FocusEvent",kwnames,&arg1,&arg2)) goto fail; | |
15030 | { | |
15031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15032 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
15033 | ||
15034 | wxPyEndAllowThreads(__tstate); | |
15035 | if (PyErr_Occurred()) SWIG_fail; | |
15036 | } | |
15037 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFocusEvent, 1); | |
15038 | return resultobj; | |
15039 | fail: | |
15040 | return NULL; | |
15041 | } | |
15042 | ||
15043 | ||
15044 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15045 | PyObject *resultobj; | |
15046 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
15047 | wxWindow *result; | |
15048 | PyObject * obj0 = 0 ; | |
15049 | char *kwnames[] = { | |
15050 | (char *) "self", NULL | |
15051 | }; | |
15052 | ||
15053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15055 | { | |
15056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15057 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
15058 | ||
15059 | wxPyEndAllowThreads(__tstate); | |
15060 | if (PyErr_Occurred()) SWIG_fail; | |
15061 | } | |
15062 | { | |
15063 | resultobj = wxPyMake_wxObject(result); | |
15064 | } | |
15065 | return resultobj; | |
15066 | fail: | |
15067 | return NULL; | |
15068 | } | |
15069 | ||
15070 | ||
15071 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15072 | PyObject *resultobj; | |
15073 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
15074 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15075 | PyObject * obj0 = 0 ; | |
15076 | PyObject * obj1 = 0 ; | |
15077 | char *kwnames[] = { | |
15078 | (char *) "self",(char *) "win", NULL | |
15079 | }; | |
15080 | ||
15081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15083 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15084 | { | |
15085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15086 | (arg1)->SetWindow(arg2); | |
15087 | ||
15088 | wxPyEndAllowThreads(__tstate); | |
15089 | if (PyErr_Occurred()) SWIG_fail; | |
15090 | } | |
15091 | Py_INCREF(Py_None); resultobj = Py_None; | |
15092 | return resultobj; | |
15093 | fail: | |
15094 | return NULL; | |
15095 | } | |
15096 | ||
15097 | ||
15098 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
15099 | PyObject *obj; | |
15100 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15101 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
15102 | Py_INCREF(obj); | |
15103 | return Py_BuildValue((char *)""); | |
15104 | } | |
15105 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15106 | PyObject *resultobj; | |
15107 | wxWindow *arg1 = (wxWindow *) NULL ; | |
15108 | wxChildFocusEvent *result; | |
15109 | PyObject * obj0 = 0 ; | |
15110 | char *kwnames[] = { | |
15111 | (char *) "win", NULL | |
15112 | }; | |
15113 | ||
15114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
15115 | if (obj0) { | |
15116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15117 | } | |
15118 | { | |
15119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15120 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
15121 | ||
15122 | wxPyEndAllowThreads(__tstate); | |
15123 | if (PyErr_Occurred()) SWIG_fail; | |
15124 | } | |
15125 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChildFocusEvent, 1); | |
15126 | return resultobj; | |
15127 | fail: | |
15128 | return NULL; | |
15129 | } | |
15130 | ||
15131 | ||
15132 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15133 | PyObject *resultobj; | |
15134 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
15135 | wxWindow *result; | |
15136 | PyObject * obj0 = 0 ; | |
15137 | char *kwnames[] = { | |
15138 | (char *) "self", NULL | |
15139 | }; | |
15140 | ||
15141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChildFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15143 | { | |
15144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15145 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
15146 | ||
15147 | wxPyEndAllowThreads(__tstate); | |
15148 | if (PyErr_Occurred()) SWIG_fail; | |
15149 | } | |
15150 | { | |
15151 | resultobj = wxPyMake_wxObject(result); | |
15152 | } | |
15153 | return resultobj; | |
15154 | fail: | |
15155 | return NULL; | |
15156 | } | |
15157 | ||
15158 | ||
15159 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
15160 | PyObject *obj; | |
15161 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15162 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
15163 | Py_INCREF(obj); | |
15164 | return Py_BuildValue((char *)""); | |
15165 | } | |
15166 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15167 | PyObject *resultobj; | |
15168 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 15169 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15170 | int arg3 = (int) 0 ; |
15171 | wxActivateEvent *result; | |
15172 | PyObject * obj1 = 0 ; | |
15173 | char *kwnames[] = { | |
15174 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
15175 | }; | |
15176 | ||
15177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iOi:new_ActivateEvent",kwnames,&arg1,&obj1,&arg3)) goto fail; | |
15178 | if (obj1) { | |
15179 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15180 | if (PyErr_Occurred()) SWIG_fail; | |
15181 | } | |
15182 | { | |
15183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15184 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
15185 | ||
15186 | wxPyEndAllowThreads(__tstate); | |
15187 | if (PyErr_Occurred()) SWIG_fail; | |
15188 | } | |
15189 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxActivateEvent, 1); | |
15190 | return resultobj; | |
15191 | fail: | |
15192 | return NULL; | |
15193 | } | |
15194 | ||
15195 | ||
15196 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15197 | PyObject *resultobj; | |
15198 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
15199 | bool result; | |
15200 | PyObject * obj0 = 0 ; | |
15201 | char *kwnames[] = { | |
15202 | (char *) "self", NULL | |
15203 | }; | |
15204 | ||
15205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
15206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxActivateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15207 | { | |
15208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15209 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
15210 | ||
15211 | wxPyEndAllowThreads(__tstate); | |
15212 | if (PyErr_Occurred()) SWIG_fail; | |
15213 | } | |
15214 | resultobj = PyInt_FromLong((long)result); | |
15215 | return resultobj; | |
15216 | fail: | |
15217 | return NULL; | |
15218 | } | |
15219 | ||
15220 | ||
15221 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
15222 | PyObject *obj; | |
15223 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15224 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
15225 | Py_INCREF(obj); | |
15226 | return Py_BuildValue((char *)""); | |
15227 | } | |
15228 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15229 | PyObject *resultobj; | |
15230 | int arg1 = (int) 0 ; | |
15231 | wxInitDialogEvent *result; | |
15232 | char *kwnames[] = { | |
15233 | (char *) "Id", NULL | |
15234 | }; | |
15235 | ||
15236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_InitDialogEvent",kwnames,&arg1)) goto fail; | |
15237 | { | |
15238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15239 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
15240 | ||
15241 | wxPyEndAllowThreads(__tstate); | |
15242 | if (PyErr_Occurred()) SWIG_fail; | |
15243 | } | |
15244 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInitDialogEvent, 1); | |
15245 | return resultobj; | |
15246 | fail: | |
15247 | return NULL; | |
15248 | } | |
15249 | ||
15250 | ||
15251 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
15252 | PyObject *obj; | |
15253 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15254 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
15255 | Py_INCREF(obj); | |
15256 | return Py_BuildValue((char *)""); | |
15257 | } | |
15258 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15259 | PyObject *resultobj; | |
15260 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15261 | int arg2 = (int) 0 ; | |
15262 | wxMenu *arg3 = (wxMenu *) NULL ; | |
15263 | wxMenuEvent *result; | |
15264 | PyObject * obj2 = 0 ; | |
15265 | char *kwnames[] = { | |
15266 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
15267 | }; | |
15268 | ||
15269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_MenuEvent",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
15270 | if (obj2) { | |
15271 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15272 | } | |
15273 | { | |
15274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15275 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
15276 | ||
15277 | wxPyEndAllowThreads(__tstate); | |
15278 | if (PyErr_Occurred()) SWIG_fail; | |
15279 | } | |
15280 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMenuEvent, 1); | |
15281 | return resultobj; | |
15282 | fail: | |
15283 | return NULL; | |
15284 | } | |
15285 | ||
15286 | ||
15287 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15288 | PyObject *resultobj; | |
15289 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
15290 | int result; | |
15291 | PyObject * obj0 = 0 ; | |
15292 | char *kwnames[] = { | |
15293 | (char *) "self", NULL | |
15294 | }; | |
15295 | ||
15296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
15297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15298 | { | |
15299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15300 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
15301 | ||
15302 | wxPyEndAllowThreads(__tstate); | |
15303 | if (PyErr_Occurred()) SWIG_fail; | |
15304 | } | |
15305 | resultobj = PyInt_FromLong((long)result); | |
15306 | return resultobj; | |
15307 | fail: | |
15308 | return NULL; | |
15309 | } | |
15310 | ||
15311 | ||
15312 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15313 | PyObject *resultobj; | |
15314 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
15315 | bool result; | |
15316 | PyObject * obj0 = 0 ; | |
15317 | char *kwnames[] = { | |
15318 | (char *) "self", NULL | |
15319 | }; | |
15320 | ||
15321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
15322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15323 | { | |
15324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15325 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
15326 | ||
15327 | wxPyEndAllowThreads(__tstate); | |
15328 | if (PyErr_Occurred()) SWIG_fail; | |
15329 | } | |
15330 | resultobj = PyInt_FromLong((long)result); | |
15331 | return resultobj; | |
15332 | fail: | |
15333 | return NULL; | |
15334 | } | |
15335 | ||
15336 | ||
15337 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15338 | PyObject *resultobj; | |
15339 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
15340 | wxMenu *result; | |
15341 | PyObject * obj0 = 0 ; | |
15342 | char *kwnames[] = { | |
15343 | (char *) "self", NULL | |
15344 | }; | |
15345 | ||
15346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
15347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15348 | { | |
15349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15350 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
15351 | ||
15352 | wxPyEndAllowThreads(__tstate); | |
15353 | if (PyErr_Occurred()) SWIG_fail; | |
15354 | } | |
15355 | { | |
15356 | resultobj = wxPyMake_wxObject(result); | |
15357 | } | |
15358 | return resultobj; | |
15359 | fail: | |
15360 | return NULL; | |
15361 | } | |
15362 | ||
15363 | ||
15364 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
15365 | PyObject *obj; | |
15366 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15367 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
15368 | Py_INCREF(obj); | |
15369 | return Py_BuildValue((char *)""); | |
15370 | } | |
15371 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15372 | PyObject *resultobj; | |
15373 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15374 | int arg2 = (int) 0 ; | |
15375 | wxCloseEvent *result; | |
15376 | char *kwnames[] = { | |
15377 | (char *) "type",(char *) "winid", NULL | |
15378 | }; | |
15379 | ||
15380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_CloseEvent",kwnames,&arg1,&arg2)) goto fail; | |
15381 | { | |
15382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15383 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
15384 | ||
15385 | wxPyEndAllowThreads(__tstate); | |
15386 | if (PyErr_Occurred()) SWIG_fail; | |
15387 | } | |
15388 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCloseEvent, 1); | |
15389 | return resultobj; | |
15390 | fail: | |
15391 | return NULL; | |
15392 | } | |
15393 | ||
15394 | ||
15395 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15396 | PyObject *resultobj; | |
15397 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15398 | bool arg2 ; | |
15399 | PyObject * obj0 = 0 ; | |
15400 | PyObject * obj1 = 0 ; | |
15401 | char *kwnames[] = { | |
15402 | (char *) "self",(char *) "logOff", NULL | |
15403 | }; | |
15404 | ||
15405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
15406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15407 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15408 | if (PyErr_Occurred()) SWIG_fail; | |
15409 | { | |
15410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15411 | (arg1)->SetLoggingOff(arg2); | |
15412 | ||
15413 | wxPyEndAllowThreads(__tstate); | |
15414 | if (PyErr_Occurred()) SWIG_fail; | |
15415 | } | |
15416 | Py_INCREF(Py_None); resultobj = Py_None; | |
15417 | return resultobj; | |
15418 | fail: | |
15419 | return NULL; | |
15420 | } | |
15421 | ||
15422 | ||
15423 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15424 | PyObject *resultobj; | |
15425 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15426 | bool result; | |
15427 | PyObject * obj0 = 0 ; | |
15428 | char *kwnames[] = { | |
15429 | (char *) "self", NULL | |
15430 | }; | |
15431 | ||
15432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
15433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15434 | { | |
15435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15436 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
15437 | ||
15438 | wxPyEndAllowThreads(__tstate); | |
15439 | if (PyErr_Occurred()) SWIG_fail; | |
15440 | } | |
15441 | resultobj = PyInt_FromLong((long)result); | |
15442 | return resultobj; | |
15443 | fail: | |
15444 | return NULL; | |
15445 | } | |
15446 | ||
15447 | ||
15448 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15449 | PyObject *resultobj; | |
15450 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
423f194a | 15451 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15452 | PyObject * obj0 = 0 ; |
15453 | PyObject * obj1 = 0 ; | |
15454 | char *kwnames[] = { | |
15455 | (char *) "self",(char *) "veto", NULL | |
15456 | }; | |
15457 | ||
15458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
15459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15460 | if (obj1) { | |
15461 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15462 | if (PyErr_Occurred()) SWIG_fail; | |
15463 | } | |
15464 | { | |
15465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15466 | (arg1)->Veto(arg2); | |
15467 | ||
15468 | wxPyEndAllowThreads(__tstate); | |
15469 | if (PyErr_Occurred()) SWIG_fail; | |
15470 | } | |
15471 | Py_INCREF(Py_None); resultobj = Py_None; | |
15472 | return resultobj; | |
15473 | fail: | |
15474 | return NULL; | |
15475 | } | |
15476 | ||
15477 | ||
15478 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15479 | PyObject *resultobj; | |
15480 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15481 | bool arg2 ; | |
15482 | PyObject * obj0 = 0 ; | |
15483 | PyObject * obj1 = 0 ; | |
15484 | char *kwnames[] = { | |
15485 | (char *) "self",(char *) "canVeto", NULL | |
15486 | }; | |
15487 | ||
15488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
15489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15490 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15491 | if (PyErr_Occurred()) SWIG_fail; | |
15492 | { | |
15493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15494 | (arg1)->SetCanVeto(arg2); | |
15495 | ||
15496 | wxPyEndAllowThreads(__tstate); | |
15497 | if (PyErr_Occurred()) SWIG_fail; | |
15498 | } | |
15499 | Py_INCREF(Py_None); resultobj = Py_None; | |
15500 | return resultobj; | |
15501 | fail: | |
15502 | return NULL; | |
15503 | } | |
15504 | ||
15505 | ||
15506 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15507 | PyObject *resultobj; | |
15508 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15509 | bool result; | |
15510 | PyObject * obj0 = 0 ; | |
15511 | char *kwnames[] = { | |
15512 | (char *) "self", NULL | |
15513 | }; | |
15514 | ||
15515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
15516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15517 | { | |
15518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15519 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
15520 | ||
15521 | wxPyEndAllowThreads(__tstate); | |
15522 | if (PyErr_Occurred()) SWIG_fail; | |
15523 | } | |
15524 | resultobj = PyInt_FromLong((long)result); | |
15525 | return resultobj; | |
15526 | fail: | |
15527 | return NULL; | |
15528 | } | |
15529 | ||
15530 | ||
15531 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15532 | PyObject *resultobj; | |
15533 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15534 | bool result; | |
15535 | PyObject * obj0 = 0 ; | |
15536 | char *kwnames[] = { | |
15537 | (char *) "self", NULL | |
15538 | }; | |
15539 | ||
15540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
15541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15542 | { | |
15543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15544 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
15545 | ||
15546 | wxPyEndAllowThreads(__tstate); | |
15547 | if (PyErr_Occurred()) SWIG_fail; | |
15548 | } | |
15549 | resultobj = PyInt_FromLong((long)result); | |
15550 | return resultobj; | |
15551 | fail: | |
15552 | return NULL; | |
15553 | } | |
15554 | ||
15555 | ||
15556 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
15557 | PyObject *obj; | |
15558 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15559 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
15560 | Py_INCREF(obj); | |
15561 | return Py_BuildValue((char *)""); | |
15562 | } | |
15563 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15564 | PyObject *resultobj; | |
15565 | int arg1 = (int) 0 ; | |
423f194a | 15566 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15567 | wxShowEvent *result; |
15568 | PyObject * obj1 = 0 ; | |
15569 | char *kwnames[] = { | |
15570 | (char *) "winid",(char *) "show", NULL | |
15571 | }; | |
15572 | ||
15573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_ShowEvent",kwnames,&arg1,&obj1)) goto fail; | |
15574 | if (obj1) { | |
15575 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15576 | if (PyErr_Occurred()) SWIG_fail; | |
15577 | } | |
15578 | { | |
15579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15580 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
15581 | ||
15582 | wxPyEndAllowThreads(__tstate); | |
15583 | if (PyErr_Occurred()) SWIG_fail; | |
15584 | } | |
15585 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxShowEvent, 1); | |
15586 | return resultobj; | |
15587 | fail: | |
15588 | return NULL; | |
15589 | } | |
15590 | ||
15591 | ||
15592 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15593 | PyObject *resultobj; | |
15594 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
15595 | bool arg2 ; | |
15596 | PyObject * obj0 = 0 ; | |
15597 | PyObject * obj1 = 0 ; | |
15598 | char *kwnames[] = { | |
15599 | (char *) "self",(char *) "show", NULL | |
15600 | }; | |
15601 | ||
15602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
15603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15604 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15605 | if (PyErr_Occurred()) SWIG_fail; | |
15606 | { | |
15607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15608 | (arg1)->SetShow(arg2); | |
15609 | ||
15610 | wxPyEndAllowThreads(__tstate); | |
15611 | if (PyErr_Occurred()) SWIG_fail; | |
15612 | } | |
15613 | Py_INCREF(Py_None); resultobj = Py_None; | |
15614 | return resultobj; | |
15615 | fail: | |
15616 | return NULL; | |
15617 | } | |
15618 | ||
15619 | ||
15620 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15621 | PyObject *resultobj; | |
15622 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
15623 | bool result; | |
15624 | PyObject * obj0 = 0 ; | |
15625 | char *kwnames[] = { | |
15626 | (char *) "self", NULL | |
15627 | }; | |
15628 | ||
15629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
15630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15631 | { | |
15632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15633 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
15634 | ||
15635 | wxPyEndAllowThreads(__tstate); | |
15636 | if (PyErr_Occurred()) SWIG_fail; | |
15637 | } | |
15638 | resultobj = PyInt_FromLong((long)result); | |
15639 | return resultobj; | |
15640 | fail: | |
15641 | return NULL; | |
15642 | } | |
15643 | ||
15644 | ||
15645 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
15646 | PyObject *obj; | |
15647 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15648 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
15649 | Py_INCREF(obj); | |
15650 | return Py_BuildValue((char *)""); | |
15651 | } | |
15652 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15653 | PyObject *resultobj; | |
15654 | int arg1 = (int) 0 ; | |
423f194a | 15655 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15656 | wxIconizeEvent *result; |
15657 | PyObject * obj1 = 0 ; | |
15658 | char *kwnames[] = { | |
15659 | (char *) "id",(char *) "iconized", NULL | |
15660 | }; | |
15661 | ||
15662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_IconizeEvent",kwnames,&arg1,&obj1)) goto fail; | |
15663 | if (obj1) { | |
15664 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15665 | if (PyErr_Occurred()) SWIG_fail; | |
15666 | } | |
15667 | { | |
15668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15669 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
15670 | ||
15671 | wxPyEndAllowThreads(__tstate); | |
15672 | if (PyErr_Occurred()) SWIG_fail; | |
15673 | } | |
15674 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconizeEvent, 1); | |
15675 | return resultobj; | |
15676 | fail: | |
15677 | return NULL; | |
15678 | } | |
15679 | ||
15680 | ||
15681 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15682 | PyObject *resultobj; | |
15683 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
15684 | bool result; | |
15685 | PyObject * obj0 = 0 ; | |
15686 | char *kwnames[] = { | |
15687 | (char *) "self", NULL | |
15688 | }; | |
15689 | ||
15690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
15691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15692 | { | |
15693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15694 | result = (bool)(arg1)->Iconized(); | |
15695 | ||
15696 | wxPyEndAllowThreads(__tstate); | |
15697 | if (PyErr_Occurred()) SWIG_fail; | |
15698 | } | |
15699 | resultobj = PyInt_FromLong((long)result); | |
15700 | return resultobj; | |
15701 | fail: | |
15702 | return NULL; | |
15703 | } | |
15704 | ||
15705 | ||
15706 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
15707 | PyObject *obj; | |
15708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15709 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
15710 | Py_INCREF(obj); | |
15711 | return Py_BuildValue((char *)""); | |
15712 | } | |
15713 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15714 | PyObject *resultobj; | |
15715 | int arg1 = (int) 0 ; | |
15716 | wxMaximizeEvent *result; | |
15717 | char *kwnames[] = { | |
15718 | (char *) "id", NULL | |
15719 | }; | |
15720 | ||
15721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_MaximizeEvent",kwnames,&arg1)) goto fail; | |
15722 | { | |
15723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15724 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
15725 | ||
15726 | wxPyEndAllowThreads(__tstate); | |
15727 | if (PyErr_Occurred()) SWIG_fail; | |
15728 | } | |
15729 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMaximizeEvent, 1); | |
15730 | return resultobj; | |
15731 | fail: | |
15732 | return NULL; | |
15733 | } | |
15734 | ||
15735 | ||
15736 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
15737 | PyObject *obj; | |
15738 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15739 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
15740 | Py_INCREF(obj); | |
15741 | return Py_BuildValue((char *)""); | |
15742 | } | |
15743 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15744 | PyObject *resultobj; | |
15745 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
15746 | wxPoint result; | |
15747 | PyObject * obj0 = 0 ; | |
15748 | char *kwnames[] = { | |
15749 | (char *) "self", NULL | |
15750 | }; | |
15751 | ||
15752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15754 | { | |
15755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15756 | result = (arg1)->GetPosition(); | |
15757 | ||
15758 | wxPyEndAllowThreads(__tstate); | |
15759 | if (PyErr_Occurred()) SWIG_fail; | |
15760 | } | |
15761 | { | |
15762 | wxPoint * resultptr; | |
15763 | resultptr = new wxPoint((wxPoint &) result); | |
15764 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
15765 | } | |
15766 | return resultobj; | |
15767 | fail: | |
15768 | return NULL; | |
15769 | } | |
15770 | ||
15771 | ||
15772 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15773 | PyObject *resultobj; | |
15774 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
15775 | int result; | |
15776 | PyObject * obj0 = 0 ; | |
15777 | char *kwnames[] = { | |
15778 | (char *) "self", NULL | |
15779 | }; | |
15780 | ||
15781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
15782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15783 | { | |
15784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15785 | result = (int)(arg1)->GetNumberOfFiles(); | |
15786 | ||
15787 | wxPyEndAllowThreads(__tstate); | |
15788 | if (PyErr_Occurred()) SWIG_fail; | |
15789 | } | |
15790 | resultobj = PyInt_FromLong((long)result); | |
15791 | return resultobj; | |
15792 | fail: | |
15793 | return NULL; | |
15794 | } | |
15795 | ||
15796 | ||
15797 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15798 | PyObject *resultobj; | |
15799 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
15800 | PyObject *result; | |
15801 | PyObject * obj0 = 0 ; | |
15802 | char *kwnames[] = { | |
15803 | (char *) "self", NULL | |
15804 | }; | |
15805 | ||
15806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
15807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15808 | { | |
15809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15810 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
15811 | ||
15812 | wxPyEndAllowThreads(__tstate); | |
15813 | if (PyErr_Occurred()) SWIG_fail; | |
15814 | } | |
15815 | resultobj = result; | |
15816 | return resultobj; | |
15817 | fail: | |
15818 | return NULL; | |
15819 | } | |
15820 | ||
15821 | ||
15822 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
15823 | PyObject *obj; | |
15824 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15825 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
15826 | Py_INCREF(obj); | |
15827 | return Py_BuildValue((char *)""); | |
15828 | } | |
15829 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15830 | PyObject *resultobj; | |
423f194a | 15831 | int arg1 = (int) 0 ; |
d14a1e28 RD |
15832 | wxUpdateUIEvent *result; |
15833 | char *kwnames[] = { | |
15834 | (char *) "commandId", NULL | |
15835 | }; | |
15836 | ||
15837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_UpdateUIEvent",kwnames,&arg1)) goto fail; | |
15838 | { | |
15839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15840 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
15841 | ||
15842 | wxPyEndAllowThreads(__tstate); | |
15843 | if (PyErr_Occurred()) SWIG_fail; | |
15844 | } | |
15845 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxUpdateUIEvent, 1); | |
15846 | return resultobj; | |
15847 | fail: | |
15848 | return NULL; | |
15849 | } | |
15850 | ||
15851 | ||
15852 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15853 | PyObject *resultobj; | |
15854 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15855 | bool result; | |
15856 | PyObject * obj0 = 0 ; | |
15857 | char *kwnames[] = { | |
15858 | (char *) "self", NULL | |
15859 | }; | |
15860 | ||
15861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
15862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15863 | { | |
15864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15865 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
15866 | ||
15867 | wxPyEndAllowThreads(__tstate); | |
15868 | if (PyErr_Occurred()) SWIG_fail; | |
15869 | } | |
15870 | resultobj = PyInt_FromLong((long)result); | |
15871 | return resultobj; | |
15872 | fail: | |
15873 | return NULL; | |
15874 | } | |
15875 | ||
15876 | ||
15877 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15878 | PyObject *resultobj; | |
15879 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15880 | bool result; | |
15881 | PyObject * obj0 = 0 ; | |
15882 | char *kwnames[] = { | |
15883 | (char *) "self", NULL | |
15884 | }; | |
15885 | ||
15886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
15887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15888 | { | |
15889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15890 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
15891 | ||
15892 | wxPyEndAllowThreads(__tstate); | |
15893 | if (PyErr_Occurred()) SWIG_fail; | |
15894 | } | |
15895 | resultobj = PyInt_FromLong((long)result); | |
15896 | return resultobj; | |
15897 | fail: | |
15898 | return NULL; | |
15899 | } | |
15900 | ||
15901 | ||
15902 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15903 | PyObject *resultobj; | |
15904 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15905 | wxString result; | |
15906 | PyObject * obj0 = 0 ; | |
15907 | char *kwnames[] = { | |
15908 | (char *) "self", NULL | |
15909 | }; | |
15910 | ||
15911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
15912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15913 | { | |
15914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15915 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
15916 | ||
15917 | wxPyEndAllowThreads(__tstate); | |
15918 | if (PyErr_Occurred()) SWIG_fail; | |
15919 | } | |
15920 | { | |
15921 | #if wxUSE_UNICODE | |
15922 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15923 | #else | |
15924 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15925 | #endif | |
15926 | } | |
15927 | return resultobj; | |
15928 | fail: | |
15929 | return NULL; | |
15930 | } | |
15931 | ||
15932 | ||
15933 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15934 | PyObject *resultobj; | |
15935 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15936 | bool result; | |
15937 | PyObject * obj0 = 0 ; | |
15938 | char *kwnames[] = { | |
15939 | (char *) "self", NULL | |
15940 | }; | |
15941 | ||
15942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
15943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15944 | { | |
15945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15946 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
15947 | ||
15948 | wxPyEndAllowThreads(__tstate); | |
15949 | if (PyErr_Occurred()) SWIG_fail; | |
15950 | } | |
15951 | resultobj = PyInt_FromLong((long)result); | |
15952 | return resultobj; | |
15953 | fail: | |
15954 | return NULL; | |
15955 | } | |
15956 | ||
15957 | ||
15958 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15959 | PyObject *resultobj; | |
15960 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15961 | bool result; | |
15962 | PyObject * obj0 = 0 ; | |
15963 | char *kwnames[] = { | |
15964 | (char *) "self", NULL | |
15965 | }; | |
15966 | ||
15967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
15968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15969 | { | |
15970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15971 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
15972 | ||
15973 | wxPyEndAllowThreads(__tstate); | |
15974 | if (PyErr_Occurred()) SWIG_fail; | |
15975 | } | |
15976 | resultobj = PyInt_FromLong((long)result); | |
15977 | return resultobj; | |
15978 | fail: | |
15979 | return NULL; | |
15980 | } | |
15981 | ||
15982 | ||
15983 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15984 | PyObject *resultobj; | |
15985 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15986 | bool result; | |
15987 | PyObject * obj0 = 0 ; | |
15988 | char *kwnames[] = { | |
15989 | (char *) "self", NULL | |
15990 | }; | |
15991 | ||
15992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
15993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15994 | { | |
15995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15996 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
15997 | ||
15998 | wxPyEndAllowThreads(__tstate); | |
15999 | if (PyErr_Occurred()) SWIG_fail; | |
16000 | } | |
16001 | resultobj = PyInt_FromLong((long)result); | |
16002 | return resultobj; | |
16003 | fail: | |
16004 | return NULL; | |
16005 | } | |
16006 | ||
16007 | ||
16008 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16009 | PyObject *resultobj; | |
16010 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16011 | bool arg2 ; | |
16012 | PyObject * obj0 = 0 ; | |
16013 | PyObject * obj1 = 0 ; | |
16014 | char *kwnames[] = { | |
16015 | (char *) "self",(char *) "check", NULL | |
16016 | }; | |
16017 | ||
16018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
16019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16020 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16021 | if (PyErr_Occurred()) SWIG_fail; | |
16022 | { | |
16023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16024 | (arg1)->Check(arg2); | |
16025 | ||
16026 | wxPyEndAllowThreads(__tstate); | |
16027 | if (PyErr_Occurred()) SWIG_fail; | |
16028 | } | |
16029 | Py_INCREF(Py_None); resultobj = Py_None; | |
16030 | return resultobj; | |
16031 | fail: | |
16032 | return NULL; | |
16033 | } | |
16034 | ||
16035 | ||
16036 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16037 | PyObject *resultobj; | |
16038 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16039 | bool arg2 ; | |
16040 | PyObject * obj0 = 0 ; | |
16041 | PyObject * obj1 = 0 ; | |
16042 | char *kwnames[] = { | |
16043 | (char *) "self",(char *) "enable", NULL | |
16044 | }; | |
16045 | ||
16046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
16047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16048 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16049 | if (PyErr_Occurred()) SWIG_fail; | |
16050 | { | |
16051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16052 | (arg1)->Enable(arg2); | |
16053 | ||
16054 | wxPyEndAllowThreads(__tstate); | |
16055 | if (PyErr_Occurred()) SWIG_fail; | |
16056 | } | |
16057 | Py_INCREF(Py_None); resultobj = Py_None; | |
16058 | return resultobj; | |
16059 | fail: | |
16060 | return NULL; | |
16061 | } | |
16062 | ||
16063 | ||
16064 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16065 | PyObject *resultobj; | |
16066 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16067 | wxString *arg2 = 0 ; | |
423f194a | 16068 | bool temp2 = False ; |
d14a1e28 RD |
16069 | PyObject * obj0 = 0 ; |
16070 | PyObject * obj1 = 0 ; | |
16071 | char *kwnames[] = { | |
16072 | (char *) "self",(char *) "text", NULL | |
16073 | }; | |
16074 | ||
16075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
16076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16077 | { | |
16078 | arg2 = wxString_in_helper(obj1); | |
16079 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 16080 | temp2 = True; |
d14a1e28 RD |
16081 | } |
16082 | { | |
16083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16084 | (arg1)->SetText((wxString const &)*arg2); | |
16085 | ||
16086 | wxPyEndAllowThreads(__tstate); | |
16087 | if (PyErr_Occurred()) SWIG_fail; | |
16088 | } | |
16089 | Py_INCREF(Py_None); resultobj = Py_None; | |
16090 | { | |
16091 | if (temp2) | |
16092 | delete arg2; | |
16093 | } | |
16094 | return resultobj; | |
16095 | fail: | |
16096 | { | |
16097 | if (temp2) | |
16098 | delete arg2; | |
16099 | } | |
16100 | return NULL; | |
16101 | } | |
16102 | ||
16103 | ||
16104 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16105 | PyObject *resultobj; | |
16106 | long arg1 ; | |
16107 | char *kwnames[] = { | |
16108 | (char *) "updateInterval", NULL | |
16109 | }; | |
16110 | ||
16111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:UpdateUIEvent_SetUpdateInterval",kwnames,&arg1)) goto fail; | |
16112 | { | |
16113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16114 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
16115 | ||
16116 | wxPyEndAllowThreads(__tstate); | |
16117 | if (PyErr_Occurred()) SWIG_fail; | |
16118 | } | |
16119 | Py_INCREF(Py_None); resultobj = Py_None; | |
16120 | return resultobj; | |
16121 | fail: | |
16122 | return NULL; | |
16123 | } | |
16124 | ||
16125 | ||
16126 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16127 | PyObject *resultobj; | |
16128 | long result; | |
16129 | char *kwnames[] = { | |
16130 | NULL | |
16131 | }; | |
16132 | ||
16133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
16134 | { | |
16135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16136 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
16137 | ||
16138 | wxPyEndAllowThreads(__tstate); | |
16139 | if (PyErr_Occurred()) SWIG_fail; | |
16140 | } | |
16141 | resultobj = PyInt_FromLong((long)result); | |
16142 | return resultobj; | |
16143 | fail: | |
16144 | return NULL; | |
16145 | } | |
16146 | ||
16147 | ||
16148 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16149 | PyObject *resultobj; | |
16150 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16151 | bool result; | |
16152 | PyObject * obj0 = 0 ; | |
16153 | char *kwnames[] = { | |
16154 | (char *) "win", NULL | |
16155 | }; | |
16156 | ||
16157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
16158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16159 | { | |
16160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16161 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
16162 | ||
16163 | wxPyEndAllowThreads(__tstate); | |
16164 | if (PyErr_Occurred()) SWIG_fail; | |
16165 | } | |
16166 | resultobj = PyInt_FromLong((long)result); | |
16167 | return resultobj; | |
16168 | fail: | |
16169 | return NULL; | |
16170 | } | |
16171 | ||
16172 | ||
16173 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16174 | PyObject *resultobj; | |
16175 | char *kwnames[] = { | |
16176 | NULL | |
16177 | }; | |
16178 | ||
16179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
16180 | { | |
16181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16182 | wxUpdateUIEvent::ResetUpdateTime(); | |
16183 | ||
16184 | wxPyEndAllowThreads(__tstate); | |
16185 | if (PyErr_Occurred()) SWIG_fail; | |
16186 | } | |
16187 | Py_INCREF(Py_None); resultobj = Py_None; | |
16188 | return resultobj; | |
16189 | fail: | |
16190 | return NULL; | |
16191 | } | |
16192 | ||
16193 | ||
16194 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16195 | PyObject *resultobj; | |
16196 | int arg1 ; | |
16197 | char *kwnames[] = { | |
16198 | (char *) "mode", NULL | |
16199 | }; | |
16200 | ||
16201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:UpdateUIEvent_SetMode",kwnames,&arg1)) goto fail; | |
16202 | { | |
16203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16204 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
16205 | ||
16206 | wxPyEndAllowThreads(__tstate); | |
16207 | if (PyErr_Occurred()) SWIG_fail; | |
16208 | } | |
16209 | Py_INCREF(Py_None); resultobj = Py_None; | |
16210 | return resultobj; | |
16211 | fail: | |
16212 | return NULL; | |
16213 | } | |
16214 | ||
16215 | ||
16216 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16217 | PyObject *resultobj; | |
16218 | int result; | |
16219 | char *kwnames[] = { | |
16220 | NULL | |
16221 | }; | |
16222 | ||
16223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
16224 | { | |
16225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16226 | result = (int)wxUpdateUIEvent::GetMode(); | |
16227 | ||
16228 | wxPyEndAllowThreads(__tstate); | |
16229 | if (PyErr_Occurred()) SWIG_fail; | |
16230 | } | |
16231 | resultobj = PyInt_FromLong((long)result); | |
16232 | return resultobj; | |
16233 | fail: | |
16234 | return NULL; | |
16235 | } | |
16236 | ||
16237 | ||
16238 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
16239 | PyObject *obj; | |
16240 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16241 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
16242 | Py_INCREF(obj); | |
16243 | return Py_BuildValue((char *)""); | |
16244 | } | |
16245 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16246 | PyObject *resultobj; | |
16247 | wxSysColourChangedEvent *result; | |
16248 | char *kwnames[] = { | |
16249 | NULL | |
16250 | }; | |
16251 | ||
16252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
16253 | { | |
16254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16255 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
16256 | ||
16257 | wxPyEndAllowThreads(__tstate); | |
16258 | if (PyErr_Occurred()) SWIG_fail; | |
16259 | } | |
16260 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
16261 | return resultobj; | |
16262 | fail: | |
16263 | return NULL; | |
16264 | } | |
16265 | ||
16266 | ||
16267 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16268 | PyObject *obj; | |
16269 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16270 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
16271 | Py_INCREF(obj); | |
16272 | return Py_BuildValue((char *)""); | |
16273 | } | |
16274 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16275 | PyObject *resultobj; | |
423f194a | 16276 | int arg1 = (int) 0 ; |
d14a1e28 RD |
16277 | wxWindow *arg2 = (wxWindow *) NULL ; |
16278 | wxMouseCaptureChangedEvent *result; | |
16279 | PyObject * obj1 = 0 ; | |
16280 | char *kwnames[] = { | |
16281 | (char *) "winid",(char *) "gainedCapture", NULL | |
16282 | }; | |
16283 | ||
16284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_MouseCaptureChangedEvent",kwnames,&arg1,&obj1)) goto fail; | |
16285 | if (obj1) { | |
16286 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16287 | } | |
16288 | { | |
16289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16290 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
16291 | ||
16292 | wxPyEndAllowThreads(__tstate); | |
16293 | if (PyErr_Occurred()) SWIG_fail; | |
16294 | } | |
16295 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
16296 | return resultobj; | |
16297 | fail: | |
16298 | return NULL; | |
16299 | } | |
16300 | ||
16301 | ||
16302 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16303 | PyObject *resultobj; | |
16304 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
16305 | wxWindow *result; | |
16306 | PyObject * obj0 = 0 ; | |
16307 | char *kwnames[] = { | |
16308 | (char *) "self", NULL | |
16309 | }; | |
16310 | ||
16311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
16312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseCaptureChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16313 | { | |
16314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16315 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
16316 | ||
16317 | wxPyEndAllowThreads(__tstate); | |
16318 | if (PyErr_Occurred()) SWIG_fail; | |
16319 | } | |
16320 | { | |
16321 | resultobj = wxPyMake_wxObject(result); | |
16322 | } | |
16323 | return resultobj; | |
16324 | fail: | |
16325 | return NULL; | |
16326 | } | |
16327 | ||
16328 | ||
16329 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16330 | PyObject *obj; | |
16331 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16332 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
16333 | Py_INCREF(obj); | |
16334 | return Py_BuildValue((char *)""); | |
16335 | } | |
16336 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16337 | PyObject *resultobj; | |
16338 | wxDisplayChangedEvent *result; | |
16339 | char *kwnames[] = { | |
16340 | NULL | |
16341 | }; | |
16342 | ||
16343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
16344 | { | |
16345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16346 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
16347 | ||
16348 | wxPyEndAllowThreads(__tstate); | |
16349 | if (PyErr_Occurred()) SWIG_fail; | |
16350 | } | |
16351 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
16352 | return resultobj; | |
16353 | fail: | |
16354 | return NULL; | |
16355 | } | |
16356 | ||
16357 | ||
16358 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16359 | PyObject *obj; | |
16360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16361 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
16362 | Py_INCREF(obj); | |
16363 | return Py_BuildValue((char *)""); | |
16364 | } | |
16365 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16366 | PyObject *resultobj; | |
423f194a | 16367 | int arg1 = (int) 0 ; |
d14a1e28 RD |
16368 | wxPaletteChangedEvent *result; |
16369 | char *kwnames[] = { | |
16370 | (char *) "id", NULL | |
16371 | }; | |
16372 | ||
16373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_PaletteChangedEvent",kwnames,&arg1)) goto fail; | |
16374 | { | |
16375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16376 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
16377 | ||
16378 | wxPyEndAllowThreads(__tstate); | |
16379 | if (PyErr_Occurred()) SWIG_fail; | |
16380 | } | |
16381 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
16382 | return resultobj; | |
16383 | fail: | |
16384 | return NULL; | |
16385 | } | |
16386 | ||
16387 | ||
16388 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16389 | PyObject *resultobj; | |
16390 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
16391 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16392 | PyObject * obj0 = 0 ; | |
16393 | PyObject * obj1 = 0 ; | |
16394 | char *kwnames[] = { | |
16395 | (char *) "self",(char *) "win", NULL | |
16396 | }; | |
16397 | ||
16398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
16399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16400 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16401 | { | |
16402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16403 | (arg1)->SetChangedWindow(arg2); | |
16404 | ||
16405 | wxPyEndAllowThreads(__tstate); | |
16406 | if (PyErr_Occurred()) SWIG_fail; | |
16407 | } | |
16408 | Py_INCREF(Py_None); resultobj = Py_None; | |
16409 | return resultobj; | |
16410 | fail: | |
16411 | return NULL; | |
16412 | } | |
16413 | ||
16414 | ||
16415 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16416 | PyObject *resultobj; | |
16417 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
16418 | wxWindow *result; | |
16419 | PyObject * obj0 = 0 ; | |
16420 | char *kwnames[] = { | |
16421 | (char *) "self", NULL | |
16422 | }; | |
16423 | ||
16424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
16425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16426 | { | |
16427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16428 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
16429 | ||
16430 | wxPyEndAllowThreads(__tstate); | |
16431 | if (PyErr_Occurred()) SWIG_fail; | |
16432 | } | |
16433 | { | |
16434 | resultobj = wxPyMake_wxObject(result); | |
16435 | } | |
16436 | return resultobj; | |
16437 | fail: | |
16438 | return NULL; | |
16439 | } | |
16440 | ||
16441 | ||
16442 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16443 | PyObject *obj; | |
16444 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16445 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
16446 | Py_INCREF(obj); | |
16447 | return Py_BuildValue((char *)""); | |
16448 | } | |
16449 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16450 | PyObject *resultobj; | |
423f194a | 16451 | int arg1 = (int) 0 ; |
d14a1e28 RD |
16452 | wxQueryNewPaletteEvent *result; |
16453 | char *kwnames[] = { | |
16454 | (char *) "winid", NULL | |
16455 | }; | |
16456 | ||
16457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_QueryNewPaletteEvent",kwnames,&arg1)) goto fail; | |
16458 | { | |
16459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16460 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
16461 | ||
16462 | wxPyEndAllowThreads(__tstate); | |
16463 | if (PyErr_Occurred()) SWIG_fail; | |
16464 | } | |
16465 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
16466 | return resultobj; | |
16467 | fail: | |
16468 | return NULL; | |
16469 | } | |
16470 | ||
16471 | ||
16472 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16473 | PyObject *resultobj; | |
16474 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
16475 | bool arg2 ; | |
16476 | PyObject * obj0 = 0 ; | |
16477 | PyObject * obj1 = 0 ; | |
16478 | char *kwnames[] = { | |
16479 | (char *) "self",(char *) "realized", NULL | |
16480 | }; | |
16481 | ||
16482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
16483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16484 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16485 | if (PyErr_Occurred()) SWIG_fail; | |
16486 | { | |
16487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16488 | (arg1)->SetPaletteRealized(arg2); | |
16489 | ||
16490 | wxPyEndAllowThreads(__tstate); | |
16491 | if (PyErr_Occurred()) SWIG_fail; | |
16492 | } | |
16493 | Py_INCREF(Py_None); resultobj = Py_None; | |
16494 | return resultobj; | |
16495 | fail: | |
16496 | return NULL; | |
16497 | } | |
16498 | ||
16499 | ||
16500 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16501 | PyObject *resultobj; | |
16502 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
16503 | bool result; | |
16504 | PyObject * obj0 = 0 ; | |
16505 | char *kwnames[] = { | |
16506 | (char *) "self", NULL | |
16507 | }; | |
16508 | ||
16509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
16510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16511 | { | |
16512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16513 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
16514 | ||
16515 | wxPyEndAllowThreads(__tstate); | |
16516 | if (PyErr_Occurred()) SWIG_fail; | |
16517 | } | |
16518 | resultobj = PyInt_FromLong((long)result); | |
16519 | return resultobj; | |
16520 | fail: | |
16521 | return NULL; | |
16522 | } | |
16523 | ||
16524 | ||
16525 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
16526 | PyObject *obj; | |
16527 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16528 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
16529 | Py_INCREF(obj); | |
16530 | return Py_BuildValue((char *)""); | |
16531 | } | |
16532 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16533 | PyObject *resultobj; | |
16534 | wxNavigationKeyEvent *result; | |
16535 | char *kwnames[] = { | |
16536 | NULL | |
16537 | }; | |
16538 | ||
16539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
16540 | { | |
16541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16542 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
16543 | ||
16544 | wxPyEndAllowThreads(__tstate); | |
16545 | if (PyErr_Occurred()) SWIG_fail; | |
16546 | } | |
16547 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
16548 | return resultobj; | |
16549 | fail: | |
16550 | return NULL; | |
16551 | } | |
16552 | ||
16553 | ||
16554 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16555 | PyObject *resultobj; | |
16556 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16557 | bool result; | |
16558 | PyObject * obj0 = 0 ; | |
16559 | char *kwnames[] = { | |
16560 | (char *) "self", NULL | |
16561 | }; | |
16562 | ||
16563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
16564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16565 | { | |
16566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16567 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
16568 | ||
16569 | wxPyEndAllowThreads(__tstate); | |
16570 | if (PyErr_Occurred()) SWIG_fail; | |
16571 | } | |
16572 | resultobj = PyInt_FromLong((long)result); | |
16573 | return resultobj; | |
16574 | fail: | |
16575 | return NULL; | |
16576 | } | |
16577 | ||
16578 | ||
16579 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16580 | PyObject *resultobj; | |
16581 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16582 | bool arg2 ; | |
16583 | PyObject * obj0 = 0 ; | |
16584 | PyObject * obj1 = 0 ; | |
16585 | char *kwnames[] = { | |
16586 | (char *) "self",(char *) "bForward", NULL | |
16587 | }; | |
16588 | ||
16589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
16590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16591 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16592 | if (PyErr_Occurred()) SWIG_fail; | |
16593 | { | |
16594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16595 | (arg1)->SetDirection(arg2); | |
16596 | ||
16597 | wxPyEndAllowThreads(__tstate); | |
16598 | if (PyErr_Occurred()) SWIG_fail; | |
16599 | } | |
16600 | Py_INCREF(Py_None); resultobj = Py_None; | |
16601 | return resultobj; | |
16602 | fail: | |
16603 | return NULL; | |
16604 | } | |
16605 | ||
16606 | ||
16607 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16608 | PyObject *resultobj; | |
16609 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16610 | bool result; | |
16611 | PyObject * obj0 = 0 ; | |
16612 | char *kwnames[] = { | |
16613 | (char *) "self", NULL | |
16614 | }; | |
16615 | ||
16616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
16617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16618 | { | |
16619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16620 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
16621 | ||
16622 | wxPyEndAllowThreads(__tstate); | |
16623 | if (PyErr_Occurred()) SWIG_fail; | |
16624 | } | |
16625 | resultobj = PyInt_FromLong((long)result); | |
16626 | return resultobj; | |
16627 | fail: | |
16628 | return NULL; | |
16629 | } | |
16630 | ||
16631 | ||
16632 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16633 | PyObject *resultobj; | |
16634 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16635 | bool arg2 ; | |
16636 | PyObject * obj0 = 0 ; | |
16637 | PyObject * obj1 = 0 ; | |
16638 | char *kwnames[] = { | |
16639 | (char *) "self",(char *) "bIs", NULL | |
16640 | }; | |
16641 | ||
16642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
16643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16644 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16645 | if (PyErr_Occurred()) SWIG_fail; | |
16646 | { | |
16647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16648 | (arg1)->SetWindowChange(arg2); | |
16649 | ||
16650 | wxPyEndAllowThreads(__tstate); | |
16651 | if (PyErr_Occurred()) SWIG_fail; | |
16652 | } | |
16653 | Py_INCREF(Py_None); resultobj = Py_None; | |
16654 | return resultobj; | |
16655 | fail: | |
16656 | return NULL; | |
16657 | } | |
16658 | ||
16659 | ||
16660 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16661 | PyObject *resultobj; | |
16662 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16663 | wxWindow *result; | |
16664 | PyObject * obj0 = 0 ; | |
16665 | char *kwnames[] = { | |
16666 | (char *) "self", NULL | |
16667 | }; | |
16668 | ||
16669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
16670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16671 | { | |
16672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16673 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
16674 | ||
16675 | wxPyEndAllowThreads(__tstate); | |
16676 | if (PyErr_Occurred()) SWIG_fail; | |
16677 | } | |
16678 | { | |
16679 | resultobj = wxPyMake_wxObject(result); | |
16680 | } | |
16681 | return resultobj; | |
16682 | fail: | |
16683 | return NULL; | |
16684 | } | |
16685 | ||
16686 | ||
16687 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16688 | PyObject *resultobj; | |
16689 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16690 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16691 | PyObject * obj0 = 0 ; | |
16692 | PyObject * obj1 = 0 ; | |
16693 | char *kwnames[] = { | |
16694 | (char *) "self",(char *) "win", NULL | |
16695 | }; | |
16696 | ||
16697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
16698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16699 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16700 | { | |
16701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16702 | (arg1)->SetCurrentFocus(arg2); | |
16703 | ||
16704 | wxPyEndAllowThreads(__tstate); | |
16705 | if (PyErr_Occurred()) SWIG_fail; | |
16706 | } | |
16707 | Py_INCREF(Py_None); resultobj = Py_None; | |
16708 | return resultobj; | |
16709 | fail: | |
16710 | return NULL; | |
16711 | } | |
16712 | ||
16713 | ||
16714 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
16715 | PyObject *obj; | |
16716 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16717 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
16718 | Py_INCREF(obj); | |
16719 | return Py_BuildValue((char *)""); | |
16720 | } | |
16721 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16722 | PyObject *resultobj; | |
16723 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16724 | wxWindowCreateEvent *result; | |
16725 | PyObject * obj0 = 0 ; | |
16726 | char *kwnames[] = { | |
16727 | (char *) "win", NULL | |
16728 | }; | |
16729 | ||
16730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
16731 | if (obj0) { | |
16732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16733 | } | |
16734 | { | |
16735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16736 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
16737 | ||
16738 | wxPyEndAllowThreads(__tstate); | |
16739 | if (PyErr_Occurred()) SWIG_fail; | |
16740 | } | |
16741 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowCreateEvent, 1); | |
16742 | return resultobj; | |
16743 | fail: | |
16744 | return NULL; | |
16745 | } | |
16746 | ||
16747 | ||
16748 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16749 | PyObject *resultobj; | |
16750 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
16751 | wxWindow *result; | |
16752 | PyObject * obj0 = 0 ; | |
16753 | char *kwnames[] = { | |
16754 | (char *) "self", NULL | |
16755 | }; | |
16756 | ||
16757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowCreateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16759 | { | |
16760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16761 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
16762 | ||
16763 | wxPyEndAllowThreads(__tstate); | |
16764 | if (PyErr_Occurred()) SWIG_fail; | |
16765 | } | |
16766 | { | |
16767 | resultobj = wxPyMake_wxObject(result); | |
16768 | } | |
16769 | return resultobj; | |
16770 | fail: | |
16771 | return NULL; | |
16772 | } | |
16773 | ||
16774 | ||
16775 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
16776 | PyObject *obj; | |
16777 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16778 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
16779 | Py_INCREF(obj); | |
16780 | return Py_BuildValue((char *)""); | |
16781 | } | |
16782 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16783 | PyObject *resultobj; | |
16784 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16785 | wxWindowDestroyEvent *result; | |
16786 | PyObject * obj0 = 0 ; | |
16787 | char *kwnames[] = { | |
16788 | (char *) "win", NULL | |
16789 | }; | |
16790 | ||
16791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
16792 | if (obj0) { | |
16793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16794 | } | |
16795 | { | |
16796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16797 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
16798 | ||
16799 | wxPyEndAllowThreads(__tstate); | |
16800 | if (PyErr_Occurred()) SWIG_fail; | |
16801 | } | |
16802 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
16803 | return resultobj; | |
16804 | fail: | |
16805 | return NULL; | |
16806 | } | |
16807 | ||
16808 | ||
16809 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16810 | PyObject *resultobj; | |
16811 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
16812 | wxWindow *result; | |
16813 | PyObject * obj0 = 0 ; | |
16814 | char *kwnames[] = { | |
16815 | (char *) "self", NULL | |
16816 | }; | |
16817 | ||
16818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDestroyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16820 | { | |
16821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16822 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
16823 | ||
16824 | wxPyEndAllowThreads(__tstate); | |
16825 | if (PyErr_Occurred()) SWIG_fail; | |
16826 | } | |
16827 | { | |
16828 | resultobj = wxPyMake_wxObject(result); | |
16829 | } | |
16830 | return resultobj; | |
16831 | fail: | |
16832 | return NULL; | |
16833 | } | |
16834 | ||
16835 | ||
16836 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
16837 | PyObject *obj; | |
16838 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16839 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
16840 | Py_INCREF(obj); | |
16841 | return Py_BuildValue((char *)""); | |
16842 | } | |
16843 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16844 | PyObject *resultobj; | |
16845 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 16846 | int arg2 = (int) 0 ; |
d14a1e28 RD |
16847 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
16848 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16849 | wxContextMenuEvent *result; | |
16850 | wxPoint temp3 ; | |
16851 | PyObject * obj2 = 0 ; | |
16852 | char *kwnames[] = { | |
16853 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
16854 | }; | |
16855 | ||
16856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_ContextMenuEvent",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
16857 | if (obj2) { | |
16858 | { | |
16859 | arg3 = &temp3; | |
16860 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16861 | } | |
16862 | } | |
16863 | { | |
16864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16865 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
16866 | ||
16867 | wxPyEndAllowThreads(__tstate); | |
16868 | if (PyErr_Occurred()) SWIG_fail; | |
16869 | } | |
16870 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextMenuEvent, 1); | |
16871 | return resultobj; | |
16872 | fail: | |
16873 | return NULL; | |
16874 | } | |
16875 | ||
16876 | ||
16877 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16878 | PyObject *resultobj; | |
16879 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
16880 | wxPoint *result; | |
16881 | PyObject * obj0 = 0 ; | |
16882 | char *kwnames[] = { | |
16883 | (char *) "self", NULL | |
16884 | }; | |
16885 | ||
16886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16888 | { | |
16889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16890 | { | |
16891 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
16892 | result = (wxPoint *) &_result_ref; | |
16893 | } | |
16894 | ||
16895 | wxPyEndAllowThreads(__tstate); | |
16896 | if (PyErr_Occurred()) SWIG_fail; | |
16897 | } | |
16898 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
16899 | return resultobj; | |
16900 | fail: | |
16901 | return NULL; | |
16902 | } | |
16903 | ||
16904 | ||
16905 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16906 | PyObject *resultobj; | |
16907 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
16908 | wxPoint *arg2 = 0 ; | |
16909 | wxPoint temp2 ; | |
16910 | PyObject * obj0 = 0 ; | |
16911 | PyObject * obj1 = 0 ; | |
16912 | char *kwnames[] = { | |
16913 | (char *) "self",(char *) "pos", NULL | |
16914 | }; | |
16915 | ||
16916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
16917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16918 | { | |
16919 | arg2 = &temp2; | |
16920 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16921 | } | |
16922 | { | |
16923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16924 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
16925 | ||
16926 | wxPyEndAllowThreads(__tstate); | |
16927 | if (PyErr_Occurred()) SWIG_fail; | |
16928 | } | |
16929 | Py_INCREF(Py_None); resultobj = Py_None; | |
16930 | return resultobj; | |
16931 | fail: | |
16932 | return NULL; | |
16933 | } | |
16934 | ||
16935 | ||
16936 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
16937 | PyObject *obj; | |
16938 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16939 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
16940 | Py_INCREF(obj); | |
16941 | return Py_BuildValue((char *)""); | |
16942 | } | |
16943 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16944 | PyObject *resultobj; | |
16945 | wxIdleEvent *result; | |
16946 | char *kwnames[] = { | |
16947 | NULL | |
16948 | }; | |
16949 | ||
16950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
16951 | { | |
16952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16953 | result = (wxIdleEvent *)new wxIdleEvent(); | |
16954 | ||
16955 | wxPyEndAllowThreads(__tstate); | |
16956 | if (PyErr_Occurred()) SWIG_fail; | |
16957 | } | |
16958 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIdleEvent, 1); | |
16959 | return resultobj; | |
16960 | fail: | |
16961 | return NULL; | |
16962 | } | |
16963 | ||
16964 | ||
16965 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16966 | PyObject *resultobj; | |
16967 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
423f194a | 16968 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16969 | PyObject * obj0 = 0 ; |
16970 | PyObject * obj1 = 0 ; | |
16971 | char *kwnames[] = { | |
16972 | (char *) "self",(char *) "needMore", NULL | |
16973 | }; | |
16974 | ||
16975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
16976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16977 | if (obj1) { | |
16978 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16979 | if (PyErr_Occurred()) SWIG_fail; | |
16980 | } | |
16981 | { | |
16982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16983 | (arg1)->RequestMore(arg2); | |
16984 | ||
16985 | wxPyEndAllowThreads(__tstate); | |
16986 | if (PyErr_Occurred()) SWIG_fail; | |
16987 | } | |
16988 | Py_INCREF(Py_None); resultobj = Py_None; | |
16989 | return resultobj; | |
16990 | fail: | |
16991 | return NULL; | |
16992 | } | |
16993 | ||
16994 | ||
16995 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16996 | PyObject *resultobj; | |
16997 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
16998 | bool result; | |
16999 | PyObject * obj0 = 0 ; | |
17000 | char *kwnames[] = { | |
17001 | (char *) "self", NULL | |
17002 | }; | |
17003 | ||
17004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
17005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17006 | { | |
17007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17008 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
17009 | ||
17010 | wxPyEndAllowThreads(__tstate); | |
17011 | if (PyErr_Occurred()) SWIG_fail; | |
17012 | } | |
17013 | resultobj = PyInt_FromLong((long)result); | |
17014 | return resultobj; | |
17015 | fail: | |
17016 | return NULL; | |
17017 | } | |
17018 | ||
17019 | ||
17020 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17021 | PyObject *resultobj; | |
17022 | int arg1 ; | |
17023 | char *kwnames[] = { | |
17024 | (char *) "mode", NULL | |
17025 | }; | |
17026 | ||
17027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:IdleEvent_SetMode",kwnames,&arg1)) goto fail; | |
17028 | { | |
17029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17030 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
17031 | ||
17032 | wxPyEndAllowThreads(__tstate); | |
17033 | if (PyErr_Occurred()) SWIG_fail; | |
17034 | } | |
17035 | Py_INCREF(Py_None); resultobj = Py_None; | |
17036 | return resultobj; | |
17037 | fail: | |
17038 | return NULL; | |
17039 | } | |
17040 | ||
17041 | ||
17042 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17043 | PyObject *resultobj; | |
17044 | int result; | |
17045 | char *kwnames[] = { | |
17046 | NULL | |
17047 | }; | |
17048 | ||
17049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
17050 | { | |
17051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17052 | result = (int)wxIdleEvent::GetMode(); | |
17053 | ||
17054 | wxPyEndAllowThreads(__tstate); | |
17055 | if (PyErr_Occurred()) SWIG_fail; | |
17056 | } | |
17057 | resultobj = PyInt_FromLong((long)result); | |
17058 | return resultobj; | |
17059 | fail: | |
17060 | return NULL; | |
17061 | } | |
17062 | ||
17063 | ||
17064 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17065 | PyObject *resultobj; | |
17066 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17067 | bool result; | |
17068 | PyObject * obj0 = 0 ; | |
17069 | char *kwnames[] = { | |
17070 | (char *) "win", NULL | |
17071 | }; | |
17072 | ||
17073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
17074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17075 | { | |
17076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17077 | result = (bool)wxIdleEvent::CanSend(arg1); | |
17078 | ||
17079 | wxPyEndAllowThreads(__tstate); | |
17080 | if (PyErr_Occurred()) SWIG_fail; | |
17081 | } | |
17082 | resultobj = PyInt_FromLong((long)result); | |
17083 | return resultobj; | |
17084 | fail: | |
17085 | return NULL; | |
17086 | } | |
17087 | ||
17088 | ||
17089 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
17090 | PyObject *obj; | |
17091 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17092 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
17093 | Py_INCREF(obj); | |
17094 | return Py_BuildValue((char *)""); | |
17095 | } | |
17096 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17097 | PyObject *resultobj; | |
17098 | int arg1 = (int) 0 ; | |
17099 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
17100 | wxPyEvent *result; | |
17101 | char *kwnames[] = { | |
17102 | (char *) "winid",(char *) "commandType", NULL | |
17103 | }; | |
17104 | ||
17105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_PyEvent",kwnames,&arg1,&arg2)) goto fail; | |
17106 | { | |
17107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17108 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
17109 | ||
17110 | wxPyEndAllowThreads(__tstate); | |
17111 | if (PyErr_Occurred()) SWIG_fail; | |
17112 | } | |
17113 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyEvent, 1); | |
17114 | return resultobj; | |
17115 | fail: | |
17116 | return NULL; | |
17117 | } | |
17118 | ||
17119 | ||
17120 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17121 | PyObject *resultobj; | |
17122 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
17123 | PyObject * obj0 = 0 ; | |
17124 | char *kwnames[] = { | |
17125 | (char *) "self", NULL | |
17126 | }; | |
17127 | ||
17128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
17129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17130 | { | |
17131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17132 | delete arg1; | |
17133 | ||
17134 | wxPyEndAllowThreads(__tstate); | |
17135 | if (PyErr_Occurred()) SWIG_fail; | |
17136 | } | |
17137 | Py_INCREF(Py_None); resultobj = Py_None; | |
17138 | return resultobj; | |
17139 | fail: | |
17140 | return NULL; | |
17141 | } | |
17142 | ||
17143 | ||
17144 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17145 | PyObject *resultobj; | |
17146 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
17147 | PyObject *arg2 = (PyObject *) 0 ; | |
17148 | PyObject * obj0 = 0 ; | |
17149 | PyObject * obj1 = 0 ; | |
17150 | char *kwnames[] = { | |
17151 | (char *) "self",(char *) "self", NULL | |
17152 | }; | |
17153 | ||
17154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
17155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17156 | arg2 = obj1; | |
17157 | { | |
17158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17159 | (arg1)->SetSelf(arg2); | |
17160 | ||
17161 | wxPyEndAllowThreads(__tstate); | |
17162 | if (PyErr_Occurred()) SWIG_fail; | |
17163 | } | |
17164 | Py_INCREF(Py_None); resultobj = Py_None; | |
17165 | return resultobj; | |
17166 | fail: | |
17167 | return NULL; | |
17168 | } | |
17169 | ||
17170 | ||
17171 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17172 | PyObject *resultobj; | |
17173 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
17174 | PyObject *result; | |
17175 | PyObject * obj0 = 0 ; | |
17176 | char *kwnames[] = { | |
17177 | (char *) "self", NULL | |
17178 | }; | |
17179 | ||
17180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
17181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17182 | { | |
17183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17184 | result = (PyObject *)(arg1)->GetSelf(); | |
17185 | ||
17186 | wxPyEndAllowThreads(__tstate); | |
17187 | if (PyErr_Occurred()) SWIG_fail; | |
17188 | } | |
17189 | resultobj = result; | |
17190 | return resultobj; | |
17191 | fail: | |
17192 | return NULL; | |
17193 | } | |
17194 | ||
17195 | ||
17196 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
17197 | PyObject *obj; | |
17198 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17199 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
17200 | Py_INCREF(obj); | |
17201 | return Py_BuildValue((char *)""); | |
17202 | } | |
17203 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17204 | PyObject *resultobj; | |
17205 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17206 | int arg2 = (int) 0 ; | |
17207 | wxPyCommandEvent *result; | |
17208 | char *kwnames[] = { | |
17209 | (char *) "commandType",(char *) "id", NULL | |
17210 | }; | |
17211 | ||
17212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_PyCommandEvent",kwnames,&arg1,&arg2)) goto fail; | |
17213 | { | |
17214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17215 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
17216 | ||
17217 | wxPyEndAllowThreads(__tstate); | |
17218 | if (PyErr_Occurred()) SWIG_fail; | |
17219 | } | |
17220 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyCommandEvent, 1); | |
17221 | return resultobj; | |
17222 | fail: | |
17223 | return NULL; | |
17224 | } | |
17225 | ||
17226 | ||
17227 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17228 | PyObject *resultobj; | |
17229 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
17230 | PyObject * obj0 = 0 ; | |
17231 | char *kwnames[] = { | |
17232 | (char *) "self", NULL | |
17233 | }; | |
17234 | ||
17235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
17236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17237 | { | |
17238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17239 | delete arg1; | |
17240 | ||
17241 | wxPyEndAllowThreads(__tstate); | |
17242 | if (PyErr_Occurred()) SWIG_fail; | |
17243 | } | |
17244 | Py_INCREF(Py_None); resultobj = Py_None; | |
17245 | return resultobj; | |
17246 | fail: | |
17247 | return NULL; | |
17248 | } | |
17249 | ||
17250 | ||
17251 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17252 | PyObject *resultobj; | |
17253 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
17254 | PyObject *arg2 = (PyObject *) 0 ; | |
17255 | PyObject * obj0 = 0 ; | |
17256 | PyObject * obj1 = 0 ; | |
17257 | char *kwnames[] = { | |
17258 | (char *) "self",(char *) "self", NULL | |
17259 | }; | |
17260 | ||
17261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
17262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17263 | arg2 = obj1; | |
17264 | { | |
17265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17266 | (arg1)->SetSelf(arg2); | |
17267 | ||
17268 | wxPyEndAllowThreads(__tstate); | |
17269 | if (PyErr_Occurred()) SWIG_fail; | |
17270 | } | |
17271 | Py_INCREF(Py_None); resultobj = Py_None; | |
17272 | return resultobj; | |
17273 | fail: | |
17274 | return NULL; | |
17275 | } | |
17276 | ||
17277 | ||
17278 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17279 | PyObject *resultobj; | |
17280 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
17281 | PyObject *result; | |
17282 | PyObject * obj0 = 0 ; | |
17283 | char *kwnames[] = { | |
17284 | (char *) "self", NULL | |
17285 | }; | |
17286 | ||
17287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
17288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17289 | { | |
17290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17291 | result = (PyObject *)(arg1)->GetSelf(); | |
17292 | ||
17293 | wxPyEndAllowThreads(__tstate); | |
17294 | if (PyErr_Occurred()) SWIG_fail; | |
17295 | } | |
17296 | resultobj = result; | |
17297 | return resultobj; | |
17298 | fail: | |
17299 | return NULL; | |
17300 | } | |
17301 | ||
17302 | ||
17303 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
17304 | PyObject *obj; | |
17305 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17306 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
17307 | Py_INCREF(obj); | |
17308 | return Py_BuildValue((char *)""); | |
17309 | } | |
17310 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17311 | PyObject *resultobj; | |
17312 | wxPyApp *result; | |
17313 | char *kwnames[] = { | |
17314 | NULL | |
17315 | }; | |
17316 | ||
17317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
17318 | { | |
17319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17320 | result = (wxPyApp *)new_wxPyApp(); | |
17321 | ||
17322 | wxPyEndAllowThreads(__tstate); | |
17323 | if (PyErr_Occurred()) SWIG_fail; | |
17324 | } | |
17325 | { | |
17326 | resultobj = wxPyMake_wxObject(result); | |
17327 | } | |
17328 | return resultobj; | |
17329 | fail: | |
17330 | return NULL; | |
17331 | } | |
17332 | ||
17333 | ||
17334 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17335 | PyObject *resultobj; | |
17336 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17337 | PyObject * obj0 = 0 ; | |
17338 | char *kwnames[] = { | |
17339 | (char *) "self", NULL | |
17340 | }; | |
17341 | ||
17342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
17343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17344 | { | |
17345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17346 | delete arg1; | |
17347 | ||
17348 | wxPyEndAllowThreads(__tstate); | |
17349 | if (PyErr_Occurred()) SWIG_fail; | |
17350 | } | |
17351 | Py_INCREF(Py_None); resultobj = Py_None; | |
17352 | return resultobj; | |
17353 | fail: | |
17354 | return NULL; | |
17355 | } | |
17356 | ||
17357 | ||
17358 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17359 | PyObject *resultobj; | |
17360 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17361 | PyObject *arg2 = (PyObject *) 0 ; | |
17362 | PyObject *arg3 = (PyObject *) 0 ; | |
17363 | PyObject * obj0 = 0 ; | |
17364 | PyObject * obj1 = 0 ; | |
17365 | PyObject * obj2 = 0 ; | |
17366 | char *kwnames[] = { | |
17367 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17368 | }; | |
17369 | ||
17370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17372 | arg2 = obj1; | |
17373 | arg3 = obj2; | |
17374 | { | |
17375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17376 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17377 | ||
17378 | wxPyEndAllowThreads(__tstate); | |
17379 | if (PyErr_Occurred()) SWIG_fail; | |
17380 | } | |
17381 | Py_INCREF(Py_None); resultobj = Py_None; | |
17382 | return resultobj; | |
17383 | fail: | |
17384 | return NULL; | |
17385 | } | |
17386 | ||
17387 | ||
17388 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17389 | PyObject *resultobj; | |
17390 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17391 | wxString result; | |
17392 | PyObject * obj0 = 0 ; | |
17393 | char *kwnames[] = { | |
17394 | (char *) "self", NULL | |
17395 | }; | |
17396 | ||
17397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
17398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17399 | { | |
17400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17401 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
17402 | ||
17403 | wxPyEndAllowThreads(__tstate); | |
17404 | if (PyErr_Occurred()) SWIG_fail; | |
17405 | } | |
17406 | { | |
17407 | #if wxUSE_UNICODE | |
17408 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17409 | #else | |
17410 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17411 | #endif | |
17412 | } | |
17413 | return resultobj; | |
17414 | fail: | |
17415 | return NULL; | |
17416 | } | |
17417 | ||
17418 | ||
17419 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17420 | PyObject *resultobj; | |
17421 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17422 | wxString *arg2 = 0 ; | |
423f194a | 17423 | bool temp2 = False ; |
d14a1e28 RD |
17424 | PyObject * obj0 = 0 ; |
17425 | PyObject * obj1 = 0 ; | |
17426 | char *kwnames[] = { | |
17427 | (char *) "self",(char *) "name", NULL | |
17428 | }; | |
17429 | ||
17430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
17431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17432 | { | |
17433 | arg2 = wxString_in_helper(obj1); | |
17434 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17435 | temp2 = True; |
d14a1e28 RD |
17436 | } |
17437 | { | |
17438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17439 | (arg1)->SetAppName((wxString const &)*arg2); | |
17440 | ||
17441 | wxPyEndAllowThreads(__tstate); | |
17442 | if (PyErr_Occurred()) SWIG_fail; | |
17443 | } | |
17444 | Py_INCREF(Py_None); resultobj = Py_None; | |
17445 | { | |
17446 | if (temp2) | |
17447 | delete arg2; | |
17448 | } | |
17449 | return resultobj; | |
17450 | fail: | |
17451 | { | |
17452 | if (temp2) | |
17453 | delete arg2; | |
17454 | } | |
17455 | return NULL; | |
17456 | } | |
17457 | ||
17458 | ||
17459 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17460 | PyObject *resultobj; | |
17461 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17462 | wxString result; | |
17463 | PyObject * obj0 = 0 ; | |
17464 | char *kwnames[] = { | |
17465 | (char *) "self", NULL | |
17466 | }; | |
17467 | ||
17468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
17469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17470 | { | |
17471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17472 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
17473 | ||
17474 | wxPyEndAllowThreads(__tstate); | |
17475 | if (PyErr_Occurred()) SWIG_fail; | |
17476 | } | |
17477 | { | |
17478 | #if wxUSE_UNICODE | |
17479 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17480 | #else | |
17481 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17482 | #endif | |
17483 | } | |
17484 | return resultobj; | |
17485 | fail: | |
17486 | return NULL; | |
17487 | } | |
17488 | ||
17489 | ||
17490 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17491 | PyObject *resultobj; | |
17492 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17493 | wxString *arg2 = 0 ; | |
423f194a | 17494 | bool temp2 = False ; |
d14a1e28 RD |
17495 | PyObject * obj0 = 0 ; |
17496 | PyObject * obj1 = 0 ; | |
17497 | char *kwnames[] = { | |
17498 | (char *) "self",(char *) "name", NULL | |
17499 | }; | |
17500 | ||
17501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
17502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17503 | { | |
17504 | arg2 = wxString_in_helper(obj1); | |
17505 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17506 | temp2 = True; |
d14a1e28 RD |
17507 | } |
17508 | { | |
17509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17510 | (arg1)->SetClassName((wxString const &)*arg2); | |
17511 | ||
17512 | wxPyEndAllowThreads(__tstate); | |
17513 | if (PyErr_Occurred()) SWIG_fail; | |
17514 | } | |
17515 | Py_INCREF(Py_None); resultobj = Py_None; | |
17516 | { | |
17517 | if (temp2) | |
17518 | delete arg2; | |
17519 | } | |
17520 | return resultobj; | |
17521 | fail: | |
17522 | { | |
17523 | if (temp2) | |
17524 | delete arg2; | |
17525 | } | |
17526 | return NULL; | |
17527 | } | |
17528 | ||
17529 | ||
17530 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17531 | PyObject *resultobj; | |
17532 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17533 | wxString *result; | |
17534 | PyObject * obj0 = 0 ; | |
17535 | char *kwnames[] = { | |
17536 | (char *) "self", NULL | |
17537 | }; | |
17538 | ||
17539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
17540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17541 | { | |
17542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17543 | { | |
17544 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
17545 | result = (wxString *) &_result_ref; | |
17546 | } | |
17547 | ||
17548 | wxPyEndAllowThreads(__tstate); | |
17549 | if (PyErr_Occurred()) SWIG_fail; | |
17550 | } | |
f0983263 RD |
17551 | { |
17552 | #if wxUSE_UNICODE | |
17553 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17554 | #else | |
17555 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17556 | #endif | |
17557 | } | |
d14a1e28 RD |
17558 | return resultobj; |
17559 | fail: | |
17560 | return NULL; | |
17561 | } | |
17562 | ||
17563 | ||
17564 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17565 | PyObject *resultobj; | |
17566 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17567 | wxString *arg2 = 0 ; | |
423f194a | 17568 | bool temp2 = False ; |
d14a1e28 RD |
17569 | PyObject * obj0 = 0 ; |
17570 | PyObject * obj1 = 0 ; | |
17571 | char *kwnames[] = { | |
17572 | (char *) "self",(char *) "name", NULL | |
17573 | }; | |
17574 | ||
17575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
17576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17577 | { | |
17578 | arg2 = wxString_in_helper(obj1); | |
17579 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17580 | temp2 = True; |
d14a1e28 RD |
17581 | } |
17582 | { | |
17583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17584 | (arg1)->SetVendorName((wxString const &)*arg2); | |
17585 | ||
17586 | wxPyEndAllowThreads(__tstate); | |
17587 | if (PyErr_Occurred()) SWIG_fail; | |
17588 | } | |
17589 | Py_INCREF(Py_None); resultobj = Py_None; | |
17590 | { | |
17591 | if (temp2) | |
17592 | delete arg2; | |
17593 | } | |
17594 | return resultobj; | |
17595 | fail: | |
17596 | { | |
17597 | if (temp2) | |
17598 | delete arg2; | |
17599 | } | |
17600 | return NULL; | |
17601 | } | |
17602 | ||
17603 | ||
17604 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17605 | PyObject *resultobj; | |
17606 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17607 | wxAppTraits *result; | |
17608 | PyObject * obj0 = 0 ; | |
17609 | char *kwnames[] = { | |
17610 | (char *) "self", NULL | |
17611 | }; | |
17612 | ||
17613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
17614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17615 | { | |
17616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17617 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
17618 | ||
17619 | wxPyEndAllowThreads(__tstate); | |
17620 | if (PyErr_Occurred()) SWIG_fail; | |
17621 | } | |
17622 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAppTraits, 0); | |
17623 | return resultobj; | |
17624 | fail: | |
17625 | return NULL; | |
17626 | } | |
17627 | ||
17628 | ||
17629 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17630 | PyObject *resultobj; | |
17631 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17632 | PyObject * obj0 = 0 ; | |
17633 | char *kwnames[] = { | |
17634 | (char *) "self", NULL | |
17635 | }; | |
17636 | ||
17637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
17638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17639 | { | |
17640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17641 | (arg1)->ProcessPendingEvents(); | |
17642 | ||
17643 | wxPyEndAllowThreads(__tstate); | |
17644 | if (PyErr_Occurred()) SWIG_fail; | |
17645 | } | |
17646 | Py_INCREF(Py_None); resultobj = Py_None; | |
17647 | return resultobj; | |
17648 | fail: | |
17649 | return NULL; | |
17650 | } | |
17651 | ||
17652 | ||
17653 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17654 | PyObject *resultobj; | |
17655 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
423f194a | 17656 | bool arg2 = (bool) False ; |
d14a1e28 RD |
17657 | bool result; |
17658 | PyObject * obj0 = 0 ; | |
17659 | PyObject * obj1 = 0 ; | |
17660 | char *kwnames[] = { | |
17661 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
17662 | }; | |
17663 | ||
17664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
17665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17666 | if (obj1) { | |
17667 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17668 | if (PyErr_Occurred()) SWIG_fail; | |
17669 | } | |
17670 | { | |
17671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17672 | result = (bool)(arg1)->Yield(arg2); | |
17673 | ||
17674 | wxPyEndAllowThreads(__tstate); | |
17675 | if (PyErr_Occurred()) SWIG_fail; | |
17676 | } | |
17677 | resultobj = PyInt_FromLong((long)result); | |
17678 | return resultobj; | |
17679 | fail: | |
17680 | return NULL; | |
17681 | } | |
17682 | ||
17683 | ||
17684 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17685 | PyObject *resultobj; | |
17686 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17687 | PyObject * obj0 = 0 ; | |
17688 | char *kwnames[] = { | |
17689 | (char *) "self", NULL | |
17690 | }; | |
17691 | ||
17692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
17693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17694 | { | |
17695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17696 | (arg1)->WakeUpIdle(); | |
17697 | ||
17698 | wxPyEndAllowThreads(__tstate); | |
17699 | if (PyErr_Occurred()) SWIG_fail; | |
17700 | } | |
17701 | Py_INCREF(Py_None); resultobj = Py_None; | |
17702 | return resultobj; | |
17703 | fail: | |
17704 | return NULL; | |
17705 | } | |
17706 | ||
17707 | ||
17708 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17709 | PyObject *resultobj; | |
17710 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17711 | int result; | |
17712 | PyObject * obj0 = 0 ; | |
17713 | char *kwnames[] = { | |
17714 | (char *) "self", NULL | |
17715 | }; | |
17716 | ||
17717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
17718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17719 | { | |
17720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17721 | result = (int)(arg1)->MainLoop(); | |
17722 | ||
17723 | wxPyEndAllowThreads(__tstate); | |
17724 | if (PyErr_Occurred()) SWIG_fail; | |
17725 | } | |
17726 | resultobj = PyInt_FromLong((long)result); | |
17727 | return resultobj; | |
17728 | fail: | |
17729 | return NULL; | |
17730 | } | |
17731 | ||
17732 | ||
17733 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17734 | PyObject *resultobj; | |
17735 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17736 | PyObject * obj0 = 0 ; | |
17737 | char *kwnames[] = { | |
17738 | (char *) "self", NULL | |
17739 | }; | |
17740 | ||
17741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
17742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17743 | { | |
17744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17745 | (arg1)->Exit(); | |
17746 | ||
17747 | wxPyEndAllowThreads(__tstate); | |
17748 | if (PyErr_Occurred()) SWIG_fail; | |
17749 | } | |
17750 | Py_INCREF(Py_None); resultobj = Py_None; | |
17751 | return resultobj; | |
17752 | fail: | |
17753 | return NULL; | |
17754 | } | |
17755 | ||
17756 | ||
17757 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17758 | PyObject *resultobj; | |
17759 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17760 | PyObject * obj0 = 0 ; | |
17761 | char *kwnames[] = { | |
17762 | (char *) "self", NULL | |
17763 | }; | |
17764 | ||
17765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
17766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17767 | { | |
17768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17769 | (arg1)->ExitMainLoop(); | |
17770 | ||
17771 | wxPyEndAllowThreads(__tstate); | |
17772 | if (PyErr_Occurred()) SWIG_fail; | |
17773 | } | |
17774 | Py_INCREF(Py_None); resultobj = Py_None; | |
17775 | return resultobj; | |
17776 | fail: | |
17777 | return NULL; | |
17778 | } | |
17779 | ||
17780 | ||
17781 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17782 | PyObject *resultobj; | |
17783 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17784 | bool result; | |
17785 | PyObject * obj0 = 0 ; | |
17786 | char *kwnames[] = { | |
17787 | (char *) "self", NULL | |
17788 | }; | |
17789 | ||
17790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
17791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17792 | { | |
17793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17794 | result = (bool)(arg1)->Pending(); | |
17795 | ||
17796 | wxPyEndAllowThreads(__tstate); | |
17797 | if (PyErr_Occurred()) SWIG_fail; | |
17798 | } | |
17799 | resultobj = PyInt_FromLong((long)result); | |
17800 | return resultobj; | |
17801 | fail: | |
17802 | return NULL; | |
17803 | } | |
17804 | ||
17805 | ||
17806 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17807 | PyObject *resultobj; | |
17808 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17809 | bool result; | |
17810 | PyObject * obj0 = 0 ; | |
17811 | char *kwnames[] = { | |
17812 | (char *) "self", NULL | |
17813 | }; | |
17814 | ||
17815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
17816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17817 | { | |
17818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17819 | result = (bool)(arg1)->Dispatch(); | |
17820 | ||
17821 | wxPyEndAllowThreads(__tstate); | |
17822 | if (PyErr_Occurred()) SWIG_fail; | |
17823 | } | |
17824 | resultobj = PyInt_FromLong((long)result); | |
17825 | return resultobj; | |
17826 | fail: | |
17827 | return NULL; | |
17828 | } | |
17829 | ||
17830 | ||
17831 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17832 | PyObject *resultobj; | |
17833 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17834 | bool result; | |
17835 | PyObject * obj0 = 0 ; | |
17836 | char *kwnames[] = { | |
17837 | (char *) "self", NULL | |
17838 | }; | |
17839 | ||
17840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
17841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17842 | { | |
17843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17844 | result = (bool)(arg1)->ProcessIdle(); | |
17845 | ||
17846 | wxPyEndAllowThreads(__tstate); | |
17847 | if (PyErr_Occurred()) SWIG_fail; | |
17848 | } | |
17849 | resultobj = PyInt_FromLong((long)result); | |
17850 | return resultobj; | |
17851 | fail: | |
17852 | return NULL; | |
17853 | } | |
17854 | ||
17855 | ||
17856 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17857 | PyObject *resultobj; | |
17858 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17859 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17860 | wxIdleEvent *arg3 = 0 ; | |
17861 | bool result; | |
17862 | PyObject * obj0 = 0 ; | |
17863 | PyObject * obj1 = 0 ; | |
17864 | PyObject * obj2 = 0 ; | |
17865 | char *kwnames[] = { | |
17866 | (char *) "self",(char *) "win",(char *) "event", NULL | |
17867 | }; | |
17868 | ||
17869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17871 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17872 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17873 | if (arg3 == NULL) { | |
17874 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17875 | } | |
17876 | { | |
17877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17878 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
17879 | ||
17880 | wxPyEndAllowThreads(__tstate); | |
17881 | if (PyErr_Occurred()) SWIG_fail; | |
17882 | } | |
17883 | resultobj = PyInt_FromLong((long)result); | |
17884 | return resultobj; | |
17885 | fail: | |
17886 | return NULL; | |
17887 | } | |
17888 | ||
17889 | ||
d14a1e28 RD |
17890 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
17891 | PyObject *resultobj; | |
17892 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17893 | bool result; | |
17894 | PyObject * obj0 = 0 ; | |
17895 | char *kwnames[] = { | |
17896 | (char *) "self", NULL | |
17897 | }; | |
17898 | ||
17899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
17900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17901 | { | |
17902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17903 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
17904 | ||
17905 | wxPyEndAllowThreads(__tstate); | |
17906 | if (PyErr_Occurred()) SWIG_fail; | |
17907 | } | |
17908 | resultobj = PyInt_FromLong((long)result); | |
17909 | return resultobj; | |
17910 | fail: | |
17911 | return NULL; | |
17912 | } | |
17913 | ||
17914 | ||
17915 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17916 | PyObject *resultobj; | |
17917 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17918 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17919 | PyObject * obj0 = 0 ; | |
17920 | PyObject * obj1 = 0 ; | |
17921 | char *kwnames[] = { | |
17922 | (char *) "self",(char *) "win", NULL | |
17923 | }; | |
17924 | ||
17925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
17926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17927 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17928 | { | |
17929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17930 | (arg1)->SetTopWindow(arg2); | |
17931 | ||
17932 | wxPyEndAllowThreads(__tstate); | |
17933 | if (PyErr_Occurred()) SWIG_fail; | |
17934 | } | |
17935 | Py_INCREF(Py_None); resultobj = Py_None; | |
17936 | return resultobj; | |
17937 | fail: | |
17938 | return NULL; | |
17939 | } | |
17940 | ||
17941 | ||
17942 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17943 | PyObject *resultobj; | |
17944 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17945 | wxWindow *result; | |
17946 | PyObject * obj0 = 0 ; | |
17947 | char *kwnames[] = { | |
17948 | (char *) "self", NULL | |
17949 | }; | |
17950 | ||
17951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
17952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17953 | { | |
17954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17955 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
17956 | ||
17957 | wxPyEndAllowThreads(__tstate); | |
17958 | if (PyErr_Occurred()) SWIG_fail; | |
17959 | } | |
17960 | { | |
17961 | resultobj = wxPyMake_wxObject(result); | |
17962 | } | |
17963 | return resultobj; | |
17964 | fail: | |
17965 | return NULL; | |
17966 | } | |
17967 | ||
17968 | ||
17969 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17970 | PyObject *resultobj; | |
17971 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17972 | bool arg2 ; | |
17973 | PyObject * obj0 = 0 ; | |
17974 | PyObject * obj1 = 0 ; | |
17975 | char *kwnames[] = { | |
17976 | (char *) "self",(char *) "flag", NULL | |
17977 | }; | |
17978 | ||
17979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
17980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17981 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17982 | if (PyErr_Occurred()) SWIG_fail; | |
17983 | { | |
17984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17985 | (arg1)->SetExitOnFrameDelete(arg2); | |
17986 | ||
17987 | wxPyEndAllowThreads(__tstate); | |
17988 | if (PyErr_Occurred()) SWIG_fail; | |
17989 | } | |
17990 | Py_INCREF(Py_None); resultobj = Py_None; | |
17991 | return resultobj; | |
17992 | fail: | |
17993 | return NULL; | |
17994 | } | |
17995 | ||
17996 | ||
17997 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17998 | PyObject *resultobj; | |
17999 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18000 | bool result; | |
18001 | PyObject * obj0 = 0 ; | |
18002 | char *kwnames[] = { | |
18003 | (char *) "self", NULL | |
18004 | }; | |
18005 | ||
18006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
18007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18008 | { | |
18009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18010 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
18011 | ||
18012 | wxPyEndAllowThreads(__tstate); | |
18013 | if (PyErr_Occurred()) SWIG_fail; | |
18014 | } | |
18015 | resultobj = PyInt_FromLong((long)result); | |
18016 | return resultobj; | |
18017 | fail: | |
18018 | return NULL; | |
18019 | } | |
18020 | ||
18021 | ||
18022 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18023 | PyObject *resultobj; | |
18024 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18025 | bool arg2 ; | |
18026 | PyObject * obj0 = 0 ; | |
18027 | PyObject * obj1 = 0 ; | |
18028 | char *kwnames[] = { | |
18029 | (char *) "self",(char *) "flag", NULL | |
18030 | }; | |
18031 | ||
18032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
18033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18034 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
18035 | if (PyErr_Occurred()) SWIG_fail; | |
18036 | { | |
18037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18038 | (arg1)->SetUseBestVisual(arg2); | |
18039 | ||
18040 | wxPyEndAllowThreads(__tstate); | |
18041 | if (PyErr_Occurred()) SWIG_fail; | |
18042 | } | |
18043 | Py_INCREF(Py_None); resultobj = Py_None; | |
18044 | return resultobj; | |
18045 | fail: | |
18046 | return NULL; | |
18047 | } | |
18048 | ||
18049 | ||
18050 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18051 | PyObject *resultobj; | |
18052 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18053 | bool result; | |
18054 | PyObject * obj0 = 0 ; | |
18055 | char *kwnames[] = { | |
18056 | (char *) "self", NULL | |
18057 | }; | |
18058 | ||
18059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
18060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18061 | { | |
18062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18063 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
18064 | ||
18065 | wxPyEndAllowThreads(__tstate); | |
18066 | if (PyErr_Occurred()) SWIG_fail; | |
18067 | } | |
18068 | resultobj = PyInt_FromLong((long)result); | |
18069 | return resultobj; | |
18070 | fail: | |
18071 | return NULL; | |
18072 | } | |
18073 | ||
18074 | ||
18075 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18076 | PyObject *resultobj; | |
18077 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18078 | int arg2 ; | |
18079 | PyObject * obj0 = 0 ; | |
18080 | char *kwnames[] = { | |
18081 | (char *) "self",(char *) "mode", NULL | |
18082 | }; | |
18083 | ||
18084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyApp_SetPrintMode",kwnames,&obj0,&arg2)) goto fail; | |
18085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18086 | { | |
18087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18088 | (arg1)->SetPrintMode(arg2); | |
18089 | ||
18090 | wxPyEndAllowThreads(__tstate); | |
18091 | if (PyErr_Occurred()) SWIG_fail; | |
18092 | } | |
18093 | Py_INCREF(Py_None); resultobj = Py_None; | |
18094 | return resultobj; | |
18095 | fail: | |
18096 | return NULL; | |
18097 | } | |
18098 | ||
18099 | ||
18100 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18101 | PyObject *resultobj; | |
18102 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18103 | int result; | |
18104 | PyObject * obj0 = 0 ; | |
18105 | char *kwnames[] = { | |
18106 | (char *) "self", NULL | |
18107 | }; | |
18108 | ||
18109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
18110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18111 | { | |
18112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18113 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
18114 | ||
18115 | wxPyEndAllowThreads(__tstate); | |
18116 | if (PyErr_Occurred()) SWIG_fail; | |
18117 | } | |
18118 | resultobj = PyInt_FromLong((long)result); | |
18119 | return resultobj; | |
18120 | fail: | |
18121 | return NULL; | |
18122 | } | |
18123 | ||
18124 | ||
44127b65 | 18125 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18126 | PyObject *resultobj; |
18127 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 18128 | int arg2 ; |
d14a1e28 RD |
18129 | PyObject * obj0 = 0 ; |
18130 | char *kwnames[] = { | |
44127b65 | 18131 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
18132 | }; |
18133 | ||
44127b65 | 18134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyApp_SetAssertMode",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 RD |
18135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
18136 | { | |
18137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 18138 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
18139 | |
18140 | wxPyEndAllowThreads(__tstate); | |
18141 | if (PyErr_Occurred()) SWIG_fail; | |
18142 | } | |
44127b65 | 18143 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
18144 | return resultobj; |
18145 | fail: | |
18146 | return NULL; | |
18147 | } | |
18148 | ||
18149 | ||
44127b65 | 18150 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18151 | PyObject *resultobj; |
18152 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 18153 | int result; |
d14a1e28 RD |
18154 | PyObject * obj0 = 0 ; |
18155 | char *kwnames[] = { | |
44127b65 | 18156 | (char *) "self", NULL |
d14a1e28 RD |
18157 | }; |
18158 | ||
44127b65 | 18159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
18160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
18161 | { | |
18162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 18163 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
18164 | |
18165 | wxPyEndAllowThreads(__tstate); | |
18166 | if (PyErr_Occurred()) SWIG_fail; | |
18167 | } | |
44127b65 | 18168 | resultobj = PyInt_FromLong((long)result); |
d14a1e28 RD |
18169 | return resultobj; |
18170 | fail: | |
18171 | return NULL; | |
18172 | } | |
18173 | ||
18174 | ||
18175 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18176 | PyObject *resultobj; | |
18177 | bool result; | |
18178 | char *kwnames[] = { | |
18179 | NULL | |
18180 | }; | |
18181 | ||
18182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
18183 | { | |
18184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18185 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
18186 | ||
18187 | wxPyEndAllowThreads(__tstate); | |
18188 | if (PyErr_Occurred()) SWIG_fail; | |
18189 | } | |
18190 | resultobj = PyInt_FromLong((long)result); | |
18191 | return resultobj; | |
18192 | fail: | |
18193 | return NULL; | |
18194 | } | |
18195 | ||
18196 | ||
18197 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18198 | PyObject *resultobj; | |
18199 | long result; | |
18200 | char *kwnames[] = { | |
18201 | NULL | |
18202 | }; | |
18203 | ||
18204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
18205 | { | |
18206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18207 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
18208 | ||
18209 | wxPyEndAllowThreads(__tstate); | |
18210 | if (PyErr_Occurred()) SWIG_fail; | |
18211 | } | |
18212 | resultobj = PyInt_FromLong((long)result); | |
18213 | return resultobj; | |
18214 | fail: | |
18215 | return NULL; | |
18216 | } | |
18217 | ||
18218 | ||
18219 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18220 | PyObject *resultobj; | |
18221 | long result; | |
18222 | char *kwnames[] = { | |
18223 | NULL | |
18224 | }; | |
18225 | ||
18226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
18227 | { | |
18228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18229 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
18230 | ||
18231 | wxPyEndAllowThreads(__tstate); | |
18232 | if (PyErr_Occurred()) SWIG_fail; | |
18233 | } | |
18234 | resultobj = PyInt_FromLong((long)result); | |
18235 | return resultobj; | |
18236 | fail: | |
18237 | return NULL; | |
18238 | } | |
18239 | ||
18240 | ||
18241 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18242 | PyObject *resultobj; | |
18243 | long result; | |
18244 | char *kwnames[] = { | |
18245 | NULL | |
18246 | }; | |
18247 | ||
18248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
18249 | { | |
18250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18251 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
18252 | ||
18253 | wxPyEndAllowThreads(__tstate); | |
18254 | if (PyErr_Occurred()) SWIG_fail; | |
18255 | } | |
18256 | resultobj = PyInt_FromLong((long)result); | |
18257 | return resultobj; | |
18258 | fail: | |
18259 | return NULL; | |
18260 | } | |
18261 | ||
18262 | ||
18263 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18264 | PyObject *resultobj; | |
18265 | wxString result; | |
18266 | char *kwnames[] = { | |
18267 | NULL | |
18268 | }; | |
18269 | ||
18270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
18271 | { | |
18272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18273 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
18274 | ||
18275 | wxPyEndAllowThreads(__tstate); | |
18276 | if (PyErr_Occurred()) SWIG_fail; | |
18277 | } | |
18278 | { | |
18279 | #if wxUSE_UNICODE | |
18280 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18281 | #else | |
18282 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18283 | #endif | |
18284 | } | |
18285 | return resultobj; | |
18286 | fail: | |
18287 | return NULL; | |
18288 | } | |
18289 | ||
18290 | ||
18291 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18292 | PyObject *resultobj; | |
18293 | bool arg1 ; | |
18294 | PyObject * obj0 = 0 ; | |
18295 | char *kwnames[] = { | |
18296 | (char *) "val", NULL | |
18297 | }; | |
18298 | ||
18299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
18300 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
18301 | if (PyErr_Occurred()) SWIG_fail; | |
18302 | { | |
18303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18304 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
18305 | ||
18306 | wxPyEndAllowThreads(__tstate); | |
18307 | if (PyErr_Occurred()) SWIG_fail; | |
18308 | } | |
18309 | Py_INCREF(Py_None); resultobj = Py_None; | |
18310 | return resultobj; | |
18311 | fail: | |
18312 | return NULL; | |
18313 | } | |
18314 | ||
18315 | ||
18316 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18317 | PyObject *resultobj; | |
18318 | long arg1 ; | |
18319 | char *kwnames[] = { | |
18320 | (char *) "val", NULL | |
18321 | }; | |
18322 | ||
18323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:PyApp_SetMacAboutMenuItemId",kwnames,&arg1)) goto fail; | |
18324 | { | |
18325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18326 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
18327 | ||
18328 | wxPyEndAllowThreads(__tstate); | |
18329 | if (PyErr_Occurred()) SWIG_fail; | |
18330 | } | |
18331 | Py_INCREF(Py_None); resultobj = Py_None; | |
18332 | return resultobj; | |
18333 | fail: | |
18334 | return NULL; | |
18335 | } | |
18336 | ||
18337 | ||
18338 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18339 | PyObject *resultobj; | |
18340 | long arg1 ; | |
18341 | char *kwnames[] = { | |
18342 | (char *) "val", NULL | |
18343 | }; | |
18344 | ||
18345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:PyApp_SetMacPreferencesMenuItemId",kwnames,&arg1)) goto fail; | |
18346 | { | |
18347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18348 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
18349 | ||
18350 | wxPyEndAllowThreads(__tstate); | |
18351 | if (PyErr_Occurred()) SWIG_fail; | |
18352 | } | |
18353 | Py_INCREF(Py_None); resultobj = Py_None; | |
18354 | return resultobj; | |
18355 | fail: | |
18356 | return NULL; | |
18357 | } | |
18358 | ||
18359 | ||
18360 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18361 | PyObject *resultobj; | |
18362 | long arg1 ; | |
18363 | char *kwnames[] = { | |
18364 | (char *) "val", NULL | |
18365 | }; | |
18366 | ||
18367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:PyApp_SetMacExitMenuItemId",kwnames,&arg1)) goto fail; | |
18368 | { | |
18369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18370 | wxPyApp::SetMacExitMenuItemId(arg1); | |
18371 | ||
18372 | wxPyEndAllowThreads(__tstate); | |
18373 | if (PyErr_Occurred()) SWIG_fail; | |
18374 | } | |
18375 | Py_INCREF(Py_None); resultobj = Py_None; | |
18376 | return resultobj; | |
18377 | fail: | |
18378 | return NULL; | |
18379 | } | |
18380 | ||
18381 | ||
18382 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18383 | PyObject *resultobj; | |
18384 | wxString *arg1 = 0 ; | |
423f194a | 18385 | bool temp1 = False ; |
d14a1e28 RD |
18386 | PyObject * obj0 = 0 ; |
18387 | char *kwnames[] = { | |
18388 | (char *) "val", NULL | |
18389 | }; | |
18390 | ||
18391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
18392 | { | |
18393 | arg1 = wxString_in_helper(obj0); | |
18394 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 18395 | temp1 = True; |
d14a1e28 RD |
18396 | } |
18397 | { | |
18398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18399 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
18400 | ||
18401 | wxPyEndAllowThreads(__tstate); | |
18402 | if (PyErr_Occurred()) SWIG_fail; | |
18403 | } | |
18404 | Py_INCREF(Py_None); resultobj = Py_None; | |
18405 | { | |
18406 | if (temp1) | |
18407 | delete arg1; | |
18408 | } | |
18409 | return resultobj; | |
18410 | fail: | |
18411 | { | |
18412 | if (temp1) | |
18413 | delete arg1; | |
18414 | } | |
18415 | return NULL; | |
18416 | } | |
18417 | ||
18418 | ||
18419 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18420 | PyObject *resultobj; | |
18421 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18422 | PyObject * obj0 = 0 ; | |
18423 | char *kwnames[] = { | |
18424 | (char *) "self", NULL | |
18425 | }; | |
18426 | ||
18427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
18428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18429 | { | |
18430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18431 | (arg1)->_BootstrapApp(); | |
18432 | ||
18433 | wxPyEndAllowThreads(__tstate); | |
18434 | if (PyErr_Occurred()) SWIG_fail; | |
18435 | } | |
18436 | Py_INCREF(Py_None); resultobj = Py_None; | |
18437 | return resultobj; | |
18438 | fail: | |
18439 | return NULL; | |
18440 | } | |
18441 | ||
18442 | ||
18443 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18444 | PyObject *resultobj; | |
18445 | int result; | |
18446 | char *kwnames[] = { | |
18447 | NULL | |
18448 | }; | |
18449 | ||
18450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
18451 | { | |
18452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18453 | result = (int)wxPyApp::GetComCtl32Version(); | |
18454 | ||
18455 | wxPyEndAllowThreads(__tstate); | |
18456 | if (PyErr_Occurred()) SWIG_fail; | |
18457 | } | |
18458 | resultobj = PyInt_FromLong((long)result); | |
18459 | return resultobj; | |
18460 | fail: | |
18461 | return NULL; | |
18462 | } | |
18463 | ||
18464 | ||
18465 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
18466 | PyObject *obj; | |
18467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18468 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
18469 | Py_INCREF(obj); | |
18470 | return Py_BuildValue((char *)""); | |
18471 | } | |
18472 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18473 | PyObject *resultobj; | |
18474 | char *kwnames[] = { | |
18475 | NULL | |
18476 | }; | |
18477 | ||
18478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
18479 | { | |
18480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18481 | wxExit(); | |
18482 | ||
18483 | wxPyEndAllowThreads(__tstate); | |
18484 | if (PyErr_Occurred()) SWIG_fail; | |
18485 | } | |
18486 | Py_INCREF(Py_None); resultobj = Py_None; | |
18487 | return resultobj; | |
18488 | fail: | |
18489 | return NULL; | |
18490 | } | |
18491 | ||
18492 | ||
18493 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18494 | PyObject *resultobj; | |
18495 | bool result; | |
18496 | char *kwnames[] = { | |
18497 | NULL | |
18498 | }; | |
18499 | ||
18500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
18501 | { | |
18502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18503 | result = (bool)wxYield(); | |
18504 | ||
18505 | wxPyEndAllowThreads(__tstate); | |
18506 | if (PyErr_Occurred()) SWIG_fail; | |
18507 | } | |
18508 | resultobj = PyInt_FromLong((long)result); | |
18509 | return resultobj; | |
18510 | fail: | |
18511 | return NULL; | |
18512 | } | |
18513 | ||
18514 | ||
18515 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18516 | PyObject *resultobj; | |
18517 | bool result; | |
18518 | char *kwnames[] = { | |
18519 | NULL | |
18520 | }; | |
18521 | ||
18522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
18523 | { | |
18524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18525 | result = (bool)wxYieldIfNeeded(); | |
18526 | ||
18527 | wxPyEndAllowThreads(__tstate); | |
18528 | if (PyErr_Occurred()) SWIG_fail; | |
18529 | } | |
18530 | resultobj = PyInt_FromLong((long)result); | |
18531 | return resultobj; | |
18532 | fail: | |
18533 | return NULL; | |
18534 | } | |
18535 | ||
18536 | ||
18537 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18538 | PyObject *resultobj; | |
18539 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 18540 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18541 | bool result; |
18542 | PyObject * obj0 = 0 ; | |
18543 | PyObject * obj1 = 0 ; | |
18544 | char *kwnames[] = { | |
18545 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
18546 | }; | |
18547 | ||
18548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
18549 | if (obj0) { | |
18550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18551 | } | |
18552 | if (obj1) { | |
18553 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
18554 | if (PyErr_Occurred()) SWIG_fail; | |
18555 | } | |
18556 | { | |
18557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18558 | result = (bool)wxSafeYield(arg1,arg2); | |
18559 | ||
18560 | wxPyEndAllowThreads(__tstate); | |
18561 | if (PyErr_Occurred()) SWIG_fail; | |
18562 | } | |
18563 | resultobj = PyInt_FromLong((long)result); | |
18564 | return resultobj; | |
18565 | fail: | |
18566 | return NULL; | |
18567 | } | |
18568 | ||
18569 | ||
18570 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18571 | PyObject *resultobj; | |
18572 | char *kwnames[] = { | |
18573 | NULL | |
18574 | }; | |
18575 | ||
18576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
18577 | { | |
18578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18579 | wxWakeUpIdle(); | |
18580 | ||
18581 | wxPyEndAllowThreads(__tstate); | |
18582 | if (PyErr_Occurred()) SWIG_fail; | |
18583 | } | |
18584 | Py_INCREF(Py_None); resultobj = Py_None; | |
18585 | return resultobj; | |
18586 | fail: | |
18587 | return NULL; | |
18588 | } | |
18589 | ||
18590 | ||
18591 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18592 | PyObject *resultobj; | |
18593 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
18594 | wxEvent *arg2 = 0 ; | |
18595 | PyObject * obj0 = 0 ; | |
18596 | PyObject * obj1 = 0 ; | |
18597 | char *kwnames[] = { | |
18598 | (char *) "dest",(char *) "event", NULL | |
18599 | }; | |
18600 | ||
18601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
18602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18603 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18604 | if (arg2 == NULL) { | |
18605 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18606 | } | |
18607 | { | |
18608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18609 | wxPostEvent(arg1,*arg2); | |
18610 | ||
18611 | wxPyEndAllowThreads(__tstate); | |
18612 | if (PyErr_Occurred()) SWIG_fail; | |
18613 | } | |
18614 | Py_INCREF(Py_None); resultobj = Py_None; | |
18615 | return resultobj; | |
18616 | fail: | |
18617 | return NULL; | |
18618 | } | |
18619 | ||
18620 | ||
18621 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18622 | PyObject *resultobj; | |
18623 | char *kwnames[] = { | |
18624 | NULL | |
18625 | }; | |
18626 | ||
18627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
18628 | { | |
18629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18630 | wxApp_CleanUp(); | |
18631 | ||
18632 | wxPyEndAllowThreads(__tstate); | |
18633 | if (PyErr_Occurred()) SWIG_fail; | |
18634 | } | |
18635 | Py_INCREF(Py_None); resultobj = Py_None; | |
18636 | return resultobj; | |
18637 | fail: | |
18638 | return NULL; | |
18639 | } | |
18640 | ||
18641 | ||
18642 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18643 | PyObject *resultobj; | |
18644 | wxPyApp *result; | |
18645 | char *kwnames[] = { | |
18646 | NULL | |
18647 | }; | |
18648 | ||
18649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
18650 | { | |
18651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18652 | result = (wxPyApp *)wxGetApp(); | |
18653 | ||
18654 | wxPyEndAllowThreads(__tstate); | |
18655 | if (PyErr_Occurred()) SWIG_fail; | |
18656 | } | |
18657 | { | |
18658 | resultobj = wxPyMake_wxObject(result); | |
18659 | } | |
18660 | return resultobj; | |
18661 | fail: | |
18662 | return NULL; | |
18663 | } | |
18664 | ||
18665 | ||
41f1cec7 RD |
18666 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { |
18667 | PyObject *resultobj; | |
18668 | int arg1 = (int) 0 ; | |
18669 | int arg2 = (int) 0 ; | |
18670 | int arg3 = (int) 0 ; | |
18671 | wxMenuItem *arg4 = (wxMenuItem *) NULL ; | |
18672 | wxAcceleratorEntry *result; | |
18673 | PyObject * obj3 = 0 ; | |
18674 | char *kwnames[] = { | |
18675 | (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
18676 | }; | |
18677 | ||
18678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiiO:new_AcceleratorEntry",kwnames,&arg1,&arg2,&arg3,&obj3)) goto fail; | |
18679 | if (obj3) { | |
18680 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18681 | } | |
18682 | { | |
18683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18684 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); | |
18685 | ||
18686 | wxPyEndAllowThreads(__tstate); | |
18687 | if (PyErr_Occurred()) SWIG_fail; | |
18688 | } | |
18689 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 1); | |
18690 | return resultobj; | |
18691 | fail: | |
18692 | return NULL; | |
18693 | } | |
18694 | ||
18695 | ||
18696 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18697 | PyObject *resultobj; | |
18698 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18699 | PyObject * obj0 = 0 ; | |
18700 | char *kwnames[] = { | |
18701 | (char *) "self", NULL | |
18702 | }; | |
18703 | ||
18704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
18705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18706 | { | |
18707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18708 | delete arg1; | |
18709 | ||
18710 | wxPyEndAllowThreads(__tstate); | |
18711 | if (PyErr_Occurred()) SWIG_fail; | |
18712 | } | |
18713 | Py_INCREF(Py_None); resultobj = Py_None; | |
18714 | return resultobj; | |
18715 | fail: | |
18716 | return NULL; | |
18717 | } | |
18718 | ||
18719 | ||
18720 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18721 | PyObject *resultobj; | |
18722 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18723 | int arg2 ; | |
18724 | int arg3 ; | |
18725 | int arg4 ; | |
18726 | wxMenuItem *arg5 = (wxMenuItem *) NULL ; | |
18727 | PyObject * obj0 = 0 ; | |
18728 | PyObject * obj4 = 0 ; | |
18729 | char *kwnames[] = { | |
18730 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
18731 | }; | |
18732 | ||
18733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii|O:AcceleratorEntry_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
18734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18735 | if (obj4) { | |
18736 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18737 | } | |
18738 | { | |
18739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18740 | (arg1)->Set(arg2,arg3,arg4,arg5); | |
18741 | ||
18742 | wxPyEndAllowThreads(__tstate); | |
18743 | if (PyErr_Occurred()) SWIG_fail; | |
18744 | } | |
18745 | Py_INCREF(Py_None); resultobj = Py_None; | |
18746 | return resultobj; | |
18747 | fail: | |
18748 | return NULL; | |
18749 | } | |
18750 | ||
18751 | ||
18752 | static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18753 | PyObject *resultobj; | |
18754 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18755 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
18756 | PyObject * obj0 = 0 ; | |
18757 | PyObject * obj1 = 0 ; | |
18758 | char *kwnames[] = { | |
18759 | (char *) "self",(char *) "item", NULL | |
18760 | }; | |
18761 | ||
18762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; | |
18763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18764 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18765 | { | |
18766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18767 | (arg1)->SetMenuItem(arg2); | |
18768 | ||
18769 | wxPyEndAllowThreads(__tstate); | |
18770 | if (PyErr_Occurred()) SWIG_fail; | |
18771 | } | |
18772 | Py_INCREF(Py_None); resultobj = Py_None; | |
18773 | return resultobj; | |
18774 | fail: | |
18775 | return NULL; | |
18776 | } | |
18777 | ||
18778 | ||
18779 | static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18780 | PyObject *resultobj; | |
18781 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18782 | wxMenuItem *result; | |
18783 | PyObject * obj0 = 0 ; | |
18784 | char *kwnames[] = { | |
18785 | (char *) "self", NULL | |
18786 | }; | |
18787 | ||
18788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; | |
18789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18790 | { | |
18791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18792 | result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); | |
18793 | ||
18794 | wxPyEndAllowThreads(__tstate); | |
18795 | if (PyErr_Occurred()) SWIG_fail; | |
18796 | } | |
18797 | { | |
18798 | resultobj = wxPyMake_wxObject(result); | |
18799 | } | |
18800 | return resultobj; | |
18801 | fail: | |
18802 | return NULL; | |
18803 | } | |
18804 | ||
18805 | ||
18806 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18807 | PyObject *resultobj; | |
18808 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18809 | int result; | |
18810 | PyObject * obj0 = 0 ; | |
18811 | char *kwnames[] = { | |
18812 | (char *) "self", NULL | |
18813 | }; | |
18814 | ||
18815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
18816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18817 | { | |
18818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18819 | result = (int)(arg1)->GetFlags(); | |
18820 | ||
18821 | wxPyEndAllowThreads(__tstate); | |
18822 | if (PyErr_Occurred()) SWIG_fail; | |
18823 | } | |
18824 | resultobj = PyInt_FromLong((long)result); | |
18825 | return resultobj; | |
18826 | fail: | |
18827 | return NULL; | |
18828 | } | |
18829 | ||
18830 | ||
18831 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18832 | PyObject *resultobj; | |
18833 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18834 | int result; | |
18835 | PyObject * obj0 = 0 ; | |
18836 | char *kwnames[] = { | |
18837 | (char *) "self", NULL | |
18838 | }; | |
18839 | ||
18840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
18841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18842 | { | |
18843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18844 | result = (int)(arg1)->GetKeyCode(); | |
18845 | ||
18846 | wxPyEndAllowThreads(__tstate); | |
18847 | if (PyErr_Occurred()) SWIG_fail; | |
18848 | } | |
18849 | resultobj = PyInt_FromLong((long)result); | |
18850 | return resultobj; | |
18851 | fail: | |
18852 | return NULL; | |
18853 | } | |
18854 | ||
18855 | ||
18856 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18857 | PyObject *resultobj; | |
18858 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18859 | int result; | |
18860 | PyObject * obj0 = 0 ; | |
18861 | char *kwnames[] = { | |
18862 | (char *) "self", NULL | |
18863 | }; | |
18864 | ||
18865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
18866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18867 | { | |
18868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18869 | result = (int)(arg1)->GetCommand(); | |
18870 | ||
18871 | wxPyEndAllowThreads(__tstate); | |
18872 | if (PyErr_Occurred()) SWIG_fail; | |
18873 | } | |
18874 | resultobj = PyInt_FromLong((long)result); | |
18875 | return resultobj; | |
18876 | fail: | |
18877 | return NULL; | |
18878 | } | |
18879 | ||
18880 | ||
18881 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
18882 | PyObject *obj; | |
18883 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18884 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
18885 | Py_INCREF(obj); | |
18886 | return Py_BuildValue((char *)""); | |
18887 | } | |
18888 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18889 | PyObject *resultobj; | |
18890 | int arg1 ; | |
18891 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
18892 | wxAcceleratorTable *result; | |
18893 | PyObject * obj0 = 0 ; | |
18894 | char *kwnames[] = { | |
18895 | (char *) "n", NULL | |
18896 | }; | |
18897 | ||
18898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
18899 | { | |
18900 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
18901 | if (arg2) arg1 = PyList_Size(obj0); | |
18902 | else arg1 = 0; | |
18903 | } | |
18904 | { | |
18905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18906 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
18907 | ||
18908 | wxPyEndAllowThreads(__tstate); | |
18909 | if (PyErr_Occurred()) SWIG_fail; | |
18910 | } | |
18911 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 1); | |
18912 | { | |
18913 | delete [] arg2; | |
18914 | } | |
18915 | return resultobj; | |
18916 | fail: | |
18917 | { | |
18918 | delete [] arg2; | |
18919 | } | |
18920 | return NULL; | |
18921 | } | |
18922 | ||
18923 | ||
18924 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18925 | PyObject *resultobj; | |
18926 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
18927 | PyObject * obj0 = 0 ; | |
18928 | char *kwnames[] = { | |
18929 | (char *) "self", NULL | |
18930 | }; | |
18931 | ||
18932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
18933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18934 | { | |
18935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18936 | delete arg1; | |
18937 | ||
18938 | wxPyEndAllowThreads(__tstate); | |
18939 | if (PyErr_Occurred()) SWIG_fail; | |
18940 | } | |
18941 | Py_INCREF(Py_None); resultobj = Py_None; | |
18942 | return resultobj; | |
18943 | fail: | |
18944 | return NULL; | |
18945 | } | |
18946 | ||
18947 | ||
18948 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18949 | PyObject *resultobj; | |
18950 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
18951 | bool result; | |
18952 | PyObject * obj0 = 0 ; | |
18953 | char *kwnames[] = { | |
18954 | (char *) "self", NULL | |
18955 | }; | |
18956 | ||
18957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
18958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18959 | { | |
18960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18961 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
18962 | ||
18963 | wxPyEndAllowThreads(__tstate); | |
18964 | if (PyErr_Occurred()) SWIG_fail; | |
18965 | } | |
18966 | resultobj = PyInt_FromLong((long)result); | |
18967 | return resultobj; | |
18968 | fail: | |
18969 | return NULL; | |
18970 | } | |
18971 | ||
18972 | ||
18973 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
18974 | PyObject *obj; | |
18975 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18976 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
18977 | Py_INCREF(obj); | |
18978 | return Py_BuildValue((char *)""); | |
18979 | } | |
18980 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { | |
18981 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); | |
18982 | return 1; | |
18983 | } | |
18984 | ||
18985 | ||
18986 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
18987 | PyObject *pyobj; | |
18988 | ||
18989 | pyobj = SWIG_NewPointerObj((void *) &wxNullAcceleratorTable, SWIGTYPE_p_wxAcceleratorTable, 0); | |
18990 | return pyobj; | |
18991 | } | |
18992 | ||
18993 | ||
18994 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18995 | PyObject *resultobj; | |
18996 | wxString *arg1 = 0 ; | |
18997 | wxAcceleratorEntry *result; | |
18998 | bool temp1 = False ; | |
18999 | PyObject * obj0 = 0 ; | |
19000 | char *kwnames[] = { | |
19001 | (char *) "label", NULL | |
19002 | }; | |
19003 | ||
19004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
19005 | { | |
19006 | arg1 = wxString_in_helper(obj0); | |
19007 | if (arg1 == NULL) SWIG_fail; | |
19008 | temp1 = True; | |
19009 | } | |
19010 | { | |
19011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19012 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
19013 | ||
19014 | wxPyEndAllowThreads(__tstate); | |
19015 | if (PyErr_Occurred()) SWIG_fail; | |
19016 | } | |
19017 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0); | |
19018 | { | |
19019 | if (temp1) | |
19020 | delete arg1; | |
19021 | } | |
19022 | return resultobj; | |
19023 | fail: | |
19024 | { | |
19025 | if (temp1) | |
19026 | delete arg1; | |
19027 | } | |
19028 | return NULL; | |
19029 | } | |
19030 | ||
19031 | ||
423f194a RD |
19032 | static int _wrap_PanelNameStr_set(PyObject *_val) { |
19033 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); | |
19034 | return 1; | |
19035 | } | |
19036 | ||
19037 | ||
19038 | static PyObject *_wrap_PanelNameStr_get() { | |
19039 | PyObject *pyobj; | |
19040 | ||
19041 | { | |
19042 | #if wxUSE_UNICODE | |
19043 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
19044 | #else | |
19045 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
19046 | #endif | |
19047 | } | |
19048 | return pyobj; | |
19049 | } | |
19050 | ||
19051 | ||
d14a1e28 RD |
19052 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { |
19053 | PyObject *resultobj; | |
19054 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19055 | int arg2 ; |
d14a1e28 RD |
19056 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19057 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19058 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19059 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19060 | long arg5 = (long) 0 ; | |
19061 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
19062 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
19063 | wxWindow *result; | |
19064 | wxPoint temp3 ; | |
19065 | wxSize temp4 ; | |
423f194a | 19066 | bool temp6 = False ; |
d14a1e28 RD |
19067 | PyObject * obj0 = 0 ; |
19068 | PyObject * obj2 = 0 ; | |
19069 | PyObject * obj3 = 0 ; | |
19070 | PyObject * obj5 = 0 ; | |
19071 | char *kwnames[] = { | |
19072 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19073 | }; | |
19074 | ||
19075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Window",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
19076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19077 | if (obj2) { | |
19078 | { | |
19079 | arg3 = &temp3; | |
19080 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19081 | } | |
19082 | } | |
19083 | if (obj3) { | |
19084 | { | |
19085 | arg4 = &temp4; | |
19086 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19087 | } | |
19088 | } | |
19089 | if (obj5) { | |
19090 | { | |
19091 | arg6 = wxString_in_helper(obj5); | |
19092 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 19093 | temp6 = True; |
d14a1e28 RD |
19094 | } |
19095 | } | |
19096 | { | |
19097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19098 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
19099 | ||
19100 | wxPyEndAllowThreads(__tstate); | |
19101 | if (PyErr_Occurred()) SWIG_fail; | |
19102 | } | |
19103 | { | |
19104 | resultobj = wxPyMake_wxObject(result); | |
19105 | } | |
19106 | { | |
19107 | if (temp6) | |
19108 | delete arg6; | |
19109 | } | |
19110 | return resultobj; | |
19111 | fail: | |
19112 | { | |
19113 | if (temp6) | |
19114 | delete arg6; | |
19115 | } | |
19116 | return NULL; | |
19117 | } | |
19118 | ||
19119 | ||
19120 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19121 | PyObject *resultobj; | |
19122 | wxWindow *result; | |
19123 | char *kwnames[] = { | |
19124 | NULL | |
19125 | }; | |
19126 | ||
19127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
19128 | { | |
19129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19130 | result = (wxWindow *)new wxWindow(); | |
19131 | ||
19132 | wxPyEndAllowThreads(__tstate); | |
19133 | if (PyErr_Occurred()) SWIG_fail; | |
19134 | } | |
19135 | { | |
19136 | resultobj = wxPyMake_wxObject(result); | |
19137 | } | |
19138 | return resultobj; | |
19139 | fail: | |
19140 | return NULL; | |
19141 | } | |
19142 | ||
19143 | ||
19144 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19145 | PyObject *resultobj; | |
19146 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19147 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 19148 | int arg3 ; |
d14a1e28 RD |
19149 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19150 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19151 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19152 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19153 | long arg6 = (long) 0 ; | |
19154 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
19155 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19156 | bool result; | |
19157 | wxPoint temp4 ; | |
19158 | wxSize temp5 ; | |
423f194a | 19159 | bool temp7 = False ; |
d14a1e28 RD |
19160 | PyObject * obj0 = 0 ; |
19161 | PyObject * obj1 = 0 ; | |
19162 | PyObject * obj3 = 0 ; | |
19163 | PyObject * obj4 = 0 ; | |
19164 | PyObject * obj6 = 0 ; | |
19165 | char *kwnames[] = { | |
19166 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19167 | }; | |
19168 | ||
19169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Window_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
19170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19171 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19172 | if (obj3) { | |
19173 | { | |
19174 | arg4 = &temp4; | |
19175 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19176 | } | |
19177 | } | |
19178 | if (obj4) { | |
19179 | { | |
19180 | arg5 = &temp5; | |
19181 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19182 | } | |
19183 | } | |
19184 | if (obj6) { | |
19185 | { | |
19186 | arg7 = wxString_in_helper(obj6); | |
19187 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 19188 | temp7 = True; |
d14a1e28 RD |
19189 | } |
19190 | } | |
19191 | { | |
19192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19193 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
19194 | ||
19195 | wxPyEndAllowThreads(__tstate); | |
19196 | if (PyErr_Occurred()) SWIG_fail; | |
19197 | } | |
19198 | resultobj = PyInt_FromLong((long)result); | |
19199 | { | |
19200 | if (temp7) | |
19201 | delete arg7; | |
19202 | } | |
19203 | return resultobj; | |
19204 | fail: | |
19205 | { | |
19206 | if (temp7) | |
19207 | delete arg7; | |
19208 | } | |
19209 | return NULL; | |
19210 | } | |
19211 | ||
19212 | ||
19213 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19214 | PyObject *resultobj; | |
19215 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19216 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19217 | bool result; |
19218 | PyObject * obj0 = 0 ; | |
19219 | PyObject * obj1 = 0 ; | |
19220 | char *kwnames[] = { | |
19221 | (char *) "self",(char *) "force", NULL | |
19222 | }; | |
19223 | ||
19224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
19225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19226 | if (obj1) { | |
19227 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
19228 | if (PyErr_Occurred()) SWIG_fail; | |
19229 | } | |
19230 | { | |
19231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19232 | result = (bool)(arg1)->Close(arg2); | |
19233 | ||
19234 | wxPyEndAllowThreads(__tstate); | |
19235 | if (PyErr_Occurred()) SWIG_fail; | |
19236 | } | |
19237 | resultobj = PyInt_FromLong((long)result); | |
19238 | return resultobj; | |
19239 | fail: | |
19240 | return NULL; | |
19241 | } | |
19242 | ||
19243 | ||
19244 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19245 | PyObject *resultobj; | |
19246 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19247 | bool result; | |
19248 | PyObject * obj0 = 0 ; | |
19249 | char *kwnames[] = { | |
19250 | (char *) "self", NULL | |
19251 | }; | |
19252 | ||
19253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
19254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19255 | { | |
19256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19257 | result = (bool)(arg1)->Destroy(); | |
19258 | ||
19259 | wxPyEndAllowThreads(__tstate); | |
19260 | if (PyErr_Occurred()) SWIG_fail; | |
19261 | } | |
19262 | resultobj = PyInt_FromLong((long)result); | |
19263 | return resultobj; | |
19264 | fail: | |
19265 | return NULL; | |
19266 | } | |
19267 | ||
19268 | ||
19269 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19270 | PyObject *resultobj; | |
19271 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19272 | bool result; | |
19273 | PyObject * obj0 = 0 ; | |
19274 | char *kwnames[] = { | |
19275 | (char *) "self", NULL | |
19276 | }; | |
19277 | ||
19278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
19279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19280 | { | |
19281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19282 | result = (bool)(arg1)->DestroyChildren(); | |
19283 | ||
19284 | wxPyEndAllowThreads(__tstate); | |
19285 | if (PyErr_Occurred()) SWIG_fail; | |
19286 | } | |
19287 | resultobj = PyInt_FromLong((long)result); | |
19288 | return resultobj; | |
19289 | fail: | |
19290 | return NULL; | |
19291 | } | |
19292 | ||
19293 | ||
19294 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19295 | PyObject *resultobj; | |
19296 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19297 | bool result; | |
19298 | PyObject * obj0 = 0 ; | |
19299 | char *kwnames[] = { | |
19300 | (char *) "self", NULL | |
19301 | }; | |
19302 | ||
19303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
19304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19305 | { | |
19306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19307 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
19308 | ||
19309 | wxPyEndAllowThreads(__tstate); | |
19310 | if (PyErr_Occurred()) SWIG_fail; | |
19311 | } | |
19312 | resultobj = PyInt_FromLong((long)result); | |
19313 | return resultobj; | |
19314 | fail: | |
19315 | return NULL; | |
19316 | } | |
19317 | ||
19318 | ||
19319 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19320 | PyObject *resultobj; | |
19321 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19322 | wxString *arg2 = 0 ; | |
423f194a | 19323 | bool temp2 = False ; |
d14a1e28 RD |
19324 | PyObject * obj0 = 0 ; |
19325 | PyObject * obj1 = 0 ; | |
19326 | char *kwnames[] = { | |
19327 | (char *) "self",(char *) "title", NULL | |
19328 | }; | |
19329 | ||
19330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
19331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19332 | { | |
19333 | arg2 = wxString_in_helper(obj1); | |
19334 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19335 | temp2 = True; |
d14a1e28 RD |
19336 | } |
19337 | { | |
19338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19339 | (arg1)->SetTitle((wxString const &)*arg2); | |
19340 | ||
19341 | wxPyEndAllowThreads(__tstate); | |
19342 | if (PyErr_Occurred()) SWIG_fail; | |
19343 | } | |
19344 | Py_INCREF(Py_None); resultobj = Py_None; | |
19345 | { | |
19346 | if (temp2) | |
19347 | delete arg2; | |
19348 | } | |
19349 | return resultobj; | |
19350 | fail: | |
19351 | { | |
19352 | if (temp2) | |
19353 | delete arg2; | |
19354 | } | |
19355 | return NULL; | |
19356 | } | |
19357 | ||
19358 | ||
19359 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19360 | PyObject *resultobj; | |
19361 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19362 | wxString result; | |
19363 | PyObject * obj0 = 0 ; | |
19364 | char *kwnames[] = { | |
19365 | (char *) "self", NULL | |
19366 | }; | |
19367 | ||
19368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
19369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19370 | { | |
19371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19372 | result = ((wxWindow const *)arg1)->GetTitle(); | |
19373 | ||
19374 | wxPyEndAllowThreads(__tstate); | |
19375 | if (PyErr_Occurred()) SWIG_fail; | |
19376 | } | |
19377 | { | |
19378 | #if wxUSE_UNICODE | |
19379 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19380 | #else | |
19381 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19382 | #endif | |
19383 | } | |
19384 | return resultobj; | |
19385 | fail: | |
19386 | return NULL; | |
19387 | } | |
19388 | ||
19389 | ||
19390 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19391 | PyObject *resultobj; | |
19392 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19393 | wxString *arg2 = 0 ; | |
423f194a | 19394 | bool temp2 = False ; |
d14a1e28 RD |
19395 | PyObject * obj0 = 0 ; |
19396 | PyObject * obj1 = 0 ; | |
19397 | char *kwnames[] = { | |
19398 | (char *) "self",(char *) "label", NULL | |
19399 | }; | |
19400 | ||
19401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
19402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19403 | { | |
19404 | arg2 = wxString_in_helper(obj1); | |
19405 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19406 | temp2 = True; |
d14a1e28 RD |
19407 | } |
19408 | { | |
19409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19410 | (arg1)->SetLabel((wxString const &)*arg2); | |
19411 | ||
19412 | wxPyEndAllowThreads(__tstate); | |
19413 | if (PyErr_Occurred()) SWIG_fail; | |
19414 | } | |
19415 | Py_INCREF(Py_None); resultobj = Py_None; | |
19416 | { | |
19417 | if (temp2) | |
19418 | delete arg2; | |
19419 | } | |
19420 | return resultobj; | |
19421 | fail: | |
19422 | { | |
19423 | if (temp2) | |
19424 | delete arg2; | |
19425 | } | |
19426 | return NULL; | |
19427 | } | |
19428 | ||
19429 | ||
19430 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19431 | PyObject *resultobj; | |
19432 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19433 | wxString result; | |
19434 | PyObject * obj0 = 0 ; | |
19435 | char *kwnames[] = { | |
19436 | (char *) "self", NULL | |
19437 | }; | |
19438 | ||
19439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
19440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19441 | { | |
19442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19443 | result = ((wxWindow const *)arg1)->GetLabel(); | |
19444 | ||
19445 | wxPyEndAllowThreads(__tstate); | |
19446 | if (PyErr_Occurred()) SWIG_fail; | |
19447 | } | |
19448 | { | |
19449 | #if wxUSE_UNICODE | |
19450 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19451 | #else | |
19452 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19453 | #endif | |
19454 | } | |
19455 | return resultobj; | |
19456 | fail: | |
19457 | return NULL; | |
19458 | } | |
19459 | ||
19460 | ||
19461 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19462 | PyObject *resultobj; | |
19463 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19464 | wxString *arg2 = 0 ; | |
423f194a | 19465 | bool temp2 = False ; |
d14a1e28 RD |
19466 | PyObject * obj0 = 0 ; |
19467 | PyObject * obj1 = 0 ; | |
19468 | char *kwnames[] = { | |
19469 | (char *) "self",(char *) "name", NULL | |
19470 | }; | |
19471 | ||
19472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
19473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19474 | { | |
19475 | arg2 = wxString_in_helper(obj1); | |
19476 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19477 | temp2 = True; |
d14a1e28 RD |
19478 | } |
19479 | { | |
19480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19481 | (arg1)->SetName((wxString const &)*arg2); | |
19482 | ||
19483 | wxPyEndAllowThreads(__tstate); | |
19484 | if (PyErr_Occurred()) SWIG_fail; | |
19485 | } | |
19486 | Py_INCREF(Py_None); resultobj = Py_None; | |
19487 | { | |
19488 | if (temp2) | |
19489 | delete arg2; | |
19490 | } | |
19491 | return resultobj; | |
19492 | fail: | |
19493 | { | |
19494 | if (temp2) | |
19495 | delete arg2; | |
19496 | } | |
19497 | return NULL; | |
19498 | } | |
19499 | ||
19500 | ||
19501 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19502 | PyObject *resultobj; | |
19503 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19504 | wxString result; | |
19505 | PyObject * obj0 = 0 ; | |
19506 | char *kwnames[] = { | |
19507 | (char *) "self", NULL | |
19508 | }; | |
19509 | ||
19510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
19511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19512 | { | |
19513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19514 | result = ((wxWindow const *)arg1)->GetName(); | |
19515 | ||
19516 | wxPyEndAllowThreads(__tstate); | |
19517 | if (PyErr_Occurred()) SWIG_fail; | |
19518 | } | |
19519 | { | |
19520 | #if wxUSE_UNICODE | |
19521 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19522 | #else | |
19523 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19524 | #endif | |
19525 | } | |
19526 | return resultobj; | |
19527 | fail: | |
19528 | return NULL; | |
19529 | } | |
19530 | ||
19531 | ||
19532 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19533 | PyObject *resultobj; | |
19534 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19535 | int arg2 ; |
d14a1e28 RD |
19536 | PyObject * obj0 = 0 ; |
19537 | char *kwnames[] = { | |
19538 | (char *) "self",(char *) "winid", NULL | |
19539 | }; | |
19540 | ||
19541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_SetId",kwnames,&obj0,&arg2)) goto fail; | |
19542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19543 | { | |
19544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19545 | (arg1)->SetId(arg2); | |
19546 | ||
19547 | wxPyEndAllowThreads(__tstate); | |
19548 | if (PyErr_Occurred()) SWIG_fail; | |
19549 | } | |
19550 | Py_INCREF(Py_None); resultobj = Py_None; | |
19551 | return resultobj; | |
19552 | fail: | |
19553 | return NULL; | |
19554 | } | |
19555 | ||
19556 | ||
19557 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19558 | PyObject *resultobj; | |
19559 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19560 | int result; |
d14a1e28 RD |
19561 | PyObject * obj0 = 0 ; |
19562 | char *kwnames[] = { | |
19563 | (char *) "self", NULL | |
19564 | }; | |
19565 | ||
19566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
19567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19568 | { | |
19569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 19570 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
19571 | |
19572 | wxPyEndAllowThreads(__tstate); | |
19573 | if (PyErr_Occurred()) SWIG_fail; | |
19574 | } | |
19575 | resultobj = PyInt_FromLong((long)result); | |
19576 | return resultobj; | |
19577 | fail: | |
19578 | return NULL; | |
19579 | } | |
19580 | ||
19581 | ||
19582 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19583 | PyObject *resultobj; | |
19584 | int result; | |
19585 | char *kwnames[] = { | |
19586 | NULL | |
19587 | }; | |
19588 | ||
19589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
19590 | { | |
19591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19592 | result = (int)wxWindow::NewControlId(); | |
19593 | ||
19594 | wxPyEndAllowThreads(__tstate); | |
19595 | if (PyErr_Occurred()) SWIG_fail; | |
19596 | } | |
19597 | resultobj = PyInt_FromLong((long)result); | |
19598 | return resultobj; | |
19599 | fail: | |
19600 | return NULL; | |
19601 | } | |
19602 | ||
19603 | ||
19604 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19605 | PyObject *resultobj; | |
19606 | int arg1 ; | |
19607 | int result; | |
19608 | char *kwnames[] = { | |
19609 | (char *) "winid", NULL | |
19610 | }; | |
19611 | ||
19612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Window_NextControlId",kwnames,&arg1)) goto fail; | |
19613 | { | |
19614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19615 | result = (int)wxWindow::NextControlId(arg1); | |
19616 | ||
19617 | wxPyEndAllowThreads(__tstate); | |
19618 | if (PyErr_Occurred()) SWIG_fail; | |
19619 | } | |
19620 | resultobj = PyInt_FromLong((long)result); | |
19621 | return resultobj; | |
19622 | fail: | |
19623 | return NULL; | |
19624 | } | |
19625 | ||
19626 | ||
19627 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19628 | PyObject *resultobj; | |
19629 | int arg1 ; | |
19630 | int result; | |
19631 | char *kwnames[] = { | |
19632 | (char *) "winid", NULL | |
19633 | }; | |
19634 | ||
19635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Window_PrevControlId",kwnames,&arg1)) goto fail; | |
19636 | { | |
19637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19638 | result = (int)wxWindow::PrevControlId(arg1); | |
19639 | ||
19640 | wxPyEndAllowThreads(__tstate); | |
19641 | if (PyErr_Occurred()) SWIG_fail; | |
19642 | } | |
19643 | resultobj = PyInt_FromLong((long)result); | |
19644 | return resultobj; | |
19645 | fail: | |
19646 | return NULL; | |
19647 | } | |
19648 | ||
19649 | ||
19650 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19651 | PyObject *resultobj; | |
19652 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19653 | wxSize *arg2 = 0 ; | |
19654 | wxSize temp2 ; | |
19655 | PyObject * obj0 = 0 ; | |
19656 | PyObject * obj1 = 0 ; | |
19657 | char *kwnames[] = { | |
19658 | (char *) "self",(char *) "size", NULL | |
19659 | }; | |
19660 | ||
19661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
19662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19663 | { | |
19664 | arg2 = &temp2; | |
19665 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19666 | } | |
19667 | { | |
19668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19669 | (arg1)->SetSize((wxSize const &)*arg2); | |
19670 | ||
19671 | wxPyEndAllowThreads(__tstate); | |
19672 | if (PyErr_Occurred()) SWIG_fail; | |
19673 | } | |
19674 | Py_INCREF(Py_None); resultobj = Py_None; | |
19675 | return resultobj; | |
19676 | fail: | |
19677 | return NULL; | |
19678 | } | |
19679 | ||
19680 | ||
19681 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19682 | PyObject *resultobj; | |
19683 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19684 | int arg2 ; | |
19685 | int arg3 ; | |
19686 | int arg4 ; | |
19687 | int arg5 ; | |
19688 | int arg6 = (int) wxSIZE_AUTO ; | |
19689 | PyObject * obj0 = 0 ; | |
19690 | char *kwnames[] = { | |
19691 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
19692 | }; | |
19693 | ||
19694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|i:Window_SetDimensions",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
19695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19696 | { | |
19697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19698 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
19699 | ||
19700 | wxPyEndAllowThreads(__tstate); | |
19701 | if (PyErr_Occurred()) SWIG_fail; | |
19702 | } | |
19703 | Py_INCREF(Py_None); resultobj = Py_None; | |
19704 | return resultobj; | |
19705 | fail: | |
19706 | return NULL; | |
19707 | } | |
19708 | ||
19709 | ||
19710 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19711 | PyObject *resultobj; | |
19712 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19713 | wxRect *arg2 = 0 ; | |
19714 | int arg3 = (int) wxSIZE_AUTO ; | |
19715 | wxRect temp2 ; | |
19716 | PyObject * obj0 = 0 ; | |
19717 | PyObject * obj1 = 0 ; | |
19718 | char *kwnames[] = { | |
19719 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
19720 | }; | |
19721 | ||
19722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Window_SetRect",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
19723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19724 | { | |
19725 | arg2 = &temp2; | |
19726 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19727 | } | |
19728 | { | |
19729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19730 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
19731 | ||
19732 | wxPyEndAllowThreads(__tstate); | |
19733 | if (PyErr_Occurred()) SWIG_fail; | |
19734 | } | |
19735 | Py_INCREF(Py_None); resultobj = Py_None; | |
19736 | return resultobj; | |
19737 | fail: | |
19738 | return NULL; | |
19739 | } | |
19740 | ||
19741 | ||
19742 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19743 | PyObject *resultobj; | |
19744 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19745 | int arg2 ; | |
19746 | int arg3 ; | |
19747 | PyObject * obj0 = 0 ; | |
19748 | char *kwnames[] = { | |
19749 | (char *) "self",(char *) "width",(char *) "height", NULL | |
19750 | }; | |
19751 | ||
19752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_SetSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19754 | { | |
19755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19756 | (arg1)->SetSize(arg2,arg3); | |
19757 | ||
19758 | wxPyEndAllowThreads(__tstate); | |
19759 | if (PyErr_Occurred()) SWIG_fail; | |
19760 | } | |
19761 | Py_INCREF(Py_None); resultobj = Py_None; | |
19762 | return resultobj; | |
19763 | fail: | |
19764 | return NULL; | |
19765 | } | |
19766 | ||
19767 | ||
19768 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19769 | PyObject *resultobj; | |
19770 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19771 | wxPoint *arg2 = 0 ; | |
19772 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
19773 | wxPoint temp2 ; | |
19774 | PyObject * obj0 = 0 ; | |
19775 | PyObject * obj1 = 0 ; | |
19776 | char *kwnames[] = { | |
19777 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
19778 | }; | |
19779 | ||
19780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Window_Move",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
19781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19782 | { | |
19783 | arg2 = &temp2; | |
19784 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19785 | } | |
19786 | { | |
19787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19788 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
19789 | ||
19790 | wxPyEndAllowThreads(__tstate); | |
19791 | if (PyErr_Occurred()) SWIG_fail; | |
19792 | } | |
19793 | Py_INCREF(Py_None); resultobj = Py_None; | |
19794 | return resultobj; | |
19795 | fail: | |
19796 | return NULL; | |
19797 | } | |
19798 | ||
19799 | ||
19800 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19801 | PyObject *resultobj; | |
19802 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19803 | int arg2 ; | |
19804 | int arg3 ; | |
19805 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
19806 | PyObject * obj0 = 0 ; | |
19807 | char *kwnames[] = { | |
19808 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
19809 | }; | |
19810 | ||
19811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:Window_MoveXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
19812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19813 | { | |
19814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19815 | (arg1)->Move(arg2,arg3,arg4); | |
19816 | ||
19817 | wxPyEndAllowThreads(__tstate); | |
19818 | if (PyErr_Occurred()) SWIG_fail; | |
19819 | } | |
19820 | Py_INCREF(Py_None); resultobj = Py_None; | |
19821 | return resultobj; | |
19822 | fail: | |
19823 | return NULL; | |
19824 | } | |
19825 | ||
19826 | ||
19827 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19828 | PyObject *resultobj; | |
19829 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19830 | PyObject * obj0 = 0 ; | |
19831 | char *kwnames[] = { | |
19832 | (char *) "self", NULL | |
19833 | }; | |
19834 | ||
19835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
19836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19837 | { | |
19838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19839 | (arg1)->Raise(); | |
19840 | ||
19841 | wxPyEndAllowThreads(__tstate); | |
19842 | if (PyErr_Occurred()) SWIG_fail; | |
19843 | } | |
19844 | Py_INCREF(Py_None); resultobj = Py_None; | |
19845 | return resultobj; | |
19846 | fail: | |
19847 | return NULL; | |
19848 | } | |
19849 | ||
19850 | ||
19851 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19852 | PyObject *resultobj; | |
19853 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19854 | PyObject * obj0 = 0 ; | |
19855 | char *kwnames[] = { | |
19856 | (char *) "self", NULL | |
19857 | }; | |
19858 | ||
19859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
19860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19861 | { | |
19862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19863 | (arg1)->Lower(); | |
19864 | ||
19865 | wxPyEndAllowThreads(__tstate); | |
19866 | if (PyErr_Occurred()) SWIG_fail; | |
19867 | } | |
19868 | Py_INCREF(Py_None); resultobj = Py_None; | |
19869 | return resultobj; | |
19870 | fail: | |
19871 | return NULL; | |
19872 | } | |
19873 | ||
19874 | ||
19875 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19876 | PyObject *resultobj; | |
19877 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19878 | wxSize *arg2 = 0 ; | |
19879 | wxSize temp2 ; | |
19880 | PyObject * obj0 = 0 ; | |
19881 | PyObject * obj1 = 0 ; | |
19882 | char *kwnames[] = { | |
19883 | (char *) "self",(char *) "size", NULL | |
19884 | }; | |
19885 | ||
19886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
19887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19888 | { | |
19889 | arg2 = &temp2; | |
19890 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19891 | } | |
19892 | { | |
19893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19894 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
19895 | ||
19896 | wxPyEndAllowThreads(__tstate); | |
19897 | if (PyErr_Occurred()) SWIG_fail; | |
19898 | } | |
19899 | Py_INCREF(Py_None); resultobj = Py_None; | |
19900 | return resultobj; | |
19901 | fail: | |
19902 | return NULL; | |
19903 | } | |
19904 | ||
19905 | ||
19906 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19907 | PyObject *resultobj; | |
19908 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19909 | int arg2 ; | |
19910 | int arg3 ; | |
19911 | PyObject * obj0 = 0 ; | |
19912 | char *kwnames[] = { | |
19913 | (char *) "self",(char *) "width",(char *) "height", NULL | |
19914 | }; | |
19915 | ||
19916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_SetClientSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19918 | { | |
19919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19920 | (arg1)->SetClientSize(arg2,arg3); | |
19921 | ||
19922 | wxPyEndAllowThreads(__tstate); | |
19923 | if (PyErr_Occurred()) SWIG_fail; | |
19924 | } | |
19925 | Py_INCREF(Py_None); resultobj = Py_None; | |
19926 | return resultobj; | |
19927 | fail: | |
19928 | return NULL; | |
19929 | } | |
19930 | ||
19931 | ||
19932 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19933 | PyObject *resultobj; | |
19934 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19935 | wxRect *arg2 = 0 ; | |
19936 | wxRect temp2 ; | |
19937 | PyObject * obj0 = 0 ; | |
19938 | PyObject * obj1 = 0 ; | |
19939 | char *kwnames[] = { | |
19940 | (char *) "self",(char *) "rect", NULL | |
19941 | }; | |
19942 | ||
19943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
19944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19945 | { | |
19946 | arg2 = &temp2; | |
19947 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19948 | } | |
19949 | { | |
19950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19951 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
19952 | ||
19953 | wxPyEndAllowThreads(__tstate); | |
19954 | if (PyErr_Occurred()) SWIG_fail; | |
19955 | } | |
19956 | Py_INCREF(Py_None); resultobj = Py_None; | |
19957 | return resultobj; | |
19958 | fail: | |
19959 | return NULL; | |
19960 | } | |
19961 | ||
19962 | ||
19963 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19964 | PyObject *resultobj; | |
19965 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19966 | wxPoint result; | |
19967 | PyObject * obj0 = 0 ; | |
19968 | char *kwnames[] = { | |
19969 | (char *) "self", NULL | |
19970 | }; | |
19971 | ||
19972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
19973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19974 | { | |
19975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 19976 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
19977 | |
19978 | wxPyEndAllowThreads(__tstate); | |
19979 | if (PyErr_Occurred()) SWIG_fail; | |
19980 | } | |
19981 | { | |
19982 | wxPoint * resultptr; | |
19983 | resultptr = new wxPoint((wxPoint &) result); | |
19984 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
19985 | } | |
19986 | return resultobj; | |
19987 | fail: | |
19988 | return NULL; | |
19989 | } | |
19990 | ||
19991 | ||
19992 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19993 | PyObject *resultobj; | |
19994 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19995 | int *arg2 = (int *) 0 ; | |
19996 | int *arg3 = (int *) 0 ; | |
19997 | int temp2 ; | |
19998 | int temp3 ; | |
19999 | PyObject * obj0 = 0 ; | |
20000 | char *kwnames[] = { | |
20001 | (char *) "self", NULL | |
20002 | }; | |
20003 | ||
20004 | arg2 = &temp2; | |
20005 | arg3 = &temp3; | |
20006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
20007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20008 | { | |
20009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 20010 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
20011 | |
20012 | wxPyEndAllowThreads(__tstate); | |
20013 | if (PyErr_Occurred()) SWIG_fail; | |
20014 | } | |
20015 | Py_INCREF(Py_None); resultobj = Py_None; | |
20016 | { | |
20017 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20018 | resultobj = t_output_helper(resultobj,o); | |
20019 | } | |
20020 | { | |
20021 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20022 | resultobj = t_output_helper(resultobj,o); | |
20023 | } | |
20024 | return resultobj; | |
20025 | fail: | |
20026 | return NULL; | |
20027 | } | |
20028 | ||
20029 | ||
20030 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20031 | PyObject *resultobj; | |
20032 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20033 | wxSize result; | |
20034 | PyObject * obj0 = 0 ; | |
20035 | char *kwnames[] = { | |
20036 | (char *) "self", NULL | |
20037 | }; | |
20038 | ||
20039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
20040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20041 | { | |
20042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20043 | result = ((wxWindow const *)arg1)->GetSize(); | |
20044 | ||
20045 | wxPyEndAllowThreads(__tstate); | |
20046 | if (PyErr_Occurred()) SWIG_fail; | |
20047 | } | |
20048 | { | |
20049 | wxSize * resultptr; | |
20050 | resultptr = new wxSize((wxSize &) result); | |
20051 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20052 | } | |
20053 | return resultobj; | |
20054 | fail: | |
20055 | return NULL; | |
20056 | } | |
20057 | ||
20058 | ||
20059 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20060 | PyObject *resultobj; | |
20061 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20062 | int *arg2 = (int *) 0 ; | |
20063 | int *arg3 = (int *) 0 ; | |
20064 | int temp2 ; | |
20065 | int temp3 ; | |
20066 | PyObject * obj0 = 0 ; | |
20067 | char *kwnames[] = { | |
20068 | (char *) "self", NULL | |
20069 | }; | |
20070 | ||
20071 | arg2 = &temp2; | |
20072 | arg3 = &temp3; | |
20073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
20074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20075 | { | |
20076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20077 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
20078 | ||
20079 | wxPyEndAllowThreads(__tstate); | |
20080 | if (PyErr_Occurred()) SWIG_fail; | |
20081 | } | |
20082 | Py_INCREF(Py_None); resultobj = Py_None; | |
20083 | { | |
20084 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20085 | resultobj = t_output_helper(resultobj,o); | |
20086 | } | |
20087 | { | |
20088 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20089 | resultobj = t_output_helper(resultobj,o); | |
20090 | } | |
20091 | return resultobj; | |
20092 | fail: | |
20093 | return NULL; | |
20094 | } | |
20095 | ||
20096 | ||
20097 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20098 | PyObject *resultobj; | |
20099 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20100 | wxRect result; | |
20101 | PyObject * obj0 = 0 ; | |
20102 | char *kwnames[] = { | |
20103 | (char *) "self", NULL | |
20104 | }; | |
20105 | ||
20106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
20107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20108 | { | |
20109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20110 | result = ((wxWindow const *)arg1)->GetRect(); | |
20111 | ||
20112 | wxPyEndAllowThreads(__tstate); | |
20113 | if (PyErr_Occurred()) SWIG_fail; | |
20114 | } | |
20115 | { | |
20116 | wxRect * resultptr; | |
20117 | resultptr = new wxRect((wxRect &) result); | |
20118 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20119 | } | |
20120 | return resultobj; | |
20121 | fail: | |
20122 | return NULL; | |
20123 | } | |
20124 | ||
20125 | ||
20126 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20127 | PyObject *resultobj; | |
20128 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20129 | wxSize result; | |
20130 | PyObject * obj0 = 0 ; | |
20131 | char *kwnames[] = { | |
20132 | (char *) "self", NULL | |
20133 | }; | |
20134 | ||
20135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
20136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20137 | { | |
20138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20139 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
20140 | ||
20141 | wxPyEndAllowThreads(__tstate); | |
20142 | if (PyErr_Occurred()) SWIG_fail; | |
20143 | } | |
20144 | { | |
20145 | wxSize * resultptr; | |
20146 | resultptr = new wxSize((wxSize &) result); | |
20147 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20148 | } | |
20149 | return resultobj; | |
20150 | fail: | |
20151 | return NULL; | |
20152 | } | |
20153 | ||
20154 | ||
20155 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20156 | PyObject *resultobj; | |
20157 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20158 | int *arg2 = (int *) 0 ; | |
20159 | int *arg3 = (int *) 0 ; | |
20160 | int temp2 ; | |
20161 | int temp3 ; | |
20162 | PyObject * obj0 = 0 ; | |
20163 | char *kwnames[] = { | |
20164 | (char *) "self", NULL | |
20165 | }; | |
20166 | ||
20167 | arg2 = &temp2; | |
20168 | arg3 = &temp3; | |
20169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
20170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20171 | { | |
20172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20173 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
20174 | ||
20175 | wxPyEndAllowThreads(__tstate); | |
20176 | if (PyErr_Occurred()) SWIG_fail; | |
20177 | } | |
20178 | Py_INCREF(Py_None); resultobj = Py_None; | |
20179 | { | |
20180 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20181 | resultobj = t_output_helper(resultobj,o); | |
20182 | } | |
20183 | { | |
20184 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20185 | resultobj = t_output_helper(resultobj,o); | |
20186 | } | |
20187 | return resultobj; | |
20188 | fail: | |
20189 | return NULL; | |
20190 | } | |
20191 | ||
20192 | ||
20193 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20194 | PyObject *resultobj; | |
20195 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20196 | wxPoint result; | |
20197 | PyObject * obj0 = 0 ; | |
20198 | char *kwnames[] = { | |
20199 | (char *) "self", NULL | |
20200 | }; | |
20201 | ||
20202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
20203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20204 | { | |
20205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20206 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
20207 | ||
20208 | wxPyEndAllowThreads(__tstate); | |
20209 | if (PyErr_Occurred()) SWIG_fail; | |
20210 | } | |
20211 | { | |
20212 | wxPoint * resultptr; | |
20213 | resultptr = new wxPoint((wxPoint &) result); | |
20214 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20215 | } | |
20216 | return resultobj; | |
20217 | fail: | |
20218 | return NULL; | |
20219 | } | |
20220 | ||
20221 | ||
20222 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20223 | PyObject *resultobj; | |
20224 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20225 | wxRect result; | |
20226 | PyObject * obj0 = 0 ; | |
20227 | char *kwnames[] = { | |
20228 | (char *) "self", NULL | |
20229 | }; | |
20230 | ||
20231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
20232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20233 | { | |
20234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20235 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
20236 | ||
20237 | wxPyEndAllowThreads(__tstate); | |
20238 | if (PyErr_Occurred()) SWIG_fail; | |
20239 | } | |
20240 | { | |
20241 | wxRect * resultptr; | |
20242 | resultptr = new wxRect((wxRect &) result); | |
20243 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20244 | } | |
20245 | return resultobj; | |
20246 | fail: | |
20247 | return NULL; | |
20248 | } | |
20249 | ||
20250 | ||
20251 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20252 | PyObject *resultobj; | |
20253 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20254 | wxSize result; | |
20255 | PyObject * obj0 = 0 ; | |
20256 | char *kwnames[] = { | |
20257 | (char *) "self", NULL | |
20258 | }; | |
20259 | ||
20260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
20261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20262 | { | |
20263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20264 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
20265 | ||
20266 | wxPyEndAllowThreads(__tstate); | |
20267 | if (PyErr_Occurred()) SWIG_fail; | |
20268 | } | |
20269 | { | |
20270 | wxSize * resultptr; | |
20271 | resultptr = new wxSize((wxSize &) result); | |
20272 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20273 | } | |
20274 | return resultobj; | |
20275 | fail: | |
20276 | return NULL; | |
20277 | } | |
20278 | ||
20279 | ||
20280 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20281 | PyObject *resultobj; | |
20282 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20283 | int *arg2 = (int *) 0 ; | |
20284 | int *arg3 = (int *) 0 ; | |
20285 | int temp2 ; | |
20286 | int temp3 ; | |
20287 | PyObject * obj0 = 0 ; | |
20288 | char *kwnames[] = { | |
20289 | (char *) "self", NULL | |
20290 | }; | |
20291 | ||
20292 | arg2 = &temp2; | |
20293 | arg3 = &temp3; | |
20294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
20295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20296 | { | |
20297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20298 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
20299 | ||
20300 | wxPyEndAllowThreads(__tstate); | |
20301 | if (PyErr_Occurred()) SWIG_fail; | |
20302 | } | |
20303 | Py_INCREF(Py_None); resultobj = Py_None; | |
20304 | { | |
20305 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20306 | resultobj = t_output_helper(resultobj,o); | |
20307 | } | |
20308 | { | |
20309 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20310 | resultobj = t_output_helper(resultobj,o); | |
20311 | } | |
20312 | return resultobj; | |
20313 | fail: | |
20314 | return NULL; | |
20315 | } | |
20316 | ||
20317 | ||
20318 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20319 | PyObject *resultobj; | |
20320 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20321 | wxSize result; | |
20322 | PyObject * obj0 = 0 ; | |
20323 | char *kwnames[] = { | |
20324 | (char *) "self", NULL | |
20325 | }; | |
20326 | ||
20327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
20328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20329 | { | |
20330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20331 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
20332 | ||
20333 | wxPyEndAllowThreads(__tstate); | |
20334 | if (PyErr_Occurred()) SWIG_fail; | |
20335 | } | |
20336 | { | |
20337 | wxSize * resultptr; | |
20338 | resultptr = new wxSize((wxSize &) result); | |
20339 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20340 | } | |
20341 | return resultobj; | |
20342 | fail: | |
20343 | return NULL; | |
20344 | } | |
20345 | ||
20346 | ||
20347 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20348 | PyObject *resultobj; | |
20349 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20350 | int arg2 = (int) wxBOTH ; | |
20351 | PyObject * obj0 = 0 ; | |
20352 | char *kwnames[] = { | |
20353 | (char *) "self",(char *) "direction", NULL | |
20354 | }; | |
20355 | ||
20356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Window_Center",kwnames,&obj0,&arg2)) goto fail; | |
20357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20358 | { | |
20359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20360 | (arg1)->Center(arg2); | |
20361 | ||
20362 | wxPyEndAllowThreads(__tstate); | |
20363 | if (PyErr_Occurred()) SWIG_fail; | |
20364 | } | |
20365 | Py_INCREF(Py_None); resultobj = Py_None; | |
20366 | return resultobj; | |
20367 | fail: | |
20368 | return NULL; | |
20369 | } | |
20370 | ||
20371 | ||
20372 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20373 | PyObject *resultobj; | |
20374 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20375 | int arg2 = (int) wxBOTH ; | |
20376 | PyObject * obj0 = 0 ; | |
20377 | char *kwnames[] = { | |
20378 | (char *) "self",(char *) "dir", NULL | |
20379 | }; | |
20380 | ||
20381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Window_CenterOnScreen",kwnames,&obj0,&arg2)) goto fail; | |
20382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20383 | { | |
20384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20385 | (arg1)->CenterOnScreen(arg2); | |
20386 | ||
20387 | wxPyEndAllowThreads(__tstate); | |
20388 | if (PyErr_Occurred()) SWIG_fail; | |
20389 | } | |
20390 | Py_INCREF(Py_None); resultobj = Py_None; | |
20391 | return resultobj; | |
20392 | fail: | |
20393 | return NULL; | |
20394 | } | |
20395 | ||
20396 | ||
20397 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20398 | PyObject *resultobj; | |
20399 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20400 | int arg2 = (int) wxBOTH ; | |
20401 | PyObject * obj0 = 0 ; | |
20402 | char *kwnames[] = { | |
20403 | (char *) "self",(char *) "dir", NULL | |
20404 | }; | |
20405 | ||
20406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Window_CenterOnParent",kwnames,&obj0,&arg2)) goto fail; | |
20407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20408 | { | |
20409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20410 | (arg1)->CenterOnParent(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_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20423 | PyObject *resultobj; | |
20424 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20425 | PyObject * obj0 = 0 ; | |
20426 | char *kwnames[] = { | |
20427 | (char *) "self", NULL | |
20428 | }; | |
20429 | ||
20430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
20431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20432 | { | |
20433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20434 | (arg1)->Fit(); | |
20435 | ||
20436 | wxPyEndAllowThreads(__tstate); | |
20437 | if (PyErr_Occurred()) SWIG_fail; | |
20438 | } | |
20439 | Py_INCREF(Py_None); resultobj = Py_None; | |
20440 | return resultobj; | |
20441 | fail: | |
20442 | return NULL; | |
20443 | } | |
20444 | ||
20445 | ||
20446 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20447 | PyObject *resultobj; | |
20448 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20449 | PyObject * obj0 = 0 ; | |
20450 | char *kwnames[] = { | |
20451 | (char *) "self", NULL | |
20452 | }; | |
20453 | ||
20454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
20455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20456 | { | |
20457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20458 | (arg1)->FitInside(); | |
20459 | ||
20460 | wxPyEndAllowThreads(__tstate); | |
20461 | if (PyErr_Occurred()) SWIG_fail; | |
20462 | } | |
20463 | Py_INCREF(Py_None); resultobj = Py_None; | |
20464 | return resultobj; | |
20465 | fail: | |
20466 | return NULL; | |
20467 | } | |
20468 | ||
20469 | ||
20470 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20471 | PyObject *resultobj; | |
20472 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20473 | int arg2 ; | |
20474 | int arg3 ; | |
20475 | int arg4 = (int) -1 ; | |
20476 | int arg5 = (int) -1 ; | |
20477 | int arg6 = (int) -1 ; | |
20478 | int arg7 = (int) -1 ; | |
20479 | PyObject * obj0 = 0 ; | |
20480 | char *kwnames[] = { | |
20481 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
20482 | }; | |
20483 | ||
20484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiii:Window_SetSizeHints",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
20485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20486 | { | |
20487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20488 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
20489 | ||
20490 | wxPyEndAllowThreads(__tstate); | |
20491 | if (PyErr_Occurred()) SWIG_fail; | |
20492 | } | |
20493 | Py_INCREF(Py_None); resultobj = Py_None; | |
20494 | return resultobj; | |
20495 | fail: | |
20496 | return NULL; | |
20497 | } | |
20498 | ||
20499 | ||
20500 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20501 | PyObject *resultobj; | |
20502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20503 | int arg2 ; | |
20504 | int arg3 ; | |
20505 | int arg4 = (int) -1 ; | |
20506 | int arg5 = (int) -1 ; | |
20507 | PyObject * obj0 = 0 ; | |
20508 | char *kwnames[] = { | |
20509 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
20510 | }; | |
20511 | ||
20512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|ii:Window_SetVirtualSizeHints",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
20513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20514 | { | |
20515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20516 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
20517 | ||
20518 | wxPyEndAllowThreads(__tstate); | |
20519 | if (PyErr_Occurred()) SWIG_fail; | |
20520 | } | |
20521 | Py_INCREF(Py_None); resultobj = Py_None; | |
20522 | return resultobj; | |
20523 | fail: | |
20524 | return NULL; | |
20525 | } | |
20526 | ||
20527 | ||
20528 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20529 | PyObject *resultobj; | |
20530 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20531 | int result; | |
20532 | PyObject * obj0 = 0 ; | |
20533 | char *kwnames[] = { | |
20534 | (char *) "self", NULL | |
20535 | }; | |
20536 | ||
20537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
20538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20539 | { | |
20540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20541 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
20542 | ||
20543 | wxPyEndAllowThreads(__tstate); | |
20544 | if (PyErr_Occurred()) SWIG_fail; | |
20545 | } | |
20546 | resultobj = PyInt_FromLong((long)result); | |
20547 | return resultobj; | |
20548 | fail: | |
20549 | return NULL; | |
20550 | } | |
20551 | ||
20552 | ||
20553 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20554 | PyObject *resultobj; | |
20555 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20556 | int result; | |
20557 | PyObject * obj0 = 0 ; | |
20558 | char *kwnames[] = { | |
20559 | (char *) "self", NULL | |
20560 | }; | |
20561 | ||
20562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
20563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20564 | { | |
20565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20566 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
20567 | ||
20568 | wxPyEndAllowThreads(__tstate); | |
20569 | if (PyErr_Occurred()) SWIG_fail; | |
20570 | } | |
20571 | resultobj = PyInt_FromLong((long)result); | |
20572 | return resultobj; | |
20573 | fail: | |
20574 | return NULL; | |
20575 | } | |
20576 | ||
20577 | ||
20578 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20579 | PyObject *resultobj; | |
20580 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20581 | int result; | |
20582 | PyObject * obj0 = 0 ; | |
20583 | char *kwnames[] = { | |
20584 | (char *) "self", NULL | |
20585 | }; | |
20586 | ||
20587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
20588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20589 | { | |
20590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20591 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
20592 | ||
20593 | wxPyEndAllowThreads(__tstate); | |
20594 | if (PyErr_Occurred()) SWIG_fail; | |
20595 | } | |
20596 | resultobj = PyInt_FromLong((long)result); | |
20597 | return resultobj; | |
20598 | fail: | |
20599 | return NULL; | |
20600 | } | |
20601 | ||
20602 | ||
20603 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20604 | PyObject *resultobj; | |
20605 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20606 | int result; | |
20607 | PyObject * obj0 = 0 ; | |
20608 | char *kwnames[] = { | |
20609 | (char *) "self", NULL | |
20610 | }; | |
20611 | ||
20612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
20613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20614 | { | |
20615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20616 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
20617 | ||
20618 | wxPyEndAllowThreads(__tstate); | |
20619 | if (PyErr_Occurred()) SWIG_fail; | |
20620 | } | |
20621 | resultobj = PyInt_FromLong((long)result); | |
20622 | return resultobj; | |
20623 | fail: | |
20624 | return NULL; | |
20625 | } | |
20626 | ||
20627 | ||
20628 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20629 | PyObject *resultobj; | |
20630 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20631 | wxSize result; | |
20632 | PyObject * obj0 = 0 ; | |
20633 | char *kwnames[] = { | |
20634 | (char *) "self", NULL | |
20635 | }; | |
20636 | ||
20637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
20638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20639 | { | |
20640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20641 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
20642 | ||
20643 | wxPyEndAllowThreads(__tstate); | |
20644 | if (PyErr_Occurred()) SWIG_fail; | |
20645 | } | |
20646 | { | |
20647 | wxSize * resultptr; | |
20648 | resultptr = new wxSize((wxSize &) result); | |
20649 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20650 | } | |
20651 | return resultobj; | |
20652 | fail: | |
20653 | return NULL; | |
20654 | } | |
20655 | ||
20656 | ||
20657 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20658 | PyObject *resultobj; | |
20659 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20660 | wxSize *arg2 = 0 ; | |
20661 | wxSize temp2 ; | |
20662 | PyObject * obj0 = 0 ; | |
20663 | PyObject * obj1 = 0 ; | |
20664 | char *kwnames[] = { | |
20665 | (char *) "self",(char *) "size", NULL | |
20666 | }; | |
20667 | ||
20668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
20669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20670 | { | |
20671 | arg2 = &temp2; | |
20672 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20673 | } | |
20674 | { | |
20675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20676 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
20677 | ||
20678 | wxPyEndAllowThreads(__tstate); | |
20679 | if (PyErr_Occurred()) SWIG_fail; | |
20680 | } | |
20681 | Py_INCREF(Py_None); resultobj = Py_None; | |
20682 | return resultobj; | |
20683 | fail: | |
20684 | return NULL; | |
20685 | } | |
20686 | ||
20687 | ||
20688 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20689 | PyObject *resultobj; | |
20690 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20691 | int arg2 ; | |
20692 | int arg3 ; | |
20693 | PyObject * obj0 = 0 ; | |
20694 | char *kwnames[] = { | |
20695 | (char *) "self",(char *) "w",(char *) "h", NULL | |
20696 | }; | |
20697 | ||
20698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_SetVirtualSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
20699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20700 | { | |
20701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20702 | (arg1)->SetVirtualSize(arg2,arg3); | |
20703 | ||
20704 | wxPyEndAllowThreads(__tstate); | |
20705 | if (PyErr_Occurred()) SWIG_fail; | |
20706 | } | |
20707 | Py_INCREF(Py_None); resultobj = Py_None; | |
20708 | return resultobj; | |
20709 | fail: | |
20710 | return NULL; | |
20711 | } | |
20712 | ||
20713 | ||
20714 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20715 | PyObject *resultobj; | |
20716 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20717 | wxSize result; | |
20718 | PyObject * obj0 = 0 ; | |
20719 | char *kwnames[] = { | |
20720 | (char *) "self", NULL | |
20721 | }; | |
20722 | ||
20723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
20724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20725 | { | |
20726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20727 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
20728 | ||
20729 | wxPyEndAllowThreads(__tstate); | |
20730 | if (PyErr_Occurred()) SWIG_fail; | |
20731 | } | |
20732 | { | |
20733 | wxSize * resultptr; | |
20734 | resultptr = new wxSize((wxSize &) result); | |
20735 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20736 | } | |
20737 | return resultobj; | |
20738 | fail: | |
20739 | return NULL; | |
20740 | } | |
20741 | ||
20742 | ||
20743 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20744 | PyObject *resultobj; | |
20745 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20746 | int *arg2 = (int *) 0 ; | |
20747 | int *arg3 = (int *) 0 ; | |
20748 | int temp2 ; | |
20749 | int temp3 ; | |
20750 | PyObject * obj0 = 0 ; | |
20751 | char *kwnames[] = { | |
20752 | (char *) "self", NULL | |
20753 | }; | |
20754 | ||
20755 | arg2 = &temp2; | |
20756 | arg3 = &temp3; | |
20757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
20758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20759 | { | |
20760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20761 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
20762 | ||
20763 | wxPyEndAllowThreads(__tstate); | |
20764 | if (PyErr_Occurred()) SWIG_fail; | |
20765 | } | |
20766 | Py_INCREF(Py_None); resultobj = Py_None; | |
20767 | { | |
20768 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20769 | resultobj = t_output_helper(resultobj,o); | |
20770 | } | |
20771 | { | |
20772 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20773 | resultobj = t_output_helper(resultobj,o); | |
20774 | } | |
20775 | return resultobj; | |
20776 | fail: | |
20777 | return NULL; | |
20778 | } | |
20779 | ||
20780 | ||
20781 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20782 | PyObject *resultobj; | |
20783 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20784 | wxSize result; | |
20785 | PyObject * obj0 = 0 ; | |
20786 | char *kwnames[] = { | |
20787 | (char *) "self", NULL | |
20788 | }; | |
20789 | ||
20790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
20791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20792 | { | |
20793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20794 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
20795 | ||
20796 | wxPyEndAllowThreads(__tstate); | |
20797 | if (PyErr_Occurred()) SWIG_fail; | |
20798 | } | |
20799 | { | |
20800 | wxSize * resultptr; | |
20801 | resultptr = new wxSize((wxSize &) result); | |
20802 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20803 | } | |
20804 | return resultobj; | |
20805 | fail: | |
20806 | return NULL; | |
20807 | } | |
20808 | ||
20809 | ||
20810 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20811 | PyObject *resultobj; | |
20812 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20813 | bool arg2 = (bool) True ; |
d14a1e28 RD |
20814 | bool result; |
20815 | PyObject * obj0 = 0 ; | |
20816 | PyObject * obj1 = 0 ; | |
20817 | char *kwnames[] = { | |
20818 | (char *) "self",(char *) "show", NULL | |
20819 | }; | |
20820 | ||
20821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
20822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20823 | if (obj1) { | |
20824 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
20825 | if (PyErr_Occurred()) SWIG_fail; | |
20826 | } | |
20827 | { | |
20828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20829 | result = (bool)(arg1)->Show(arg2); | |
20830 | ||
20831 | wxPyEndAllowThreads(__tstate); | |
20832 | if (PyErr_Occurred()) SWIG_fail; | |
20833 | } | |
20834 | resultobj = PyInt_FromLong((long)result); | |
20835 | return resultobj; | |
20836 | fail: | |
20837 | return NULL; | |
20838 | } | |
20839 | ||
20840 | ||
20841 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20842 | PyObject *resultobj; | |
20843 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20844 | bool result; | |
20845 | PyObject * obj0 = 0 ; | |
20846 | char *kwnames[] = { | |
20847 | (char *) "self", NULL | |
20848 | }; | |
20849 | ||
20850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
20851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20852 | { | |
20853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20854 | result = (bool)(arg1)->Hide(); | |
20855 | ||
20856 | wxPyEndAllowThreads(__tstate); | |
20857 | if (PyErr_Occurred()) SWIG_fail; | |
20858 | } | |
20859 | resultobj = PyInt_FromLong((long)result); | |
20860 | return resultobj; | |
20861 | fail: | |
20862 | return NULL; | |
20863 | } | |
20864 | ||
20865 | ||
20866 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20867 | PyObject *resultobj; | |
20868 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20869 | bool arg2 = (bool) True ; |
d14a1e28 RD |
20870 | bool result; |
20871 | PyObject * obj0 = 0 ; | |
20872 | PyObject * obj1 = 0 ; | |
20873 | char *kwnames[] = { | |
20874 | (char *) "self",(char *) "enable", NULL | |
20875 | }; | |
20876 | ||
20877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
20878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20879 | if (obj1) { | |
20880 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
20881 | if (PyErr_Occurred()) SWIG_fail; | |
20882 | } | |
20883 | { | |
20884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20885 | result = (bool)(arg1)->Enable(arg2); | |
20886 | ||
20887 | wxPyEndAllowThreads(__tstate); | |
20888 | if (PyErr_Occurred()) SWIG_fail; | |
20889 | } | |
20890 | resultobj = PyInt_FromLong((long)result); | |
20891 | return resultobj; | |
20892 | fail: | |
20893 | return NULL; | |
20894 | } | |
20895 | ||
20896 | ||
20897 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20898 | PyObject *resultobj; | |
20899 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20900 | bool result; | |
20901 | PyObject * obj0 = 0 ; | |
20902 | char *kwnames[] = { | |
20903 | (char *) "self", NULL | |
20904 | }; | |
20905 | ||
20906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
20907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20908 | { | |
20909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20910 | result = (bool)(arg1)->Disable(); | |
20911 | ||
20912 | wxPyEndAllowThreads(__tstate); | |
20913 | if (PyErr_Occurred()) SWIG_fail; | |
20914 | } | |
20915 | resultobj = PyInt_FromLong((long)result); | |
20916 | return resultobj; | |
20917 | fail: | |
20918 | return NULL; | |
20919 | } | |
20920 | ||
20921 | ||
20922 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20923 | PyObject *resultobj; | |
20924 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20925 | bool result; | |
20926 | PyObject * obj0 = 0 ; | |
20927 | char *kwnames[] = { | |
20928 | (char *) "self", NULL | |
20929 | }; | |
20930 | ||
20931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
20932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20933 | { | |
20934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20935 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
20936 | ||
20937 | wxPyEndAllowThreads(__tstate); | |
20938 | if (PyErr_Occurred()) SWIG_fail; | |
20939 | } | |
20940 | resultobj = PyInt_FromLong((long)result); | |
20941 | return resultobj; | |
20942 | fail: | |
20943 | return NULL; | |
20944 | } | |
20945 | ||
20946 | ||
20947 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20948 | PyObject *resultobj; | |
20949 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20950 | bool result; | |
20951 | PyObject * obj0 = 0 ; | |
20952 | char *kwnames[] = { | |
20953 | (char *) "self", NULL | |
20954 | }; | |
20955 | ||
20956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
20957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20958 | { | |
20959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20960 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
20961 | ||
20962 | wxPyEndAllowThreads(__tstate); | |
20963 | if (PyErr_Occurred()) SWIG_fail; | |
20964 | } | |
20965 | resultobj = PyInt_FromLong((long)result); | |
20966 | return resultobj; | |
20967 | fail: | |
20968 | return NULL; | |
20969 | } | |
20970 | ||
20971 | ||
20972 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20973 | PyObject *resultobj; | |
20974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20975 | long arg2 ; | |
20976 | PyObject * obj0 = 0 ; | |
20977 | char *kwnames[] = { | |
20978 | (char *) "self",(char *) "style", NULL | |
20979 | }; | |
20980 | ||
20981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_SetWindowStyleFlag",kwnames,&obj0,&arg2)) goto fail; | |
20982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20983 | { | |
20984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20985 | (arg1)->SetWindowStyleFlag(arg2); | |
20986 | ||
20987 | wxPyEndAllowThreads(__tstate); | |
20988 | if (PyErr_Occurred()) SWIG_fail; | |
20989 | } | |
20990 | Py_INCREF(Py_None); resultobj = Py_None; | |
20991 | return resultobj; | |
20992 | fail: | |
20993 | return NULL; | |
20994 | } | |
20995 | ||
20996 | ||
20997 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20998 | PyObject *resultobj; | |
20999 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21000 | long result; | |
21001 | PyObject * obj0 = 0 ; | |
21002 | char *kwnames[] = { | |
21003 | (char *) "self", NULL | |
21004 | }; | |
21005 | ||
21006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
21007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21008 | { | |
21009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21010 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
21011 | ||
21012 | wxPyEndAllowThreads(__tstate); | |
21013 | if (PyErr_Occurred()) SWIG_fail; | |
21014 | } | |
21015 | resultobj = PyInt_FromLong((long)result); | |
21016 | return resultobj; | |
21017 | fail: | |
21018 | return NULL; | |
21019 | } | |
21020 | ||
21021 | ||
21022 | static PyObject *_wrap_Window_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21023 | PyObject *resultobj; | |
21024 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21025 | long arg2 ; | |
21026 | PyObject * obj0 = 0 ; | |
21027 | char *kwnames[] = { | |
21028 | (char *) "self",(char *) "style", NULL | |
21029 | }; | |
21030 | ||
21031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_SetWindowStyle",kwnames,&obj0,&arg2)) goto fail; | |
21032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21033 | { | |
21034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21035 | (arg1)->SetWindowStyle(arg2); | |
21036 | ||
21037 | wxPyEndAllowThreads(__tstate); | |
21038 | if (PyErr_Occurred()) SWIG_fail; | |
21039 | } | |
21040 | Py_INCREF(Py_None); resultobj = Py_None; | |
21041 | return resultobj; | |
21042 | fail: | |
21043 | return NULL; | |
21044 | } | |
21045 | ||
21046 | ||
21047 | static PyObject *_wrap_Window_GetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21048 | PyObject *resultobj; | |
21049 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21050 | long result; | |
21051 | PyObject * obj0 = 0 ; | |
21052 | char *kwnames[] = { | |
21053 | (char *) "self", NULL | |
21054 | }; | |
21055 | ||
21056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyle",kwnames,&obj0)) goto fail; | |
21057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21058 | { | |
21059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21060 | result = (long)((wxWindow const *)arg1)->GetWindowStyle(); | |
21061 | ||
21062 | wxPyEndAllowThreads(__tstate); | |
21063 | if (PyErr_Occurred()) SWIG_fail; | |
21064 | } | |
21065 | resultobj = PyInt_FromLong((long)result); | |
21066 | return resultobj; | |
21067 | fail: | |
21068 | return NULL; | |
21069 | } | |
21070 | ||
21071 | ||
21072 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21073 | PyObject *resultobj; | |
21074 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21075 | int arg2 ; | |
21076 | bool result; | |
21077 | PyObject * obj0 = 0 ; | |
21078 | char *kwnames[] = { | |
21079 | (char *) "self",(char *) "flag", NULL | |
21080 | }; | |
21081 | ||
21082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_HasFlag",kwnames,&obj0,&arg2)) goto fail; | |
21083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21084 | { | |
21085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21086 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
21087 | ||
21088 | wxPyEndAllowThreads(__tstate); | |
21089 | if (PyErr_Occurred()) SWIG_fail; | |
21090 | } | |
21091 | resultobj = PyInt_FromLong((long)result); | |
21092 | return resultobj; | |
21093 | fail: | |
21094 | return NULL; | |
21095 | } | |
21096 | ||
21097 | ||
21098 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21099 | PyObject *resultobj; | |
21100 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21101 | bool result; | |
21102 | PyObject * obj0 = 0 ; | |
21103 | char *kwnames[] = { | |
21104 | (char *) "self", NULL | |
21105 | }; | |
21106 | ||
21107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
21108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21109 | { | |
21110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21111 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
21112 | ||
21113 | wxPyEndAllowThreads(__tstate); | |
21114 | if (PyErr_Occurred()) SWIG_fail; | |
21115 | } | |
21116 | resultobj = PyInt_FromLong((long)result); | |
21117 | return resultobj; | |
21118 | fail: | |
21119 | return NULL; | |
21120 | } | |
21121 | ||
21122 | ||
21123 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21124 | PyObject *resultobj; | |
21125 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21126 | long arg2 ; | |
21127 | PyObject * obj0 = 0 ; | |
21128 | char *kwnames[] = { | |
21129 | (char *) "self",(char *) "exStyle", NULL | |
21130 | }; | |
21131 | ||
21132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_SetExtraStyle",kwnames,&obj0,&arg2)) goto fail; | |
21133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21134 | { | |
21135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21136 | (arg1)->SetExtraStyle(arg2); | |
21137 | ||
21138 | wxPyEndAllowThreads(__tstate); | |
21139 | if (PyErr_Occurred()) SWIG_fail; | |
21140 | } | |
21141 | Py_INCREF(Py_None); resultobj = Py_None; | |
21142 | return resultobj; | |
21143 | fail: | |
21144 | return NULL; | |
21145 | } | |
21146 | ||
21147 | ||
21148 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21149 | PyObject *resultobj; | |
21150 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21151 | long result; | |
21152 | PyObject * obj0 = 0 ; | |
21153 | char *kwnames[] = { | |
21154 | (char *) "self", NULL | |
21155 | }; | |
21156 | ||
21157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
21158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21159 | { | |
21160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21161 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
21162 | ||
21163 | wxPyEndAllowThreads(__tstate); | |
21164 | if (PyErr_Occurred()) SWIG_fail; | |
21165 | } | |
21166 | resultobj = PyInt_FromLong((long)result); | |
21167 | return resultobj; | |
21168 | fail: | |
21169 | return NULL; | |
21170 | } | |
21171 | ||
21172 | ||
21173 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21174 | PyObject *resultobj; | |
21175 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21176 | bool arg2 = (bool) True ; |
d14a1e28 RD |
21177 | PyObject * obj0 = 0 ; |
21178 | PyObject * obj1 = 0 ; | |
21179 | char *kwnames[] = { | |
21180 | (char *) "self",(char *) "modal", NULL | |
21181 | }; | |
21182 | ||
21183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
21184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21185 | if (obj1) { | |
21186 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
21187 | if (PyErr_Occurred()) SWIG_fail; | |
21188 | } | |
21189 | { | |
21190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21191 | (arg1)->MakeModal(arg2); | |
21192 | ||
21193 | wxPyEndAllowThreads(__tstate); | |
21194 | if (PyErr_Occurred()) SWIG_fail; | |
21195 | } | |
21196 | Py_INCREF(Py_None); resultobj = Py_None; | |
21197 | return resultobj; | |
21198 | fail: | |
21199 | return NULL; | |
21200 | } | |
21201 | ||
21202 | ||
21203 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21204 | PyObject *resultobj; | |
21205 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21206 | bool arg2 ; | |
21207 | PyObject * obj0 = 0 ; | |
21208 | PyObject * obj1 = 0 ; | |
21209 | char *kwnames[] = { | |
21210 | (char *) "self",(char *) "enableTheme", NULL | |
21211 | }; | |
21212 | ||
21213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
21214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21215 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
21216 | if (PyErr_Occurred()) SWIG_fail; | |
21217 | { | |
21218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21219 | (arg1)->SetThemeEnabled(arg2); | |
21220 | ||
21221 | wxPyEndAllowThreads(__tstate); | |
21222 | if (PyErr_Occurred()) SWIG_fail; | |
21223 | } | |
21224 | Py_INCREF(Py_None); resultobj = Py_None; | |
21225 | return resultobj; | |
21226 | fail: | |
21227 | return NULL; | |
21228 | } | |
21229 | ||
21230 | ||
21231 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21232 | PyObject *resultobj; | |
21233 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21234 | bool result; | |
21235 | PyObject * obj0 = 0 ; | |
21236 | char *kwnames[] = { | |
21237 | (char *) "self", NULL | |
21238 | }; | |
21239 | ||
21240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
21241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21242 | { | |
21243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21244 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
21245 | ||
21246 | wxPyEndAllowThreads(__tstate); | |
21247 | if (PyErr_Occurred()) SWIG_fail; | |
21248 | } | |
21249 | resultobj = PyInt_FromLong((long)result); | |
21250 | return resultobj; | |
21251 | fail: | |
21252 | return NULL; | |
21253 | } | |
21254 | ||
21255 | ||
21256 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21257 | PyObject *resultobj; | |
21258 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21259 | bool result; | |
21260 | PyObject * obj0 = 0 ; | |
21261 | char *kwnames[] = { | |
21262 | (char *) "self", NULL | |
21263 | }; | |
21264 | ||
21265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
21266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21267 | { | |
21268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21269 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
21270 | ||
21271 | wxPyEndAllowThreads(__tstate); | |
21272 | if (PyErr_Occurred()) SWIG_fail; | |
21273 | } | |
21274 | resultobj = PyInt_FromLong((long)result); | |
21275 | return resultobj; | |
21276 | fail: | |
21277 | return NULL; | |
21278 | } | |
21279 | ||
21280 | ||
21281 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21282 | PyObject *resultobj; | |
21283 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21284 | PyObject * obj0 = 0 ; | |
21285 | char *kwnames[] = { | |
21286 | (char *) "self", NULL | |
21287 | }; | |
21288 | ||
21289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
21290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21291 | { | |
21292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21293 | (arg1)->SetFocus(); | |
21294 | ||
21295 | wxPyEndAllowThreads(__tstate); | |
21296 | if (PyErr_Occurred()) SWIG_fail; | |
21297 | } | |
21298 | Py_INCREF(Py_None); resultobj = Py_None; | |
21299 | return resultobj; | |
21300 | fail: | |
21301 | return NULL; | |
21302 | } | |
21303 | ||
21304 | ||
21305 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21306 | PyObject *resultobj; | |
21307 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21308 | PyObject * obj0 = 0 ; | |
21309 | char *kwnames[] = { | |
21310 | (char *) "self", NULL | |
21311 | }; | |
21312 | ||
21313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
21314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21315 | { | |
21316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21317 | (arg1)->SetFocusFromKbd(); | |
21318 | ||
21319 | wxPyEndAllowThreads(__tstate); | |
21320 | if (PyErr_Occurred()) SWIG_fail; | |
21321 | } | |
21322 | Py_INCREF(Py_None); resultobj = Py_None; | |
21323 | return resultobj; | |
21324 | fail: | |
21325 | return NULL; | |
21326 | } | |
21327 | ||
21328 | ||
21329 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21330 | PyObject *resultobj; | |
21331 | wxWindow *result; | |
21332 | char *kwnames[] = { | |
21333 | NULL | |
21334 | }; | |
21335 | ||
21336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
21337 | { | |
21338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21339 | result = (wxWindow *)wxWindow::FindFocus(); | |
21340 | ||
21341 | wxPyEndAllowThreads(__tstate); | |
21342 | if (PyErr_Occurred()) SWIG_fail; | |
21343 | } | |
21344 | { | |
21345 | resultobj = wxPyMake_wxObject(result); | |
21346 | } | |
21347 | return resultobj; | |
21348 | fail: | |
21349 | return NULL; | |
21350 | } | |
21351 | ||
21352 | ||
21353 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21354 | PyObject *resultobj; | |
21355 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21356 | bool result; | |
21357 | PyObject * obj0 = 0 ; | |
21358 | char *kwnames[] = { | |
21359 | (char *) "self", NULL | |
21360 | }; | |
21361 | ||
21362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
21363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21364 | { | |
21365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21366 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
21367 | ||
21368 | wxPyEndAllowThreads(__tstate); | |
21369 | if (PyErr_Occurred()) SWIG_fail; | |
21370 | } | |
21371 | resultobj = PyInt_FromLong((long)result); | |
21372 | return resultobj; | |
21373 | fail: | |
21374 | return NULL; | |
21375 | } | |
21376 | ||
21377 | ||
21378 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21379 | PyObject *resultobj; | |
21380 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21381 | bool result; | |
21382 | PyObject * obj0 = 0 ; | |
21383 | char *kwnames[] = { | |
21384 | (char *) "self", NULL | |
21385 | }; | |
21386 | ||
21387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
21388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21389 | { | |
21390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21391 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
21392 | ||
21393 | wxPyEndAllowThreads(__tstate); | |
21394 | if (PyErr_Occurred()) SWIG_fail; | |
21395 | } | |
21396 | resultobj = PyInt_FromLong((long)result); | |
21397 | return resultobj; | |
21398 | fail: | |
21399 | return NULL; | |
21400 | } | |
21401 | ||
21402 | ||
21403 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21404 | PyObject *resultobj; | |
21405 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21406 | wxWindow *result; | |
21407 | PyObject * obj0 = 0 ; | |
21408 | char *kwnames[] = { | |
21409 | (char *) "self", NULL | |
21410 | }; | |
21411 | ||
21412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
21413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21414 | { | |
21415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21416 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
21417 | ||
21418 | wxPyEndAllowThreads(__tstate); | |
21419 | if (PyErr_Occurred()) SWIG_fail; | |
21420 | } | |
21421 | { | |
21422 | resultobj = wxPyMake_wxObject(result); | |
21423 | } | |
21424 | return resultobj; | |
21425 | fail: | |
21426 | return NULL; | |
21427 | } | |
21428 | ||
21429 | ||
21430 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21431 | PyObject *resultobj; | |
21432 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21433 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21434 | wxWindow *result; | |
21435 | PyObject * obj0 = 0 ; | |
21436 | PyObject * obj1 = 0 ; | |
21437 | char *kwnames[] = { | |
21438 | (char *) "self",(char *) "child", NULL | |
21439 | }; | |
21440 | ||
21441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
21442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21443 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21444 | { | |
21445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21446 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
21447 | ||
21448 | wxPyEndAllowThreads(__tstate); | |
21449 | if (PyErr_Occurred()) SWIG_fail; | |
21450 | } | |
21451 | { | |
21452 | resultobj = wxPyMake_wxObject(result); | |
21453 | } | |
21454 | return resultobj; | |
21455 | fail: | |
21456 | return NULL; | |
21457 | } | |
21458 | ||
21459 | ||
21460 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21461 | PyObject *resultobj; | |
21462 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21463 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21464 | PyObject * obj0 = 0 ; | |
21465 | PyObject * obj1 = 0 ; | |
21466 | char *kwnames[] = { | |
21467 | (char *) "self",(char *) "win", NULL | |
21468 | }; | |
21469 | ||
21470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
21471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21472 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21473 | { | |
21474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21475 | (arg1)->SetTmpDefaultItem(arg2); | |
21476 | ||
21477 | wxPyEndAllowThreads(__tstate); | |
21478 | if (PyErr_Occurred()) SWIG_fail; | |
21479 | } | |
21480 | Py_INCREF(Py_None); resultobj = Py_None; | |
21481 | return resultobj; | |
21482 | fail: | |
21483 | return NULL; | |
21484 | } | |
21485 | ||
21486 | ||
21487 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21488 | PyObject *resultobj; | |
21489 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21490 | PyObject *result; | |
21491 | PyObject * obj0 = 0 ; | |
21492 | char *kwnames[] = { | |
21493 | (char *) "self", NULL | |
21494 | }; | |
21495 | ||
21496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
21497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21498 | { | |
21499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21500 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
21501 | ||
21502 | wxPyEndAllowThreads(__tstate); | |
21503 | if (PyErr_Occurred()) SWIG_fail; | |
21504 | } | |
21505 | resultobj = result; | |
21506 | return resultobj; | |
21507 | fail: | |
21508 | return NULL; | |
21509 | } | |
21510 | ||
21511 | ||
21512 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21513 | PyObject *resultobj; | |
21514 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21515 | wxWindow *result; | |
21516 | PyObject * obj0 = 0 ; | |
21517 | char *kwnames[] = { | |
21518 | (char *) "self", NULL | |
21519 | }; | |
21520 | ||
21521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
21522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21523 | { | |
21524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21525 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
21526 | ||
21527 | wxPyEndAllowThreads(__tstate); | |
21528 | if (PyErr_Occurred()) SWIG_fail; | |
21529 | } | |
21530 | { | |
21531 | resultobj = wxPyMake_wxObject(result); | |
21532 | } | |
21533 | return resultobj; | |
21534 | fail: | |
21535 | return NULL; | |
21536 | } | |
21537 | ||
21538 | ||
21539 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21540 | PyObject *resultobj; | |
21541 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21542 | wxWindow *result; | |
21543 | PyObject * obj0 = 0 ; | |
21544 | char *kwnames[] = { | |
21545 | (char *) "self", NULL | |
21546 | }; | |
21547 | ||
21548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
21549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21550 | { | |
21551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21552 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
21553 | ||
21554 | wxPyEndAllowThreads(__tstate); | |
21555 | if (PyErr_Occurred()) SWIG_fail; | |
21556 | } | |
21557 | { | |
21558 | resultobj = wxPyMake_wxObject(result); | |
21559 | } | |
21560 | return resultobj; | |
21561 | fail: | |
21562 | return NULL; | |
21563 | } | |
21564 | ||
21565 | ||
21566 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21567 | PyObject *resultobj; | |
21568 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21569 | bool result; | |
21570 | PyObject * obj0 = 0 ; | |
21571 | char *kwnames[] = { | |
21572 | (char *) "self", NULL | |
21573 | }; | |
21574 | ||
21575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
21576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21577 | { | |
21578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21579 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
21580 | ||
21581 | wxPyEndAllowThreads(__tstate); | |
21582 | if (PyErr_Occurred()) SWIG_fail; | |
21583 | } | |
21584 | resultobj = PyInt_FromLong((long)result); | |
21585 | return resultobj; | |
21586 | fail: | |
21587 | return NULL; | |
21588 | } | |
21589 | ||
21590 | ||
21591 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21592 | PyObject *resultobj; | |
21593 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21594 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21595 | bool result; | |
21596 | PyObject * obj0 = 0 ; | |
21597 | PyObject * obj1 = 0 ; | |
21598 | char *kwnames[] = { | |
21599 | (char *) "self",(char *) "newParent", NULL | |
21600 | }; | |
21601 | ||
21602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
21603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21604 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21605 | { | |
21606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21607 | result = (bool)(arg1)->Reparent(arg2); | |
21608 | ||
21609 | wxPyEndAllowThreads(__tstate); | |
21610 | if (PyErr_Occurred()) SWIG_fail; | |
21611 | } | |
21612 | resultobj = PyInt_FromLong((long)result); | |
21613 | return resultobj; | |
21614 | fail: | |
21615 | return NULL; | |
21616 | } | |
21617 | ||
21618 | ||
21619 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21620 | PyObject *resultobj; | |
21621 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21622 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21623 | PyObject * obj0 = 0 ; | |
21624 | PyObject * obj1 = 0 ; | |
21625 | char *kwnames[] = { | |
21626 | (char *) "self",(char *) "child", NULL | |
21627 | }; | |
21628 | ||
21629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
21630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21631 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21632 | { | |
21633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21634 | (arg1)->AddChild(arg2); | |
21635 | ||
21636 | wxPyEndAllowThreads(__tstate); | |
21637 | if (PyErr_Occurred()) SWIG_fail; | |
21638 | } | |
21639 | Py_INCREF(Py_None); resultobj = Py_None; | |
21640 | return resultobj; | |
21641 | fail: | |
21642 | return NULL; | |
21643 | } | |
21644 | ||
21645 | ||
21646 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21647 | PyObject *resultobj; | |
21648 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21649 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21650 | PyObject * obj0 = 0 ; | |
21651 | PyObject * obj1 = 0 ; | |
21652 | char *kwnames[] = { | |
21653 | (char *) "self",(char *) "child", NULL | |
21654 | }; | |
21655 | ||
21656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
21657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21658 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21659 | { | |
21660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21661 | (arg1)->RemoveChild(arg2); | |
21662 | ||
21663 | wxPyEndAllowThreads(__tstate); | |
21664 | if (PyErr_Occurred()) SWIG_fail; | |
21665 | } | |
21666 | Py_INCREF(Py_None); resultobj = Py_None; | |
21667 | return resultobj; | |
21668 | fail: | |
21669 | return NULL; | |
21670 | } | |
21671 | ||
21672 | ||
21673 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21674 | PyObject *resultobj; | |
21675 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21676 | long arg2 ; | |
21677 | wxWindow *result; | |
21678 | PyObject * obj0 = 0 ; | |
21679 | char *kwnames[] = { | |
21680 | (char *) "self",(char *) "winid", NULL | |
21681 | }; | |
21682 | ||
21683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_FindWindowById",kwnames,&obj0,&arg2)) goto fail; | |
21684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21685 | { | |
21686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21687 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
21688 | ||
21689 | wxPyEndAllowThreads(__tstate); | |
21690 | if (PyErr_Occurred()) SWIG_fail; | |
21691 | } | |
21692 | { | |
21693 | resultobj = wxPyMake_wxObject(result); | |
21694 | } | |
21695 | return resultobj; | |
21696 | fail: | |
21697 | return NULL; | |
21698 | } | |
21699 | ||
21700 | ||
21701 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21702 | PyObject *resultobj; | |
21703 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21704 | wxString *arg2 = 0 ; | |
21705 | wxWindow *result; | |
423f194a | 21706 | bool temp2 = False ; |
d14a1e28 RD |
21707 | PyObject * obj0 = 0 ; |
21708 | PyObject * obj1 = 0 ; | |
21709 | char *kwnames[] = { | |
21710 | (char *) "self",(char *) "name", NULL | |
21711 | }; | |
21712 | ||
21713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
21714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21715 | { | |
21716 | arg2 = wxString_in_helper(obj1); | |
21717 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21718 | temp2 = True; |
d14a1e28 RD |
21719 | } |
21720 | { | |
21721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21722 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
21723 | ||
21724 | wxPyEndAllowThreads(__tstate); | |
21725 | if (PyErr_Occurred()) SWIG_fail; | |
21726 | } | |
21727 | { | |
21728 | resultobj = wxPyMake_wxObject(result); | |
21729 | } | |
21730 | { | |
21731 | if (temp2) | |
21732 | delete arg2; | |
21733 | } | |
21734 | return resultobj; | |
21735 | fail: | |
21736 | { | |
21737 | if (temp2) | |
21738 | delete arg2; | |
21739 | } | |
21740 | return NULL; | |
21741 | } | |
21742 | ||
21743 | ||
21744 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21745 | PyObject *resultobj; | |
21746 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21747 | wxEvtHandler *result; | |
21748 | PyObject * obj0 = 0 ; | |
21749 | char *kwnames[] = { | |
21750 | (char *) "self", NULL | |
21751 | }; | |
21752 | ||
21753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
21754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21755 | { | |
21756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21757 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
21758 | ||
21759 | wxPyEndAllowThreads(__tstate); | |
21760 | if (PyErr_Occurred()) SWIG_fail; | |
21761 | } | |
21762 | { | |
21763 | resultobj = wxPyMake_wxObject(result); | |
21764 | } | |
21765 | return resultobj; | |
21766 | fail: | |
21767 | return NULL; | |
21768 | } | |
21769 | ||
21770 | ||
21771 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21772 | PyObject *resultobj; | |
21773 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21774 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
21775 | PyObject * obj0 = 0 ; | |
21776 | PyObject * obj1 = 0 ; | |
21777 | char *kwnames[] = { | |
21778 | (char *) "self",(char *) "handler", NULL | |
21779 | }; | |
21780 | ||
21781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
21782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21783 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21784 | { | |
21785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21786 | (arg1)->SetEventHandler(arg2); | |
21787 | ||
21788 | wxPyEndAllowThreads(__tstate); | |
21789 | if (PyErr_Occurred()) SWIG_fail; | |
21790 | } | |
21791 | Py_INCREF(Py_None); resultobj = Py_None; | |
21792 | return resultobj; | |
21793 | fail: | |
21794 | return NULL; | |
21795 | } | |
21796 | ||
21797 | ||
21798 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21799 | PyObject *resultobj; | |
21800 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21801 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
21802 | PyObject * obj0 = 0 ; | |
21803 | PyObject * obj1 = 0 ; | |
21804 | char *kwnames[] = { | |
21805 | (char *) "self",(char *) "handler", NULL | |
21806 | }; | |
21807 | ||
21808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
21809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21810 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21811 | { | |
21812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21813 | (arg1)->PushEventHandler(arg2); | |
21814 | ||
21815 | wxPyEndAllowThreads(__tstate); | |
21816 | if (PyErr_Occurred()) SWIG_fail; | |
21817 | } | |
21818 | Py_INCREF(Py_None); resultobj = Py_None; | |
21819 | return resultobj; | |
21820 | fail: | |
21821 | return NULL; | |
21822 | } | |
21823 | ||
21824 | ||
21825 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21826 | PyObject *resultobj; | |
21827 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21828 | bool arg2 = (bool) False ; |
d14a1e28 RD |
21829 | wxEvtHandler *result; |
21830 | PyObject * obj0 = 0 ; | |
21831 | PyObject * obj1 = 0 ; | |
21832 | char *kwnames[] = { | |
21833 | (char *) "self",(char *) "deleteHandler", NULL | |
21834 | }; | |
21835 | ||
21836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
21837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21838 | if (obj1) { | |
21839 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
21840 | if (PyErr_Occurred()) SWIG_fail; | |
21841 | } | |
21842 | { | |
21843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21844 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
21845 | ||
21846 | wxPyEndAllowThreads(__tstate); | |
21847 | if (PyErr_Occurred()) SWIG_fail; | |
21848 | } | |
21849 | { | |
21850 | resultobj = wxPyMake_wxObject(result); | |
21851 | } | |
21852 | return resultobj; | |
21853 | fail: | |
21854 | return NULL; | |
21855 | } | |
21856 | ||
21857 | ||
21858 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21859 | PyObject *resultobj; | |
21860 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21861 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
21862 | bool result; | |
21863 | PyObject * obj0 = 0 ; | |
21864 | PyObject * obj1 = 0 ; | |
21865 | char *kwnames[] = { | |
21866 | (char *) "self",(char *) "handler", NULL | |
21867 | }; | |
21868 | ||
21869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
21870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21871 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21872 | { | |
21873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21874 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
21875 | ||
21876 | wxPyEndAllowThreads(__tstate); | |
21877 | if (PyErr_Occurred()) SWIG_fail; | |
21878 | } | |
21879 | resultobj = PyInt_FromLong((long)result); | |
21880 | return resultobj; | |
21881 | fail: | |
21882 | return NULL; | |
21883 | } | |
21884 | ||
21885 | ||
21886 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21887 | PyObject *resultobj; | |
21888 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21889 | wxValidator *arg2 = 0 ; | |
21890 | PyObject * obj0 = 0 ; | |
21891 | PyObject * obj1 = 0 ; | |
21892 | char *kwnames[] = { | |
21893 | (char *) "self",(char *) "validator", NULL | |
21894 | }; | |
21895 | ||
21896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
21897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21898 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21899 | if (arg2 == NULL) { | |
21900 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21901 | } | |
21902 | { | |
21903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21904 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
21905 | ||
21906 | wxPyEndAllowThreads(__tstate); | |
21907 | if (PyErr_Occurred()) SWIG_fail; | |
21908 | } | |
21909 | Py_INCREF(Py_None); resultobj = Py_None; | |
21910 | return resultobj; | |
21911 | fail: | |
21912 | return NULL; | |
21913 | } | |
21914 | ||
21915 | ||
21916 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21917 | PyObject *resultobj; | |
21918 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21919 | wxValidator *result; | |
21920 | PyObject * obj0 = 0 ; | |
21921 | char *kwnames[] = { | |
21922 | (char *) "self", NULL | |
21923 | }; | |
21924 | ||
21925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
21926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21927 | { | |
21928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21929 | result = (wxValidator *)(arg1)->GetValidator(); | |
21930 | ||
21931 | wxPyEndAllowThreads(__tstate); | |
21932 | if (PyErr_Occurred()) SWIG_fail; | |
21933 | } | |
21934 | { | |
21935 | resultobj = wxPyMake_wxObject(result); | |
21936 | } | |
21937 | return resultobj; | |
21938 | fail: | |
21939 | return NULL; | |
21940 | } | |
21941 | ||
21942 | ||
21943 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21944 | PyObject *resultobj; | |
21945 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21946 | wxAcceleratorTable *arg2 = 0 ; | |
21947 | PyObject * obj0 = 0 ; | |
21948 | PyObject * obj1 = 0 ; | |
21949 | char *kwnames[] = { | |
21950 | (char *) "self",(char *) "accel", NULL | |
21951 | }; | |
21952 | ||
21953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
21954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21955 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21956 | if (arg2 == NULL) { | |
21957 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21958 | } | |
21959 | { | |
21960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21961 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
21962 | ||
21963 | wxPyEndAllowThreads(__tstate); | |
21964 | if (PyErr_Occurred()) SWIG_fail; | |
21965 | } | |
21966 | Py_INCREF(Py_None); resultobj = Py_None; | |
21967 | return resultobj; | |
21968 | fail: | |
21969 | return NULL; | |
21970 | } | |
21971 | ||
21972 | ||
21973 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21974 | PyObject *resultobj; | |
21975 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21976 | wxAcceleratorTable *result; | |
21977 | PyObject * obj0 = 0 ; | |
21978 | char *kwnames[] = { | |
21979 | (char *) "self", NULL | |
21980 | }; | |
21981 | ||
21982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
21983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21984 | { | |
21985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21986 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
21987 | ||
21988 | wxPyEndAllowThreads(__tstate); | |
21989 | if (PyErr_Occurred()) SWIG_fail; | |
21990 | } | |
21991 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 0); | |
21992 | return resultobj; | |
21993 | fail: | |
21994 | return NULL; | |
21995 | } | |
21996 | ||
21997 | ||
21998 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21999 | PyObject *resultobj; | |
22000 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22001 | int arg2 ; | |
22002 | int arg3 ; | |
22003 | int arg4 ; | |
22004 | bool result; | |
22005 | PyObject * obj0 = 0 ; | |
22006 | char *kwnames[] = { | |
22007 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
22008 | }; | |
22009 | ||
22010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:Window_RegisterHotKey",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
22011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22012 | { | |
22013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22014 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
22015 | ||
22016 | wxPyEndAllowThreads(__tstate); | |
22017 | if (PyErr_Occurred()) SWIG_fail; | |
22018 | } | |
22019 | resultobj = PyInt_FromLong((long)result); | |
22020 | return resultobj; | |
22021 | fail: | |
22022 | return NULL; | |
22023 | } | |
22024 | ||
22025 | ||
22026 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22027 | PyObject *resultobj; | |
22028 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22029 | int arg2 ; | |
22030 | bool result; | |
22031 | PyObject * obj0 = 0 ; | |
22032 | char *kwnames[] = { | |
22033 | (char *) "self",(char *) "hotkeyId", NULL | |
22034 | }; | |
22035 | ||
22036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_UnregisterHotKey",kwnames,&obj0,&arg2)) goto fail; | |
22037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22038 | { | |
22039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22040 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
22041 | ||
22042 | wxPyEndAllowThreads(__tstate); | |
22043 | if (PyErr_Occurred()) SWIG_fail; | |
22044 | } | |
22045 | resultobj = PyInt_FromLong((long)result); | |
22046 | return resultobj; | |
22047 | fail: | |
22048 | return NULL; | |
22049 | } | |
22050 | ||
22051 | ||
22052 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22053 | PyObject *resultobj; | |
22054 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22055 | wxPoint *arg2 = 0 ; | |
22056 | wxPoint result; | |
22057 | wxPoint temp2 ; | |
22058 | PyObject * obj0 = 0 ; | |
22059 | PyObject * obj1 = 0 ; | |
22060 | char *kwnames[] = { | |
22061 | (char *) "self",(char *) "pt", NULL | |
22062 | }; | |
22063 | ||
22064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
22065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22066 | { | |
22067 | arg2 = &temp2; | |
22068 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22069 | } | |
22070 | { | |
22071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22072 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
22073 | ||
22074 | wxPyEndAllowThreads(__tstate); | |
22075 | if (PyErr_Occurred()) SWIG_fail; | |
22076 | } | |
22077 | { | |
22078 | wxPoint * resultptr; | |
22079 | resultptr = new wxPoint((wxPoint &) result); | |
22080 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
22081 | } | |
22082 | return resultobj; | |
22083 | fail: | |
22084 | return NULL; | |
22085 | } | |
22086 | ||
22087 | ||
22088 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22089 | PyObject *resultobj; | |
22090 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22091 | wxSize *arg2 = 0 ; | |
22092 | wxSize result; | |
22093 | wxSize temp2 ; | |
22094 | PyObject * obj0 = 0 ; | |
22095 | PyObject * obj1 = 0 ; | |
22096 | char *kwnames[] = { | |
22097 | (char *) "self",(char *) "sz", NULL | |
22098 | }; | |
22099 | ||
22100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
22101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22102 | { | |
22103 | arg2 = &temp2; | |
22104 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22105 | } | |
22106 | { | |
22107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22108 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
22109 | ||
22110 | wxPyEndAllowThreads(__tstate); | |
22111 | if (PyErr_Occurred()) SWIG_fail; | |
22112 | } | |
22113 | { | |
22114 | wxSize * resultptr; | |
22115 | resultptr = new wxSize((wxSize &) result); | |
22116 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22117 | } | |
22118 | return resultobj; | |
22119 | fail: | |
22120 | return NULL; | |
22121 | } | |
22122 | ||
22123 | ||
22124 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22125 | PyObject *resultobj; | |
22126 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22127 | wxPoint *arg2 = 0 ; | |
22128 | wxPoint result; | |
22129 | wxPoint temp2 ; | |
22130 | PyObject * obj0 = 0 ; | |
22131 | PyObject * obj1 = 0 ; | |
22132 | char *kwnames[] = { | |
22133 | (char *) "self",(char *) "pt", NULL | |
22134 | }; | |
22135 | ||
22136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
22137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22138 | { | |
22139 | arg2 = &temp2; | |
22140 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22141 | } | |
22142 | { | |
22143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22144 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
22145 | ||
22146 | wxPyEndAllowThreads(__tstate); | |
22147 | if (PyErr_Occurred()) SWIG_fail; | |
22148 | } | |
22149 | { | |
22150 | wxPoint * resultptr; | |
22151 | resultptr = new wxPoint((wxPoint &) result); | |
22152 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
22153 | } | |
22154 | return resultobj; | |
22155 | fail: | |
22156 | return NULL; | |
22157 | } | |
22158 | ||
22159 | ||
22160 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22161 | PyObject *resultobj; | |
22162 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22163 | wxSize *arg2 = 0 ; | |
22164 | wxSize result; | |
22165 | wxSize temp2 ; | |
22166 | PyObject * obj0 = 0 ; | |
22167 | PyObject * obj1 = 0 ; | |
22168 | char *kwnames[] = { | |
22169 | (char *) "self",(char *) "sz", NULL | |
22170 | }; | |
22171 | ||
22172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
22173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22174 | { | |
22175 | arg2 = &temp2; | |
22176 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22177 | } | |
22178 | { | |
22179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22180 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
22181 | ||
22182 | wxPyEndAllowThreads(__tstate); | |
22183 | if (PyErr_Occurred()) SWIG_fail; | |
22184 | } | |
22185 | { | |
22186 | wxSize * resultptr; | |
22187 | resultptr = new wxSize((wxSize &) result); | |
22188 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22189 | } | |
22190 | return resultobj; | |
22191 | fail: | |
22192 | return NULL; | |
22193 | } | |
22194 | ||
22195 | ||
22196 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22197 | PyObject *resultobj; | |
22198 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22199 | wxPoint *arg2 = 0 ; | |
22200 | wxPoint result; | |
22201 | wxPoint temp2 ; | |
22202 | PyObject * obj0 = 0 ; | |
22203 | PyObject * obj1 = 0 ; | |
22204 | char *kwnames[] = { | |
22205 | (char *) "self",(char *) "pt", NULL | |
22206 | }; | |
22207 | ||
22208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
22209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22210 | { | |
22211 | arg2 = &temp2; | |
22212 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22213 | } | |
22214 | { | |
22215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22216 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
22217 | ||
22218 | wxPyEndAllowThreads(__tstate); | |
22219 | if (PyErr_Occurred()) SWIG_fail; | |
22220 | } | |
22221 | { | |
22222 | wxPoint * resultptr; | |
22223 | resultptr = new wxPoint((wxPoint &) result); | |
22224 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
22225 | } | |
22226 | return resultobj; | |
22227 | fail: | |
22228 | return NULL; | |
22229 | } | |
22230 | ||
22231 | ||
22232 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22233 | PyObject *resultobj; | |
22234 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22235 | wxSize *arg2 = 0 ; | |
22236 | wxSize result; | |
22237 | wxSize temp2 ; | |
22238 | PyObject * obj0 = 0 ; | |
22239 | PyObject * obj1 = 0 ; | |
22240 | char *kwnames[] = { | |
22241 | (char *) "self",(char *) "sz", NULL | |
22242 | }; | |
22243 | ||
22244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
22245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22246 | { | |
22247 | arg2 = &temp2; | |
22248 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22249 | } | |
22250 | { | |
22251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22252 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
22253 | ||
22254 | wxPyEndAllowThreads(__tstate); | |
22255 | if (PyErr_Occurred()) SWIG_fail; | |
22256 | } | |
22257 | { | |
22258 | wxSize * resultptr; | |
22259 | resultptr = new wxSize((wxSize &) result); | |
22260 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22261 | } | |
22262 | return resultobj; | |
22263 | fail: | |
22264 | return NULL; | |
22265 | } | |
22266 | ||
22267 | ||
22268 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22269 | PyObject *resultobj; | |
22270 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22271 | int arg2 ; | |
22272 | int arg3 ; | |
22273 | PyObject * obj0 = 0 ; | |
22274 | char *kwnames[] = { | |
22275 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22276 | }; | |
22277 | ||
22278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_WarpPointer",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
22279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22280 | { | |
22281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22282 | (arg1)->WarpPointer(arg2,arg3); | |
22283 | ||
22284 | wxPyEndAllowThreads(__tstate); | |
22285 | if (PyErr_Occurred()) SWIG_fail; | |
22286 | } | |
22287 | Py_INCREF(Py_None); resultobj = Py_None; | |
22288 | return resultobj; | |
22289 | fail: | |
22290 | return NULL; | |
22291 | } | |
22292 | ||
22293 | ||
22294 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22295 | PyObject *resultobj; | |
22296 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22297 | PyObject * obj0 = 0 ; | |
22298 | char *kwnames[] = { | |
22299 | (char *) "self", NULL | |
22300 | }; | |
22301 | ||
22302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
22303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22304 | { | |
22305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22306 | (arg1)->CaptureMouse(); | |
22307 | ||
22308 | wxPyEndAllowThreads(__tstate); | |
22309 | if (PyErr_Occurred()) SWIG_fail; | |
22310 | } | |
22311 | Py_INCREF(Py_None); resultobj = Py_None; | |
22312 | return resultobj; | |
22313 | fail: | |
22314 | return NULL; | |
22315 | } | |
22316 | ||
22317 | ||
22318 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22319 | PyObject *resultobj; | |
22320 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22321 | PyObject * obj0 = 0 ; | |
22322 | char *kwnames[] = { | |
22323 | (char *) "self", NULL | |
22324 | }; | |
22325 | ||
22326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
22327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22328 | { | |
22329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22330 | (arg1)->ReleaseMouse(); | |
22331 | ||
22332 | wxPyEndAllowThreads(__tstate); | |
22333 | if (PyErr_Occurred()) SWIG_fail; | |
22334 | } | |
22335 | Py_INCREF(Py_None); resultobj = Py_None; | |
22336 | return resultobj; | |
22337 | fail: | |
22338 | return NULL; | |
22339 | } | |
22340 | ||
22341 | ||
22342 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22343 | PyObject *resultobj; | |
22344 | wxWindow *result; | |
22345 | char *kwnames[] = { | |
22346 | NULL | |
22347 | }; | |
22348 | ||
22349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
22350 | { | |
22351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22352 | result = (wxWindow *)wxWindow::GetCapture(); | |
22353 | ||
22354 | wxPyEndAllowThreads(__tstate); | |
22355 | if (PyErr_Occurred()) SWIG_fail; | |
22356 | } | |
22357 | { | |
22358 | resultobj = wxPyMake_wxObject(result); | |
22359 | } | |
22360 | return resultobj; | |
22361 | fail: | |
22362 | return NULL; | |
22363 | } | |
22364 | ||
22365 | ||
22366 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22367 | PyObject *resultobj; | |
22368 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22369 | bool result; | |
22370 | PyObject * obj0 = 0 ; | |
22371 | char *kwnames[] = { | |
22372 | (char *) "self", NULL | |
22373 | }; | |
22374 | ||
22375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
22376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22377 | { | |
22378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22379 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
22380 | ||
22381 | wxPyEndAllowThreads(__tstate); | |
22382 | if (PyErr_Occurred()) SWIG_fail; | |
22383 | } | |
22384 | resultobj = PyInt_FromLong((long)result); | |
22385 | return resultobj; | |
22386 | fail: | |
22387 | return NULL; | |
22388 | } | |
22389 | ||
22390 | ||
22391 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22392 | PyObject *resultobj; | |
22393 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22394 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22395 | wxRect *arg3 = (wxRect *) NULL ; |
22396 | PyObject * obj0 = 0 ; | |
22397 | PyObject * obj1 = 0 ; | |
22398 | PyObject * obj2 = 0 ; | |
22399 | char *kwnames[] = { | |
22400 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
22401 | }; | |
22402 | ||
22403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22405 | if (obj1) { | |
22406 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
22407 | if (PyErr_Occurred()) SWIG_fail; | |
22408 | } | |
22409 | if (obj2) { | |
22410 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22411 | } | |
22412 | { | |
22413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22414 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
22415 | ||
22416 | wxPyEndAllowThreads(__tstate); | |
22417 | if (PyErr_Occurred()) SWIG_fail; | |
22418 | } | |
22419 | Py_INCREF(Py_None); resultobj = Py_None; | |
22420 | return resultobj; | |
22421 | fail: | |
22422 | return NULL; | |
22423 | } | |
22424 | ||
22425 | ||
22426 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22427 | PyObject *resultobj; | |
22428 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22429 | wxRect *arg2 = 0 ; | |
22430 | wxRect temp2 ; | |
22431 | PyObject * obj0 = 0 ; | |
22432 | PyObject * obj1 = 0 ; | |
22433 | char *kwnames[] = { | |
22434 | (char *) "self",(char *) "rect", NULL | |
22435 | }; | |
22436 | ||
22437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
22438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22439 | { | |
22440 | arg2 = &temp2; | |
22441 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22442 | } | |
22443 | { | |
22444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22445 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
22446 | ||
22447 | wxPyEndAllowThreads(__tstate); | |
22448 | if (PyErr_Occurred()) SWIG_fail; | |
22449 | } | |
22450 | Py_INCREF(Py_None); resultobj = Py_None; | |
22451 | return resultobj; | |
22452 | fail: | |
22453 | return NULL; | |
22454 | } | |
22455 | ||
22456 | ||
22457 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22458 | PyObject *resultobj; | |
22459 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22460 | PyObject * obj0 = 0 ; | |
22461 | char *kwnames[] = { | |
22462 | (char *) "self", NULL | |
22463 | }; | |
22464 | ||
22465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
22466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22467 | { | |
22468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22469 | (arg1)->Update(); | |
22470 | ||
22471 | wxPyEndAllowThreads(__tstate); | |
22472 | if (PyErr_Occurred()) SWIG_fail; | |
22473 | } | |
22474 | Py_INCREF(Py_None); resultobj = Py_None; | |
22475 | return resultobj; | |
22476 | fail: | |
22477 | return NULL; | |
22478 | } | |
22479 | ||
22480 | ||
22481 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22482 | PyObject *resultobj; | |
22483 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22484 | PyObject * obj0 = 0 ; | |
22485 | char *kwnames[] = { | |
22486 | (char *) "self", NULL | |
22487 | }; | |
22488 | ||
22489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
22490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22491 | { | |
22492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22493 | (arg1)->ClearBackground(); | |
22494 | ||
22495 | wxPyEndAllowThreads(__tstate); | |
22496 | if (PyErr_Occurred()) SWIG_fail; | |
22497 | } | |
22498 | Py_INCREF(Py_None); resultobj = Py_None; | |
22499 | return resultobj; | |
22500 | fail: | |
22501 | return NULL; | |
22502 | } | |
22503 | ||
22504 | ||
22505 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22506 | PyObject *resultobj; | |
22507 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22508 | PyObject * obj0 = 0 ; | |
22509 | char *kwnames[] = { | |
22510 | (char *) "self", NULL | |
22511 | }; | |
22512 | ||
22513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
22514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22515 | { | |
22516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22517 | (arg1)->Freeze(); | |
22518 | ||
22519 | wxPyEndAllowThreads(__tstate); | |
22520 | if (PyErr_Occurred()) SWIG_fail; | |
22521 | } | |
22522 | Py_INCREF(Py_None); resultobj = Py_None; | |
22523 | return resultobj; | |
22524 | fail: | |
22525 | return NULL; | |
22526 | } | |
22527 | ||
22528 | ||
22529 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22530 | PyObject *resultobj; | |
22531 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22532 | PyObject * obj0 = 0 ; | |
22533 | char *kwnames[] = { | |
22534 | (char *) "self", NULL | |
22535 | }; | |
22536 | ||
22537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
22538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22539 | { | |
22540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22541 | (arg1)->Thaw(); | |
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_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22554 | PyObject *resultobj; | |
22555 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22556 | wxDC *arg2 = 0 ; | |
22557 | PyObject * obj0 = 0 ; | |
22558 | PyObject * obj1 = 0 ; | |
22559 | char *kwnames[] = { | |
22560 | (char *) "self",(char *) "dc", NULL | |
22561 | }; | |
22562 | ||
22563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
22564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22565 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22566 | if (arg2 == NULL) { | |
22567 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22568 | } | |
22569 | { | |
22570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22571 | (arg1)->PrepareDC(*arg2); | |
22572 | ||
22573 | wxPyEndAllowThreads(__tstate); | |
22574 | if (PyErr_Occurred()) SWIG_fail; | |
22575 | } | |
22576 | Py_INCREF(Py_None); resultobj = Py_None; | |
22577 | return resultobj; | |
22578 | fail: | |
22579 | return NULL; | |
22580 | } | |
22581 | ||
22582 | ||
22583 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22584 | PyObject *resultobj; | |
22585 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22586 | wxRegion *result; | |
22587 | PyObject * obj0 = 0 ; | |
22588 | char *kwnames[] = { | |
22589 | (char *) "self", NULL | |
22590 | }; | |
22591 | ||
22592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
22593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22594 | { | |
22595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22596 | { | |
22597 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
22598 | result = (wxRegion *) &_result_ref; | |
22599 | } | |
22600 | ||
22601 | wxPyEndAllowThreads(__tstate); | |
22602 | if (PyErr_Occurred()) SWIG_fail; | |
22603 | } | |
22604 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 0); | |
22605 | return resultobj; | |
22606 | fail: | |
22607 | return NULL; | |
22608 | } | |
22609 | ||
22610 | ||
22611 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22612 | PyObject *resultobj; | |
22613 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22614 | wxRect result; | |
22615 | PyObject * obj0 = 0 ; | |
22616 | char *kwnames[] = { | |
22617 | (char *) "self", NULL | |
22618 | }; | |
22619 | ||
22620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
22621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22622 | { | |
22623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22624 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
22625 | ||
22626 | wxPyEndAllowThreads(__tstate); | |
22627 | if (PyErr_Occurred()) SWIG_fail; | |
22628 | } | |
22629 | { | |
22630 | wxRect * resultptr; | |
22631 | resultptr = new wxRect((wxRect &) result); | |
22632 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
22633 | } | |
22634 | return resultobj; | |
22635 | fail: | |
22636 | return NULL; | |
22637 | } | |
22638 | ||
22639 | ||
22640 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22641 | PyObject *resultobj; | |
22642 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22643 | int arg2 ; | |
22644 | int arg3 ; | |
22645 | int arg4 = (int) 1 ; | |
22646 | int arg5 = (int) 1 ; | |
22647 | bool result; | |
22648 | PyObject * obj0 = 0 ; | |
22649 | char *kwnames[] = { | |
22650 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
22651 | }; | |
22652 | ||
22653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|ii:Window_IsExposed",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
22654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22655 | { | |
22656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22657 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
22658 | ||
22659 | wxPyEndAllowThreads(__tstate); | |
22660 | if (PyErr_Occurred()) SWIG_fail; | |
22661 | } | |
22662 | resultobj = PyInt_FromLong((long)result); | |
22663 | return resultobj; | |
22664 | fail: | |
22665 | return NULL; | |
22666 | } | |
22667 | ||
22668 | ||
22669 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22670 | PyObject *resultobj; | |
22671 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22672 | wxPoint *arg2 = 0 ; | |
22673 | bool result; | |
22674 | wxPoint temp2 ; | |
22675 | PyObject * obj0 = 0 ; | |
22676 | PyObject * obj1 = 0 ; | |
22677 | char *kwnames[] = { | |
22678 | (char *) "self",(char *) "pt", NULL | |
22679 | }; | |
22680 | ||
22681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
22682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22683 | { | |
22684 | arg2 = &temp2; | |
22685 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22686 | } | |
22687 | { | |
22688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22689 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
22690 | ||
22691 | wxPyEndAllowThreads(__tstate); | |
22692 | if (PyErr_Occurred()) SWIG_fail; | |
22693 | } | |
22694 | resultobj = PyInt_FromLong((long)result); | |
22695 | return resultobj; | |
22696 | fail: | |
22697 | return NULL; | |
22698 | } | |
22699 | ||
22700 | ||
22701 | static PyObject *_wrap_Window_isExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22702 | PyObject *resultobj; | |
22703 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22704 | wxRect *arg2 = 0 ; | |
22705 | bool result; | |
22706 | wxRect temp2 ; | |
22707 | PyObject * obj0 = 0 ; | |
22708 | PyObject * obj1 = 0 ; | |
22709 | char *kwnames[] = { | |
22710 | (char *) "self",(char *) "rect", NULL | |
22711 | }; | |
22712 | ||
22713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_isExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
22714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22715 | { | |
22716 | arg2 = &temp2; | |
22717 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22718 | } | |
22719 | { | |
22720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22721 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
22722 | ||
22723 | wxPyEndAllowThreads(__tstate); | |
22724 | if (PyErr_Occurred()) SWIG_fail; | |
22725 | } | |
22726 | resultobj = PyInt_FromLong((long)result); | |
22727 | return resultobj; | |
22728 | fail: | |
22729 | return NULL; | |
22730 | } | |
22731 | ||
22732 | ||
22733 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22734 | PyObject *resultobj; | |
22735 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22736 | wxColour *arg2 = 0 ; | |
22737 | bool result; | |
22738 | wxColour temp2 ; | |
22739 | PyObject * obj0 = 0 ; | |
22740 | PyObject * obj1 = 0 ; | |
22741 | char *kwnames[] = { | |
22742 | (char *) "self",(char *) "colour", NULL | |
22743 | }; | |
22744 | ||
22745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
22746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22747 | { | |
22748 | arg2 = &temp2; | |
22749 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22750 | } | |
22751 | { | |
22752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22753 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
22754 | ||
22755 | wxPyEndAllowThreads(__tstate); | |
22756 | if (PyErr_Occurred()) SWIG_fail; | |
22757 | } | |
22758 | resultobj = PyInt_FromLong((long)result); | |
22759 | return resultobj; | |
22760 | fail: | |
22761 | return NULL; | |
22762 | } | |
22763 | ||
22764 | ||
22765 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22766 | PyObject *resultobj; | |
22767 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22768 | wxColour *arg2 = 0 ; | |
22769 | bool result; | |
22770 | wxColour temp2 ; | |
22771 | PyObject * obj0 = 0 ; | |
22772 | PyObject * obj1 = 0 ; | |
22773 | char *kwnames[] = { | |
22774 | (char *) "self",(char *) "colour", NULL | |
22775 | }; | |
22776 | ||
22777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
22778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22779 | { | |
22780 | arg2 = &temp2; | |
22781 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22782 | } | |
22783 | { | |
22784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22785 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
22786 | ||
22787 | wxPyEndAllowThreads(__tstate); | |
22788 | if (PyErr_Occurred()) SWIG_fail; | |
22789 | } | |
22790 | resultobj = PyInt_FromLong((long)result); | |
22791 | return resultobj; | |
22792 | fail: | |
22793 | return NULL; | |
22794 | } | |
22795 | ||
22796 | ||
22797 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22798 | PyObject *resultobj; | |
22799 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22800 | wxColour result; | |
22801 | PyObject * obj0 = 0 ; | |
22802 | char *kwnames[] = { | |
22803 | (char *) "self", NULL | |
22804 | }; | |
22805 | ||
22806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
22807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22808 | { | |
22809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22810 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
22811 | ||
22812 | wxPyEndAllowThreads(__tstate); | |
22813 | if (PyErr_Occurred()) SWIG_fail; | |
22814 | } | |
22815 | { | |
22816 | wxColour * resultptr; | |
22817 | resultptr = new wxColour((wxColour &) result); | |
22818 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22819 | } | |
22820 | return resultobj; | |
22821 | fail: | |
22822 | return NULL; | |
22823 | } | |
22824 | ||
22825 | ||
22826 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22827 | PyObject *resultobj; | |
22828 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22829 | wxColour result; | |
22830 | PyObject * obj0 = 0 ; | |
22831 | char *kwnames[] = { | |
22832 | (char *) "self", NULL | |
22833 | }; | |
22834 | ||
22835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
22836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22837 | { | |
22838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22839 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
22840 | ||
22841 | wxPyEndAllowThreads(__tstate); | |
22842 | if (PyErr_Occurred()) SWIG_fail; | |
22843 | } | |
22844 | { | |
22845 | wxColour * resultptr; | |
22846 | resultptr = new wxColour((wxColour &) result); | |
22847 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22848 | } | |
22849 | return resultobj; | |
22850 | fail: | |
22851 | return NULL; | |
22852 | } | |
22853 | ||
22854 | ||
22855 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22856 | PyObject *resultobj; | |
22857 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22858 | wxCursor *arg2 = 0 ; | |
22859 | bool result; | |
22860 | PyObject * obj0 = 0 ; | |
22861 | PyObject * obj1 = 0 ; | |
22862 | char *kwnames[] = { | |
22863 | (char *) "self",(char *) "cursor", NULL | |
22864 | }; | |
22865 | ||
22866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
22867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22868 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22869 | if (arg2 == NULL) { | |
22870 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22871 | } | |
22872 | { | |
22873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22874 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
22875 | ||
22876 | wxPyEndAllowThreads(__tstate); | |
22877 | if (PyErr_Occurred()) SWIG_fail; | |
22878 | } | |
22879 | resultobj = PyInt_FromLong((long)result); | |
22880 | return resultobj; | |
22881 | fail: | |
22882 | return NULL; | |
22883 | } | |
22884 | ||
22885 | ||
22886 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22887 | PyObject *resultobj; | |
22888 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22889 | wxCursor *result; | |
22890 | PyObject * obj0 = 0 ; | |
22891 | char *kwnames[] = { | |
22892 | (char *) "self", NULL | |
22893 | }; | |
22894 | ||
22895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
22896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22897 | { | |
22898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22899 | { | |
22900 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
22901 | result = (wxCursor *) &_result_ref; | |
22902 | } | |
22903 | ||
22904 | wxPyEndAllowThreads(__tstate); | |
22905 | if (PyErr_Occurred()) SWIG_fail; | |
22906 | } | |
22907 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
22908 | return resultobj; | |
22909 | fail: | |
22910 | return NULL; | |
22911 | } | |
22912 | ||
22913 | ||
22914 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22915 | PyObject *resultobj; | |
22916 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22917 | wxFont *arg2 = 0 ; | |
22918 | bool result; | |
22919 | PyObject * obj0 = 0 ; | |
22920 | PyObject * obj1 = 0 ; | |
22921 | char *kwnames[] = { | |
22922 | (char *) "self",(char *) "font", NULL | |
22923 | }; | |
22924 | ||
22925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
22926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22927 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22928 | if (arg2 == NULL) { | |
22929 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22930 | } | |
22931 | { | |
22932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22933 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
22934 | ||
22935 | wxPyEndAllowThreads(__tstate); | |
22936 | if (PyErr_Occurred()) SWIG_fail; | |
22937 | } | |
22938 | resultobj = PyInt_FromLong((long)result); | |
22939 | return resultobj; | |
22940 | fail: | |
22941 | return NULL; | |
22942 | } | |
22943 | ||
22944 | ||
22945 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22946 | PyObject *resultobj; | |
22947 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22948 | wxFont *result; | |
22949 | PyObject * obj0 = 0 ; | |
22950 | char *kwnames[] = { | |
22951 | (char *) "self", NULL | |
22952 | }; | |
22953 | ||
22954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
22955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22956 | { | |
22957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22958 | { | |
22959 | wxFont &_result_ref = (arg1)->GetFont(); | |
22960 | result = (wxFont *) &_result_ref; | |
22961 | } | |
22962 | ||
22963 | wxPyEndAllowThreads(__tstate); | |
22964 | if (PyErr_Occurred()) SWIG_fail; | |
22965 | } | |
22966 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
22967 | return resultobj; | |
22968 | fail: | |
22969 | return NULL; | |
22970 | } | |
22971 | ||
22972 | ||
22973 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22974 | PyObject *resultobj; | |
22975 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22976 | wxCaret *arg2 = (wxCaret *) 0 ; | |
22977 | PyObject * obj0 = 0 ; | |
22978 | PyObject * obj1 = 0 ; | |
22979 | char *kwnames[] = { | |
22980 | (char *) "self",(char *) "caret", NULL | |
22981 | }; | |
22982 | ||
22983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
22984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22985 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22986 | { | |
22987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22988 | (arg1)->SetCaret(arg2); | |
22989 | ||
22990 | wxPyEndAllowThreads(__tstate); | |
22991 | if (PyErr_Occurred()) SWIG_fail; | |
22992 | } | |
22993 | Py_INCREF(Py_None); resultobj = Py_None; | |
22994 | return resultobj; | |
22995 | fail: | |
22996 | return NULL; | |
22997 | } | |
22998 | ||
22999 | ||
23000 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23001 | PyObject *resultobj; | |
23002 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23003 | wxCaret *result; | |
23004 | PyObject * obj0 = 0 ; | |
23005 | char *kwnames[] = { | |
23006 | (char *) "self", NULL | |
23007 | }; | |
23008 | ||
23009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
23010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23011 | { | |
23012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23013 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
23014 | ||
23015 | wxPyEndAllowThreads(__tstate); | |
23016 | if (PyErr_Occurred()) SWIG_fail; | |
23017 | } | |
23018 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 0); | |
23019 | return resultobj; | |
23020 | fail: | |
23021 | return NULL; | |
23022 | } | |
23023 | ||
23024 | ||
23025 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23026 | PyObject *resultobj; | |
23027 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23028 | int result; | |
23029 | PyObject * obj0 = 0 ; | |
23030 | char *kwnames[] = { | |
23031 | (char *) "self", NULL | |
23032 | }; | |
23033 | ||
23034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
23035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23036 | { | |
23037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23038 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
23039 | ||
23040 | wxPyEndAllowThreads(__tstate); | |
23041 | if (PyErr_Occurred()) SWIG_fail; | |
23042 | } | |
23043 | resultobj = PyInt_FromLong((long)result); | |
23044 | return resultobj; | |
23045 | fail: | |
23046 | return NULL; | |
23047 | } | |
23048 | ||
23049 | ||
23050 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23051 | PyObject *resultobj; | |
23052 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23053 | int result; | |
23054 | PyObject * obj0 = 0 ; | |
23055 | char *kwnames[] = { | |
23056 | (char *) "self", NULL | |
23057 | }; | |
23058 | ||
23059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
23060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23061 | { | |
23062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23063 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
23064 | ||
23065 | wxPyEndAllowThreads(__tstate); | |
23066 | if (PyErr_Occurred()) SWIG_fail; | |
23067 | } | |
23068 | resultobj = PyInt_FromLong((long)result); | |
23069 | return resultobj; | |
23070 | fail: | |
23071 | return NULL; | |
23072 | } | |
23073 | ||
23074 | ||
23075 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23076 | PyObject *resultobj; | |
23077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23078 | wxString *arg2 = 0 ; | |
23079 | int *arg3 = (int *) 0 ; | |
23080 | int *arg4 = (int *) 0 ; | |
423f194a | 23081 | bool temp2 = False ; |
d14a1e28 RD |
23082 | int temp3 ; |
23083 | int temp4 ; | |
23084 | PyObject * obj0 = 0 ; | |
23085 | PyObject * obj1 = 0 ; | |
23086 | char *kwnames[] = { | |
23087 | (char *) "self",(char *) "string", NULL | |
23088 | }; | |
23089 | ||
23090 | arg3 = &temp3; | |
23091 | arg4 = &temp4; | |
23092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
23093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23094 | { | |
23095 | arg2 = wxString_in_helper(obj1); | |
23096 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23097 | temp2 = True; |
d14a1e28 RD |
23098 | } |
23099 | { | |
23100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23101 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
23102 | ||
23103 | wxPyEndAllowThreads(__tstate); | |
23104 | if (PyErr_Occurred()) SWIG_fail; | |
23105 | } | |
23106 | Py_INCREF(Py_None); resultobj = Py_None; | |
23107 | { | |
23108 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23109 | resultobj = t_output_helper(resultobj,o); | |
23110 | } | |
23111 | { | |
23112 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
23113 | resultobj = t_output_helper(resultobj,o); | |
23114 | } | |
23115 | { | |
23116 | if (temp2) | |
23117 | delete arg2; | |
23118 | } | |
23119 | return resultobj; | |
23120 | fail: | |
23121 | { | |
23122 | if (temp2) | |
23123 | delete arg2; | |
23124 | } | |
23125 | return NULL; | |
23126 | } | |
23127 | ||
23128 | ||
23129 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23130 | PyObject *resultobj; | |
23131 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23132 | wxString *arg2 = 0 ; | |
23133 | int *arg3 = (int *) 0 ; | |
23134 | int *arg4 = (int *) 0 ; | |
23135 | int *arg5 = (int *) 0 ; | |
23136 | int *arg6 = (int *) 0 ; | |
23137 | wxFont *arg7 = (wxFont *) NULL ; | |
423f194a | 23138 | bool temp2 = False ; |
d14a1e28 RD |
23139 | int temp3 ; |
23140 | int temp4 ; | |
23141 | int temp5 ; | |
23142 | int temp6 ; | |
23143 | PyObject * obj0 = 0 ; | |
23144 | PyObject * obj1 = 0 ; | |
23145 | PyObject * obj2 = 0 ; | |
23146 | char *kwnames[] = { | |
23147 | (char *) "self",(char *) "string",(char *) "font", NULL | |
23148 | }; | |
23149 | ||
23150 | arg3 = &temp3; | |
23151 | arg4 = &temp4; | |
23152 | arg5 = &temp5; | |
23153 | arg6 = &temp6; | |
23154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23156 | { | |
23157 | arg2 = wxString_in_helper(obj1); | |
23158 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23159 | temp2 = True; |
d14a1e28 RD |
23160 | } |
23161 | if (obj2) { | |
23162 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23163 | } | |
23164 | { | |
23165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23166 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
23167 | ||
23168 | wxPyEndAllowThreads(__tstate); | |
23169 | if (PyErr_Occurred()) SWIG_fail; | |
23170 | } | |
23171 | Py_INCREF(Py_None); resultobj = Py_None; | |
23172 | { | |
23173 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23174 | resultobj = t_output_helper(resultobj,o); | |
23175 | } | |
23176 | { | |
23177 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
23178 | resultobj = t_output_helper(resultobj,o); | |
23179 | } | |
23180 | { | |
23181 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
23182 | resultobj = t_output_helper(resultobj,o); | |
23183 | } | |
23184 | { | |
23185 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
23186 | resultobj = t_output_helper(resultobj,o); | |
23187 | } | |
23188 | { | |
23189 | if (temp2) | |
23190 | delete arg2; | |
23191 | } | |
23192 | return resultobj; | |
23193 | fail: | |
23194 | { | |
23195 | if (temp2) | |
23196 | delete arg2; | |
23197 | } | |
23198 | return NULL; | |
23199 | } | |
23200 | ||
23201 | ||
23202 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23203 | PyObject *resultobj; | |
23204 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23205 | int *arg2 = (int *) 0 ; | |
23206 | int *arg3 = (int *) 0 ; | |
23207 | int temp2 ; | |
23208 | int temp3 ; | |
23209 | PyObject * obj0 = 0 ; | |
23210 | PyObject * obj1 = 0 ; | |
23211 | PyObject * obj2 = 0 ; | |
23212 | char *kwnames[] = { | |
23213 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23214 | }; | |
23215 | ||
23216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23218 | { | |
23219 | temp2 = PyInt_AsLong(obj1); | |
23220 | if (PyErr_Occurred()) SWIG_fail; | |
23221 | arg2 = &temp2; | |
23222 | } | |
23223 | { | |
23224 | temp3 = PyInt_AsLong(obj2); | |
23225 | if (PyErr_Occurred()) SWIG_fail; | |
23226 | arg3 = &temp3; | |
23227 | } | |
23228 | { | |
23229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23230 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
23231 | ||
23232 | wxPyEndAllowThreads(__tstate); | |
23233 | if (PyErr_Occurred()) SWIG_fail; | |
23234 | } | |
23235 | Py_INCREF(Py_None); resultobj = Py_None; | |
23236 | { | |
23237 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23238 | resultobj = t_output_helper(resultobj,o); | |
23239 | } | |
23240 | { | |
23241 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23242 | resultobj = t_output_helper(resultobj,o); | |
23243 | } | |
23244 | return resultobj; | |
23245 | fail: | |
23246 | return NULL; | |
23247 | } | |
23248 | ||
23249 | ||
23250 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23251 | PyObject *resultobj; | |
23252 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23253 | int *arg2 = (int *) 0 ; | |
23254 | int *arg3 = (int *) 0 ; | |
23255 | int temp2 ; | |
23256 | int temp3 ; | |
23257 | PyObject * obj0 = 0 ; | |
23258 | PyObject * obj1 = 0 ; | |
23259 | PyObject * obj2 = 0 ; | |
23260 | char *kwnames[] = { | |
23261 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23262 | }; | |
23263 | ||
23264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23266 | { | |
23267 | temp2 = PyInt_AsLong(obj1); | |
23268 | if (PyErr_Occurred()) SWIG_fail; | |
23269 | arg2 = &temp2; | |
23270 | } | |
23271 | { | |
23272 | temp3 = PyInt_AsLong(obj2); | |
23273 | if (PyErr_Occurred()) SWIG_fail; | |
23274 | arg3 = &temp3; | |
23275 | } | |
23276 | { | |
23277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23278 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
23279 | ||
23280 | wxPyEndAllowThreads(__tstate); | |
23281 | if (PyErr_Occurred()) SWIG_fail; | |
23282 | } | |
23283 | Py_INCREF(Py_None); resultobj = Py_None; | |
23284 | { | |
23285 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23286 | resultobj = t_output_helper(resultobj,o); | |
23287 | } | |
23288 | { | |
23289 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23290 | resultobj = t_output_helper(resultobj,o); | |
23291 | } | |
23292 | return resultobj; | |
23293 | fail: | |
23294 | return NULL; | |
23295 | } | |
23296 | ||
23297 | ||
23298 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23299 | PyObject *resultobj; | |
23300 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23301 | wxPoint *arg2 = 0 ; | |
23302 | wxPoint result; | |
23303 | wxPoint temp2 ; | |
23304 | PyObject * obj0 = 0 ; | |
23305 | PyObject * obj1 = 0 ; | |
23306 | char *kwnames[] = { | |
23307 | (char *) "self",(char *) "pt", NULL | |
23308 | }; | |
23309 | ||
23310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
23311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23312 | { | |
23313 | arg2 = &temp2; | |
23314 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23315 | } | |
23316 | { | |
23317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23318 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
23319 | ||
23320 | wxPyEndAllowThreads(__tstate); | |
23321 | if (PyErr_Occurred()) SWIG_fail; | |
23322 | } | |
23323 | { | |
23324 | wxPoint * resultptr; | |
23325 | resultptr = new wxPoint((wxPoint &) result); | |
23326 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23327 | } | |
23328 | return resultobj; | |
23329 | fail: | |
23330 | return NULL; | |
23331 | } | |
23332 | ||
23333 | ||
23334 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23335 | PyObject *resultobj; | |
23336 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23337 | wxPoint *arg2 = 0 ; | |
23338 | wxPoint result; | |
23339 | wxPoint temp2 ; | |
23340 | PyObject * obj0 = 0 ; | |
23341 | PyObject * obj1 = 0 ; | |
23342 | char *kwnames[] = { | |
23343 | (char *) "self",(char *) "pt", NULL | |
23344 | }; | |
23345 | ||
23346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
23347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23348 | { | |
23349 | arg2 = &temp2; | |
23350 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23351 | } | |
23352 | { | |
23353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23354 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
23355 | ||
23356 | wxPyEndAllowThreads(__tstate); | |
23357 | if (PyErr_Occurred()) SWIG_fail; | |
23358 | } | |
23359 | { | |
23360 | wxPoint * resultptr; | |
23361 | resultptr = new wxPoint((wxPoint &) result); | |
23362 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23363 | } | |
23364 | return resultobj; | |
23365 | fail: | |
23366 | return NULL; | |
23367 | } | |
23368 | ||
23369 | ||
23370 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23371 | PyObject *resultobj; | |
23372 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a RD |
23373 | int arg2 ; |
23374 | int arg3 ; | |
d14a1e28 RD |
23375 | int result; |
23376 | PyObject * obj0 = 0 ; | |
23377 | char *kwnames[] = { | |
23378 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23379 | }; | |
23380 | ||
23381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_HitTestXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23383 | { | |
23384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23385 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
23386 | ||
23387 | wxPyEndAllowThreads(__tstate); | |
23388 | if (PyErr_Occurred()) SWIG_fail; | |
23389 | } | |
23390 | resultobj = PyInt_FromLong((long)result); | |
23391 | return resultobj; | |
23392 | fail: | |
23393 | return NULL; | |
23394 | } | |
23395 | ||
23396 | ||
23397 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23398 | PyObject *resultobj; | |
23399 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23400 | wxPoint *arg2 = 0 ; | |
23401 | int result; | |
23402 | wxPoint temp2 ; | |
23403 | PyObject * obj0 = 0 ; | |
23404 | PyObject * obj1 = 0 ; | |
23405 | char *kwnames[] = { | |
23406 | (char *) "self",(char *) "pt", NULL | |
23407 | }; | |
23408 | ||
23409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
23410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23411 | { | |
23412 | arg2 = &temp2; | |
23413 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23414 | } | |
23415 | { | |
23416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23417 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
23418 | ||
23419 | wxPyEndAllowThreads(__tstate); | |
23420 | if (PyErr_Occurred()) SWIG_fail; | |
23421 | } | |
23422 | resultobj = PyInt_FromLong((long)result); | |
23423 | return resultobj; | |
23424 | fail: | |
23425 | return NULL; | |
23426 | } | |
23427 | ||
23428 | ||
23429 | static PyObject *_wrap_Window_GetBorderFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23430 | PyObject *resultobj; | |
23431 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23432 | long arg2 ; | |
23433 | int result; | |
23434 | PyObject * obj0 = 0 ; | |
23435 | char *kwnames[] = { | |
23436 | (char *) "self",(char *) "flags", NULL | |
23437 | }; | |
23438 | ||
23439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_GetBorderFlags",kwnames,&obj0,&arg2)) goto fail; | |
23440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23441 | { | |
23442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23443 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
23444 | ||
23445 | wxPyEndAllowThreads(__tstate); | |
23446 | if (PyErr_Occurred()) SWIG_fail; | |
23447 | } | |
23448 | resultobj = PyInt_FromLong((long)result); | |
23449 | return resultobj; | |
23450 | fail: | |
23451 | return NULL; | |
23452 | } | |
23453 | ||
23454 | ||
23455 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23456 | PyObject *resultobj; | |
23457 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23458 | int result; | |
23459 | PyObject * obj0 = 0 ; | |
23460 | char *kwnames[] = { | |
23461 | (char *) "self", NULL | |
23462 | }; | |
23463 | ||
23464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBorder",kwnames,&obj0)) goto fail; | |
23465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23466 | { | |
23467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23468 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
23469 | ||
23470 | wxPyEndAllowThreads(__tstate); | |
23471 | if (PyErr_Occurred()) SWIG_fail; | |
23472 | } | |
23473 | resultobj = PyInt_FromLong((long)result); | |
23474 | return resultobj; | |
23475 | fail: | |
23476 | return NULL; | |
23477 | } | |
23478 | ||
23479 | ||
23480 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23481 | PyObject *resultobj; | |
23482 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23483 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
23484 | PyObject * obj0 = 0 ; | |
23485 | char *kwnames[] = { | |
23486 | (char *) "self",(char *) "flags", NULL | |
23487 | }; | |
23488 | ||
23489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:Window_UpdateWindowUI",kwnames,&obj0,&arg2)) goto fail; | |
23490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23491 | { | |
23492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23493 | (arg1)->UpdateWindowUI(arg2); | |
23494 | ||
23495 | wxPyEndAllowThreads(__tstate); | |
23496 | if (PyErr_Occurred()) SWIG_fail; | |
23497 | } | |
23498 | Py_INCREF(Py_None); resultobj = Py_None; | |
23499 | return resultobj; | |
23500 | fail: | |
23501 | return NULL; | |
23502 | } | |
23503 | ||
23504 | ||
23505 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23506 | PyObject *resultobj; | |
23507 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23508 | wxMenu *arg2 = (wxMenu *) 0 ; | |
23509 | int arg3 ; | |
23510 | int arg4 ; | |
23511 | bool result; | |
23512 | PyObject * obj0 = 0 ; | |
23513 | PyObject * obj1 = 0 ; | |
23514 | char *kwnames[] = { | |
23515 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
23516 | }; | |
23517 | ||
23518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:Window_PopupMenuXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
23519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23520 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23521 | { | |
23522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23523 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
23524 | ||
23525 | wxPyEndAllowThreads(__tstate); | |
23526 | if (PyErr_Occurred()) SWIG_fail; | |
23527 | } | |
23528 | resultobj = PyInt_FromLong((long)result); | |
23529 | return resultobj; | |
23530 | fail: | |
23531 | return NULL; | |
23532 | } | |
23533 | ||
23534 | ||
23535 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23536 | PyObject *resultobj; | |
23537 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23538 | wxMenu *arg2 = (wxMenu *) 0 ; | |
23539 | wxPoint *arg3 = 0 ; | |
23540 | bool result; | |
23541 | wxPoint temp3 ; | |
23542 | PyObject * obj0 = 0 ; | |
23543 | PyObject * obj1 = 0 ; | |
23544 | PyObject * obj2 = 0 ; | |
23545 | char *kwnames[] = { | |
23546 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
23547 | }; | |
23548 | ||
23549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23551 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23552 | { | |
23553 | arg3 = &temp3; | |
23554 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23555 | } | |
23556 | { | |
23557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23558 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
23559 | ||
23560 | wxPyEndAllowThreads(__tstate); | |
23561 | if (PyErr_Occurred()) SWIG_fail; | |
23562 | } | |
23563 | resultobj = PyInt_FromLong((long)result); | |
23564 | return resultobj; | |
23565 | fail: | |
23566 | return NULL; | |
23567 | } | |
23568 | ||
23569 | ||
23570 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23571 | PyObject *resultobj; | |
23572 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23573 | long result; | |
23574 | PyObject * obj0 = 0 ; | |
23575 | char *kwnames[] = { | |
23576 | (char *) "self", NULL | |
23577 | }; | |
23578 | ||
23579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
23580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23581 | { | |
23582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23583 | result = (long)wxWindow_GetHandle(arg1); | |
23584 | ||
23585 | wxPyEndAllowThreads(__tstate); | |
23586 | if (PyErr_Occurred()) SWIG_fail; | |
23587 | } | |
23588 | resultobj = PyInt_FromLong((long)result); | |
23589 | return resultobj; | |
23590 | fail: | |
23591 | return NULL; | |
23592 | } | |
23593 | ||
23594 | ||
23595 | static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23596 | PyObject *resultobj; | |
23597 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23598 | wxPaintEvent *arg2 = 0 ; | |
23599 | PyObject * obj0 = 0 ; | |
23600 | PyObject * obj1 = 0 ; | |
23601 | char *kwnames[] = { | |
23602 | (char *) "self",(char *) "event", NULL | |
23603 | }; | |
23604 | ||
23605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
23606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23607 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPaintEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23608 | if (arg2 == NULL) { | |
23609 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23610 | } | |
23611 | { | |
23612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23613 | (arg1)->OnPaint(*arg2); | |
23614 | ||
23615 | wxPyEndAllowThreads(__tstate); | |
23616 | if (PyErr_Occurred()) SWIG_fail; | |
23617 | } | |
23618 | Py_INCREF(Py_None); resultobj = Py_None; | |
23619 | return resultobj; | |
23620 | fail: | |
23621 | return NULL; | |
23622 | } | |
23623 | ||
23624 | ||
23625 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23626 | PyObject *resultobj; | |
23627 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23628 | int arg2 ; | |
23629 | bool result; | |
23630 | PyObject * obj0 = 0 ; | |
23631 | char *kwnames[] = { | |
23632 | (char *) "self",(char *) "orient", NULL | |
23633 | }; | |
23634 | ||
23635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_HasScrollbar",kwnames,&obj0,&arg2)) goto fail; | |
23636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23637 | { | |
23638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23639 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
23640 | ||
23641 | wxPyEndAllowThreads(__tstate); | |
23642 | if (PyErr_Occurred()) SWIG_fail; | |
23643 | } | |
23644 | resultobj = PyInt_FromLong((long)result); | |
23645 | return resultobj; | |
23646 | fail: | |
23647 | return NULL; | |
23648 | } | |
23649 | ||
23650 | ||
23651 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23652 | PyObject *resultobj; | |
23653 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23654 | int arg2 ; | |
23655 | int arg3 ; | |
23656 | int arg4 ; | |
23657 | int arg5 ; | |
423f194a | 23658 | bool arg6 = (bool) True ; |
d14a1e28 RD |
23659 | PyObject * obj0 = 0 ; |
23660 | PyObject * obj5 = 0 ; | |
23661 | char *kwnames[] = { | |
23662 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL | |
23663 | }; | |
23664 | ||
23665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|O:Window_SetScrollbar",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
23666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23667 | if (obj5) { | |
23668 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
23669 | if (PyErr_Occurred()) SWIG_fail; | |
23670 | } | |
23671 | { | |
23672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23673 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
23674 | ||
23675 | wxPyEndAllowThreads(__tstate); | |
23676 | if (PyErr_Occurred()) SWIG_fail; | |
23677 | } | |
23678 | Py_INCREF(Py_None); resultobj = Py_None; | |
23679 | return resultobj; | |
23680 | fail: | |
23681 | return NULL; | |
23682 | } | |
23683 | ||
23684 | ||
23685 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23686 | PyObject *resultobj; | |
23687 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23688 | int arg2 ; | |
23689 | int arg3 ; | |
423f194a | 23690 | bool arg4 = (bool) True ; |
d14a1e28 RD |
23691 | PyObject * obj0 = 0 ; |
23692 | PyObject * obj3 = 0 ; | |
23693 | char *kwnames[] = { | |
23694 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "refresh", NULL | |
23695 | }; | |
23696 | ||
23697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Window_SetScrollPos",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
23698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23699 | if (obj3) { | |
23700 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
23701 | if (PyErr_Occurred()) SWIG_fail; | |
23702 | } | |
23703 | { | |
23704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23705 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
23706 | ||
23707 | wxPyEndAllowThreads(__tstate); | |
23708 | if (PyErr_Occurred()) SWIG_fail; | |
23709 | } | |
23710 | Py_INCREF(Py_None); resultobj = Py_None; | |
23711 | return resultobj; | |
23712 | fail: | |
23713 | return NULL; | |
23714 | } | |
23715 | ||
23716 | ||
23717 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23718 | PyObject *resultobj; | |
23719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23720 | int arg2 ; | |
23721 | int result; | |
23722 | PyObject * obj0 = 0 ; | |
23723 | char *kwnames[] = { | |
23724 | (char *) "self",(char *) "orient", NULL | |
23725 | }; | |
23726 | ||
23727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_GetScrollPos",kwnames,&obj0,&arg2)) goto fail; | |
23728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23729 | { | |
23730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23731 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
23732 | ||
23733 | wxPyEndAllowThreads(__tstate); | |
23734 | if (PyErr_Occurred()) SWIG_fail; | |
23735 | } | |
23736 | resultobj = PyInt_FromLong((long)result); | |
23737 | return resultobj; | |
23738 | fail: | |
23739 | return NULL; | |
23740 | } | |
23741 | ||
23742 | ||
23743 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23744 | PyObject *resultobj; | |
23745 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23746 | int arg2 ; | |
23747 | int result; | |
23748 | PyObject * obj0 = 0 ; | |
23749 | char *kwnames[] = { | |
23750 | (char *) "self",(char *) "orient", NULL | |
23751 | }; | |
23752 | ||
23753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_GetScrollThumb",kwnames,&obj0,&arg2)) goto fail; | |
23754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23755 | { | |
23756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23757 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
23758 | ||
23759 | wxPyEndAllowThreads(__tstate); | |
23760 | if (PyErr_Occurred()) SWIG_fail; | |
23761 | } | |
23762 | resultobj = PyInt_FromLong((long)result); | |
23763 | return resultobj; | |
23764 | fail: | |
23765 | return NULL; | |
23766 | } | |
23767 | ||
23768 | ||
23769 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23770 | PyObject *resultobj; | |
23771 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23772 | int arg2 ; | |
23773 | int result; | |
23774 | PyObject * obj0 = 0 ; | |
23775 | char *kwnames[] = { | |
23776 | (char *) "self",(char *) "orient", NULL | |
23777 | }; | |
23778 | ||
23779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_GetScrollRange",kwnames,&obj0,&arg2)) goto fail; | |
23780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23781 | { | |
23782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23783 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
23784 | ||
23785 | wxPyEndAllowThreads(__tstate); | |
23786 | if (PyErr_Occurred()) SWIG_fail; | |
23787 | } | |
23788 | resultobj = PyInt_FromLong((long)result); | |
23789 | return resultobj; | |
23790 | fail: | |
23791 | return NULL; | |
23792 | } | |
23793 | ||
23794 | ||
23795 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23796 | PyObject *resultobj; | |
23797 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23798 | int arg2 ; | |
23799 | int arg3 ; | |
23800 | wxRect *arg4 = (wxRect *) NULL ; | |
23801 | PyObject * obj0 = 0 ; | |
23802 | PyObject * obj3 = 0 ; | |
23803 | char *kwnames[] = { | |
23804 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
23805 | }; | |
23806 | ||
23807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Window_ScrollWindow",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
23808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23809 | if (obj3) { | |
23810 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23811 | } | |
23812 | { | |
23813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23814 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
23815 | ||
23816 | wxPyEndAllowThreads(__tstate); | |
23817 | if (PyErr_Occurred()) SWIG_fail; | |
23818 | } | |
23819 | Py_INCREF(Py_None); resultobj = Py_None; | |
23820 | return resultobj; | |
23821 | fail: | |
23822 | return NULL; | |
23823 | } | |
23824 | ||
23825 | ||
23826 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23827 | PyObject *resultobj; | |
23828 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23829 | int arg2 ; | |
23830 | bool result; | |
23831 | PyObject * obj0 = 0 ; | |
23832 | char *kwnames[] = { | |
23833 | (char *) "self",(char *) "lines", NULL | |
23834 | }; | |
23835 | ||
23836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_ScrollLines",kwnames,&obj0,&arg2)) goto fail; | |
23837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23838 | { | |
23839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23840 | result = (bool)(arg1)->ScrollLines(arg2); | |
23841 | ||
23842 | wxPyEndAllowThreads(__tstate); | |
23843 | if (PyErr_Occurred()) SWIG_fail; | |
23844 | } | |
23845 | resultobj = PyInt_FromLong((long)result); | |
23846 | return resultobj; | |
23847 | fail: | |
23848 | return NULL; | |
23849 | } | |
23850 | ||
23851 | ||
23852 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23853 | PyObject *resultobj; | |
23854 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23855 | int arg2 ; | |
23856 | bool result; | |
23857 | PyObject * obj0 = 0 ; | |
23858 | char *kwnames[] = { | |
23859 | (char *) "self",(char *) "pages", NULL | |
23860 | }; | |
23861 | ||
23862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_ScrollPages",kwnames,&obj0,&arg2)) goto fail; | |
23863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23864 | { | |
23865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23866 | result = (bool)(arg1)->ScrollPages(arg2); | |
23867 | ||
23868 | wxPyEndAllowThreads(__tstate); | |
23869 | if (PyErr_Occurred()) SWIG_fail; | |
23870 | } | |
23871 | resultobj = PyInt_FromLong((long)result); | |
23872 | return resultobj; | |
23873 | fail: | |
23874 | return NULL; | |
23875 | } | |
23876 | ||
23877 | ||
23878 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23879 | PyObject *resultobj; | |
23880 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23881 | bool result; | |
23882 | PyObject * obj0 = 0 ; | |
23883 | char *kwnames[] = { | |
23884 | (char *) "self", NULL | |
23885 | }; | |
23886 | ||
23887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
23888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23889 | { | |
23890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23891 | result = (bool)(arg1)->LineUp(); | |
23892 | ||
23893 | wxPyEndAllowThreads(__tstate); | |
23894 | if (PyErr_Occurred()) SWIG_fail; | |
23895 | } | |
23896 | resultobj = PyInt_FromLong((long)result); | |
23897 | return resultobj; | |
23898 | fail: | |
23899 | return NULL; | |
23900 | } | |
23901 | ||
23902 | ||
23903 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23904 | PyObject *resultobj; | |
23905 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23906 | bool result; | |
23907 | PyObject * obj0 = 0 ; | |
23908 | char *kwnames[] = { | |
23909 | (char *) "self", NULL | |
23910 | }; | |
23911 | ||
23912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
23913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23914 | { | |
23915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23916 | result = (bool)(arg1)->LineDown(); | |
23917 | ||
23918 | wxPyEndAllowThreads(__tstate); | |
23919 | if (PyErr_Occurred()) SWIG_fail; | |
23920 | } | |
23921 | resultobj = PyInt_FromLong((long)result); | |
23922 | return resultobj; | |
23923 | fail: | |
23924 | return NULL; | |
23925 | } | |
23926 | ||
23927 | ||
23928 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23929 | PyObject *resultobj; | |
23930 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23931 | bool result; | |
23932 | PyObject * obj0 = 0 ; | |
23933 | char *kwnames[] = { | |
23934 | (char *) "self", NULL | |
23935 | }; | |
23936 | ||
23937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
23938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23939 | { | |
23940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23941 | result = (bool)(arg1)->PageUp(); | |
23942 | ||
23943 | wxPyEndAllowThreads(__tstate); | |
23944 | if (PyErr_Occurred()) SWIG_fail; | |
23945 | } | |
23946 | resultobj = PyInt_FromLong((long)result); | |
23947 | return resultobj; | |
23948 | fail: | |
23949 | return NULL; | |
23950 | } | |
23951 | ||
23952 | ||
23953 | static PyObject *_wrap_Window_PageDown(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_PageDown",kwnames,&obj0)) goto fail; | |
23963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23964 | { | |
23965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23966 | result = (bool)(arg1)->PageDown(); | |
23967 | ||
23968 | wxPyEndAllowThreads(__tstate); | |
23969 | if (PyErr_Occurred()) SWIG_fail; | |
23970 | } | |
23971 | resultobj = PyInt_FromLong((long)result); | |
23972 | return resultobj; | |
23973 | fail: | |
23974 | return NULL; | |
23975 | } | |
23976 | ||
23977 | ||
23978 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23979 | PyObject *resultobj; | |
23980 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23981 | wxString *arg2 = 0 ; | |
423f194a | 23982 | bool temp2 = False ; |
d14a1e28 RD |
23983 | PyObject * obj0 = 0 ; |
23984 | PyObject * obj1 = 0 ; | |
23985 | char *kwnames[] = { | |
23986 | (char *) "self",(char *) "text", NULL | |
23987 | }; | |
23988 | ||
23989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
23990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23991 | { | |
23992 | arg2 = wxString_in_helper(obj1); | |
23993 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23994 | temp2 = True; |
d14a1e28 RD |
23995 | } |
23996 | { | |
23997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23998 | (arg1)->SetHelpText((wxString const &)*arg2); | |
23999 | ||
24000 | wxPyEndAllowThreads(__tstate); | |
24001 | if (PyErr_Occurred()) SWIG_fail; | |
24002 | } | |
24003 | Py_INCREF(Py_None); resultobj = Py_None; | |
24004 | { | |
24005 | if (temp2) | |
24006 | delete arg2; | |
24007 | } | |
24008 | return resultobj; | |
24009 | fail: | |
24010 | { | |
24011 | if (temp2) | |
24012 | delete arg2; | |
24013 | } | |
24014 | return NULL; | |
24015 | } | |
24016 | ||
24017 | ||
24018 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24019 | PyObject *resultobj; | |
24020 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24021 | wxString *arg2 = 0 ; | |
423f194a | 24022 | bool temp2 = False ; |
d14a1e28 RD |
24023 | PyObject * obj0 = 0 ; |
24024 | PyObject * obj1 = 0 ; | |
24025 | char *kwnames[] = { | |
24026 | (char *) "self",(char *) "text", NULL | |
24027 | }; | |
24028 | ||
24029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
24030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24031 | { | |
24032 | arg2 = wxString_in_helper(obj1); | |
24033 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24034 | temp2 = True; |
d14a1e28 RD |
24035 | } |
24036 | { | |
24037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24038 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
24039 | ||
24040 | wxPyEndAllowThreads(__tstate); | |
24041 | if (PyErr_Occurred()) SWIG_fail; | |
24042 | } | |
24043 | Py_INCREF(Py_None); resultobj = Py_None; | |
24044 | { | |
24045 | if (temp2) | |
24046 | delete arg2; | |
24047 | } | |
24048 | return resultobj; | |
24049 | fail: | |
24050 | { | |
24051 | if (temp2) | |
24052 | delete arg2; | |
24053 | } | |
24054 | return NULL; | |
24055 | } | |
24056 | ||
24057 | ||
24058 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24059 | PyObject *resultobj; | |
24060 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24061 | wxString result; | |
24062 | PyObject * obj0 = 0 ; | |
24063 | char *kwnames[] = { | |
24064 | (char *) "self", NULL | |
24065 | }; | |
24066 | ||
24067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
24068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24069 | { | |
24070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24071 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
24072 | ||
24073 | wxPyEndAllowThreads(__tstate); | |
24074 | if (PyErr_Occurred()) SWIG_fail; | |
24075 | } | |
24076 | { | |
24077 | #if wxUSE_UNICODE | |
24078 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24079 | #else | |
24080 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24081 | #endif | |
24082 | } | |
24083 | return resultobj; | |
24084 | fail: | |
24085 | return NULL; | |
24086 | } | |
24087 | ||
24088 | ||
24089 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24090 | PyObject *resultobj; | |
24091 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24092 | wxString *arg2 = 0 ; | |
423f194a | 24093 | bool temp2 = False ; |
d14a1e28 RD |
24094 | PyObject * obj0 = 0 ; |
24095 | PyObject * obj1 = 0 ; | |
24096 | char *kwnames[] = { | |
24097 | (char *) "self",(char *) "tip", NULL | |
24098 | }; | |
24099 | ||
24100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
24101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24102 | { | |
24103 | arg2 = wxString_in_helper(obj1); | |
24104 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24105 | temp2 = True; |
d14a1e28 RD |
24106 | } |
24107 | { | |
24108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24109 | (arg1)->SetToolTip((wxString const &)*arg2); | |
24110 | ||
24111 | wxPyEndAllowThreads(__tstate); | |
24112 | if (PyErr_Occurred()) SWIG_fail; | |
24113 | } | |
24114 | Py_INCREF(Py_None); resultobj = Py_None; | |
24115 | { | |
24116 | if (temp2) | |
24117 | delete arg2; | |
24118 | } | |
24119 | return resultobj; | |
24120 | fail: | |
24121 | { | |
24122 | if (temp2) | |
24123 | delete arg2; | |
24124 | } | |
24125 | return NULL; | |
24126 | } | |
24127 | ||
24128 | ||
24129 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24130 | PyObject *resultobj; | |
24131 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24132 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
24133 | PyObject * obj0 = 0 ; | |
24134 | PyObject * obj1 = 0 ; | |
24135 | char *kwnames[] = { | |
24136 | (char *) "self",(char *) "tip", NULL | |
24137 | }; | |
24138 | ||
24139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
24140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24141 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24142 | { | |
24143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24144 | (arg1)->SetToolTip(arg2); | |
24145 | ||
24146 | wxPyEndAllowThreads(__tstate); | |
24147 | if (PyErr_Occurred()) SWIG_fail; | |
24148 | } | |
24149 | Py_INCREF(Py_None); resultobj = Py_None; | |
24150 | return resultobj; | |
24151 | fail: | |
24152 | return NULL; | |
24153 | } | |
24154 | ||
24155 | ||
24156 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24157 | PyObject *resultobj; | |
24158 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24159 | wxToolTip *result; | |
24160 | PyObject * obj0 = 0 ; | |
24161 | char *kwnames[] = { | |
24162 | (char *) "self", NULL | |
24163 | }; | |
24164 | ||
24165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
24166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24167 | { | |
24168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24169 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
24170 | ||
24171 | wxPyEndAllowThreads(__tstate); | |
24172 | if (PyErr_Occurred()) SWIG_fail; | |
24173 | } | |
24174 | { | |
24175 | resultobj = wxPyMake_wxObject(result); | |
24176 | } | |
24177 | return resultobj; | |
24178 | fail: | |
24179 | return NULL; | |
24180 | } | |
24181 | ||
24182 | ||
24183 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24184 | PyObject *resultobj; | |
24185 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 24186 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
24187 | PyObject * obj0 = 0 ; |
24188 | PyObject * obj1 = 0 ; | |
24189 | char *kwnames[] = { | |
24190 | (char *) "self",(char *) "dropTarget", NULL | |
24191 | }; | |
24192 | ||
24193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
24194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
44127b65 | 24195 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
24196 | { |
24197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24198 | (arg1)->SetDropTarget(arg2); | |
24199 | ||
24200 | wxPyEndAllowThreads(__tstate); | |
24201 | if (PyErr_Occurred()) SWIG_fail; | |
24202 | } | |
24203 | Py_INCREF(Py_None); resultobj = Py_None; | |
24204 | return resultobj; | |
24205 | fail: | |
24206 | return NULL; | |
24207 | } | |
24208 | ||
24209 | ||
24210 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24211 | PyObject *resultobj; | |
24212 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 24213 | wxPyDropTarget *result; |
d14a1e28 RD |
24214 | PyObject * obj0 = 0 ; |
24215 | char *kwnames[] = { | |
24216 | (char *) "self", NULL | |
24217 | }; | |
24218 | ||
24219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
24220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24221 | { | |
24222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 24223 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
24224 | |
24225 | wxPyEndAllowThreads(__tstate); | |
24226 | if (PyErr_Occurred()) SWIG_fail; | |
24227 | } | |
44127b65 | 24228 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
24229 | return resultobj; |
24230 | fail: | |
24231 | return NULL; | |
24232 | } | |
24233 | ||
24234 | ||
24235 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24236 | PyObject *resultobj; | |
24237 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24238 | bool arg2 ; | |
24239 | PyObject * obj0 = 0 ; | |
24240 | PyObject * obj1 = 0 ; | |
24241 | char *kwnames[] = { | |
24242 | (char *) "self",(char *) "accept", NULL | |
24243 | }; | |
24244 | ||
24245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
24246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24247 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
24248 | if (PyErr_Occurred()) SWIG_fail; | |
24249 | { | |
24250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24251 | (arg1)->DragAcceptFiles(arg2); | |
24252 | ||
24253 | wxPyEndAllowThreads(__tstate); | |
24254 | if (PyErr_Occurred()) SWIG_fail; | |
24255 | } | |
24256 | Py_INCREF(Py_None); resultobj = Py_None; | |
24257 | return resultobj; | |
24258 | fail: | |
24259 | return NULL; | |
24260 | } | |
24261 | ||
24262 | ||
24263 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24264 | PyObject *resultobj; | |
24265 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24266 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
24267 | PyObject * obj0 = 0 ; | |
24268 | PyObject * obj1 = 0 ; | |
24269 | char *kwnames[] = { | |
24270 | (char *) "self",(char *) "constraints", NULL | |
24271 | }; | |
24272 | ||
24273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
24274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24275 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24276 | { | |
24277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24278 | (arg1)->SetConstraints(arg2); | |
24279 | ||
24280 | wxPyEndAllowThreads(__tstate); | |
24281 | if (PyErr_Occurred()) SWIG_fail; | |
24282 | } | |
24283 | Py_INCREF(Py_None); resultobj = Py_None; | |
24284 | return resultobj; | |
24285 | fail: | |
24286 | return NULL; | |
24287 | } | |
24288 | ||
24289 | ||
24290 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24291 | PyObject *resultobj; | |
24292 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24293 | wxLayoutConstraints *result; | |
24294 | PyObject * obj0 = 0 ; | |
24295 | char *kwnames[] = { | |
24296 | (char *) "self", NULL | |
24297 | }; | |
24298 | ||
24299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
24300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24301 | { | |
24302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24303 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
24304 | ||
24305 | wxPyEndAllowThreads(__tstate); | |
24306 | if (PyErr_Occurred()) SWIG_fail; | |
24307 | } | |
24308 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 0); | |
24309 | return resultobj; | |
24310 | fail: | |
24311 | return NULL; | |
24312 | } | |
24313 | ||
24314 | ||
24315 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24316 | PyObject *resultobj; | |
24317 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24318 | bool arg2 ; | |
24319 | PyObject * obj0 = 0 ; | |
24320 | PyObject * obj1 = 0 ; | |
24321 | char *kwnames[] = { | |
24322 | (char *) "self",(char *) "autoLayout", NULL | |
24323 | }; | |
24324 | ||
24325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
24326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24327 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
24328 | if (PyErr_Occurred()) SWIG_fail; | |
24329 | { | |
24330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24331 | (arg1)->SetAutoLayout(arg2); | |
24332 | ||
24333 | wxPyEndAllowThreads(__tstate); | |
24334 | if (PyErr_Occurred()) SWIG_fail; | |
24335 | } | |
24336 | Py_INCREF(Py_None); resultobj = Py_None; | |
24337 | return resultobj; | |
24338 | fail: | |
24339 | return NULL; | |
24340 | } | |
24341 | ||
24342 | ||
24343 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24344 | PyObject *resultobj; | |
24345 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24346 | bool result; | |
24347 | PyObject * obj0 = 0 ; | |
24348 | char *kwnames[] = { | |
24349 | (char *) "self", NULL | |
24350 | }; | |
24351 | ||
24352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
24353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24354 | { | |
24355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24356 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
24357 | ||
24358 | wxPyEndAllowThreads(__tstate); | |
24359 | if (PyErr_Occurred()) SWIG_fail; | |
24360 | } | |
24361 | resultobj = PyInt_FromLong((long)result); | |
24362 | return resultobj; | |
24363 | fail: | |
24364 | return NULL; | |
24365 | } | |
24366 | ||
24367 | ||
24368 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24369 | PyObject *resultobj; | |
24370 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24371 | bool result; | |
24372 | PyObject * obj0 = 0 ; | |
24373 | char *kwnames[] = { | |
24374 | (char *) "self", NULL | |
24375 | }; | |
24376 | ||
24377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
24378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24379 | { | |
24380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24381 | result = (bool)(arg1)->Layout(); | |
24382 | ||
24383 | wxPyEndAllowThreads(__tstate); | |
24384 | if (PyErr_Occurred()) SWIG_fail; | |
24385 | } | |
24386 | resultobj = PyInt_FromLong((long)result); | |
24387 | return resultobj; | |
24388 | fail: | |
24389 | return NULL; | |
24390 | } | |
24391 | ||
24392 | ||
24393 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24394 | PyObject *resultobj; | |
24395 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24396 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 24397 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24398 | PyObject * obj0 = 0 ; |
24399 | PyObject * obj1 = 0 ; | |
24400 | PyObject * obj2 = 0 ; | |
24401 | char *kwnames[] = { | |
24402 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
24403 | }; | |
24404 | ||
24405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24407 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24408 | if (obj2) { | |
24409 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
24410 | if (PyErr_Occurred()) SWIG_fail; | |
24411 | } | |
24412 | { | |
24413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24414 | (arg1)->SetSizer(arg2,arg3); | |
24415 | ||
24416 | wxPyEndAllowThreads(__tstate); | |
24417 | if (PyErr_Occurred()) SWIG_fail; | |
24418 | } | |
24419 | Py_INCREF(Py_None); resultobj = Py_None; | |
24420 | return resultobj; | |
24421 | fail: | |
24422 | return NULL; | |
24423 | } | |
24424 | ||
24425 | ||
24426 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24427 | PyObject *resultobj; | |
24428 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24429 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 24430 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24431 | PyObject * obj0 = 0 ; |
24432 | PyObject * obj1 = 0 ; | |
24433 | PyObject * obj2 = 0 ; | |
24434 | char *kwnames[] = { | |
24435 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
24436 | }; | |
24437 | ||
24438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24440 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24441 | if (obj2) { | |
24442 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
24443 | if (PyErr_Occurred()) SWIG_fail; | |
24444 | } | |
24445 | { | |
24446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24447 | (arg1)->SetSizerAndFit(arg2,arg3); | |
24448 | ||
24449 | wxPyEndAllowThreads(__tstate); | |
24450 | if (PyErr_Occurred()) SWIG_fail; | |
24451 | } | |
24452 | Py_INCREF(Py_None); resultobj = Py_None; | |
24453 | return resultobj; | |
24454 | fail: | |
24455 | return NULL; | |
24456 | } | |
24457 | ||
24458 | ||
24459 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24460 | PyObject *resultobj; | |
24461 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24462 | wxSizer *result; | |
24463 | PyObject * obj0 = 0 ; | |
24464 | char *kwnames[] = { | |
24465 | (char *) "self", NULL | |
24466 | }; | |
24467 | ||
24468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
24469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24470 | { | |
24471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24472 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
24473 | ||
24474 | wxPyEndAllowThreads(__tstate); | |
24475 | if (PyErr_Occurred()) SWIG_fail; | |
24476 | } | |
24477 | { | |
24478 | resultobj = wxPyMake_wxSizer(result); | |
24479 | } | |
24480 | return resultobj; | |
24481 | fail: | |
24482 | return NULL; | |
24483 | } | |
24484 | ||
24485 | ||
24486 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24487 | PyObject *resultobj; | |
24488 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24489 | wxSizer *arg2 = (wxSizer *) 0 ; | |
24490 | PyObject * obj0 = 0 ; | |
24491 | PyObject * obj1 = 0 ; | |
24492 | char *kwnames[] = { | |
24493 | (char *) "self",(char *) "sizer", NULL | |
24494 | }; | |
24495 | ||
24496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
24497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24498 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24499 | { | |
24500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24501 | (arg1)->SetContainingSizer(arg2); | |
24502 | ||
24503 | wxPyEndAllowThreads(__tstate); | |
24504 | if (PyErr_Occurred()) SWIG_fail; | |
24505 | } | |
24506 | Py_INCREF(Py_None); resultobj = Py_None; | |
24507 | return resultobj; | |
24508 | fail: | |
24509 | return NULL; | |
24510 | } | |
24511 | ||
24512 | ||
24513 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24514 | PyObject *resultobj; | |
24515 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24516 | wxSizer *result; | |
24517 | PyObject * obj0 = 0 ; | |
24518 | char *kwnames[] = { | |
24519 | (char *) "self", NULL | |
24520 | }; | |
24521 | ||
24522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
24523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24524 | { | |
24525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24526 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
24527 | ||
24528 | wxPyEndAllowThreads(__tstate); | |
24529 | if (PyErr_Occurred()) SWIG_fail; | |
24530 | } | |
24531 | { | |
24532 | resultobj = wxPyMake_wxSizer(result); | |
24533 | } | |
24534 | return resultobj; | |
24535 | fail: | |
24536 | return NULL; | |
24537 | } | |
24538 | ||
24539 | ||
24540 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
24541 | PyObject *obj; | |
24542 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24543 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
24544 | Py_INCREF(obj); | |
24545 | return Py_BuildValue((char *)""); | |
24546 | } | |
24547 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24548 | PyObject *resultobj; | |
24549 | long arg1 ; | |
24550 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24551 | wxWindow *result; | |
24552 | PyObject * obj1 = 0 ; | |
24553 | char *kwnames[] = { | |
24554 | (char *) "id",(char *) "parent", NULL | |
24555 | }; | |
24556 | ||
24557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l|O:FindWindowById",kwnames,&arg1,&obj1)) goto fail; | |
24558 | if (obj1) { | |
24559 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24560 | } | |
24561 | { | |
24562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24563 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
24564 | ||
24565 | wxPyEndAllowThreads(__tstate); | |
24566 | if (PyErr_Occurred()) SWIG_fail; | |
24567 | } | |
24568 | { | |
24569 | resultobj = wxPyMake_wxObject(result); | |
24570 | } | |
24571 | return resultobj; | |
24572 | fail: | |
24573 | return NULL; | |
24574 | } | |
24575 | ||
24576 | ||
24577 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24578 | PyObject *resultobj; | |
24579 | wxString *arg1 = 0 ; | |
24580 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24581 | wxWindow *result; | |
423f194a | 24582 | bool temp1 = False ; |
d14a1e28 RD |
24583 | PyObject * obj0 = 0 ; |
24584 | PyObject * obj1 = 0 ; | |
24585 | char *kwnames[] = { | |
24586 | (char *) "name",(char *) "parent", NULL | |
24587 | }; | |
24588 | ||
24589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
24590 | { | |
24591 | arg1 = wxString_in_helper(obj0); | |
24592 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 24593 | temp1 = True; |
d14a1e28 RD |
24594 | } |
24595 | if (obj1) { | |
24596 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24597 | } | |
24598 | { | |
24599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24600 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
24601 | ||
24602 | wxPyEndAllowThreads(__tstate); | |
24603 | if (PyErr_Occurred()) SWIG_fail; | |
24604 | } | |
24605 | { | |
24606 | resultobj = wxPyMake_wxObject(result); | |
24607 | } | |
24608 | { | |
24609 | if (temp1) | |
24610 | delete arg1; | |
24611 | } | |
24612 | return resultobj; | |
24613 | fail: | |
24614 | { | |
24615 | if (temp1) | |
24616 | delete arg1; | |
24617 | } | |
24618 | return NULL; | |
24619 | } | |
24620 | ||
24621 | ||
24622 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24623 | PyObject *resultobj; | |
24624 | wxString *arg1 = 0 ; | |
24625 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24626 | wxWindow *result; | |
423f194a | 24627 | bool temp1 = False ; |
d14a1e28 RD |
24628 | PyObject * obj0 = 0 ; |
24629 | PyObject * obj1 = 0 ; | |
24630 | char *kwnames[] = { | |
24631 | (char *) "label",(char *) "parent", NULL | |
24632 | }; | |
24633 | ||
24634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
24635 | { | |
24636 | arg1 = wxString_in_helper(obj0); | |
24637 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 24638 | temp1 = True; |
d14a1e28 RD |
24639 | } |
24640 | if (obj1) { | |
24641 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24642 | } | |
24643 | { | |
24644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24645 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
24646 | ||
24647 | wxPyEndAllowThreads(__tstate); | |
24648 | if (PyErr_Occurred()) SWIG_fail; | |
24649 | } | |
24650 | { | |
24651 | resultobj = wxPyMake_wxObject(result); | |
24652 | } | |
24653 | { | |
24654 | if (temp1) | |
24655 | delete arg1; | |
24656 | } | |
24657 | return resultobj; | |
24658 | fail: | |
24659 | { | |
24660 | if (temp1) | |
24661 | delete arg1; | |
24662 | } | |
24663 | return NULL; | |
24664 | } | |
24665 | ||
24666 | ||
24667 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24668 | PyObject *resultobj; | |
24669 | unsigned long arg1 ; | |
24670 | wxWindow *result; | |
24671 | PyObject * obj0 = 0 ; | |
24672 | char *kwnames[] = { | |
24673 | (char *) "hWnd", NULL | |
24674 | }; | |
24675 | ||
24676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FromHWND",kwnames,&obj0)) goto fail; | |
24677 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
24678 | if (PyErr_Occurred()) SWIG_fail; | |
24679 | { | |
24680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24681 | result = (wxWindow *)wxWindow_FromHWND(arg1); | |
24682 | ||
24683 | wxPyEndAllowThreads(__tstate); | |
24684 | if (PyErr_Occurred()) SWIG_fail; | |
24685 | } | |
24686 | { | |
24687 | resultobj = wxPyMake_wxObject(result); | |
24688 | } | |
24689 | return resultobj; | |
24690 | fail: | |
24691 | return NULL; | |
24692 | } | |
24693 | ||
24694 | ||
24695 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24696 | PyObject *resultobj; | |
24697 | wxValidator *result; | |
24698 | char *kwnames[] = { | |
24699 | NULL | |
24700 | }; | |
24701 | ||
24702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
24703 | { | |
24704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24705 | result = (wxValidator *)new wxValidator(); | |
24706 | ||
24707 | wxPyEndAllowThreads(__tstate); | |
24708 | if (PyErr_Occurred()) SWIG_fail; | |
24709 | } | |
24710 | { | |
24711 | resultobj = wxPyMake_wxObject(result); | |
24712 | } | |
24713 | return resultobj; | |
24714 | fail: | |
24715 | return NULL; | |
24716 | } | |
24717 | ||
24718 | ||
24719 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24720 | PyObject *resultobj; | |
24721 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24722 | wxValidator *result; | |
24723 | PyObject * obj0 = 0 ; | |
24724 | char *kwnames[] = { | |
24725 | (char *) "self", NULL | |
24726 | }; | |
24727 | ||
24728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
24729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24730 | { | |
24731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24732 | result = (wxValidator *)(arg1)->Clone(); | |
24733 | ||
24734 | wxPyEndAllowThreads(__tstate); | |
24735 | if (PyErr_Occurred()) SWIG_fail; | |
24736 | } | |
24737 | { | |
24738 | resultobj = wxPyMake_wxObject(result); | |
24739 | } | |
24740 | return resultobj; | |
24741 | fail: | |
24742 | return NULL; | |
24743 | } | |
24744 | ||
24745 | ||
24746 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24747 | PyObject *resultobj; | |
24748 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24749 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24750 | bool result; | |
24751 | PyObject * obj0 = 0 ; | |
24752 | PyObject * obj1 = 0 ; | |
24753 | char *kwnames[] = { | |
24754 | (char *) "self",(char *) "parent", NULL | |
24755 | }; | |
24756 | ||
24757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
24758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24759 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24760 | { | |
24761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24762 | result = (bool)(arg1)->Validate(arg2); | |
24763 | ||
24764 | wxPyEndAllowThreads(__tstate); | |
24765 | if (PyErr_Occurred()) SWIG_fail; | |
24766 | } | |
24767 | resultobj = PyInt_FromLong((long)result); | |
24768 | return resultobj; | |
24769 | fail: | |
24770 | return NULL; | |
24771 | } | |
24772 | ||
24773 | ||
24774 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24775 | PyObject *resultobj; | |
24776 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24777 | bool result; | |
24778 | PyObject * obj0 = 0 ; | |
24779 | char *kwnames[] = { | |
24780 | (char *) "self", NULL | |
24781 | }; | |
24782 | ||
24783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
24784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24785 | { | |
24786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24787 | result = (bool)(arg1)->TransferToWindow(); | |
24788 | ||
24789 | wxPyEndAllowThreads(__tstate); | |
24790 | if (PyErr_Occurred()) SWIG_fail; | |
24791 | } | |
24792 | resultobj = PyInt_FromLong((long)result); | |
24793 | return resultobj; | |
24794 | fail: | |
24795 | return NULL; | |
24796 | } | |
24797 | ||
24798 | ||
24799 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24800 | PyObject *resultobj; | |
24801 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24802 | bool result; | |
24803 | PyObject * obj0 = 0 ; | |
24804 | char *kwnames[] = { | |
24805 | (char *) "self", NULL | |
24806 | }; | |
24807 | ||
24808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
24809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24810 | { | |
24811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24812 | result = (bool)(arg1)->TransferFromWindow(); | |
24813 | ||
24814 | wxPyEndAllowThreads(__tstate); | |
24815 | if (PyErr_Occurred()) SWIG_fail; | |
24816 | } | |
24817 | resultobj = PyInt_FromLong((long)result); | |
24818 | return resultobj; | |
24819 | fail: | |
24820 | return NULL; | |
24821 | } | |
24822 | ||
24823 | ||
24824 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24825 | PyObject *resultobj; | |
24826 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24827 | wxWindow *result; | |
24828 | PyObject * obj0 = 0 ; | |
24829 | char *kwnames[] = { | |
24830 | (char *) "self", NULL | |
24831 | }; | |
24832 | ||
24833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
24834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24835 | { | |
24836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24837 | result = (wxWindow *)(arg1)->GetWindow(); | |
24838 | ||
24839 | wxPyEndAllowThreads(__tstate); | |
24840 | if (PyErr_Occurred()) SWIG_fail; | |
24841 | } | |
24842 | { | |
24843 | resultobj = wxPyMake_wxObject(result); | |
24844 | } | |
24845 | return resultobj; | |
24846 | fail: | |
24847 | return NULL; | |
24848 | } | |
24849 | ||
24850 | ||
24851 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24852 | PyObject *resultobj; | |
24853 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24854 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24855 | PyObject * obj0 = 0 ; | |
24856 | PyObject * obj1 = 0 ; | |
24857 | char *kwnames[] = { | |
24858 | (char *) "self",(char *) "window", NULL | |
24859 | }; | |
24860 | ||
24861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
24862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24863 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24864 | { | |
24865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24866 | (arg1)->SetWindow(arg2); | |
24867 | ||
24868 | wxPyEndAllowThreads(__tstate); | |
24869 | if (PyErr_Occurred()) SWIG_fail; | |
24870 | } | |
24871 | Py_INCREF(Py_None); resultobj = Py_None; | |
24872 | return resultobj; | |
24873 | fail: | |
24874 | return NULL; | |
24875 | } | |
24876 | ||
24877 | ||
24878 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24879 | PyObject *resultobj; | |
24880 | bool result; | |
24881 | char *kwnames[] = { | |
24882 | NULL | |
24883 | }; | |
24884 | ||
24885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
24886 | { | |
24887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24888 | result = (bool)wxValidator::IsSilent(); | |
24889 | ||
24890 | wxPyEndAllowThreads(__tstate); | |
24891 | if (PyErr_Occurred()) SWIG_fail; | |
24892 | } | |
24893 | resultobj = PyInt_FromLong((long)result); | |
24894 | return resultobj; | |
24895 | fail: | |
24896 | return NULL; | |
24897 | } | |
24898 | ||
24899 | ||
24900 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24901 | PyObject *resultobj; | |
423f194a | 24902 | int arg1 = (int) True ; |
d14a1e28 RD |
24903 | char *kwnames[] = { |
24904 | (char *) "doIt", NULL | |
24905 | }; | |
24906 | ||
24907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:Validator_SetBellOnError",kwnames,&arg1)) goto fail; | |
24908 | { | |
24909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24910 | wxValidator::SetBellOnError(arg1); | |
24911 | ||
24912 | wxPyEndAllowThreads(__tstate); | |
24913 | if (PyErr_Occurred()) SWIG_fail; | |
24914 | } | |
24915 | Py_INCREF(Py_None); resultobj = Py_None; | |
24916 | return resultobj; | |
24917 | fail: | |
24918 | return NULL; | |
24919 | } | |
24920 | ||
24921 | ||
24922 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
24923 | PyObject *obj; | |
24924 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24925 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
24926 | Py_INCREF(obj); | |
24927 | return Py_BuildValue((char *)""); | |
24928 | } | |
24929 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24930 | PyObject *resultobj; | |
24931 | wxPyValidator *result; | |
24932 | char *kwnames[] = { | |
24933 | NULL | |
24934 | }; | |
24935 | ||
24936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
24937 | { | |
24938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24939 | result = (wxPyValidator *)new wxPyValidator(); | |
24940 | ||
24941 | wxPyEndAllowThreads(__tstate); | |
24942 | if (PyErr_Occurred()) SWIG_fail; | |
24943 | } | |
24944 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyValidator, 1); | |
24945 | return resultobj; | |
24946 | fail: | |
24947 | return NULL; | |
24948 | } | |
24949 | ||
24950 | ||
24951 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24952 | PyObject *resultobj; | |
24953 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
24954 | PyObject *arg2 = (PyObject *) 0 ; | |
24955 | PyObject *arg3 = (PyObject *) 0 ; | |
423f194a | 24956 | int arg4 = (int) True ; |
d14a1e28 RD |
24957 | PyObject * obj0 = 0 ; |
24958 | PyObject * obj1 = 0 ; | |
24959 | PyObject * obj2 = 0 ; | |
24960 | char *kwnames[] = { | |
24961 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
24962 | }; | |
24963 | ||
24964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
24965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24966 | arg2 = obj1; | |
24967 | arg3 = obj2; | |
24968 | { | |
24969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24970 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
24971 | ||
24972 | wxPyEndAllowThreads(__tstate); | |
24973 | if (PyErr_Occurred()) SWIG_fail; | |
24974 | } | |
24975 | Py_INCREF(Py_None); resultobj = Py_None; | |
24976 | return resultobj; | |
24977 | fail: | |
24978 | return NULL; | |
24979 | } | |
24980 | ||
24981 | ||
24982 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
24983 | PyObject *obj; | |
24984 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24985 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
24986 | Py_INCREF(obj); | |
24987 | return Py_BuildValue((char *)""); | |
24988 | } | |
24989 | static int _wrap_DefaultValidator_set(PyObject *_val) { | |
24990 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); | |
24991 | return 1; | |
24992 | } | |
24993 | ||
24994 | ||
24995 | static PyObject *_wrap_DefaultValidator_get() { | |
24996 | PyObject *pyobj; | |
24997 | ||
24998 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultValidator, SWIGTYPE_p_wxValidator, 0); | |
24999 | return pyobj; | |
25000 | } | |
25001 | ||
25002 | ||
25003 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25004 | PyObject *resultobj; | |
25005 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25006 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25007 | long arg2 = (long) 0 ; | |
25008 | wxMenu *result; | |
423f194a | 25009 | bool temp1 = False ; |
d14a1e28 RD |
25010 | PyObject * obj0 = 0 ; |
25011 | char *kwnames[] = { | |
25012 | (char *) "title",(char *) "style", NULL | |
25013 | }; | |
25014 | ||
25015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Ol:new_Menu",kwnames,&obj0,&arg2)) goto fail; | |
25016 | if (obj0) { | |
25017 | { | |
25018 | arg1 = wxString_in_helper(obj0); | |
25019 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 25020 | temp1 = True; |
d14a1e28 RD |
25021 | } |
25022 | } | |
25023 | { | |
25024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25025 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
25026 | ||
25027 | wxPyEndAllowThreads(__tstate); | |
25028 | if (PyErr_Occurred()) SWIG_fail; | |
25029 | } | |
25030 | { | |
25031 | resultobj = wxPyMake_wxObject(result); | |
25032 | } | |
25033 | { | |
25034 | if (temp1) | |
25035 | delete arg1; | |
25036 | } | |
25037 | return resultobj; | |
25038 | fail: | |
25039 | { | |
25040 | if (temp1) | |
25041 | delete arg1; | |
25042 | } | |
25043 | return NULL; | |
25044 | } | |
25045 | ||
25046 | ||
25047 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25048 | PyObject *resultobj; | |
25049 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25050 | int arg2 ; | |
25051 | wxString *arg3 = 0 ; | |
25052 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25053 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25054 | int arg5 = (int) wxITEM_NORMAL ; | |
423f194a RD |
25055 | bool temp3 = False ; |
25056 | bool temp4 = False ; | |
d14a1e28 RD |
25057 | PyObject * obj0 = 0 ; |
25058 | PyObject * obj2 = 0 ; | |
25059 | PyObject * obj3 = 0 ; | |
25060 | char *kwnames[] = { | |
f0983263 | 25061 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
25062 | }; |
25063 | ||
25064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|Oi:Menu_Append",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
25065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25066 | { | |
25067 | arg3 = wxString_in_helper(obj2); | |
25068 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25069 | temp3 = True; |
d14a1e28 RD |
25070 | } |
25071 | if (obj3) { | |
25072 | { | |
25073 | arg4 = wxString_in_helper(obj3); | |
25074 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25075 | temp4 = True; |
d14a1e28 RD |
25076 | } |
25077 | } | |
25078 | { | |
25079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25080 | (arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
25081 | ||
25082 | wxPyEndAllowThreads(__tstate); | |
25083 | if (PyErr_Occurred()) SWIG_fail; | |
25084 | } | |
25085 | Py_INCREF(Py_None); resultobj = Py_None; | |
25086 | { | |
25087 | if (temp3) | |
25088 | delete arg3; | |
25089 | } | |
25090 | { | |
25091 | if (temp4) | |
25092 | delete arg4; | |
25093 | } | |
25094 | return resultobj; | |
25095 | fail: | |
25096 | { | |
25097 | if (temp3) | |
25098 | delete arg3; | |
25099 | } | |
25100 | { | |
25101 | if (temp4) | |
25102 | delete arg4; | |
25103 | } | |
25104 | return NULL; | |
25105 | } | |
25106 | ||
25107 | ||
25108 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25109 | PyObject *resultobj; | |
25110 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25111 | PyObject * obj0 = 0 ; | |
25112 | char *kwnames[] = { | |
25113 | (char *) "self", NULL | |
25114 | }; | |
25115 | ||
25116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
25117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25118 | { | |
25119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25120 | (arg1)->AppendSeparator(); | |
25121 | ||
25122 | wxPyEndAllowThreads(__tstate); | |
25123 | if (PyErr_Occurred()) SWIG_fail; | |
25124 | } | |
25125 | Py_INCREF(Py_None); resultobj = Py_None; | |
25126 | return resultobj; | |
25127 | fail: | |
25128 | return NULL; | |
25129 | } | |
25130 | ||
25131 | ||
25132 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25133 | PyObject *resultobj; | |
25134 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25135 | int arg2 ; | |
25136 | wxString *arg3 = 0 ; | |
25137 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25138 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
25139 | bool temp3 = False ; |
25140 | bool temp4 = False ; | |
d14a1e28 RD |
25141 | PyObject * obj0 = 0 ; |
25142 | PyObject * obj2 = 0 ; | |
25143 | PyObject * obj3 = 0 ; | |
25144 | char *kwnames[] = { | |
f0983263 | 25145 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25146 | }; |
25147 | ||
25148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_AppendCheckItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
25149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25150 | { | |
25151 | arg3 = wxString_in_helper(obj2); | |
25152 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25153 | temp3 = True; |
d14a1e28 RD |
25154 | } |
25155 | if (obj3) { | |
25156 | { | |
25157 | arg4 = wxString_in_helper(obj3); | |
25158 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25159 | temp4 = True; |
d14a1e28 RD |
25160 | } |
25161 | } | |
25162 | { | |
25163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25164 | (arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
25165 | ||
25166 | wxPyEndAllowThreads(__tstate); | |
25167 | if (PyErr_Occurred()) SWIG_fail; | |
25168 | } | |
25169 | Py_INCREF(Py_None); resultobj = Py_None; | |
25170 | { | |
25171 | if (temp3) | |
25172 | delete arg3; | |
25173 | } | |
25174 | { | |
25175 | if (temp4) | |
25176 | delete arg4; | |
25177 | } | |
25178 | return resultobj; | |
25179 | fail: | |
25180 | { | |
25181 | if (temp3) | |
25182 | delete arg3; | |
25183 | } | |
25184 | { | |
25185 | if (temp4) | |
25186 | delete arg4; | |
25187 | } | |
25188 | return NULL; | |
25189 | } | |
25190 | ||
25191 | ||
25192 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25193 | PyObject *resultobj; | |
25194 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25195 | int arg2 ; | |
25196 | wxString *arg3 = 0 ; | |
25197 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25198 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
25199 | bool temp3 = False ; |
25200 | bool temp4 = False ; | |
d14a1e28 RD |
25201 | PyObject * obj0 = 0 ; |
25202 | PyObject * obj2 = 0 ; | |
25203 | PyObject * obj3 = 0 ; | |
25204 | char *kwnames[] = { | |
f0983263 | 25205 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25206 | }; |
25207 | ||
25208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_AppendRadioItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
25209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25210 | { | |
25211 | arg3 = wxString_in_helper(obj2); | |
25212 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25213 | temp3 = True; |
d14a1e28 RD |
25214 | } |
25215 | if (obj3) { | |
25216 | { | |
25217 | arg4 = wxString_in_helper(obj3); | |
25218 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25219 | temp4 = True; |
d14a1e28 RD |
25220 | } |
25221 | } | |
25222 | { | |
25223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25224 | (arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
25225 | ||
25226 | wxPyEndAllowThreads(__tstate); | |
25227 | if (PyErr_Occurred()) SWIG_fail; | |
25228 | } | |
25229 | Py_INCREF(Py_None); resultobj = Py_None; | |
25230 | { | |
25231 | if (temp3) | |
25232 | delete arg3; | |
25233 | } | |
25234 | { | |
25235 | if (temp4) | |
25236 | delete arg4; | |
25237 | } | |
25238 | return resultobj; | |
25239 | fail: | |
25240 | { | |
25241 | if (temp3) | |
25242 | delete arg3; | |
25243 | } | |
25244 | { | |
25245 | if (temp4) | |
25246 | delete arg4; | |
25247 | } | |
25248 | return NULL; | |
25249 | } | |
25250 | ||
25251 | ||
25252 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25253 | PyObject *resultobj; | |
25254 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25255 | int arg2 ; | |
25256 | wxString *arg3 = 0 ; | |
25257 | wxMenu *arg4 = (wxMenu *) 0 ; | |
25258 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25259 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
423f194a RD |
25260 | bool temp3 = False ; |
25261 | bool temp5 = False ; | |
d14a1e28 RD |
25262 | PyObject * obj0 = 0 ; |
25263 | PyObject * obj2 = 0 ; | |
25264 | PyObject * obj3 = 0 ; | |
25265 | PyObject * obj4 = 0 ; | |
25266 | char *kwnames[] = { | |
f0983263 | 25267 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
25268 | }; |
25269 | ||
25270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO|O:Menu_AppendMenu",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4)) goto fail; | |
25271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25272 | { | |
25273 | arg3 = wxString_in_helper(obj2); | |
25274 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25275 | temp3 = True; |
d14a1e28 RD |
25276 | } |
25277 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25278 | if (obj4) { | |
25279 | { | |
25280 | arg5 = wxString_in_helper(obj4); | |
25281 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 25282 | temp5 = True; |
d14a1e28 RD |
25283 | } |
25284 | } | |
25285 | { | |
25286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25287 | (arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
25288 | ||
25289 | wxPyEndAllowThreads(__tstate); | |
25290 | if (PyErr_Occurred()) SWIG_fail; | |
25291 | } | |
25292 | Py_INCREF(Py_None); resultobj = Py_None; | |
25293 | { | |
25294 | if (temp3) | |
25295 | delete arg3; | |
25296 | } | |
25297 | { | |
25298 | if (temp5) | |
25299 | delete arg5; | |
25300 | } | |
25301 | return resultobj; | |
25302 | fail: | |
25303 | { | |
25304 | if (temp3) | |
25305 | delete arg3; | |
25306 | } | |
25307 | { | |
25308 | if (temp5) | |
25309 | delete arg5; | |
25310 | } | |
25311 | return NULL; | |
25312 | } | |
25313 | ||
25314 | ||
25315 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25316 | PyObject *resultobj; | |
25317 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25318 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
25319 | PyObject * obj0 = 0 ; | |
25320 | PyObject * obj1 = 0 ; | |
25321 | char *kwnames[] = { | |
25322 | (char *) "self",(char *) "item", NULL | |
25323 | }; | |
25324 | ||
25325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
25326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25327 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25328 | { | |
25329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25330 | (arg1)->Append(arg2); | |
25331 | ||
25332 | wxPyEndAllowThreads(__tstate); | |
25333 | if (PyErr_Occurred()) SWIG_fail; | |
25334 | } | |
25335 | Py_INCREF(Py_None); resultobj = Py_None; | |
25336 | return resultobj; | |
25337 | fail: | |
25338 | return NULL; | |
25339 | } | |
25340 | ||
25341 | ||
25342 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25343 | PyObject *resultobj; | |
25344 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25345 | PyObject * obj0 = 0 ; | |
25346 | char *kwnames[] = { | |
25347 | (char *) "self", NULL | |
25348 | }; | |
25349 | ||
25350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
25351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25352 | { | |
25353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25354 | (arg1)->Break(); | |
25355 | ||
25356 | wxPyEndAllowThreads(__tstate); | |
25357 | if (PyErr_Occurred()) SWIG_fail; | |
25358 | } | |
25359 | Py_INCREF(Py_None); resultobj = Py_None; | |
25360 | return resultobj; | |
25361 | fail: | |
25362 | return NULL; | |
25363 | } | |
25364 | ||
25365 | ||
25366 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25367 | PyObject *resultobj; | |
25368 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25369 | size_t arg2 ; | |
25370 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
25371 | bool result; | |
25372 | PyObject * obj0 = 0 ; | |
25373 | PyObject * obj1 = 0 ; | |
25374 | PyObject * obj2 = 0 ; | |
25375 | char *kwnames[] = { | |
25376 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
25377 | }; | |
25378 | ||
25379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25381 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25382 | if (PyErr_Occurred()) SWIG_fail; | |
25383 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25384 | { | |
25385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25386 | result = (bool)(arg1)->Insert(arg2,arg3); | |
25387 | ||
25388 | wxPyEndAllowThreads(__tstate); | |
25389 | if (PyErr_Occurred()) SWIG_fail; | |
25390 | } | |
25391 | resultobj = PyInt_FromLong((long)result); | |
25392 | return resultobj; | |
25393 | fail: | |
25394 | return NULL; | |
25395 | } | |
25396 | ||
25397 | ||
25398 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25399 | PyObject *resultobj; | |
25400 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25401 | size_t arg2 ; | |
25402 | int arg3 ; | |
25403 | wxString *arg4 = 0 ; | |
25404 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25405 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
25406 | int arg6 = (int) wxITEM_NORMAL ; | |
423f194a RD |
25407 | bool temp4 = False ; |
25408 | bool temp5 = False ; | |
d14a1e28 RD |
25409 | PyObject * obj0 = 0 ; |
25410 | PyObject * obj1 = 0 ; | |
25411 | PyObject * obj3 = 0 ; | |
25412 | PyObject * obj4 = 0 ; | |
25413 | char *kwnames[] = { | |
f0983263 | 25414 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
25415 | }; |
25416 | ||
25417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|Oi:Menu_Insert",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6)) goto fail; | |
25418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25419 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25420 | if (PyErr_Occurred()) SWIG_fail; | |
25421 | { | |
25422 | arg4 = wxString_in_helper(obj3); | |
25423 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25424 | temp4 = True; |
d14a1e28 RD |
25425 | } |
25426 | if (obj4) { | |
25427 | { | |
25428 | arg5 = wxString_in_helper(obj4); | |
25429 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 25430 | temp5 = True; |
d14a1e28 RD |
25431 | } |
25432 | } | |
25433 | { | |
25434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25435 | (arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
25436 | ||
25437 | wxPyEndAllowThreads(__tstate); | |
25438 | if (PyErr_Occurred()) SWIG_fail; | |
25439 | } | |
25440 | Py_INCREF(Py_None); resultobj = Py_None; | |
25441 | { | |
25442 | if (temp4) | |
25443 | delete arg4; | |
25444 | } | |
25445 | { | |
25446 | if (temp5) | |
25447 | delete arg5; | |
25448 | } | |
25449 | return resultobj; | |
25450 | fail: | |
25451 | { | |
25452 | if (temp4) | |
25453 | delete arg4; | |
25454 | } | |
25455 | { | |
25456 | if (temp5) | |
25457 | delete arg5; | |
25458 | } | |
25459 | return NULL; | |
25460 | } | |
25461 | ||
25462 | ||
25463 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25464 | PyObject *resultobj; | |
25465 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25466 | size_t arg2 ; | |
25467 | PyObject * obj0 = 0 ; | |
25468 | PyObject * obj1 = 0 ; | |
25469 | char *kwnames[] = { | |
25470 | (char *) "self",(char *) "pos", NULL | |
25471 | }; | |
25472 | ||
25473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
25474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25475 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25476 | if (PyErr_Occurred()) SWIG_fail; | |
25477 | { | |
25478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25479 | (arg1)->InsertSeparator(arg2); | |
25480 | ||
25481 | wxPyEndAllowThreads(__tstate); | |
25482 | if (PyErr_Occurred()) SWIG_fail; | |
25483 | } | |
25484 | Py_INCREF(Py_None); resultobj = Py_None; | |
25485 | return resultobj; | |
25486 | fail: | |
25487 | return NULL; | |
25488 | } | |
25489 | ||
25490 | ||
25491 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25492 | PyObject *resultobj; | |
25493 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25494 | size_t arg2 ; | |
25495 | int arg3 ; | |
25496 | wxString *arg4 = 0 ; | |
25497 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25498 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
423f194a RD |
25499 | bool temp4 = False ; |
25500 | bool temp5 = False ; | |
d14a1e28 RD |
25501 | PyObject * obj0 = 0 ; |
25502 | PyObject * obj1 = 0 ; | |
25503 | PyObject * obj3 = 0 ; | |
25504 | PyObject * obj4 = 0 ; | |
25505 | char *kwnames[] = { | |
f0983263 | 25506 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25507 | }; |
25508 | ||
25509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
25510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25511 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25512 | if (PyErr_Occurred()) SWIG_fail; | |
25513 | { | |
25514 | arg4 = wxString_in_helper(obj3); | |
25515 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25516 | temp4 = True; |
d14a1e28 RD |
25517 | } |
25518 | if (obj4) { | |
25519 | { | |
25520 | arg5 = wxString_in_helper(obj4); | |
25521 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 25522 | temp5 = True; |
d14a1e28 RD |
25523 | } |
25524 | } | |
25525 | { | |
25526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25527 | (arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
25528 | ||
25529 | wxPyEndAllowThreads(__tstate); | |
25530 | if (PyErr_Occurred()) SWIG_fail; | |
25531 | } | |
25532 | Py_INCREF(Py_None); resultobj = Py_None; | |
25533 | { | |
25534 | if (temp4) | |
25535 | delete arg4; | |
25536 | } | |
25537 | { | |
25538 | if (temp5) | |
25539 | delete arg5; | |
25540 | } | |
25541 | return resultobj; | |
25542 | fail: | |
25543 | { | |
25544 | if (temp4) | |
25545 | delete arg4; | |
25546 | } | |
25547 | { | |
25548 | if (temp5) | |
25549 | delete arg5; | |
25550 | } | |
25551 | return NULL; | |
25552 | } | |
25553 | ||
25554 | ||
25555 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25556 | PyObject *resultobj; | |
25557 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25558 | size_t arg2 ; | |
25559 | int arg3 ; | |
25560 | wxString *arg4 = 0 ; | |
25561 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25562 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
423f194a RD |
25563 | bool temp4 = False ; |
25564 | bool temp5 = False ; | |
d14a1e28 RD |
25565 | PyObject * obj0 = 0 ; |
25566 | PyObject * obj1 = 0 ; | |
25567 | PyObject * obj3 = 0 ; | |
25568 | PyObject * obj4 = 0 ; | |
25569 | char *kwnames[] = { | |
f0983263 | 25570 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25571 | }; |
25572 | ||
25573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
25574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25575 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25576 | if (PyErr_Occurred()) SWIG_fail; | |
25577 | { | |
25578 | arg4 = wxString_in_helper(obj3); | |
25579 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25580 | temp4 = True; |
d14a1e28 RD |
25581 | } |
25582 | if (obj4) { | |
25583 | { | |
25584 | arg5 = wxString_in_helper(obj4); | |
25585 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 25586 | temp5 = True; |
d14a1e28 RD |
25587 | } |
25588 | } | |
25589 | { | |
25590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25591 | (arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
25592 | ||
25593 | wxPyEndAllowThreads(__tstate); | |
25594 | if (PyErr_Occurred()) SWIG_fail; | |
25595 | } | |
25596 | Py_INCREF(Py_None); resultobj = Py_None; | |
25597 | { | |
25598 | if (temp4) | |
25599 | delete arg4; | |
25600 | } | |
25601 | { | |
25602 | if (temp5) | |
25603 | delete arg5; | |
25604 | } | |
25605 | return resultobj; | |
25606 | fail: | |
25607 | { | |
25608 | if (temp4) | |
25609 | delete arg4; | |
25610 | } | |
25611 | { | |
25612 | if (temp5) | |
25613 | delete arg5; | |
25614 | } | |
25615 | return NULL; | |
25616 | } | |
25617 | ||
25618 | ||
25619 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25620 | PyObject *resultobj; | |
25621 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25622 | size_t arg2 ; | |
25623 | int arg3 ; | |
25624 | wxString *arg4 = 0 ; | |
25625 | wxMenu *arg5 = (wxMenu *) 0 ; | |
25626 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
25627 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
423f194a RD |
25628 | bool temp4 = False ; |
25629 | bool temp6 = False ; | |
d14a1e28 RD |
25630 | PyObject * obj0 = 0 ; |
25631 | PyObject * obj1 = 0 ; | |
25632 | PyObject * obj3 = 0 ; | |
25633 | PyObject * obj4 = 0 ; | |
25634 | PyObject * obj5 = 0 ; | |
25635 | char *kwnames[] = { | |
f0983263 | 25636 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
25637 | }; |
25638 | ||
25639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5)) goto fail; | |
25640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25641 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25642 | if (PyErr_Occurred()) SWIG_fail; | |
25643 | { | |
25644 | arg4 = wxString_in_helper(obj3); | |
25645 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25646 | temp4 = True; |
d14a1e28 RD |
25647 | } |
25648 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25649 | if (obj5) { | |
25650 | { | |
25651 | arg6 = wxString_in_helper(obj5); | |
25652 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 25653 | temp6 = True; |
d14a1e28 RD |
25654 | } |
25655 | } | |
25656 | { | |
25657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25658 | (arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
25659 | ||
25660 | wxPyEndAllowThreads(__tstate); | |
25661 | if (PyErr_Occurred()) SWIG_fail; | |
25662 | } | |
25663 | Py_INCREF(Py_None); resultobj = Py_None; | |
25664 | { | |
25665 | if (temp4) | |
25666 | delete arg4; | |
25667 | } | |
25668 | { | |
25669 | if (temp6) | |
25670 | delete arg6; | |
25671 | } | |
25672 | return resultobj; | |
25673 | fail: | |
25674 | { | |
25675 | if (temp4) | |
25676 | delete arg4; | |
25677 | } | |
25678 | { | |
25679 | if (temp6) | |
25680 | delete arg6; | |
25681 | } | |
25682 | return NULL; | |
25683 | } | |
25684 | ||
25685 | ||
25686 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25687 | PyObject *resultobj; | |
25688 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25689 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
25690 | PyObject * obj0 = 0 ; | |
25691 | PyObject * obj1 = 0 ; | |
25692 | char *kwnames[] = { | |
25693 | (char *) "self",(char *) "item", NULL | |
25694 | }; | |
25695 | ||
25696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
25697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25698 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25699 | { | |
25700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25701 | (arg1)->Prepend(arg2); | |
25702 | ||
25703 | wxPyEndAllowThreads(__tstate); | |
25704 | if (PyErr_Occurred()) SWIG_fail; | |
25705 | } | |
25706 | Py_INCREF(Py_None); resultobj = Py_None; | |
25707 | return resultobj; | |
25708 | fail: | |
25709 | return NULL; | |
25710 | } | |
25711 | ||
25712 | ||
25713 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25714 | PyObject *resultobj; | |
25715 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25716 | int arg2 ; | |
25717 | wxString *arg3 = 0 ; | |
25718 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25719 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25720 | int arg5 = (int) wxITEM_NORMAL ; | |
423f194a RD |
25721 | bool temp3 = False ; |
25722 | bool temp4 = False ; | |
d14a1e28 RD |
25723 | PyObject * obj0 = 0 ; |
25724 | PyObject * obj2 = 0 ; | |
25725 | PyObject * obj3 = 0 ; | |
25726 | char *kwnames[] = { | |
f0983263 | 25727 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
25728 | }; |
25729 | ||
25730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|Oi:Menu_Prepend",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
25731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25732 | { | |
25733 | arg3 = wxString_in_helper(obj2); | |
25734 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25735 | temp3 = True; |
d14a1e28 RD |
25736 | } |
25737 | if (obj3) { | |
25738 | { | |
25739 | arg4 = wxString_in_helper(obj3); | |
25740 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25741 | temp4 = True; |
d14a1e28 RD |
25742 | } |
25743 | } | |
25744 | { | |
25745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25746 | (arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
25747 | ||
25748 | wxPyEndAllowThreads(__tstate); | |
25749 | if (PyErr_Occurred()) SWIG_fail; | |
25750 | } | |
25751 | Py_INCREF(Py_None); resultobj = Py_None; | |
25752 | { | |
25753 | if (temp3) | |
25754 | delete arg3; | |
25755 | } | |
25756 | { | |
25757 | if (temp4) | |
25758 | delete arg4; | |
25759 | } | |
25760 | return resultobj; | |
25761 | fail: | |
25762 | { | |
25763 | if (temp3) | |
25764 | delete arg3; | |
25765 | } | |
25766 | { | |
25767 | if (temp4) | |
25768 | delete arg4; | |
25769 | } | |
25770 | return NULL; | |
25771 | } | |
25772 | ||
25773 | ||
25774 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25775 | PyObject *resultobj; | |
25776 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25777 | PyObject * obj0 = 0 ; | |
25778 | char *kwnames[] = { | |
25779 | (char *) "self", NULL | |
25780 | }; | |
25781 | ||
25782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
25783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25784 | { | |
25785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25786 | (arg1)->PrependSeparator(); | |
25787 | ||
25788 | wxPyEndAllowThreads(__tstate); | |
25789 | if (PyErr_Occurred()) SWIG_fail; | |
25790 | } | |
25791 | Py_INCREF(Py_None); resultobj = Py_None; | |
25792 | return resultobj; | |
25793 | fail: | |
25794 | return NULL; | |
25795 | } | |
25796 | ||
25797 | ||
25798 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25799 | PyObject *resultobj; | |
25800 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25801 | int arg2 ; | |
25802 | wxString *arg3 = 0 ; | |
25803 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25804 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
25805 | bool temp3 = False ; |
25806 | bool temp4 = False ; | |
d14a1e28 RD |
25807 | PyObject * obj0 = 0 ; |
25808 | PyObject * obj2 = 0 ; | |
25809 | PyObject * obj3 = 0 ; | |
25810 | char *kwnames[] = { | |
f0983263 | 25811 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25812 | }; |
25813 | ||
25814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_PrependCheckItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
25815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25816 | { | |
25817 | arg3 = wxString_in_helper(obj2); | |
25818 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25819 | temp3 = True; |
d14a1e28 RD |
25820 | } |
25821 | if (obj3) { | |
25822 | { | |
25823 | arg4 = wxString_in_helper(obj3); | |
25824 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25825 | temp4 = True; |
d14a1e28 RD |
25826 | } |
25827 | } | |
25828 | { | |
25829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25830 | (arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
25831 | ||
25832 | wxPyEndAllowThreads(__tstate); | |
25833 | if (PyErr_Occurred()) SWIG_fail; | |
25834 | } | |
25835 | Py_INCREF(Py_None); resultobj = Py_None; | |
25836 | { | |
25837 | if (temp3) | |
25838 | delete arg3; | |
25839 | } | |
25840 | { | |
25841 | if (temp4) | |
25842 | delete arg4; | |
25843 | } | |
25844 | return resultobj; | |
25845 | fail: | |
25846 | { | |
25847 | if (temp3) | |
25848 | delete arg3; | |
25849 | } | |
25850 | { | |
25851 | if (temp4) | |
25852 | delete arg4; | |
25853 | } | |
25854 | return NULL; | |
25855 | } | |
25856 | ||
25857 | ||
25858 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25859 | PyObject *resultobj; | |
25860 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25861 | int arg2 ; | |
25862 | wxString *arg3 = 0 ; | |
25863 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25864 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
25865 | bool temp3 = False ; |
25866 | bool temp4 = False ; | |
d14a1e28 RD |
25867 | PyObject * obj0 = 0 ; |
25868 | PyObject * obj2 = 0 ; | |
25869 | PyObject * obj3 = 0 ; | |
25870 | char *kwnames[] = { | |
f0983263 | 25871 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25872 | }; |
25873 | ||
25874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_PrependRadioItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
25875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25876 | { | |
25877 | arg3 = wxString_in_helper(obj2); | |
25878 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25879 | temp3 = True; |
d14a1e28 RD |
25880 | } |
25881 | if (obj3) { | |
25882 | { | |
25883 | arg4 = wxString_in_helper(obj3); | |
25884 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25885 | temp4 = True; |
d14a1e28 RD |
25886 | } |
25887 | } | |
25888 | { | |
25889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25890 | (arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
25891 | ||
25892 | wxPyEndAllowThreads(__tstate); | |
25893 | if (PyErr_Occurred()) SWIG_fail; | |
25894 | } | |
25895 | Py_INCREF(Py_None); resultobj = Py_None; | |
25896 | { | |
25897 | if (temp3) | |
25898 | delete arg3; | |
25899 | } | |
25900 | { | |
25901 | if (temp4) | |
25902 | delete arg4; | |
25903 | } | |
25904 | return resultobj; | |
25905 | fail: | |
25906 | { | |
25907 | if (temp3) | |
25908 | delete arg3; | |
25909 | } | |
25910 | { | |
25911 | if (temp4) | |
25912 | delete arg4; | |
25913 | } | |
25914 | return NULL; | |
25915 | } | |
25916 | ||
25917 | ||
25918 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25919 | PyObject *resultobj; | |
25920 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25921 | int arg2 ; | |
25922 | wxString *arg3 = 0 ; | |
25923 | wxMenu *arg4 = (wxMenu *) 0 ; | |
25924 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25925 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
423f194a RD |
25926 | bool temp3 = False ; |
25927 | bool temp5 = False ; | |
d14a1e28 RD |
25928 | PyObject * obj0 = 0 ; |
25929 | PyObject * obj2 = 0 ; | |
25930 | PyObject * obj3 = 0 ; | |
25931 | PyObject * obj4 = 0 ; | |
25932 | char *kwnames[] = { | |
f0983263 | 25933 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
25934 | }; |
25935 | ||
25936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO|O:Menu_PrependMenu",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4)) goto fail; | |
25937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25938 | { | |
25939 | arg3 = wxString_in_helper(obj2); | |
25940 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25941 | temp3 = True; |
d14a1e28 RD |
25942 | } |
25943 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25944 | if (obj4) { | |
25945 | { | |
25946 | arg5 = wxString_in_helper(obj4); | |
25947 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 25948 | temp5 = True; |
d14a1e28 RD |
25949 | } |
25950 | } | |
25951 | { | |
25952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25953 | (arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
25954 | ||
25955 | wxPyEndAllowThreads(__tstate); | |
25956 | if (PyErr_Occurred()) SWIG_fail; | |
25957 | } | |
25958 | Py_INCREF(Py_None); resultobj = Py_None; | |
25959 | { | |
25960 | if (temp3) | |
25961 | delete arg3; | |
25962 | } | |
25963 | { | |
25964 | if (temp5) | |
25965 | delete arg5; | |
25966 | } | |
25967 | return resultobj; | |
25968 | fail: | |
25969 | { | |
25970 | if (temp3) | |
25971 | delete arg3; | |
25972 | } | |
25973 | { | |
25974 | if (temp5) | |
25975 | delete arg5; | |
25976 | } | |
25977 | return NULL; | |
25978 | } | |
25979 | ||
25980 | ||
25981 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25982 | PyObject *resultobj; | |
25983 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25984 | int arg2 ; | |
25985 | wxMenuItem *result; | |
25986 | PyObject * obj0 = 0 ; | |
25987 | char *kwnames[] = { | |
f0983263 | 25988 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
25989 | }; |
25990 | ||
25991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_Remove",kwnames,&obj0,&arg2)) goto fail; | |
25992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25993 | { | |
25994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25995 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
25996 | ||
25997 | wxPyEndAllowThreads(__tstate); | |
25998 | if (PyErr_Occurred()) SWIG_fail; | |
25999 | } | |
26000 | { | |
26001 | resultobj = wxPyMake_wxObject(result); | |
26002 | } | |
26003 | return resultobj; | |
26004 | fail: | |
26005 | return NULL; | |
26006 | } | |
26007 | ||
26008 | ||
26009 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26010 | PyObject *resultobj; | |
26011 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26012 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
26013 | wxMenuItem *result; | |
26014 | PyObject * obj0 = 0 ; | |
26015 | PyObject * obj1 = 0 ; | |
26016 | char *kwnames[] = { | |
26017 | (char *) "self",(char *) "item", NULL | |
26018 | }; | |
26019 | ||
26020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
26021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26022 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26023 | { | |
26024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26025 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
26026 | ||
26027 | wxPyEndAllowThreads(__tstate); | |
26028 | if (PyErr_Occurred()) SWIG_fail; | |
26029 | } | |
26030 | { | |
26031 | resultobj = wxPyMake_wxObject(result); | |
26032 | } | |
26033 | return resultobj; | |
26034 | fail: | |
26035 | return NULL; | |
26036 | } | |
26037 | ||
26038 | ||
26039 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26040 | PyObject *resultobj; | |
26041 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26042 | int arg2 ; | |
26043 | bool result; | |
26044 | PyObject * obj0 = 0 ; | |
26045 | char *kwnames[] = { | |
f0983263 | 26046 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26047 | }; |
26048 | ||
26049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_Delete",kwnames,&obj0,&arg2)) goto fail; | |
26050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26051 | { | |
26052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26053 | result = (bool)(arg1)->Delete(arg2); | |
26054 | ||
26055 | wxPyEndAllowThreads(__tstate); | |
26056 | if (PyErr_Occurred()) SWIG_fail; | |
26057 | } | |
26058 | resultobj = PyInt_FromLong((long)result); | |
26059 | return resultobj; | |
26060 | fail: | |
26061 | return NULL; | |
26062 | } | |
26063 | ||
26064 | ||
26065 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26066 | PyObject *resultobj; | |
26067 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26068 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
26069 | bool result; | |
26070 | PyObject * obj0 = 0 ; | |
26071 | PyObject * obj1 = 0 ; | |
26072 | char *kwnames[] = { | |
26073 | (char *) "self",(char *) "item", NULL | |
26074 | }; | |
26075 | ||
26076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
26077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26078 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26079 | { | |
26080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26081 | result = (bool)(arg1)->Delete(arg2); | |
26082 | ||
26083 | wxPyEndAllowThreads(__tstate); | |
26084 | if (PyErr_Occurred()) SWIG_fail; | |
26085 | } | |
26086 | resultobj = PyInt_FromLong((long)result); | |
26087 | return resultobj; | |
26088 | fail: | |
26089 | return NULL; | |
26090 | } | |
26091 | ||
26092 | ||
26093 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26094 | PyObject *resultobj; | |
26095 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26096 | PyObject * obj0 = 0 ; | |
26097 | char *kwnames[] = { | |
26098 | (char *) "self", NULL | |
26099 | }; | |
26100 | ||
26101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
26102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26103 | { | |
26104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26105 | wxMenu_Destroy(arg1); | |
26106 | ||
26107 | wxPyEndAllowThreads(__tstate); | |
26108 | if (PyErr_Occurred()) SWIG_fail; | |
26109 | } | |
26110 | Py_INCREF(Py_None); resultobj = Py_None; | |
26111 | return resultobj; | |
26112 | fail: | |
26113 | return NULL; | |
26114 | } | |
26115 | ||
26116 | ||
26117 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26118 | PyObject *resultobj; | |
26119 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26120 | int arg2 ; | |
26121 | bool result; | |
26122 | PyObject * obj0 = 0 ; | |
26123 | char *kwnames[] = { | |
f0983263 | 26124 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26125 | }; |
26126 | ||
26127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_DestroyId",kwnames,&obj0,&arg2)) goto fail; | |
26128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26129 | { | |
26130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26131 | result = (bool)(arg1)->Destroy(arg2); | |
26132 | ||
26133 | wxPyEndAllowThreads(__tstate); | |
26134 | if (PyErr_Occurred()) SWIG_fail; | |
26135 | } | |
26136 | resultobj = PyInt_FromLong((long)result); | |
26137 | return resultobj; | |
26138 | fail: | |
26139 | return NULL; | |
26140 | } | |
26141 | ||
26142 | ||
26143 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26144 | PyObject *resultobj; | |
26145 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26146 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
26147 | bool result; | |
26148 | PyObject * obj0 = 0 ; | |
26149 | PyObject * obj1 = 0 ; | |
26150 | char *kwnames[] = { | |
26151 | (char *) "self",(char *) "item", NULL | |
26152 | }; | |
26153 | ||
26154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
26155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26156 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26157 | { | |
26158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26159 | result = (bool)(arg1)->Destroy(arg2); | |
26160 | ||
26161 | wxPyEndAllowThreads(__tstate); | |
26162 | if (PyErr_Occurred()) SWIG_fail; | |
26163 | } | |
26164 | resultobj = PyInt_FromLong((long)result); | |
26165 | return resultobj; | |
26166 | fail: | |
26167 | return NULL; | |
26168 | } | |
26169 | ||
26170 | ||
26171 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26172 | PyObject *resultobj; | |
26173 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26174 | size_t result; | |
26175 | PyObject * obj0 = 0 ; | |
26176 | char *kwnames[] = { | |
26177 | (char *) "self", NULL | |
26178 | }; | |
26179 | ||
26180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
26181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26182 | { | |
26183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26184 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
26185 | ||
26186 | wxPyEndAllowThreads(__tstate); | |
26187 | if (PyErr_Occurred()) SWIG_fail; | |
26188 | } | |
26189 | resultobj = PyInt_FromLong((long)result); | |
26190 | return resultobj; | |
26191 | fail: | |
26192 | return NULL; | |
26193 | } | |
26194 | ||
26195 | ||
26196 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26197 | PyObject *resultobj; | |
26198 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26199 | PyObject *result; | |
26200 | PyObject * obj0 = 0 ; | |
26201 | char *kwnames[] = { | |
26202 | (char *) "self", NULL | |
26203 | }; | |
26204 | ||
26205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
26206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26207 | { | |
26208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26209 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
26210 | ||
26211 | wxPyEndAllowThreads(__tstate); | |
26212 | if (PyErr_Occurred()) SWIG_fail; | |
26213 | } | |
26214 | resultobj = result; | |
26215 | return resultobj; | |
26216 | fail: | |
26217 | return NULL; | |
26218 | } | |
26219 | ||
26220 | ||
26221 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26222 | PyObject *resultobj; | |
26223 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26224 | wxString *arg2 = 0 ; | |
26225 | int result; | |
423f194a | 26226 | bool temp2 = False ; |
d14a1e28 RD |
26227 | PyObject * obj0 = 0 ; |
26228 | PyObject * obj1 = 0 ; | |
26229 | char *kwnames[] = { | |
26230 | (char *) "self",(char *) "item", NULL | |
26231 | }; | |
26232 | ||
26233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
26234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26235 | { | |
26236 | arg2 = wxString_in_helper(obj1); | |
26237 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26238 | temp2 = True; |
d14a1e28 RD |
26239 | } |
26240 | { | |
26241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26242 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
26243 | ||
26244 | wxPyEndAllowThreads(__tstate); | |
26245 | if (PyErr_Occurred()) SWIG_fail; | |
26246 | } | |
26247 | resultobj = PyInt_FromLong((long)result); | |
26248 | { | |
26249 | if (temp2) | |
26250 | delete arg2; | |
26251 | } | |
26252 | return resultobj; | |
26253 | fail: | |
26254 | { | |
26255 | if (temp2) | |
26256 | delete arg2; | |
26257 | } | |
26258 | return NULL; | |
26259 | } | |
26260 | ||
26261 | ||
26262 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26263 | PyObject *resultobj; | |
26264 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26265 | int arg2 ; | |
26266 | wxMenuItem *result; | |
26267 | PyObject * obj0 = 0 ; | |
26268 | char *kwnames[] = { | |
f0983263 | 26269 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26270 | }; |
26271 | ||
26272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_FindItemById",kwnames,&obj0,&arg2)) goto fail; | |
26273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26274 | { | |
26275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26276 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
26277 | ||
26278 | wxPyEndAllowThreads(__tstate); | |
26279 | if (PyErr_Occurred()) SWIG_fail; | |
26280 | } | |
26281 | { | |
26282 | resultobj = wxPyMake_wxObject(result); | |
26283 | } | |
26284 | return resultobj; | |
26285 | fail: | |
26286 | return NULL; | |
26287 | } | |
26288 | ||
26289 | ||
26290 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26291 | PyObject *resultobj; | |
26292 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26293 | size_t arg2 ; | |
26294 | wxMenuItem *result; | |
26295 | PyObject * obj0 = 0 ; | |
26296 | PyObject * obj1 = 0 ; | |
26297 | char *kwnames[] = { | |
26298 | (char *) "self",(char *) "position", NULL | |
26299 | }; | |
26300 | ||
26301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
26302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26303 | arg2 = (size_t) PyInt_AsLong(obj1); | |
26304 | if (PyErr_Occurred()) SWIG_fail; | |
26305 | { | |
26306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26307 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
26308 | ||
26309 | wxPyEndAllowThreads(__tstate); | |
26310 | if (PyErr_Occurred()) SWIG_fail; | |
26311 | } | |
26312 | { | |
26313 | resultobj = wxPyMake_wxObject(result); | |
26314 | } | |
26315 | return resultobj; | |
26316 | fail: | |
26317 | return NULL; | |
26318 | } | |
26319 | ||
26320 | ||
26321 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26322 | PyObject *resultobj; | |
26323 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26324 | int arg2 ; | |
26325 | bool arg3 ; | |
26326 | PyObject * obj0 = 0 ; | |
26327 | PyObject * obj2 = 0 ; | |
26328 | char *kwnames[] = { | |
f0983263 | 26329 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
26330 | }; |
26331 | ||
26332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_Enable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26334 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
26335 | if (PyErr_Occurred()) SWIG_fail; | |
26336 | { | |
26337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26338 | (arg1)->Enable(arg2,arg3); | |
26339 | ||
26340 | wxPyEndAllowThreads(__tstate); | |
26341 | if (PyErr_Occurred()) SWIG_fail; | |
26342 | } | |
26343 | Py_INCREF(Py_None); resultobj = Py_None; | |
26344 | return resultobj; | |
26345 | fail: | |
26346 | return NULL; | |
26347 | } | |
26348 | ||
26349 | ||
26350 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26351 | PyObject *resultobj; | |
26352 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26353 | int arg2 ; | |
26354 | bool result; | |
26355 | PyObject * obj0 = 0 ; | |
26356 | char *kwnames[] = { | |
f0983263 | 26357 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26358 | }; |
26359 | ||
26360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_IsEnabled",kwnames,&obj0,&arg2)) goto fail; | |
26361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26362 | { | |
26363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26364 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
26365 | ||
26366 | wxPyEndAllowThreads(__tstate); | |
26367 | if (PyErr_Occurred()) SWIG_fail; | |
26368 | } | |
26369 | resultobj = PyInt_FromLong((long)result); | |
26370 | return resultobj; | |
26371 | fail: | |
26372 | return NULL; | |
26373 | } | |
26374 | ||
26375 | ||
26376 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26377 | PyObject *resultobj; | |
26378 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26379 | int arg2 ; | |
26380 | bool arg3 ; | |
26381 | PyObject * obj0 = 0 ; | |
26382 | PyObject * obj2 = 0 ; | |
26383 | char *kwnames[] = { | |
f0983263 | 26384 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
26385 | }; |
26386 | ||
26387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_Check",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26389 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
26390 | if (PyErr_Occurred()) SWIG_fail; | |
26391 | { | |
26392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26393 | (arg1)->Check(arg2,arg3); | |
26394 | ||
26395 | wxPyEndAllowThreads(__tstate); | |
26396 | if (PyErr_Occurred()) SWIG_fail; | |
26397 | } | |
26398 | Py_INCREF(Py_None); resultobj = Py_None; | |
26399 | return resultobj; | |
26400 | fail: | |
26401 | return NULL; | |
26402 | } | |
26403 | ||
26404 | ||
26405 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26406 | PyObject *resultobj; | |
26407 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26408 | int arg2 ; | |
26409 | bool result; | |
26410 | PyObject * obj0 = 0 ; | |
26411 | char *kwnames[] = { | |
f0983263 | 26412 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26413 | }; |
26414 | ||
26415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_IsChecked",kwnames,&obj0,&arg2)) goto fail; | |
26416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26417 | { | |
26418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26419 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
26420 | ||
26421 | wxPyEndAllowThreads(__tstate); | |
26422 | if (PyErr_Occurred()) SWIG_fail; | |
26423 | } | |
26424 | resultobj = PyInt_FromLong((long)result); | |
26425 | return resultobj; | |
26426 | fail: | |
26427 | return NULL; | |
26428 | } | |
26429 | ||
26430 | ||
26431 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26432 | PyObject *resultobj; | |
26433 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26434 | int arg2 ; | |
26435 | wxString *arg3 = 0 ; | |
423f194a | 26436 | bool temp3 = False ; |
d14a1e28 RD |
26437 | PyObject * obj0 = 0 ; |
26438 | PyObject * obj2 = 0 ; | |
26439 | char *kwnames[] = { | |
f0983263 | 26440 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
26441 | }; |
26442 | ||
26443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_SetLabel",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26445 | { | |
26446 | arg3 = wxString_in_helper(obj2); | |
26447 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26448 | temp3 = True; |
d14a1e28 RD |
26449 | } |
26450 | { | |
26451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26452 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
26453 | ||
26454 | wxPyEndAllowThreads(__tstate); | |
26455 | if (PyErr_Occurred()) SWIG_fail; | |
26456 | } | |
26457 | Py_INCREF(Py_None); resultobj = Py_None; | |
26458 | { | |
26459 | if (temp3) | |
26460 | delete arg3; | |
26461 | } | |
26462 | return resultobj; | |
26463 | fail: | |
26464 | { | |
26465 | if (temp3) | |
26466 | delete arg3; | |
26467 | } | |
26468 | return NULL; | |
26469 | } | |
26470 | ||
26471 | ||
26472 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26473 | PyObject *resultobj; | |
26474 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26475 | int arg2 ; | |
26476 | wxString result; | |
26477 | PyObject * obj0 = 0 ; | |
26478 | char *kwnames[] = { | |
f0983263 | 26479 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26480 | }; |
26481 | ||
26482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_GetLabel",kwnames,&obj0,&arg2)) goto fail; | |
26483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26484 | { | |
26485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26486 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
26487 | ||
26488 | wxPyEndAllowThreads(__tstate); | |
26489 | if (PyErr_Occurred()) SWIG_fail; | |
26490 | } | |
26491 | { | |
26492 | #if wxUSE_UNICODE | |
26493 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26494 | #else | |
26495 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26496 | #endif | |
26497 | } | |
26498 | return resultobj; | |
26499 | fail: | |
26500 | return NULL; | |
26501 | } | |
26502 | ||
26503 | ||
26504 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26505 | PyObject *resultobj; | |
26506 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26507 | int arg2 ; | |
26508 | wxString *arg3 = 0 ; | |
423f194a | 26509 | bool temp3 = False ; |
d14a1e28 RD |
26510 | PyObject * obj0 = 0 ; |
26511 | PyObject * obj2 = 0 ; | |
26512 | char *kwnames[] = { | |
f0983263 | 26513 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
26514 | }; |
26515 | ||
26516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_SetHelpString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26518 | { | |
26519 | arg3 = wxString_in_helper(obj2); | |
26520 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26521 | temp3 = True; |
d14a1e28 RD |
26522 | } |
26523 | { | |
26524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26525 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
26526 | ||
26527 | wxPyEndAllowThreads(__tstate); | |
26528 | if (PyErr_Occurred()) SWIG_fail; | |
26529 | } | |
26530 | Py_INCREF(Py_None); resultobj = Py_None; | |
26531 | { | |
26532 | if (temp3) | |
26533 | delete arg3; | |
26534 | } | |
26535 | return resultobj; | |
26536 | fail: | |
26537 | { | |
26538 | if (temp3) | |
26539 | delete arg3; | |
26540 | } | |
26541 | return NULL; | |
26542 | } | |
26543 | ||
26544 | ||
26545 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26546 | PyObject *resultobj; | |
26547 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26548 | int arg2 ; | |
26549 | wxString result; | |
26550 | PyObject * obj0 = 0 ; | |
26551 | char *kwnames[] = { | |
f0983263 | 26552 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26553 | }; |
26554 | ||
26555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_GetHelpString",kwnames,&obj0,&arg2)) goto fail; | |
26556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26557 | { | |
26558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26559 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
26560 | ||
26561 | wxPyEndAllowThreads(__tstate); | |
26562 | if (PyErr_Occurred()) SWIG_fail; | |
26563 | } | |
26564 | { | |
26565 | #if wxUSE_UNICODE | |
26566 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26567 | #else | |
26568 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26569 | #endif | |
26570 | } | |
26571 | return resultobj; | |
26572 | fail: | |
26573 | return NULL; | |
26574 | } | |
26575 | ||
26576 | ||
26577 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26578 | PyObject *resultobj; | |
26579 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26580 | wxString *arg2 = 0 ; | |
423f194a | 26581 | bool temp2 = False ; |
d14a1e28 RD |
26582 | PyObject * obj0 = 0 ; |
26583 | PyObject * obj1 = 0 ; | |
26584 | char *kwnames[] = { | |
26585 | (char *) "self",(char *) "title", NULL | |
26586 | }; | |
26587 | ||
26588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
26589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26590 | { | |
26591 | arg2 = wxString_in_helper(obj1); | |
26592 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26593 | temp2 = True; |
d14a1e28 RD |
26594 | } |
26595 | { | |
26596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26597 | (arg1)->SetTitle((wxString const &)*arg2); | |
26598 | ||
26599 | wxPyEndAllowThreads(__tstate); | |
26600 | if (PyErr_Occurred()) SWIG_fail; | |
26601 | } | |
26602 | Py_INCREF(Py_None); resultobj = Py_None; | |
26603 | { | |
26604 | if (temp2) | |
26605 | delete arg2; | |
26606 | } | |
26607 | return resultobj; | |
26608 | fail: | |
26609 | { | |
26610 | if (temp2) | |
26611 | delete arg2; | |
26612 | } | |
26613 | return NULL; | |
26614 | } | |
26615 | ||
26616 | ||
26617 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26618 | PyObject *resultobj; | |
26619 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26620 | wxString result; | |
26621 | PyObject * obj0 = 0 ; | |
26622 | char *kwnames[] = { | |
26623 | (char *) "self", NULL | |
26624 | }; | |
26625 | ||
26626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
26627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26628 | { | |
26629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26630 | result = ((wxMenu const *)arg1)->GetTitle(); | |
26631 | ||
26632 | wxPyEndAllowThreads(__tstate); | |
26633 | if (PyErr_Occurred()) SWIG_fail; | |
26634 | } | |
26635 | { | |
26636 | #if wxUSE_UNICODE | |
26637 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26638 | #else | |
26639 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26640 | #endif | |
26641 | } | |
26642 | return resultobj; | |
26643 | fail: | |
26644 | return NULL; | |
26645 | } | |
26646 | ||
26647 | ||
26648 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26649 | PyObject *resultobj; | |
26650 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26651 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
26652 | PyObject * obj0 = 0 ; | |
26653 | PyObject * obj1 = 0 ; | |
26654 | char *kwnames[] = { | |
26655 | (char *) "self",(char *) "handler", NULL | |
26656 | }; | |
26657 | ||
26658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
26659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26660 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26661 | { | |
26662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26663 | (arg1)->SetEventHandler(arg2); | |
26664 | ||
26665 | wxPyEndAllowThreads(__tstate); | |
26666 | if (PyErr_Occurred()) SWIG_fail; | |
26667 | } | |
26668 | Py_INCREF(Py_None); resultobj = Py_None; | |
26669 | return resultobj; | |
26670 | fail: | |
26671 | return NULL; | |
26672 | } | |
26673 | ||
26674 | ||
26675 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26676 | PyObject *resultobj; | |
26677 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26678 | wxEvtHandler *result; | |
26679 | PyObject * obj0 = 0 ; | |
26680 | char *kwnames[] = { | |
26681 | (char *) "self", NULL | |
26682 | }; | |
26683 | ||
26684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
26685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26686 | { | |
26687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26688 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
26689 | ||
26690 | wxPyEndAllowThreads(__tstate); | |
26691 | if (PyErr_Occurred()) SWIG_fail; | |
26692 | } | |
26693 | { | |
26694 | resultobj = wxPyMake_wxObject(result); | |
26695 | } | |
26696 | return resultobj; | |
26697 | fail: | |
26698 | return NULL; | |
26699 | } | |
26700 | ||
26701 | ||
26702 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26703 | PyObject *resultobj; | |
26704 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26705 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26706 | PyObject * obj0 = 0 ; | |
26707 | PyObject * obj1 = 0 ; | |
26708 | char *kwnames[] = { | |
26709 | (char *) "self",(char *) "win", NULL | |
26710 | }; | |
26711 | ||
26712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
26713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26714 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26715 | { | |
26716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26717 | (arg1)->SetInvokingWindow(arg2); | |
26718 | ||
26719 | wxPyEndAllowThreads(__tstate); | |
26720 | if (PyErr_Occurred()) SWIG_fail; | |
26721 | } | |
26722 | Py_INCREF(Py_None); resultobj = Py_None; | |
26723 | return resultobj; | |
26724 | fail: | |
26725 | return NULL; | |
26726 | } | |
26727 | ||
26728 | ||
26729 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26730 | PyObject *resultobj; | |
26731 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26732 | wxWindow *result; | |
26733 | PyObject * obj0 = 0 ; | |
26734 | char *kwnames[] = { | |
26735 | (char *) "self", NULL | |
26736 | }; | |
26737 | ||
26738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
26739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26740 | { | |
26741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26742 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
26743 | ||
26744 | wxPyEndAllowThreads(__tstate); | |
26745 | if (PyErr_Occurred()) SWIG_fail; | |
26746 | } | |
26747 | { | |
26748 | resultobj = wxPyMake_wxObject(result); | |
26749 | } | |
26750 | return resultobj; | |
26751 | fail: | |
26752 | return NULL; | |
26753 | } | |
26754 | ||
26755 | ||
26756 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26757 | PyObject *resultobj; | |
26758 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26759 | long result; | |
26760 | PyObject * obj0 = 0 ; | |
26761 | char *kwnames[] = { | |
26762 | (char *) "self", NULL | |
26763 | }; | |
26764 | ||
26765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
26766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26767 | { | |
26768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26769 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
26770 | ||
26771 | wxPyEndAllowThreads(__tstate); | |
26772 | if (PyErr_Occurred()) SWIG_fail; | |
26773 | } | |
26774 | resultobj = PyInt_FromLong((long)result); | |
26775 | return resultobj; | |
26776 | fail: | |
26777 | return NULL; | |
26778 | } | |
26779 | ||
26780 | ||
26781 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26782 | PyObject *resultobj; | |
26783 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26784 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
26785 | PyObject * obj0 = 0 ; | |
26786 | PyObject * obj1 = 0 ; | |
26787 | char *kwnames[] = { | |
26788 | (char *) "self",(char *) "source", NULL | |
26789 | }; | |
26790 | ||
26791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
26792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26793 | if (obj1) { | |
26794 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26795 | } | |
26796 | { | |
26797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26798 | (arg1)->UpdateUI(arg2); | |
26799 | ||
26800 | wxPyEndAllowThreads(__tstate); | |
26801 | if (PyErr_Occurred()) SWIG_fail; | |
26802 | } | |
26803 | Py_INCREF(Py_None); resultobj = Py_None; | |
26804 | return resultobj; | |
26805 | fail: | |
26806 | return NULL; | |
26807 | } | |
26808 | ||
26809 | ||
26810 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26811 | PyObject *resultobj; | |
26812 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26813 | wxMenuBar *result; | |
26814 | PyObject * obj0 = 0 ; | |
26815 | char *kwnames[] = { | |
26816 | (char *) "self", NULL | |
26817 | }; | |
26818 | ||
26819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
26820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26821 | { | |
26822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26823 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
26824 | ||
26825 | wxPyEndAllowThreads(__tstate); | |
26826 | if (PyErr_Occurred()) SWIG_fail; | |
26827 | } | |
26828 | { | |
26829 | resultobj = wxPyMake_wxObject(result); | |
26830 | } | |
26831 | return resultobj; | |
26832 | fail: | |
26833 | return NULL; | |
26834 | } | |
26835 | ||
26836 | ||
26837 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26838 | PyObject *resultobj; | |
26839 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26840 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
26841 | PyObject * obj0 = 0 ; | |
26842 | PyObject * obj1 = 0 ; | |
26843 | char *kwnames[] = { | |
26844 | (char *) "self",(char *) "menubar", NULL | |
26845 | }; | |
26846 | ||
26847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
26848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26849 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26850 | { | |
26851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26852 | (arg1)->Attach(arg2); | |
26853 | ||
26854 | wxPyEndAllowThreads(__tstate); | |
26855 | if (PyErr_Occurred()) SWIG_fail; | |
26856 | } | |
26857 | Py_INCREF(Py_None); resultobj = Py_None; | |
26858 | return resultobj; | |
26859 | fail: | |
26860 | return NULL; | |
26861 | } | |
26862 | ||
26863 | ||
26864 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26865 | PyObject *resultobj; | |
26866 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26867 | PyObject * obj0 = 0 ; | |
26868 | char *kwnames[] = { | |
26869 | (char *) "self", NULL | |
26870 | }; | |
26871 | ||
26872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
26873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26874 | { | |
26875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26876 | (arg1)->Detach(); | |
26877 | ||
26878 | wxPyEndAllowThreads(__tstate); | |
26879 | if (PyErr_Occurred()) SWIG_fail; | |
26880 | } | |
26881 | Py_INCREF(Py_None); resultobj = Py_None; | |
26882 | return resultobj; | |
26883 | fail: | |
26884 | return NULL; | |
26885 | } | |
26886 | ||
26887 | ||
26888 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26889 | PyObject *resultobj; | |
26890 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26891 | bool result; | |
26892 | PyObject * obj0 = 0 ; | |
26893 | char *kwnames[] = { | |
26894 | (char *) "self", NULL | |
26895 | }; | |
26896 | ||
26897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
26898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26899 | { | |
26900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26901 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
26902 | ||
26903 | wxPyEndAllowThreads(__tstate); | |
26904 | if (PyErr_Occurred()) SWIG_fail; | |
26905 | } | |
26906 | resultobj = PyInt_FromLong((long)result); | |
26907 | return resultobj; | |
26908 | fail: | |
26909 | return NULL; | |
26910 | } | |
26911 | ||
26912 | ||
26913 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26914 | PyObject *resultobj; | |
26915 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26916 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26917 | PyObject * obj0 = 0 ; | |
26918 | PyObject * obj1 = 0 ; | |
26919 | char *kwnames[] = { | |
26920 | (char *) "self",(char *) "parent", NULL | |
26921 | }; | |
26922 | ||
26923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
26924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26925 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26926 | { | |
26927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26928 | (arg1)->SetParent(arg2); | |
26929 | ||
26930 | wxPyEndAllowThreads(__tstate); | |
26931 | if (PyErr_Occurred()) SWIG_fail; | |
26932 | } | |
26933 | Py_INCREF(Py_None); resultobj = Py_None; | |
26934 | return resultobj; | |
26935 | fail: | |
26936 | return NULL; | |
26937 | } | |
26938 | ||
26939 | ||
26940 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26941 | PyObject *resultobj; | |
26942 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26943 | wxMenu *result; | |
26944 | PyObject * obj0 = 0 ; | |
26945 | char *kwnames[] = { | |
26946 | (char *) "self", NULL | |
26947 | }; | |
26948 | ||
26949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
26950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26951 | { | |
26952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26953 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
26954 | ||
26955 | wxPyEndAllowThreads(__tstate); | |
26956 | if (PyErr_Occurred()) SWIG_fail; | |
26957 | } | |
26958 | { | |
26959 | resultobj = wxPyMake_wxObject(result); | |
26960 | } | |
26961 | return resultobj; | |
26962 | fail: | |
26963 | return NULL; | |
26964 | } | |
26965 | ||
26966 | ||
26967 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
26968 | PyObject *obj; | |
26969 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26970 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
26971 | Py_INCREF(obj); | |
26972 | return Py_BuildValue((char *)""); | |
26973 | } | |
26974 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26975 | PyObject *resultobj; | |
26976 | long arg1 = (long) 0 ; | |
26977 | wxMenuBar *result; | |
26978 | char *kwnames[] = { | |
26979 | (char *) "style", NULL | |
26980 | }; | |
26981 | ||
26982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|l:new_MenuBar",kwnames,&arg1)) goto fail; | |
26983 | { | |
26984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26985 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
26986 | ||
26987 | wxPyEndAllowThreads(__tstate); | |
26988 | if (PyErr_Occurred()) SWIG_fail; | |
26989 | } | |
26990 | { | |
26991 | resultobj = wxPyMake_wxObject(result); | |
26992 | } | |
26993 | return resultobj; | |
26994 | fail: | |
26995 | return NULL; | |
26996 | } | |
26997 | ||
26998 | ||
26999 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27000 | PyObject *resultobj; | |
27001 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27002 | wxMenu *arg2 = (wxMenu *) 0 ; | |
27003 | wxString *arg3 = 0 ; | |
27004 | bool result; | |
423f194a | 27005 | bool temp3 = False ; |
d14a1e28 RD |
27006 | PyObject * obj0 = 0 ; |
27007 | PyObject * obj1 = 0 ; | |
27008 | PyObject * obj2 = 0 ; | |
27009 | char *kwnames[] = { | |
27010 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
27011 | }; | |
27012 | ||
27013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27015 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27016 | { | |
27017 | arg3 = wxString_in_helper(obj2); | |
27018 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27019 | temp3 = True; |
d14a1e28 RD |
27020 | } |
27021 | { | |
27022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27023 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
27024 | ||
27025 | wxPyEndAllowThreads(__tstate); | |
27026 | if (PyErr_Occurred()) SWIG_fail; | |
27027 | } | |
27028 | resultobj = PyInt_FromLong((long)result); | |
27029 | { | |
27030 | if (temp3) | |
27031 | delete arg3; | |
27032 | } | |
27033 | return resultobj; | |
27034 | fail: | |
27035 | { | |
27036 | if (temp3) | |
27037 | delete arg3; | |
27038 | } | |
27039 | return NULL; | |
27040 | } | |
27041 | ||
27042 | ||
27043 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27044 | PyObject *resultobj; | |
27045 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27046 | size_t arg2 ; | |
27047 | wxMenu *arg3 = (wxMenu *) 0 ; | |
27048 | wxString *arg4 = 0 ; | |
27049 | bool result; | |
423f194a | 27050 | bool temp4 = False ; |
d14a1e28 RD |
27051 | PyObject * obj0 = 0 ; |
27052 | PyObject * obj1 = 0 ; | |
27053 | PyObject * obj2 = 0 ; | |
27054 | PyObject * obj3 = 0 ; | |
27055 | char *kwnames[] = { | |
27056 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
27057 | }; | |
27058 | ||
27059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27061 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27062 | if (PyErr_Occurred()) SWIG_fail; | |
27063 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27064 | { | |
27065 | arg4 = wxString_in_helper(obj3); | |
27066 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27067 | temp4 = True; |
d14a1e28 RD |
27068 | } |
27069 | { | |
27070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27071 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
27072 | ||
27073 | wxPyEndAllowThreads(__tstate); | |
27074 | if (PyErr_Occurred()) SWIG_fail; | |
27075 | } | |
27076 | resultobj = PyInt_FromLong((long)result); | |
27077 | { | |
27078 | if (temp4) | |
27079 | delete arg4; | |
27080 | } | |
27081 | return resultobj; | |
27082 | fail: | |
27083 | { | |
27084 | if (temp4) | |
27085 | delete arg4; | |
27086 | } | |
27087 | return NULL; | |
27088 | } | |
27089 | ||
27090 | ||
27091 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27092 | PyObject *resultobj; | |
27093 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27094 | size_t result; | |
27095 | PyObject * obj0 = 0 ; | |
27096 | char *kwnames[] = { | |
27097 | (char *) "self", NULL | |
27098 | }; | |
27099 | ||
27100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
27101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27102 | { | |
27103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27104 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
27105 | ||
27106 | wxPyEndAllowThreads(__tstate); | |
27107 | if (PyErr_Occurred()) SWIG_fail; | |
27108 | } | |
27109 | resultobj = PyInt_FromLong((long)result); | |
27110 | return resultobj; | |
27111 | fail: | |
27112 | return NULL; | |
27113 | } | |
27114 | ||
27115 | ||
27116 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27117 | PyObject *resultobj; | |
27118 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27119 | size_t arg2 ; | |
27120 | wxMenu *result; | |
27121 | PyObject * obj0 = 0 ; | |
27122 | PyObject * obj1 = 0 ; | |
27123 | char *kwnames[] = { | |
27124 | (char *) "self",(char *) "pos", NULL | |
27125 | }; | |
27126 | ||
27127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
27128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27129 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27130 | if (PyErr_Occurred()) SWIG_fail; | |
27131 | { | |
27132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27133 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
27134 | ||
27135 | wxPyEndAllowThreads(__tstate); | |
27136 | if (PyErr_Occurred()) SWIG_fail; | |
27137 | } | |
27138 | { | |
27139 | resultobj = wxPyMake_wxObject(result); | |
27140 | } | |
27141 | return resultobj; | |
27142 | fail: | |
27143 | return NULL; | |
27144 | } | |
27145 | ||
27146 | ||
27147 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27148 | PyObject *resultobj; | |
27149 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27150 | size_t arg2 ; | |
27151 | wxMenu *arg3 = (wxMenu *) 0 ; | |
27152 | wxString *arg4 = 0 ; | |
27153 | wxMenu *result; | |
423f194a | 27154 | bool temp4 = False ; |
d14a1e28 RD |
27155 | PyObject * obj0 = 0 ; |
27156 | PyObject * obj1 = 0 ; | |
27157 | PyObject * obj2 = 0 ; | |
27158 | PyObject * obj3 = 0 ; | |
27159 | char *kwnames[] = { | |
27160 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
27161 | }; | |
27162 | ||
27163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27165 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27166 | if (PyErr_Occurred()) SWIG_fail; | |
27167 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27168 | { | |
27169 | arg4 = wxString_in_helper(obj3); | |
27170 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27171 | temp4 = True; |
d14a1e28 RD |
27172 | } |
27173 | { | |
27174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27175 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
27176 | ||
27177 | wxPyEndAllowThreads(__tstate); | |
27178 | if (PyErr_Occurred()) SWIG_fail; | |
27179 | } | |
27180 | { | |
27181 | resultobj = wxPyMake_wxObject(result); | |
27182 | } | |
27183 | { | |
27184 | if (temp4) | |
27185 | delete arg4; | |
27186 | } | |
27187 | return resultobj; | |
27188 | fail: | |
27189 | { | |
27190 | if (temp4) | |
27191 | delete arg4; | |
27192 | } | |
27193 | return NULL; | |
27194 | } | |
27195 | ||
27196 | ||
27197 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27198 | PyObject *resultobj; | |
27199 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27200 | size_t arg2 ; | |
27201 | wxMenu *result; | |
27202 | PyObject * obj0 = 0 ; | |
27203 | PyObject * obj1 = 0 ; | |
27204 | char *kwnames[] = { | |
27205 | (char *) "self",(char *) "pos", NULL | |
27206 | }; | |
27207 | ||
27208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
27209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27210 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27211 | if (PyErr_Occurred()) SWIG_fail; | |
27212 | { | |
27213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27214 | result = (wxMenu *)(arg1)->Remove(arg2); | |
27215 | ||
27216 | wxPyEndAllowThreads(__tstate); | |
27217 | if (PyErr_Occurred()) SWIG_fail; | |
27218 | } | |
27219 | { | |
27220 | resultobj = wxPyMake_wxObject(result); | |
27221 | } | |
27222 | return resultobj; | |
27223 | fail: | |
27224 | return NULL; | |
27225 | } | |
27226 | ||
27227 | ||
27228 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27229 | PyObject *resultobj; | |
27230 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27231 | size_t arg2 ; | |
27232 | bool arg3 ; | |
27233 | PyObject * obj0 = 0 ; | |
27234 | PyObject * obj1 = 0 ; | |
27235 | PyObject * obj2 = 0 ; | |
27236 | char *kwnames[] = { | |
27237 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
27238 | }; | |
27239 | ||
27240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27242 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27243 | if (PyErr_Occurred()) SWIG_fail; | |
27244 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
27245 | if (PyErr_Occurred()) SWIG_fail; | |
27246 | { | |
27247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27248 | (arg1)->EnableTop(arg2,arg3); | |
27249 | ||
27250 | wxPyEndAllowThreads(__tstate); | |
27251 | if (PyErr_Occurred()) SWIG_fail; | |
27252 | } | |
27253 | Py_INCREF(Py_None); resultobj = Py_None; | |
27254 | return resultobj; | |
27255 | fail: | |
27256 | return NULL; | |
27257 | } | |
27258 | ||
27259 | ||
27260 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27261 | PyObject *resultobj; | |
27262 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27263 | size_t arg2 ; | |
27264 | bool result; | |
27265 | PyObject * obj0 = 0 ; | |
27266 | PyObject * obj1 = 0 ; | |
27267 | char *kwnames[] = { | |
27268 | (char *) "self",(char *) "pos", NULL | |
27269 | }; | |
27270 | ||
27271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
27272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27273 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27274 | if (PyErr_Occurred()) SWIG_fail; | |
27275 | { | |
27276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27277 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
27278 | ||
27279 | wxPyEndAllowThreads(__tstate); | |
27280 | if (PyErr_Occurred()) SWIG_fail; | |
27281 | } | |
27282 | resultobj = PyInt_FromLong((long)result); | |
27283 | return resultobj; | |
27284 | fail: | |
27285 | return NULL; | |
27286 | } | |
27287 | ||
27288 | ||
27289 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27290 | PyObject *resultobj; | |
27291 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27292 | size_t arg2 ; | |
27293 | wxString *arg3 = 0 ; | |
423f194a | 27294 | bool temp3 = False ; |
d14a1e28 RD |
27295 | PyObject * obj0 = 0 ; |
27296 | PyObject * obj1 = 0 ; | |
27297 | PyObject * obj2 = 0 ; | |
27298 | char *kwnames[] = { | |
27299 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
27300 | }; | |
27301 | ||
27302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27304 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27305 | if (PyErr_Occurred()) SWIG_fail; | |
27306 | { | |
27307 | arg3 = wxString_in_helper(obj2); | |
27308 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27309 | temp3 = True; |
d14a1e28 RD |
27310 | } |
27311 | { | |
27312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27313 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
27314 | ||
27315 | wxPyEndAllowThreads(__tstate); | |
27316 | if (PyErr_Occurred()) SWIG_fail; | |
27317 | } | |
27318 | Py_INCREF(Py_None); resultobj = Py_None; | |
27319 | { | |
27320 | if (temp3) | |
27321 | delete arg3; | |
27322 | } | |
27323 | return resultobj; | |
27324 | fail: | |
27325 | { | |
27326 | if (temp3) | |
27327 | delete arg3; | |
27328 | } | |
27329 | return NULL; | |
27330 | } | |
27331 | ||
27332 | ||
27333 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27334 | PyObject *resultobj; | |
27335 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27336 | size_t arg2 ; | |
27337 | wxString result; | |
27338 | PyObject * obj0 = 0 ; | |
27339 | PyObject * obj1 = 0 ; | |
27340 | char *kwnames[] = { | |
27341 | (char *) "self",(char *) "pos", NULL | |
27342 | }; | |
27343 | ||
27344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
27345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27346 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27347 | if (PyErr_Occurred()) SWIG_fail; | |
27348 | { | |
27349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27350 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
27351 | ||
27352 | wxPyEndAllowThreads(__tstate); | |
27353 | if (PyErr_Occurred()) SWIG_fail; | |
27354 | } | |
27355 | { | |
27356 | #if wxUSE_UNICODE | |
27357 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27358 | #else | |
27359 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27360 | #endif | |
27361 | } | |
27362 | return resultobj; | |
27363 | fail: | |
27364 | return NULL; | |
27365 | } | |
27366 | ||
27367 | ||
27368 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27369 | PyObject *resultobj; | |
27370 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27371 | wxString *arg2 = 0 ; | |
27372 | wxString *arg3 = 0 ; | |
27373 | int result; | |
423f194a RD |
27374 | bool temp2 = False ; |
27375 | bool temp3 = False ; | |
d14a1e28 RD |
27376 | PyObject * obj0 = 0 ; |
27377 | PyObject * obj1 = 0 ; | |
27378 | PyObject * obj2 = 0 ; | |
27379 | char *kwnames[] = { | |
27380 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
27381 | }; | |
27382 | ||
27383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27385 | { | |
27386 | arg2 = wxString_in_helper(obj1); | |
27387 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27388 | temp2 = True; |
d14a1e28 RD |
27389 | } |
27390 | { | |
27391 | arg3 = wxString_in_helper(obj2); | |
27392 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27393 | temp3 = True; |
d14a1e28 RD |
27394 | } |
27395 | { | |
27396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27397 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
27398 | ||
27399 | wxPyEndAllowThreads(__tstate); | |
27400 | if (PyErr_Occurred()) SWIG_fail; | |
27401 | } | |
27402 | resultobj = PyInt_FromLong((long)result); | |
27403 | { | |
27404 | if (temp2) | |
27405 | delete arg2; | |
27406 | } | |
27407 | { | |
27408 | if (temp3) | |
27409 | delete arg3; | |
27410 | } | |
27411 | return resultobj; | |
27412 | fail: | |
27413 | { | |
27414 | if (temp2) | |
27415 | delete arg2; | |
27416 | } | |
27417 | { | |
27418 | if (temp3) | |
27419 | delete arg3; | |
27420 | } | |
27421 | return NULL; | |
27422 | } | |
27423 | ||
27424 | ||
27425 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27426 | PyObject *resultobj; | |
27427 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27428 | int arg2 ; | |
27429 | wxMenuItem *result; | |
27430 | PyObject * obj0 = 0 ; | |
27431 | char *kwnames[] = { | |
f0983263 | 27432 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27433 | }; |
27434 | ||
27435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_FindItemById",kwnames,&obj0,&arg2)) goto fail; | |
27436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27437 | { | |
27438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27439 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
27440 | ||
27441 | wxPyEndAllowThreads(__tstate); | |
27442 | if (PyErr_Occurred()) SWIG_fail; | |
27443 | } | |
27444 | { | |
27445 | resultobj = wxPyMake_wxObject(result); | |
27446 | } | |
27447 | return resultobj; | |
27448 | fail: | |
27449 | return NULL; | |
27450 | } | |
27451 | ||
27452 | ||
27453 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27454 | PyObject *resultobj; | |
27455 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27456 | wxString *arg2 = 0 ; | |
27457 | int result; | |
423f194a | 27458 | bool temp2 = False ; |
d14a1e28 RD |
27459 | PyObject * obj0 = 0 ; |
27460 | PyObject * obj1 = 0 ; | |
27461 | char *kwnames[] = { | |
27462 | (char *) "self",(char *) "title", NULL | |
27463 | }; | |
27464 | ||
27465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
27466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27467 | { | |
27468 | arg2 = wxString_in_helper(obj1); | |
27469 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27470 | temp2 = True; |
d14a1e28 RD |
27471 | } |
27472 | { | |
27473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27474 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
27475 | ||
27476 | wxPyEndAllowThreads(__tstate); | |
27477 | if (PyErr_Occurred()) SWIG_fail; | |
27478 | } | |
27479 | resultobj = PyInt_FromLong((long)result); | |
27480 | { | |
27481 | if (temp2) | |
27482 | delete arg2; | |
27483 | } | |
27484 | return resultobj; | |
27485 | fail: | |
27486 | { | |
27487 | if (temp2) | |
27488 | delete arg2; | |
27489 | } | |
27490 | return NULL; | |
27491 | } | |
27492 | ||
27493 | ||
27494 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27495 | PyObject *resultobj; | |
27496 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27497 | int arg2 ; | |
27498 | bool arg3 ; | |
27499 | PyObject * obj0 = 0 ; | |
27500 | PyObject * obj2 = 0 ; | |
27501 | char *kwnames[] = { | |
f0983263 | 27502 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
27503 | }; |
27504 | ||
27505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_Enable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27507 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
27508 | if (PyErr_Occurred()) SWIG_fail; | |
27509 | { | |
27510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27511 | (arg1)->Enable(arg2,arg3); | |
27512 | ||
27513 | wxPyEndAllowThreads(__tstate); | |
27514 | if (PyErr_Occurred()) SWIG_fail; | |
27515 | } | |
27516 | Py_INCREF(Py_None); resultobj = Py_None; | |
27517 | return resultobj; | |
27518 | fail: | |
27519 | return NULL; | |
27520 | } | |
27521 | ||
27522 | ||
27523 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27524 | PyObject *resultobj; | |
27525 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27526 | int arg2 ; | |
27527 | bool arg3 ; | |
27528 | PyObject * obj0 = 0 ; | |
27529 | PyObject * obj2 = 0 ; | |
27530 | char *kwnames[] = { | |
f0983263 | 27531 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
27532 | }; |
27533 | ||
27534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_Check",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27536 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
27537 | if (PyErr_Occurred()) SWIG_fail; | |
27538 | { | |
27539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27540 | (arg1)->Check(arg2,arg3); | |
27541 | ||
27542 | wxPyEndAllowThreads(__tstate); | |
27543 | if (PyErr_Occurred()) SWIG_fail; | |
27544 | } | |
27545 | Py_INCREF(Py_None); resultobj = Py_None; | |
27546 | return resultobj; | |
27547 | fail: | |
27548 | return NULL; | |
27549 | } | |
27550 | ||
27551 | ||
27552 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27553 | PyObject *resultobj; | |
27554 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27555 | int arg2 ; | |
27556 | bool result; | |
27557 | PyObject * obj0 = 0 ; | |
27558 | char *kwnames[] = { | |
f0983263 | 27559 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27560 | }; |
27561 | ||
27562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_IsChecked",kwnames,&obj0,&arg2)) goto fail; | |
27563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27564 | { | |
27565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27566 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
27567 | ||
27568 | wxPyEndAllowThreads(__tstate); | |
27569 | if (PyErr_Occurred()) SWIG_fail; | |
27570 | } | |
27571 | resultobj = PyInt_FromLong((long)result); | |
27572 | return resultobj; | |
27573 | fail: | |
27574 | return NULL; | |
27575 | } | |
27576 | ||
27577 | ||
27578 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27579 | PyObject *resultobj; | |
27580 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27581 | int arg2 ; | |
27582 | bool result; | |
27583 | PyObject * obj0 = 0 ; | |
27584 | char *kwnames[] = { | |
f0983263 | 27585 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27586 | }; |
27587 | ||
27588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_IsEnabled",kwnames,&obj0,&arg2)) goto fail; | |
27589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27590 | { | |
27591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27592 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
27593 | ||
27594 | wxPyEndAllowThreads(__tstate); | |
27595 | if (PyErr_Occurred()) SWIG_fail; | |
27596 | } | |
27597 | resultobj = PyInt_FromLong((long)result); | |
27598 | return resultobj; | |
27599 | fail: | |
27600 | return NULL; | |
27601 | } | |
27602 | ||
27603 | ||
27604 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27605 | PyObject *resultobj; | |
27606 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27607 | int arg2 ; | |
27608 | wxString *arg3 = 0 ; | |
423f194a | 27609 | bool temp3 = False ; |
d14a1e28 RD |
27610 | PyObject * obj0 = 0 ; |
27611 | PyObject * obj2 = 0 ; | |
27612 | char *kwnames[] = { | |
f0983263 | 27613 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
27614 | }; |
27615 | ||
27616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_SetLabel",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27618 | { | |
27619 | arg3 = wxString_in_helper(obj2); | |
27620 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27621 | temp3 = True; |
d14a1e28 RD |
27622 | } |
27623 | { | |
27624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27625 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
27626 | ||
27627 | wxPyEndAllowThreads(__tstate); | |
27628 | if (PyErr_Occurred()) SWIG_fail; | |
27629 | } | |
27630 | Py_INCREF(Py_None); resultobj = Py_None; | |
27631 | { | |
27632 | if (temp3) | |
27633 | delete arg3; | |
27634 | } | |
27635 | return resultobj; | |
27636 | fail: | |
27637 | { | |
27638 | if (temp3) | |
27639 | delete arg3; | |
27640 | } | |
27641 | return NULL; | |
27642 | } | |
27643 | ||
27644 | ||
27645 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27646 | PyObject *resultobj; | |
27647 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27648 | int arg2 ; | |
27649 | wxString result; | |
27650 | PyObject * obj0 = 0 ; | |
27651 | char *kwnames[] = { | |
f0983263 | 27652 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27653 | }; |
27654 | ||
27655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_GetLabel",kwnames,&obj0,&arg2)) goto fail; | |
27656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27657 | { | |
27658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27659 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
27660 | ||
27661 | wxPyEndAllowThreads(__tstate); | |
27662 | if (PyErr_Occurred()) SWIG_fail; | |
27663 | } | |
27664 | { | |
27665 | #if wxUSE_UNICODE | |
27666 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27667 | #else | |
27668 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27669 | #endif | |
27670 | } | |
27671 | return resultobj; | |
27672 | fail: | |
27673 | return NULL; | |
27674 | } | |
27675 | ||
27676 | ||
27677 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27678 | PyObject *resultobj; | |
27679 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27680 | int arg2 ; | |
27681 | wxString *arg3 = 0 ; | |
423f194a | 27682 | bool temp3 = False ; |
d14a1e28 RD |
27683 | PyObject * obj0 = 0 ; |
27684 | PyObject * obj2 = 0 ; | |
27685 | char *kwnames[] = { | |
f0983263 | 27686 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
27687 | }; |
27688 | ||
27689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_SetHelpString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27691 | { | |
27692 | arg3 = wxString_in_helper(obj2); | |
27693 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27694 | temp3 = True; |
d14a1e28 RD |
27695 | } |
27696 | { | |
27697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27698 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
27699 | ||
27700 | wxPyEndAllowThreads(__tstate); | |
27701 | if (PyErr_Occurred()) SWIG_fail; | |
27702 | } | |
27703 | Py_INCREF(Py_None); resultobj = Py_None; | |
27704 | { | |
27705 | if (temp3) | |
27706 | delete arg3; | |
27707 | } | |
27708 | return resultobj; | |
27709 | fail: | |
27710 | { | |
27711 | if (temp3) | |
27712 | delete arg3; | |
27713 | } | |
27714 | return NULL; | |
27715 | } | |
27716 | ||
27717 | ||
27718 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27719 | PyObject *resultobj; | |
27720 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27721 | int arg2 ; | |
27722 | wxString result; | |
27723 | PyObject * obj0 = 0 ; | |
27724 | char *kwnames[] = { | |
f0983263 | 27725 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27726 | }; |
27727 | ||
27728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_GetHelpString",kwnames,&obj0,&arg2)) goto fail; | |
27729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27730 | { | |
27731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27732 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
27733 | ||
27734 | wxPyEndAllowThreads(__tstate); | |
27735 | if (PyErr_Occurred()) SWIG_fail; | |
27736 | } | |
27737 | { | |
27738 | #if wxUSE_UNICODE | |
27739 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27740 | #else | |
27741 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27742 | #endif | |
27743 | } | |
27744 | return resultobj; | |
27745 | fail: | |
27746 | return NULL; | |
27747 | } | |
27748 | ||
27749 | ||
27750 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27751 | PyObject *resultobj; | |
27752 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27753 | wxFrame *result; | |
27754 | PyObject * obj0 = 0 ; | |
27755 | char *kwnames[] = { | |
27756 | (char *) "self", NULL | |
27757 | }; | |
27758 | ||
27759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
27760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27761 | { | |
27762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27763 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
27764 | ||
27765 | wxPyEndAllowThreads(__tstate); | |
27766 | if (PyErr_Occurred()) SWIG_fail; | |
27767 | } | |
27768 | { | |
27769 | resultobj = wxPyMake_wxObject(result); | |
27770 | } | |
27771 | return resultobj; | |
27772 | fail: | |
27773 | return NULL; | |
27774 | } | |
27775 | ||
27776 | ||
27777 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27778 | PyObject *resultobj; | |
27779 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27780 | bool result; | |
27781 | PyObject * obj0 = 0 ; | |
27782 | char *kwnames[] = { | |
27783 | (char *) "self", NULL | |
27784 | }; | |
27785 | ||
27786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
27787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27788 | { | |
27789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27790 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
27791 | ||
27792 | wxPyEndAllowThreads(__tstate); | |
27793 | if (PyErr_Occurred()) SWIG_fail; | |
27794 | } | |
27795 | resultobj = PyInt_FromLong((long)result); | |
27796 | return resultobj; | |
27797 | fail: | |
27798 | return NULL; | |
27799 | } | |
27800 | ||
27801 | ||
27802 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27803 | PyObject *resultobj; | |
27804 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27805 | wxFrame *arg2 = (wxFrame *) 0 ; | |
27806 | PyObject * obj0 = 0 ; | |
27807 | PyObject * obj1 = 0 ; | |
27808 | char *kwnames[] = { | |
27809 | (char *) "self",(char *) "frame", NULL | |
27810 | }; | |
27811 | ||
27812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
27813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27814 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27815 | { | |
27816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27817 | (arg1)->Attach(arg2); | |
27818 | ||
27819 | wxPyEndAllowThreads(__tstate); | |
27820 | if (PyErr_Occurred()) SWIG_fail; | |
27821 | } | |
27822 | Py_INCREF(Py_None); resultobj = Py_None; | |
27823 | return resultobj; | |
27824 | fail: | |
27825 | return NULL; | |
27826 | } | |
27827 | ||
27828 | ||
27829 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27830 | PyObject *resultobj; | |
27831 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27832 | PyObject * obj0 = 0 ; | |
27833 | char *kwnames[] = { | |
27834 | (char *) "self", NULL | |
27835 | }; | |
27836 | ||
27837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
27838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27839 | { | |
27840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27841 | (arg1)->Detach(); | |
27842 | ||
27843 | wxPyEndAllowThreads(__tstate); | |
27844 | if (PyErr_Occurred()) SWIG_fail; | |
27845 | } | |
27846 | Py_INCREF(Py_None); resultobj = Py_None; | |
27847 | return resultobj; | |
27848 | fail: | |
27849 | return NULL; | |
27850 | } | |
27851 | ||
27852 | ||
27853 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
27854 | PyObject *obj; | |
27855 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27856 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
27857 | Py_INCREF(obj); | |
27858 | return Py_BuildValue((char *)""); | |
27859 | } | |
27860 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27861 | PyObject *resultobj; | |
27862 | wxMenu *arg1 = (wxMenu *) NULL ; | |
27863 | int arg2 = (int) wxID_SEPARATOR ; | |
27864 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
27865 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27866 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27867 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27868 | int arg5 = (int) wxITEM_NORMAL ; | |
27869 | wxMenu *arg6 = (wxMenu *) NULL ; | |
27870 | wxMenuItem *result; | |
423f194a RD |
27871 | bool temp3 = False ; |
27872 | bool temp4 = False ; | |
d14a1e28 RD |
27873 | PyObject * obj0 = 0 ; |
27874 | PyObject * obj2 = 0 ; | |
27875 | PyObject * obj3 = 0 ; | |
27876 | PyObject * obj5 = 0 ; | |
27877 | char *kwnames[] = { | |
27878 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
27879 | }; | |
27880 | ||
27881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiOOiO:new_MenuItem",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
27882 | if (obj0) { | |
27883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27884 | } | |
27885 | if (obj2) { | |
27886 | { | |
27887 | arg3 = wxString_in_helper(obj2); | |
27888 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27889 | temp3 = True; |
d14a1e28 RD |
27890 | } |
27891 | } | |
27892 | if (obj3) { | |
27893 | { | |
27894 | arg4 = wxString_in_helper(obj3); | |
27895 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27896 | temp4 = True; |
d14a1e28 RD |
27897 | } |
27898 | } | |
27899 | if (obj5) { | |
27900 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27901 | } | |
27902 | { | |
27903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27904 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
27905 | ||
27906 | wxPyEndAllowThreads(__tstate); | |
27907 | if (PyErr_Occurred()) SWIG_fail; | |
27908 | } | |
27909 | { | |
27910 | resultobj = wxPyMake_wxObject(result); | |
27911 | } | |
27912 | { | |
27913 | if (temp3) | |
27914 | delete arg3; | |
27915 | } | |
27916 | { | |
27917 | if (temp4) | |
27918 | delete arg4; | |
27919 | } | |
27920 | return resultobj; | |
27921 | fail: | |
27922 | { | |
27923 | if (temp3) | |
27924 | delete arg3; | |
27925 | } | |
27926 | { | |
27927 | if (temp4) | |
27928 | delete arg4; | |
27929 | } | |
27930 | return NULL; | |
27931 | } | |
27932 | ||
27933 | ||
27934 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27935 | PyObject *resultobj; | |
27936 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27937 | wxMenu *result; | |
27938 | PyObject * obj0 = 0 ; | |
27939 | char *kwnames[] = { | |
27940 | (char *) "self", NULL | |
27941 | }; | |
27942 | ||
27943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
27944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27945 | { | |
27946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27947 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
27948 | ||
27949 | wxPyEndAllowThreads(__tstate); | |
27950 | if (PyErr_Occurred()) SWIG_fail; | |
27951 | } | |
27952 | { | |
27953 | resultobj = wxPyMake_wxObject(result); | |
27954 | } | |
27955 | return resultobj; | |
27956 | fail: | |
27957 | return NULL; | |
27958 | } | |
27959 | ||
27960 | ||
27961 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27962 | PyObject *resultobj; | |
27963 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27964 | wxMenu *arg2 = (wxMenu *) 0 ; | |
27965 | PyObject * obj0 = 0 ; | |
27966 | PyObject * obj1 = 0 ; | |
27967 | char *kwnames[] = { | |
27968 | (char *) "self",(char *) "menu", NULL | |
27969 | }; | |
27970 | ||
27971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
27972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27973 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27974 | { | |
27975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27976 | (arg1)->SetMenu(arg2); | |
27977 | ||
27978 | wxPyEndAllowThreads(__tstate); | |
27979 | if (PyErr_Occurred()) SWIG_fail; | |
27980 | } | |
27981 | Py_INCREF(Py_None); resultobj = Py_None; | |
27982 | return resultobj; | |
27983 | fail: | |
27984 | return NULL; | |
27985 | } | |
27986 | ||
27987 | ||
27988 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27989 | PyObject *resultobj; | |
27990 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27991 | int arg2 ; | |
27992 | PyObject * obj0 = 0 ; | |
27993 | char *kwnames[] = { | |
f0983263 | 27994 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27995 | }; |
27996 | ||
27997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuItem_SetId",kwnames,&obj0,&arg2)) goto fail; | |
27998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27999 | { | |
28000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28001 | (arg1)->SetId(arg2); | |
28002 | ||
28003 | wxPyEndAllowThreads(__tstate); | |
28004 | if (PyErr_Occurred()) SWIG_fail; | |
28005 | } | |
28006 | Py_INCREF(Py_None); resultobj = Py_None; | |
28007 | return resultobj; | |
28008 | fail: | |
28009 | return NULL; | |
28010 | } | |
28011 | ||
28012 | ||
28013 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28014 | PyObject *resultobj; | |
28015 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28016 | int result; | |
28017 | PyObject * obj0 = 0 ; | |
28018 | char *kwnames[] = { | |
28019 | (char *) "self", NULL | |
28020 | }; | |
28021 | ||
28022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
28023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28024 | { | |
28025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28026 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
28027 | ||
28028 | wxPyEndAllowThreads(__tstate); | |
28029 | if (PyErr_Occurred()) SWIG_fail; | |
28030 | } | |
28031 | resultobj = PyInt_FromLong((long)result); | |
28032 | return resultobj; | |
28033 | fail: | |
28034 | return NULL; | |
28035 | } | |
28036 | ||
28037 | ||
28038 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28039 | PyObject *resultobj; | |
28040 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28041 | bool result; | |
28042 | PyObject * obj0 = 0 ; | |
28043 | char *kwnames[] = { | |
28044 | (char *) "self", NULL | |
28045 | }; | |
28046 | ||
28047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
28048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28049 | { | |
28050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28051 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
28052 | ||
28053 | wxPyEndAllowThreads(__tstate); | |
28054 | if (PyErr_Occurred()) SWIG_fail; | |
28055 | } | |
28056 | resultobj = PyInt_FromLong((long)result); | |
28057 | return resultobj; | |
28058 | fail: | |
28059 | return NULL; | |
28060 | } | |
28061 | ||
28062 | ||
28063 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28064 | PyObject *resultobj; | |
28065 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28066 | wxString *arg2 = 0 ; | |
423f194a | 28067 | bool temp2 = False ; |
d14a1e28 RD |
28068 | PyObject * obj0 = 0 ; |
28069 | PyObject * obj1 = 0 ; | |
28070 | char *kwnames[] = { | |
28071 | (char *) "self",(char *) "str", NULL | |
28072 | }; | |
28073 | ||
28074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
28075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28076 | { | |
28077 | arg2 = wxString_in_helper(obj1); | |
28078 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28079 | temp2 = True; |
d14a1e28 RD |
28080 | } |
28081 | { | |
28082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28083 | (arg1)->SetText((wxString const &)*arg2); | |
28084 | ||
28085 | wxPyEndAllowThreads(__tstate); | |
28086 | if (PyErr_Occurred()) SWIG_fail; | |
28087 | } | |
28088 | Py_INCREF(Py_None); resultobj = Py_None; | |
28089 | { | |
28090 | if (temp2) | |
28091 | delete arg2; | |
28092 | } | |
28093 | return resultobj; | |
28094 | fail: | |
28095 | { | |
28096 | if (temp2) | |
28097 | delete arg2; | |
28098 | } | |
28099 | return NULL; | |
28100 | } | |
28101 | ||
28102 | ||
28103 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28104 | PyObject *resultobj; | |
28105 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28106 | wxString result; | |
28107 | PyObject * obj0 = 0 ; | |
28108 | char *kwnames[] = { | |
28109 | (char *) "self", NULL | |
28110 | }; | |
28111 | ||
28112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
28113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28114 | { | |
28115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28116 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
28117 | ||
28118 | wxPyEndAllowThreads(__tstate); | |
28119 | if (PyErr_Occurred()) SWIG_fail; | |
28120 | } | |
28121 | { | |
28122 | #if wxUSE_UNICODE | |
28123 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28124 | #else | |
28125 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28126 | #endif | |
28127 | } | |
28128 | return resultobj; | |
28129 | fail: | |
28130 | return NULL; | |
28131 | } | |
28132 | ||
28133 | ||
28134 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28135 | PyObject *resultobj; | |
28136 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28137 | wxString *result; | |
28138 | PyObject * obj0 = 0 ; | |
28139 | char *kwnames[] = { | |
28140 | (char *) "self", NULL | |
28141 | }; | |
28142 | ||
28143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
28144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28145 | { | |
28146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28147 | { | |
28148 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
28149 | result = (wxString *) &_result_ref; | |
28150 | } | |
28151 | ||
28152 | wxPyEndAllowThreads(__tstate); | |
28153 | if (PyErr_Occurred()) SWIG_fail; | |
28154 | } | |
f0983263 RD |
28155 | { |
28156 | #if wxUSE_UNICODE | |
28157 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28158 | #else | |
28159 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28160 | #endif | |
28161 | } | |
d14a1e28 RD |
28162 | return resultobj; |
28163 | fail: | |
28164 | return NULL; | |
28165 | } | |
28166 | ||
28167 | ||
28168 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28169 | PyObject *resultobj; | |
28170 | wxString *arg1 = 0 ; | |
28171 | wxString result; | |
423f194a | 28172 | bool temp1 = False ; |
d14a1e28 RD |
28173 | PyObject * obj0 = 0 ; |
28174 | char *kwnames[] = { | |
28175 | (char *) "text", NULL | |
28176 | }; | |
28177 | ||
28178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
28179 | { | |
28180 | arg1 = wxString_in_helper(obj0); | |
28181 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 28182 | temp1 = True; |
d14a1e28 RD |
28183 | } |
28184 | { | |
28185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28186 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
28187 | ||
28188 | wxPyEndAllowThreads(__tstate); | |
28189 | if (PyErr_Occurred()) SWIG_fail; | |
28190 | } | |
28191 | { | |
28192 | #if wxUSE_UNICODE | |
28193 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28194 | #else | |
28195 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28196 | #endif | |
28197 | } | |
28198 | { | |
28199 | if (temp1) | |
28200 | delete arg1; | |
28201 | } | |
28202 | return resultobj; | |
28203 | fail: | |
28204 | { | |
28205 | if (temp1) | |
28206 | delete arg1; | |
28207 | } | |
28208 | return NULL; | |
28209 | } | |
28210 | ||
28211 | ||
28212 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28213 | PyObject *resultobj; | |
28214 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28215 | int result; | |
28216 | PyObject * obj0 = 0 ; | |
28217 | char *kwnames[] = { | |
28218 | (char *) "self", NULL | |
28219 | }; | |
28220 | ||
28221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
28222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28223 | { | |
28224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28225 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
28226 | ||
28227 | wxPyEndAllowThreads(__tstate); | |
28228 | if (PyErr_Occurred()) SWIG_fail; | |
28229 | } | |
28230 | resultobj = PyInt_FromLong((long)result); | |
28231 | return resultobj; | |
28232 | fail: | |
28233 | return NULL; | |
28234 | } | |
28235 | ||
28236 | ||
28237 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28238 | PyObject *resultobj; | |
28239 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28240 | bool arg2 ; | |
28241 | PyObject * obj0 = 0 ; | |
28242 | PyObject * obj1 = 0 ; | |
28243 | char *kwnames[] = { | |
28244 | (char *) "self",(char *) "checkable", NULL | |
28245 | }; | |
28246 | ||
28247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
28248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28249 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
28250 | if (PyErr_Occurred()) SWIG_fail; | |
28251 | { | |
28252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28253 | (arg1)->SetCheckable(arg2); | |
28254 | ||
28255 | wxPyEndAllowThreads(__tstate); | |
28256 | if (PyErr_Occurred()) SWIG_fail; | |
28257 | } | |
28258 | Py_INCREF(Py_None); resultobj = Py_None; | |
28259 | return resultobj; | |
28260 | fail: | |
28261 | return NULL; | |
28262 | } | |
28263 | ||
28264 | ||
28265 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28266 | PyObject *resultobj; | |
28267 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28268 | bool result; | |
28269 | PyObject * obj0 = 0 ; | |
28270 | char *kwnames[] = { | |
28271 | (char *) "self", NULL | |
28272 | }; | |
28273 | ||
28274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
28275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28276 | { | |
28277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28278 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
28279 | ||
28280 | wxPyEndAllowThreads(__tstate); | |
28281 | if (PyErr_Occurred()) SWIG_fail; | |
28282 | } | |
28283 | resultobj = PyInt_FromLong((long)result); | |
28284 | return resultobj; | |
28285 | fail: | |
28286 | return NULL; | |
28287 | } | |
28288 | ||
28289 | ||
28290 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28291 | PyObject *resultobj; | |
28292 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28293 | bool result; | |
28294 | PyObject * obj0 = 0 ; | |
28295 | char *kwnames[] = { | |
28296 | (char *) "self", NULL | |
28297 | }; | |
28298 | ||
28299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
28300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28301 | { | |
28302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28303 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
28304 | ||
28305 | wxPyEndAllowThreads(__tstate); | |
28306 | if (PyErr_Occurred()) SWIG_fail; | |
28307 | } | |
28308 | resultobj = PyInt_FromLong((long)result); | |
28309 | return resultobj; | |
28310 | fail: | |
28311 | return NULL; | |
28312 | } | |
28313 | ||
28314 | ||
28315 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28316 | PyObject *resultobj; | |
28317 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28318 | wxMenu *arg2 = (wxMenu *) 0 ; | |
28319 | PyObject * obj0 = 0 ; | |
28320 | PyObject * obj1 = 0 ; | |
28321 | char *kwnames[] = { | |
28322 | (char *) "self",(char *) "menu", NULL | |
28323 | }; | |
28324 | ||
28325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
28326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28327 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28328 | { | |
28329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28330 | (arg1)->SetSubMenu(arg2); | |
28331 | ||
28332 | wxPyEndAllowThreads(__tstate); | |
28333 | if (PyErr_Occurred()) SWIG_fail; | |
28334 | } | |
28335 | Py_INCREF(Py_None); resultobj = Py_None; | |
28336 | return resultobj; | |
28337 | fail: | |
28338 | return NULL; | |
28339 | } | |
28340 | ||
28341 | ||
28342 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28343 | PyObject *resultobj; | |
28344 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28345 | wxMenu *result; | |
28346 | PyObject * obj0 = 0 ; | |
28347 | char *kwnames[] = { | |
28348 | (char *) "self", NULL | |
28349 | }; | |
28350 | ||
28351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
28352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28353 | { | |
28354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28355 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
28356 | ||
28357 | wxPyEndAllowThreads(__tstate); | |
28358 | if (PyErr_Occurred()) SWIG_fail; | |
28359 | } | |
28360 | { | |
28361 | resultobj = wxPyMake_wxObject(result); | |
28362 | } | |
28363 | return resultobj; | |
28364 | fail: | |
28365 | return NULL; | |
28366 | } | |
28367 | ||
28368 | ||
28369 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28370 | PyObject *resultobj; | |
28371 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 28372 | bool arg2 = (bool) True ; |
d14a1e28 RD |
28373 | PyObject * obj0 = 0 ; |
28374 | PyObject * obj1 = 0 ; | |
28375 | char *kwnames[] = { | |
28376 | (char *) "self",(char *) "enable", NULL | |
28377 | }; | |
28378 | ||
28379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
28380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28381 | if (obj1) { | |
28382 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
28383 | if (PyErr_Occurred()) SWIG_fail; | |
28384 | } | |
28385 | { | |
28386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28387 | (arg1)->Enable(arg2); | |
28388 | ||
28389 | wxPyEndAllowThreads(__tstate); | |
28390 | if (PyErr_Occurred()) SWIG_fail; | |
28391 | } | |
28392 | Py_INCREF(Py_None); resultobj = Py_None; | |
28393 | return resultobj; | |
28394 | fail: | |
28395 | return NULL; | |
28396 | } | |
28397 | ||
28398 | ||
28399 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28400 | PyObject *resultobj; | |
28401 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28402 | bool result; | |
28403 | PyObject * obj0 = 0 ; | |
28404 | char *kwnames[] = { | |
28405 | (char *) "self", NULL | |
28406 | }; | |
28407 | ||
28408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
28409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28410 | { | |
28411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28412 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
28413 | ||
28414 | wxPyEndAllowThreads(__tstate); | |
28415 | if (PyErr_Occurred()) SWIG_fail; | |
28416 | } | |
28417 | resultobj = PyInt_FromLong((long)result); | |
28418 | return resultobj; | |
28419 | fail: | |
28420 | return NULL; | |
28421 | } | |
28422 | ||
28423 | ||
28424 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28425 | PyObject *resultobj; | |
28426 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 28427 | bool arg2 = (bool) True ; |
d14a1e28 RD |
28428 | PyObject * obj0 = 0 ; |
28429 | PyObject * obj1 = 0 ; | |
28430 | char *kwnames[] = { | |
28431 | (char *) "self",(char *) "check", NULL | |
28432 | }; | |
28433 | ||
28434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
28435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28436 | if (obj1) { | |
28437 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
28438 | if (PyErr_Occurred()) SWIG_fail; | |
28439 | } | |
28440 | { | |
28441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28442 | (arg1)->Check(arg2); | |
28443 | ||
28444 | wxPyEndAllowThreads(__tstate); | |
28445 | if (PyErr_Occurred()) SWIG_fail; | |
28446 | } | |
28447 | Py_INCREF(Py_None); resultobj = Py_None; | |
28448 | return resultobj; | |
28449 | fail: | |
28450 | return NULL; | |
28451 | } | |
28452 | ||
28453 | ||
28454 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28455 | PyObject *resultobj; | |
28456 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28457 | bool result; | |
28458 | PyObject * obj0 = 0 ; | |
28459 | char *kwnames[] = { | |
28460 | (char *) "self", NULL | |
28461 | }; | |
28462 | ||
28463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
28464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28465 | { | |
28466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28467 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
28468 | ||
28469 | wxPyEndAllowThreads(__tstate); | |
28470 | if (PyErr_Occurred()) SWIG_fail; | |
28471 | } | |
28472 | resultobj = PyInt_FromLong((long)result); | |
28473 | return resultobj; | |
28474 | fail: | |
28475 | return NULL; | |
28476 | } | |
28477 | ||
28478 | ||
28479 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28480 | PyObject *resultobj; | |
28481 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28482 | PyObject * obj0 = 0 ; | |
28483 | char *kwnames[] = { | |
28484 | (char *) "self", NULL | |
28485 | }; | |
28486 | ||
28487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
28488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28489 | { | |
28490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28491 | (arg1)->Toggle(); | |
28492 | ||
28493 | wxPyEndAllowThreads(__tstate); | |
28494 | if (PyErr_Occurred()) SWIG_fail; | |
28495 | } | |
28496 | Py_INCREF(Py_None); resultobj = Py_None; | |
28497 | return resultobj; | |
28498 | fail: | |
28499 | return NULL; | |
28500 | } | |
28501 | ||
28502 | ||
28503 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28504 | PyObject *resultobj; | |
28505 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28506 | wxString *arg2 = 0 ; | |
423f194a | 28507 | bool temp2 = False ; |
d14a1e28 RD |
28508 | PyObject * obj0 = 0 ; |
28509 | PyObject * obj1 = 0 ; | |
28510 | char *kwnames[] = { | |
28511 | (char *) "self",(char *) "str", NULL | |
28512 | }; | |
28513 | ||
28514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
28515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28516 | { | |
28517 | arg2 = wxString_in_helper(obj1); | |
28518 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28519 | temp2 = True; |
d14a1e28 RD |
28520 | } |
28521 | { | |
28522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28523 | (arg1)->SetHelp((wxString const &)*arg2); | |
28524 | ||
28525 | wxPyEndAllowThreads(__tstate); | |
28526 | if (PyErr_Occurred()) SWIG_fail; | |
28527 | } | |
28528 | Py_INCREF(Py_None); resultobj = Py_None; | |
28529 | { | |
28530 | if (temp2) | |
28531 | delete arg2; | |
28532 | } | |
28533 | return resultobj; | |
28534 | fail: | |
28535 | { | |
28536 | if (temp2) | |
28537 | delete arg2; | |
28538 | } | |
28539 | return NULL; | |
28540 | } | |
28541 | ||
28542 | ||
28543 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28544 | PyObject *resultobj; | |
28545 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28546 | wxString *result; | |
28547 | PyObject * obj0 = 0 ; | |
28548 | char *kwnames[] = { | |
28549 | (char *) "self", NULL | |
28550 | }; | |
28551 | ||
28552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
28553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28554 | { | |
28555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28556 | { | |
28557 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
28558 | result = (wxString *) &_result_ref; | |
28559 | } | |
28560 | ||
28561 | wxPyEndAllowThreads(__tstate); | |
28562 | if (PyErr_Occurred()) SWIG_fail; | |
28563 | } | |
f0983263 RD |
28564 | { |
28565 | #if wxUSE_UNICODE | |
28566 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28567 | #else | |
28568 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28569 | #endif | |
28570 | } | |
d14a1e28 RD |
28571 | return resultobj; |
28572 | fail: | |
28573 | return NULL; | |
28574 | } | |
28575 | ||
28576 | ||
28577 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28578 | PyObject *resultobj; | |
28579 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28580 | wxAcceleratorEntry *result; | |
28581 | PyObject * obj0 = 0 ; | |
28582 | char *kwnames[] = { | |
28583 | (char *) "self", NULL | |
28584 | }; | |
28585 | ||
28586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
28587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28588 | { | |
28589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28590 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
28591 | ||
28592 | wxPyEndAllowThreads(__tstate); | |
28593 | if (PyErr_Occurred()) SWIG_fail; | |
28594 | } | |
28595 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0); | |
28596 | return resultobj; | |
28597 | fail: | |
28598 | return NULL; | |
28599 | } | |
28600 | ||
28601 | ||
28602 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28603 | PyObject *resultobj; | |
28604 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28605 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
28606 | PyObject * obj0 = 0 ; | |
28607 | PyObject * obj1 = 0 ; | |
28608 | char *kwnames[] = { | |
28609 | (char *) "self",(char *) "accel", NULL | |
28610 | }; | |
28611 | ||
28612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
28613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28614 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28615 | { | |
28616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28617 | (arg1)->SetAccel(arg2); | |
28618 | ||
28619 | wxPyEndAllowThreads(__tstate); | |
28620 | if (PyErr_Occurred()) SWIG_fail; | |
28621 | } | |
28622 | Py_INCREF(Py_None); resultobj = Py_None; | |
28623 | return resultobj; | |
28624 | fail: | |
28625 | return NULL; | |
28626 | } | |
28627 | ||
28628 | ||
28629 | static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28630 | PyObject *resultobj; | |
28631 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28632 | wxFont *arg2 = 0 ; | |
28633 | PyObject * obj0 = 0 ; | |
28634 | PyObject * obj1 = 0 ; | |
28635 | char *kwnames[] = { | |
28636 | (char *) "self",(char *) "font", NULL | |
28637 | }; | |
28638 | ||
28639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
28640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28641 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28642 | if (arg2 == NULL) { | |
28643 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28644 | } | |
28645 | { | |
28646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28647 | (arg1)->SetFont((wxFont const &)*arg2); | |
28648 | ||
28649 | wxPyEndAllowThreads(__tstate); | |
28650 | if (PyErr_Occurred()) SWIG_fail; | |
28651 | } | |
28652 | Py_INCREF(Py_None); resultobj = Py_None; | |
28653 | return resultobj; | |
28654 | fail: | |
28655 | return NULL; | |
28656 | } | |
28657 | ||
28658 | ||
28659 | static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28660 | PyObject *resultobj; | |
28661 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28662 | wxFont result; | |
28663 | PyObject * obj0 = 0 ; | |
28664 | char *kwnames[] = { | |
28665 | (char *) "self", NULL | |
28666 | }; | |
28667 | ||
28668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
28669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28670 | { | |
28671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28672 | result = (arg1)->GetFont(); | |
28673 | ||
28674 | wxPyEndAllowThreads(__tstate); | |
28675 | if (PyErr_Occurred()) SWIG_fail; | |
28676 | } | |
28677 | { | |
28678 | wxFont * resultptr; | |
28679 | resultptr = new wxFont((wxFont &) result); | |
28680 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
28681 | } | |
28682 | return resultobj; | |
28683 | fail: | |
28684 | return NULL; | |
28685 | } | |
28686 | ||
28687 | ||
28688 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28689 | PyObject *resultobj; | |
28690 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28691 | wxColour *arg2 = 0 ; | |
28692 | wxColour temp2 ; | |
28693 | PyObject * obj0 = 0 ; | |
28694 | PyObject * obj1 = 0 ; | |
28695 | char *kwnames[] = { | |
28696 | (char *) "self",(char *) "colText", NULL | |
28697 | }; | |
28698 | ||
28699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
28700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28701 | { | |
28702 | arg2 = &temp2; | |
28703 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
28704 | } | |
28705 | { | |
28706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28707 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
28708 | ||
28709 | wxPyEndAllowThreads(__tstate); | |
28710 | if (PyErr_Occurred()) SWIG_fail; | |
28711 | } | |
28712 | Py_INCREF(Py_None); resultobj = Py_None; | |
28713 | return resultobj; | |
28714 | fail: | |
28715 | return NULL; | |
28716 | } | |
28717 | ||
28718 | ||
28719 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28720 | PyObject *resultobj; | |
28721 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28722 | wxColour result; | |
28723 | PyObject * obj0 = 0 ; | |
28724 | char *kwnames[] = { | |
28725 | (char *) "self", NULL | |
28726 | }; | |
28727 | ||
28728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
28729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28730 | { | |
28731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28732 | result = (arg1)->GetTextColour(); | |
28733 | ||
28734 | wxPyEndAllowThreads(__tstate); | |
28735 | if (PyErr_Occurred()) SWIG_fail; | |
28736 | } | |
28737 | { | |
28738 | wxColour * resultptr; | |
28739 | resultptr = new wxColour((wxColour &) result); | |
28740 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
28741 | } | |
28742 | return resultobj; | |
28743 | fail: | |
28744 | return NULL; | |
28745 | } | |
28746 | ||
28747 | ||
28748 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28749 | PyObject *resultobj; | |
28750 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28751 | wxColour *arg2 = 0 ; | |
28752 | wxColour temp2 ; | |
28753 | PyObject * obj0 = 0 ; | |
28754 | PyObject * obj1 = 0 ; | |
28755 | char *kwnames[] = { | |
28756 | (char *) "self",(char *) "colBack", NULL | |
28757 | }; | |
28758 | ||
28759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
28760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28761 | { | |
28762 | arg2 = &temp2; | |
28763 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
28764 | } | |
28765 | { | |
28766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28767 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
28768 | ||
28769 | wxPyEndAllowThreads(__tstate); | |
28770 | if (PyErr_Occurred()) SWIG_fail; | |
28771 | } | |
28772 | Py_INCREF(Py_None); resultobj = Py_None; | |
28773 | return resultobj; | |
28774 | fail: | |
28775 | return NULL; | |
28776 | } | |
28777 | ||
28778 | ||
28779 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28780 | PyObject *resultobj; | |
28781 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28782 | wxColour result; | |
28783 | PyObject * obj0 = 0 ; | |
28784 | char *kwnames[] = { | |
28785 | (char *) "self", NULL | |
28786 | }; | |
28787 | ||
28788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
28789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28790 | { | |
28791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28792 | result = (arg1)->GetBackgroundColour(); | |
28793 | ||
28794 | wxPyEndAllowThreads(__tstate); | |
28795 | if (PyErr_Occurred()) SWIG_fail; | |
28796 | } | |
28797 | { | |
28798 | wxColour * resultptr; | |
28799 | resultptr = new wxColour((wxColour &) result); | |
28800 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
28801 | } | |
28802 | return resultobj; | |
28803 | fail: | |
28804 | return NULL; | |
28805 | } | |
28806 | ||
28807 | ||
28808 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28809 | PyObject *resultobj; | |
28810 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28811 | wxBitmap *arg2 = 0 ; | |
28812 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
28813 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
28814 | PyObject * obj0 = 0 ; | |
28815 | PyObject * obj1 = 0 ; | |
28816 | PyObject * obj2 = 0 ; | |
28817 | char *kwnames[] = { | |
28818 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
28819 | }; | |
28820 | ||
28821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28823 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28824 | if (arg2 == NULL) { | |
28825 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28826 | } | |
28827 | if (obj2) { | |
28828 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28829 | if (arg3 == NULL) { | |
28830 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28831 | } | |
28832 | } | |
28833 | { | |
28834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28835 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
28836 | ||
28837 | wxPyEndAllowThreads(__tstate); | |
28838 | if (PyErr_Occurred()) SWIG_fail; | |
28839 | } | |
28840 | Py_INCREF(Py_None); resultobj = Py_None; | |
28841 | return resultobj; | |
28842 | fail: | |
28843 | return NULL; | |
28844 | } | |
28845 | ||
28846 | ||
28847 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28848 | PyObject *resultobj; | |
28849 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28850 | wxBitmap *arg2 = 0 ; | |
28851 | PyObject * obj0 = 0 ; | |
28852 | PyObject * obj1 = 0 ; | |
28853 | char *kwnames[] = { | |
28854 | (char *) "self",(char *) "bmpDisabled", NULL | |
28855 | }; | |
28856 | ||
28857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
28858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28859 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28860 | if (arg2 == NULL) { | |
28861 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28862 | } | |
28863 | { | |
28864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28865 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
28866 | ||
28867 | wxPyEndAllowThreads(__tstate); | |
28868 | if (PyErr_Occurred()) SWIG_fail; | |
28869 | } | |
28870 | Py_INCREF(Py_None); resultobj = Py_None; | |
28871 | return resultobj; | |
28872 | fail: | |
28873 | return NULL; | |
28874 | } | |
28875 | ||
28876 | ||
28877 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28878 | PyObject *resultobj; | |
28879 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28880 | wxBitmap *result; | |
28881 | PyObject * obj0 = 0 ; | |
28882 | char *kwnames[] = { | |
28883 | (char *) "self", NULL | |
28884 | }; | |
28885 | ||
28886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
28887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28888 | { | |
28889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28890 | { | |
28891 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
28892 | result = (wxBitmap *) &_result_ref; | |
28893 | } | |
28894 | ||
28895 | wxPyEndAllowThreads(__tstate); | |
28896 | if (PyErr_Occurred()) SWIG_fail; | |
28897 | } | |
28898 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
28899 | return resultobj; | |
28900 | fail: | |
28901 | return NULL; | |
28902 | } | |
28903 | ||
28904 | ||
28905 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28906 | PyObject *resultobj; | |
28907 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28908 | int arg2 ; | |
28909 | PyObject * obj0 = 0 ; | |
28910 | char *kwnames[] = { | |
28911 | (char *) "self",(char *) "nWidth", NULL | |
28912 | }; | |
28913 | ||
28914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuItem_SetMarginWidth",kwnames,&obj0,&arg2)) goto fail; | |
28915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28916 | { | |
28917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28918 | (arg1)->SetMarginWidth(arg2); | |
28919 | ||
28920 | wxPyEndAllowThreads(__tstate); | |
28921 | if (PyErr_Occurred()) SWIG_fail; | |
28922 | } | |
28923 | Py_INCREF(Py_None); resultobj = Py_None; | |
28924 | return resultobj; | |
28925 | fail: | |
28926 | return NULL; | |
28927 | } | |
28928 | ||
28929 | ||
28930 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28931 | PyObject *resultobj; | |
28932 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28933 | int result; | |
28934 | PyObject * obj0 = 0 ; | |
28935 | char *kwnames[] = { | |
28936 | (char *) "self", NULL | |
28937 | }; | |
28938 | ||
28939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
28940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28941 | { | |
28942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28943 | result = (int)(arg1)->GetMarginWidth(); | |
28944 | ||
28945 | wxPyEndAllowThreads(__tstate); | |
28946 | if (PyErr_Occurred()) SWIG_fail; | |
28947 | } | |
28948 | resultobj = PyInt_FromLong((long)result); | |
28949 | return resultobj; | |
28950 | fail: | |
28951 | return NULL; | |
28952 | } | |
28953 | ||
28954 | ||
28955 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28956 | PyObject *resultobj; | |
28957 | int result; | |
28958 | char *kwnames[] = { | |
28959 | NULL | |
28960 | }; | |
28961 | ||
28962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
28963 | { | |
28964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28965 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
28966 | ||
28967 | wxPyEndAllowThreads(__tstate); | |
28968 | if (PyErr_Occurred()) SWIG_fail; | |
28969 | } | |
28970 | resultobj = PyInt_FromLong((long)result); | |
28971 | return resultobj; | |
28972 | fail: | |
28973 | return NULL; | |
28974 | } | |
28975 | ||
28976 | ||
28977 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28978 | PyObject *resultobj; | |
28979 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28980 | bool result; | |
28981 | PyObject * obj0 = 0 ; | |
28982 | char *kwnames[] = { | |
28983 | (char *) "self", NULL | |
28984 | }; | |
28985 | ||
28986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
28987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28988 | { | |
28989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28990 | result = (bool)(arg1)->IsOwnerDrawn(); | |
28991 | ||
28992 | wxPyEndAllowThreads(__tstate); | |
28993 | if (PyErr_Occurred()) SWIG_fail; | |
28994 | } | |
28995 | resultobj = PyInt_FromLong((long)result); | |
28996 | return resultobj; | |
28997 | fail: | |
28998 | return NULL; | |
28999 | } | |
29000 | ||
29001 | ||
29002 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29003 | PyObject *resultobj; | |
29004 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 29005 | bool arg2 = (bool) True ; |
d14a1e28 RD |
29006 | PyObject * obj0 = 0 ; |
29007 | PyObject * obj1 = 0 ; | |
29008 | char *kwnames[] = { | |
29009 | (char *) "self",(char *) "ownerDrawn", NULL | |
29010 | }; | |
29011 | ||
29012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
29013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29014 | if (obj1) { | |
29015 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
29016 | if (PyErr_Occurred()) SWIG_fail; | |
29017 | } | |
29018 | { | |
29019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29020 | (arg1)->SetOwnerDrawn(arg2); | |
29021 | ||
29022 | wxPyEndAllowThreads(__tstate); | |
29023 | if (PyErr_Occurred()) SWIG_fail; | |
29024 | } | |
29025 | Py_INCREF(Py_None); resultobj = Py_None; | |
29026 | return resultobj; | |
29027 | fail: | |
29028 | return NULL; | |
29029 | } | |
29030 | ||
29031 | ||
29032 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29033 | PyObject *resultobj; | |
29034 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
29035 | PyObject * obj0 = 0 ; | |
29036 | char *kwnames[] = { | |
29037 | (char *) "self", NULL | |
29038 | }; | |
29039 | ||
29040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
29041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29042 | { | |
29043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29044 | (arg1)->ResetOwnerDrawn(); | |
29045 | ||
29046 | wxPyEndAllowThreads(__tstate); | |
29047 | if (PyErr_Occurred()) SWIG_fail; | |
29048 | } | |
29049 | Py_INCREF(Py_None); resultobj = Py_None; | |
29050 | return resultobj; | |
29051 | fail: | |
29052 | return NULL; | |
29053 | } | |
29054 | ||
29055 | ||
29056 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29057 | PyObject *resultobj; | |
29058 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
29059 | wxBitmap *arg2 = 0 ; | |
29060 | PyObject * obj0 = 0 ; | |
29061 | PyObject * obj1 = 0 ; | |
29062 | char *kwnames[] = { | |
29063 | (char *) "self",(char *) "bitmap", NULL | |
29064 | }; | |
29065 | ||
29066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
29067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29068 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29069 | if (arg2 == NULL) { | |
29070 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29071 | } | |
29072 | { | |
29073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29074 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
29075 | ||
29076 | wxPyEndAllowThreads(__tstate); | |
29077 | if (PyErr_Occurred()) SWIG_fail; | |
29078 | } | |
29079 | Py_INCREF(Py_None); resultobj = Py_None; | |
29080 | return resultobj; | |
29081 | fail: | |
29082 | return NULL; | |
29083 | } | |
29084 | ||
29085 | ||
29086 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29087 | PyObject *resultobj; | |
29088 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
29089 | wxBitmap *result; | |
29090 | PyObject * obj0 = 0 ; | |
29091 | char *kwnames[] = { | |
29092 | (char *) "self", NULL | |
29093 | }; | |
29094 | ||
29095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
29096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29097 | { | |
29098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29099 | { | |
29100 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
29101 | result = (wxBitmap *) &_result_ref; | |
29102 | } | |
29103 | ||
29104 | wxPyEndAllowThreads(__tstate); | |
29105 | if (PyErr_Occurred()) SWIG_fail; | |
29106 | } | |
29107 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
29108 | return resultobj; | |
29109 | fail: | |
29110 | return NULL; | |
29111 | } | |
29112 | ||
29113 | ||
29114 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
29115 | PyObject *obj; | |
29116 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29117 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
29118 | Py_INCREF(obj); | |
29119 | return Py_BuildValue((char *)""); | |
29120 | } | |
d03fd34d RD |
29121 | static int _wrap_ControlNameStr_set(PyObject *_val) { |
29122 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); | |
29123 | return 1; | |
29124 | } | |
29125 | ||
29126 | ||
29127 | static PyObject *_wrap_ControlNameStr_get() { | |
29128 | PyObject *pyobj; | |
29129 | ||
29130 | { | |
29131 | #if wxUSE_UNICODE | |
29132 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
29133 | #else | |
29134 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
29135 | #endif | |
29136 | } | |
29137 | return pyobj; | |
29138 | } | |
29139 | ||
29140 | ||
d14a1e28 RD |
29141 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { |
29142 | PyObject *resultobj; | |
29143 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 29144 | int arg2 ; |
d14a1e28 RD |
29145 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29146 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29147 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29148 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29149 | long arg5 = (long) 0 ; | |
29150 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
29151 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
29152 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
29153 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29154 | wxControl *result; | |
29155 | wxPoint temp3 ; | |
29156 | wxSize temp4 ; | |
423f194a | 29157 | bool temp7 = False ; |
d14a1e28 RD |
29158 | PyObject * obj0 = 0 ; |
29159 | PyObject * obj2 = 0 ; | |
29160 | PyObject * obj3 = 0 ; | |
29161 | PyObject * obj5 = 0 ; | |
29162 | PyObject * obj6 = 0 ; | |
29163 | char *kwnames[] = { | |
29164 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29165 | }; | |
29166 | ||
29167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlOO:new_Control",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
29168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29169 | if (obj2) { | |
29170 | { | |
29171 | arg3 = &temp3; | |
29172 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29173 | } | |
29174 | } | |
29175 | if (obj3) { | |
29176 | { | |
29177 | arg4 = &temp4; | |
29178 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29179 | } | |
29180 | } | |
29181 | if (obj5) { | |
29182 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29183 | if (arg6 == NULL) { | |
29184 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29185 | } | |
29186 | } | |
29187 | if (obj6) { | |
29188 | { | |
29189 | arg7 = wxString_in_helper(obj6); | |
29190 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 29191 | temp7 = True; |
d14a1e28 RD |
29192 | } |
29193 | } | |
29194 | { | |
29195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29196 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
29197 | ||
29198 | wxPyEndAllowThreads(__tstate); | |
29199 | if (PyErr_Occurred()) SWIG_fail; | |
29200 | } | |
29201 | { | |
29202 | resultobj = wxPyMake_wxObject(result); | |
29203 | } | |
29204 | { | |
29205 | if (temp7) | |
29206 | delete arg7; | |
29207 | } | |
29208 | return resultobj; | |
29209 | fail: | |
29210 | { | |
29211 | if (temp7) | |
29212 | delete arg7; | |
29213 | } | |
29214 | return NULL; | |
29215 | } | |
29216 | ||
29217 | ||
29218 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29219 | PyObject *resultobj; | |
29220 | wxControl *result; | |
29221 | char *kwnames[] = { | |
29222 | NULL | |
29223 | }; | |
29224 | ||
29225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
29226 | { | |
29227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29228 | result = (wxControl *)new wxControl(); | |
29229 | ||
29230 | wxPyEndAllowThreads(__tstate); | |
29231 | if (PyErr_Occurred()) SWIG_fail; | |
29232 | } | |
29233 | { | |
29234 | resultobj = wxPyMake_wxObject(result); | |
29235 | } | |
29236 | return resultobj; | |
29237 | fail: | |
29238 | return NULL; | |
29239 | } | |
29240 | ||
29241 | ||
29242 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29243 | PyObject *resultobj; | |
29244 | wxControl *arg1 = (wxControl *) 0 ; | |
29245 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 29246 | int arg3 ; |
d14a1e28 RD |
29247 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
29248 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29249 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29250 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29251 | long arg6 = (long) 0 ; | |
29252 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
29253 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
29254 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
29255 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
29256 | bool result; | |
29257 | wxPoint temp4 ; | |
29258 | wxSize temp5 ; | |
423f194a | 29259 | bool temp8 = False ; |
d14a1e28 RD |
29260 | PyObject * obj0 = 0 ; |
29261 | PyObject * obj1 = 0 ; | |
29262 | PyObject * obj3 = 0 ; | |
29263 | PyObject * obj4 = 0 ; | |
29264 | PyObject * obj6 = 0 ; | |
29265 | PyObject * obj7 = 0 ; | |
29266 | char *kwnames[] = { | |
29267 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29268 | }; | |
29269 | ||
29270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlOO:Control_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
29271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29272 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29273 | if (obj3) { | |
29274 | { | |
29275 | arg4 = &temp4; | |
29276 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
29277 | } | |
29278 | } | |
29279 | if (obj4) { | |
29280 | { | |
29281 | arg5 = &temp5; | |
29282 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
29283 | } | |
29284 | } | |
29285 | if (obj6) { | |
29286 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29287 | if (arg7 == NULL) { | |
29288 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29289 | } | |
29290 | } | |
29291 | if (obj7) { | |
29292 | { | |
29293 | arg8 = wxString_in_helper(obj7); | |
29294 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 29295 | temp8 = True; |
d14a1e28 RD |
29296 | } |
29297 | } | |
29298 | { | |
29299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29300 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
29301 | ||
29302 | wxPyEndAllowThreads(__tstate); | |
29303 | if (PyErr_Occurred()) SWIG_fail; | |
29304 | } | |
29305 | resultobj = PyInt_FromLong((long)result); | |
29306 | { | |
29307 | if (temp8) | |
29308 | delete arg8; | |
29309 | } | |
29310 | return resultobj; | |
29311 | fail: | |
29312 | { | |
29313 | if (temp8) | |
29314 | delete arg8; | |
29315 | } | |
29316 | return NULL; | |
29317 | } | |
29318 | ||
29319 | ||
29320 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29321 | PyObject *resultobj; | |
29322 | wxControl *arg1 = (wxControl *) 0 ; | |
29323 | wxCommandEvent *arg2 = 0 ; | |
29324 | PyObject * obj0 = 0 ; | |
29325 | PyObject * obj1 = 0 ; | |
29326 | char *kwnames[] = { | |
29327 | (char *) "self",(char *) "event", NULL | |
29328 | }; | |
29329 | ||
29330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
29331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29332 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29333 | if (arg2 == NULL) { | |
29334 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29335 | } | |
29336 | { | |
29337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29338 | (arg1)->Command(*arg2); | |
29339 | ||
29340 | wxPyEndAllowThreads(__tstate); | |
29341 | if (PyErr_Occurred()) SWIG_fail; | |
29342 | } | |
29343 | Py_INCREF(Py_None); resultobj = Py_None; | |
29344 | return resultobj; | |
29345 | fail: | |
29346 | return NULL; | |
29347 | } | |
29348 | ||
29349 | ||
29350 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29351 | PyObject *resultobj; | |
29352 | wxControl *arg1 = (wxControl *) 0 ; | |
29353 | wxString result; | |
29354 | PyObject * obj0 = 0 ; | |
29355 | char *kwnames[] = { | |
29356 | (char *) "self", NULL | |
29357 | }; | |
29358 | ||
29359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
29360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29361 | { | |
29362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29363 | result = (arg1)->GetLabel(); | |
29364 | ||
29365 | wxPyEndAllowThreads(__tstate); | |
29366 | if (PyErr_Occurred()) SWIG_fail; | |
29367 | } | |
29368 | { | |
29369 | #if wxUSE_UNICODE | |
29370 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29371 | #else | |
29372 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29373 | #endif | |
29374 | } | |
29375 | return resultobj; | |
29376 | fail: | |
29377 | return NULL; | |
29378 | } | |
29379 | ||
29380 | ||
29381 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29382 | PyObject *resultobj; | |
29383 | wxControl *arg1 = (wxControl *) 0 ; | |
29384 | wxString *arg2 = 0 ; | |
423f194a | 29385 | bool temp2 = False ; |
d14a1e28 RD |
29386 | PyObject * obj0 = 0 ; |
29387 | PyObject * obj1 = 0 ; | |
29388 | char *kwnames[] = { | |
29389 | (char *) "self",(char *) "label", NULL | |
29390 | }; | |
29391 | ||
29392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
29393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29394 | { | |
29395 | arg2 = wxString_in_helper(obj1); | |
29396 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29397 | temp2 = True; |
d14a1e28 RD |
29398 | } |
29399 | { | |
29400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29401 | (arg1)->SetLabel((wxString const &)*arg2); | |
29402 | ||
29403 | wxPyEndAllowThreads(__tstate); | |
29404 | if (PyErr_Occurred()) SWIG_fail; | |
29405 | } | |
29406 | Py_INCREF(Py_None); resultobj = Py_None; | |
29407 | { | |
29408 | if (temp2) | |
29409 | delete arg2; | |
29410 | } | |
29411 | return resultobj; | |
29412 | fail: | |
29413 | { | |
29414 | if (temp2) | |
29415 | delete arg2; | |
29416 | } | |
29417 | return NULL; | |
29418 | } | |
29419 | ||
29420 | ||
29421 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
29422 | PyObject *obj; | |
29423 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29424 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
29425 | Py_INCREF(obj); | |
29426 | return Py_BuildValue((char *)""); | |
29427 | } | |
29428 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29429 | PyObject *resultobj; | |
29430 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29431 | wxString *arg2 = 0 ; | |
29432 | PyObject *arg3 = (PyObject *) NULL ; | |
29433 | int result; | |
423f194a | 29434 | bool temp2 = False ; |
d14a1e28 RD |
29435 | PyObject * obj0 = 0 ; |
29436 | PyObject * obj1 = 0 ; | |
29437 | PyObject * obj2 = 0 ; | |
29438 | char *kwnames[] = { | |
29439 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
29440 | }; | |
29441 | ||
29442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29444 | { | |
29445 | arg2 = wxString_in_helper(obj1); | |
29446 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29447 | temp2 = True; |
d14a1e28 RD |
29448 | } |
29449 | if (obj2) { | |
29450 | arg3 = obj2; | |
29451 | } | |
29452 | { | |
29453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29454 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
29455 | ||
29456 | wxPyEndAllowThreads(__tstate); | |
29457 | if (PyErr_Occurred()) SWIG_fail; | |
29458 | } | |
29459 | resultobj = PyInt_FromLong((long)result); | |
29460 | { | |
29461 | if (temp2) | |
29462 | delete arg2; | |
29463 | } | |
29464 | return resultobj; | |
29465 | fail: | |
29466 | { | |
29467 | if (temp2) | |
29468 | delete arg2; | |
29469 | } | |
29470 | return NULL; | |
29471 | } | |
29472 | ||
29473 | ||
29474 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29475 | PyObject *resultobj; | |
29476 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29477 | wxArrayString *arg2 = 0 ; | |
29478 | PyObject * obj0 = 0 ; | |
29479 | PyObject * obj1 = 0 ; | |
29480 | char *kwnames[] = { | |
29481 | (char *) "self",(char *) "strings", NULL | |
29482 | }; | |
29483 | ||
29484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
29485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29486 | { | |
29487 | if (! PySequence_Check(obj1)) { | |
29488 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
29489 | SWIG_fail; | |
29490 | } | |
29491 | arg2 = new wxArrayString; | |
29492 | int i, len=PySequence_Length(obj1); | |
29493 | for (i=0; i<len; i++) { | |
29494 | PyObject* item = PySequence_GetItem(obj1, i); | |
29495 | #if wxUSE_UNICODE | |
29496 | PyObject* str = PyObject_Unicode(item); | |
29497 | #else | |
29498 | PyObject* str = PyObject_Str(item); | |
29499 | #endif | |
29500 | arg2->Add(Py2wxString(str)); | |
29501 | Py_DECREF(item); | |
29502 | Py_DECREF(str); | |
29503 | } | |
29504 | } | |
29505 | { | |
29506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29507 | (arg1)->Append((wxArrayString const &)*arg2); | |
29508 | ||
29509 | wxPyEndAllowThreads(__tstate); | |
29510 | if (PyErr_Occurred()) SWIG_fail; | |
29511 | } | |
29512 | Py_INCREF(Py_None); resultobj = Py_None; | |
29513 | { | |
29514 | if (arg2) delete arg2; | |
29515 | } | |
29516 | return resultobj; | |
29517 | fail: | |
29518 | { | |
29519 | if (arg2) delete arg2; | |
29520 | } | |
29521 | return NULL; | |
29522 | } | |
29523 | ||
29524 | ||
29525 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29526 | PyObject *resultobj; | |
29527 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29528 | wxString *arg2 = 0 ; | |
29529 | int arg3 ; | |
29530 | PyObject *arg4 = (PyObject *) NULL ; | |
29531 | int result; | |
423f194a | 29532 | bool temp2 = False ; |
d14a1e28 RD |
29533 | PyObject * obj0 = 0 ; |
29534 | PyObject * obj1 = 0 ; | |
29535 | PyObject * obj3 = 0 ; | |
29536 | char *kwnames[] = { | |
29537 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
29538 | }; | |
29539 | ||
29540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
29541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29542 | { | |
29543 | arg2 = wxString_in_helper(obj1); | |
29544 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29545 | temp2 = True; |
d14a1e28 RD |
29546 | } |
29547 | if (obj3) { | |
29548 | arg4 = obj3; | |
29549 | } | |
29550 | { | |
29551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29552 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
29553 | ||
29554 | wxPyEndAllowThreads(__tstate); | |
29555 | if (PyErr_Occurred()) SWIG_fail; | |
29556 | } | |
29557 | resultobj = PyInt_FromLong((long)result); | |
29558 | { | |
29559 | if (temp2) | |
29560 | delete arg2; | |
29561 | } | |
29562 | return resultobj; | |
29563 | fail: | |
29564 | { | |
29565 | if (temp2) | |
29566 | delete arg2; | |
29567 | } | |
29568 | return NULL; | |
29569 | } | |
29570 | ||
29571 | ||
29572 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29573 | PyObject *resultobj; | |
29574 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29575 | PyObject * obj0 = 0 ; | |
29576 | char *kwnames[] = { | |
29577 | (char *) "self", NULL | |
29578 | }; | |
29579 | ||
29580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
29581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29582 | { | |
29583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29584 | (arg1)->Clear(); | |
29585 | ||
29586 | wxPyEndAllowThreads(__tstate); | |
29587 | if (PyErr_Occurred()) SWIG_fail; | |
29588 | } | |
29589 | Py_INCREF(Py_None); resultobj = Py_None; | |
29590 | return resultobj; | |
29591 | fail: | |
29592 | return NULL; | |
29593 | } | |
29594 | ||
29595 | ||
29596 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29597 | PyObject *resultobj; | |
29598 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29599 | int arg2 ; | |
29600 | PyObject * obj0 = 0 ; | |
29601 | char *kwnames[] = { | |
29602 | (char *) "self",(char *) "n", NULL | |
29603 | }; | |
29604 | ||
29605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_Delete",kwnames,&obj0,&arg2)) goto fail; | |
29606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29607 | { | |
29608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29609 | (arg1)->Delete(arg2); | |
29610 | ||
29611 | wxPyEndAllowThreads(__tstate); | |
29612 | if (PyErr_Occurred()) SWIG_fail; | |
29613 | } | |
29614 | Py_INCREF(Py_None); resultobj = Py_None; | |
29615 | return resultobj; | |
29616 | fail: | |
29617 | return NULL; | |
29618 | } | |
29619 | ||
29620 | ||
29621 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29622 | PyObject *resultobj; | |
29623 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29624 | int result; | |
29625 | PyObject * obj0 = 0 ; | |
29626 | char *kwnames[] = { | |
29627 | (char *) "self", NULL | |
29628 | }; | |
29629 | ||
29630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
29631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29632 | { | |
29633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29634 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
29635 | ||
29636 | wxPyEndAllowThreads(__tstate); | |
29637 | if (PyErr_Occurred()) SWIG_fail; | |
29638 | } | |
29639 | resultobj = PyInt_FromLong((long)result); | |
29640 | return resultobj; | |
29641 | fail: | |
29642 | return NULL; | |
29643 | } | |
29644 | ||
29645 | ||
29646 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29647 | PyObject *resultobj; | |
29648 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29649 | bool result; | |
29650 | PyObject * obj0 = 0 ; | |
29651 | char *kwnames[] = { | |
29652 | (char *) "self", NULL | |
29653 | }; | |
29654 | ||
29655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
29656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29657 | { | |
29658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29659 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
29660 | ||
29661 | wxPyEndAllowThreads(__tstate); | |
29662 | if (PyErr_Occurred()) SWIG_fail; | |
29663 | } | |
29664 | resultobj = PyInt_FromLong((long)result); | |
29665 | return resultobj; | |
29666 | fail: | |
29667 | return NULL; | |
29668 | } | |
29669 | ||
29670 | ||
29671 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29672 | PyObject *resultobj; | |
29673 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29674 | int arg2 ; | |
29675 | wxString result; | |
29676 | PyObject * obj0 = 0 ; | |
29677 | char *kwnames[] = { | |
29678 | (char *) "self",(char *) "n", NULL | |
29679 | }; | |
29680 | ||
29681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_GetString",kwnames,&obj0,&arg2)) goto fail; | |
29682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29683 | { | |
29684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29685 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
29686 | ||
29687 | wxPyEndAllowThreads(__tstate); | |
29688 | if (PyErr_Occurred()) SWIG_fail; | |
29689 | } | |
29690 | { | |
29691 | #if wxUSE_UNICODE | |
29692 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29693 | #else | |
29694 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29695 | #endif | |
29696 | } | |
29697 | return resultobj; | |
29698 | fail: | |
29699 | return NULL; | |
29700 | } | |
29701 | ||
29702 | ||
29703 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29704 | PyObject *resultobj; | |
29705 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29706 | wxArrayString result; | |
29707 | PyObject * obj0 = 0 ; | |
29708 | char *kwnames[] = { | |
29709 | (char *) "self", NULL | |
29710 | }; | |
29711 | ||
29712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
29713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29714 | { | |
29715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29716 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
29717 | ||
29718 | wxPyEndAllowThreads(__tstate); | |
29719 | if (PyErr_Occurred()) SWIG_fail; | |
29720 | } | |
29721 | { | |
29722 | resultobj = wxArrayString2PyList_helper(result); | |
29723 | } | |
29724 | return resultobj; | |
29725 | fail: | |
29726 | return NULL; | |
29727 | } | |
29728 | ||
29729 | ||
29730 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29731 | PyObject *resultobj; | |
29732 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29733 | int arg2 ; | |
29734 | wxString *arg3 = 0 ; | |
423f194a | 29735 | bool temp3 = False ; |
d14a1e28 RD |
29736 | PyObject * obj0 = 0 ; |
29737 | PyObject * obj2 = 0 ; | |
29738 | char *kwnames[] = { | |
29739 | (char *) "self",(char *) "n",(char *) "s", NULL | |
29740 | }; | |
29741 | ||
29742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ItemContainer_SetString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
29743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29744 | { | |
29745 | arg3 = wxString_in_helper(obj2); | |
29746 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29747 | temp3 = True; |
d14a1e28 RD |
29748 | } |
29749 | { | |
29750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29751 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
29752 | ||
29753 | wxPyEndAllowThreads(__tstate); | |
29754 | if (PyErr_Occurred()) SWIG_fail; | |
29755 | } | |
29756 | Py_INCREF(Py_None); resultobj = Py_None; | |
29757 | { | |
29758 | if (temp3) | |
29759 | delete arg3; | |
29760 | } | |
29761 | return resultobj; | |
29762 | fail: | |
29763 | { | |
29764 | if (temp3) | |
29765 | delete arg3; | |
29766 | } | |
29767 | return NULL; | |
29768 | } | |
29769 | ||
29770 | ||
29771 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29772 | PyObject *resultobj; | |
29773 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29774 | wxString *arg2 = 0 ; | |
29775 | int result; | |
423f194a | 29776 | bool temp2 = False ; |
d14a1e28 RD |
29777 | PyObject * obj0 = 0 ; |
29778 | PyObject * obj1 = 0 ; | |
29779 | char *kwnames[] = { | |
29780 | (char *) "self",(char *) "s", NULL | |
29781 | }; | |
29782 | ||
29783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
29784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29785 | { | |
29786 | arg2 = wxString_in_helper(obj1); | |
29787 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29788 | temp2 = True; |
d14a1e28 RD |
29789 | } |
29790 | { | |
29791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29792 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
29793 | ||
29794 | wxPyEndAllowThreads(__tstate); | |
29795 | if (PyErr_Occurred()) SWIG_fail; | |
29796 | } | |
29797 | resultobj = PyInt_FromLong((long)result); | |
29798 | { | |
29799 | if (temp2) | |
29800 | delete arg2; | |
29801 | } | |
29802 | return resultobj; | |
29803 | fail: | |
29804 | { | |
29805 | if (temp2) | |
29806 | delete arg2; | |
29807 | } | |
29808 | return NULL; | |
29809 | } | |
29810 | ||
29811 | ||
29812 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29813 | PyObject *resultobj; | |
29814 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29815 | int arg2 ; | |
29816 | PyObject * obj0 = 0 ; | |
29817 | char *kwnames[] = { | |
29818 | (char *) "self",(char *) "n", NULL | |
29819 | }; | |
29820 | ||
29821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_Select",kwnames,&obj0,&arg2)) goto fail; | |
29822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29823 | { | |
29824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29825 | (arg1)->Select(arg2); | |
29826 | ||
29827 | wxPyEndAllowThreads(__tstate); | |
29828 | if (PyErr_Occurred()) SWIG_fail; | |
29829 | } | |
29830 | Py_INCREF(Py_None); resultobj = Py_None; | |
29831 | return resultobj; | |
29832 | fail: | |
29833 | return NULL; | |
29834 | } | |
29835 | ||
29836 | ||
29837 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29838 | PyObject *resultobj; | |
29839 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29840 | int result; | |
29841 | PyObject * obj0 = 0 ; | |
29842 | char *kwnames[] = { | |
29843 | (char *) "self", NULL | |
29844 | }; | |
29845 | ||
29846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
29847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29848 | { | |
29849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29850 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
29851 | ||
29852 | wxPyEndAllowThreads(__tstate); | |
29853 | if (PyErr_Occurred()) SWIG_fail; | |
29854 | } | |
29855 | resultobj = PyInt_FromLong((long)result); | |
29856 | return resultobj; | |
29857 | fail: | |
29858 | return NULL; | |
29859 | } | |
29860 | ||
29861 | ||
29862 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29863 | PyObject *resultobj; | |
29864 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29865 | wxString result; | |
29866 | PyObject * obj0 = 0 ; | |
29867 | char *kwnames[] = { | |
29868 | (char *) "self", NULL | |
29869 | }; | |
29870 | ||
29871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
29872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29873 | { | |
29874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29875 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
29876 | ||
29877 | wxPyEndAllowThreads(__tstate); | |
29878 | if (PyErr_Occurred()) SWIG_fail; | |
29879 | } | |
29880 | { | |
29881 | #if wxUSE_UNICODE | |
29882 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29883 | #else | |
29884 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29885 | #endif | |
29886 | } | |
29887 | return resultobj; | |
29888 | fail: | |
29889 | return NULL; | |
29890 | } | |
29891 | ||
29892 | ||
29893 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29894 | PyObject *resultobj; | |
29895 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29896 | int arg2 ; | |
29897 | PyObject *result; | |
29898 | PyObject * obj0 = 0 ; | |
29899 | char *kwnames[] = { | |
29900 | (char *) "self",(char *) "n", NULL | |
29901 | }; | |
29902 | ||
29903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_GetClientData",kwnames,&obj0,&arg2)) goto fail; | |
29904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29905 | { | |
29906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29907 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
29908 | ||
29909 | wxPyEndAllowThreads(__tstate); | |
29910 | if (PyErr_Occurred()) SWIG_fail; | |
29911 | } | |
29912 | resultobj = result; | |
29913 | return resultobj; | |
29914 | fail: | |
29915 | return NULL; | |
29916 | } | |
29917 | ||
29918 | ||
29919 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29920 | PyObject *resultobj; | |
29921 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29922 | int arg2 ; | |
29923 | PyObject *arg3 = (PyObject *) 0 ; | |
29924 | PyObject * obj0 = 0 ; | |
29925 | PyObject * obj2 = 0 ; | |
29926 | char *kwnames[] = { | |
29927 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
29928 | }; | |
29929 | ||
29930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ItemContainer_SetClientData",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
29931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29932 | arg3 = obj2; | |
29933 | { | |
29934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29935 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
29936 | ||
29937 | wxPyEndAllowThreads(__tstate); | |
29938 | if (PyErr_Occurred()) SWIG_fail; | |
29939 | } | |
29940 | Py_INCREF(Py_None); resultobj = Py_None; | |
29941 | return resultobj; | |
29942 | fail: | |
29943 | return NULL; | |
29944 | } | |
29945 | ||
29946 | ||
29947 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
29948 | PyObject *obj; | |
29949 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29950 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
29951 | Py_INCREF(obj); | |
29952 | return Py_BuildValue((char *)""); | |
29953 | } | |
29954 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
29955 | PyObject *obj; | |
29956 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29957 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
29958 | Py_INCREF(obj); | |
29959 | return Py_BuildValue((char *)""); | |
29960 | } | |
29961 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29962 | PyObject *resultobj; | |
29963 | wxSizerItem *result; | |
29964 | char *kwnames[] = { | |
29965 | NULL | |
29966 | }; | |
29967 | ||
29968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
29969 | { | |
29970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29971 | result = (wxSizerItem *)new wxSizerItem(); | |
29972 | ||
29973 | wxPyEndAllowThreads(__tstate); | |
29974 | if (PyErr_Occurred()) SWIG_fail; | |
29975 | } | |
29976 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
29977 | return resultobj; | |
29978 | fail: | |
29979 | return NULL; | |
29980 | } | |
29981 | ||
29982 | ||
29983 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29984 | PyObject *resultobj; | |
29985 | int arg1 ; | |
29986 | int arg2 ; | |
29987 | int arg3 ; | |
29988 | int arg4 ; | |
29989 | int arg5 ; | |
29990 | wxObject *arg6 = (wxObject *) 0 ; | |
29991 | wxSizerItem *result; | |
29992 | PyObject * obj5 = 0 ; | |
29993 | char *kwnames[] = { | |
29994 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
29995 | }; | |
29996 | ||
29997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiiiiO:new_SizerItemSpacer",kwnames,&arg1,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
29998 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29999 | { | |
30000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30001 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
30002 | ||
30003 | wxPyEndAllowThreads(__tstate); | |
30004 | if (PyErr_Occurred()) SWIG_fail; | |
30005 | } | |
30006 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
30007 | return resultobj; | |
30008 | fail: | |
30009 | return NULL; | |
30010 | } | |
30011 | ||
30012 | ||
30013 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30014 | PyObject *resultobj; | |
30015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30016 | int arg2 ; | |
30017 | int arg3 ; | |
30018 | int arg4 ; | |
30019 | wxObject *arg5 = (wxObject *) 0 ; | |
30020 | wxSizerItem *result; | |
30021 | PyObject * obj0 = 0 ; | |
30022 | PyObject * obj4 = 0 ; | |
30023 | char *kwnames[] = { | |
30024 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30025 | }; | |
30026 | ||
30027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiO:new_SizerItemWindow",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
30028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30029 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30030 | { | |
30031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30032 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
30033 | ||
30034 | wxPyEndAllowThreads(__tstate); | |
30035 | if (PyErr_Occurred()) SWIG_fail; | |
30036 | } | |
30037 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
30038 | return resultobj; | |
30039 | fail: | |
30040 | return NULL; | |
30041 | } | |
30042 | ||
30043 | ||
30044 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30045 | PyObject *resultobj; | |
30046 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30047 | int arg2 ; | |
30048 | int arg3 ; | |
30049 | int arg4 ; | |
30050 | wxObject *arg5 = (wxObject *) 0 ; | |
30051 | wxSizerItem *result; | |
30052 | PyObject * obj0 = 0 ; | |
30053 | PyObject * obj4 = 0 ; | |
30054 | char *kwnames[] = { | |
30055 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30056 | }; | |
30057 | ||
30058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiO:new_SizerItemSizer",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
30059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30060 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30061 | { | |
30062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30063 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
30064 | ||
30065 | wxPyEndAllowThreads(__tstate); | |
30066 | if (PyErr_Occurred()) SWIG_fail; | |
30067 | } | |
30068 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
30069 | return resultobj; | |
30070 | fail: | |
30071 | return NULL; | |
30072 | } | |
30073 | ||
30074 | ||
30075 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30076 | PyObject *resultobj; | |
30077 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30078 | PyObject * obj0 = 0 ; | |
30079 | char *kwnames[] = { | |
30080 | (char *) "self", NULL | |
30081 | }; | |
30082 | ||
30083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
30084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30085 | { | |
30086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30087 | (arg1)->DeleteWindows(); | |
30088 | ||
30089 | wxPyEndAllowThreads(__tstate); | |
30090 | if (PyErr_Occurred()) SWIG_fail; | |
30091 | } | |
30092 | Py_INCREF(Py_None); resultobj = Py_None; | |
30093 | return resultobj; | |
30094 | fail: | |
30095 | return NULL; | |
30096 | } | |
30097 | ||
30098 | ||
30099 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30100 | PyObject *resultobj; | |
30101 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30102 | PyObject * obj0 = 0 ; | |
30103 | char *kwnames[] = { | |
30104 | (char *) "self", NULL | |
30105 | }; | |
30106 | ||
30107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
30108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30109 | { | |
30110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30111 | (arg1)->DetachSizer(); | |
30112 | ||
30113 | wxPyEndAllowThreads(__tstate); | |
30114 | if (PyErr_Occurred()) SWIG_fail; | |
30115 | } | |
30116 | Py_INCREF(Py_None); resultobj = Py_None; | |
30117 | return resultobj; | |
30118 | fail: | |
30119 | return NULL; | |
30120 | } | |
30121 | ||
30122 | ||
30123 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30124 | PyObject *resultobj; | |
30125 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30126 | wxSize result; | |
30127 | PyObject * obj0 = 0 ; | |
30128 | char *kwnames[] = { | |
30129 | (char *) "self", NULL | |
30130 | }; | |
30131 | ||
30132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
30133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30134 | { | |
30135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30136 | result = (arg1)->GetSize(); | |
30137 | ||
30138 | wxPyEndAllowThreads(__tstate); | |
30139 | if (PyErr_Occurred()) SWIG_fail; | |
30140 | } | |
30141 | { | |
30142 | wxSize * resultptr; | |
30143 | resultptr = new wxSize((wxSize &) result); | |
30144 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30145 | } | |
30146 | return resultobj; | |
30147 | fail: | |
30148 | return NULL; | |
30149 | } | |
30150 | ||
30151 | ||
30152 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30153 | PyObject *resultobj; | |
30154 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30155 | wxSize result; | |
30156 | PyObject * obj0 = 0 ; | |
30157 | char *kwnames[] = { | |
30158 | (char *) "self", NULL | |
30159 | }; | |
30160 | ||
30161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
30162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30163 | { | |
30164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30165 | result = (arg1)->CalcMin(); | |
30166 | ||
30167 | wxPyEndAllowThreads(__tstate); | |
30168 | if (PyErr_Occurred()) SWIG_fail; | |
30169 | } | |
30170 | { | |
30171 | wxSize * resultptr; | |
30172 | resultptr = new wxSize((wxSize &) result); | |
30173 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30174 | } | |
30175 | return resultobj; | |
30176 | fail: | |
30177 | return NULL; | |
30178 | } | |
30179 | ||
30180 | ||
30181 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30182 | PyObject *resultobj; | |
30183 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30184 | wxPoint arg2 ; | |
30185 | wxSize arg3 ; | |
30186 | wxPoint *argp2 ; | |
30187 | wxSize *argp3 ; | |
30188 | PyObject * obj0 = 0 ; | |
30189 | PyObject * obj1 = 0 ; | |
30190 | PyObject * obj2 = 0 ; | |
30191 | char *kwnames[] = { | |
30192 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
30193 | }; | |
30194 | ||
30195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30197 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
30198 | arg2 = *argp2; | |
30199 | if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
30200 | arg3 = *argp3; | |
30201 | { | |
30202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30203 | (arg1)->SetDimension(arg2,arg3); | |
30204 | ||
30205 | wxPyEndAllowThreads(__tstate); | |
30206 | if (PyErr_Occurred()) SWIG_fail; | |
30207 | } | |
30208 | Py_INCREF(Py_None); resultobj = Py_None; | |
30209 | return resultobj; | |
30210 | fail: | |
30211 | return NULL; | |
30212 | } | |
30213 | ||
30214 | ||
30215 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30216 | PyObject *resultobj; | |
30217 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30218 | wxSize result; | |
30219 | PyObject * obj0 = 0 ; | |
30220 | char *kwnames[] = { | |
30221 | (char *) "self", NULL | |
30222 | }; | |
30223 | ||
30224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
30225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30226 | { | |
30227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30228 | result = (arg1)->GetMinSize(); | |
30229 | ||
30230 | wxPyEndAllowThreads(__tstate); | |
30231 | if (PyErr_Occurred()) SWIG_fail; | |
30232 | } | |
30233 | { | |
30234 | wxSize * resultptr; | |
30235 | resultptr = new wxSize((wxSize &) result); | |
30236 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30237 | } | |
30238 | return resultobj; | |
30239 | fail: | |
30240 | return NULL; | |
30241 | } | |
30242 | ||
30243 | ||
30244 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30245 | PyObject *resultobj; | |
30246 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30247 | int arg2 ; | |
30248 | int arg3 ; | |
30249 | PyObject * obj0 = 0 ; | |
30250 | char *kwnames[] = { | |
30251 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30252 | }; | |
30253 | ||
30254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SizerItem_SetInitSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
30255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30256 | { | |
30257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30258 | (arg1)->SetInitSize(arg2,arg3); | |
30259 | ||
30260 | wxPyEndAllowThreads(__tstate); | |
30261 | if (PyErr_Occurred()) SWIG_fail; | |
30262 | } | |
30263 | Py_INCREF(Py_None); resultobj = Py_None; | |
30264 | return resultobj; | |
30265 | fail: | |
30266 | return NULL; | |
30267 | } | |
30268 | ||
30269 | ||
30270 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30271 | PyObject *resultobj; | |
30272 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30273 | int arg2 ; | |
30274 | int arg3 ; | |
30275 | PyObject * obj0 = 0 ; | |
30276 | char *kwnames[] = { | |
30277 | (char *) "self",(char *) "width",(char *) "height", NULL | |
30278 | }; | |
30279 | ||
30280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SizerItem_SetRatioWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
30281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30282 | { | |
30283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30284 | (arg1)->SetRatio(arg2,arg3); | |
30285 | ||
30286 | wxPyEndAllowThreads(__tstate); | |
30287 | if (PyErr_Occurred()) SWIG_fail; | |
30288 | } | |
30289 | Py_INCREF(Py_None); resultobj = Py_None; | |
30290 | return resultobj; | |
30291 | fail: | |
30292 | return NULL; | |
30293 | } | |
30294 | ||
30295 | ||
30296 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30297 | PyObject *resultobj; | |
30298 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30299 | wxSize arg2 ; | |
30300 | wxSize *argp2 ; | |
30301 | PyObject * obj0 = 0 ; | |
30302 | PyObject * obj1 = 0 ; | |
30303 | char *kwnames[] = { | |
30304 | (char *) "self",(char *) "size", NULL | |
30305 | }; | |
30306 | ||
30307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
30308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30309 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
30310 | arg2 = *argp2; | |
30311 | { | |
30312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30313 | (arg1)->SetRatio(arg2); | |
30314 | ||
30315 | wxPyEndAllowThreads(__tstate); | |
30316 | if (PyErr_Occurred()) SWIG_fail; | |
30317 | } | |
30318 | Py_INCREF(Py_None); resultobj = Py_None; | |
30319 | return resultobj; | |
30320 | fail: | |
30321 | return NULL; | |
30322 | } | |
30323 | ||
30324 | ||
30325 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30326 | PyObject *resultobj; | |
30327 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30328 | float arg2 ; | |
30329 | PyObject * obj0 = 0 ; | |
30330 | char *kwnames[] = { | |
30331 | (char *) "self",(char *) "ratio", NULL | |
30332 | }; | |
30333 | ||
30334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Of:SizerItem_SetRatio",kwnames,&obj0,&arg2)) goto fail; | |
30335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30336 | { | |
30337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30338 | (arg1)->SetRatio(arg2); | |
30339 | ||
30340 | wxPyEndAllowThreads(__tstate); | |
30341 | if (PyErr_Occurred()) SWIG_fail; | |
30342 | } | |
30343 | Py_INCREF(Py_None); resultobj = Py_None; | |
30344 | return resultobj; | |
30345 | fail: | |
30346 | return NULL; | |
30347 | } | |
30348 | ||
30349 | ||
30350 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30351 | PyObject *resultobj; | |
30352 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30353 | float result; | |
30354 | PyObject * obj0 = 0 ; | |
30355 | char *kwnames[] = { | |
30356 | (char *) "self", NULL | |
30357 | }; | |
30358 | ||
30359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
30360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30361 | { | |
30362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30363 | result = (float)(arg1)->GetRatio(); | |
30364 | ||
30365 | wxPyEndAllowThreads(__tstate); | |
30366 | if (PyErr_Occurred()) SWIG_fail; | |
30367 | } | |
30368 | resultobj = PyFloat_FromDouble(result); | |
30369 | return resultobj; | |
30370 | fail: | |
30371 | return NULL; | |
30372 | } | |
30373 | ||
30374 | ||
30375 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30376 | PyObject *resultobj; | |
30377 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30378 | bool result; | |
30379 | PyObject * obj0 = 0 ; | |
30380 | char *kwnames[] = { | |
30381 | (char *) "self", NULL | |
30382 | }; | |
30383 | ||
30384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
30385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30386 | { | |
30387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30388 | result = (bool)(arg1)->IsWindow(); | |
30389 | ||
30390 | wxPyEndAllowThreads(__tstate); | |
30391 | if (PyErr_Occurred()) SWIG_fail; | |
30392 | } | |
30393 | resultobj = PyInt_FromLong((long)result); | |
30394 | return resultobj; | |
30395 | fail: | |
30396 | return NULL; | |
30397 | } | |
30398 | ||
30399 | ||
30400 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30401 | PyObject *resultobj; | |
30402 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30403 | bool result; | |
30404 | PyObject * obj0 = 0 ; | |
30405 | char *kwnames[] = { | |
30406 | (char *) "self", NULL | |
30407 | }; | |
30408 | ||
30409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
30410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30411 | { | |
30412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30413 | result = (bool)(arg1)->IsSizer(); | |
30414 | ||
30415 | wxPyEndAllowThreads(__tstate); | |
30416 | if (PyErr_Occurred()) SWIG_fail; | |
30417 | } | |
30418 | resultobj = PyInt_FromLong((long)result); | |
30419 | return resultobj; | |
30420 | fail: | |
30421 | return NULL; | |
30422 | } | |
30423 | ||
30424 | ||
30425 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30426 | PyObject *resultobj; | |
30427 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30428 | bool result; | |
30429 | PyObject * obj0 = 0 ; | |
30430 | char *kwnames[] = { | |
30431 | (char *) "self", NULL | |
30432 | }; | |
30433 | ||
30434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
30435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30436 | { | |
30437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30438 | result = (bool)(arg1)->IsSpacer(); | |
30439 | ||
30440 | wxPyEndAllowThreads(__tstate); | |
30441 | if (PyErr_Occurred()) SWIG_fail; | |
30442 | } | |
30443 | resultobj = PyInt_FromLong((long)result); | |
30444 | return resultobj; | |
30445 | fail: | |
30446 | return NULL; | |
30447 | } | |
30448 | ||
30449 | ||
30450 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30451 | PyObject *resultobj; | |
30452 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30453 | int arg2 ; | |
30454 | PyObject * obj0 = 0 ; | |
30455 | char *kwnames[] = { | |
30456 | (char *) "self",(char *) "proportion", NULL | |
30457 | }; | |
30458 | ||
30459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SizerItem_SetProportion",kwnames,&obj0,&arg2)) goto fail; | |
30460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30461 | { | |
30462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30463 | (arg1)->SetProportion(arg2); | |
30464 | ||
30465 | wxPyEndAllowThreads(__tstate); | |
30466 | if (PyErr_Occurred()) SWIG_fail; | |
30467 | } | |
30468 | Py_INCREF(Py_None); resultobj = Py_None; | |
30469 | return resultobj; | |
30470 | fail: | |
30471 | return NULL; | |
30472 | } | |
30473 | ||
30474 | ||
30475 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30476 | PyObject *resultobj; | |
30477 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30478 | int result; | |
30479 | PyObject * obj0 = 0 ; | |
30480 | char *kwnames[] = { | |
30481 | (char *) "self", NULL | |
30482 | }; | |
30483 | ||
30484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
30485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30486 | { | |
30487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30488 | result = (int)(arg1)->GetProportion(); | |
30489 | ||
30490 | wxPyEndAllowThreads(__tstate); | |
30491 | if (PyErr_Occurred()) SWIG_fail; | |
30492 | } | |
30493 | resultobj = PyInt_FromLong((long)result); | |
30494 | return resultobj; | |
30495 | fail: | |
30496 | return NULL; | |
30497 | } | |
30498 | ||
30499 | ||
30500 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30501 | PyObject *resultobj; | |
30502 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30503 | int arg2 ; | |
30504 | PyObject * obj0 = 0 ; | |
30505 | char *kwnames[] = { | |
30506 | (char *) "self",(char *) "flag", NULL | |
30507 | }; | |
30508 | ||
30509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SizerItem_SetFlag",kwnames,&obj0,&arg2)) goto fail; | |
30510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30511 | { | |
30512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30513 | (arg1)->SetFlag(arg2); | |
30514 | ||
30515 | wxPyEndAllowThreads(__tstate); | |
30516 | if (PyErr_Occurred()) SWIG_fail; | |
30517 | } | |
30518 | Py_INCREF(Py_None); resultobj = Py_None; | |
30519 | return resultobj; | |
30520 | fail: | |
30521 | return NULL; | |
30522 | } | |
30523 | ||
30524 | ||
30525 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30526 | PyObject *resultobj; | |
30527 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30528 | int result; | |
30529 | PyObject * obj0 = 0 ; | |
30530 | char *kwnames[] = { | |
30531 | (char *) "self", NULL | |
30532 | }; | |
30533 | ||
30534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
30535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30536 | { | |
30537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30538 | result = (int)(arg1)->GetFlag(); | |
30539 | ||
30540 | wxPyEndAllowThreads(__tstate); | |
30541 | if (PyErr_Occurred()) SWIG_fail; | |
30542 | } | |
30543 | resultobj = PyInt_FromLong((long)result); | |
30544 | return resultobj; | |
30545 | fail: | |
30546 | return NULL; | |
30547 | } | |
30548 | ||
30549 | ||
30550 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30551 | PyObject *resultobj; | |
30552 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30553 | int arg2 ; | |
30554 | PyObject * obj0 = 0 ; | |
30555 | char *kwnames[] = { | |
30556 | (char *) "self",(char *) "border", NULL | |
30557 | }; | |
30558 | ||
30559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SizerItem_SetBorder",kwnames,&obj0,&arg2)) goto fail; | |
30560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30561 | { | |
30562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30563 | (arg1)->SetBorder(arg2); | |
30564 | ||
30565 | wxPyEndAllowThreads(__tstate); | |
30566 | if (PyErr_Occurred()) SWIG_fail; | |
30567 | } | |
30568 | Py_INCREF(Py_None); resultobj = Py_None; | |
30569 | return resultobj; | |
30570 | fail: | |
30571 | return NULL; | |
30572 | } | |
30573 | ||
30574 | ||
30575 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30576 | PyObject *resultobj; | |
30577 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30578 | int result; | |
30579 | PyObject * obj0 = 0 ; | |
30580 | char *kwnames[] = { | |
30581 | (char *) "self", NULL | |
30582 | }; | |
30583 | ||
30584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
30585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30586 | { | |
30587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30588 | result = (int)(arg1)->GetBorder(); | |
30589 | ||
30590 | wxPyEndAllowThreads(__tstate); | |
30591 | if (PyErr_Occurred()) SWIG_fail; | |
30592 | } | |
30593 | resultobj = PyInt_FromLong((long)result); | |
30594 | return resultobj; | |
30595 | fail: | |
30596 | return NULL; | |
30597 | } | |
30598 | ||
30599 | ||
30600 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30601 | PyObject *resultobj; | |
30602 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30603 | wxWindow *result; | |
30604 | PyObject * obj0 = 0 ; | |
30605 | char *kwnames[] = { | |
30606 | (char *) "self", NULL | |
30607 | }; | |
30608 | ||
30609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
30610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30611 | { | |
30612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30613 | result = (wxWindow *)(arg1)->GetWindow(); | |
30614 | ||
30615 | wxPyEndAllowThreads(__tstate); | |
30616 | if (PyErr_Occurred()) SWIG_fail; | |
30617 | } | |
30618 | { | |
30619 | resultobj = wxPyMake_wxObject(result); | |
30620 | } | |
30621 | return resultobj; | |
30622 | fail: | |
30623 | return NULL; | |
30624 | } | |
30625 | ||
30626 | ||
30627 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30628 | PyObject *resultobj; | |
30629 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30630 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30631 | PyObject * obj0 = 0 ; | |
30632 | PyObject * obj1 = 0 ; | |
30633 | char *kwnames[] = { | |
30634 | (char *) "self",(char *) "window", NULL | |
30635 | }; | |
30636 | ||
30637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
30638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30639 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30640 | { | |
30641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30642 | (arg1)->SetWindow(arg2); | |
30643 | ||
30644 | wxPyEndAllowThreads(__tstate); | |
30645 | if (PyErr_Occurred()) SWIG_fail; | |
30646 | } | |
30647 | Py_INCREF(Py_None); resultobj = Py_None; | |
30648 | return resultobj; | |
30649 | fail: | |
30650 | return NULL; | |
30651 | } | |
30652 | ||
30653 | ||
30654 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30655 | PyObject *resultobj; | |
30656 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30657 | wxSizer *result; | |
30658 | PyObject * obj0 = 0 ; | |
30659 | char *kwnames[] = { | |
30660 | (char *) "self", NULL | |
30661 | }; | |
30662 | ||
30663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
30664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30665 | { | |
30666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30667 | result = (wxSizer *)(arg1)->GetSizer(); | |
30668 | ||
30669 | wxPyEndAllowThreads(__tstate); | |
30670 | if (PyErr_Occurred()) SWIG_fail; | |
30671 | } | |
30672 | { | |
30673 | resultobj = wxPyMake_wxSizer(result); | |
30674 | } | |
30675 | return resultobj; | |
30676 | fail: | |
30677 | return NULL; | |
30678 | } | |
30679 | ||
30680 | ||
30681 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30682 | PyObject *resultobj; | |
30683 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30684 | wxSizer *arg2 = (wxSizer *) 0 ; | |
30685 | PyObject * obj0 = 0 ; | |
30686 | PyObject * obj1 = 0 ; | |
30687 | char *kwnames[] = { | |
30688 | (char *) "self",(char *) "sizer", NULL | |
30689 | }; | |
30690 | ||
30691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
30692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30693 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30694 | { | |
30695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30696 | (arg1)->SetSizer(arg2); | |
30697 | ||
30698 | wxPyEndAllowThreads(__tstate); | |
30699 | if (PyErr_Occurred()) SWIG_fail; | |
30700 | } | |
30701 | Py_INCREF(Py_None); resultobj = Py_None; | |
30702 | return resultobj; | |
30703 | fail: | |
30704 | return NULL; | |
30705 | } | |
30706 | ||
30707 | ||
30708 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30709 | PyObject *resultobj; | |
30710 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30711 | wxSize *result; | |
30712 | PyObject * obj0 = 0 ; | |
30713 | char *kwnames[] = { | |
30714 | (char *) "self", NULL | |
30715 | }; | |
30716 | ||
30717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
30718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30719 | { | |
30720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30721 | { | |
30722 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
30723 | result = (wxSize *) &_result_ref; | |
30724 | } | |
30725 | ||
30726 | wxPyEndAllowThreads(__tstate); | |
30727 | if (PyErr_Occurred()) SWIG_fail; | |
30728 | } | |
30729 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
30730 | return resultobj; | |
30731 | fail: | |
30732 | return NULL; | |
30733 | } | |
30734 | ||
30735 | ||
30736 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30737 | PyObject *resultobj; | |
30738 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30739 | wxSize *arg2 = 0 ; | |
30740 | wxSize temp2 ; | |
30741 | PyObject * obj0 = 0 ; | |
30742 | PyObject * obj1 = 0 ; | |
30743 | char *kwnames[] = { | |
30744 | (char *) "self",(char *) "size", NULL | |
30745 | }; | |
30746 | ||
30747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
30748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30749 | { | |
30750 | arg2 = &temp2; | |
30751 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
30752 | } | |
30753 | { | |
30754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30755 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
30756 | ||
30757 | wxPyEndAllowThreads(__tstate); | |
30758 | if (PyErr_Occurred()) SWIG_fail; | |
30759 | } | |
30760 | Py_INCREF(Py_None); resultobj = Py_None; | |
30761 | return resultobj; | |
30762 | fail: | |
30763 | return NULL; | |
30764 | } | |
30765 | ||
30766 | ||
30767 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30768 | PyObject *resultobj; | |
30769 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30770 | bool arg2 ; | |
30771 | PyObject * obj0 = 0 ; | |
30772 | PyObject * obj1 = 0 ; | |
30773 | char *kwnames[] = { | |
30774 | (char *) "self",(char *) "show", NULL | |
30775 | }; | |
30776 | ||
30777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
30778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30779 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
30780 | if (PyErr_Occurred()) SWIG_fail; | |
30781 | { | |
30782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30783 | (arg1)->Show(arg2); | |
30784 | ||
30785 | wxPyEndAllowThreads(__tstate); | |
30786 | if (PyErr_Occurred()) SWIG_fail; | |
30787 | } | |
30788 | Py_INCREF(Py_None); resultobj = Py_None; | |
30789 | return resultobj; | |
30790 | fail: | |
30791 | return NULL; | |
30792 | } | |
30793 | ||
30794 | ||
30795 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30796 | PyObject *resultobj; | |
30797 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30798 | bool result; | |
30799 | PyObject * obj0 = 0 ; | |
30800 | char *kwnames[] = { | |
30801 | (char *) "self", NULL | |
30802 | }; | |
30803 | ||
30804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
30805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30806 | { | |
30807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30808 | result = (bool)(arg1)->IsShown(); | |
30809 | ||
30810 | wxPyEndAllowThreads(__tstate); | |
30811 | if (PyErr_Occurred()) SWIG_fail; | |
30812 | } | |
30813 | resultobj = PyInt_FromLong((long)result); | |
30814 | return resultobj; | |
30815 | fail: | |
30816 | return NULL; | |
30817 | } | |
30818 | ||
30819 | ||
30820 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30821 | PyObject *resultobj; | |
30822 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30823 | wxPoint result; | |
30824 | PyObject * obj0 = 0 ; | |
30825 | char *kwnames[] = { | |
30826 | (char *) "self", NULL | |
30827 | }; | |
30828 | ||
30829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
30830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30831 | { | |
30832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30833 | result = (arg1)->GetPosition(); | |
30834 | ||
30835 | wxPyEndAllowThreads(__tstate); | |
30836 | if (PyErr_Occurred()) SWIG_fail; | |
30837 | } | |
30838 | { | |
30839 | wxPoint * resultptr; | |
30840 | resultptr = new wxPoint((wxPoint &) result); | |
30841 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
30842 | } | |
30843 | return resultobj; | |
30844 | fail: | |
30845 | return NULL; | |
30846 | } | |
30847 | ||
30848 | ||
30849 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30850 | PyObject *resultobj; | |
30851 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30852 | PyObject *result; | |
30853 | PyObject * obj0 = 0 ; | |
30854 | char *kwnames[] = { | |
30855 | (char *) "self", NULL | |
30856 | }; | |
30857 | ||
30858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
30859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30860 | { | |
30861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30862 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
30863 | ||
30864 | wxPyEndAllowThreads(__tstate); | |
30865 | if (PyErr_Occurred()) SWIG_fail; | |
30866 | } | |
30867 | resultobj = result; | |
30868 | return resultobj; | |
30869 | fail: | |
30870 | return NULL; | |
30871 | } | |
30872 | ||
30873 | ||
30874 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
30875 | PyObject *obj; | |
30876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30877 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
30878 | Py_INCREF(obj); | |
30879 | return Py_BuildValue((char *)""); | |
30880 | } | |
30881 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30882 | PyObject *resultobj; | |
30883 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30884 | PyObject *arg2 = (PyObject *) 0 ; | |
30885 | PyObject * obj0 = 0 ; | |
30886 | PyObject * obj1 = 0 ; | |
30887 | char *kwnames[] = { | |
30888 | (char *) "self",(char *) "_self", NULL | |
30889 | }; | |
30890 | ||
30891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
30892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30893 | arg2 = obj1; | |
30894 | { | |
30895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30896 | wxSizer__setOORInfo(arg1,arg2); | |
30897 | ||
30898 | wxPyEndAllowThreads(__tstate); | |
30899 | if (PyErr_Occurred()) SWIG_fail; | |
30900 | } | |
30901 | Py_INCREF(Py_None); resultobj = Py_None; | |
30902 | return resultobj; | |
30903 | fail: | |
30904 | return NULL; | |
30905 | } | |
30906 | ||
30907 | ||
30908 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30909 | PyObject *resultobj; | |
30910 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30911 | PyObject *arg2 = (PyObject *) 0 ; | |
30912 | int arg3 = (int) 0 ; | |
30913 | int arg4 = (int) 0 ; | |
30914 | int arg5 = (int) 0 ; | |
30915 | PyObject *arg6 = (PyObject *) NULL ; | |
30916 | PyObject * obj0 = 0 ; | |
30917 | PyObject * obj1 = 0 ; | |
30918 | PyObject * obj5 = 0 ; | |
30919 | char *kwnames[] = { | |
30920 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30921 | }; | |
30922 | ||
30923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiiO:Sizer_Add",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
30924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30925 | arg2 = obj1; | |
30926 | if (obj5) { | |
30927 | arg6 = obj5; | |
30928 | } | |
30929 | { | |
30930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30931 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
30932 | ||
30933 | wxPyEndAllowThreads(__tstate); | |
30934 | if (PyErr_Occurred()) SWIG_fail; | |
30935 | } | |
30936 | Py_INCREF(Py_None); resultobj = Py_None; | |
30937 | return resultobj; | |
30938 | fail: | |
30939 | return NULL; | |
30940 | } | |
30941 | ||
30942 | ||
30943 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30944 | PyObject *resultobj; | |
30945 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30946 | int arg2 ; | |
30947 | PyObject *arg3 = (PyObject *) 0 ; | |
30948 | int arg4 = (int) 0 ; | |
30949 | int arg5 = (int) 0 ; | |
30950 | int arg6 = (int) 0 ; | |
30951 | PyObject *arg7 = (PyObject *) NULL ; | |
30952 | PyObject * obj0 = 0 ; | |
30953 | PyObject * obj2 = 0 ; | |
30954 | PyObject * obj6 = 0 ; | |
30955 | char *kwnames[] = { | |
30956 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30957 | }; | |
30958 | ||
30959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|iiiO:Sizer_Insert",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
30960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30961 | arg3 = obj2; | |
30962 | if (obj6) { | |
30963 | arg7 = obj6; | |
30964 | } | |
30965 | { | |
30966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30967 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
30968 | ||
30969 | wxPyEndAllowThreads(__tstate); | |
30970 | if (PyErr_Occurred()) SWIG_fail; | |
30971 | } | |
30972 | Py_INCREF(Py_None); resultobj = Py_None; | |
30973 | return resultobj; | |
30974 | fail: | |
30975 | return NULL; | |
30976 | } | |
30977 | ||
30978 | ||
30979 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30980 | PyObject *resultobj; | |
30981 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30982 | PyObject *arg2 = (PyObject *) 0 ; | |
30983 | int arg3 = (int) 0 ; | |
30984 | int arg4 = (int) 0 ; | |
30985 | int arg5 = (int) 0 ; | |
30986 | PyObject *arg6 = (PyObject *) NULL ; | |
30987 | PyObject * obj0 = 0 ; | |
30988 | PyObject * obj1 = 0 ; | |
30989 | PyObject * obj5 = 0 ; | |
30990 | char *kwnames[] = { | |
30991 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30992 | }; | |
30993 | ||
30994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiiO:Sizer_Prepend",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
30995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30996 | arg2 = obj1; | |
30997 | if (obj5) { | |
30998 | arg6 = obj5; | |
30999 | } | |
31000 | { | |
31001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31002 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
31003 | ||
31004 | wxPyEndAllowThreads(__tstate); | |
31005 | if (PyErr_Occurred()) SWIG_fail; | |
31006 | } | |
31007 | Py_INCREF(Py_None); resultobj = Py_None; | |
31008 | return resultobj; | |
31009 | fail: | |
31010 | return NULL; | |
31011 | } | |
31012 | ||
31013 | ||
31014 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31015 | PyObject *resultobj; | |
31016 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31017 | PyObject *arg2 = (PyObject *) 0 ; | |
31018 | bool result; | |
31019 | PyObject * obj0 = 0 ; | |
31020 | PyObject * obj1 = 0 ; | |
31021 | char *kwnames[] = { | |
31022 | (char *) "self",(char *) "item", NULL | |
31023 | }; | |
31024 | ||
31025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
31026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31027 | arg2 = obj1; | |
31028 | { | |
31029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31030 | result = (bool)wxSizer_Remove(arg1,arg2); | |
31031 | ||
31032 | wxPyEndAllowThreads(__tstate); | |
31033 | if (PyErr_Occurred()) SWIG_fail; | |
31034 | } | |
31035 | resultobj = PyInt_FromLong((long)result); | |
31036 | return resultobj; | |
31037 | fail: | |
31038 | return NULL; | |
31039 | } | |
31040 | ||
31041 | ||
31042 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31043 | PyObject *resultobj; | |
31044 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31045 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a RD |
31046 | wxSize *arg3 = 0 ; |
31047 | wxSize temp3 ; | |
d14a1e28 RD |
31048 | PyObject * obj0 = 0 ; |
31049 | PyObject * obj1 = 0 ; | |
31050 | PyObject * obj2 = 0 ; | |
31051 | char *kwnames[] = { | |
31052 | (char *) "self",(char *) "item",(char *) "size", NULL | |
31053 | }; | |
31054 | ||
31055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31057 | arg2 = obj1; | |
423f194a RD |
31058 | { |
31059 | arg3 = &temp3; | |
31060 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
31061 | } | |
d14a1e28 RD |
31062 | { |
31063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 31064 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
31065 | |
31066 | wxPyEndAllowThreads(__tstate); | |
31067 | if (PyErr_Occurred()) SWIG_fail; | |
31068 | } | |
31069 | Py_INCREF(Py_None); resultobj = Py_None; | |
31070 | return resultobj; | |
31071 | fail: | |
31072 | return NULL; | |
31073 | } | |
31074 | ||
31075 | ||
31076 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31077 | PyObject *resultobj; | |
31078 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31079 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
31080 | PyObject * obj0 = 0 ; | |
31081 | PyObject * obj1 = 0 ; | |
31082 | char *kwnames[] = { | |
31083 | (char *) "self",(char *) "item", NULL | |
31084 | }; | |
31085 | ||
31086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
31087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31088 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31089 | { | |
31090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31091 | (arg1)->Add(arg2); | |
31092 | ||
31093 | wxPyEndAllowThreads(__tstate); | |
31094 | if (PyErr_Occurred()) SWIG_fail; | |
31095 | } | |
31096 | Py_INCREF(Py_None); resultobj = Py_None; | |
31097 | return resultobj; | |
31098 | fail: | |
31099 | return NULL; | |
31100 | } | |
31101 | ||
31102 | ||
31103 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31104 | PyObject *resultobj; | |
31105 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31106 | size_t arg2 ; | |
31107 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
31108 | PyObject * obj0 = 0 ; | |
31109 | PyObject * obj1 = 0 ; | |
31110 | PyObject * obj2 = 0 ; | |
31111 | char *kwnames[] = { | |
31112 | (char *) "self",(char *) "index",(char *) "item", NULL | |
31113 | }; | |
31114 | ||
31115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31117 | arg2 = (size_t) PyInt_AsLong(obj1); | |
31118 | if (PyErr_Occurred()) SWIG_fail; | |
31119 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31120 | { | |
31121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31122 | (arg1)->Insert(arg2,arg3); | |
31123 | ||
31124 | wxPyEndAllowThreads(__tstate); | |
31125 | if (PyErr_Occurred()) SWIG_fail; | |
31126 | } | |
31127 | Py_INCREF(Py_None); resultobj = Py_None; | |
31128 | return resultobj; | |
31129 | fail: | |
31130 | return NULL; | |
31131 | } | |
31132 | ||
31133 | ||
31134 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31135 | PyObject *resultobj; | |
31136 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31137 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
31138 | PyObject * obj0 = 0 ; | |
31139 | PyObject * obj1 = 0 ; | |
31140 | char *kwnames[] = { | |
31141 | (char *) "self",(char *) "item", NULL | |
31142 | }; | |
31143 | ||
31144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
31145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31146 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31147 | { | |
31148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31149 | (arg1)->Prepend(arg2); | |
31150 | ||
31151 | wxPyEndAllowThreads(__tstate); | |
31152 | if (PyErr_Occurred()) SWIG_fail; | |
31153 | } | |
31154 | Py_INCREF(Py_None); resultobj = Py_None; | |
31155 | return resultobj; | |
31156 | fail: | |
31157 | return NULL; | |
31158 | } | |
31159 | ||
31160 | ||
31161 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31162 | PyObject *resultobj; | |
31163 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31164 | int arg2 ; | |
31165 | int arg3 ; | |
31166 | int arg4 ; | |
31167 | int arg5 ; | |
31168 | PyObject * obj0 = 0 ; | |
31169 | char *kwnames[] = { | |
31170 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
31171 | }; | |
31172 | ||
31173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Sizer_SetDimension",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
31174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31175 | { | |
31176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31177 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
31178 | ||
31179 | wxPyEndAllowThreads(__tstate); | |
31180 | if (PyErr_Occurred()) SWIG_fail; | |
31181 | } | |
31182 | Py_INCREF(Py_None); resultobj = Py_None; | |
31183 | return resultobj; | |
31184 | fail: | |
31185 | return NULL; | |
31186 | } | |
31187 | ||
31188 | ||
31189 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31190 | PyObject *resultobj; | |
31191 | wxSizer *arg1 = (wxSizer *) 0 ; | |
a64def11 RD |
31192 | wxSize *arg2 = 0 ; |
31193 | wxSize temp2 ; | |
d14a1e28 RD |
31194 | PyObject * obj0 = 0 ; |
31195 | PyObject * obj1 = 0 ; | |
31196 | char *kwnames[] = { | |
31197 | (char *) "self",(char *) "size", NULL | |
31198 | }; | |
31199 | ||
31200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
31201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a64def11 RD |
31202 | { |
31203 | arg2 = &temp2; | |
31204 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
31205 | } | |
d14a1e28 RD |
31206 | { |
31207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a64def11 | 31208 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
31209 | |
31210 | wxPyEndAllowThreads(__tstate); | |
31211 | if (PyErr_Occurred()) SWIG_fail; | |
31212 | } | |
31213 | Py_INCREF(Py_None); resultobj = Py_None; | |
31214 | return resultobj; | |
31215 | fail: | |
31216 | return NULL; | |
31217 | } | |
31218 | ||
31219 | ||
31220 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31221 | PyObject *resultobj; | |
31222 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31223 | wxSize result; | |
31224 | PyObject * obj0 = 0 ; | |
31225 | char *kwnames[] = { | |
31226 | (char *) "self", NULL | |
31227 | }; | |
31228 | ||
31229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
31230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31231 | { | |
31232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31233 | result = (arg1)->GetSize(); | |
31234 | ||
31235 | wxPyEndAllowThreads(__tstate); | |
31236 | if (PyErr_Occurred()) SWIG_fail; | |
31237 | } | |
31238 | { | |
31239 | wxSize * resultptr; | |
31240 | resultptr = new wxSize((wxSize &) result); | |
31241 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31242 | } | |
31243 | return resultobj; | |
31244 | fail: | |
31245 | return NULL; | |
31246 | } | |
31247 | ||
31248 | ||
31249 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31250 | PyObject *resultobj; | |
31251 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31252 | wxPoint result; | |
31253 | PyObject * obj0 = 0 ; | |
31254 | char *kwnames[] = { | |
31255 | (char *) "self", NULL | |
31256 | }; | |
31257 | ||
31258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
31259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31260 | { | |
31261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31262 | result = (arg1)->GetPosition(); | |
31263 | ||
31264 | wxPyEndAllowThreads(__tstate); | |
31265 | if (PyErr_Occurred()) SWIG_fail; | |
31266 | } | |
31267 | { | |
31268 | wxPoint * resultptr; | |
31269 | resultptr = new wxPoint((wxPoint &) result); | |
31270 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
31271 | } | |
31272 | return resultobj; | |
31273 | fail: | |
31274 | return NULL; | |
31275 | } | |
31276 | ||
31277 | ||
31278 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31279 | PyObject *resultobj; | |
31280 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31281 | wxSize result; | |
31282 | PyObject * obj0 = 0 ; | |
31283 | char *kwnames[] = { | |
31284 | (char *) "self", NULL | |
31285 | }; | |
31286 | ||
31287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
31288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31289 | { | |
31290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31291 | result = (arg1)->GetMinSize(); | |
31292 | ||
31293 | wxPyEndAllowThreads(__tstate); | |
31294 | if (PyErr_Occurred()) SWIG_fail; | |
31295 | } | |
31296 | { | |
31297 | wxSize * resultptr; | |
31298 | resultptr = new wxSize((wxSize &) result); | |
31299 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31300 | } | |
31301 | return resultobj; | |
31302 | fail: | |
31303 | return NULL; | |
31304 | } | |
31305 | ||
31306 | ||
31307 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31308 | PyObject *resultobj; | |
31309 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31310 | PyObject * obj0 = 0 ; | |
31311 | char *kwnames[] = { | |
31312 | (char *) "self", NULL | |
31313 | }; | |
31314 | ||
31315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31317 | { | |
31318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31319 | (arg1)->RecalcSizes(); | |
31320 | ||
31321 | wxPyEndAllowThreads(__tstate); | |
31322 | if (PyErr_Occurred()) SWIG_fail; | |
31323 | } | |
31324 | Py_INCREF(Py_None); resultobj = Py_None; | |
31325 | return resultobj; | |
31326 | fail: | |
31327 | return NULL; | |
31328 | } | |
31329 | ||
31330 | ||
31331 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31332 | PyObject *resultobj; | |
31333 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31334 | wxSize result; | |
31335 | PyObject * obj0 = 0 ; | |
31336 | char *kwnames[] = { | |
31337 | (char *) "self", NULL | |
31338 | }; | |
31339 | ||
31340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
31341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31342 | { | |
31343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31344 | result = (arg1)->CalcMin(); | |
31345 | ||
31346 | wxPyEndAllowThreads(__tstate); | |
31347 | if (PyErr_Occurred()) SWIG_fail; | |
31348 | } | |
31349 | { | |
31350 | wxSize * resultptr; | |
31351 | resultptr = new wxSize((wxSize &) result); | |
31352 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31353 | } | |
31354 | return resultobj; | |
31355 | fail: | |
31356 | return NULL; | |
31357 | } | |
31358 | ||
31359 | ||
31360 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31361 | PyObject *resultobj; | |
31362 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31363 | PyObject * obj0 = 0 ; | |
31364 | char *kwnames[] = { | |
31365 | (char *) "self", NULL | |
31366 | }; | |
31367 | ||
31368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
31369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31370 | { | |
31371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31372 | (arg1)->Layout(); | |
31373 | ||
31374 | wxPyEndAllowThreads(__tstate); | |
31375 | if (PyErr_Occurred()) SWIG_fail; | |
31376 | } | |
31377 | Py_INCREF(Py_None); resultobj = Py_None; | |
31378 | return resultobj; | |
31379 | fail: | |
31380 | return NULL; | |
31381 | } | |
31382 | ||
31383 | ||
31384 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31385 | PyObject *resultobj; | |
31386 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31387 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31388 | wxSize result; | |
31389 | PyObject * obj0 = 0 ; | |
31390 | PyObject * obj1 = 0 ; | |
31391 | char *kwnames[] = { | |
31392 | (char *) "self",(char *) "window", NULL | |
31393 | }; | |
31394 | ||
31395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
31396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31397 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31398 | { | |
31399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31400 | result = (arg1)->Fit(arg2); | |
31401 | ||
31402 | wxPyEndAllowThreads(__tstate); | |
31403 | if (PyErr_Occurred()) SWIG_fail; | |
31404 | } | |
31405 | { | |
31406 | wxSize * resultptr; | |
31407 | resultptr = new wxSize((wxSize &) result); | |
31408 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31409 | } | |
31410 | return resultobj; | |
31411 | fail: | |
31412 | return NULL; | |
31413 | } | |
31414 | ||
31415 | ||
31416 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31417 | PyObject *resultobj; | |
31418 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31419 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31420 | PyObject * obj0 = 0 ; | |
31421 | PyObject * obj1 = 0 ; | |
31422 | char *kwnames[] = { | |
31423 | (char *) "self",(char *) "window", NULL | |
31424 | }; | |
31425 | ||
31426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
31427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31428 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31429 | { | |
31430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31431 | (arg1)->FitInside(arg2); | |
31432 | ||
31433 | wxPyEndAllowThreads(__tstate); | |
31434 | if (PyErr_Occurred()) SWIG_fail; | |
31435 | } | |
31436 | Py_INCREF(Py_None); resultobj = Py_None; | |
31437 | return resultobj; | |
31438 | fail: | |
31439 | return NULL; | |
31440 | } | |
31441 | ||
31442 | ||
31443 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31444 | PyObject *resultobj; | |
31445 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31446 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31447 | PyObject * obj0 = 0 ; | |
31448 | PyObject * obj1 = 0 ; | |
31449 | char *kwnames[] = { | |
31450 | (char *) "self",(char *) "window", NULL | |
31451 | }; | |
31452 | ||
31453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
31454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31455 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31456 | { | |
31457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31458 | (arg1)->SetSizeHints(arg2); | |
31459 | ||
31460 | wxPyEndAllowThreads(__tstate); | |
31461 | if (PyErr_Occurred()) SWIG_fail; | |
31462 | } | |
31463 | Py_INCREF(Py_None); resultobj = Py_None; | |
31464 | return resultobj; | |
31465 | fail: | |
31466 | return NULL; | |
31467 | } | |
31468 | ||
31469 | ||
31470 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31471 | PyObject *resultobj; | |
31472 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31473 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31474 | PyObject * obj0 = 0 ; | |
31475 | PyObject * obj1 = 0 ; | |
31476 | char *kwnames[] = { | |
31477 | (char *) "self",(char *) "window", NULL | |
31478 | }; | |
31479 | ||
31480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
31481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31482 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31483 | { | |
31484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31485 | (arg1)->SetVirtualSizeHints(arg2); | |
31486 | ||
31487 | wxPyEndAllowThreads(__tstate); | |
31488 | if (PyErr_Occurred()) SWIG_fail; | |
31489 | } | |
31490 | Py_INCREF(Py_None); resultobj = Py_None; | |
31491 | return resultobj; | |
31492 | fail: | |
31493 | return NULL; | |
31494 | } | |
31495 | ||
31496 | ||
31497 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31498 | PyObject *resultobj; | |
31499 | wxSizer *arg1 = (wxSizer *) 0 ; | |
423f194a | 31500 | bool arg2 = (bool) False ; |
d14a1e28 RD |
31501 | PyObject * obj0 = 0 ; |
31502 | PyObject * obj1 = 0 ; | |
31503 | char *kwnames[] = { | |
31504 | (char *) "self",(char *) "delete_windows", NULL | |
31505 | }; | |
31506 | ||
31507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
31508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31509 | if (obj1) { | |
31510 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
31511 | if (PyErr_Occurred()) SWIG_fail; | |
31512 | } | |
31513 | { | |
31514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31515 | (arg1)->Clear(arg2); | |
31516 | ||
31517 | wxPyEndAllowThreads(__tstate); | |
31518 | if (PyErr_Occurred()) SWIG_fail; | |
31519 | } | |
31520 | Py_INCREF(Py_None); resultobj = Py_None; | |
31521 | return resultobj; | |
31522 | fail: | |
31523 | return NULL; | |
31524 | } | |
31525 | ||
31526 | ||
31527 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31528 | PyObject *resultobj; | |
31529 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31530 | PyObject * obj0 = 0 ; | |
31531 | char *kwnames[] = { | |
31532 | (char *) "self", NULL | |
31533 | }; | |
31534 | ||
31535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
31536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31537 | { | |
31538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31539 | (arg1)->DeleteWindows(); | |
31540 | ||
31541 | wxPyEndAllowThreads(__tstate); | |
31542 | if (PyErr_Occurred()) SWIG_fail; | |
31543 | } | |
31544 | Py_INCREF(Py_None); resultobj = Py_None; | |
31545 | return resultobj; | |
31546 | fail: | |
31547 | return NULL; | |
31548 | } | |
31549 | ||
31550 | ||
31551 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31552 | PyObject *resultobj; | |
31553 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31554 | PyObject *result; | |
31555 | PyObject * obj0 = 0 ; | |
31556 | char *kwnames[] = { | |
31557 | (char *) "self", NULL | |
31558 | }; | |
31559 | ||
31560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
31561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31562 | { | |
31563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31564 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
31565 | ||
31566 | wxPyEndAllowThreads(__tstate); | |
31567 | if (PyErr_Occurred()) SWIG_fail; | |
31568 | } | |
31569 | resultobj = result; | |
31570 | return resultobj; | |
31571 | fail: | |
31572 | return NULL; | |
31573 | } | |
31574 | ||
31575 | ||
31576 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31577 | PyObject *resultobj; | |
31578 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31579 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 31580 | bool arg3 = (bool) True ; |
d14a1e28 RD |
31581 | PyObject * obj0 = 0 ; |
31582 | PyObject * obj1 = 0 ; | |
31583 | PyObject * obj2 = 0 ; | |
31584 | char *kwnames[] = { | |
31585 | (char *) "self",(char *) "item",(char *) "show", NULL | |
31586 | }; | |
31587 | ||
31588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31590 | arg2 = obj1; | |
31591 | if (obj2) { | |
31592 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
31593 | if (PyErr_Occurred()) SWIG_fail; | |
31594 | } | |
31595 | { | |
31596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31597 | wxSizer_Show(arg1,arg2,arg3); | |
31598 | ||
31599 | wxPyEndAllowThreads(__tstate); | |
31600 | if (PyErr_Occurred()) SWIG_fail; | |
31601 | } | |
31602 | Py_INCREF(Py_None); resultobj = Py_None; | |
31603 | return resultobj; | |
31604 | fail: | |
31605 | return NULL; | |
31606 | } | |
31607 | ||
31608 | ||
31609 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31610 | PyObject *resultobj; | |
31611 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31612 | PyObject *arg2 = (PyObject *) 0 ; | |
31613 | PyObject * obj0 = 0 ; | |
31614 | PyObject * obj1 = 0 ; | |
31615 | char *kwnames[] = { | |
31616 | (char *) "self",(char *) "item", NULL | |
31617 | }; | |
31618 | ||
31619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
31620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31621 | arg2 = obj1; | |
31622 | { | |
31623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31624 | wxSizer_Hide(arg1,arg2); | |
31625 | ||
31626 | wxPyEndAllowThreads(__tstate); | |
31627 | if (PyErr_Occurred()) SWIG_fail; | |
31628 | } | |
31629 | Py_INCREF(Py_None); resultobj = Py_None; | |
31630 | return resultobj; | |
31631 | fail: | |
31632 | return NULL; | |
31633 | } | |
31634 | ||
31635 | ||
31636 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31637 | PyObject *resultobj; | |
31638 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31639 | PyObject *arg2 = (PyObject *) 0 ; | |
31640 | bool result; | |
31641 | PyObject * obj0 = 0 ; | |
31642 | PyObject * obj1 = 0 ; | |
31643 | char *kwnames[] = { | |
31644 | (char *) "self",(char *) "item", NULL | |
31645 | }; | |
31646 | ||
31647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
31648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31649 | arg2 = obj1; | |
31650 | { | |
31651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31652 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
31653 | ||
31654 | wxPyEndAllowThreads(__tstate); | |
31655 | if (PyErr_Occurred()) SWIG_fail; | |
31656 | } | |
31657 | resultobj = PyInt_FromLong((long)result); | |
31658 | return resultobj; | |
31659 | fail: | |
31660 | return NULL; | |
31661 | } | |
31662 | ||
31663 | ||
31664 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31665 | PyObject *resultobj; | |
31666 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31667 | bool arg2 ; | |
31668 | PyObject * obj0 = 0 ; | |
31669 | PyObject * obj1 = 0 ; | |
31670 | char *kwnames[] = { | |
31671 | (char *) "self",(char *) "show", NULL | |
31672 | }; | |
31673 | ||
31674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
31675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31676 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
31677 | if (PyErr_Occurred()) SWIG_fail; | |
31678 | { | |
31679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31680 | (arg1)->ShowItems(arg2); | |
31681 | ||
31682 | wxPyEndAllowThreads(__tstate); | |
31683 | if (PyErr_Occurred()) SWIG_fail; | |
31684 | } | |
31685 | Py_INCREF(Py_None); resultobj = Py_None; | |
31686 | return resultobj; | |
31687 | fail: | |
31688 | return NULL; | |
31689 | } | |
31690 | ||
31691 | ||
31692 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
31693 | PyObject *obj; | |
31694 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31695 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
31696 | Py_INCREF(obj); | |
31697 | return Py_BuildValue((char *)""); | |
31698 | } | |
31699 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31700 | PyObject *resultobj; | |
31701 | wxPySizer *result; | |
31702 | char *kwnames[] = { | |
31703 | NULL | |
31704 | }; | |
31705 | ||
31706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
31707 | { | |
31708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31709 | result = (wxPySizer *)new wxPySizer(); | |
31710 | ||
31711 | wxPyEndAllowThreads(__tstate); | |
31712 | if (PyErr_Occurred()) SWIG_fail; | |
31713 | } | |
31714 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPySizer, 1); | |
31715 | return resultobj; | |
31716 | fail: | |
31717 | return NULL; | |
31718 | } | |
31719 | ||
31720 | ||
31721 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31722 | PyObject *resultobj; | |
31723 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
31724 | PyObject *arg2 = (PyObject *) 0 ; | |
31725 | PyObject *arg3 = (PyObject *) 0 ; | |
31726 | PyObject * obj0 = 0 ; | |
31727 | PyObject * obj1 = 0 ; | |
31728 | PyObject * obj2 = 0 ; | |
31729 | char *kwnames[] = { | |
31730 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
31731 | }; | |
31732 | ||
31733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPySizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31735 | arg2 = obj1; | |
31736 | arg3 = obj2; | |
31737 | { | |
31738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31739 | (arg1)->_setCallbackInfo(arg2,arg3); | |
31740 | ||
31741 | wxPyEndAllowThreads(__tstate); | |
31742 | if (PyErr_Occurred()) SWIG_fail; | |
31743 | } | |
31744 | Py_INCREF(Py_None); resultobj = Py_None; | |
31745 | return resultobj; | |
31746 | fail: | |
31747 | return NULL; | |
31748 | } | |
31749 | ||
31750 | ||
31751 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
31752 | PyObject *obj; | |
31753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31754 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
31755 | Py_INCREF(obj); | |
31756 | return Py_BuildValue((char *)""); | |
31757 | } | |
31758 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31759 | PyObject *resultobj; | |
31760 | int arg1 = (int) wxHORIZONTAL ; | |
31761 | wxBoxSizer *result; | |
31762 | char *kwnames[] = { | |
31763 | (char *) "orient", NULL | |
31764 | }; | |
31765 | ||
31766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_BoxSizer",kwnames,&arg1)) goto fail; | |
31767 | { | |
31768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31769 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
31770 | ||
31771 | wxPyEndAllowThreads(__tstate); | |
31772 | if (PyErr_Occurred()) SWIG_fail; | |
31773 | } | |
31774 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBoxSizer, 1); | |
31775 | return resultobj; | |
31776 | fail: | |
31777 | return NULL; | |
31778 | } | |
31779 | ||
31780 | ||
31781 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31782 | PyObject *resultobj; | |
31783 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31784 | int result; | |
31785 | PyObject * obj0 = 0 ; | |
31786 | char *kwnames[] = { | |
31787 | (char *) "self", NULL | |
31788 | }; | |
31789 | ||
31790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
31791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31792 | { | |
31793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31794 | result = (int)(arg1)->GetOrientation(); | |
31795 | ||
31796 | wxPyEndAllowThreads(__tstate); | |
31797 | if (PyErr_Occurred()) SWIG_fail; | |
31798 | } | |
31799 | resultobj = PyInt_FromLong((long)result); | |
31800 | return resultobj; | |
31801 | fail: | |
31802 | return NULL; | |
31803 | } | |
31804 | ||
31805 | ||
31806 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31807 | PyObject *resultobj; | |
31808 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31809 | int arg2 ; | |
31810 | PyObject * obj0 = 0 ; | |
31811 | char *kwnames[] = { | |
31812 | (char *) "self",(char *) "orient", NULL | |
31813 | }; | |
31814 | ||
31815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BoxSizer_SetOrientation",kwnames,&obj0,&arg2)) goto fail; | |
31816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31817 | { | |
31818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31819 | (arg1)->SetOrientation(arg2); | |
31820 | ||
31821 | wxPyEndAllowThreads(__tstate); | |
31822 | if (PyErr_Occurred()) SWIG_fail; | |
31823 | } | |
31824 | Py_INCREF(Py_None); resultobj = Py_None; | |
31825 | return resultobj; | |
31826 | fail: | |
31827 | return NULL; | |
31828 | } | |
31829 | ||
31830 | ||
31831 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31832 | PyObject *resultobj; | |
31833 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31834 | PyObject * obj0 = 0 ; | |
31835 | char *kwnames[] = { | |
31836 | (char *) "self", NULL | |
31837 | }; | |
31838 | ||
31839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31841 | { | |
31842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31843 | (arg1)->RecalcSizes(); | |
31844 | ||
31845 | wxPyEndAllowThreads(__tstate); | |
31846 | if (PyErr_Occurred()) SWIG_fail; | |
31847 | } | |
31848 | Py_INCREF(Py_None); resultobj = Py_None; | |
31849 | return resultobj; | |
31850 | fail: | |
31851 | return NULL; | |
31852 | } | |
31853 | ||
31854 | ||
31855 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31856 | PyObject *resultobj; | |
31857 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31858 | wxSize result; | |
31859 | PyObject * obj0 = 0 ; | |
31860 | char *kwnames[] = { | |
31861 | (char *) "self", NULL | |
31862 | }; | |
31863 | ||
31864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
31865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31866 | { | |
31867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31868 | result = (arg1)->CalcMin(); | |
31869 | ||
31870 | wxPyEndAllowThreads(__tstate); | |
31871 | if (PyErr_Occurred()) SWIG_fail; | |
31872 | } | |
31873 | { | |
31874 | wxSize * resultptr; | |
31875 | resultptr = new wxSize((wxSize &) result); | |
31876 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31877 | } | |
31878 | return resultobj; | |
31879 | fail: | |
31880 | return NULL; | |
31881 | } | |
31882 | ||
31883 | ||
31884 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
31885 | PyObject *obj; | |
31886 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31887 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
31888 | Py_INCREF(obj); | |
31889 | return Py_BuildValue((char *)""); | |
31890 | } | |
31891 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31892 | PyObject *resultobj; | |
31893 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
31894 | int arg2 = (int) wxHORIZONTAL ; | |
31895 | wxStaticBoxSizer *result; | |
31896 | PyObject * obj0 = 0 ; | |
31897 | char *kwnames[] = { | |
31898 | (char *) "box",(char *) "orient", NULL | |
31899 | }; | |
31900 | ||
31901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_StaticBoxSizer",kwnames,&obj0,&arg2)) goto fail; | |
31902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31903 | { | |
31904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31905 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
31906 | ||
31907 | wxPyEndAllowThreads(__tstate); | |
31908 | if (PyErr_Occurred()) SWIG_fail; | |
31909 | } | |
31910 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBoxSizer, 1); | |
31911 | return resultobj; | |
31912 | fail: | |
31913 | return NULL; | |
31914 | } | |
31915 | ||
31916 | ||
31917 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31918 | PyObject *resultobj; | |
31919 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
31920 | wxStaticBox *result; | |
31921 | PyObject * obj0 = 0 ; | |
31922 | char *kwnames[] = { | |
31923 | (char *) "self", NULL | |
31924 | }; | |
31925 | ||
31926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
31927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31928 | { | |
31929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31930 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
31931 | ||
31932 | wxPyEndAllowThreads(__tstate); | |
31933 | if (PyErr_Occurred()) SWIG_fail; | |
31934 | } | |
31935 | { | |
31936 | resultobj = wxPyMake_wxObject(result); | |
31937 | } | |
31938 | return resultobj; | |
31939 | fail: | |
31940 | return NULL; | |
31941 | } | |
31942 | ||
31943 | ||
31944 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31945 | PyObject *resultobj; | |
31946 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
31947 | PyObject * obj0 = 0 ; | |
31948 | char *kwnames[] = { | |
31949 | (char *) "self", NULL | |
31950 | }; | |
31951 | ||
31952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31954 | { | |
31955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31956 | (arg1)->RecalcSizes(); | |
31957 | ||
31958 | wxPyEndAllowThreads(__tstate); | |
31959 | if (PyErr_Occurred()) SWIG_fail; | |
31960 | } | |
31961 | Py_INCREF(Py_None); resultobj = Py_None; | |
31962 | return resultobj; | |
31963 | fail: | |
31964 | return NULL; | |
31965 | } | |
31966 | ||
31967 | ||
31968 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31969 | PyObject *resultobj; | |
31970 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
31971 | wxSize result; | |
31972 | PyObject * obj0 = 0 ; | |
31973 | char *kwnames[] = { | |
31974 | (char *) "self", NULL | |
31975 | }; | |
31976 | ||
31977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
31978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31979 | { | |
31980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31981 | result = (arg1)->CalcMin(); | |
31982 | ||
31983 | wxPyEndAllowThreads(__tstate); | |
31984 | if (PyErr_Occurred()) SWIG_fail; | |
31985 | } | |
31986 | { | |
31987 | wxSize * resultptr; | |
31988 | resultptr = new wxSize((wxSize &) result); | |
31989 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31990 | } | |
31991 | return resultobj; | |
31992 | fail: | |
31993 | return NULL; | |
31994 | } | |
31995 | ||
31996 | ||
31997 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
31998 | PyObject *obj; | |
31999 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32000 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
32001 | Py_INCREF(obj); | |
32002 | return Py_BuildValue((char *)""); | |
32003 | } | |
32004 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32005 | PyObject *resultobj; | |
32006 | int arg1 = (int) 1 ; | |
32007 | int arg2 = (int) 0 ; | |
32008 | int arg3 = (int) 0 ; | |
32009 | int arg4 = (int) 0 ; | |
32010 | wxGridSizer *result; | |
32011 | char *kwnames[] = { | |
32012 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
32013 | }; | |
32014 | ||
32015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_GridSizer",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
32016 | { | |
32017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32018 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
32019 | ||
32020 | wxPyEndAllowThreads(__tstate); | |
32021 | if (PyErr_Occurred()) SWIG_fail; | |
32022 | } | |
32023 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizer, 1); | |
32024 | return resultobj; | |
32025 | fail: | |
32026 | return NULL; | |
32027 | } | |
32028 | ||
32029 | ||
32030 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32031 | PyObject *resultobj; | |
32032 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32033 | PyObject * obj0 = 0 ; | |
32034 | char *kwnames[] = { | |
32035 | (char *) "self", NULL | |
32036 | }; | |
32037 | ||
32038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
32039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32040 | { | |
32041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32042 | (arg1)->RecalcSizes(); | |
32043 | ||
32044 | wxPyEndAllowThreads(__tstate); | |
32045 | if (PyErr_Occurred()) SWIG_fail; | |
32046 | } | |
32047 | Py_INCREF(Py_None); resultobj = Py_None; | |
32048 | return resultobj; | |
32049 | fail: | |
32050 | return NULL; | |
32051 | } | |
32052 | ||
32053 | ||
32054 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32055 | PyObject *resultobj; | |
32056 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32057 | wxSize result; | |
32058 | PyObject * obj0 = 0 ; | |
32059 | char *kwnames[] = { | |
32060 | (char *) "self", NULL | |
32061 | }; | |
32062 | ||
32063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
32064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32065 | { | |
32066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32067 | result = (arg1)->CalcMin(); | |
32068 | ||
32069 | wxPyEndAllowThreads(__tstate); | |
32070 | if (PyErr_Occurred()) SWIG_fail; | |
32071 | } | |
32072 | { | |
32073 | wxSize * resultptr; | |
32074 | resultptr = new wxSize((wxSize &) result); | |
32075 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
32076 | } | |
32077 | return resultobj; | |
32078 | fail: | |
32079 | return NULL; | |
32080 | } | |
32081 | ||
32082 | ||
32083 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32084 | PyObject *resultobj; | |
32085 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32086 | int arg2 ; | |
32087 | PyObject * obj0 = 0 ; | |
32088 | char *kwnames[] = { | |
32089 | (char *) "self",(char *) "cols", NULL | |
32090 | }; | |
32091 | ||
32092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetCols",kwnames,&obj0,&arg2)) goto fail; | |
32093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32094 | { | |
32095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32096 | (arg1)->SetCols(arg2); | |
32097 | ||
32098 | wxPyEndAllowThreads(__tstate); | |
32099 | if (PyErr_Occurred()) SWIG_fail; | |
32100 | } | |
32101 | Py_INCREF(Py_None); resultobj = Py_None; | |
32102 | return resultobj; | |
32103 | fail: | |
32104 | return NULL; | |
32105 | } | |
32106 | ||
32107 | ||
32108 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32109 | PyObject *resultobj; | |
32110 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32111 | int arg2 ; | |
32112 | PyObject * obj0 = 0 ; | |
32113 | char *kwnames[] = { | |
32114 | (char *) "self",(char *) "rows", NULL | |
32115 | }; | |
32116 | ||
32117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetRows",kwnames,&obj0,&arg2)) goto fail; | |
32118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32119 | { | |
32120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32121 | (arg1)->SetRows(arg2); | |
32122 | ||
32123 | wxPyEndAllowThreads(__tstate); | |
32124 | if (PyErr_Occurred()) SWIG_fail; | |
32125 | } | |
32126 | Py_INCREF(Py_None); resultobj = Py_None; | |
32127 | return resultobj; | |
32128 | fail: | |
32129 | return NULL; | |
32130 | } | |
32131 | ||
32132 | ||
32133 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32134 | PyObject *resultobj; | |
32135 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32136 | int arg2 ; | |
32137 | PyObject * obj0 = 0 ; | |
32138 | char *kwnames[] = { | |
32139 | (char *) "self",(char *) "gap", NULL | |
32140 | }; | |
32141 | ||
32142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetVGap",kwnames,&obj0,&arg2)) goto fail; | |
32143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32144 | { | |
32145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32146 | (arg1)->SetVGap(arg2); | |
32147 | ||
32148 | wxPyEndAllowThreads(__tstate); | |
32149 | if (PyErr_Occurred()) SWIG_fail; | |
32150 | } | |
32151 | Py_INCREF(Py_None); resultobj = Py_None; | |
32152 | return resultobj; | |
32153 | fail: | |
32154 | return NULL; | |
32155 | } | |
32156 | ||
32157 | ||
32158 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32159 | PyObject *resultobj; | |
32160 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32161 | int arg2 ; | |
32162 | PyObject * obj0 = 0 ; | |
32163 | char *kwnames[] = { | |
32164 | (char *) "self",(char *) "gap", NULL | |
32165 | }; | |
32166 | ||
32167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetHGap",kwnames,&obj0,&arg2)) goto fail; | |
32168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32169 | { | |
32170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32171 | (arg1)->SetHGap(arg2); | |
32172 | ||
32173 | wxPyEndAllowThreads(__tstate); | |
32174 | if (PyErr_Occurred()) SWIG_fail; | |
32175 | } | |
32176 | Py_INCREF(Py_None); resultobj = Py_None; | |
32177 | return resultobj; | |
32178 | fail: | |
32179 | return NULL; | |
32180 | } | |
32181 | ||
32182 | ||
32183 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32184 | PyObject *resultobj; | |
32185 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32186 | int result; | |
32187 | PyObject * obj0 = 0 ; | |
32188 | char *kwnames[] = { | |
32189 | (char *) "self", NULL | |
32190 | }; | |
32191 | ||
32192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
32193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32194 | { | |
32195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32196 | result = (int)(arg1)->GetCols(); | |
32197 | ||
32198 | wxPyEndAllowThreads(__tstate); | |
32199 | if (PyErr_Occurred()) SWIG_fail; | |
32200 | } | |
32201 | resultobj = PyInt_FromLong((long)result); | |
32202 | return resultobj; | |
32203 | fail: | |
32204 | return NULL; | |
32205 | } | |
32206 | ||
32207 | ||
32208 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32209 | PyObject *resultobj; | |
32210 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32211 | int result; | |
32212 | PyObject * obj0 = 0 ; | |
32213 | char *kwnames[] = { | |
32214 | (char *) "self", NULL | |
32215 | }; | |
32216 | ||
32217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
32218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32219 | { | |
32220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32221 | result = (int)(arg1)->GetRows(); | |
32222 | ||
32223 | wxPyEndAllowThreads(__tstate); | |
32224 | if (PyErr_Occurred()) SWIG_fail; | |
32225 | } | |
32226 | resultobj = PyInt_FromLong((long)result); | |
32227 | return resultobj; | |
32228 | fail: | |
32229 | return NULL; | |
32230 | } | |
32231 | ||
32232 | ||
32233 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32234 | PyObject *resultobj; | |
32235 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32236 | int result; | |
32237 | PyObject * obj0 = 0 ; | |
32238 | char *kwnames[] = { | |
32239 | (char *) "self", NULL | |
32240 | }; | |
32241 | ||
32242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
32243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32244 | { | |
32245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32246 | result = (int)(arg1)->GetVGap(); | |
32247 | ||
32248 | wxPyEndAllowThreads(__tstate); | |
32249 | if (PyErr_Occurred()) SWIG_fail; | |
32250 | } | |
32251 | resultobj = PyInt_FromLong((long)result); | |
32252 | return resultobj; | |
32253 | fail: | |
32254 | return NULL; | |
32255 | } | |
32256 | ||
32257 | ||
32258 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32259 | PyObject *resultobj; | |
32260 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
32261 | int result; | |
32262 | PyObject * obj0 = 0 ; | |
32263 | char *kwnames[] = { | |
32264 | (char *) "self", NULL | |
32265 | }; | |
32266 | ||
32267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
32268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32269 | { | |
32270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32271 | result = (int)(arg1)->GetHGap(); | |
32272 | ||
32273 | wxPyEndAllowThreads(__tstate); | |
32274 | if (PyErr_Occurred()) SWIG_fail; | |
32275 | } | |
32276 | resultobj = PyInt_FromLong((long)result); | |
32277 | return resultobj; | |
32278 | fail: | |
32279 | return NULL; | |
32280 | } | |
32281 | ||
32282 | ||
32283 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
32284 | PyObject *obj; | |
32285 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32286 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
32287 | Py_INCREF(obj); | |
32288 | return Py_BuildValue((char *)""); | |
32289 | } | |
32290 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32291 | PyObject *resultobj; | |
32292 | int arg1 = (int) 1 ; | |
32293 | int arg2 = (int) 0 ; | |
32294 | int arg3 = (int) 0 ; | |
32295 | int arg4 = (int) 0 ; | |
32296 | wxFlexGridSizer *result; | |
32297 | char *kwnames[] = { | |
32298 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
32299 | }; | |
32300 | ||
32301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_FlexGridSizer",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
32302 | { | |
32303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32304 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
32305 | ||
32306 | wxPyEndAllowThreads(__tstate); | |
32307 | if (PyErr_Occurred()) SWIG_fail; | |
32308 | } | |
32309 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFlexGridSizer, 1); | |
32310 | return resultobj; | |
32311 | fail: | |
32312 | return NULL; | |
32313 | } | |
32314 | ||
32315 | ||
32316 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32317 | PyObject *resultobj; | |
32318 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32319 | PyObject * obj0 = 0 ; | |
32320 | char *kwnames[] = { | |
32321 | (char *) "self", NULL | |
32322 | }; | |
32323 | ||
32324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
32325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32326 | { | |
32327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32328 | (arg1)->RecalcSizes(); | |
32329 | ||
32330 | wxPyEndAllowThreads(__tstate); | |
32331 | if (PyErr_Occurred()) SWIG_fail; | |
32332 | } | |
32333 | Py_INCREF(Py_None); resultobj = Py_None; | |
32334 | return resultobj; | |
32335 | fail: | |
32336 | return NULL; | |
32337 | } | |
32338 | ||
32339 | ||
32340 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32341 | PyObject *resultobj; | |
32342 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32343 | wxSize result; | |
32344 | PyObject * obj0 = 0 ; | |
32345 | char *kwnames[] = { | |
32346 | (char *) "self", NULL | |
32347 | }; | |
32348 | ||
32349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
32350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32351 | { | |
32352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32353 | result = (arg1)->CalcMin(); | |
32354 | ||
32355 | wxPyEndAllowThreads(__tstate); | |
32356 | if (PyErr_Occurred()) SWIG_fail; | |
32357 | } | |
32358 | { | |
32359 | wxSize * resultptr; | |
32360 | resultptr = new wxSize((wxSize &) result); | |
32361 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
32362 | } | |
32363 | return resultobj; | |
32364 | fail: | |
32365 | return NULL; | |
32366 | } | |
32367 | ||
32368 | ||
32369 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32370 | PyObject *resultobj; | |
32371 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32372 | size_t arg2 ; | |
32373 | int arg3 = (int) 0 ; | |
32374 | PyObject * obj0 = 0 ; | |
32375 | PyObject * obj1 = 0 ; | |
32376 | char *kwnames[] = { | |
32377 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
32378 | }; | |
32379 | ||
32380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
32381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32382 | arg2 = (size_t) PyInt_AsLong(obj1); | |
32383 | if (PyErr_Occurred()) SWIG_fail; | |
32384 | { | |
32385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32386 | (arg1)->AddGrowableRow(arg2,arg3); | |
32387 | ||
32388 | wxPyEndAllowThreads(__tstate); | |
32389 | if (PyErr_Occurred()) SWIG_fail; | |
32390 | } | |
32391 | Py_INCREF(Py_None); resultobj = Py_None; | |
32392 | return resultobj; | |
32393 | fail: | |
32394 | return NULL; | |
32395 | } | |
32396 | ||
32397 | ||
32398 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32399 | PyObject *resultobj; | |
32400 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32401 | size_t arg2 ; | |
32402 | PyObject * obj0 = 0 ; | |
32403 | PyObject * obj1 = 0 ; | |
32404 | char *kwnames[] = { | |
32405 | (char *) "self",(char *) "idx", NULL | |
32406 | }; | |
32407 | ||
32408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
32409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32410 | arg2 = (size_t) PyInt_AsLong(obj1); | |
32411 | if (PyErr_Occurred()) SWIG_fail; | |
32412 | { | |
32413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32414 | (arg1)->RemoveGrowableRow(arg2); | |
32415 | ||
32416 | wxPyEndAllowThreads(__tstate); | |
32417 | if (PyErr_Occurred()) SWIG_fail; | |
32418 | } | |
32419 | Py_INCREF(Py_None); resultobj = Py_None; | |
32420 | return resultobj; | |
32421 | fail: | |
32422 | return NULL; | |
32423 | } | |
32424 | ||
32425 | ||
32426 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32427 | PyObject *resultobj; | |
32428 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32429 | size_t arg2 ; | |
32430 | int arg3 = (int) 0 ; | |
32431 | PyObject * obj0 = 0 ; | |
32432 | PyObject * obj1 = 0 ; | |
32433 | char *kwnames[] = { | |
32434 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
32435 | }; | |
32436 | ||
32437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
32438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32439 | arg2 = (size_t) PyInt_AsLong(obj1); | |
32440 | if (PyErr_Occurred()) SWIG_fail; | |
32441 | { | |
32442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32443 | (arg1)->AddGrowableCol(arg2,arg3); | |
32444 | ||
32445 | wxPyEndAllowThreads(__tstate); | |
32446 | if (PyErr_Occurred()) SWIG_fail; | |
32447 | } | |
32448 | Py_INCREF(Py_None); resultobj = Py_None; | |
32449 | return resultobj; | |
32450 | fail: | |
32451 | return NULL; | |
32452 | } | |
32453 | ||
32454 | ||
32455 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32456 | PyObject *resultobj; | |
32457 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32458 | size_t arg2 ; | |
32459 | PyObject * obj0 = 0 ; | |
32460 | PyObject * obj1 = 0 ; | |
32461 | char *kwnames[] = { | |
32462 | (char *) "self",(char *) "idx", NULL | |
32463 | }; | |
32464 | ||
32465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
32466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32467 | arg2 = (size_t) PyInt_AsLong(obj1); | |
32468 | if (PyErr_Occurred()) SWIG_fail; | |
32469 | { | |
32470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32471 | (arg1)->RemoveGrowableCol(arg2); | |
32472 | ||
32473 | wxPyEndAllowThreads(__tstate); | |
32474 | if (PyErr_Occurred()) SWIG_fail; | |
32475 | } | |
32476 | Py_INCREF(Py_None); resultobj = Py_None; | |
32477 | return resultobj; | |
32478 | fail: | |
32479 | return NULL; | |
32480 | } | |
32481 | ||
32482 | ||
32483 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32484 | PyObject *resultobj; | |
32485 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32486 | int arg2 ; | |
32487 | PyObject * obj0 = 0 ; | |
32488 | char *kwnames[] = { | |
32489 | (char *) "self",(char *) "direction", NULL | |
32490 | }; | |
32491 | ||
32492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&arg2)) goto fail; | |
32493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32494 | { | |
32495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32496 | (arg1)->SetFlexibleDirection(arg2); | |
32497 | ||
32498 | wxPyEndAllowThreads(__tstate); | |
32499 | if (PyErr_Occurred()) SWIG_fail; | |
32500 | } | |
32501 | Py_INCREF(Py_None); resultobj = Py_None; | |
32502 | return resultobj; | |
32503 | fail: | |
32504 | return NULL; | |
32505 | } | |
32506 | ||
32507 | ||
32508 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32509 | PyObject *resultobj; | |
32510 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32511 | int result; | |
32512 | PyObject * obj0 = 0 ; | |
32513 | char *kwnames[] = { | |
32514 | (char *) "self", NULL | |
32515 | }; | |
32516 | ||
32517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
32518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32519 | { | |
32520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32521 | result = (int)(arg1)->GetFlexibleDirection(); | |
32522 | ||
32523 | wxPyEndAllowThreads(__tstate); | |
32524 | if (PyErr_Occurred()) SWIG_fail; | |
32525 | } | |
32526 | resultobj = PyInt_FromLong((long)result); | |
32527 | return resultobj; | |
32528 | fail: | |
32529 | return NULL; | |
32530 | } | |
32531 | ||
32532 | ||
32533 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32534 | PyObject *resultobj; | |
32535 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32536 | int arg2 ; | |
32537 | PyObject * obj0 = 0 ; | |
32538 | char *kwnames[] = { | |
32539 | (char *) "self",(char *) "mode", NULL | |
32540 | }; | |
32541 | ||
32542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&arg2)) goto fail; | |
32543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32544 | { | |
32545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32546 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
32547 | ||
32548 | wxPyEndAllowThreads(__tstate); | |
32549 | if (PyErr_Occurred()) SWIG_fail; | |
32550 | } | |
32551 | Py_INCREF(Py_None); resultobj = Py_None; | |
32552 | return resultobj; | |
32553 | fail: | |
32554 | return NULL; | |
32555 | } | |
32556 | ||
32557 | ||
32558 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32559 | PyObject *resultobj; | |
32560 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32561 | int result; | |
32562 | PyObject * obj0 = 0 ; | |
32563 | char *kwnames[] = { | |
32564 | (char *) "self", NULL | |
32565 | }; | |
32566 | ||
32567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
32568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32569 | { | |
32570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32571 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
32572 | ||
32573 | wxPyEndAllowThreads(__tstate); | |
32574 | if (PyErr_Occurred()) SWIG_fail; | |
32575 | } | |
32576 | resultobj = PyInt_FromLong((long)result); | |
32577 | return resultobj; | |
32578 | fail: | |
32579 | return NULL; | |
32580 | } | |
32581 | ||
32582 | ||
423f194a RD |
32583 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { |
32584 | PyObject *resultobj; | |
32585 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32586 | wxArrayInt *result; | |
32587 | PyObject * obj0 = 0 ; | |
32588 | char *kwnames[] = { | |
32589 | (char *) "self", NULL | |
32590 | }; | |
32591 | ||
32592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
32593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32594 | { | |
32595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32596 | { | |
32597 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
32598 | result = (wxArrayInt *) &_result_ref; | |
32599 | } | |
32600 | ||
32601 | wxPyEndAllowThreads(__tstate); | |
32602 | if (PyErr_Occurred()) SWIG_fail; | |
32603 | } | |
32604 | { | |
32605 | resultobj = PyList_New(0); | |
32606 | size_t idx; | |
32607 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
32608 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
32609 | PyList_Append(resultobj, val); | |
32610 | Py_DECREF(val); | |
32611 | } | |
32612 | } | |
32613 | return resultobj; | |
32614 | fail: | |
32615 | return NULL; | |
32616 | } | |
32617 | ||
32618 | ||
32619 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32620 | PyObject *resultobj; | |
32621 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32622 | wxArrayInt *result; | |
32623 | PyObject * obj0 = 0 ; | |
32624 | char *kwnames[] = { | |
32625 | (char *) "self", NULL | |
32626 | }; | |
32627 | ||
32628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
32629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32630 | { | |
32631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32632 | { | |
32633 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
32634 | result = (wxArrayInt *) &_result_ref; | |
32635 | } | |
32636 | ||
32637 | wxPyEndAllowThreads(__tstate); | |
32638 | if (PyErr_Occurred()) SWIG_fail; | |
32639 | } | |
32640 | { | |
32641 | resultobj = PyList_New(0); | |
32642 | size_t idx; | |
32643 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
32644 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
32645 | PyList_Append(resultobj, val); | |
32646 | Py_DECREF(val); | |
32647 | } | |
32648 | } | |
32649 | return resultobj; | |
32650 | fail: | |
32651 | return NULL; | |
32652 | } | |
32653 | ||
32654 | ||
d14a1e28 RD |
32655 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { |
32656 | PyObject *obj; | |
32657 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32658 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
32659 | Py_INCREF(obj); | |
32660 | return Py_BuildValue((char *)""); | |
32661 | } | |
32662 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32663 | PyObject *resultobj; | |
32664 | int arg1 = (int) 0 ; | |
32665 | int arg2 = (int) 0 ; | |
32666 | wxGBPosition *result; | |
32667 | char *kwnames[] = { | |
32668 | (char *) "row",(char *) "col", NULL | |
32669 | }; | |
32670 | ||
32671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GBPosition",kwnames,&arg1,&arg2)) goto fail; | |
32672 | { | |
32673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32674 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
32675 | ||
32676 | wxPyEndAllowThreads(__tstate); | |
32677 | if (PyErr_Occurred()) SWIG_fail; | |
32678 | } | |
32679 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBPosition, 1); | |
32680 | return resultobj; | |
32681 | fail: | |
32682 | return NULL; | |
32683 | } | |
32684 | ||
32685 | ||
32686 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32687 | PyObject *resultobj; | |
32688 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32689 | int result; | |
32690 | PyObject * obj0 = 0 ; | |
32691 | char *kwnames[] = { | |
32692 | (char *) "self", NULL | |
32693 | }; | |
32694 | ||
32695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
32696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32697 | { | |
32698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32699 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
32700 | ||
32701 | wxPyEndAllowThreads(__tstate); | |
32702 | if (PyErr_Occurred()) SWIG_fail; | |
32703 | } | |
32704 | resultobj = PyInt_FromLong((long)result); | |
32705 | return resultobj; | |
32706 | fail: | |
32707 | return NULL; | |
32708 | } | |
32709 | ||
32710 | ||
32711 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32712 | PyObject *resultobj; | |
32713 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32714 | int result; | |
32715 | PyObject * obj0 = 0 ; | |
32716 | char *kwnames[] = { | |
32717 | (char *) "self", NULL | |
32718 | }; | |
32719 | ||
32720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
32721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32722 | { | |
32723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32724 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
32725 | ||
32726 | wxPyEndAllowThreads(__tstate); | |
32727 | if (PyErr_Occurred()) SWIG_fail; | |
32728 | } | |
32729 | resultobj = PyInt_FromLong((long)result); | |
32730 | return resultobj; | |
32731 | fail: | |
32732 | return NULL; | |
32733 | } | |
32734 | ||
32735 | ||
32736 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32737 | PyObject *resultobj; | |
32738 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32739 | int arg2 ; | |
32740 | PyObject * obj0 = 0 ; | |
32741 | char *kwnames[] = { | |
32742 | (char *) "self",(char *) "row", NULL | |
32743 | }; | |
32744 | ||
32745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBPosition_SetRow",kwnames,&obj0,&arg2)) goto fail; | |
32746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32747 | { | |
32748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32749 | (arg1)->SetRow(arg2); | |
32750 | ||
32751 | wxPyEndAllowThreads(__tstate); | |
32752 | if (PyErr_Occurred()) SWIG_fail; | |
32753 | } | |
32754 | Py_INCREF(Py_None); resultobj = Py_None; | |
32755 | return resultobj; | |
32756 | fail: | |
32757 | return NULL; | |
32758 | } | |
32759 | ||
32760 | ||
32761 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32762 | PyObject *resultobj; | |
32763 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32764 | int arg2 ; | |
32765 | PyObject * obj0 = 0 ; | |
32766 | char *kwnames[] = { | |
32767 | (char *) "self",(char *) "col", NULL | |
32768 | }; | |
32769 | ||
32770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBPosition_SetCol",kwnames,&obj0,&arg2)) goto fail; | |
32771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32772 | { | |
32773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32774 | (arg1)->SetCol(arg2); | |
32775 | ||
32776 | wxPyEndAllowThreads(__tstate); | |
32777 | if (PyErr_Occurred()) SWIG_fail; | |
32778 | } | |
32779 | Py_INCREF(Py_None); resultobj = Py_None; | |
32780 | return resultobj; | |
32781 | fail: | |
32782 | return NULL; | |
32783 | } | |
32784 | ||
32785 | ||
32786 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32787 | PyObject *resultobj; | |
32788 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32789 | wxGBPosition *arg2 = 0 ; | |
32790 | bool result; | |
32791 | wxGBPosition temp2 ; | |
32792 | PyObject * obj0 = 0 ; | |
32793 | PyObject * obj1 = 0 ; | |
32794 | char *kwnames[] = { | |
32795 | (char *) "self",(char *) "p", NULL | |
32796 | }; | |
32797 | ||
32798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
32799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32800 | { | |
32801 | arg2 = &temp2; | |
32802 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32803 | } | |
32804 | { | |
32805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32806 | result = (bool)((wxGBPosition const *)arg1)->operator ==((wxGBPosition const &)*arg2); | |
32807 | ||
32808 | wxPyEndAllowThreads(__tstate); | |
32809 | if (PyErr_Occurred()) SWIG_fail; | |
32810 | } | |
32811 | resultobj = PyInt_FromLong((long)result); | |
32812 | return resultobj; | |
32813 | fail: | |
32814 | return NULL; | |
32815 | } | |
32816 | ||
32817 | ||
32818 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32819 | PyObject *resultobj; | |
32820 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32821 | wxGBPosition *arg2 = 0 ; | |
32822 | bool result; | |
32823 | wxGBPosition temp2 ; | |
32824 | PyObject * obj0 = 0 ; | |
32825 | PyObject * obj1 = 0 ; | |
32826 | char *kwnames[] = { | |
32827 | (char *) "self",(char *) "p", NULL | |
32828 | }; | |
32829 | ||
32830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
32831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32832 | { | |
32833 | arg2 = &temp2; | |
32834 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32835 | } | |
32836 | { | |
32837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32838 | result = (bool)((wxGBPosition const *)arg1)->operator !=((wxGBPosition const &)*arg2); | |
32839 | ||
32840 | wxPyEndAllowThreads(__tstate); | |
32841 | if (PyErr_Occurred()) SWIG_fail; | |
32842 | } | |
32843 | resultobj = PyInt_FromLong((long)result); | |
32844 | return resultobj; | |
32845 | fail: | |
32846 | return NULL; | |
32847 | } | |
32848 | ||
32849 | ||
423f194a RD |
32850 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
32851 | PyObject *resultobj; | |
32852 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32853 | int arg2 = (int) 0 ; | |
32854 | int arg3 = (int) 0 ; | |
32855 | PyObject * obj0 = 0 ; | |
32856 | char *kwnames[] = { | |
32857 | (char *) "self",(char *) "row",(char *) "col", NULL | |
32858 | }; | |
32859 | ||
32860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:GBPosition_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
32861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32862 | { | |
32863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32864 | wxGBPosition_Set(arg1,arg2,arg3); | |
32865 | ||
32866 | wxPyEndAllowThreads(__tstate); | |
32867 | if (PyErr_Occurred()) SWIG_fail; | |
32868 | } | |
32869 | Py_INCREF(Py_None); resultobj = Py_None; | |
32870 | return resultobj; | |
32871 | fail: | |
32872 | return NULL; | |
32873 | } | |
32874 | ||
32875 | ||
32876 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
32877 | PyObject *resultobj; |
32878 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32879 | PyObject *result; | |
32880 | PyObject * obj0 = 0 ; | |
32881 | char *kwnames[] = { | |
32882 | (char *) "self", NULL | |
32883 | }; | |
32884 | ||
423f194a | 32885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
32886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
32887 | { | |
32888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 32889 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
32890 | |
32891 | wxPyEndAllowThreads(__tstate); | |
32892 | if (PyErr_Occurred()) SWIG_fail; | |
32893 | } | |
32894 | resultobj = result; | |
32895 | return resultobj; | |
32896 | fail: | |
32897 | return NULL; | |
32898 | } | |
32899 | ||
32900 | ||
32901 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
32902 | PyObject *obj; | |
32903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32904 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
32905 | Py_INCREF(obj); | |
32906 | return Py_BuildValue((char *)""); | |
32907 | } | |
32908 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32909 | PyObject *resultobj; | |
32910 | int arg1 = (int) 1 ; | |
32911 | int arg2 = (int) 1 ; | |
32912 | wxGBSpan *result; | |
32913 | char *kwnames[] = { | |
32914 | (char *) "rowspan",(char *) "colspan", NULL | |
32915 | }; | |
32916 | ||
32917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GBSpan",kwnames,&arg1,&arg2)) goto fail; | |
32918 | { | |
32919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32920 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
32921 | ||
32922 | wxPyEndAllowThreads(__tstate); | |
32923 | if (PyErr_Occurred()) SWIG_fail; | |
32924 | } | |
32925 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSpan, 1); | |
32926 | return resultobj; | |
32927 | fail: | |
32928 | return NULL; | |
32929 | } | |
32930 | ||
32931 | ||
32932 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32933 | PyObject *resultobj; | |
32934 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32935 | int result; | |
32936 | PyObject * obj0 = 0 ; | |
32937 | char *kwnames[] = { | |
32938 | (char *) "self", NULL | |
32939 | }; | |
32940 | ||
32941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
32942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32943 | { | |
32944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32945 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
32946 | ||
32947 | wxPyEndAllowThreads(__tstate); | |
32948 | if (PyErr_Occurred()) SWIG_fail; | |
32949 | } | |
32950 | resultobj = PyInt_FromLong((long)result); | |
32951 | return resultobj; | |
32952 | fail: | |
32953 | return NULL; | |
32954 | } | |
32955 | ||
32956 | ||
32957 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32958 | PyObject *resultobj; | |
32959 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32960 | int result; | |
32961 | PyObject * obj0 = 0 ; | |
32962 | char *kwnames[] = { | |
32963 | (char *) "self", NULL | |
32964 | }; | |
32965 | ||
32966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
32967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32968 | { | |
32969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32970 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
32971 | ||
32972 | wxPyEndAllowThreads(__tstate); | |
32973 | if (PyErr_Occurred()) SWIG_fail; | |
32974 | } | |
32975 | resultobj = PyInt_FromLong((long)result); | |
32976 | return resultobj; | |
32977 | fail: | |
32978 | return NULL; | |
32979 | } | |
32980 | ||
32981 | ||
32982 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32983 | PyObject *resultobj; | |
32984 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32985 | int arg2 ; | |
32986 | PyObject * obj0 = 0 ; | |
32987 | char *kwnames[] = { | |
32988 | (char *) "self",(char *) "rowspan", NULL | |
32989 | }; | |
32990 | ||
32991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBSpan_SetRowspan",kwnames,&obj0,&arg2)) goto fail; | |
32992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32993 | { | |
32994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32995 | (arg1)->SetRowspan(arg2); | |
32996 | ||
32997 | wxPyEndAllowThreads(__tstate); | |
32998 | if (PyErr_Occurred()) SWIG_fail; | |
32999 | } | |
33000 | Py_INCREF(Py_None); resultobj = Py_None; | |
33001 | return resultobj; | |
33002 | fail: | |
33003 | return NULL; | |
33004 | } | |
33005 | ||
33006 | ||
33007 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33008 | PyObject *resultobj; | |
33009 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
33010 | int arg2 ; | |
33011 | PyObject * obj0 = 0 ; | |
33012 | char *kwnames[] = { | |
33013 | (char *) "self",(char *) "colspan", NULL | |
33014 | }; | |
33015 | ||
33016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBSpan_SetColspan",kwnames,&obj0,&arg2)) goto fail; | |
33017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33018 | { | |
33019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33020 | (arg1)->SetColspan(arg2); | |
33021 | ||
33022 | wxPyEndAllowThreads(__tstate); | |
33023 | if (PyErr_Occurred()) SWIG_fail; | |
33024 | } | |
33025 | Py_INCREF(Py_None); resultobj = Py_None; | |
33026 | return resultobj; | |
33027 | fail: | |
33028 | return NULL; | |
33029 | } | |
33030 | ||
33031 | ||
33032 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33033 | PyObject *resultobj; | |
33034 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
33035 | wxGBSpan *arg2 = 0 ; | |
33036 | bool result; | |
33037 | wxGBSpan temp2 ; | |
33038 | PyObject * obj0 = 0 ; | |
33039 | PyObject * obj1 = 0 ; | |
33040 | char *kwnames[] = { | |
33041 | (char *) "self",(char *) "o", NULL | |
33042 | }; | |
33043 | ||
33044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
33045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33046 | { | |
33047 | arg2 = &temp2; | |
33048 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
33049 | } | |
33050 | { | |
33051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33052 | result = (bool)((wxGBSpan const *)arg1)->operator ==((wxGBSpan const &)*arg2); | |
33053 | ||
33054 | wxPyEndAllowThreads(__tstate); | |
33055 | if (PyErr_Occurred()) SWIG_fail; | |
33056 | } | |
33057 | resultobj = PyInt_FromLong((long)result); | |
33058 | return resultobj; | |
33059 | fail: | |
33060 | return NULL; | |
33061 | } | |
33062 | ||
33063 | ||
33064 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33065 | PyObject *resultobj; | |
33066 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
33067 | wxGBSpan *arg2 = 0 ; | |
33068 | bool result; | |
33069 | wxGBSpan temp2 ; | |
33070 | PyObject * obj0 = 0 ; | |
33071 | PyObject * obj1 = 0 ; | |
33072 | char *kwnames[] = { | |
33073 | (char *) "self",(char *) "o", NULL | |
33074 | }; | |
33075 | ||
33076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
33077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33078 | { | |
33079 | arg2 = &temp2; | |
33080 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
33081 | } | |
33082 | { | |
33083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33084 | result = (bool)((wxGBSpan const *)arg1)->operator !=((wxGBSpan const &)*arg2); | |
33085 | ||
33086 | wxPyEndAllowThreads(__tstate); | |
33087 | if (PyErr_Occurred()) SWIG_fail; | |
33088 | } | |
33089 | resultobj = PyInt_FromLong((long)result); | |
33090 | return resultobj; | |
33091 | fail: | |
33092 | return NULL; | |
33093 | } | |
33094 | ||
33095 | ||
423f194a RD |
33096 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
33097 | PyObject *resultobj; | |
33098 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
33099 | int arg2 = (int) 1 ; | |
33100 | int arg3 = (int) 1 ; | |
33101 | PyObject * obj0 = 0 ; | |
33102 | char *kwnames[] = { | |
33103 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
33104 | }; | |
33105 | ||
33106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:GBSpan_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
33107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33108 | { | |
33109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33110 | wxGBSpan_Set(arg1,arg2,arg3); | |
33111 | ||
33112 | wxPyEndAllowThreads(__tstate); | |
33113 | if (PyErr_Occurred()) SWIG_fail; | |
33114 | } | |
33115 | Py_INCREF(Py_None); resultobj = Py_None; | |
33116 | return resultobj; | |
33117 | fail: | |
33118 | return NULL; | |
33119 | } | |
33120 | ||
33121 | ||
33122 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
33123 | PyObject *resultobj; |
33124 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
33125 | PyObject *result; | |
33126 | PyObject * obj0 = 0 ; | |
33127 | char *kwnames[] = { | |
33128 | (char *) "self", NULL | |
33129 | }; | |
33130 | ||
423f194a | 33131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
33132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
33133 | { | |
33134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 33135 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
33136 | |
33137 | wxPyEndAllowThreads(__tstate); | |
33138 | if (PyErr_Occurred()) SWIG_fail; | |
33139 | } | |
33140 | resultobj = result; | |
33141 | return resultobj; | |
33142 | fail: | |
33143 | return NULL; | |
33144 | } | |
33145 | ||
33146 | ||
33147 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
33148 | PyObject *obj; | |
33149 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33150 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
33151 | Py_INCREF(obj); | |
33152 | return Py_BuildValue((char *)""); | |
33153 | } | |
33154 | static int _wrap_DefaultSpan_set(PyObject *_val) { | |
33155 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); | |
33156 | return 1; | |
33157 | } | |
33158 | ||
33159 | ||
33160 | static PyObject *_wrap_DefaultSpan_get() { | |
33161 | PyObject *pyobj; | |
33162 | ||
33163 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSpan, SWIGTYPE_p_wxGBSpan, 0); | |
33164 | return pyobj; | |
33165 | } | |
33166 | ||
33167 | ||
33168 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33169 | PyObject *resultobj; | |
33170 | wxGBSizerItem *result; | |
33171 | char *kwnames[] = { | |
33172 | NULL | |
33173 | }; | |
33174 | ||
33175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
33176 | { | |
33177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33178 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
33179 | ||
33180 | wxPyEndAllowThreads(__tstate); | |
33181 | if (PyErr_Occurred()) SWIG_fail; | |
33182 | } | |
33183 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
33184 | return resultobj; | |
33185 | fail: | |
33186 | return NULL; | |
33187 | } | |
33188 | ||
33189 | ||
33190 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33191 | PyObject *resultobj; | |
33192 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33193 | wxGBPosition *arg2 = 0 ; | |
33194 | wxGBSpan *arg3 = 0 ; | |
33195 | int arg4 ; | |
33196 | int arg5 ; | |
33197 | wxObject *arg6 = (wxObject *) 0 ; | |
33198 | wxGBSizerItem *result; | |
33199 | wxGBPosition temp2 ; | |
33200 | wxGBSpan temp3 ; | |
33201 | PyObject * obj0 = 0 ; | |
33202 | PyObject * obj1 = 0 ; | |
33203 | PyObject * obj2 = 0 ; | |
33204 | PyObject * obj5 = 0 ; | |
33205 | char *kwnames[] = { | |
33206 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33207 | }; | |
33208 | ||
33209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOiiO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
33210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33211 | { | |
33212 | arg2 = &temp2; | |
33213 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
33214 | } | |
33215 | { | |
33216 | arg3 = &temp3; | |
33217 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
33218 | } | |
33219 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33220 | { | |
33221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33222 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
33223 | ||
33224 | wxPyEndAllowThreads(__tstate); | |
33225 | if (PyErr_Occurred()) SWIG_fail; | |
33226 | } | |
33227 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
33228 | return resultobj; | |
33229 | fail: | |
33230 | return NULL; | |
33231 | } | |
33232 | ||
33233 | ||
33234 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33235 | PyObject *resultobj; | |
33236 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33237 | wxGBPosition *arg2 = 0 ; | |
33238 | wxGBSpan *arg3 = 0 ; | |
33239 | int arg4 ; | |
33240 | int arg5 ; | |
33241 | wxObject *arg6 = (wxObject *) 0 ; | |
33242 | wxGBSizerItem *result; | |
33243 | wxGBPosition temp2 ; | |
33244 | wxGBSpan temp3 ; | |
33245 | PyObject * obj0 = 0 ; | |
33246 | PyObject * obj1 = 0 ; | |
33247 | PyObject * obj2 = 0 ; | |
33248 | PyObject * obj5 = 0 ; | |
33249 | char *kwnames[] = { | |
33250 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33251 | }; | |
33252 | ||
33253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOiiO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
33254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33255 | { | |
33256 | arg2 = &temp2; | |
33257 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
33258 | } | |
33259 | { | |
33260 | arg3 = &temp3; | |
33261 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
33262 | } | |
33263 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33264 | { | |
33265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33266 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
33267 | ||
33268 | wxPyEndAllowThreads(__tstate); | |
33269 | if (PyErr_Occurred()) SWIG_fail; | |
33270 | } | |
33271 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
33272 | return resultobj; | |
33273 | fail: | |
33274 | return NULL; | |
33275 | } | |
33276 | ||
33277 | ||
33278 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33279 | PyObject *resultobj; | |
33280 | int arg1 ; | |
33281 | int arg2 ; | |
33282 | wxGBPosition *arg3 = 0 ; | |
33283 | wxGBSpan *arg4 = 0 ; | |
33284 | int arg5 ; | |
33285 | int arg6 ; | |
33286 | wxObject *arg7 = (wxObject *) 0 ; | |
33287 | wxGBSizerItem *result; | |
33288 | wxGBPosition temp3 ; | |
33289 | wxGBSpan temp4 ; | |
33290 | PyObject * obj2 = 0 ; | |
33291 | PyObject * obj3 = 0 ; | |
33292 | PyObject * obj6 = 0 ; | |
33293 | char *kwnames[] = { | |
33294 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33295 | }; | |
33296 | ||
33297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiOOiiO:new_GBSizerItemSpacer",kwnames,&arg1,&arg2,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
33298 | { | |
33299 | arg3 = &temp3; | |
33300 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
33301 | } | |
33302 | { | |
33303 | arg4 = &temp4; | |
33304 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
33305 | } | |
33306 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33307 | { | |
33308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33309 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
33310 | ||
33311 | wxPyEndAllowThreads(__tstate); | |
33312 | if (PyErr_Occurred()) SWIG_fail; | |
33313 | } | |
33314 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
33315 | return resultobj; | |
33316 | fail: | |
33317 | return NULL; | |
33318 | } | |
33319 | ||
33320 | ||
33321 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33322 | PyObject *resultobj; | |
33323 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33324 | wxGBPosition result; | |
33325 | PyObject * obj0 = 0 ; | |
33326 | char *kwnames[] = { | |
33327 | (char *) "self", NULL | |
33328 | }; | |
33329 | ||
33330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
33331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33332 | { | |
33333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33334 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
33335 | ||
33336 | wxPyEndAllowThreads(__tstate); | |
33337 | if (PyErr_Occurred()) SWIG_fail; | |
33338 | } | |
33339 | { | |
33340 | wxGBPosition * resultptr; | |
33341 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33342 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33343 | } | |
33344 | return resultobj; | |
33345 | fail: | |
33346 | return NULL; | |
33347 | } | |
33348 | ||
33349 | ||
33350 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33351 | PyObject *resultobj; | |
33352 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33353 | wxGBSpan result; | |
33354 | PyObject * obj0 = 0 ; | |
33355 | char *kwnames[] = { | |
33356 | (char *) "self", NULL | |
33357 | }; | |
33358 | ||
33359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
33360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33361 | { | |
33362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33363 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
33364 | ||
33365 | wxPyEndAllowThreads(__tstate); | |
33366 | if (PyErr_Occurred()) SWIG_fail; | |
33367 | } | |
33368 | { | |
33369 | wxGBSpan * resultptr; | |
33370 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
33371 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
33372 | } | |
33373 | return resultobj; | |
33374 | fail: | |
33375 | return NULL; | |
33376 | } | |
33377 | ||
33378 | ||
33379 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33380 | PyObject *resultobj; | |
33381 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33382 | wxGBPosition *arg2 = 0 ; | |
33383 | bool result; | |
33384 | wxGBPosition temp2 ; | |
33385 | PyObject * obj0 = 0 ; | |
33386 | PyObject * obj1 = 0 ; | |
33387 | char *kwnames[] = { | |
33388 | (char *) "self",(char *) "pos", NULL | |
33389 | }; | |
33390 | ||
33391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
33392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33393 | { | |
33394 | arg2 = &temp2; | |
33395 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
33396 | } | |
33397 | { | |
33398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33399 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
33400 | ||
33401 | wxPyEndAllowThreads(__tstate); | |
33402 | if (PyErr_Occurred()) SWIG_fail; | |
33403 | } | |
33404 | resultobj = PyInt_FromLong((long)result); | |
33405 | return resultobj; | |
33406 | fail: | |
33407 | return NULL; | |
33408 | } | |
33409 | ||
33410 | ||
33411 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33412 | PyObject *resultobj; | |
33413 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33414 | wxGBSpan *arg2 = 0 ; | |
33415 | bool result; | |
33416 | wxGBSpan temp2 ; | |
33417 | PyObject * obj0 = 0 ; | |
33418 | PyObject * obj1 = 0 ; | |
33419 | char *kwnames[] = { | |
33420 | (char *) "self",(char *) "span", NULL | |
33421 | }; | |
33422 | ||
33423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
33424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33425 | { | |
33426 | arg2 = &temp2; | |
33427 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
33428 | } | |
33429 | { | |
33430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33431 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
33432 | ||
33433 | wxPyEndAllowThreads(__tstate); | |
33434 | if (PyErr_Occurred()) SWIG_fail; | |
33435 | } | |
33436 | resultobj = PyInt_FromLong((long)result); | |
33437 | return resultobj; | |
33438 | fail: | |
33439 | return NULL; | |
33440 | } | |
33441 | ||
33442 | ||
33443 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
33444 | PyObject *resultobj; | |
33445 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33446 | wxGBSizerItem *arg2 = 0 ; | |
33447 | bool result; | |
33448 | PyObject * obj0 = 0 ; | |
33449 | PyObject * obj1 = 0 ; | |
33450 | ||
33451 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
33452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33453 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33454 | if (arg2 == NULL) { | |
33455 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
33456 | } | |
33457 | { | |
33458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33459 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
33460 | ||
33461 | wxPyEndAllowThreads(__tstate); | |
33462 | if (PyErr_Occurred()) SWIG_fail; | |
33463 | } | |
33464 | resultobj = PyInt_FromLong((long)result); | |
33465 | return resultobj; | |
33466 | fail: | |
33467 | return NULL; | |
33468 | } | |
33469 | ||
33470 | ||
33471 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
33472 | PyObject *resultobj; | |
33473 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33474 | wxGBPosition *arg2 = 0 ; | |
33475 | wxGBSpan *arg3 = 0 ; | |
33476 | bool result; | |
33477 | wxGBPosition temp2 ; | |
33478 | wxGBSpan temp3 ; | |
33479 | PyObject * obj0 = 0 ; | |
33480 | PyObject * obj1 = 0 ; | |
33481 | PyObject * obj2 = 0 ; | |
33482 | ||
33483 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
33484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33485 | { | |
33486 | arg2 = &temp2; | |
33487 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
33488 | } | |
33489 | { | |
33490 | arg3 = &temp3; | |
33491 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
33492 | } | |
33493 | { | |
33494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33495 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
33496 | ||
33497 | wxPyEndAllowThreads(__tstate); | |
33498 | if (PyErr_Occurred()) SWIG_fail; | |
33499 | } | |
33500 | resultobj = PyInt_FromLong((long)result); | |
33501 | return resultobj; | |
33502 | fail: | |
33503 | return NULL; | |
33504 | } | |
33505 | ||
33506 | ||
33507 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
33508 | int argc; | |
33509 | PyObject *argv[4]; | |
33510 | int ii; | |
33511 | ||
33512 | argc = PyObject_Length(args); | |
33513 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
33514 | argv[ii] = PyTuple_GetItem(args,ii); | |
33515 | } | |
33516 | if (argc == 2) { | |
33517 | int _v; | |
33518 | { | |
33519 | void *ptr; | |
33520 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
33521 | _v = 0; | |
33522 | PyErr_Clear(); | |
33523 | } else { | |
33524 | _v = 1; | |
33525 | } | |
33526 | } | |
33527 | if (_v) { | |
33528 | { | |
33529 | void *ptr; | |
33530 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
33531 | _v = 0; | |
33532 | PyErr_Clear(); | |
33533 | } else { | |
33534 | _v = 1; | |
33535 | } | |
33536 | } | |
33537 | if (_v) { | |
33538 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
33539 | } | |
33540 | } | |
33541 | } | |
33542 | if (argc == 3) { | |
33543 | int _v; | |
33544 | { | |
33545 | void *ptr; | |
33546 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
33547 | _v = 0; | |
33548 | PyErr_Clear(); | |
33549 | } else { | |
33550 | _v = 1; | |
33551 | } | |
33552 | } | |
33553 | if (_v) { | |
33554 | { | |
33555 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
33556 | } | |
33557 | if (_v) { | |
33558 | { | |
33559 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
33560 | } | |
33561 | if (_v) { | |
33562 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
33563 | } | |
33564 | } | |
33565 | } | |
33566 | } | |
33567 | ||
33568 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
33569 | return NULL; | |
33570 | } | |
33571 | ||
33572 | ||
33573 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33574 | PyObject *resultobj; | |
33575 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33576 | int *arg2 = 0 ; | |
33577 | int *arg3 = 0 ; | |
33578 | PyObject * obj0 = 0 ; | |
33579 | PyObject * obj1 = 0 ; | |
33580 | PyObject * obj2 = 0 ; | |
33581 | char *kwnames[] = { | |
33582 | (char *) "self",(char *) "row",(char *) "col", NULL | |
33583 | }; | |
33584 | ||
33585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33587 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33588 | if (arg2 == NULL) { | |
33589 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
33590 | } | |
33591 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33592 | if (arg3 == NULL) { | |
33593 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
33594 | } | |
33595 | { | |
33596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33597 | (arg1)->GetEndPos(*arg2,*arg3); | |
33598 | ||
33599 | wxPyEndAllowThreads(__tstate); | |
33600 | if (PyErr_Occurred()) SWIG_fail; | |
33601 | } | |
33602 | Py_INCREF(Py_None); resultobj = Py_None; | |
33603 | return resultobj; | |
33604 | fail: | |
33605 | return NULL; | |
33606 | } | |
33607 | ||
33608 | ||
33609 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33610 | PyObject *resultobj; | |
33611 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33612 | wxGridBagSizer *result; | |
33613 | PyObject * obj0 = 0 ; | |
33614 | char *kwnames[] = { | |
33615 | (char *) "self", NULL | |
33616 | }; | |
33617 | ||
33618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
33619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33620 | { | |
33621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33622 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
33623 | ||
33624 | wxPyEndAllowThreads(__tstate); | |
33625 | if (PyErr_Occurred()) SWIG_fail; | |
33626 | } | |
33627 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 0); | |
33628 | return resultobj; | |
33629 | fail: | |
33630 | return NULL; | |
33631 | } | |
33632 | ||
33633 | ||
33634 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33635 | PyObject *resultobj; | |
33636 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33637 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
33638 | PyObject * obj0 = 0 ; | |
33639 | PyObject * obj1 = 0 ; | |
33640 | char *kwnames[] = { | |
33641 | (char *) "self",(char *) "sizer", NULL | |
33642 | }; | |
33643 | ||
33644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
33645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33646 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33647 | { | |
33648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33649 | (arg1)->SetGBSizer(arg2); | |
33650 | ||
33651 | wxPyEndAllowThreads(__tstate); | |
33652 | if (PyErr_Occurred()) SWIG_fail; | |
33653 | } | |
33654 | Py_INCREF(Py_None); resultobj = Py_None; | |
33655 | return resultobj; | |
33656 | fail: | |
33657 | return NULL; | |
33658 | } | |
33659 | ||
33660 | ||
33661 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
33662 | PyObject *obj; | |
33663 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33664 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
33665 | Py_INCREF(obj); | |
33666 | return Py_BuildValue((char *)""); | |
33667 | } | |
33668 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33669 | PyObject *resultobj; | |
33670 | int arg1 = (int) 0 ; | |
33671 | int arg2 = (int) 0 ; | |
33672 | wxGridBagSizer *result; | |
33673 | char *kwnames[] = { | |
33674 | (char *) "vgap",(char *) "hgap", NULL | |
33675 | }; | |
33676 | ||
33677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridBagSizer",kwnames,&arg1,&arg2)) goto fail; | |
33678 | { | |
33679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33680 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
33681 | ||
33682 | wxPyEndAllowThreads(__tstate); | |
33683 | if (PyErr_Occurred()) SWIG_fail; | |
33684 | } | |
33685 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 1); | |
33686 | return resultobj; | |
33687 | fail: | |
33688 | return NULL; | |
33689 | } | |
33690 | ||
33691 | ||
33692 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33693 | PyObject *resultobj; | |
33694 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33695 | PyObject *arg2 = (PyObject *) 0 ; | |
33696 | wxGBPosition *arg3 = 0 ; | |
33697 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
33698 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
33699 | int arg5 = (int) 0 ; | |
33700 | int arg6 = (int) 0 ; | |
33701 | PyObject *arg7 = (PyObject *) NULL ; | |
33702 | bool result; | |
33703 | wxGBPosition temp3 ; | |
33704 | wxGBSpan temp4 ; | |
33705 | PyObject * obj0 = 0 ; | |
33706 | PyObject * obj1 = 0 ; | |
33707 | PyObject * obj2 = 0 ; | |
33708 | PyObject * obj3 = 0 ; | |
33709 | PyObject * obj6 = 0 ; | |
33710 | char *kwnames[] = { | |
33711 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33712 | }; | |
33713 | ||
33714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
33715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33716 | arg2 = obj1; | |
33717 | { | |
33718 | arg3 = &temp3; | |
33719 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
33720 | } | |
33721 | if (obj3) { | |
33722 | { | |
33723 | arg4 = &temp4; | |
33724 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
33725 | } | |
33726 | } | |
33727 | if (obj6) { | |
33728 | arg7 = obj6; | |
33729 | } | |
33730 | { | |
33731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33732 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
33733 | ||
33734 | wxPyEndAllowThreads(__tstate); | |
33735 | if (PyErr_Occurred()) SWIG_fail; | |
33736 | } | |
33737 | resultobj = PyInt_FromLong((long)result); | |
33738 | return resultobj; | |
33739 | fail: | |
33740 | return NULL; | |
33741 | } | |
33742 | ||
33743 | ||
33744 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33745 | PyObject *resultobj; | |
33746 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33747 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
33748 | bool result; | |
33749 | PyObject * obj0 = 0 ; | |
33750 | PyObject * obj1 = 0 ; | |
33751 | char *kwnames[] = { | |
33752 | (char *) "self",(char *) "item", NULL | |
33753 | }; | |
33754 | ||
33755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
33756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33757 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33758 | { | |
33759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33760 | result = (bool)(arg1)->Add(arg2); | |
33761 | ||
33762 | wxPyEndAllowThreads(__tstate); | |
33763 | if (PyErr_Occurred()) SWIG_fail; | |
33764 | } | |
33765 | resultobj = PyInt_FromLong((long)result); | |
33766 | return resultobj; | |
33767 | fail: | |
33768 | return NULL; | |
33769 | } | |
33770 | ||
33771 | ||
33772 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33773 | PyObject *resultobj; | |
33774 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33775 | wxSize result; | |
33776 | PyObject * obj0 = 0 ; | |
33777 | char *kwnames[] = { | |
33778 | (char *) "self", NULL | |
33779 | }; | |
33780 | ||
33781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
33782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33783 | { | |
33784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33785 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
33786 | ||
33787 | wxPyEndAllowThreads(__tstate); | |
33788 | if (PyErr_Occurred()) SWIG_fail; | |
33789 | } | |
33790 | { | |
33791 | wxSize * resultptr; | |
33792 | resultptr = new wxSize((wxSize &) result); | |
33793 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33794 | } | |
33795 | return resultobj; | |
33796 | fail: | |
33797 | return NULL; | |
33798 | } | |
33799 | ||
33800 | ||
33801 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33802 | PyObject *resultobj; | |
33803 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33804 | wxSize *arg2 = 0 ; | |
33805 | wxSize temp2 ; | |
33806 | PyObject * obj0 = 0 ; | |
33807 | PyObject * obj1 = 0 ; | |
33808 | char *kwnames[] = { | |
33809 | (char *) "self",(char *) "sz", NULL | |
33810 | }; | |
33811 | ||
33812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
33813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33814 | { | |
33815 | arg2 = &temp2; | |
33816 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33817 | } | |
33818 | { | |
33819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33820 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
33821 | ||
33822 | wxPyEndAllowThreads(__tstate); | |
33823 | if (PyErr_Occurred()) SWIG_fail; | |
33824 | } | |
33825 | Py_INCREF(Py_None); resultobj = Py_None; | |
33826 | return resultobj; | |
33827 | fail: | |
33828 | return NULL; | |
33829 | } | |
33830 | ||
33831 | ||
33832 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
33833 | PyObject *resultobj; | |
33834 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33835 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33836 | wxGBPosition result; | |
33837 | PyObject * obj0 = 0 ; | |
33838 | PyObject * obj1 = 0 ; | |
33839 | ||
33840 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
33841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33842 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33843 | { | |
33844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33845 | result = (arg1)->GetItemPosition(arg2); | |
33846 | ||
33847 | wxPyEndAllowThreads(__tstate); | |
33848 | if (PyErr_Occurred()) SWIG_fail; | |
33849 | } | |
33850 | { | |
33851 | wxGBPosition * resultptr; | |
33852 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33853 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33854 | } | |
33855 | return resultobj; | |
33856 | fail: | |
33857 | return NULL; | |
33858 | } | |
33859 | ||
33860 | ||
33861 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
33862 | PyObject *resultobj; | |
33863 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33864 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33865 | wxGBPosition result; | |
33866 | PyObject * obj0 = 0 ; | |
33867 | PyObject * obj1 = 0 ; | |
33868 | ||
33869 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
33870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33871 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33872 | { | |
33873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33874 | result = (arg1)->GetItemPosition(arg2); | |
33875 | ||
33876 | wxPyEndAllowThreads(__tstate); | |
33877 | if (PyErr_Occurred()) SWIG_fail; | |
33878 | } | |
33879 | { | |
33880 | wxGBPosition * resultptr; | |
33881 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33882 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33883 | } | |
33884 | return resultobj; | |
33885 | fail: | |
33886 | return NULL; | |
33887 | } | |
33888 | ||
33889 | ||
33890 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
33891 | PyObject *resultobj; | |
33892 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33893 | size_t arg2 ; | |
33894 | wxGBPosition result; | |
33895 | PyObject * obj0 = 0 ; | |
33896 | PyObject * obj1 = 0 ; | |
33897 | ||
33898 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
33899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33900 | arg2 = (size_t) PyInt_AsLong(obj1); | |
33901 | if (PyErr_Occurred()) SWIG_fail; | |
33902 | { | |
33903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33904 | result = (arg1)->GetItemPosition(arg2); | |
33905 | ||
33906 | wxPyEndAllowThreads(__tstate); | |
33907 | if (PyErr_Occurred()) SWIG_fail; | |
33908 | } | |
33909 | { | |
33910 | wxGBPosition * resultptr; | |
33911 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33912 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33913 | } | |
33914 | return resultobj; | |
33915 | fail: | |
33916 | return NULL; | |
33917 | } | |
33918 | ||
33919 | ||
33920 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
33921 | int argc; | |
33922 | PyObject *argv[3]; | |
33923 | int ii; | |
33924 | ||
33925 | argc = PyObject_Length(args); | |
33926 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
33927 | argv[ii] = PyTuple_GetItem(args,ii); | |
33928 | } | |
33929 | if (argc == 2) { | |
33930 | int _v; | |
33931 | { | |
33932 | void *ptr; | |
33933 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33934 | _v = 0; | |
33935 | PyErr_Clear(); | |
33936 | } else { | |
33937 | _v = 1; | |
33938 | } | |
33939 | } | |
33940 | if (_v) { | |
33941 | { | |
33942 | void *ptr; | |
33943 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
33944 | _v = 0; | |
33945 | PyErr_Clear(); | |
33946 | } else { | |
33947 | _v = 1; | |
33948 | } | |
33949 | } | |
33950 | if (_v) { | |
33951 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
33952 | } | |
33953 | } | |
33954 | } | |
33955 | if (argc == 2) { | |
33956 | int _v; | |
33957 | { | |
33958 | void *ptr; | |
33959 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33960 | _v = 0; | |
33961 | PyErr_Clear(); | |
33962 | } else { | |
33963 | _v = 1; | |
33964 | } | |
33965 | } | |
33966 | if (_v) { | |
33967 | { | |
33968 | void *ptr; | |
33969 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
33970 | _v = 0; | |
33971 | PyErr_Clear(); | |
33972 | } else { | |
33973 | _v = 1; | |
33974 | } | |
33975 | } | |
33976 | if (_v) { | |
33977 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
33978 | } | |
33979 | } | |
33980 | } | |
33981 | if (argc == 2) { | |
33982 | int _v; | |
33983 | { | |
33984 | void *ptr; | |
33985 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33986 | _v = 0; | |
33987 | PyErr_Clear(); | |
33988 | } else { | |
33989 | _v = 1; | |
33990 | } | |
33991 | } | |
33992 | if (_v) { | |
33993 | { | |
33994 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
33995 | } | |
33996 | if (_v) { | |
33997 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
33998 | } | |
33999 | } | |
34000 | } | |
34001 | ||
34002 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
34003 | return NULL; | |
34004 | } | |
34005 | ||
34006 | ||
34007 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
34008 | PyObject *resultobj; | |
34009 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34010 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34011 | wxGBPosition *arg3 = 0 ; | |
34012 | bool result; | |
34013 | wxGBPosition temp3 ; | |
34014 | PyObject * obj0 = 0 ; | |
34015 | PyObject * obj1 = 0 ; | |
34016 | PyObject * obj2 = 0 ; | |
34017 | ||
34018 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
34019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34020 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34021 | { | |
34022 | arg3 = &temp3; | |
34023 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
34024 | } | |
34025 | { | |
34026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34027 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
34028 | ||
34029 | wxPyEndAllowThreads(__tstate); | |
34030 | if (PyErr_Occurred()) SWIG_fail; | |
34031 | } | |
34032 | resultobj = PyInt_FromLong((long)result); | |
34033 | return resultobj; | |
34034 | fail: | |
34035 | return NULL; | |
34036 | } | |
34037 | ||
34038 | ||
34039 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
34040 | PyObject *resultobj; | |
34041 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34042 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34043 | wxGBPosition *arg3 = 0 ; | |
34044 | bool result; | |
34045 | wxGBPosition temp3 ; | |
34046 | PyObject * obj0 = 0 ; | |
34047 | PyObject * obj1 = 0 ; | |
34048 | PyObject * obj2 = 0 ; | |
34049 | ||
34050 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
34051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34052 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34053 | { | |
34054 | arg3 = &temp3; | |
34055 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
34056 | } | |
34057 | { | |
34058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34059 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
34060 | ||
34061 | wxPyEndAllowThreads(__tstate); | |
34062 | if (PyErr_Occurred()) SWIG_fail; | |
34063 | } | |
34064 | resultobj = PyInt_FromLong((long)result); | |
34065 | return resultobj; | |
34066 | fail: | |
34067 | return NULL; | |
34068 | } | |
34069 | ||
34070 | ||
34071 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
34072 | PyObject *resultobj; | |
34073 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34074 | size_t arg2 ; | |
34075 | wxGBPosition *arg3 = 0 ; | |
34076 | bool result; | |
34077 | wxGBPosition temp3 ; | |
34078 | PyObject * obj0 = 0 ; | |
34079 | PyObject * obj1 = 0 ; | |
34080 | PyObject * obj2 = 0 ; | |
34081 | ||
34082 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
34083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34084 | arg2 = (size_t) PyInt_AsLong(obj1); | |
34085 | if (PyErr_Occurred()) SWIG_fail; | |
34086 | { | |
34087 | arg3 = &temp3; | |
34088 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
34089 | } | |
34090 | { | |
34091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34092 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
34093 | ||
34094 | wxPyEndAllowThreads(__tstate); | |
34095 | if (PyErr_Occurred()) SWIG_fail; | |
34096 | } | |
34097 | resultobj = PyInt_FromLong((long)result); | |
34098 | return resultobj; | |
34099 | fail: | |
34100 | return NULL; | |
34101 | } | |
34102 | ||
34103 | ||
34104 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
34105 | int argc; | |
34106 | PyObject *argv[4]; | |
34107 | int ii; | |
34108 | ||
34109 | argc = PyObject_Length(args); | |
34110 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
34111 | argv[ii] = PyTuple_GetItem(args,ii); | |
34112 | } | |
34113 | if (argc == 3) { | |
34114 | int _v; | |
34115 | { | |
34116 | void *ptr; | |
34117 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34118 | _v = 0; | |
34119 | PyErr_Clear(); | |
34120 | } else { | |
34121 | _v = 1; | |
34122 | } | |
34123 | } | |
34124 | if (_v) { | |
34125 | { | |
34126 | void *ptr; | |
34127 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
34128 | _v = 0; | |
34129 | PyErr_Clear(); | |
34130 | } else { | |
34131 | _v = 1; | |
34132 | } | |
34133 | } | |
34134 | if (_v) { | |
34135 | { | |
34136 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
34137 | } | |
34138 | if (_v) { | |
34139 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
34140 | } | |
34141 | } | |
34142 | } | |
34143 | } | |
34144 | if (argc == 3) { | |
34145 | int _v; | |
34146 | { | |
34147 | void *ptr; | |
34148 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34149 | _v = 0; | |
34150 | PyErr_Clear(); | |
34151 | } else { | |
34152 | _v = 1; | |
34153 | } | |
34154 | } | |
34155 | if (_v) { | |
34156 | { | |
34157 | void *ptr; | |
34158 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
34159 | _v = 0; | |
34160 | PyErr_Clear(); | |
34161 | } else { | |
34162 | _v = 1; | |
34163 | } | |
34164 | } | |
34165 | if (_v) { | |
34166 | { | |
34167 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
34168 | } | |
34169 | if (_v) { | |
34170 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
34171 | } | |
34172 | } | |
34173 | } | |
34174 | } | |
34175 | if (argc == 3) { | |
34176 | int _v; | |
34177 | { | |
34178 | void *ptr; | |
34179 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34180 | _v = 0; | |
34181 | PyErr_Clear(); | |
34182 | } else { | |
34183 | _v = 1; | |
34184 | } | |
34185 | } | |
34186 | if (_v) { | |
34187 | { | |
34188 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
34189 | } | |
34190 | if (_v) { | |
34191 | { | |
34192 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
34193 | } | |
34194 | if (_v) { | |
34195 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
34196 | } | |
34197 | } | |
34198 | } | |
34199 | } | |
34200 | ||
34201 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
34202 | return NULL; | |
34203 | } | |
34204 | ||
34205 | ||
34206 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
34207 | PyObject *resultobj; | |
34208 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34209 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34210 | wxGBSpan result; | |
34211 | PyObject * obj0 = 0 ; | |
34212 | PyObject * obj1 = 0 ; | |
34213 | ||
34214 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
34215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34216 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34217 | { | |
34218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34219 | result = (arg1)->GetItemSpan(arg2); | |
34220 | ||
34221 | wxPyEndAllowThreads(__tstate); | |
34222 | if (PyErr_Occurred()) SWIG_fail; | |
34223 | } | |
34224 | { | |
34225 | wxGBSpan * resultptr; | |
34226 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
34227 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
34228 | } | |
34229 | return resultobj; | |
34230 | fail: | |
34231 | return NULL; | |
34232 | } | |
34233 | ||
34234 | ||
34235 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
34236 | PyObject *resultobj; | |
34237 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34238 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34239 | wxGBSpan result; | |
34240 | PyObject * obj0 = 0 ; | |
34241 | PyObject * obj1 = 0 ; | |
34242 | ||
34243 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
34244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34245 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34246 | { | |
34247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34248 | result = (arg1)->GetItemSpan(arg2); | |
34249 | ||
34250 | wxPyEndAllowThreads(__tstate); | |
34251 | if (PyErr_Occurred()) SWIG_fail; | |
34252 | } | |
34253 | { | |
34254 | wxGBSpan * resultptr; | |
34255 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
34256 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
34257 | } | |
34258 | return resultobj; | |
34259 | fail: | |
34260 | return NULL; | |
34261 | } | |
34262 | ||
34263 | ||
34264 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
34265 | PyObject *resultobj; | |
34266 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34267 | size_t arg2 ; | |
34268 | wxGBSpan result; | |
34269 | PyObject * obj0 = 0 ; | |
34270 | PyObject * obj1 = 0 ; | |
34271 | ||
34272 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
34273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34274 | arg2 = (size_t) PyInt_AsLong(obj1); | |
34275 | if (PyErr_Occurred()) SWIG_fail; | |
34276 | { | |
34277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34278 | result = (arg1)->GetItemSpan(arg2); | |
34279 | ||
34280 | wxPyEndAllowThreads(__tstate); | |
34281 | if (PyErr_Occurred()) SWIG_fail; | |
34282 | } | |
34283 | { | |
34284 | wxGBSpan * resultptr; | |
34285 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
34286 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
34287 | } | |
34288 | return resultobj; | |
34289 | fail: | |
34290 | return NULL; | |
34291 | } | |
34292 | ||
34293 | ||
34294 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
34295 | int argc; | |
34296 | PyObject *argv[3]; | |
34297 | int ii; | |
34298 | ||
34299 | argc = PyObject_Length(args); | |
34300 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
34301 | argv[ii] = PyTuple_GetItem(args,ii); | |
34302 | } | |
34303 | if (argc == 2) { | |
34304 | int _v; | |
34305 | { | |
34306 | void *ptr; | |
34307 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34308 | _v = 0; | |
34309 | PyErr_Clear(); | |
34310 | } else { | |
34311 | _v = 1; | |
34312 | } | |
34313 | } | |
34314 | if (_v) { | |
34315 | { | |
34316 | void *ptr; | |
34317 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
34318 | _v = 0; | |
34319 | PyErr_Clear(); | |
34320 | } else { | |
34321 | _v = 1; | |
34322 | } | |
34323 | } | |
34324 | if (_v) { | |
34325 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
34326 | } | |
34327 | } | |
34328 | } | |
34329 | if (argc == 2) { | |
34330 | int _v; | |
34331 | { | |
34332 | void *ptr; | |
34333 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34334 | _v = 0; | |
34335 | PyErr_Clear(); | |
34336 | } else { | |
34337 | _v = 1; | |
34338 | } | |
34339 | } | |
34340 | if (_v) { | |
34341 | { | |
34342 | void *ptr; | |
34343 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
34344 | _v = 0; | |
34345 | PyErr_Clear(); | |
34346 | } else { | |
34347 | _v = 1; | |
34348 | } | |
34349 | } | |
34350 | if (_v) { | |
34351 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
34352 | } | |
34353 | } | |
34354 | } | |
34355 | if (argc == 2) { | |
34356 | int _v; | |
34357 | { | |
34358 | void *ptr; | |
34359 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34360 | _v = 0; | |
34361 | PyErr_Clear(); | |
34362 | } else { | |
34363 | _v = 1; | |
34364 | } | |
34365 | } | |
34366 | if (_v) { | |
34367 | { | |
34368 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
34369 | } | |
34370 | if (_v) { | |
34371 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
34372 | } | |
34373 | } | |
34374 | } | |
34375 | ||
34376 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
34377 | return NULL; | |
34378 | } | |
34379 | ||
34380 | ||
34381 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
34382 | PyObject *resultobj; | |
34383 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34384 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34385 | wxGBSpan *arg3 = 0 ; | |
34386 | bool result; | |
34387 | wxGBSpan temp3 ; | |
34388 | PyObject * obj0 = 0 ; | |
34389 | PyObject * obj1 = 0 ; | |
34390 | PyObject * obj2 = 0 ; | |
34391 | ||
34392 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
34393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34394 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34395 | { | |
34396 | arg3 = &temp3; | |
34397 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
34398 | } | |
34399 | { | |
34400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34401 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
34402 | ||
34403 | wxPyEndAllowThreads(__tstate); | |
34404 | if (PyErr_Occurred()) SWIG_fail; | |
34405 | } | |
34406 | resultobj = PyInt_FromLong((long)result); | |
34407 | return resultobj; | |
34408 | fail: | |
34409 | return NULL; | |
34410 | } | |
34411 | ||
34412 | ||
34413 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
34414 | PyObject *resultobj; | |
34415 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34416 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34417 | wxGBSpan *arg3 = 0 ; | |
34418 | bool result; | |
34419 | wxGBSpan temp3 ; | |
34420 | PyObject * obj0 = 0 ; | |
34421 | PyObject * obj1 = 0 ; | |
34422 | PyObject * obj2 = 0 ; | |
34423 | ||
34424 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
34425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34426 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34427 | { | |
34428 | arg3 = &temp3; | |
34429 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
34430 | } | |
34431 | { | |
34432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34433 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
34434 | ||
34435 | wxPyEndAllowThreads(__tstate); | |
34436 | if (PyErr_Occurred()) SWIG_fail; | |
34437 | } | |
34438 | resultobj = PyInt_FromLong((long)result); | |
34439 | return resultobj; | |
34440 | fail: | |
34441 | return NULL; | |
34442 | } | |
34443 | ||
34444 | ||
34445 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
34446 | PyObject *resultobj; | |
34447 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34448 | size_t arg2 ; | |
34449 | wxGBSpan *arg3 = 0 ; | |
34450 | bool result; | |
34451 | wxGBSpan temp3 ; | |
34452 | PyObject * obj0 = 0 ; | |
34453 | PyObject * obj1 = 0 ; | |
34454 | PyObject * obj2 = 0 ; | |
34455 | ||
34456 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
34457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34458 | arg2 = (size_t) PyInt_AsLong(obj1); | |
34459 | if (PyErr_Occurred()) SWIG_fail; | |
34460 | { | |
34461 | arg3 = &temp3; | |
34462 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
34463 | } | |
34464 | { | |
34465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34466 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
34467 | ||
34468 | wxPyEndAllowThreads(__tstate); | |
34469 | if (PyErr_Occurred()) SWIG_fail; | |
34470 | } | |
34471 | resultobj = PyInt_FromLong((long)result); | |
34472 | return resultobj; | |
34473 | fail: | |
34474 | return NULL; | |
34475 | } | |
34476 | ||
34477 | ||
34478 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
34479 | int argc; | |
34480 | PyObject *argv[4]; | |
34481 | int ii; | |
34482 | ||
34483 | argc = PyObject_Length(args); | |
34484 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
34485 | argv[ii] = PyTuple_GetItem(args,ii); | |
34486 | } | |
34487 | if (argc == 3) { | |
34488 | int _v; | |
34489 | { | |
34490 | void *ptr; | |
34491 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34492 | _v = 0; | |
34493 | PyErr_Clear(); | |
34494 | } else { | |
34495 | _v = 1; | |
34496 | } | |
34497 | } | |
34498 | if (_v) { | |
34499 | { | |
34500 | void *ptr; | |
34501 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
34502 | _v = 0; | |
34503 | PyErr_Clear(); | |
34504 | } else { | |
34505 | _v = 1; | |
34506 | } | |
34507 | } | |
34508 | if (_v) { | |
34509 | { | |
34510 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34511 | } | |
34512 | if (_v) { | |
34513 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
34514 | } | |
34515 | } | |
34516 | } | |
34517 | } | |
34518 | if (argc == 3) { | |
34519 | int _v; | |
34520 | { | |
34521 | void *ptr; | |
34522 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34523 | _v = 0; | |
34524 | PyErr_Clear(); | |
34525 | } else { | |
34526 | _v = 1; | |
34527 | } | |
34528 | } | |
34529 | if (_v) { | |
34530 | { | |
34531 | void *ptr; | |
34532 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
34533 | _v = 0; | |
34534 | PyErr_Clear(); | |
34535 | } else { | |
34536 | _v = 1; | |
34537 | } | |
34538 | } | |
34539 | if (_v) { | |
34540 | { | |
34541 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34542 | } | |
34543 | if (_v) { | |
34544 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
34545 | } | |
34546 | } | |
34547 | } | |
34548 | } | |
34549 | if (argc == 3) { | |
34550 | int _v; | |
34551 | { | |
34552 | void *ptr; | |
34553 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34554 | _v = 0; | |
34555 | PyErr_Clear(); | |
34556 | } else { | |
34557 | _v = 1; | |
34558 | } | |
34559 | } | |
34560 | if (_v) { | |
34561 | { | |
34562 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
34563 | } | |
34564 | if (_v) { | |
34565 | { | |
34566 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34567 | } | |
34568 | if (_v) { | |
34569 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
34570 | } | |
34571 | } | |
34572 | } | |
34573 | } | |
34574 | ||
34575 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
34576 | return NULL; | |
34577 | } | |
34578 | ||
34579 | ||
34580 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
34581 | PyObject *resultobj; | |
34582 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34583 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34584 | wxGBSizerItem *result; | |
34585 | PyObject * obj0 = 0 ; | |
34586 | PyObject * obj1 = 0 ; | |
34587 | ||
34588 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
34589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34590 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34591 | { | |
34592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34593 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
34594 | ||
34595 | wxPyEndAllowThreads(__tstate); | |
34596 | if (PyErr_Occurred()) SWIG_fail; | |
34597 | } | |
34598 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34599 | return resultobj; | |
34600 | fail: | |
34601 | return NULL; | |
34602 | } | |
34603 | ||
34604 | ||
34605 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
34606 | PyObject *resultobj; | |
34607 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34608 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34609 | wxGBSizerItem *result; | |
34610 | PyObject * obj0 = 0 ; | |
34611 | PyObject * obj1 = 0 ; | |
34612 | ||
34613 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
34614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34615 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34616 | { | |
34617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34618 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
34619 | ||
34620 | wxPyEndAllowThreads(__tstate); | |
34621 | if (PyErr_Occurred()) SWIG_fail; | |
34622 | } | |
34623 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34624 | return resultobj; | |
34625 | fail: | |
34626 | return NULL; | |
34627 | } | |
34628 | ||
34629 | ||
34630 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
34631 | int argc; | |
34632 | PyObject *argv[3]; | |
34633 | int ii; | |
34634 | ||
34635 | argc = PyObject_Length(args); | |
34636 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
34637 | argv[ii] = PyTuple_GetItem(args,ii); | |
34638 | } | |
34639 | if (argc == 2) { | |
34640 | int _v; | |
34641 | { | |
34642 | void *ptr; | |
34643 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34644 | _v = 0; | |
34645 | PyErr_Clear(); | |
34646 | } else { | |
34647 | _v = 1; | |
34648 | } | |
34649 | } | |
34650 | if (_v) { | |
34651 | { | |
34652 | void *ptr; | |
34653 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
34654 | _v = 0; | |
34655 | PyErr_Clear(); | |
34656 | } else { | |
34657 | _v = 1; | |
34658 | } | |
34659 | } | |
34660 | if (_v) { | |
34661 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
34662 | } | |
34663 | } | |
34664 | } | |
34665 | if (argc == 2) { | |
34666 | int _v; | |
34667 | { | |
34668 | void *ptr; | |
34669 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34670 | _v = 0; | |
34671 | PyErr_Clear(); | |
34672 | } else { | |
34673 | _v = 1; | |
34674 | } | |
34675 | } | |
34676 | if (_v) { | |
34677 | { | |
34678 | void *ptr; | |
34679 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
34680 | _v = 0; | |
34681 | PyErr_Clear(); | |
34682 | } else { | |
34683 | _v = 1; | |
34684 | } | |
34685 | } | |
34686 | if (_v) { | |
34687 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
34688 | } | |
34689 | } | |
34690 | } | |
34691 | ||
34692 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
34693 | return NULL; | |
34694 | } | |
34695 | ||
34696 | ||
34697 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34698 | PyObject *resultobj; | |
34699 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34700 | wxGBPosition *arg2 = 0 ; | |
34701 | wxGBSizerItem *result; | |
34702 | wxGBPosition temp2 ; | |
34703 | PyObject * obj0 = 0 ; | |
34704 | PyObject * obj1 = 0 ; | |
34705 | char *kwnames[] = { | |
34706 | (char *) "self",(char *) "pos", NULL | |
34707 | }; | |
34708 | ||
34709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
34710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34711 | { | |
34712 | arg2 = &temp2; | |
34713 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
34714 | } | |
34715 | { | |
34716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34717 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
34718 | ||
34719 | wxPyEndAllowThreads(__tstate); | |
34720 | if (PyErr_Occurred()) SWIG_fail; | |
34721 | } | |
34722 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34723 | return resultobj; | |
34724 | fail: | |
34725 | return NULL; | |
34726 | } | |
34727 | ||
34728 | ||
423f194a RD |
34729 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
34730 | PyObject *resultobj; | |
34731 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34732 | wxPoint *arg2 = 0 ; | |
34733 | wxGBSizerItem *result; | |
34734 | wxPoint temp2 ; | |
34735 | PyObject * obj0 = 0 ; | |
34736 | PyObject * obj1 = 0 ; | |
34737 | char *kwnames[] = { | |
34738 | (char *) "self",(char *) "pt", NULL | |
34739 | }; | |
34740 | ||
34741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
34742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34743 | { | |
34744 | arg2 = &temp2; | |
34745 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34746 | } | |
34747 | { | |
34748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34749 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
34750 | ||
34751 | wxPyEndAllowThreads(__tstate); | |
34752 | if (PyErr_Occurred()) SWIG_fail; | |
34753 | } | |
34754 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34755 | return resultobj; | |
34756 | fail: | |
34757 | return NULL; | |
34758 | } | |
34759 | ||
34760 | ||
d14a1e28 RD |
34761 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { |
34762 | PyObject *resultobj; | |
34763 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34764 | wxObject *arg2 = (wxObject *) 0 ; | |
34765 | wxGBSizerItem *result; | |
34766 | PyObject * obj0 = 0 ; | |
34767 | PyObject * obj1 = 0 ; | |
34768 | char *kwnames[] = { | |
34769 | (char *) "self",(char *) "userData", NULL | |
34770 | }; | |
34771 | ||
34772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
34773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34774 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34775 | { | |
34776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34777 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
34778 | ||
34779 | wxPyEndAllowThreads(__tstate); | |
34780 | if (PyErr_Occurred()) SWIG_fail; | |
34781 | } | |
34782 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34783 | return resultobj; | |
34784 | fail: | |
34785 | return NULL; | |
34786 | } | |
34787 | ||
34788 | ||
34789 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34790 | PyObject *resultobj; | |
34791 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34792 | PyObject * obj0 = 0 ; | |
34793 | char *kwnames[] = { | |
34794 | (char *) "self", NULL | |
34795 | }; | |
34796 | ||
34797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34799 | { | |
34800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34801 | (arg1)->RecalcSizes(); | |
34802 | ||
34803 | wxPyEndAllowThreads(__tstate); | |
34804 | if (PyErr_Occurred()) SWIG_fail; | |
34805 | } | |
34806 | Py_INCREF(Py_None); resultobj = Py_None; | |
34807 | return resultobj; | |
34808 | fail: | |
34809 | return NULL; | |
34810 | } | |
34811 | ||
34812 | ||
34813 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34814 | PyObject *resultobj; | |
34815 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34816 | wxSize result; | |
34817 | PyObject * obj0 = 0 ; | |
34818 | char *kwnames[] = { | |
34819 | (char *) "self", NULL | |
34820 | }; | |
34821 | ||
34822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34824 | { | |
34825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34826 | result = (arg1)->CalcMin(); | |
34827 | ||
34828 | wxPyEndAllowThreads(__tstate); | |
34829 | if (PyErr_Occurred()) SWIG_fail; | |
34830 | } | |
34831 | { | |
34832 | wxSize * resultptr; | |
34833 | resultptr = new wxSize((wxSize &) result); | |
34834 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34835 | } | |
34836 | return resultobj; | |
34837 | fail: | |
34838 | return NULL; | |
34839 | } | |
34840 | ||
34841 | ||
34842 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
34843 | PyObject *resultobj; | |
34844 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34845 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
34846 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
34847 | bool result; | |
34848 | PyObject * obj0 = 0 ; | |
34849 | PyObject * obj1 = 0 ; | |
34850 | PyObject * obj2 = 0 ; | |
34851 | ||
34852 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
34853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34854 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34855 | if (obj2) { | |
34856 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34857 | } | |
34858 | { | |
34859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34860 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
34861 | ||
34862 | wxPyEndAllowThreads(__tstate); | |
34863 | if (PyErr_Occurred()) SWIG_fail; | |
34864 | } | |
34865 | resultobj = PyInt_FromLong((long)result); | |
34866 | return resultobj; | |
34867 | fail: | |
34868 | return NULL; | |
34869 | } | |
34870 | ||
34871 | ||
34872 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
34873 | PyObject *resultobj; | |
34874 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34875 | wxGBPosition *arg2 = 0 ; | |
34876 | wxGBSpan *arg3 = 0 ; | |
34877 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
34878 | bool result; | |
34879 | wxGBPosition temp2 ; | |
34880 | wxGBSpan temp3 ; | |
34881 | PyObject * obj0 = 0 ; | |
34882 | PyObject * obj1 = 0 ; | |
34883 | PyObject * obj2 = 0 ; | |
34884 | PyObject * obj3 = 0 ; | |
34885 | ||
34886 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
34887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34888 | { | |
34889 | arg2 = &temp2; | |
34890 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
34891 | } | |
34892 | { | |
34893 | arg3 = &temp3; | |
34894 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
34895 | } | |
34896 | if (obj3) { | |
34897 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34898 | } | |
34899 | { | |
34900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34901 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
34902 | ||
34903 | wxPyEndAllowThreads(__tstate); | |
34904 | if (PyErr_Occurred()) SWIG_fail; | |
34905 | } | |
34906 | resultobj = PyInt_FromLong((long)result); | |
34907 | return resultobj; | |
34908 | fail: | |
34909 | return NULL; | |
34910 | } | |
34911 | ||
34912 | ||
34913 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
34914 | int argc; | |
34915 | PyObject *argv[5]; | |
34916 | int ii; | |
34917 | ||
34918 | argc = PyObject_Length(args); | |
34919 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
34920 | argv[ii] = PyTuple_GetItem(args,ii); | |
34921 | } | |
34922 | if ((argc >= 2) && (argc <= 3)) { | |
34923 | int _v; | |
34924 | { | |
34925 | void *ptr; | |
34926 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34927 | _v = 0; | |
34928 | PyErr_Clear(); | |
34929 | } else { | |
34930 | _v = 1; | |
34931 | } | |
34932 | } | |
34933 | if (_v) { | |
34934 | { | |
34935 | void *ptr; | |
34936 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
34937 | _v = 0; | |
34938 | PyErr_Clear(); | |
34939 | } else { | |
34940 | _v = 1; | |
34941 | } | |
34942 | } | |
34943 | if (_v) { | |
34944 | if (argc <= 2) { | |
34945 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
34946 | } | |
34947 | { | |
34948 | void *ptr; | |
34949 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
34950 | _v = 0; | |
34951 | PyErr_Clear(); | |
34952 | } else { | |
34953 | _v = 1; | |
34954 | } | |
34955 | } | |
34956 | if (_v) { | |
34957 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
34958 | } | |
34959 | } | |
34960 | } | |
34961 | } | |
34962 | if ((argc >= 3) && (argc <= 4)) { | |
34963 | int _v; | |
34964 | { | |
34965 | void *ptr; | |
34966 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34967 | _v = 0; | |
34968 | PyErr_Clear(); | |
34969 | } else { | |
34970 | _v = 1; | |
34971 | } | |
34972 | } | |
34973 | if (_v) { | |
34974 | { | |
34975 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
34976 | } | |
34977 | if (_v) { | |
34978 | { | |
34979 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34980 | } | |
34981 | if (_v) { | |
34982 | if (argc <= 3) { | |
34983 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
34984 | } | |
34985 | { | |
34986 | void *ptr; | |
34987 | if (SWIG_ConvertPtr(argv[3], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
34988 | _v = 0; | |
34989 | PyErr_Clear(); | |
34990 | } else { | |
34991 | _v = 1; | |
34992 | } | |
34993 | } | |
34994 | if (_v) { | |
34995 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
34996 | } | |
34997 | } | |
34998 | } | |
34999 | } | |
35000 | } | |
35001 | ||
35002 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
35003 | return NULL; | |
35004 | } | |
35005 | ||
35006 | ||
35007 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
35008 | PyObject *obj; | |
35009 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35010 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
35011 | Py_INCREF(obj); | |
35012 | return Py_BuildValue((char *)""); | |
35013 | } | |
35014 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35015 | PyObject *resultobj; | |
35016 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35017 | int arg2 ; | |
35018 | wxWindow *arg3 = (wxWindow *) 0 ; | |
35019 | int arg4 ; | |
35020 | int arg5 = (int) 0 ; | |
35021 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
35022 | PyObject * obj0 = 0 ; | |
35023 | PyObject * obj2 = 0 ; | |
35024 | char *kwnames[] = { | |
35025 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
35026 | }; | |
35027 | ||
35028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOi|ii:IndividualLayoutConstraint_Set",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6)) goto fail; | |
35029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35030 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35031 | { | |
35032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35033 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
35034 | ||
35035 | wxPyEndAllowThreads(__tstate); | |
35036 | if (PyErr_Occurred()) SWIG_fail; | |
35037 | } | |
35038 | Py_INCREF(Py_None); resultobj = Py_None; | |
35039 | return resultobj; | |
35040 | fail: | |
35041 | return NULL; | |
35042 | } | |
35043 | ||
35044 | ||
35045 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35046 | PyObject *resultobj; | |
35047 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35048 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35049 | int arg3 = (int) 0 ; | |
35050 | PyObject * obj0 = 0 ; | |
35051 | PyObject * obj1 = 0 ; | |
35052 | char *kwnames[] = { | |
35053 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
35054 | }; | |
35055 | ||
35056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
35057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35058 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35059 | { | |
35060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35061 | (arg1)->LeftOf(arg2,arg3); | |
35062 | ||
35063 | wxPyEndAllowThreads(__tstate); | |
35064 | if (PyErr_Occurred()) SWIG_fail; | |
35065 | } | |
35066 | Py_INCREF(Py_None); resultobj = Py_None; | |
35067 | return resultobj; | |
35068 | fail: | |
35069 | return NULL; | |
35070 | } | |
35071 | ||
35072 | ||
35073 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35074 | PyObject *resultobj; | |
35075 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35076 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35077 | int arg3 = (int) 0 ; | |
35078 | PyObject * obj0 = 0 ; | |
35079 | PyObject * obj1 = 0 ; | |
35080 | char *kwnames[] = { | |
35081 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
35082 | }; | |
35083 | ||
35084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
35085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35086 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35087 | { | |
35088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35089 | (arg1)->RightOf(arg2,arg3); | |
35090 | ||
35091 | wxPyEndAllowThreads(__tstate); | |
35092 | if (PyErr_Occurred()) SWIG_fail; | |
35093 | } | |
35094 | Py_INCREF(Py_None); resultobj = Py_None; | |
35095 | return resultobj; | |
35096 | fail: | |
35097 | return NULL; | |
35098 | } | |
35099 | ||
35100 | ||
35101 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35102 | PyObject *resultobj; | |
35103 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35104 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35105 | int arg3 = (int) 0 ; | |
35106 | PyObject * obj0 = 0 ; | |
35107 | PyObject * obj1 = 0 ; | |
35108 | char *kwnames[] = { | |
35109 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
35110 | }; | |
35111 | ||
35112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
35113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35114 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35115 | { | |
35116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35117 | (arg1)->Above(arg2,arg3); | |
35118 | ||
35119 | wxPyEndAllowThreads(__tstate); | |
35120 | if (PyErr_Occurred()) SWIG_fail; | |
35121 | } | |
35122 | Py_INCREF(Py_None); resultobj = Py_None; | |
35123 | return resultobj; | |
35124 | fail: | |
35125 | return NULL; | |
35126 | } | |
35127 | ||
35128 | ||
35129 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35130 | PyObject *resultobj; | |
35131 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35132 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35133 | int arg3 = (int) 0 ; | |
35134 | PyObject * obj0 = 0 ; | |
35135 | PyObject * obj1 = 0 ; | |
35136 | char *kwnames[] = { | |
35137 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
35138 | }; | |
35139 | ||
35140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
35141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35142 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35143 | { | |
35144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35145 | (arg1)->Below(arg2,arg3); | |
35146 | ||
35147 | wxPyEndAllowThreads(__tstate); | |
35148 | if (PyErr_Occurred()) SWIG_fail; | |
35149 | } | |
35150 | Py_INCREF(Py_None); resultobj = Py_None; | |
35151 | return resultobj; | |
35152 | fail: | |
35153 | return NULL; | |
35154 | } | |
35155 | ||
35156 | ||
35157 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35158 | PyObject *resultobj; | |
35159 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35160 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35161 | int arg3 ; | |
35162 | int arg4 = (int) 0 ; | |
35163 | PyObject * obj0 = 0 ; | |
35164 | PyObject * obj1 = 0 ; | |
35165 | char *kwnames[] = { | |
35166 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
35167 | }; | |
35168 | ||
35169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|i:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
35170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35171 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35172 | { | |
35173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35174 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
35175 | ||
35176 | wxPyEndAllowThreads(__tstate); | |
35177 | if (PyErr_Occurred()) SWIG_fail; | |
35178 | } | |
35179 | Py_INCREF(Py_None); resultobj = Py_None; | |
35180 | return resultobj; | |
35181 | fail: | |
35182 | return NULL; | |
35183 | } | |
35184 | ||
35185 | ||
35186 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35187 | PyObject *resultobj; | |
35188 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35189 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35190 | int arg3 ; | |
35191 | int arg4 ; | |
35192 | PyObject * obj0 = 0 ; | |
35193 | PyObject * obj1 = 0 ; | |
35194 | char *kwnames[] = { | |
35195 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
35196 | }; | |
35197 | ||
35198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
35199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35200 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35201 | { | |
35202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35203 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
35204 | ||
35205 | wxPyEndAllowThreads(__tstate); | |
35206 | if (PyErr_Occurred()) SWIG_fail; | |
35207 | } | |
35208 | Py_INCREF(Py_None); resultobj = Py_None; | |
35209 | return resultobj; | |
35210 | fail: | |
35211 | return NULL; | |
35212 | } | |
35213 | ||
35214 | ||
35215 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35216 | PyObject *resultobj; | |
35217 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35218 | int arg2 ; | |
35219 | PyObject * obj0 = 0 ; | |
35220 | char *kwnames[] = { | |
35221 | (char *) "self",(char *) "val", NULL | |
35222 | }; | |
35223 | ||
35224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&arg2)) goto fail; | |
35225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35226 | { | |
35227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35228 | (arg1)->Absolute(arg2); | |
35229 | ||
35230 | wxPyEndAllowThreads(__tstate); | |
35231 | if (PyErr_Occurred()) SWIG_fail; | |
35232 | } | |
35233 | Py_INCREF(Py_None); resultobj = Py_None; | |
35234 | return resultobj; | |
35235 | fail: | |
35236 | return NULL; | |
35237 | } | |
35238 | ||
35239 | ||
35240 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35241 | PyObject *resultobj; | |
35242 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35243 | PyObject * obj0 = 0 ; | |
35244 | char *kwnames[] = { | |
35245 | (char *) "self", NULL | |
35246 | }; | |
35247 | ||
35248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
35249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35250 | { | |
35251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35252 | (arg1)->Unconstrained(); | |
35253 | ||
35254 | wxPyEndAllowThreads(__tstate); | |
35255 | if (PyErr_Occurred()) SWIG_fail; | |
35256 | } | |
35257 | Py_INCREF(Py_None); resultobj = Py_None; | |
35258 | return resultobj; | |
35259 | fail: | |
35260 | return NULL; | |
35261 | } | |
35262 | ||
35263 | ||
35264 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35265 | PyObject *resultobj; | |
35266 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35267 | PyObject * obj0 = 0 ; | |
35268 | char *kwnames[] = { | |
35269 | (char *) "self", NULL | |
35270 | }; | |
35271 | ||
35272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
35273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35274 | { | |
35275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35276 | (arg1)->AsIs(); | |
35277 | ||
35278 | wxPyEndAllowThreads(__tstate); | |
35279 | if (PyErr_Occurred()) SWIG_fail; | |
35280 | } | |
35281 | Py_INCREF(Py_None); resultobj = Py_None; | |
35282 | return resultobj; | |
35283 | fail: | |
35284 | return NULL; | |
35285 | } | |
35286 | ||
35287 | ||
35288 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35289 | PyObject *resultobj; | |
35290 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35291 | wxWindow *result; | |
35292 | PyObject * obj0 = 0 ; | |
35293 | char *kwnames[] = { | |
35294 | (char *) "self", NULL | |
35295 | }; | |
35296 | ||
35297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
35298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35299 | { | |
35300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35301 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
35302 | ||
35303 | wxPyEndAllowThreads(__tstate); | |
35304 | if (PyErr_Occurred()) SWIG_fail; | |
35305 | } | |
35306 | { | |
35307 | resultobj = wxPyMake_wxObject(result); | |
35308 | } | |
35309 | return resultobj; | |
35310 | fail: | |
35311 | return NULL; | |
35312 | } | |
35313 | ||
35314 | ||
35315 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35316 | PyObject *resultobj; | |
35317 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35318 | int result; | |
35319 | PyObject * obj0 = 0 ; | |
35320 | char *kwnames[] = { | |
35321 | (char *) "self", NULL | |
35322 | }; | |
35323 | ||
35324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
35325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35326 | { | |
35327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35328 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
35329 | ||
35330 | wxPyEndAllowThreads(__tstate); | |
35331 | if (PyErr_Occurred()) SWIG_fail; | |
35332 | } | |
35333 | resultobj = PyInt_FromLong((long)result); | |
35334 | return resultobj; | |
35335 | fail: | |
35336 | return NULL; | |
35337 | } | |
35338 | ||
35339 | ||
35340 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35341 | PyObject *resultobj; | |
35342 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35343 | int arg2 ; | |
35344 | PyObject * obj0 = 0 ; | |
35345 | char *kwnames[] = { | |
35346 | (char *) "self",(char *) "which", NULL | |
35347 | }; | |
35348 | ||
35349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&arg2)) goto fail; | |
35350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35351 | { | |
35352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35353 | (arg1)->SetEdge((wxEdge )arg2); | |
35354 | ||
35355 | wxPyEndAllowThreads(__tstate); | |
35356 | if (PyErr_Occurred()) SWIG_fail; | |
35357 | } | |
35358 | Py_INCREF(Py_None); resultobj = Py_None; | |
35359 | return resultobj; | |
35360 | fail: | |
35361 | return NULL; | |
35362 | } | |
35363 | ||
35364 | ||
35365 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35366 | PyObject *resultobj; | |
35367 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35368 | int arg2 ; | |
35369 | PyObject * obj0 = 0 ; | |
35370 | char *kwnames[] = { | |
35371 | (char *) "self",(char *) "v", NULL | |
35372 | }; | |
35373 | ||
35374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
35375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35376 | { | |
35377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35378 | (arg1)->SetValue(arg2); | |
35379 | ||
35380 | wxPyEndAllowThreads(__tstate); | |
35381 | if (PyErr_Occurred()) SWIG_fail; | |
35382 | } | |
35383 | Py_INCREF(Py_None); resultobj = Py_None; | |
35384 | return resultobj; | |
35385 | fail: | |
35386 | return NULL; | |
35387 | } | |
35388 | ||
35389 | ||
35390 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35391 | PyObject *resultobj; | |
35392 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35393 | int result; | |
35394 | PyObject * obj0 = 0 ; | |
35395 | char *kwnames[] = { | |
35396 | (char *) "self", NULL | |
35397 | }; | |
35398 | ||
35399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
35400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35401 | { | |
35402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35403 | result = (int)(arg1)->GetMargin(); | |
35404 | ||
35405 | wxPyEndAllowThreads(__tstate); | |
35406 | if (PyErr_Occurred()) SWIG_fail; | |
35407 | } | |
35408 | resultobj = PyInt_FromLong((long)result); | |
35409 | return resultobj; | |
35410 | fail: | |
35411 | return NULL; | |
35412 | } | |
35413 | ||
35414 | ||
35415 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35416 | PyObject *resultobj; | |
35417 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35418 | int arg2 ; | |
35419 | PyObject * obj0 = 0 ; | |
35420 | char *kwnames[] = { | |
35421 | (char *) "self",(char *) "m", NULL | |
35422 | }; | |
35423 | ||
35424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&arg2)) goto fail; | |
35425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35426 | { | |
35427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35428 | (arg1)->SetMargin(arg2); | |
35429 | ||
35430 | wxPyEndAllowThreads(__tstate); | |
35431 | if (PyErr_Occurred()) SWIG_fail; | |
35432 | } | |
35433 | Py_INCREF(Py_None); resultobj = Py_None; | |
35434 | return resultobj; | |
35435 | fail: | |
35436 | return NULL; | |
35437 | } | |
35438 | ||
35439 | ||
35440 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35441 | PyObject *resultobj; | |
35442 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35443 | int result; | |
35444 | PyObject * obj0 = 0 ; | |
35445 | char *kwnames[] = { | |
35446 | (char *) "self", NULL | |
35447 | }; | |
35448 | ||
35449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
35450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35451 | { | |
35452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35453 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
35454 | ||
35455 | wxPyEndAllowThreads(__tstate); | |
35456 | if (PyErr_Occurred()) SWIG_fail; | |
35457 | } | |
35458 | resultobj = PyInt_FromLong((long)result); | |
35459 | return resultobj; | |
35460 | fail: | |
35461 | return NULL; | |
35462 | } | |
35463 | ||
35464 | ||
35465 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35466 | PyObject *resultobj; | |
35467 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35468 | int result; | |
35469 | PyObject * obj0 = 0 ; | |
35470 | char *kwnames[] = { | |
35471 | (char *) "self", NULL | |
35472 | }; | |
35473 | ||
35474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
35475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35476 | { | |
35477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35478 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
35479 | ||
35480 | wxPyEndAllowThreads(__tstate); | |
35481 | if (PyErr_Occurred()) SWIG_fail; | |
35482 | } | |
35483 | resultobj = PyInt_FromLong((long)result); | |
35484 | return resultobj; | |
35485 | fail: | |
35486 | return NULL; | |
35487 | } | |
35488 | ||
35489 | ||
35490 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35491 | PyObject *resultobj; | |
35492 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35493 | int result; | |
35494 | PyObject * obj0 = 0 ; | |
35495 | char *kwnames[] = { | |
35496 | (char *) "self", NULL | |
35497 | }; | |
35498 | ||
35499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
35500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35501 | { | |
35502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35503 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
35504 | ||
35505 | wxPyEndAllowThreads(__tstate); | |
35506 | if (PyErr_Occurred()) SWIG_fail; | |
35507 | } | |
35508 | resultobj = PyInt_FromLong((long)result); | |
35509 | return resultobj; | |
35510 | fail: | |
35511 | return NULL; | |
35512 | } | |
35513 | ||
35514 | ||
35515 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35516 | PyObject *resultobj; | |
35517 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35518 | bool result; | |
35519 | PyObject * obj0 = 0 ; | |
35520 | char *kwnames[] = { | |
35521 | (char *) "self", NULL | |
35522 | }; | |
35523 | ||
35524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
35525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35526 | { | |
35527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35528 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
35529 | ||
35530 | wxPyEndAllowThreads(__tstate); | |
35531 | if (PyErr_Occurred()) SWIG_fail; | |
35532 | } | |
35533 | resultobj = PyInt_FromLong((long)result); | |
35534 | return resultobj; | |
35535 | fail: | |
35536 | return NULL; | |
35537 | } | |
35538 | ||
35539 | ||
35540 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35541 | PyObject *resultobj; | |
35542 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35543 | bool arg2 ; | |
35544 | PyObject * obj0 = 0 ; | |
35545 | PyObject * obj1 = 0 ; | |
35546 | char *kwnames[] = { | |
35547 | (char *) "self",(char *) "d", NULL | |
35548 | }; | |
35549 | ||
35550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
35551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35552 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
35553 | if (PyErr_Occurred()) SWIG_fail; | |
35554 | { | |
35555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35556 | (arg1)->SetDone(arg2); | |
35557 | ||
35558 | wxPyEndAllowThreads(__tstate); | |
35559 | if (PyErr_Occurred()) SWIG_fail; | |
35560 | } | |
35561 | Py_INCREF(Py_None); resultobj = Py_None; | |
35562 | return resultobj; | |
35563 | fail: | |
35564 | return NULL; | |
35565 | } | |
35566 | ||
35567 | ||
35568 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35569 | PyObject *resultobj; | |
35570 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35571 | int result; | |
35572 | PyObject * obj0 = 0 ; | |
35573 | char *kwnames[] = { | |
35574 | (char *) "self", NULL | |
35575 | }; | |
35576 | ||
35577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
35578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35579 | { | |
35580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35581 | result = (int)(arg1)->GetRelationship(); | |
35582 | ||
35583 | wxPyEndAllowThreads(__tstate); | |
35584 | if (PyErr_Occurred()) SWIG_fail; | |
35585 | } | |
35586 | resultobj = PyInt_FromLong((long)result); | |
35587 | return resultobj; | |
35588 | fail: | |
35589 | return NULL; | |
35590 | } | |
35591 | ||
35592 | ||
35593 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35594 | PyObject *resultobj; | |
35595 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35596 | int arg2 ; | |
35597 | PyObject * obj0 = 0 ; | |
35598 | char *kwnames[] = { | |
35599 | (char *) "self",(char *) "r", NULL | |
35600 | }; | |
35601 | ||
35602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&arg2)) goto fail; | |
35603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35604 | { | |
35605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35606 | (arg1)->SetRelationship((wxRelationship )arg2); | |
35607 | ||
35608 | wxPyEndAllowThreads(__tstate); | |
35609 | if (PyErr_Occurred()) SWIG_fail; | |
35610 | } | |
35611 | Py_INCREF(Py_None); resultobj = Py_None; | |
35612 | return resultobj; | |
35613 | fail: | |
35614 | return NULL; | |
35615 | } | |
35616 | ||
35617 | ||
35618 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35619 | PyObject *resultobj; | |
35620 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35621 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35622 | bool result; | |
35623 | PyObject * obj0 = 0 ; | |
35624 | PyObject * obj1 = 0 ; | |
35625 | char *kwnames[] = { | |
35626 | (char *) "self",(char *) "otherW", NULL | |
35627 | }; | |
35628 | ||
35629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
35630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35631 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35632 | { | |
35633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35634 | result = (bool)(arg1)->ResetIfWin(arg2); | |
35635 | ||
35636 | wxPyEndAllowThreads(__tstate); | |
35637 | if (PyErr_Occurred()) SWIG_fail; | |
35638 | } | |
35639 | resultobj = PyInt_FromLong((long)result); | |
35640 | return resultobj; | |
35641 | fail: | |
35642 | return NULL; | |
35643 | } | |
35644 | ||
35645 | ||
35646 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35647 | PyObject *resultobj; | |
35648 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35649 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
35650 | wxWindow *arg3 = (wxWindow *) 0 ; | |
35651 | bool result; | |
35652 | PyObject * obj0 = 0 ; | |
35653 | PyObject * obj1 = 0 ; | |
35654 | PyObject * obj2 = 0 ; | |
35655 | char *kwnames[] = { | |
35656 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
35657 | }; | |
35658 | ||
35659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35661 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35662 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35663 | { | |
35664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35665 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
35666 | ||
35667 | wxPyEndAllowThreads(__tstate); | |
35668 | if (PyErr_Occurred()) SWIG_fail; | |
35669 | } | |
35670 | resultobj = PyInt_FromLong((long)result); | |
35671 | return resultobj; | |
35672 | fail: | |
35673 | return NULL; | |
35674 | } | |
35675 | ||
35676 | ||
35677 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35678 | PyObject *resultobj; | |
35679 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35680 | int arg2 ; | |
35681 | wxWindow *arg3 = (wxWindow *) 0 ; | |
35682 | wxWindow *arg4 = (wxWindow *) 0 ; | |
35683 | int result; | |
35684 | PyObject * obj0 = 0 ; | |
35685 | PyObject * obj2 = 0 ; | |
35686 | PyObject * obj3 = 0 ; | |
35687 | char *kwnames[] = { | |
35688 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
35689 | }; | |
35690 | ||
35691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
35692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35693 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35694 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35695 | { | |
35696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35697 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
35698 | ||
35699 | wxPyEndAllowThreads(__tstate); | |
35700 | if (PyErr_Occurred()) SWIG_fail; | |
35701 | } | |
35702 | resultobj = PyInt_FromLong((long)result); | |
35703 | return resultobj; | |
35704 | fail: | |
35705 | return NULL; | |
35706 | } | |
35707 | ||
35708 | ||
35709 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
35710 | PyObject *obj; | |
35711 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35712 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
35713 | Py_INCREF(obj); | |
35714 | return Py_BuildValue((char *)""); | |
35715 | } | |
35716 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35717 | PyObject *resultobj; | |
35718 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35719 | wxIndividualLayoutConstraint *result; | |
35720 | PyObject * obj0 = 0 ; | |
35721 | char *kwnames[] = { | |
35722 | (char *) "self", NULL | |
35723 | }; | |
35724 | ||
35725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
35726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35727 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
35728 | ||
35729 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35730 | return resultobj; | |
35731 | fail: | |
35732 | return NULL; | |
35733 | } | |
35734 | ||
35735 | ||
35736 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35737 | PyObject *resultobj; | |
35738 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35739 | wxIndividualLayoutConstraint *result; | |
35740 | PyObject * obj0 = 0 ; | |
35741 | char *kwnames[] = { | |
35742 | (char *) "self", NULL | |
35743 | }; | |
35744 | ||
35745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
35746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35747 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
35748 | ||
35749 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35750 | return resultobj; | |
35751 | fail: | |
35752 | return NULL; | |
35753 | } | |
35754 | ||
35755 | ||
35756 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35757 | PyObject *resultobj; | |
35758 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35759 | wxIndividualLayoutConstraint *result; | |
35760 | PyObject * obj0 = 0 ; | |
35761 | char *kwnames[] = { | |
35762 | (char *) "self", NULL | |
35763 | }; | |
35764 | ||
35765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
35766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35767 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
35768 | ||
35769 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35770 | return resultobj; | |
35771 | fail: | |
35772 | return NULL; | |
35773 | } | |
35774 | ||
35775 | ||
35776 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35777 | PyObject *resultobj; | |
35778 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35779 | wxIndividualLayoutConstraint *result; | |
35780 | PyObject * obj0 = 0 ; | |
35781 | char *kwnames[] = { | |
35782 | (char *) "self", NULL | |
35783 | }; | |
35784 | ||
35785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
35786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35787 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
35788 | ||
35789 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35790 | return resultobj; | |
35791 | fail: | |
35792 | return NULL; | |
35793 | } | |
35794 | ||
35795 | ||
35796 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35797 | PyObject *resultobj; | |
35798 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35799 | wxIndividualLayoutConstraint *result; | |
35800 | PyObject * obj0 = 0 ; | |
35801 | char *kwnames[] = { | |
35802 | (char *) "self", NULL | |
35803 | }; | |
35804 | ||
35805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
35806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35807 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
35808 | ||
35809 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35810 | return resultobj; | |
35811 | fail: | |
35812 | return NULL; | |
35813 | } | |
35814 | ||
35815 | ||
35816 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35817 | PyObject *resultobj; | |
35818 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35819 | wxIndividualLayoutConstraint *result; | |
35820 | PyObject * obj0 = 0 ; | |
35821 | char *kwnames[] = { | |
35822 | (char *) "self", NULL | |
35823 | }; | |
35824 | ||
35825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
35826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35827 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
35828 | ||
35829 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35830 | return resultobj; | |
35831 | fail: | |
35832 | return NULL; | |
35833 | } | |
35834 | ||
35835 | ||
35836 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35837 | PyObject *resultobj; | |
35838 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35839 | wxIndividualLayoutConstraint *result; | |
35840 | PyObject * obj0 = 0 ; | |
35841 | char *kwnames[] = { | |
35842 | (char *) "self", NULL | |
35843 | }; | |
35844 | ||
35845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
35846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35847 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
35848 | ||
35849 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35850 | return resultobj; | |
35851 | fail: | |
35852 | return NULL; | |
35853 | } | |
35854 | ||
35855 | ||
35856 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35857 | PyObject *resultobj; | |
35858 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35859 | wxIndividualLayoutConstraint *result; | |
35860 | PyObject * obj0 = 0 ; | |
35861 | char *kwnames[] = { | |
35862 | (char *) "self", NULL | |
35863 | }; | |
35864 | ||
35865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
35866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35867 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
35868 | ||
35869 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35870 | return resultobj; | |
35871 | fail: | |
35872 | return NULL; | |
35873 | } | |
35874 | ||
35875 | ||
35876 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35877 | PyObject *resultobj; | |
35878 | wxLayoutConstraints *result; | |
35879 | char *kwnames[] = { | |
35880 | NULL | |
35881 | }; | |
35882 | ||
35883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
35884 | { | |
35885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35886 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
35887 | ||
35888 | wxPyEndAllowThreads(__tstate); | |
35889 | if (PyErr_Occurred()) SWIG_fail; | |
35890 | } | |
35891 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 1); | |
35892 | return resultobj; | |
35893 | fail: | |
35894 | return NULL; | |
35895 | } | |
35896 | ||
35897 | ||
35898 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35899 | PyObject *resultobj; | |
35900 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35901 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35902 | int *arg3 = (int *) 0 ; | |
35903 | bool result; | |
35904 | int temp3 ; | |
35905 | PyObject * obj0 = 0 ; | |
35906 | PyObject * obj1 = 0 ; | |
35907 | char *kwnames[] = { | |
35908 | (char *) "self",(char *) "win", NULL | |
35909 | }; | |
35910 | ||
35911 | arg3 = &temp3; | |
35912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
35913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35914 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35915 | { | |
35916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35917 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
35918 | ||
35919 | wxPyEndAllowThreads(__tstate); | |
35920 | if (PyErr_Occurred()) SWIG_fail; | |
35921 | } | |
35922 | resultobj = PyInt_FromLong((long)result); | |
35923 | { | |
35924 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
35925 | resultobj = t_output_helper(resultobj,o); | |
35926 | } | |
35927 | return resultobj; | |
35928 | fail: | |
35929 | return NULL; | |
35930 | } | |
35931 | ||
35932 | ||
35933 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35934 | PyObject *resultobj; | |
35935 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35936 | bool result; | |
35937 | PyObject * obj0 = 0 ; | |
35938 | char *kwnames[] = { | |
35939 | (char *) "self", NULL | |
35940 | }; | |
35941 | ||
35942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
35943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35944 | { | |
35945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35946 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
35947 | ||
35948 | wxPyEndAllowThreads(__tstate); | |
35949 | if (PyErr_Occurred()) SWIG_fail; | |
35950 | } | |
35951 | resultobj = PyInt_FromLong((long)result); | |
35952 | return resultobj; | |
35953 | fail: | |
35954 | return NULL; | |
35955 | } | |
35956 | ||
35957 | ||
35958 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
35959 | PyObject *obj; | |
35960 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35961 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
35962 | Py_INCREF(obj); | |
35963 | return Py_BuildValue((char *)""); | |
35964 | } | |
35965 | static PyMethodDef SwigMethods[] = { | |
35966 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
d03fd34d | 35967 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, |
d14a1e28 RD |
35968 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, |
35969 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
35970 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
35971 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
35972 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
35973 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
35974 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
35975 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
35976 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
35977 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
35978 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
35979 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
35980 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
35981 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
35982 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
35983 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
35984 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
35985 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
35986 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
35987 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 35988 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
35989 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, |
35990 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
35991 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35992 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35993 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35994 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
35995 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
35996 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, |
35997 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
35998 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, |
35999 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 36000 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, |
423f194a | 36001 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
36002 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, |
36003 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
36004 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
36005 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
36006 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
36007 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
36008 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
36009 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
36010 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
36011 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
36012 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
36013 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
36014 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
36015 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 36016 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
36017 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, |
36018 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
36019 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
36020 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
36021 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
36022 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
36023 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
36024 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
36025 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
36026 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
36027 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
36028 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
36029 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
36030 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36031 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36032 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
36033 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 RD |
36034 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, |
36035 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
36036 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
36037 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36038 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, |
36039 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
36040 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
36041 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
36042 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
36043 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
36044 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
36045 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
36046 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
36047 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
36048 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
36049 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
36050 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
36051 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
36052 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
36053 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
36054 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
36055 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
36056 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
36057 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
36058 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
36059 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
36060 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
36061 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
36062 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
36063 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
36064 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
36065 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
36066 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 36067 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
36068 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, |
36069 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
36070 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
36071 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
36072 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
36073 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
36074 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
36075 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
36076 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
36077 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
36078 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
36079 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
36080 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
36081 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
36082 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
36083 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
36084 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
36085 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
36086 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
36087 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
36088 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
36089 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36090 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, |
36091 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
36092 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
36093 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
36094 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 36095 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
36096 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, |
36097 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
36098 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
36099 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
36100 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
36101 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
36102 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
36103 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
36104 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
36105 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
36106 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
36107 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
36108 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
36109 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
36110 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
36111 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
36112 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
36113 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
36114 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
36115 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
36116 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
36117 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
36118 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
36119 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
36120 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
36121 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
36122 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
36123 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
36124 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
36125 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
36126 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
36127 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
36128 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
36129 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
36130 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
36131 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
36132 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
36133 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
36134 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
36135 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
36136 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
36137 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
36138 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
36139 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
36140 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
36141 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
36142 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
36143 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
36144 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
36145 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
36146 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
36147 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
36148 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
36149 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
36150 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
36151 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
36152 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
36153 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
36154 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
36155 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
36156 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
36157 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
36158 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
36159 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
36160 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
36161 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36162 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
36163 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
36164 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
36165 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
36166 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
36167 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
36168 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
36169 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
36170 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
36171 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
36172 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
36173 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
36174 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
36175 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
36176 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
36177 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
36178 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
36179 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
36180 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
36181 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
36182 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
36183 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
36184 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
36185 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
36186 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
36187 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
36188 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
36189 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, | |
36190 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36191 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
36192 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
36193 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
36194 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
36195 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
36196 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
36197 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
36198 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
36199 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
36200 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
36201 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
36202 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
36203 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
36204 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
36205 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
36206 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
36207 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
36208 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
36209 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
36210 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
36211 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
36212 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
36213 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
36214 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
36215 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
36216 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
36217 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
36218 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
36219 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
36220 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
36221 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
36222 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
36223 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
36224 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
36225 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
36226 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
36227 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
36228 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
36229 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
36230 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
36231 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
36232 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
36233 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
36234 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
36235 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
36236 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
36237 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
36238 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
36239 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
36240 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
36241 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
36242 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
36243 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
36244 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
36245 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
36246 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
36247 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
36248 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
36249 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
36250 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
36251 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36252 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36253 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
36254 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
36255 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
36256 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
36257 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
36258 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
36259 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
36260 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
36261 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
36262 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
36263 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
36264 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
36265 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
36266 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
36267 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
36268 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
36269 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
36270 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
36271 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
36272 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
36273 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
36274 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
36275 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
36276 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
36277 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
36278 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
36279 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
36280 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
36281 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
36282 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36283 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36284 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
36285 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
36286 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
36287 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
36288 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
36289 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
36290 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
36291 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
36292 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
36293 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
36294 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
36295 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
36296 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
36297 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
36298 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
36299 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
36300 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
36301 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
36302 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
36303 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
36304 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
36305 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
36306 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
36307 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
36308 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
36309 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
36310 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
36311 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
36312 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
36313 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
36314 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
36315 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
36316 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
36317 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
36318 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
36319 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36320 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
36321 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
36322 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
36323 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
36324 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
36325 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
36326 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
36327 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36328 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
36329 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
36330 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
36331 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
36332 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
36333 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
36334 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36335 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
36336 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36337 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
36338 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
36339 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
36340 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36341 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
36342 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36343 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
36344 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
36345 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
36346 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
36347 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
36348 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
36349 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
36350 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
36351 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
36352 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
36353 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
36354 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
36355 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
36356 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
36357 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
36358 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
36359 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
36360 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
36361 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
36362 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
36363 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
36364 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
36365 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
36366 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
36367 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
36368 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
36369 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
36370 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
36371 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
36372 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36373 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
36374 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
36375 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
36376 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
36377 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
36378 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
36379 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
36380 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
36381 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
36382 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
36383 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
36384 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
36385 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36386 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36387 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36388 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36389 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36390 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36391 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36392 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36393 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36394 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36395 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36396 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36397 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36398 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36399 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
36400 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
36401 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
36402 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
36403 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
36404 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
36405 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
36406 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
36407 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
36408 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
36409 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
36410 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
36411 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
36412 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
36413 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36414 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
36415 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
36416 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
36417 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
36418 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
36419 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
36420 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
36421 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
36422 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
36423 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36424 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
36425 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
36426 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
36427 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
36428 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
36429 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
36430 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
36431 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
36432 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
36433 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36434 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36435 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36436 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36437 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36438 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36439 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
36440 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
36441 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
36442 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
36443 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
36444 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
36445 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
36446 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
36447 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
36448 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
36449 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
36450 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
36451 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
36452 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
36453 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
36454 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
36455 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
36456 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
36457 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
36458 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
36459 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36460 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
36461 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
36462 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36463 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
36464 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
36465 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
36466 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
36467 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
36468 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
36469 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
36470 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
36471 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
36472 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
36473 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
36474 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
36475 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
36476 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36477 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36478 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
36479 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
36480 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36481 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
36482 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
36483 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
36484 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
36485 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
36486 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
36487 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
36488 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
36489 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
36490 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36491 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
36492 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
36493 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
36494 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
36495 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
36496 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
36497 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
36498 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
36499 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
36500 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
36501 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
36502 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
36503 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
36504 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
36505 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
36506 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
36507 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
36508 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
36509 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36510 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
36511 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
36512 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
36513 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
36514 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
36515 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36516 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
36517 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
36518 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
36519 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36520 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
36521 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36522 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
36523 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
36524 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
36525 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
36526 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
36527 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
36528 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
36529 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
36530 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
36531 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
36532 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
36533 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
36534 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
36535 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
36536 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
36537 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
36538 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
36539 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
36540 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
36541 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
36542 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
36543 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
36544 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
36545 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36546 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
36547 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
36548 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
36549 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
36550 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
36551 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
36552 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
36553 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
36554 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36555 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
36556 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36557 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36558 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
36559 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
36560 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36561 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36562 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
36563 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
36564 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
36565 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
36566 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
36567 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
36568 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
36569 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
36570 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36571 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36572 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36573 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36574 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
36575 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
36576 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
36577 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36578 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36579 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
36580 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
36581 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
36582 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
36583 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
36584 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
36585 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
36586 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
36587 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
36588 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
36589 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
36590 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
36591 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
36592 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
36593 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
36594 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
36595 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
36596 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
36597 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
36598 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
36599 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36600 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, |
36601 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
36602 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
36603 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
36604 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
36605 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
36606 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
36607 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
36608 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 36609 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 36610 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
36611 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, |
36612 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36613 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36614 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36615 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
36616 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
36617 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36618 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36619 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36620 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
36621 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
36622 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
36623 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
36624 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
36625 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
36626 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
36627 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
36628 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
36629 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
36630 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
36631 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
41f1cec7 RD |
36632 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, |
36633 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
36634 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
36635 | { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36636 | { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36637 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
36638 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
36639 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
36640 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
36641 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36642 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36643 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
36644 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
36645 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36646 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, |
36647 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
36648 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
36649 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
36650 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
36651 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
36652 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
36653 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36654 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36655 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36656 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36657 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
36658 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
36659 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, | |
36660 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
36661 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
36662 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
36663 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
36664 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
36665 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
36666 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
36667 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
36668 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
36669 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
36670 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
36671 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
36672 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
36673 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
36674 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
36675 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36676 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
36677 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
36678 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36679 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
36680 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
36681 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36682 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
36683 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
36684 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
36685 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36686 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
36687 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
36688 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
36689 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
36690 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
36691 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
36692 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
36693 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
36694 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, | |
36695 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
36696 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
36697 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
36698 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
36699 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
36700 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
36701 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
36702 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36703 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
36704 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
36705 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
36706 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36707 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
36708 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
36709 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36710 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
36711 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
36712 | { (char *)"Window_SetWindowStyle", (PyCFunction) _wrap_Window_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
36713 | { (char *)"Window_GetWindowStyle", (PyCFunction) _wrap_Window_GetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
36714 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
36715 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
36716 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
36717 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
36718 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
36719 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36720 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36721 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
36722 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
36723 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
36724 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
36725 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
36726 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
36727 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
36728 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
36729 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
36730 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
36731 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
36732 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
36733 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
36734 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
36735 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
36736 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
36737 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
36738 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
36739 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36740 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36741 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36742 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36743 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36744 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
36745 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
36746 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36747 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36748 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
36749 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
36750 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
36751 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
36752 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
36753 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
36754 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
36755 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
36756 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
36757 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
36758 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
36759 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
36760 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
36761 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
36762 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
36763 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
36764 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
36765 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
36766 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
36767 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
36768 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
36769 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
36770 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
36771 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
36772 | { (char *)"Window_isExposedRect", (PyCFunction) _wrap_Window_isExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
36773 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36774 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36775 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36776 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36777 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
36778 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
36779 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
36780 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
36781 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
36782 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
36783 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
36784 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
36785 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
36786 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
36787 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
36788 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
36789 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
36790 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
36791 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
36792 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
36793 | { (char *)"Window_GetBorderFlags", (PyCFunction) _wrap_Window_GetBorderFlags, METH_VARARGS | METH_KEYWORDS }, | |
36794 | { (char *)"Window_GetBorder", (PyCFunction) _wrap_Window_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
36795 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, | |
36796 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
36797 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
36798 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
36799 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS }, | |
36800 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
36801 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
36802 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
36803 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
36804 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
36805 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
36806 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
36807 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
36808 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
36809 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
36810 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
36811 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
36812 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
36813 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
36814 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
36815 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
36816 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
36817 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
36818 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
36819 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
36820 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
36821 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
36822 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
36823 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
36824 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
36825 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
36826 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
36827 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
36828 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
36829 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
36830 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
36831 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
36832 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
36833 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
36834 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
36835 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
36836 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
36837 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
36838 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
36839 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
36840 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
36841 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
36842 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36843 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36844 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
36845 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
36846 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
36847 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
36848 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
36849 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
36850 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
36851 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
36852 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36853 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
36854 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
36855 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
36856 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
36857 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
36858 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
36859 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
36860 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36861 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
36862 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
36863 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
36864 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
36865 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
36866 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36867 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
36868 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
36869 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
36870 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
36871 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
36872 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
36873 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
36874 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
36875 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
36876 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
36877 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
36878 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
36879 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
36880 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
36881 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
36882 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36883 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36884 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
36885 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36886 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36887 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36888 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36889 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36890 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36891 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36892 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36893 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36894 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
36895 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
36896 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
36897 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
36898 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
36899 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
36900 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
36901 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
36902 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
36903 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
36904 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
36905 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
36906 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
36907 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
36908 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
36909 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36910 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
36911 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
36912 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
36913 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
36914 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
36915 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
36916 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36917 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
36918 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
36919 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36920 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
36921 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36922 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36923 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36924 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36925 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36926 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36927 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
36928 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
36929 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
36930 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
36931 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
36932 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36933 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36934 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36935 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
36936 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
36937 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36938 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
36939 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36940 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
36941 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
36942 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
36943 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
36944 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
36945 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
36946 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
36947 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
36948 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36949 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36950 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
36951 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36952 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
36953 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
36954 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
36955 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
36956 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
36957 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
36958 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
36959 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
36960 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
36961 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36962 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36963 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
36964 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36965 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36966 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
36967 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
36968 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
36969 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
36970 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
36971 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
36972 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36973 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36974 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
36975 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
36976 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
36977 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
36978 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
36979 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36980 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36981 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
36982 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
36983 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
36984 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
36985 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
36986 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
36987 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
36988 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
36989 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
36990 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
36991 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
36992 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
36993 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
36994 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
36995 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
36996 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
36997 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
36998 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
36999 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
37000 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
37001 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
37002 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
37003 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
37004 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
37005 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
37006 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
37007 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37008 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
37009 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
37010 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
37011 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
37012 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
37013 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
37014 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
37015 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
37016 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
37017 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
37018 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
37019 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
37020 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
37021 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
37022 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
37023 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
37024 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
37025 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
37026 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
37027 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
37028 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
37029 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
37030 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
37031 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
37032 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
37033 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
37034 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
37035 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
37036 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
37037 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
37038 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
37039 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
37040 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, | |
37041 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
37042 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
37043 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
37044 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
37045 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
37046 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
37047 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
37048 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
37049 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
37050 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37051 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
37052 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
37053 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
37054 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
37055 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
37056 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
37057 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
37058 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
37059 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
37060 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
37061 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
37062 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
37063 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
37064 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
37065 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
37066 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
37067 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
37068 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
37069 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
37070 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
37071 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37072 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
37073 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
37074 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
37075 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
37076 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37077 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
37078 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
37079 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
37080 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37081 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
37082 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
37083 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
37084 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
37085 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
37086 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
37087 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
37088 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
37089 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
37090 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
37091 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
37092 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37093 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
37094 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
37095 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
37096 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
37097 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
37098 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
37099 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
37100 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
37101 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, |
37102 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
37103 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, |
37104 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
37105 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
37106 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
37107 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
37108 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
37109 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
37110 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
37111 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, |
37112 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
37113 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, |
37114 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
37115 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
37116 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
37117 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
37118 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
37119 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
37120 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
37121 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, |
37122 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
37123 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, |
37124 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
37125 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
37126 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
37127 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
37128 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
37129 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
37130 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
37131 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
37132 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
37133 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
37134 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
37135 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
37136 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
37137 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
37138 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
37139 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
37140 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
37141 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
37142 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
37143 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
37144 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
37145 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
37146 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
37147 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 37148 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
37149 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, |
37150 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
37151 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
37152 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
37153 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
37154 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
37155 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
37156 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
37157 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
37158 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
37159 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
37160 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
37161 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
37162 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
37163 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
37164 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
37165 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
37166 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
37167 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
37168 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
37169 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
37170 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
37171 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
37172 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
37173 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
37174 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
37175 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
37176 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
37177 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
37178 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
37179 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
37180 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
37181 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
37182 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
37183 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
37184 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
37185 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
37186 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
37187 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
37188 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
37189 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
37190 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
37191 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
37192 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
37193 | { NULL, NULL } | |
37194 | }; | |
37195 | ||
37196 | ||
37197 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
37198 | ||
37199 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
37200 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
37201 | } | |
37202 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
37203 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
37204 | } | |
37205 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
37206 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
37207 | } | |
37208 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
37209 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
37210 | } | |
37211 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
37212 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
37213 | } | |
37214 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
37215 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
37216 | } | |
37217 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
37218 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
37219 | } | |
37220 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
37221 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
37222 | } | |
37223 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
37224 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
37225 | } | |
37226 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
37227 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
37228 | } | |
37229 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
37230 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
37231 | } | |
37232 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
37233 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
37234 | } | |
37235 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
37236 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
37237 | } | |
37238 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
37239 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
37240 | } | |
37241 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
37242 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
37243 | } | |
37244 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
37245 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
37246 | } | |
37247 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
37248 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
37249 | } | |
37250 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
37251 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
37252 | } | |
37253 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
37254 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
37255 | } | |
37256 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
37257 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
37258 | } | |
37259 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
37260 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
37261 | } | |
37262 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
37263 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
37264 | } | |
37265 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
37266 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
37267 | } | |
37268 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
37269 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
37270 | } | |
37271 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
37272 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
37273 | } | |
37274 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
37275 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
37276 | } | |
37277 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
37278 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
37279 | } | |
37280 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
37281 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
37282 | } | |
37283 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
37284 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
37285 | } | |
37286 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
37287 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
37288 | } | |
37289 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
37290 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
37291 | } | |
37292 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
37293 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
37294 | } | |
37295 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
37296 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
37297 | } | |
37298 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
37299 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
37300 | } | |
37301 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
37302 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
37303 | } | |
37304 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
37305 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
37306 | } | |
37307 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
37308 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
37309 | } | |
37310 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
37311 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
37312 | } | |
37313 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
37314 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
37315 | } | |
37316 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
37317 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
37318 | } | |
37319 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
37320 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
37321 | } | |
37322 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
37323 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
37324 | } | |
37325 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
37326 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
37327 | } | |
37328 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
37329 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
37330 | } | |
37331 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
37332 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
37333 | } | |
37334 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
37335 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
37336 | } | |
37337 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
37338 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
37339 | } | |
37340 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
37341 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
37342 | } | |
37343 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
37344 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
37345 | } | |
37346 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
37347 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
37348 | } | |
37349 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
37350 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
37351 | } | |
37352 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
37353 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
37354 | } | |
37355 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
37356 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
37357 | } | |
37358 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
37359 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
37360 | } | |
37361 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
37362 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
37363 | } | |
37364 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
37365 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
37366 | } | |
37367 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
37368 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
37369 | } | |
37370 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
37371 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
37372 | } | |
37373 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
37374 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
37375 | } | |
37376 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
37377 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
37378 | } | |
37379 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
37380 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
37381 | } | |
37382 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
37383 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
37384 | } | |
37385 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
37386 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
37387 | } | |
37388 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
37389 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
37390 | } | |
37391 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
37392 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
37393 | } | |
37394 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
37395 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
37396 | } | |
37397 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
37398 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
37399 | } | |
37400 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
37401 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
37402 | } | |
37403 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
37404 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
37405 | } | |
37406 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
37407 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
37408 | } | |
37409 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
37410 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
37411 | } | |
37412 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
37413 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
37414 | } | |
37415 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
37416 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
37417 | } | |
37418 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
37419 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
37420 | } | |
37421 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
37422 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
37423 | } | |
37424 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
37425 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
37426 | } | |
37427 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
37428 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
37429 | } | |
37430 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
37431 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
37432 | } | |
37433 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
37434 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
37435 | } | |
37436 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
37437 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
37438 | } | |
37439 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
37440 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
37441 | } | |
37442 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
37443 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
37444 | } | |
37445 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
37446 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
37447 | } | |
37448 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
37449 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
37450 | } | |
37451 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
37452 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
37453 | } | |
37454 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
37455 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
37456 | } | |
37457 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
37458 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
37459 | } | |
37460 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
37461 | return (void *)((wxObject *) ((wxSizer *) x)); | |
37462 | } | |
37463 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
37464 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
37465 | } | |
37466 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
37467 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
37468 | } | |
37469 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
37470 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
37471 | } | |
37472 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
37473 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
37474 | } | |
37475 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
37476 | return (void *)((wxObject *) ((wxImage *) x)); | |
37477 | } | |
37478 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
37479 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
37480 | } | |
37481 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
37482 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
37483 | } | |
37484 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
37485 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
37486 | } | |
37487 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
37488 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
37489 | } | |
37490 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
37491 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
37492 | } | |
41f1cec7 RD |
37493 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
37494 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
37495 | } | |
d14a1e28 RD |
37496 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
37497 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
37498 | } | |
37499 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
37500 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
37501 | } | |
37502 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
37503 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
37504 | } | |
37505 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
37506 | return (void *)((wxObject *) ((wxEvent *) x)); | |
37507 | } | |
37508 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
37509 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
37510 | } | |
37511 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
37512 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
37513 | } | |
37514 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
37515 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
37516 | } | |
37517 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
37518 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
37519 | } | |
37520 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
37521 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
37522 | } | |
37523 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
37524 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
37525 | } | |
37526 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
37527 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
37528 | } | |
37529 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
37530 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
37531 | } | |
37532 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
37533 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
37534 | } | |
37535 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
37536 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
37537 | } | |
37538 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
37539 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
37540 | } | |
37541 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
37542 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
37543 | } | |
37544 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
37545 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
37546 | } | |
37547 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
37548 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
37549 | } | |
37550 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
37551 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
37552 | } | |
37553 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
37554 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
37555 | } | |
37556 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
37557 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
37558 | } | |
37559 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
37560 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
37561 | } | |
37562 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
37563 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
37564 | } | |
37565 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
37566 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
37567 | } | |
37568 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
37569 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
37570 | } | |
37571 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
37572 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
37573 | } | |
37574 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
37575 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
37576 | } | |
37577 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
37578 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
37579 | } | |
37580 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
37581 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
37582 | } | |
37583 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
37584 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
37585 | } | |
37586 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
37587 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
37588 | } | |
37589 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
37590 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
37591 | } | |
37592 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
37593 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
37594 | } | |
37595 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
37596 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
37597 | } | |
37598 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
37599 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
37600 | } | |
37601 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
37602 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
37603 | } | |
37604 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
37605 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
37606 | } | |
37607 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
37608 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
37609 | } | |
37610 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
37611 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
37612 | } | |
37613 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
37614 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
37615 | } | |
37616 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
37617 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
37618 | } | |
37619 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
37620 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
37621 | } | |
37622 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
37623 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
37624 | } | |
37625 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
37626 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
37627 | } | |
37628 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
37629 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
37630 | } | |
37631 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
37632 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
37633 | } | |
37634 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
37635 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
37636 | } | |
37637 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
37638 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
37639 | } | |
37640 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
37641 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
37642 | } | |
37643 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
37644 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
37645 | } | |
37646 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
37647 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
37648 | } | |
37649 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
37650 | return (void *)((wxWindow *) ((wxControl *) x)); | |
37651 | } | |
37652 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
37653 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
37654 | } | |
37655 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
37656 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
37657 | } | |
37658 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
37659 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
37660 | } | |
37661 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
37662 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
37663 | } | |
37664 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
37665 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
37666 | } | |
37667 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
37668 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
37669 | } | |
37670 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
37671 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
37672 | } | |
37673 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
37674 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
37675 | } | |
37676 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
37677 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
37678 | } | |
37679 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
37680 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
37681 | } | |
37682 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
37683 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
37684 | } | |
37685 | static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0},{"_p_wxLayoutConstraints"},{0}}; | |
37686 | static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0},{"_p_wxRealPoint"},{0}}; | |
37687 | static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0},{"_p_wxSizerItem"},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem},{0}}; | |
37688 | static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0},{"_p_wxGBSizerItem"},{0}}; | |
37689 | static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0},{"_p_wxScrollEvent"},{0}}; | |
37690 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0},{"_p_wxIndividualLayoutConstraint"},{0}}; | |
37691 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0},{"_p_wxSizer"},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer},{0}}; | |
37692 | static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0},{"_p_wxBoxSizer"},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer},{0}}; | |
37693 | static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0},{"_p_wxStaticBoxSizer"},{0}}; | |
37694 | static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0},{"_p_wxGridBagSizer"},{0}}; | |
37695 | static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0},{"_p_wxAcceleratorEntry"},{0}}; | |
37696 | static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0},{"_p_wxUpdateUIEvent"},{0}}; | |
37697 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
37698 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}}; | |
37699 | static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer},{"_p_wxGridSizer"},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer},{0}}; | |
37700 | static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer},{"_p_wxFlexGridSizer"},{0}}; | |
37701 | static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0},{"_p_wxInitDialogEvent"},{0}}; | |
37702 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer},{"_p_wxItemContainer"},{0}}; | |
37703 | static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0},{"_p_wxNcPaintEvent"},{0}}; | |
37704 | static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0},{"_p_wxPaintEvent"},{0}}; | |
37705 | static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0},{"_p_wxSysColourChangedEvent"},{0}}; | |
37706 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0},{"_p_wxMouseCaptureChangedEvent"},{0}}; | |
37707 | static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0},{"_p_wxDisplayChangedEvent"},{0}}; | |
37708 | static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0},{"_p_wxPaletteChangedEvent"},{0}}; | |
37709 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}}; | |
37710 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
37711 | static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0},{"_p_wxMenuBarBase"},{0}}; | |
37712 | static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0},{"_p_wxSetCursorEvent"},{0}}; | |
37713 | static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0},{"_p_wxFSFile"},{0}}; | |
37714 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
37715 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
37716 | static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0},{"_p_wxPoint2D"},{0}}; | |
37717 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
37718 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
37719 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
37720 | static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0},{"_p_wxPySizer"},{0}}; | |
37721 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxNotifyEvent"},{0}}; | |
37722 | static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0},{"_p_wxPyEvent"},{0}}; | |
37723 | static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0},{"_p_wxPropagationDisabler"},{0}}; | |
37724 | static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0},{"_p_wxAppTraits"},{0}}; | |
37725 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
37726 | static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0},{"_p_wxShowEvent"},{0}}; | |
37727 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
37728 | static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0},{"_p_wxMaximizeEvent"},{0}}; | |
37729 | static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0},{"_p_wxIconizeEvent"},{0}}; | |
37730 | static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0},{"_p_wxActivateEvent"},{0}}; | |
37731 | static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0},{"_p_wxMoveEvent"},{0}}; | |
37732 | static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0},{"_p_wxSizeEvent"},{0}}; | |
37733 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0},{"_p_wxQueryNewPaletteEvent"},{0}}; | |
37734 | static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0},{"_p_wxWindowCreateEvent"},{0}}; | |
37735 | static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0},{"_p_wxIdleEvent"},{0}}; | |
37736 | static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0},{"_p_wxMenuItem"},{0}}; | |
37737 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
37738 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
37739 | static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0},{"_p_wxTIFFHandler"},{0}}; | |
37740 | static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0},{"_p_wxXPMHandler"},{0}}; | |
37741 | static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0},{"_p_wxPNMHandler"},{0}}; | |
37742 | static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0},{"_p_wxJPEGHandler"},{0}}; | |
37743 | static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0},{"_p_wxPCXHandler"},{0}}; | |
37744 | static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0},{"_p_wxGIFHandler"},{0}}; | |
37745 | static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0},{"_p_wxPNGHandler"},{0}}; | |
37746 | static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0},{"_p_wxANIHandler"},{0}}; | |
37747 | static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0},{"_p_wxMemoryFSHandler"},{0}}; | |
37748 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{0}}; | |
37749 | static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0},{"_p_wxCURHandler"},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler},{0}}; | |
37750 | static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0},{"_p_wxICOHandler"},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler},{0}}; | |
37751 | static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0},{"_p_wxBMPHandler"},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler},{0}}; | |
37752 | static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0},{"_p_wxImageHandler"},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler},{0}}; | |
37753 | static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0},{"_p_wxFileSystemHandler"},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler},{0}}; | |
37754 | static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0},{"_p_wxPyFileSystemHandler"},{0}}; | |
37755 | static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0},{"_p_wxInternetFSHandler"},{0}}; | |
37756 | static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0},{"_p_wxZipFSHandler"},{0}}; | |
37757 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
37758 | static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0},{"_p_wxGBSpan"},{0}}; | |
37759 | static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0},{"_p_wxPropagateOnce"},{0}}; | |
37760 | static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0},{"_p_wxAcceleratorTable"},{0}}; | |
37761 | static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0},{"_p_wxGBPosition"},{0}}; | |
37762 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
37763 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
37764 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0},{"_p_wxScrollWinEvent"},{0}}; | |
37765 | static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0},{"_p_wxImageHistogram"},{0}}; | |
37766 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
37767 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
37768 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
41f1cec7 | 37769 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}}; |
d14a1e28 RD |
37770 | static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0},{"_p_wxPyInputStream"},{0}}; |
37771 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; | |
37772 | static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}}; | |
37773 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
37774 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; | |
37775 | static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0},{"_p_wxNavigationKeyEvent"},{0}}; | |
37776 | static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0},{"_p_wxWindowDestroyEvent"},{0}}; | |
37777 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{0}}; | |
37778 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0},{"_p_wxMenuBar"},{0}}; | |
37779 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
37780 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}}; | |
37781 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
37782 | static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0},{"_p_wxMenuEvent"},{0}}; | |
37783 | static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0},{"_p_wxContextMenuEvent"},{0}}; | |
37784 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
37785 | static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0},{"_p_wxCloseEvent"},{0}}; | |
37786 | static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0},{"_p_wxEraseEvent"},{0}}; | |
37787 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
37788 | static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0},{"_p_wxPyApp"},{0}}; | |
37789 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{0}}; | |
37790 | static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0},{"_p_wxPyCommandEvent"},{0}}; | |
44127b65 | 37791 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0},{"_p_wxPyDropTarget"},{0}}; |
d14a1e28 RD |
37792 | static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0},{"_p_wxChildFocusEvent"},{0}}; |
37793 | static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0},{"_p_wxFocusEvent"},{0}}; | |
37794 | static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0},{"_p_wxDropFilesEvent"},{0}}; | |
37795 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxControlWithItems"},{0}}; | |
37796 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
37797 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
37798 | static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0},{"_p_wxPyValidator"},{0}}; | |
37799 | ||
37800 | static swig_type_info *swig_types_initial[] = { | |
37801 | _swigt__p_wxLayoutConstraints, | |
37802 | _swigt__p_wxRealPoint, | |
37803 | _swigt__p_wxSizerItem, | |
37804 | _swigt__p_wxGBSizerItem, | |
37805 | _swigt__p_wxScrollEvent, | |
37806 | _swigt__p_wxIndividualLayoutConstraint, | |
37807 | _swigt__p_wxSizer, | |
37808 | _swigt__p_wxBoxSizer, | |
37809 | _swigt__p_wxStaticBoxSizer, | |
37810 | _swigt__p_wxGridBagSizer, | |
37811 | _swigt__p_wxAcceleratorEntry, | |
37812 | _swigt__p_wxUpdateUIEvent, | |
37813 | _swigt__p_wxMenu, | |
37814 | _swigt__p_wxEvent, | |
37815 | _swigt__p_wxGridSizer, | |
37816 | _swigt__p_wxFlexGridSizer, | |
37817 | _swigt__p_wxInitDialogEvent, | |
37818 | _swigt__p_wxItemContainer, | |
37819 | _swigt__p_wxNcPaintEvent, | |
37820 | _swigt__p_wxPaintEvent, | |
37821 | _swigt__p_wxSysColourChangedEvent, | |
37822 | _swigt__p_wxMouseCaptureChangedEvent, | |
37823 | _swigt__p_wxDisplayChangedEvent, | |
37824 | _swigt__p_wxPaletteChangedEvent, | |
37825 | _swigt__p_wxControl, | |
37826 | _swigt__p_wxFont, | |
37827 | _swigt__p_wxMenuBarBase, | |
37828 | _swigt__p_wxSetCursorEvent, | |
37829 | _swigt__p_wxFSFile, | |
37830 | _swigt__p_wxCaret, | |
37831 | _swigt__p_wxRegion, | |
37832 | _swigt__p_wxPoint2D, | |
37833 | _swigt__p_int, | |
37834 | _swigt__p_wxSize, | |
37835 | _swigt__p_wxDC, | |
37836 | _swigt__p_wxPySizer, | |
37837 | _swigt__p_wxNotifyEvent, | |
37838 | _swigt__p_wxPyEvent, | |
37839 | _swigt__p_wxPropagationDisabler, | |
37840 | _swigt__p_wxAppTraits, | |
37841 | _swigt__p_wxArrayString, | |
37842 | _swigt__p_wxShowEvent, | |
37843 | _swigt__p_wxToolTip, | |
37844 | _swigt__p_wxMaximizeEvent, | |
37845 | _swigt__p_wxIconizeEvent, | |
37846 | _swigt__p_wxActivateEvent, | |
37847 | _swigt__p_wxMoveEvent, | |
37848 | _swigt__p_wxSizeEvent, | |
37849 | _swigt__p_wxQueryNewPaletteEvent, | |
37850 | _swigt__p_wxWindowCreateEvent, | |
37851 | _swigt__p_wxIdleEvent, | |
37852 | _swigt__p_wxMenuItem, | |
37853 | _swigt__p_wxStaticBox, | |
37854 | _swigt__p_long, | |
37855 | _swigt__p_wxTIFFHandler, | |
37856 | _swigt__p_wxXPMHandler, | |
37857 | _swigt__p_wxPNMHandler, | |
37858 | _swigt__p_wxJPEGHandler, | |
37859 | _swigt__p_wxPCXHandler, | |
37860 | _swigt__p_wxGIFHandler, | |
37861 | _swigt__p_wxPNGHandler, | |
37862 | _swigt__p_wxANIHandler, | |
37863 | _swigt__p_wxMemoryFSHandler, | |
37864 | _swigt__p_wxEvtHandler, | |
37865 | _swigt__p_wxCURHandler, | |
37866 | _swigt__p_wxICOHandler, | |
37867 | _swigt__p_wxBMPHandler, | |
37868 | _swigt__p_wxImageHandler, | |
37869 | _swigt__p_wxFileSystemHandler, | |
37870 | _swigt__p_wxPyFileSystemHandler, | |
37871 | _swigt__p_wxInternetFSHandler, | |
37872 | _swigt__p_wxZipFSHandler, | |
37873 | _swigt__p_wxRect, | |
37874 | _swigt__p_wxGBSpan, | |
37875 | _swigt__p_wxPropagateOnce, | |
37876 | _swigt__p_wxAcceleratorTable, | |
37877 | _swigt__p_wxGBPosition, | |
37878 | _swigt__p_wxImage, | |
37879 | _swigt__p_wxFrame, | |
37880 | _swigt__p_wxScrollWinEvent, | |
37881 | _swigt__p_wxImageHistogram, | |
37882 | _swigt__p_byte, | |
37883 | _swigt__p_wxPoint, | |
37884 | _swigt__p_wxCursor, | |
37885 | _swigt__p_wxObject, | |
37886 | _swigt__p_wxPyInputStream, | |
37887 | _swigt__p_wxOutputStream, | |
37888 | _swigt__p_wxInputStream, | |
37889 | _swigt__p_wxDateTime, | |
37890 | _swigt__p_wxKeyEvent, | |
37891 | _swigt__p_wxNavigationKeyEvent, | |
37892 | _swigt__p_wxWindowDestroyEvent, | |
37893 | _swigt__p_wxWindow, | |
37894 | _swigt__p_wxMenuBar, | |
37895 | _swigt__p_wxString, | |
37896 | _swigt__p_wxFileSystem, | |
37897 | _swigt__p_wxBitmap, | |
37898 | _swigt__p_wxMenuEvent, | |
37899 | _swigt__p_wxContextMenuEvent, | |
37900 | _swigt__p_unsigned_char, | |
37901 | _swigt__p_wxCloseEvent, | |
37902 | _swigt__p_wxEraseEvent, | |
37903 | _swigt__p_wxMouseEvent, | |
37904 | _swigt__p_wxPyApp, | |
37905 | _swigt__p_wxCommandEvent, | |
37906 | _swigt__p_wxPyCommandEvent, | |
44127b65 | 37907 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
37908 | _swigt__p_wxChildFocusEvent, |
37909 | _swigt__p_wxFocusEvent, | |
37910 | _swigt__p_wxDropFilesEvent, | |
37911 | _swigt__p_wxControlWithItems, | |
37912 | _swigt__p_wxColour, | |
37913 | _swigt__p_wxValidator, | |
37914 | _swigt__p_wxPyValidator, | |
37915 | 0 | |
37916 | }; | |
37917 | ||
37918 | ||
37919 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
37920 | ||
37921 | static swig_const_info swig_const_table[] = { | |
37922 | { SWIG_PY_INT, (char *)"NOT_FOUND", (long) wxNOT_FOUND, 0, 0, 0}, | |
37923 | { SWIG_PY_INT, (char *)"VSCROLL", (long) wxVSCROLL, 0, 0, 0}, | |
37924 | { SWIG_PY_INT, (char *)"HSCROLL", (long) wxHSCROLL, 0, 0, 0}, | |
37925 | { SWIG_PY_INT, (char *)"CAPTION", (long) wxCAPTION, 0, 0, 0}, | |
37926 | { SWIG_PY_INT, (char *)"DOUBLE_BORDER", (long) wxDOUBLE_BORDER, 0, 0, 0}, | |
37927 | { SWIG_PY_INT, (char *)"SUNKEN_BORDER", (long) wxSUNKEN_BORDER, 0, 0, 0}, | |
37928 | { SWIG_PY_INT, (char *)"RAISED_BORDER", (long) wxRAISED_BORDER, 0, 0, 0}, | |
37929 | { SWIG_PY_INT, (char *)"BORDER", (long) wxBORDER, 0, 0, 0}, | |
37930 | { SWIG_PY_INT, (char *)"SIMPLE_BORDER", (long) wxSIMPLE_BORDER, 0, 0, 0}, | |
37931 | { SWIG_PY_INT, (char *)"STATIC_BORDER", (long) wxSTATIC_BORDER, 0, 0, 0}, | |
37932 | { SWIG_PY_INT, (char *)"TRANSPARENT_WINDOW", (long) wxTRANSPARENT_WINDOW, 0, 0, 0}, | |
37933 | { SWIG_PY_INT, (char *)"NO_BORDER", (long) wxNO_BORDER, 0, 0, 0}, | |
37934 | { SWIG_PY_INT, (char *)"USER_COLOURS", (long) wxUSER_COLOURS, 0, 0, 0}, | |
37935 | { SWIG_PY_INT, (char *)"NO_3D", (long) wxNO_3D, 0, 0, 0}, | |
37936 | { SWIG_PY_INT, (char *)"TAB_TRAVERSAL", (long) wxTAB_TRAVERSAL, 0, 0, 0}, | |
37937 | { SWIG_PY_INT, (char *)"WANTS_CHARS", (long) wxWANTS_CHARS, 0, 0, 0}, | |
37938 | { SWIG_PY_INT, (char *)"POPUP_WINDOW", (long) wxPOPUP_WINDOW, 0, 0, 0}, | |
37939 | { SWIG_PY_INT, (char *)"CENTER_FRAME", (long) wxCENTER_FRAME, 0, 0, 0}, | |
37940 | { SWIG_PY_INT, (char *)"CENTRE_ON_SCREEN", (long) wxCENTRE_ON_SCREEN, 0, 0, 0}, | |
37941 | { SWIG_PY_INT, (char *)"CENTER_ON_SCREEN", (long) wxCENTER_ON_SCREEN, 0, 0, 0}, | |
37942 | { SWIG_PY_INT, (char *)"STAY_ON_TOP", (long) wxSTAY_ON_TOP, 0, 0, 0}, | |
37943 | { SWIG_PY_INT, (char *)"ICONIZE", (long) wxICONIZE, 0, 0, 0}, | |
37944 | { SWIG_PY_INT, (char *)"MINIMIZE", (long) wxMINIMIZE, 0, 0, 0}, | |
37945 | { SWIG_PY_INT, (char *)"MAXIMIZE", (long) wxMAXIMIZE, 0, 0, 0}, | |
37946 | { SWIG_PY_INT, (char *)"CLOSE_BOX", (long) wxCLOSE_BOX, 0, 0, 0}, | |
37947 | { SWIG_PY_INT, (char *)"THICK_FRAME", (long) wxTHICK_FRAME, 0, 0, 0}, | |
37948 | { SWIG_PY_INT, (char *)"SYSTEM_MENU", (long) wxSYSTEM_MENU, 0, 0, 0}, | |
37949 | { SWIG_PY_INT, (char *)"MINIMIZE_BOX", (long) wxMINIMIZE_BOX, 0, 0, 0}, | |
37950 | { SWIG_PY_INT, (char *)"MAXIMIZE_BOX", (long) wxMAXIMIZE_BOX, 0, 0, 0}, | |
37951 | { SWIG_PY_INT, (char *)"TINY_CAPTION_HORIZ", (long) wxTINY_CAPTION_HORIZ, 0, 0, 0}, | |
37952 | { SWIG_PY_INT, (char *)"TINY_CAPTION_VERT", (long) wxTINY_CAPTION_VERT, 0, 0, 0}, | |
37953 | { SWIG_PY_INT, (char *)"RESIZE_BOX", (long) wxRESIZE_BOX, 0, 0, 0}, | |
37954 | { SWIG_PY_INT, (char *)"RESIZE_BORDER", (long) wxRESIZE_BORDER, 0, 0, 0}, | |
37955 | { SWIG_PY_INT, (char *)"DIALOG_MODAL", (long) wxDIALOG_MODAL, 0, 0, 0}, | |
37956 | { SWIG_PY_INT, (char *)"DIALOG_MODELESS", (long) wxDIALOG_MODELESS, 0, 0, 0}, | |
37957 | { SWIG_PY_INT, (char *)"DIALOG_NO_PARENT", (long) wxDIALOG_NO_PARENT, 0, 0, 0}, | |
37958 | { SWIG_PY_INT, (char *)"DEFAULT_FRAME_STYLE", (long) wxDEFAULT_FRAME_STYLE, 0, 0, 0}, | |
37959 | { SWIG_PY_INT, (char *)"DEFAULT_DIALOG_STYLE", (long) wxDEFAULT_DIALOG_STYLE, 0, 0, 0}, | |
37960 | { SWIG_PY_INT, (char *)"FRAME_TOOL_WINDOW", (long) wxFRAME_TOOL_WINDOW, 0, 0, 0}, | |
37961 | { SWIG_PY_INT, (char *)"FRAME_FLOAT_ON_PARENT", (long) wxFRAME_FLOAT_ON_PARENT, 0, 0, 0}, | |
37962 | { SWIG_PY_INT, (char *)"FRAME_NO_WINDOW_MENU", (long) wxFRAME_NO_WINDOW_MENU, 0, 0, 0}, | |
37963 | { SWIG_PY_INT, (char *)"FRAME_NO_TASKBAR", (long) wxFRAME_NO_TASKBAR, 0, 0, 0}, | |
37964 | { SWIG_PY_INT, (char *)"FRAME_SHAPED", (long) wxFRAME_SHAPED, 0, 0, 0}, | |
37965 | { SWIG_PY_INT, (char *)"ED_CLIENT_MARGIN", (long) wxED_CLIENT_MARGIN, 0, 0, 0}, | |
37966 | { SWIG_PY_INT, (char *)"ED_BUTTONS_BOTTOM", (long) wxED_BUTTONS_BOTTOM, 0, 0, 0}, | |
37967 | { SWIG_PY_INT, (char *)"ED_BUTTONS_RIGHT", (long) wxED_BUTTONS_RIGHT, 0, 0, 0}, | |
37968 | { SWIG_PY_INT, (char *)"ED_STATIC_LINE", (long) wxED_STATIC_LINE, 0, 0, 0}, | |
37969 | { SWIG_PY_INT, (char *)"EXT_DIALOG_STYLE", (long) wxEXT_DIALOG_STYLE, 0, 0, 0}, | |
37970 | { SWIG_PY_INT, (char *)"CLIP_CHILDREN", (long) wxCLIP_CHILDREN, 0, 0, 0}, | |
37971 | { SWIG_PY_INT, (char *)"CLIP_SIBLINGS", (long) wxCLIP_SIBLINGS, 0, 0, 0}, | |
37972 | { SWIG_PY_INT, (char *)"RETAINED", (long) wxRETAINED, 0, 0, 0}, | |
37973 | { SWIG_PY_INT, (char *)"BACKINGSTORE", (long) wxBACKINGSTORE, 0, 0, 0}, | |
37974 | { SWIG_PY_INT, (char *)"COLOURED", (long) wxCOLOURED, 0, 0, 0}, | |
37975 | { SWIG_PY_INT, (char *)"FIXED_LENGTH", (long) wxFIXED_LENGTH, 0, 0, 0}, | |
37976 | { SWIG_PY_INT, (char *)"LB_NEEDED_SB", (long) wxLB_NEEDED_SB, 0, 0, 0}, | |
37977 | { SWIG_PY_INT, (char *)"LB_ALWAYS_SB", (long) wxLB_ALWAYS_SB, 0, 0, 0}, | |
37978 | { SWIG_PY_INT, (char *)"LB_SORT", (long) wxLB_SORT, 0, 0, 0}, | |
37979 | { SWIG_PY_INT, (char *)"LB_SINGLE", (long) wxLB_SINGLE, 0, 0, 0}, | |
37980 | { SWIG_PY_INT, (char *)"LB_MULTIPLE", (long) wxLB_MULTIPLE, 0, 0, 0}, | |
37981 | { SWIG_PY_INT, (char *)"LB_EXTENDED", (long) wxLB_EXTENDED, 0, 0, 0}, | |
37982 | { SWIG_PY_INT, (char *)"LB_OWNERDRAW", (long) wxLB_OWNERDRAW, 0, 0, 0}, | |
37983 | { SWIG_PY_INT, (char *)"LB_HSCROLL", (long) wxLB_HSCROLL, 0, 0, 0}, | |
37984 | { SWIG_PY_INT, (char *)"PROCESS_ENTER", (long) wxPROCESS_ENTER, 0, 0, 0}, | |
37985 | { SWIG_PY_INT, (char *)"PASSWORD", (long) wxPASSWORD, 0, 0, 0}, | |
37986 | { SWIG_PY_INT, (char *)"CB_SIMPLE", (long) wxCB_SIMPLE, 0, 0, 0}, | |
37987 | { SWIG_PY_INT, (char *)"CB_DROPDOWN", (long) wxCB_DROPDOWN, 0, 0, 0}, | |
37988 | { SWIG_PY_INT, (char *)"CB_SORT", (long) wxCB_SORT, 0, 0, 0}, | |
37989 | { SWIG_PY_INT, (char *)"CB_READONLY", (long) wxCB_READONLY, 0, 0, 0}, | |
37990 | { SWIG_PY_INT, (char *)"RA_HORIZONTAL", (long) wxRA_HORIZONTAL, 0, 0, 0}, | |
37991 | { SWIG_PY_INT, (char *)"RA_VERTICAL", (long) wxRA_VERTICAL, 0, 0, 0}, | |
37992 | { SWIG_PY_INT, (char *)"RA_SPECIFY_ROWS", (long) wxRA_SPECIFY_ROWS, 0, 0, 0}, | |
37993 | { SWIG_PY_INT, (char *)"RA_SPECIFY_COLS", (long) wxRA_SPECIFY_COLS, 0, 0, 0}, | |
37994 | { SWIG_PY_INT, (char *)"RB_GROUP", (long) wxRB_GROUP, 0, 0, 0}, | |
37995 | { SWIG_PY_INT, (char *)"RB_SINGLE", (long) wxRB_SINGLE, 0, 0, 0}, | |
37996 | { SWIG_PY_INT, (char *)"SL_HORIZONTAL", (long) wxSL_HORIZONTAL, 0, 0, 0}, | |
37997 | { SWIG_PY_INT, (char *)"SL_VERTICAL", (long) wxSL_VERTICAL, 0, 0, 0}, | |
37998 | { SWIG_PY_INT, (char *)"SL_AUTOTICKS", (long) wxSL_AUTOTICKS, 0, 0, 0}, | |
37999 | { SWIG_PY_INT, (char *)"SL_LABELS", (long) wxSL_LABELS, 0, 0, 0}, | |
38000 | { SWIG_PY_INT, (char *)"SL_LEFT", (long) wxSL_LEFT, 0, 0, 0}, | |
38001 | { SWIG_PY_INT, (char *)"SL_TOP", (long) wxSL_TOP, 0, 0, 0}, | |
38002 | { SWIG_PY_INT, (char *)"SL_RIGHT", (long) wxSL_RIGHT, 0, 0, 0}, | |
38003 | { SWIG_PY_INT, (char *)"SL_BOTTOM", (long) wxSL_BOTTOM, 0, 0, 0}, | |
38004 | { SWIG_PY_INT, (char *)"SL_BOTH", (long) wxSL_BOTH, 0, 0, 0}, | |
38005 | { SWIG_PY_INT, (char *)"SL_SELRANGE", (long) wxSL_SELRANGE, 0, 0, 0}, | |
38006 | { SWIG_PY_INT, (char *)"SB_HORIZONTAL", (long) wxSB_HORIZONTAL, 0, 0, 0}, | |
38007 | { SWIG_PY_INT, (char *)"SB_VERTICAL", (long) wxSB_VERTICAL, 0, 0, 0}, | |
38008 | { SWIG_PY_INT, (char *)"ST_SIZEGRIP", (long) wxST_SIZEGRIP, 0, 0, 0}, | |
38009 | { SWIG_PY_INT, (char *)"ST_NO_AUTORESIZE", (long) wxST_NO_AUTORESIZE, 0, 0, 0}, | |
38010 | { SWIG_PY_INT, (char *)"FLOOD_SURFACE", (long) wxFLOOD_SURFACE, 0, 0, 0}, | |
38011 | { SWIG_PY_INT, (char *)"FLOOD_BORDER", (long) wxFLOOD_BORDER, 0, 0, 0}, | |
38012 | { SWIG_PY_INT, (char *)"ODDEVEN_RULE", (long) wxODDEVEN_RULE, 0, 0, 0}, | |
38013 | { SWIG_PY_INT, (char *)"WINDING_RULE", (long) wxWINDING_RULE, 0, 0, 0}, | |
38014 | { SWIG_PY_INT, (char *)"TOOL_TOP", (long) wxTOOL_TOP, 0, 0, 0}, | |
38015 | { SWIG_PY_INT, (char *)"TOOL_BOTTOM", (long) wxTOOL_BOTTOM, 0, 0, 0}, | |
38016 | { SWIG_PY_INT, (char *)"TOOL_LEFT", (long) wxTOOL_LEFT, 0, 0, 0}, | |
38017 | { SWIG_PY_INT, (char *)"TOOL_RIGHT", (long) wxTOOL_RIGHT, 0, 0, 0}, | |
38018 | { SWIG_PY_INT, (char *)"OK", (long) wxOK, 0, 0, 0}, | |
38019 | { SWIG_PY_INT, (char *)"YES_NO", (long) wxYES_NO, 0, 0, 0}, | |
38020 | { SWIG_PY_INT, (char *)"CANCEL", (long) wxCANCEL, 0, 0, 0}, | |
38021 | { SWIG_PY_INT, (char *)"YES", (long) wxYES, 0, 0, 0}, | |
38022 | { SWIG_PY_INT, (char *)"NO", (long) wxNO, 0, 0, 0}, | |
38023 | { SWIG_PY_INT, (char *)"NO_DEFAULT", (long) wxNO_DEFAULT, 0, 0, 0}, | |
38024 | { SWIG_PY_INT, (char *)"YES_DEFAULT", (long) wxYES_DEFAULT, 0, 0, 0}, | |
38025 | { SWIG_PY_INT, (char *)"ICON_EXCLAMATION", (long) wxICON_EXCLAMATION, 0, 0, 0}, | |
38026 | { SWIG_PY_INT, (char *)"ICON_HAND", (long) wxICON_HAND, 0, 0, 0}, | |
38027 | { SWIG_PY_INT, (char *)"ICON_QUESTION", (long) wxICON_QUESTION, 0, 0, 0}, | |
38028 | { SWIG_PY_INT, (char *)"ICON_INFORMATION", (long) wxICON_INFORMATION, 0, 0, 0}, | |
38029 | { SWIG_PY_INT, (char *)"ICON_STOP", (long) wxICON_STOP, 0, 0, 0}, | |
38030 | { SWIG_PY_INT, (char *)"ICON_ASTERISK", (long) wxICON_ASTERISK, 0, 0, 0}, | |
38031 | { SWIG_PY_INT, (char *)"ICON_MASK", (long) wxICON_MASK, 0, 0, 0}, | |
38032 | { SWIG_PY_INT, (char *)"ICON_WARNING", (long) wxICON_WARNING, 0, 0, 0}, | |
38033 | { SWIG_PY_INT, (char *)"ICON_ERROR", (long) wxICON_ERROR, 0, 0, 0}, | |
38034 | { SWIG_PY_INT, (char *)"FORWARD", (long) wxFORWARD, 0, 0, 0}, | |
38035 | { SWIG_PY_INT, (char *)"BACKWARD", (long) wxBACKWARD, 0, 0, 0}, | |
38036 | { SWIG_PY_INT, (char *)"RESET", (long) wxRESET, 0, 0, 0}, | |
38037 | { SWIG_PY_INT, (char *)"HELP", (long) wxHELP, 0, 0, 0}, | |
38038 | { SWIG_PY_INT, (char *)"MORE", (long) wxMORE, 0, 0, 0}, | |
38039 | { SWIG_PY_INT, (char *)"SETUP", (long) wxSETUP, 0, 0, 0}, | |
38040 | { SWIG_PY_INT, (char *)"SIZE_AUTO_WIDTH", (long) wxSIZE_AUTO_WIDTH, 0, 0, 0}, | |
38041 | { SWIG_PY_INT, (char *)"SIZE_AUTO_HEIGHT", (long) wxSIZE_AUTO_HEIGHT, 0, 0, 0}, | |
38042 | { SWIG_PY_INT, (char *)"SIZE_AUTO", (long) wxSIZE_AUTO, 0, 0, 0}, | |
38043 | { SWIG_PY_INT, (char *)"SIZE_USE_EXISTING", (long) wxSIZE_USE_EXISTING, 0, 0, 0}, | |
38044 | { SWIG_PY_INT, (char *)"SIZE_ALLOW_MINUS_ONE", (long) wxSIZE_ALLOW_MINUS_ONE, 0, 0, 0}, | |
38045 | { SWIG_PY_INT, (char *)"PORTRAIT", (long) wxPORTRAIT, 0, 0, 0}, | |
38046 | { SWIG_PY_INT, (char *)"LANDSCAPE", (long) wxLANDSCAPE, 0, 0, 0}, | |
38047 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_HIGH", (long) wxPRINT_QUALITY_HIGH, 0, 0, 0}, | |
38048 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_MEDIUM", (long) wxPRINT_QUALITY_MEDIUM, 0, 0, 0}, | |
38049 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_LOW", (long) wxPRINT_QUALITY_LOW, 0, 0, 0}, | |
38050 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_DRAFT", (long) wxPRINT_QUALITY_DRAFT, 0, 0, 0}, | |
38051 | { SWIG_PY_INT, (char *)"ID_ANY", (long) wxID_ANY, 0, 0, 0}, | |
38052 | { SWIG_PY_INT, (char *)"ID_SEPARATOR", (long) wxID_SEPARATOR, 0, 0, 0}, | |
38053 | { SWIG_PY_INT, (char *)"ID_LOWEST", (long) wxID_LOWEST, 0, 0, 0}, | |
38054 | { SWIG_PY_INT, (char *)"ID_OPEN", (long) wxID_OPEN, 0, 0, 0}, | |
38055 | { SWIG_PY_INT, (char *)"ID_CLOSE", (long) wxID_CLOSE, 0, 0, 0}, | |
38056 | { SWIG_PY_INT, (char *)"ID_NEW", (long) wxID_NEW, 0, 0, 0}, | |
38057 | { SWIG_PY_INT, (char *)"ID_SAVE", (long) wxID_SAVE, 0, 0, 0}, | |
38058 | { SWIG_PY_INT, (char *)"ID_SAVEAS", (long) wxID_SAVEAS, 0, 0, 0}, | |
38059 | { SWIG_PY_INT, (char *)"ID_REVERT", (long) wxID_REVERT, 0, 0, 0}, | |
38060 | { SWIG_PY_INT, (char *)"ID_EXIT", (long) wxID_EXIT, 0, 0, 0}, | |
38061 | { SWIG_PY_INT, (char *)"ID_UNDO", (long) wxID_UNDO, 0, 0, 0}, | |
38062 | { SWIG_PY_INT, (char *)"ID_REDO", (long) wxID_REDO, 0, 0, 0}, | |
38063 | { SWIG_PY_INT, (char *)"ID_HELP", (long) wxID_HELP, 0, 0, 0}, | |
38064 | { SWIG_PY_INT, (char *)"ID_PRINT", (long) wxID_PRINT, 0, 0, 0}, | |
38065 | { SWIG_PY_INT, (char *)"ID_PRINT_SETUP", (long) wxID_PRINT_SETUP, 0, 0, 0}, | |
38066 | { SWIG_PY_INT, (char *)"ID_PREVIEW", (long) wxID_PREVIEW, 0, 0, 0}, | |
38067 | { SWIG_PY_INT, (char *)"ID_ABOUT", (long) wxID_ABOUT, 0, 0, 0}, | |
38068 | { SWIG_PY_INT, (char *)"ID_HELP_CONTENTS", (long) wxID_HELP_CONTENTS, 0, 0, 0}, | |
38069 | { SWIG_PY_INT, (char *)"ID_HELP_COMMANDS", (long) wxID_HELP_COMMANDS, 0, 0, 0}, | |
38070 | { SWIG_PY_INT, (char *)"ID_HELP_PROCEDURES", (long) wxID_HELP_PROCEDURES, 0, 0, 0}, | |
38071 | { SWIG_PY_INT, (char *)"ID_HELP_CONTEXT", (long) wxID_HELP_CONTEXT, 0, 0, 0}, | |
38072 | { SWIG_PY_INT, (char *)"ID_CLOSE_ALL", (long) wxID_CLOSE_ALL, 0, 0, 0}, | |
38073 | { SWIG_PY_INT, (char *)"ID_PREFERENCES", (long) wxID_PREFERENCES, 0, 0, 0}, | |
38074 | { SWIG_PY_INT, (char *)"ID_CUT", (long) wxID_CUT, 0, 0, 0}, | |
38075 | { SWIG_PY_INT, (char *)"ID_COPY", (long) wxID_COPY, 0, 0, 0}, | |
38076 | { SWIG_PY_INT, (char *)"ID_PASTE", (long) wxID_PASTE, 0, 0, 0}, | |
38077 | { SWIG_PY_INT, (char *)"ID_CLEAR", (long) wxID_CLEAR, 0, 0, 0}, | |
38078 | { SWIG_PY_INT, (char *)"ID_FIND", (long) wxID_FIND, 0, 0, 0}, | |
38079 | { SWIG_PY_INT, (char *)"ID_DUPLICATE", (long) wxID_DUPLICATE, 0, 0, 0}, | |
38080 | { SWIG_PY_INT, (char *)"ID_SELECTALL", (long) wxID_SELECTALL, 0, 0, 0}, | |
38081 | { SWIG_PY_INT, (char *)"ID_DELETE", (long) wxID_DELETE, 0, 0, 0}, | |
38082 | { SWIG_PY_INT, (char *)"ID_REPLACE", (long) wxID_REPLACE, 0, 0, 0}, | |
38083 | { SWIG_PY_INT, (char *)"ID_REPLACE_ALL", (long) wxID_REPLACE_ALL, 0, 0, 0}, | |
38084 | { SWIG_PY_INT, (char *)"ID_PROPERTIES", (long) wxID_PROPERTIES, 0, 0, 0}, | |
38085 | { SWIG_PY_INT, (char *)"ID_VIEW_DETAILS", (long) wxID_VIEW_DETAILS, 0, 0, 0}, | |
38086 | { SWIG_PY_INT, (char *)"ID_VIEW_LARGEICONS", (long) wxID_VIEW_LARGEICONS, 0, 0, 0}, | |
38087 | { SWIG_PY_INT, (char *)"ID_VIEW_SMALLICONS", (long) wxID_VIEW_SMALLICONS, 0, 0, 0}, | |
38088 | { SWIG_PY_INT, (char *)"ID_VIEW_LIST", (long) wxID_VIEW_LIST, 0, 0, 0}, | |
38089 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTDATE", (long) wxID_VIEW_SORTDATE, 0, 0, 0}, | |
38090 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTNAME", (long) wxID_VIEW_SORTNAME, 0, 0, 0}, | |
38091 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTSIZE", (long) wxID_VIEW_SORTSIZE, 0, 0, 0}, | |
38092 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTTYPE", (long) wxID_VIEW_SORTTYPE, 0, 0, 0}, | |
38093 | { SWIG_PY_INT, (char *)"ID_FILE1", (long) wxID_FILE1, 0, 0, 0}, | |
38094 | { SWIG_PY_INT, (char *)"ID_FILE2", (long) wxID_FILE2, 0, 0, 0}, | |
38095 | { SWIG_PY_INT, (char *)"ID_FILE3", (long) wxID_FILE3, 0, 0, 0}, | |
38096 | { SWIG_PY_INT, (char *)"ID_FILE4", (long) wxID_FILE4, 0, 0, 0}, | |
38097 | { SWIG_PY_INT, (char *)"ID_FILE5", (long) wxID_FILE5, 0, 0, 0}, | |
38098 | { SWIG_PY_INT, (char *)"ID_FILE6", (long) wxID_FILE6, 0, 0, 0}, | |
38099 | { SWIG_PY_INT, (char *)"ID_FILE7", (long) wxID_FILE7, 0, 0, 0}, | |
38100 | { SWIG_PY_INT, (char *)"ID_FILE8", (long) wxID_FILE8, 0, 0, 0}, | |
38101 | { SWIG_PY_INT, (char *)"ID_FILE9", (long) wxID_FILE9, 0, 0, 0}, | |
38102 | { SWIG_PY_INT, (char *)"ID_OK", (long) wxID_OK, 0, 0, 0}, | |
38103 | { SWIG_PY_INT, (char *)"ID_CANCEL", (long) wxID_CANCEL, 0, 0, 0}, | |
38104 | { SWIG_PY_INT, (char *)"ID_APPLY", (long) wxID_APPLY, 0, 0, 0}, | |
38105 | { SWIG_PY_INT, (char *)"ID_YES", (long) wxID_YES, 0, 0, 0}, | |
38106 | { SWIG_PY_INT, (char *)"ID_NO", (long) wxID_NO, 0, 0, 0}, | |
38107 | { SWIG_PY_INT, (char *)"ID_STATIC", (long) wxID_STATIC, 0, 0, 0}, | |
38108 | { SWIG_PY_INT, (char *)"ID_FORWARD", (long) wxID_FORWARD, 0, 0, 0}, | |
38109 | { SWIG_PY_INT, (char *)"ID_BACKWARD", (long) wxID_BACKWARD, 0, 0, 0}, | |
38110 | { SWIG_PY_INT, (char *)"ID_DEFAULT", (long) wxID_DEFAULT, 0, 0, 0}, | |
38111 | { SWIG_PY_INT, (char *)"ID_MORE", (long) wxID_MORE, 0, 0, 0}, | |
38112 | { SWIG_PY_INT, (char *)"ID_SETUP", (long) wxID_SETUP, 0, 0, 0}, | |
38113 | { SWIG_PY_INT, (char *)"ID_RESET", (long) wxID_RESET, 0, 0, 0}, | |
38114 | { SWIG_PY_INT, (char *)"ID_CONTEXT_HELP", (long) wxID_CONTEXT_HELP, 0, 0, 0}, | |
38115 | { SWIG_PY_INT, (char *)"ID_YESTOALL", (long) wxID_YESTOALL, 0, 0, 0}, | |
38116 | { SWIG_PY_INT, (char *)"ID_NOTOALL", (long) wxID_NOTOALL, 0, 0, 0}, | |
38117 | { SWIG_PY_INT, (char *)"ID_ABORT", (long) wxID_ABORT, 0, 0, 0}, | |
38118 | { SWIG_PY_INT, (char *)"ID_RETRY", (long) wxID_RETRY, 0, 0, 0}, | |
38119 | { SWIG_PY_INT, (char *)"ID_IGNORE", (long) wxID_IGNORE, 0, 0, 0}, | |
38120 | { SWIG_PY_INT, (char *)"ID_HIGHEST", (long) wxID_HIGHEST, 0, 0, 0}, | |
38121 | { SWIG_PY_INT, (char *)"OPEN", (long) wxOPEN, 0, 0, 0}, | |
38122 | { SWIG_PY_INT, (char *)"SAVE", (long) wxSAVE, 0, 0, 0}, | |
38123 | { SWIG_PY_INT, (char *)"HIDE_READONLY", (long) wxHIDE_READONLY, 0, 0, 0}, | |
38124 | { SWIG_PY_INT, (char *)"OVERWRITE_PROMPT", (long) wxOVERWRITE_PROMPT, 0, 0, 0}, | |
38125 | { SWIG_PY_INT, (char *)"FILE_MUST_EXIST", (long) wxFILE_MUST_EXIST, 0, 0, 0}, | |
38126 | { SWIG_PY_INT, (char *)"MULTIPLE", (long) wxMULTIPLE, 0, 0, 0}, | |
38127 | { SWIG_PY_INT, (char *)"CHANGE_DIR", (long) wxCHANGE_DIR, 0, 0, 0}, | |
38128 | { SWIG_PY_INT, (char *)"ACCEL_ALT", (long) wxACCEL_ALT, 0, 0, 0}, | |
38129 | { SWIG_PY_INT, (char *)"ACCEL_CTRL", (long) wxACCEL_CTRL, 0, 0, 0}, | |
38130 | { SWIG_PY_INT, (char *)"ACCEL_SHIFT", (long) wxACCEL_SHIFT, 0, 0, 0}, | |
38131 | { SWIG_PY_INT, (char *)"ACCEL_NORMAL", (long) wxACCEL_NORMAL, 0, 0, 0}, | |
38132 | { SWIG_PY_INT, (char *)"PD_AUTO_HIDE", (long) wxPD_AUTO_HIDE, 0, 0, 0}, | |
38133 | { SWIG_PY_INT, (char *)"PD_APP_MODAL", (long) wxPD_APP_MODAL, 0, 0, 0}, | |
38134 | { SWIG_PY_INT, (char *)"PD_CAN_ABORT", (long) wxPD_CAN_ABORT, 0, 0, 0}, | |
38135 | { SWIG_PY_INT, (char *)"PD_ELAPSED_TIME", (long) wxPD_ELAPSED_TIME, 0, 0, 0}, | |
38136 | { SWIG_PY_INT, (char *)"PD_ESTIMATED_TIME", (long) wxPD_ESTIMATED_TIME, 0, 0, 0}, | |
38137 | { SWIG_PY_INT, (char *)"PD_REMAINING_TIME", (long) wxPD_REMAINING_TIME, 0, 0, 0}, | |
38138 | { SWIG_PY_INT, (char *)"DD_NEW_DIR_BUTTON", (long) wxDD_NEW_DIR_BUTTON, 0, 0, 0}, | |
38139 | { SWIG_PY_INT, (char *)"DD_DEFAULT_STYLE", (long) wxDD_DEFAULT_STYLE, 0, 0, 0}, | |
38140 | { SWIG_PY_INT, (char *)"MENU_TEAROFF", (long) wxMENU_TEAROFF, 0, 0, 0}, | |
38141 | { SWIG_PY_INT, (char *)"MB_DOCKABLE", (long) wxMB_DOCKABLE, 0, 0, 0}, | |
38142 | { SWIG_PY_INT, (char *)"NO_FULL_REPAINT_ON_RESIZE", (long) wxNO_FULL_REPAINT_ON_RESIZE, 0, 0, 0}, | |
f0983263 | 38143 | { SWIG_PY_INT, (char *)"FULL_REPAINT_ON_RESIZE", (long) wxFULL_REPAINT_ON_RESIZE, 0, 0, 0}, |
d14a1e28 RD |
38144 | { SWIG_PY_INT, (char *)"LI_HORIZONTAL", (long) wxLI_HORIZONTAL, 0, 0, 0}, |
38145 | { SWIG_PY_INT, (char *)"LI_VERTICAL", (long) wxLI_VERTICAL, 0, 0, 0}, | |
38146 | { SWIG_PY_INT, (char *)"WS_EX_VALIDATE_RECURSIVELY", (long) wxWS_EX_VALIDATE_RECURSIVELY, 0, 0, 0}, | |
38147 | { SWIG_PY_INT, (char *)"WS_EX_BLOCK_EVENTS", (long) wxWS_EX_BLOCK_EVENTS, 0, 0, 0}, | |
38148 | { SWIG_PY_INT, (char *)"WS_EX_TRANSIENT", (long) wxWS_EX_TRANSIENT, 0, 0, 0}, | |
38149 | { SWIG_PY_INT, (char *)"WS_EX_THEMED_BACKGROUND", (long) wxWS_EX_THEMED_BACKGROUND, 0, 0, 0}, | |
38150 | { SWIG_PY_INT, (char *)"WS_EX_PROCESS_IDLE", (long) wxWS_EX_PROCESS_IDLE, 0, 0, 0}, | |
38151 | { SWIG_PY_INT, (char *)"WS_EX_PROCESS_UI_UPDATES", (long) wxWS_EX_PROCESS_UI_UPDATES, 0, 0, 0}, | |
38152 | { SWIG_PY_INT, (char *)"MM_TEXT", (long) wxMM_TEXT, 0, 0, 0}, | |
38153 | { SWIG_PY_INT, (char *)"MM_LOMETRIC", (long) wxMM_LOMETRIC, 0, 0, 0}, | |
38154 | { SWIG_PY_INT, (char *)"MM_HIMETRIC", (long) wxMM_HIMETRIC, 0, 0, 0}, | |
38155 | { SWIG_PY_INT, (char *)"MM_LOENGLISH", (long) wxMM_LOENGLISH, 0, 0, 0}, | |
38156 | { SWIG_PY_INT, (char *)"MM_HIENGLISH", (long) wxMM_HIENGLISH, 0, 0, 0}, | |
38157 | { SWIG_PY_INT, (char *)"MM_TWIPS", (long) wxMM_TWIPS, 0, 0, 0}, | |
38158 | { SWIG_PY_INT, (char *)"MM_ISOTROPIC", (long) wxMM_ISOTROPIC, 0, 0, 0}, | |
38159 | { SWIG_PY_INT, (char *)"MM_ANISOTROPIC", (long) wxMM_ANISOTROPIC, 0, 0, 0}, | |
38160 | { SWIG_PY_INT, (char *)"MM_POINTS", (long) wxMM_POINTS, 0, 0, 0}, | |
38161 | { SWIG_PY_INT, (char *)"MM_METRIC", (long) wxMM_METRIC, 0, 0, 0}, | |
38162 | { SWIG_PY_INT, (char *)"CENTRE", (long) wxCENTRE, 0, 0, 0}, | |
38163 | { SWIG_PY_INT, (char *)"CENTER", (long) wxCENTER, 0, 0, 0}, | |
38164 | { SWIG_PY_INT, (char *)"HORIZONTAL", (long) wxHORIZONTAL, 0, 0, 0}, | |
38165 | { SWIG_PY_INT, (char *)"VERTICAL", (long) wxVERTICAL, 0, 0, 0}, | |
38166 | { SWIG_PY_INT, (char *)"BOTH", (long) wxBOTH, 0, 0, 0}, | |
38167 | { SWIG_PY_INT, (char *)"LEFT", (long) wxLEFT, 0, 0, 0}, | |
38168 | { SWIG_PY_INT, (char *)"RIGHT", (long) wxRIGHT, 0, 0, 0}, | |
38169 | { SWIG_PY_INT, (char *)"UP", (long) wxUP, 0, 0, 0}, | |
38170 | { SWIG_PY_INT, (char *)"DOWN", (long) wxDOWN, 0, 0, 0}, | |
38171 | { SWIG_PY_INT, (char *)"TOP", (long) wxTOP, 0, 0, 0}, | |
38172 | { SWIG_PY_INT, (char *)"BOTTOM", (long) wxBOTTOM, 0, 0, 0}, | |
38173 | { SWIG_PY_INT, (char *)"NORTH", (long) wxNORTH, 0, 0, 0}, | |
38174 | { SWIG_PY_INT, (char *)"SOUTH", (long) wxSOUTH, 0, 0, 0}, | |
38175 | { SWIG_PY_INT, (char *)"WEST", (long) wxWEST, 0, 0, 0}, | |
38176 | { SWIG_PY_INT, (char *)"EAST", (long) wxEAST, 0, 0, 0}, | |
38177 | { SWIG_PY_INT, (char *)"ALL", (long) wxALL, 0, 0, 0}, | |
38178 | { SWIG_PY_INT, (char *)"ALIGN_NOT", (long) wxALIGN_NOT, 0, 0, 0}, | |
38179 | { SWIG_PY_INT, (char *)"ALIGN_CENTER_HORIZONTAL", (long) wxALIGN_CENTER_HORIZONTAL, 0, 0, 0}, | |
38180 | { SWIG_PY_INT, (char *)"ALIGN_CENTRE_HORIZONTAL", (long) wxALIGN_CENTRE_HORIZONTAL, 0, 0, 0}, | |
38181 | { SWIG_PY_INT, (char *)"ALIGN_LEFT", (long) wxALIGN_LEFT, 0, 0, 0}, | |
38182 | { SWIG_PY_INT, (char *)"ALIGN_TOP", (long) wxALIGN_TOP, 0, 0, 0}, | |
38183 | { SWIG_PY_INT, (char *)"ALIGN_RIGHT", (long) wxALIGN_RIGHT, 0, 0, 0}, | |
38184 | { SWIG_PY_INT, (char *)"ALIGN_BOTTOM", (long) wxALIGN_BOTTOM, 0, 0, 0}, | |
38185 | { SWIG_PY_INT, (char *)"ALIGN_CENTER_VERTICAL", (long) wxALIGN_CENTER_VERTICAL, 0, 0, 0}, | |
38186 | { SWIG_PY_INT, (char *)"ALIGN_CENTRE_VERTICAL", (long) wxALIGN_CENTRE_VERTICAL, 0, 0, 0}, | |
38187 | { SWIG_PY_INT, (char *)"ALIGN_CENTER", (long) wxALIGN_CENTER, 0, 0, 0}, | |
38188 | { SWIG_PY_INT, (char *)"ALIGN_CENTRE", (long) wxALIGN_CENTRE, 0, 0, 0}, | |
38189 | { SWIG_PY_INT, (char *)"ALIGN_MASK", (long) wxALIGN_MASK, 0, 0, 0}, | |
38190 | { SWIG_PY_INT, (char *)"STRETCH_NOT", (long) wxSTRETCH_NOT, 0, 0, 0}, | |
38191 | { SWIG_PY_INT, (char *)"SHRINK", (long) wxSHRINK, 0, 0, 0}, | |
38192 | { SWIG_PY_INT, (char *)"GROW", (long) wxGROW, 0, 0, 0}, | |
38193 | { SWIG_PY_INT, (char *)"EXPAND", (long) wxEXPAND, 0, 0, 0}, | |
38194 | { SWIG_PY_INT, (char *)"SHAPED", (long) wxSHAPED, 0, 0, 0}, | |
38195 | { SWIG_PY_INT, (char *)"ADJUST_MINSIZE", (long) wxADJUST_MINSIZE, 0, 0, 0}, | |
38196 | { SWIG_PY_INT, (char *)"TILE", (long) wxTILE, 0, 0, 0}, | |
38197 | { SWIG_PY_INT, (char *)"BORDER_DEFAULT", (long) wxBORDER_DEFAULT, 0, 0, 0}, | |
38198 | { SWIG_PY_INT, (char *)"BORDER_NONE", (long) wxBORDER_NONE, 0, 0, 0}, | |
38199 | { SWIG_PY_INT, (char *)"BORDER_STATIC", (long) wxBORDER_STATIC, 0, 0, 0}, | |
38200 | { SWIG_PY_INT, (char *)"BORDER_SIMPLE", (long) wxBORDER_SIMPLE, 0, 0, 0}, | |
38201 | { SWIG_PY_INT, (char *)"BORDER_RAISED", (long) wxBORDER_RAISED, 0, 0, 0}, | |
38202 | { SWIG_PY_INT, (char *)"BORDER_SUNKEN", (long) wxBORDER_SUNKEN, 0, 0, 0}, | |
38203 | { SWIG_PY_INT, (char *)"BORDER_DOUBLE", (long) wxBORDER_DOUBLE, 0, 0, 0}, | |
38204 | { SWIG_PY_INT, (char *)"BORDER_MASK", (long) wxBORDER_MASK, 0, 0, 0}, | |
38205 | { SWIG_PY_INT, (char *)"DEFAULT", (long) wxDEFAULT, 0, 0, 0}, | |
38206 | { SWIG_PY_INT, (char *)"DECORATIVE", (long) wxDECORATIVE, 0, 0, 0}, | |
38207 | { SWIG_PY_INT, (char *)"ROMAN", (long) wxROMAN, 0, 0, 0}, | |
38208 | { SWIG_PY_INT, (char *)"SCRIPT", (long) wxSCRIPT, 0, 0, 0}, | |
38209 | { SWIG_PY_INT, (char *)"SWISS", (long) wxSWISS, 0, 0, 0}, | |
38210 | { SWIG_PY_INT, (char *)"MODERN", (long) wxMODERN, 0, 0, 0}, | |
38211 | { SWIG_PY_INT, (char *)"TELETYPE", (long) wxTELETYPE, 0, 0, 0}, | |
38212 | { SWIG_PY_INT, (char *)"VARIABLE", (long) wxVARIABLE, 0, 0, 0}, | |
38213 | { SWIG_PY_INT, (char *)"FIXED", (long) wxFIXED, 0, 0, 0}, | |
38214 | { SWIG_PY_INT, (char *)"NORMAL", (long) wxNORMAL, 0, 0, 0}, | |
38215 | { SWIG_PY_INT, (char *)"LIGHT", (long) wxLIGHT, 0, 0, 0}, | |
38216 | { SWIG_PY_INT, (char *)"BOLD", (long) wxBOLD, 0, 0, 0}, | |
38217 | { SWIG_PY_INT, (char *)"ITALIC", (long) wxITALIC, 0, 0, 0}, | |
38218 | { SWIG_PY_INT, (char *)"SLANT", (long) wxSLANT, 0, 0, 0}, | |
38219 | { SWIG_PY_INT, (char *)"SOLID", (long) wxSOLID, 0, 0, 0}, | |
38220 | { SWIG_PY_INT, (char *)"DOT", (long) wxDOT, 0, 0, 0}, | |
38221 | { SWIG_PY_INT, (char *)"LONG_DASH", (long) wxLONG_DASH, 0, 0, 0}, | |
38222 | { SWIG_PY_INT, (char *)"SHORT_DASH", (long) wxSHORT_DASH, 0, 0, 0}, | |
38223 | { SWIG_PY_INT, (char *)"DOT_DASH", (long) wxDOT_DASH, 0, 0, 0}, | |
38224 | { SWIG_PY_INT, (char *)"USER_DASH", (long) wxUSER_DASH, 0, 0, 0}, | |
38225 | { SWIG_PY_INT, (char *)"TRANSPARENT", (long) wxTRANSPARENT, 0, 0, 0}, | |
38226 | { SWIG_PY_INT, (char *)"STIPPLE", (long) wxSTIPPLE, 0, 0, 0}, | |
38227 | { SWIG_PY_INT, (char *)"BDIAGONAL_HATCH", (long) wxBDIAGONAL_HATCH, 0, 0, 0}, | |
38228 | { SWIG_PY_INT, (char *)"CROSSDIAG_HATCH", (long) wxCROSSDIAG_HATCH, 0, 0, 0}, | |
38229 | { SWIG_PY_INT, (char *)"FDIAGONAL_HATCH", (long) wxFDIAGONAL_HATCH, 0, 0, 0}, | |
38230 | { SWIG_PY_INT, (char *)"CROSS_HATCH", (long) wxCROSS_HATCH, 0, 0, 0}, | |
38231 | { SWIG_PY_INT, (char *)"HORIZONTAL_HATCH", (long) wxHORIZONTAL_HATCH, 0, 0, 0}, | |
38232 | { SWIG_PY_INT, (char *)"VERTICAL_HATCH", (long) wxVERTICAL_HATCH, 0, 0, 0}, | |
38233 | { SWIG_PY_INT, (char *)"JOIN_BEVEL", (long) wxJOIN_BEVEL, 0, 0, 0}, | |
38234 | { SWIG_PY_INT, (char *)"JOIN_MITER", (long) wxJOIN_MITER, 0, 0, 0}, | |
38235 | { SWIG_PY_INT, (char *)"JOIN_ROUND", (long) wxJOIN_ROUND, 0, 0, 0}, | |
38236 | { SWIG_PY_INT, (char *)"CAP_ROUND", (long) wxCAP_ROUND, 0, 0, 0}, | |
38237 | { SWIG_PY_INT, (char *)"CAP_PROJECTING", (long) wxCAP_PROJECTING, 0, 0, 0}, | |
38238 | { SWIG_PY_INT, (char *)"CAP_BUTT", (long) wxCAP_BUTT, 0, 0, 0}, | |
38239 | { SWIG_PY_INT, (char *)"CLEAR", (long) wxCLEAR, 0, 0, 0}, | |
38240 | { SWIG_PY_INT, (char *)"XOR", (long) wxXOR, 0, 0, 0}, | |
38241 | { SWIG_PY_INT, (char *)"INVERT", (long) wxINVERT, 0, 0, 0}, | |
38242 | { SWIG_PY_INT, (char *)"OR_REVERSE", (long) wxOR_REVERSE, 0, 0, 0}, | |
38243 | { SWIG_PY_INT, (char *)"AND_REVERSE", (long) wxAND_REVERSE, 0, 0, 0}, | |
38244 | { SWIG_PY_INT, (char *)"COPY", (long) wxCOPY, 0, 0, 0}, | |
38245 | { SWIG_PY_INT, (char *)"AND", (long) wxAND, 0, 0, 0}, | |
38246 | { SWIG_PY_INT, (char *)"AND_INVERT", (long) wxAND_INVERT, 0, 0, 0}, | |
38247 | { SWIG_PY_INT, (char *)"NO_OP", (long) wxNO_OP, 0, 0, 0}, | |
38248 | { SWIG_PY_INT, (char *)"NOR", (long) wxNOR, 0, 0, 0}, | |
38249 | { SWIG_PY_INT, (char *)"EQUIV", (long) wxEQUIV, 0, 0, 0}, | |
38250 | { SWIG_PY_INT, (char *)"SRC_INVERT", (long) wxSRC_INVERT, 0, 0, 0}, | |
38251 | { SWIG_PY_INT, (char *)"OR_INVERT", (long) wxOR_INVERT, 0, 0, 0}, | |
38252 | { SWIG_PY_INT, (char *)"NAND", (long) wxNAND, 0, 0, 0}, | |
38253 | { SWIG_PY_INT, (char *)"OR", (long) wxOR, 0, 0, 0}, | |
38254 | { SWIG_PY_INT, (char *)"SET", (long) wxSET, 0, 0, 0}, | |
38255 | { SWIG_PY_INT, (char *)"WXK_BACK", (long) WXK_BACK, 0, 0, 0}, | |
38256 | { SWIG_PY_INT, (char *)"WXK_TAB", (long) WXK_TAB, 0, 0, 0}, | |
38257 | { SWIG_PY_INT, (char *)"WXK_RETURN", (long) WXK_RETURN, 0, 0, 0}, | |
38258 | { SWIG_PY_INT, (char *)"WXK_ESCAPE", (long) WXK_ESCAPE, 0, 0, 0}, | |
38259 | { SWIG_PY_INT, (char *)"WXK_SPACE", (long) WXK_SPACE, 0, 0, 0}, | |
38260 | { SWIG_PY_INT, (char *)"WXK_DELETE", (long) WXK_DELETE, 0, 0, 0}, | |
38261 | { SWIG_PY_INT, (char *)"WXK_START", (long) WXK_START, 0, 0, 0}, | |
38262 | { SWIG_PY_INT, (char *)"WXK_LBUTTON", (long) WXK_LBUTTON, 0, 0, 0}, | |
38263 | { SWIG_PY_INT, (char *)"WXK_RBUTTON", (long) WXK_RBUTTON, 0, 0, 0}, | |
38264 | { SWIG_PY_INT, (char *)"WXK_CANCEL", (long) WXK_CANCEL, 0, 0, 0}, | |
38265 | { SWIG_PY_INT, (char *)"WXK_MBUTTON", (long) WXK_MBUTTON, 0, 0, 0}, | |
38266 | { SWIG_PY_INT, (char *)"WXK_CLEAR", (long) WXK_CLEAR, 0, 0, 0}, | |
38267 | { SWIG_PY_INT, (char *)"WXK_SHIFT", (long) WXK_SHIFT, 0, 0, 0}, | |
38268 | { SWIG_PY_INT, (char *)"WXK_ALT", (long) WXK_ALT, 0, 0, 0}, | |
38269 | { SWIG_PY_INT, (char *)"WXK_CONTROL", (long) WXK_CONTROL, 0, 0, 0}, | |
38270 | { SWIG_PY_INT, (char *)"WXK_MENU", (long) WXK_MENU, 0, 0, 0}, | |
38271 | { SWIG_PY_INT, (char *)"WXK_PAUSE", (long) WXK_PAUSE, 0, 0, 0}, | |
38272 | { SWIG_PY_INT, (char *)"WXK_CAPITAL", (long) WXK_CAPITAL, 0, 0, 0}, | |
38273 | { SWIG_PY_INT, (char *)"WXK_PRIOR", (long) WXK_PRIOR, 0, 0, 0}, | |
38274 | { SWIG_PY_INT, (char *)"WXK_NEXT", (long) WXK_NEXT, 0, 0, 0}, | |
38275 | { SWIG_PY_INT, (char *)"WXK_END", (long) WXK_END, 0, 0, 0}, | |
38276 | { SWIG_PY_INT, (char *)"WXK_HOME", (long) WXK_HOME, 0, 0, 0}, | |
38277 | { SWIG_PY_INT, (char *)"WXK_LEFT", (long) WXK_LEFT, 0, 0, 0}, | |
38278 | { SWIG_PY_INT, (char *)"WXK_UP", (long) WXK_UP, 0, 0, 0}, | |
38279 | { SWIG_PY_INT, (char *)"WXK_RIGHT", (long) WXK_RIGHT, 0, 0, 0}, | |
38280 | { SWIG_PY_INT, (char *)"WXK_DOWN", (long) WXK_DOWN, 0, 0, 0}, | |
38281 | { SWIG_PY_INT, (char *)"WXK_SELECT", (long) WXK_SELECT, 0, 0, 0}, | |
38282 | { SWIG_PY_INT, (char *)"WXK_PRINT", (long) WXK_PRINT, 0, 0, 0}, | |
38283 | { SWIG_PY_INT, (char *)"WXK_EXECUTE", (long) WXK_EXECUTE, 0, 0, 0}, | |
38284 | { SWIG_PY_INT, (char *)"WXK_SNAPSHOT", (long) WXK_SNAPSHOT, 0, 0, 0}, | |
38285 | { SWIG_PY_INT, (char *)"WXK_INSERT", (long) WXK_INSERT, 0, 0, 0}, | |
38286 | { SWIG_PY_INT, (char *)"WXK_HELP", (long) WXK_HELP, 0, 0, 0}, | |
38287 | { SWIG_PY_INT, (char *)"WXK_NUMPAD0", (long) WXK_NUMPAD0, 0, 0, 0}, | |
38288 | { SWIG_PY_INT, (char *)"WXK_NUMPAD1", (long) WXK_NUMPAD1, 0, 0, 0}, | |
38289 | { SWIG_PY_INT, (char *)"WXK_NUMPAD2", (long) WXK_NUMPAD2, 0, 0, 0}, | |
38290 | { SWIG_PY_INT, (char *)"WXK_NUMPAD3", (long) WXK_NUMPAD3, 0, 0, 0}, | |
38291 | { SWIG_PY_INT, (char *)"WXK_NUMPAD4", (long) WXK_NUMPAD4, 0, 0, 0}, | |
38292 | { SWIG_PY_INT, (char *)"WXK_NUMPAD5", (long) WXK_NUMPAD5, 0, 0, 0}, | |
38293 | { SWIG_PY_INT, (char *)"WXK_NUMPAD6", (long) WXK_NUMPAD6, 0, 0, 0}, | |
38294 | { SWIG_PY_INT, (char *)"WXK_NUMPAD7", (long) WXK_NUMPAD7, 0, 0, 0}, | |
38295 | { SWIG_PY_INT, (char *)"WXK_NUMPAD8", (long) WXK_NUMPAD8, 0, 0, 0}, | |
38296 | { SWIG_PY_INT, (char *)"WXK_NUMPAD9", (long) WXK_NUMPAD9, 0, 0, 0}, | |
38297 | { SWIG_PY_INT, (char *)"WXK_MULTIPLY", (long) WXK_MULTIPLY, 0, 0, 0}, | |
38298 | { SWIG_PY_INT, (char *)"WXK_ADD", (long) WXK_ADD, 0, 0, 0}, | |
38299 | { SWIG_PY_INT, (char *)"WXK_SEPARATOR", (long) WXK_SEPARATOR, 0, 0, 0}, | |
38300 | { SWIG_PY_INT, (char *)"WXK_SUBTRACT", (long) WXK_SUBTRACT, 0, 0, 0}, | |
38301 | { SWIG_PY_INT, (char *)"WXK_DECIMAL", (long) WXK_DECIMAL, 0, 0, 0}, | |
38302 | { SWIG_PY_INT, (char *)"WXK_DIVIDE", (long) WXK_DIVIDE, 0, 0, 0}, | |
38303 | { SWIG_PY_INT, (char *)"WXK_F1", (long) WXK_F1, 0, 0, 0}, | |
38304 | { SWIG_PY_INT, (char *)"WXK_F2", (long) WXK_F2, 0, 0, 0}, | |
38305 | { SWIG_PY_INT, (char *)"WXK_F3", (long) WXK_F3, 0, 0, 0}, | |
38306 | { SWIG_PY_INT, (char *)"WXK_F4", (long) WXK_F4, 0, 0, 0}, | |
38307 | { SWIG_PY_INT, (char *)"WXK_F5", (long) WXK_F5, 0, 0, 0}, | |
38308 | { SWIG_PY_INT, (char *)"WXK_F6", (long) WXK_F6, 0, 0, 0}, | |
38309 | { SWIG_PY_INT, (char *)"WXK_F7", (long) WXK_F7, 0, 0, 0}, | |
38310 | { SWIG_PY_INT, (char *)"WXK_F8", (long) WXK_F8, 0, 0, 0}, | |
38311 | { SWIG_PY_INT, (char *)"WXK_F9", (long) WXK_F9, 0, 0, 0}, | |
38312 | { SWIG_PY_INT, (char *)"WXK_F10", (long) WXK_F10, 0, 0, 0}, | |
38313 | { SWIG_PY_INT, (char *)"WXK_F11", (long) WXK_F11, 0, 0, 0}, | |
38314 | { SWIG_PY_INT, (char *)"WXK_F12", (long) WXK_F12, 0, 0, 0}, | |
38315 | { SWIG_PY_INT, (char *)"WXK_F13", (long) WXK_F13, 0, 0, 0}, | |
38316 | { SWIG_PY_INT, (char *)"WXK_F14", (long) WXK_F14, 0, 0, 0}, | |
38317 | { SWIG_PY_INT, (char *)"WXK_F15", (long) WXK_F15, 0, 0, 0}, | |
38318 | { SWIG_PY_INT, (char *)"WXK_F16", (long) WXK_F16, 0, 0, 0}, | |
38319 | { SWIG_PY_INT, (char *)"WXK_F17", (long) WXK_F17, 0, 0, 0}, | |
38320 | { SWIG_PY_INT, (char *)"WXK_F18", (long) WXK_F18, 0, 0, 0}, | |
38321 | { SWIG_PY_INT, (char *)"WXK_F19", (long) WXK_F19, 0, 0, 0}, | |
38322 | { SWIG_PY_INT, (char *)"WXK_F20", (long) WXK_F20, 0, 0, 0}, | |
38323 | { SWIG_PY_INT, (char *)"WXK_F21", (long) WXK_F21, 0, 0, 0}, | |
38324 | { SWIG_PY_INT, (char *)"WXK_F22", (long) WXK_F22, 0, 0, 0}, | |
38325 | { SWIG_PY_INT, (char *)"WXK_F23", (long) WXK_F23, 0, 0, 0}, | |
38326 | { SWIG_PY_INT, (char *)"WXK_F24", (long) WXK_F24, 0, 0, 0}, | |
38327 | { SWIG_PY_INT, (char *)"WXK_NUMLOCK", (long) WXK_NUMLOCK, 0, 0, 0}, | |
38328 | { SWIG_PY_INT, (char *)"WXK_SCROLL", (long) WXK_SCROLL, 0, 0, 0}, | |
38329 | { SWIG_PY_INT, (char *)"WXK_PAGEUP", (long) WXK_PAGEUP, 0, 0, 0}, | |
38330 | { SWIG_PY_INT, (char *)"WXK_PAGEDOWN", (long) WXK_PAGEDOWN, 0, 0, 0}, | |
38331 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_SPACE", (long) WXK_NUMPAD_SPACE, 0, 0, 0}, | |
38332 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_TAB", (long) WXK_NUMPAD_TAB, 0, 0, 0}, | |
38333 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_ENTER", (long) WXK_NUMPAD_ENTER, 0, 0, 0}, | |
38334 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F1", (long) WXK_NUMPAD_F1, 0, 0, 0}, | |
38335 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F2", (long) WXK_NUMPAD_F2, 0, 0, 0}, | |
38336 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F3", (long) WXK_NUMPAD_F3, 0, 0, 0}, | |
38337 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F4", (long) WXK_NUMPAD_F4, 0, 0, 0}, | |
38338 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_HOME", (long) WXK_NUMPAD_HOME, 0, 0, 0}, | |
38339 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_LEFT", (long) WXK_NUMPAD_LEFT, 0, 0, 0}, | |
38340 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_UP", (long) WXK_NUMPAD_UP, 0, 0, 0}, | |
38341 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_RIGHT", (long) WXK_NUMPAD_RIGHT, 0, 0, 0}, | |
38342 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DOWN", (long) WXK_NUMPAD_DOWN, 0, 0, 0}, | |
38343 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_PRIOR", (long) WXK_NUMPAD_PRIOR, 0, 0, 0}, | |
38344 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_PAGEUP", (long) WXK_NUMPAD_PAGEUP, 0, 0, 0}, | |
38345 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_NEXT", (long) WXK_NUMPAD_NEXT, 0, 0, 0}, | |
38346 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_PAGEDOWN", (long) WXK_NUMPAD_PAGEDOWN, 0, 0, 0}, | |
38347 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_END", (long) WXK_NUMPAD_END, 0, 0, 0}, | |
38348 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_BEGIN", (long) WXK_NUMPAD_BEGIN, 0, 0, 0}, | |
38349 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_INSERT", (long) WXK_NUMPAD_INSERT, 0, 0, 0}, | |
38350 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DELETE", (long) WXK_NUMPAD_DELETE, 0, 0, 0}, | |
38351 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_EQUAL", (long) WXK_NUMPAD_EQUAL, 0, 0, 0}, | |
38352 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_MULTIPLY", (long) WXK_NUMPAD_MULTIPLY, 0, 0, 0}, | |
38353 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_ADD", (long) WXK_NUMPAD_ADD, 0, 0, 0}, | |
38354 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_SEPARATOR", (long) WXK_NUMPAD_SEPARATOR, 0, 0, 0}, | |
38355 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_SUBTRACT", (long) WXK_NUMPAD_SUBTRACT, 0, 0, 0}, | |
38356 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DECIMAL", (long) WXK_NUMPAD_DECIMAL, 0, 0, 0}, | |
38357 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DIVIDE", (long) WXK_NUMPAD_DIVIDE, 0, 0, 0}, | |
38358 | { SWIG_PY_INT, (char *)"WXK_WINDOWS_LEFT", (long) WXK_WINDOWS_LEFT, 0, 0, 0}, | |
38359 | { SWIG_PY_INT, (char *)"WXK_WINDOWS_RIGHT", (long) WXK_WINDOWS_RIGHT, 0, 0, 0}, | |
38360 | { SWIG_PY_INT, (char *)"WXK_WINDOWS_MENU", (long) WXK_WINDOWS_MENU, 0, 0, 0}, | |
38361 | { SWIG_PY_INT, (char *)"PAPER_NONE", (long) wxPAPER_NONE, 0, 0, 0}, | |
38362 | { SWIG_PY_INT, (char *)"PAPER_LETTER", (long) wxPAPER_LETTER, 0, 0, 0}, | |
38363 | { SWIG_PY_INT, (char *)"PAPER_LEGAL", (long) wxPAPER_LEGAL, 0, 0, 0}, | |
38364 | { SWIG_PY_INT, (char *)"PAPER_A4", (long) wxPAPER_A4, 0, 0, 0}, | |
38365 | { SWIG_PY_INT, (char *)"PAPER_CSHEET", (long) wxPAPER_CSHEET, 0, 0, 0}, | |
38366 | { SWIG_PY_INT, (char *)"PAPER_DSHEET", (long) wxPAPER_DSHEET, 0, 0, 0}, | |
38367 | { SWIG_PY_INT, (char *)"PAPER_ESHEET", (long) wxPAPER_ESHEET, 0, 0, 0}, | |
38368 | { SWIG_PY_INT, (char *)"PAPER_LETTERSMALL", (long) wxPAPER_LETTERSMALL, 0, 0, 0}, | |
38369 | { SWIG_PY_INT, (char *)"PAPER_TABLOID", (long) wxPAPER_TABLOID, 0, 0, 0}, | |
38370 | { SWIG_PY_INT, (char *)"PAPER_LEDGER", (long) wxPAPER_LEDGER, 0, 0, 0}, | |
38371 | { SWIG_PY_INT, (char *)"PAPER_STATEMENT", (long) wxPAPER_STATEMENT, 0, 0, 0}, | |
38372 | { SWIG_PY_INT, (char *)"PAPER_EXECUTIVE", (long) wxPAPER_EXECUTIVE, 0, 0, 0}, | |
38373 | { SWIG_PY_INT, (char *)"PAPER_A3", (long) wxPAPER_A3, 0, 0, 0}, | |
38374 | { SWIG_PY_INT, (char *)"PAPER_A4SMALL", (long) wxPAPER_A4SMALL, 0, 0, 0}, | |
38375 | { SWIG_PY_INT, (char *)"PAPER_A5", (long) wxPAPER_A5, 0, 0, 0}, | |
38376 | { SWIG_PY_INT, (char *)"PAPER_B4", (long) wxPAPER_B4, 0, 0, 0}, | |
38377 | { SWIG_PY_INT, (char *)"PAPER_B5", (long) wxPAPER_B5, 0, 0, 0}, | |
38378 | { SWIG_PY_INT, (char *)"PAPER_FOLIO", (long) wxPAPER_FOLIO, 0, 0, 0}, | |
38379 | { SWIG_PY_INT, (char *)"PAPER_QUARTO", (long) wxPAPER_QUARTO, 0, 0, 0}, | |
38380 | { SWIG_PY_INT, (char *)"PAPER_10X14", (long) wxPAPER_10X14, 0, 0, 0}, | |
38381 | { SWIG_PY_INT, (char *)"PAPER_11X17", (long) wxPAPER_11X17, 0, 0, 0}, | |
38382 | { SWIG_PY_INT, (char *)"PAPER_NOTE", (long) wxPAPER_NOTE, 0, 0, 0}, | |
38383 | { SWIG_PY_INT, (char *)"PAPER_ENV_9", (long) wxPAPER_ENV_9, 0, 0, 0}, | |
38384 | { SWIG_PY_INT, (char *)"PAPER_ENV_10", (long) wxPAPER_ENV_10, 0, 0, 0}, | |
38385 | { SWIG_PY_INT, (char *)"PAPER_ENV_11", (long) wxPAPER_ENV_11, 0, 0, 0}, | |
38386 | { SWIG_PY_INT, (char *)"PAPER_ENV_12", (long) wxPAPER_ENV_12, 0, 0, 0}, | |
38387 | { SWIG_PY_INT, (char *)"PAPER_ENV_14", (long) wxPAPER_ENV_14, 0, 0, 0}, | |
38388 | { SWIG_PY_INT, (char *)"PAPER_ENV_DL", (long) wxPAPER_ENV_DL, 0, 0, 0}, | |
38389 | { SWIG_PY_INT, (char *)"PAPER_ENV_C5", (long) wxPAPER_ENV_C5, 0, 0, 0}, | |
38390 | { SWIG_PY_INT, (char *)"PAPER_ENV_C3", (long) wxPAPER_ENV_C3, 0, 0, 0}, | |
38391 | { SWIG_PY_INT, (char *)"PAPER_ENV_C4", (long) wxPAPER_ENV_C4, 0, 0, 0}, | |
38392 | { SWIG_PY_INT, (char *)"PAPER_ENV_C6", (long) wxPAPER_ENV_C6, 0, 0, 0}, | |
38393 | { SWIG_PY_INT, (char *)"PAPER_ENV_C65", (long) wxPAPER_ENV_C65, 0, 0, 0}, | |
38394 | { SWIG_PY_INT, (char *)"PAPER_ENV_B4", (long) wxPAPER_ENV_B4, 0, 0, 0}, | |
38395 | { SWIG_PY_INT, (char *)"PAPER_ENV_B5", (long) wxPAPER_ENV_B5, 0, 0, 0}, | |
38396 | { SWIG_PY_INT, (char *)"PAPER_ENV_B6", (long) wxPAPER_ENV_B6, 0, 0, 0}, | |
38397 | { SWIG_PY_INT, (char *)"PAPER_ENV_ITALY", (long) wxPAPER_ENV_ITALY, 0, 0, 0}, | |
38398 | { SWIG_PY_INT, (char *)"PAPER_ENV_MONARCH", (long) wxPAPER_ENV_MONARCH, 0, 0, 0}, | |
38399 | { SWIG_PY_INT, (char *)"PAPER_ENV_PERSONAL", (long) wxPAPER_ENV_PERSONAL, 0, 0, 0}, | |
38400 | { SWIG_PY_INT, (char *)"PAPER_FANFOLD_US", (long) wxPAPER_FANFOLD_US, 0, 0, 0}, | |
38401 | { SWIG_PY_INT, (char *)"PAPER_FANFOLD_STD_GERMAN", (long) wxPAPER_FANFOLD_STD_GERMAN, 0, 0, 0}, | |
38402 | { SWIG_PY_INT, (char *)"PAPER_FANFOLD_LGL_GERMAN", (long) wxPAPER_FANFOLD_LGL_GERMAN, 0, 0, 0}, | |
38403 | { SWIG_PY_INT, (char *)"PAPER_ISO_B4", (long) wxPAPER_ISO_B4, 0, 0, 0}, | |
38404 | { SWIG_PY_INT, (char *)"PAPER_JAPANESE_POSTCARD", (long) wxPAPER_JAPANESE_POSTCARD, 0, 0, 0}, | |
38405 | { SWIG_PY_INT, (char *)"PAPER_9X11", (long) wxPAPER_9X11, 0, 0, 0}, | |
38406 | { SWIG_PY_INT, (char *)"PAPER_10X11", (long) wxPAPER_10X11, 0, 0, 0}, | |
38407 | { SWIG_PY_INT, (char *)"PAPER_15X11", (long) wxPAPER_15X11, 0, 0, 0}, | |
38408 | { SWIG_PY_INT, (char *)"PAPER_ENV_INVITE", (long) wxPAPER_ENV_INVITE, 0, 0, 0}, | |
38409 | { SWIG_PY_INT, (char *)"PAPER_LETTER_EXTRA", (long) wxPAPER_LETTER_EXTRA, 0, 0, 0}, | |
38410 | { SWIG_PY_INT, (char *)"PAPER_LEGAL_EXTRA", (long) wxPAPER_LEGAL_EXTRA, 0, 0, 0}, | |
38411 | { SWIG_PY_INT, (char *)"PAPER_TABLOID_EXTRA", (long) wxPAPER_TABLOID_EXTRA, 0, 0, 0}, | |
38412 | { SWIG_PY_INT, (char *)"PAPER_A4_EXTRA", (long) wxPAPER_A4_EXTRA, 0, 0, 0}, | |
38413 | { SWIG_PY_INT, (char *)"PAPER_LETTER_TRANSVERSE", (long) wxPAPER_LETTER_TRANSVERSE, 0, 0, 0}, | |
38414 | { SWIG_PY_INT, (char *)"PAPER_A4_TRANSVERSE", (long) wxPAPER_A4_TRANSVERSE, 0, 0, 0}, | |
38415 | { SWIG_PY_INT, (char *)"PAPER_LETTER_EXTRA_TRANSVERSE", (long) wxPAPER_LETTER_EXTRA_TRANSVERSE, 0, 0, 0}, | |
38416 | { SWIG_PY_INT, (char *)"PAPER_A_PLUS", (long) wxPAPER_A_PLUS, 0, 0, 0}, | |
38417 | { SWIG_PY_INT, (char *)"PAPER_B_PLUS", (long) wxPAPER_B_PLUS, 0, 0, 0}, | |
38418 | { SWIG_PY_INT, (char *)"PAPER_LETTER_PLUS", (long) wxPAPER_LETTER_PLUS, 0, 0, 0}, | |
38419 | { SWIG_PY_INT, (char *)"PAPER_A4_PLUS", (long) wxPAPER_A4_PLUS, 0, 0, 0}, | |
38420 | { SWIG_PY_INT, (char *)"PAPER_A5_TRANSVERSE", (long) wxPAPER_A5_TRANSVERSE, 0, 0, 0}, | |
38421 | { SWIG_PY_INT, (char *)"PAPER_B5_TRANSVERSE", (long) wxPAPER_B5_TRANSVERSE, 0, 0, 0}, | |
38422 | { SWIG_PY_INT, (char *)"PAPER_A3_EXTRA", (long) wxPAPER_A3_EXTRA, 0, 0, 0}, | |
38423 | { SWIG_PY_INT, (char *)"PAPER_A5_EXTRA", (long) wxPAPER_A5_EXTRA, 0, 0, 0}, | |
38424 | { SWIG_PY_INT, (char *)"PAPER_B5_EXTRA", (long) wxPAPER_B5_EXTRA, 0, 0, 0}, | |
38425 | { SWIG_PY_INT, (char *)"PAPER_A2", (long) wxPAPER_A2, 0, 0, 0}, | |
38426 | { SWIG_PY_INT, (char *)"PAPER_A3_TRANSVERSE", (long) wxPAPER_A3_TRANSVERSE, 0, 0, 0}, | |
38427 | { SWIG_PY_INT, (char *)"PAPER_A3_EXTRA_TRANSVERSE", (long) wxPAPER_A3_EXTRA_TRANSVERSE, 0, 0, 0}, | |
38428 | { SWIG_PY_INT, (char *)"DUPLEX_SIMPLEX", (long) wxDUPLEX_SIMPLEX, 0, 0, 0}, | |
38429 | { SWIG_PY_INT, (char *)"DUPLEX_HORIZONTAL", (long) wxDUPLEX_HORIZONTAL, 0, 0, 0}, | |
38430 | { SWIG_PY_INT, (char *)"DUPLEX_VERTICAL", (long) wxDUPLEX_VERTICAL, 0, 0, 0}, | |
38431 | { SWIG_PY_INT, (char *)"ITEM_SEPARATOR", (long) wxITEM_SEPARATOR, 0, 0, 0}, | |
38432 | { SWIG_PY_INT, (char *)"ITEM_NORMAL", (long) wxITEM_NORMAL, 0, 0, 0}, | |
38433 | { SWIG_PY_INT, (char *)"ITEM_CHECK", (long) wxITEM_CHECK, 0, 0, 0}, | |
38434 | { SWIG_PY_INT, (char *)"ITEM_RADIO", (long) wxITEM_RADIO, 0, 0, 0}, | |
38435 | { SWIG_PY_INT, (char *)"ITEM_MAX", (long) wxITEM_MAX, 0, 0, 0}, | |
38436 | { SWIG_PY_INT, (char *)"HT_NOWHERE", (long) wxHT_NOWHERE, 0, 0, 0}, | |
38437 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_FIRST", (long) wxHT_SCROLLBAR_FIRST, 0, 0, 0}, | |
38438 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_LINE_1", (long) wxHT_SCROLLBAR_ARROW_LINE_1, 0, 0, 0}, | |
38439 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_LINE_2", (long) wxHT_SCROLLBAR_ARROW_LINE_2, 0, 0, 0}, | |
38440 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_PAGE_1", (long) wxHT_SCROLLBAR_ARROW_PAGE_1, 0, 0, 0}, | |
38441 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_PAGE_2", (long) wxHT_SCROLLBAR_ARROW_PAGE_2, 0, 0, 0}, | |
38442 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_THUMB", (long) wxHT_SCROLLBAR_THUMB, 0, 0, 0}, | |
38443 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_BAR_1", (long) wxHT_SCROLLBAR_BAR_1, 0, 0, 0}, | |
38444 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_BAR_2", (long) wxHT_SCROLLBAR_BAR_2, 0, 0, 0}, | |
38445 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_LAST", (long) wxHT_SCROLLBAR_LAST, 0, 0, 0}, | |
38446 | { SWIG_PY_INT, (char *)"HT_WINDOW_OUTSIDE", (long) wxHT_WINDOW_OUTSIDE, 0, 0, 0}, | |
38447 | { SWIG_PY_INT, (char *)"HT_WINDOW_INSIDE", (long) wxHT_WINDOW_INSIDE, 0, 0, 0}, | |
38448 | { SWIG_PY_INT, (char *)"HT_WINDOW_VERT_SCROLLBAR", (long) wxHT_WINDOW_VERT_SCROLLBAR, 0, 0, 0}, | |
38449 | { SWIG_PY_INT, (char *)"HT_WINDOW_HORZ_SCROLLBAR", (long) wxHT_WINDOW_HORZ_SCROLLBAR, 0, 0, 0}, | |
38450 | { SWIG_PY_INT, (char *)"HT_WINDOW_CORNER", (long) wxHT_WINDOW_CORNER, 0, 0, 0}, | |
38451 | { SWIG_PY_INT, (char *)"HT_MAX", (long) wxHT_MAX, 0, 0, 0}, | |
38452 | { SWIG_PY_INT, (char *)"MOD_NONE", (long) wxMOD_NONE, 0, 0, 0}, | |
38453 | { SWIG_PY_INT, (char *)"MOD_ALT", (long) wxMOD_ALT, 0, 0, 0}, | |
38454 | { SWIG_PY_INT, (char *)"MOD_CONTROL", (long) wxMOD_CONTROL, 0, 0, 0}, | |
38455 | { SWIG_PY_INT, (char *)"MOD_SHIFT", (long) wxMOD_SHIFT, 0, 0, 0}, | |
38456 | { SWIG_PY_INT, (char *)"MOD_WIN", (long) wxMOD_WIN, 0, 0, 0}, | |
38457 | { SWIG_PY_INT, (char *)"UPDATE_UI_NONE", (long) wxUPDATE_UI_NONE, 0, 0, 0}, | |
38458 | { SWIG_PY_INT, (char *)"UPDATE_UI_RECURSE", (long) wxUPDATE_UI_RECURSE, 0, 0, 0}, | |
38459 | { SWIG_PY_INT, (char *)"UPDATE_UI_FROMIDLE", (long) wxUPDATE_UI_FROMIDLE, 0, 0, 0}, | |
38460 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_INVALID", (long) wxBITMAP_TYPE_INVALID, 0, 0, 0}, | |
38461 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_BMP", (long) wxBITMAP_TYPE_BMP, 0, 0, 0}, | |
d14a1e28 | 38462 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ICO", (long) wxBITMAP_TYPE_ICO, 0, 0, 0}, |
d14a1e28 | 38463 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_CUR", (long) wxBITMAP_TYPE_CUR, 0, 0, 0}, |
d14a1e28 RD |
38464 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XBM", (long) wxBITMAP_TYPE_XBM, 0, 0, 0}, |
38465 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XBM_DATA", (long) wxBITMAP_TYPE_XBM_DATA, 0, 0, 0}, | |
38466 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XPM", (long) wxBITMAP_TYPE_XPM, 0, 0, 0}, | |
38467 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XPM_DATA", (long) wxBITMAP_TYPE_XPM_DATA, 0, 0, 0}, | |
38468 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_TIF", (long) wxBITMAP_TYPE_TIF, 0, 0, 0}, | |
d14a1e28 | 38469 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_GIF", (long) wxBITMAP_TYPE_GIF, 0, 0, 0}, |
d14a1e28 | 38470 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PNG", (long) wxBITMAP_TYPE_PNG, 0, 0, 0}, |
d14a1e28 | 38471 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_JPEG", (long) wxBITMAP_TYPE_JPEG, 0, 0, 0}, |
d14a1e28 | 38472 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PNM", (long) wxBITMAP_TYPE_PNM, 0, 0, 0}, |
d14a1e28 | 38473 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PCX", (long) wxBITMAP_TYPE_PCX, 0, 0, 0}, |
d14a1e28 | 38474 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PICT", (long) wxBITMAP_TYPE_PICT, 0, 0, 0}, |
d14a1e28 | 38475 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ICON", (long) wxBITMAP_TYPE_ICON, 0, 0, 0}, |
d14a1e28 RD |
38476 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ANI", (long) wxBITMAP_TYPE_ANI, 0, 0, 0}, |
38477 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_IFF", (long) wxBITMAP_TYPE_IFF, 0, 0, 0}, | |
38478 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_MACCURSOR", (long) wxBITMAP_TYPE_MACCURSOR, 0, 0, 0}, | |
d14a1e28 RD |
38479 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ANY", (long) wxBITMAP_TYPE_ANY, 0, 0, 0}, |
38480 | { SWIG_PY_INT, (char *)"CURSOR_NONE", (long) wxCURSOR_NONE, 0, 0, 0}, | |
38481 | { SWIG_PY_INT, (char *)"CURSOR_ARROW", (long) wxCURSOR_ARROW, 0, 0, 0}, | |
38482 | { SWIG_PY_INT, (char *)"CURSOR_RIGHT_ARROW", (long) wxCURSOR_RIGHT_ARROW, 0, 0, 0}, | |
38483 | { SWIG_PY_INT, (char *)"CURSOR_BULLSEYE", (long) wxCURSOR_BULLSEYE, 0, 0, 0}, | |
38484 | { SWIG_PY_INT, (char *)"CURSOR_CHAR", (long) wxCURSOR_CHAR, 0, 0, 0}, | |
38485 | { SWIG_PY_INT, (char *)"CURSOR_CROSS", (long) wxCURSOR_CROSS, 0, 0, 0}, | |
38486 | { SWIG_PY_INT, (char *)"CURSOR_HAND", (long) wxCURSOR_HAND, 0, 0, 0}, | |
38487 | { SWIG_PY_INT, (char *)"CURSOR_IBEAM", (long) wxCURSOR_IBEAM, 0, 0, 0}, | |
38488 | { SWIG_PY_INT, (char *)"CURSOR_LEFT_BUTTON", (long) wxCURSOR_LEFT_BUTTON, 0, 0, 0}, | |
38489 | { SWIG_PY_INT, (char *)"CURSOR_MAGNIFIER", (long) wxCURSOR_MAGNIFIER, 0, 0, 0}, | |
38490 | { SWIG_PY_INT, (char *)"CURSOR_MIDDLE_BUTTON", (long) wxCURSOR_MIDDLE_BUTTON, 0, 0, 0}, | |
38491 | { SWIG_PY_INT, (char *)"CURSOR_NO_ENTRY", (long) wxCURSOR_NO_ENTRY, 0, 0, 0}, | |
38492 | { SWIG_PY_INT, (char *)"CURSOR_PAINT_BRUSH", (long) wxCURSOR_PAINT_BRUSH, 0, 0, 0}, | |
38493 | { SWIG_PY_INT, (char *)"CURSOR_PENCIL", (long) wxCURSOR_PENCIL, 0, 0, 0}, | |
38494 | { SWIG_PY_INT, (char *)"CURSOR_POINT_LEFT", (long) wxCURSOR_POINT_LEFT, 0, 0, 0}, | |
38495 | { SWIG_PY_INT, (char *)"CURSOR_POINT_RIGHT", (long) wxCURSOR_POINT_RIGHT, 0, 0, 0}, | |
38496 | { SWIG_PY_INT, (char *)"CURSOR_QUESTION_ARROW", (long) wxCURSOR_QUESTION_ARROW, 0, 0, 0}, | |
38497 | { SWIG_PY_INT, (char *)"CURSOR_RIGHT_BUTTON", (long) wxCURSOR_RIGHT_BUTTON, 0, 0, 0}, | |
38498 | { SWIG_PY_INT, (char *)"CURSOR_SIZENESW", (long) wxCURSOR_SIZENESW, 0, 0, 0}, | |
38499 | { SWIG_PY_INT, (char *)"CURSOR_SIZENS", (long) wxCURSOR_SIZENS, 0, 0, 0}, | |
38500 | { SWIG_PY_INT, (char *)"CURSOR_SIZENWSE", (long) wxCURSOR_SIZENWSE, 0, 0, 0}, | |
38501 | { SWIG_PY_INT, (char *)"CURSOR_SIZEWE", (long) wxCURSOR_SIZEWE, 0, 0, 0}, | |
38502 | { SWIG_PY_INT, (char *)"CURSOR_SIZING", (long) wxCURSOR_SIZING, 0, 0, 0}, | |
38503 | { SWIG_PY_INT, (char *)"CURSOR_SPRAYCAN", (long) wxCURSOR_SPRAYCAN, 0, 0, 0}, | |
38504 | { SWIG_PY_INT, (char *)"CURSOR_WAIT", (long) wxCURSOR_WAIT, 0, 0, 0}, | |
38505 | { SWIG_PY_INT, (char *)"CURSOR_WATCH", (long) wxCURSOR_WATCH, 0, 0, 0}, | |
38506 | { SWIG_PY_INT, (char *)"CURSOR_BLANK", (long) wxCURSOR_BLANK, 0, 0, 0}, | |
38507 | { SWIG_PY_INT, (char *)"CURSOR_DEFAULT", (long) wxCURSOR_DEFAULT, 0, 0, 0}, | |
38508 | { SWIG_PY_INT, (char *)"CURSOR_COPY_ARROW", (long) wxCURSOR_COPY_ARROW, 0, 0, 0}, | |
38509 | { SWIG_PY_INT, (char *)"CURSOR_ARROWWAIT", (long) wxCURSOR_ARROWWAIT, 0, 0, 0}, | |
38510 | { SWIG_PY_INT, (char *)"CURSOR_MAX", (long) wxCURSOR_MAX, 0, 0, 0}, | |
38511 | { SWIG_PY_INT, (char *)"FromStart", (long) wxFromStart, 0, 0, 0}, | |
38512 | { SWIG_PY_INT, (char *)"FromCurrent", (long) wxFromCurrent, 0, 0, 0}, | |
38513 | { SWIG_PY_INT, (char *)"FromEnd", (long) wxFromEnd, 0, 0, 0}, | |
38514 | { SWIG_PY_INT, (char *)"IMAGE_RESOLUTION_INCHES", (long) wxIMAGE_RESOLUTION_INCHES, 0, 0, 0}, | |
38515 | { SWIG_PY_INT, (char *)"IMAGE_RESOLUTION_CM", (long) wxIMAGE_RESOLUTION_CM, 0, 0, 0}, | |
38516 | { SWIG_PY_INT, (char *)"BMP_24BPP", (long) wxBMP_24BPP, 0, 0, 0}, | |
38517 | { SWIG_PY_INT, (char *)"BMP_8BPP", (long) wxBMP_8BPP, 0, 0, 0}, | |
38518 | { SWIG_PY_INT, (char *)"BMP_8BPP_GREY", (long) wxBMP_8BPP_GREY, 0, 0, 0}, | |
38519 | { SWIG_PY_INT, (char *)"BMP_8BPP_GRAY", (long) wxBMP_8BPP_GRAY, 0, 0, 0}, | |
38520 | { SWIG_PY_INT, (char *)"BMP_8BPP_RED", (long) wxBMP_8BPP_RED, 0, 0, 0}, | |
38521 | { SWIG_PY_INT, (char *)"BMP_8BPP_PALETTE", (long) wxBMP_8BPP_PALETTE, 0, 0, 0}, | |
38522 | { SWIG_PY_INT, (char *)"BMP_4BPP", (long) wxBMP_4BPP, 0, 0, 0}, | |
38523 | { SWIG_PY_INT, (char *)"BMP_1BPP", (long) wxBMP_1BPP, 0, 0, 0}, | |
38524 | { SWIG_PY_INT, (char *)"BMP_1BPP_BW", (long) wxBMP_1BPP_BW, 0, 0, 0}, | |
38525 | { SWIG_PY_INT, (char *)"EVENT_PROPAGATE_NONE", (long) wxEVENT_PROPAGATE_NONE, 0, 0, 0}, | |
38526 | { SWIG_PY_INT, (char *)"EVENT_PROPAGATE_MAX", (long) wxEVENT_PROPAGATE_MAX, 0, 0, 0}, | |
38527 | { SWIG_PY_INT, (char *)"wxEVT_NULL", (long) wxEVT_NULL, 0, 0, 0}, | |
38528 | { SWIG_PY_INT, (char *)"wxEVT_FIRST", (long) wxEVT_FIRST, 0, 0, 0}, | |
38529 | { SWIG_PY_INT, (char *)"wxEVT_USER_FIRST", (long) wxEVT_USER_FIRST, 0, 0, 0}, | |
38530 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_BUTTON_CLICKED", (long) wxEVT_COMMAND_BUTTON_CLICKED, 0, 0, 0}, | |
38531 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_CHECKBOX_CLICKED", (long) wxEVT_COMMAND_CHECKBOX_CLICKED, 0, 0, 0}, | |
38532 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_CHOICE_SELECTED", (long) wxEVT_COMMAND_CHOICE_SELECTED, 0, 0, 0}, | |
38533 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOX_SELECTED", (long) wxEVT_COMMAND_LISTBOX_SELECTED, 0, 0, 0}, | |
38534 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", (long) wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, 0, 0, 0}, | |
38535 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", (long) wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, 0, 0, 0}, | |
38536 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_MENU_SELECTED", (long) wxEVT_COMMAND_MENU_SELECTED, 0, 0, 0}, | |
38537 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOOL_CLICKED", (long) wxEVT_COMMAND_TOOL_CLICKED, 0, 0, 0}, | |
38538 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SLIDER_UPDATED", (long) wxEVT_COMMAND_SLIDER_UPDATED, 0, 0, 0}, | |
38539 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RADIOBOX_SELECTED", (long) wxEVT_COMMAND_RADIOBOX_SELECTED, 0, 0, 0}, | |
38540 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RADIOBUTTON_SELECTED", (long) wxEVT_COMMAND_RADIOBUTTON_SELECTED, 0, 0, 0}, | |
38541 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SCROLLBAR_UPDATED", (long) wxEVT_COMMAND_SCROLLBAR_UPDATED, 0, 0, 0}, | |
38542 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_VLBOX_SELECTED", (long) wxEVT_COMMAND_VLBOX_SELECTED, 0, 0, 0}, | |
38543 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_COMBOBOX_SELECTED", (long) wxEVT_COMMAND_COMBOBOX_SELECTED, 0, 0, 0}, | |
38544 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOOL_RCLICKED", (long) wxEVT_COMMAND_TOOL_RCLICKED, 0, 0, 0}, | |
38545 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOOL_ENTER", (long) wxEVT_COMMAND_TOOL_ENTER, 0, 0, 0}, | |
38546 | { SWIG_PY_INT, (char *)"wxEVT_LEFT_DOWN", (long) wxEVT_LEFT_DOWN, 0, 0, 0}, | |
38547 | { SWIG_PY_INT, (char *)"wxEVT_LEFT_UP", (long) wxEVT_LEFT_UP, 0, 0, 0}, | |
38548 | { SWIG_PY_INT, (char *)"wxEVT_MIDDLE_DOWN", (long) wxEVT_MIDDLE_DOWN, 0, 0, 0}, | |
38549 | { SWIG_PY_INT, (char *)"wxEVT_MIDDLE_UP", (long) wxEVT_MIDDLE_UP, 0, 0, 0}, | |
38550 | { SWIG_PY_INT, (char *)"wxEVT_RIGHT_DOWN", (long) wxEVT_RIGHT_DOWN, 0, 0, 0}, | |
38551 | { SWIG_PY_INT, (char *)"wxEVT_RIGHT_UP", (long) wxEVT_RIGHT_UP, 0, 0, 0}, | |
38552 | { SWIG_PY_INT, (char *)"wxEVT_MOTION", (long) wxEVT_MOTION, 0, 0, 0}, | |
38553 | { SWIG_PY_INT, (char *)"wxEVT_ENTER_WINDOW", (long) wxEVT_ENTER_WINDOW, 0, 0, 0}, | |
38554 | { SWIG_PY_INT, (char *)"wxEVT_LEAVE_WINDOW", (long) wxEVT_LEAVE_WINDOW, 0, 0, 0}, | |
38555 | { SWIG_PY_INT, (char *)"wxEVT_LEFT_DCLICK", (long) wxEVT_LEFT_DCLICK, 0, 0, 0}, | |
38556 | { SWIG_PY_INT, (char *)"wxEVT_MIDDLE_DCLICK", (long) wxEVT_MIDDLE_DCLICK, 0, 0, 0}, | |
38557 | { SWIG_PY_INT, (char *)"wxEVT_RIGHT_DCLICK", (long) wxEVT_RIGHT_DCLICK, 0, 0, 0}, | |
38558 | { SWIG_PY_INT, (char *)"wxEVT_SET_FOCUS", (long) wxEVT_SET_FOCUS, 0, 0, 0}, | |
38559 | { SWIG_PY_INT, (char *)"wxEVT_KILL_FOCUS", (long) wxEVT_KILL_FOCUS, 0, 0, 0}, | |
38560 | { SWIG_PY_INT, (char *)"wxEVT_CHILD_FOCUS", (long) wxEVT_CHILD_FOCUS, 0, 0, 0}, | |
38561 | { SWIG_PY_INT, (char *)"wxEVT_MOUSEWHEEL", (long) wxEVT_MOUSEWHEEL, 0, 0, 0}, | |
38562 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEFT_DOWN", (long) wxEVT_NC_LEFT_DOWN, 0, 0, 0}, | |
38563 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEFT_UP", (long) wxEVT_NC_LEFT_UP, 0, 0, 0}, | |
38564 | { SWIG_PY_INT, (char *)"wxEVT_NC_MIDDLE_DOWN", (long) wxEVT_NC_MIDDLE_DOWN, 0, 0, 0}, | |
38565 | { SWIG_PY_INT, (char *)"wxEVT_NC_MIDDLE_UP", (long) wxEVT_NC_MIDDLE_UP, 0, 0, 0}, | |
38566 | { SWIG_PY_INT, (char *)"wxEVT_NC_RIGHT_DOWN", (long) wxEVT_NC_RIGHT_DOWN, 0, 0, 0}, | |
38567 | { SWIG_PY_INT, (char *)"wxEVT_NC_RIGHT_UP", (long) wxEVT_NC_RIGHT_UP, 0, 0, 0}, | |
38568 | { SWIG_PY_INT, (char *)"wxEVT_NC_MOTION", (long) wxEVT_NC_MOTION, 0, 0, 0}, | |
38569 | { SWIG_PY_INT, (char *)"wxEVT_NC_ENTER_WINDOW", (long) wxEVT_NC_ENTER_WINDOW, 0, 0, 0}, | |
38570 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEAVE_WINDOW", (long) wxEVT_NC_LEAVE_WINDOW, 0, 0, 0}, | |
38571 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEFT_DCLICK", (long) wxEVT_NC_LEFT_DCLICK, 0, 0, 0}, | |
38572 | { SWIG_PY_INT, (char *)"wxEVT_NC_MIDDLE_DCLICK", (long) wxEVT_NC_MIDDLE_DCLICK, 0, 0, 0}, | |
38573 | { SWIG_PY_INT, (char *)"wxEVT_NC_RIGHT_DCLICK", (long) wxEVT_NC_RIGHT_DCLICK, 0, 0, 0}, | |
38574 | { SWIG_PY_INT, (char *)"wxEVT_CHAR", (long) wxEVT_CHAR, 0, 0, 0}, | |
38575 | { SWIG_PY_INT, (char *)"wxEVT_CHAR_HOOK", (long) wxEVT_CHAR_HOOK, 0, 0, 0}, | |
38576 | { SWIG_PY_INT, (char *)"wxEVT_NAVIGATION_KEY", (long) wxEVT_NAVIGATION_KEY, 0, 0, 0}, | |
38577 | { SWIG_PY_INT, (char *)"wxEVT_KEY_DOWN", (long) wxEVT_KEY_DOWN, 0, 0, 0}, | |
38578 | { SWIG_PY_INT, (char *)"wxEVT_KEY_UP", (long) wxEVT_KEY_UP, 0, 0, 0}, | |
38579 | { SWIG_PY_INT, (char *)"wxEVT_HOTKEY", (long) wxEVT_HOTKEY, 0, 0, 0}, | |
38580 | { SWIG_PY_INT, (char *)"wxEVT_SET_CURSOR", (long) wxEVT_SET_CURSOR, 0, 0, 0}, | |
38581 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_TOP", (long) wxEVT_SCROLL_TOP, 0, 0, 0}, | |
38582 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_BOTTOM", (long) wxEVT_SCROLL_BOTTOM, 0, 0, 0}, | |
38583 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_LINEUP", (long) wxEVT_SCROLL_LINEUP, 0, 0, 0}, | |
38584 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_LINEDOWN", (long) wxEVT_SCROLL_LINEDOWN, 0, 0, 0}, | |
38585 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_PAGEUP", (long) wxEVT_SCROLL_PAGEUP, 0, 0, 0}, | |
38586 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_PAGEDOWN", (long) wxEVT_SCROLL_PAGEDOWN, 0, 0, 0}, | |
38587 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_THUMBTRACK", (long) wxEVT_SCROLL_THUMBTRACK, 0, 0, 0}, | |
38588 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_THUMBRELEASE", (long) wxEVT_SCROLL_THUMBRELEASE, 0, 0, 0}, | |
38589 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_ENDSCROLL", (long) wxEVT_SCROLL_ENDSCROLL, 0, 0, 0}, | |
38590 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_TOP", (long) wxEVT_SCROLLWIN_TOP, 0, 0, 0}, | |
38591 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_BOTTOM", (long) wxEVT_SCROLLWIN_BOTTOM, 0, 0, 0}, | |
38592 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_LINEUP", (long) wxEVT_SCROLLWIN_LINEUP, 0, 0, 0}, | |
38593 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_LINEDOWN", (long) wxEVT_SCROLLWIN_LINEDOWN, 0, 0, 0}, | |
38594 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_PAGEUP", (long) wxEVT_SCROLLWIN_PAGEUP, 0, 0, 0}, | |
38595 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_PAGEDOWN", (long) wxEVT_SCROLLWIN_PAGEDOWN, 0, 0, 0}, | |
38596 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_THUMBTRACK", (long) wxEVT_SCROLLWIN_THUMBTRACK, 0, 0, 0}, | |
38597 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_THUMBRELEASE", (long) wxEVT_SCROLLWIN_THUMBRELEASE, 0, 0, 0}, | |
38598 | { SWIG_PY_INT, (char *)"wxEVT_SIZE", (long) wxEVT_SIZE, 0, 0, 0}, | |
38599 | { SWIG_PY_INT, (char *)"wxEVT_MOVE", (long) wxEVT_MOVE, 0, 0, 0}, | |
38600 | { SWIG_PY_INT, (char *)"wxEVT_CLOSE_WINDOW", (long) wxEVT_CLOSE_WINDOW, 0, 0, 0}, | |
38601 | { SWIG_PY_INT, (char *)"wxEVT_END_SESSION", (long) wxEVT_END_SESSION, 0, 0, 0}, | |
38602 | { SWIG_PY_INT, (char *)"wxEVT_QUERY_END_SESSION", (long) wxEVT_QUERY_END_SESSION, 0, 0, 0}, | |
38603 | { SWIG_PY_INT, (char *)"wxEVT_ACTIVATE_APP", (long) wxEVT_ACTIVATE_APP, 0, 0, 0}, | |
38604 | { SWIG_PY_INT, (char *)"wxEVT_POWER", (long) wxEVT_POWER, 0, 0, 0}, | |
38605 | { SWIG_PY_INT, (char *)"wxEVT_ACTIVATE", (long) wxEVT_ACTIVATE, 0, 0, 0}, | |
38606 | { SWIG_PY_INT, (char *)"wxEVT_CREATE", (long) wxEVT_CREATE, 0, 0, 0}, | |
38607 | { SWIG_PY_INT, (char *)"wxEVT_DESTROY", (long) wxEVT_DESTROY, 0, 0, 0}, | |
38608 | { SWIG_PY_INT, (char *)"wxEVT_SHOW", (long) wxEVT_SHOW, 0, 0, 0}, | |
38609 | { SWIG_PY_INT, (char *)"wxEVT_ICONIZE", (long) wxEVT_ICONIZE, 0, 0, 0}, | |
38610 | { SWIG_PY_INT, (char *)"wxEVT_MAXIMIZE", (long) wxEVT_MAXIMIZE, 0, 0, 0}, | |
38611 | { SWIG_PY_INT, (char *)"wxEVT_MOUSE_CAPTURE_CHANGED", (long) wxEVT_MOUSE_CAPTURE_CHANGED, 0, 0, 0}, | |
38612 | { SWIG_PY_INT, (char *)"wxEVT_PAINT", (long) wxEVT_PAINT, 0, 0, 0}, | |
38613 | { SWIG_PY_INT, (char *)"wxEVT_ERASE_BACKGROUND", (long) wxEVT_ERASE_BACKGROUND, 0, 0, 0}, | |
38614 | { SWIG_PY_INT, (char *)"wxEVT_NC_PAINT", (long) wxEVT_NC_PAINT, 0, 0, 0}, | |
38615 | { SWIG_PY_INT, (char *)"wxEVT_PAINT_ICON", (long) wxEVT_PAINT_ICON, 0, 0, 0}, | |
38616 | { SWIG_PY_INT, (char *)"wxEVT_MENU_OPEN", (long) wxEVT_MENU_OPEN, 0, 0, 0}, | |
38617 | { SWIG_PY_INT, (char *)"wxEVT_MENU_CLOSE", (long) wxEVT_MENU_CLOSE, 0, 0, 0}, | |
38618 | { SWIG_PY_INT, (char *)"wxEVT_MENU_HIGHLIGHT", (long) wxEVT_MENU_HIGHLIGHT, 0, 0, 0}, | |
38619 | { SWIG_PY_INT, (char *)"wxEVT_CONTEXT_MENU", (long) wxEVT_CONTEXT_MENU, 0, 0, 0}, | |
38620 | { SWIG_PY_INT, (char *)"wxEVT_SYS_COLOUR_CHANGED", (long) wxEVT_SYS_COLOUR_CHANGED, 0, 0, 0}, | |
38621 | { SWIG_PY_INT, (char *)"wxEVT_DISPLAY_CHANGED", (long) wxEVT_DISPLAY_CHANGED, 0, 0, 0}, | |
38622 | { SWIG_PY_INT, (char *)"wxEVT_SETTING_CHANGED", (long) wxEVT_SETTING_CHANGED, 0, 0, 0}, | |
38623 | { SWIG_PY_INT, (char *)"wxEVT_QUERY_NEW_PALETTE", (long) wxEVT_QUERY_NEW_PALETTE, 0, 0, 0}, | |
38624 | { SWIG_PY_INT, (char *)"wxEVT_PALETTE_CHANGED", (long) wxEVT_PALETTE_CHANGED, 0, 0, 0}, | |
38625 | { SWIG_PY_INT, (char *)"wxEVT_DROP_FILES", (long) wxEVT_DROP_FILES, 0, 0, 0}, | |
38626 | { SWIG_PY_INT, (char *)"wxEVT_DRAW_ITEM", (long) wxEVT_DRAW_ITEM, 0, 0, 0}, | |
38627 | { SWIG_PY_INT, (char *)"wxEVT_MEASURE_ITEM", (long) wxEVT_MEASURE_ITEM, 0, 0, 0}, | |
38628 | { SWIG_PY_INT, (char *)"wxEVT_COMPARE_ITEM", (long) wxEVT_COMPARE_ITEM, 0, 0, 0}, | |
38629 | { SWIG_PY_INT, (char *)"wxEVT_INIT_DIALOG", (long) wxEVT_INIT_DIALOG, 0, 0, 0}, | |
38630 | { SWIG_PY_INT, (char *)"wxEVT_IDLE", (long) wxEVT_IDLE, 0, 0, 0}, | |
38631 | { SWIG_PY_INT, (char *)"wxEVT_UPDATE_UI", (long) wxEVT_UPDATE_UI, 0, 0, 0}, | |
38632 | { SWIG_PY_INT, (char *)"wxEVT_SIZING", (long) wxEVT_SIZING, 0, 0, 0}, | |
38633 | { SWIG_PY_INT, (char *)"wxEVT_MOVING", (long) wxEVT_MOVING, 0, 0, 0}, | |
38634 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LEFT_CLICK", (long) wxEVT_COMMAND_LEFT_CLICK, 0, 0, 0}, | |
38635 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LEFT_DCLICK", (long) wxEVT_COMMAND_LEFT_DCLICK, 0, 0, 0}, | |
38636 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RIGHT_CLICK", (long) wxEVT_COMMAND_RIGHT_CLICK, 0, 0, 0}, | |
38637 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RIGHT_DCLICK", (long) wxEVT_COMMAND_RIGHT_DCLICK, 0, 0, 0}, | |
38638 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SET_FOCUS", (long) wxEVT_COMMAND_SET_FOCUS, 0, 0, 0}, | |
38639 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_KILL_FOCUS", (long) wxEVT_COMMAND_KILL_FOCUS, 0, 0, 0}, | |
38640 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_ENTER", (long) wxEVT_COMMAND_ENTER, 0, 0, 0}, | |
38641 | { SWIG_PY_INT, (char *)"MOUSE_BTN_ANY", (long) wxMOUSE_BTN_ANY, 0, 0, 0}, | |
38642 | { SWIG_PY_INT, (char *)"MOUSE_BTN_NONE", (long) wxMOUSE_BTN_NONE, 0, 0, 0}, | |
38643 | { SWIG_PY_INT, (char *)"MOUSE_BTN_LEFT", (long) wxMOUSE_BTN_LEFT, 0, 0, 0}, | |
38644 | { SWIG_PY_INT, (char *)"MOUSE_BTN_MIDDLE", (long) wxMOUSE_BTN_MIDDLE, 0, 0, 0}, | |
38645 | { SWIG_PY_INT, (char *)"MOUSE_BTN_RIGHT", (long) wxMOUSE_BTN_RIGHT, 0, 0, 0}, | |
38646 | { SWIG_PY_INT, (char *)"UPDATE_UI_PROCESS_ALL", (long) wxUPDATE_UI_PROCESS_ALL, 0, 0, 0}, | |
38647 | { SWIG_PY_INT, (char *)"UPDATE_UI_PROCESS_SPECIFIED", (long) wxUPDATE_UI_PROCESS_SPECIFIED, 0, 0, 0}, | |
38648 | { SWIG_PY_INT, (char *)"IDLE_PROCESS_ALL", (long) wxIDLE_PROCESS_ALL, 0, 0, 0}, | |
38649 | { SWIG_PY_INT, (char *)"IDLE_PROCESS_SPECIFIED", (long) wxIDLE_PROCESS_SPECIFIED, 0, 0, 0}, | |
38650 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_SUPPRESS", (long) wxPYAPP_ASSERT_SUPPRESS, 0, 0, 0}, | |
38651 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_EXCEPTION", (long) wxPYAPP_ASSERT_EXCEPTION, 0, 0, 0}, | |
38652 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_DIALOG", (long) wxPYAPP_ASSERT_DIALOG, 0, 0, 0}, | |
38653 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_LOG", (long) wxPYAPP_ASSERT_LOG, 0, 0, 0}, | |
38654 | { SWIG_PY_INT, (char *)"PRINT_WINDOWS", (long) wxPRINT_WINDOWS, 0, 0, 0}, | |
38655 | { SWIG_PY_INT, (char *)"PRINT_POSTSCRIPT", (long) wxPRINT_POSTSCRIPT, 0, 0, 0}, | |
38656 | { SWIG_PY_INT, (char *)"FLEX_GROWMODE_NONE", (long) wxFLEX_GROWMODE_NONE, 0, 0, 0}, | |
38657 | { SWIG_PY_INT, (char *)"FLEX_GROWMODE_SPECIFIED", (long) wxFLEX_GROWMODE_SPECIFIED, 0, 0, 0}, | |
38658 | { SWIG_PY_INT, (char *)"FLEX_GROWMODE_ALL", (long) wxFLEX_GROWMODE_ALL, 0, 0, 0}, | |
38659 | { SWIG_PY_INT, (char *)"Left", (long) wxLeft, 0, 0, 0}, | |
38660 | { SWIG_PY_INT, (char *)"Top", (long) wxTop, 0, 0, 0}, | |
38661 | { SWIG_PY_INT, (char *)"Right", (long) wxRight, 0, 0, 0}, | |
38662 | { SWIG_PY_INT, (char *)"Bottom", (long) wxBottom, 0, 0, 0}, | |
38663 | { SWIG_PY_INT, (char *)"Width", (long) wxWidth, 0, 0, 0}, | |
38664 | { SWIG_PY_INT, (char *)"Height", (long) wxHeight, 0, 0, 0}, | |
38665 | { SWIG_PY_INT, (char *)"Centre", (long) wxCentre, 0, 0, 0}, | |
38666 | { SWIG_PY_INT, (char *)"Center", (long) wxCenter, 0, 0, 0}, | |
38667 | { SWIG_PY_INT, (char *)"CentreX", (long) wxCentreX, 0, 0, 0}, | |
38668 | { SWIG_PY_INT, (char *)"CentreY", (long) wxCentreY, 0, 0, 0}, | |
38669 | { SWIG_PY_INT, (char *)"Unconstrained", (long) wxUnconstrained, 0, 0, 0}, | |
38670 | { SWIG_PY_INT, (char *)"AsIs", (long) wxAsIs, 0, 0, 0}, | |
38671 | { SWIG_PY_INT, (char *)"PercentOf", (long) wxPercentOf, 0, 0, 0}, | |
38672 | { SWIG_PY_INT, (char *)"Above", (long) wxAbove, 0, 0, 0}, | |
38673 | { SWIG_PY_INT, (char *)"Below", (long) wxBelow, 0, 0, 0}, | |
38674 | { SWIG_PY_INT, (char *)"LeftOf", (long) wxLeftOf, 0, 0, 0}, | |
38675 | { SWIG_PY_INT, (char *)"RightOf", (long) wxRightOf, 0, 0, 0}, | |
38676 | { SWIG_PY_INT, (char *)"SameAs", (long) wxSameAs, 0, 0, 0}, | |
38677 | { SWIG_PY_INT, (char *)"Absolute", (long) wxAbsolute, 0, 0, 0}, | |
38678 | {0}}; | |
38679 | ||
38680 | #ifdef __cplusplus | |
38681 | } | |
38682 | #endif | |
38683 | ||
38684 | #ifdef __cplusplus | |
38685 | extern "C" | |
38686 | #endif | |
38687 | SWIGEXPORT(void) SWIG_init(void) { | |
38688 | static PyObject *SWIG_globals = 0; | |
38689 | static int typeinit = 0; | |
38690 | PyObject *m, *d; | |
38691 | int i; | |
38692 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
38693 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
38694 | d = PyModule_GetDict(m); | |
38695 | ||
38696 | if (!typeinit) { | |
38697 | for (i = 0; swig_types_initial[i]; i++) { | |
38698 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
38699 | } | |
38700 | typeinit = 1; | |
38701 | } | |
38702 | SWIG_InstallConstants(d,swig_const_table); | |
38703 | ||
38704 | ||
38705 | #ifndef wxPyUSE_EXPORT | |
38706 | // Make our API structure a CObject so other modules can import it | |
38707 | // from this module. | |
38708 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
38709 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
38710 | Py_XDECREF(cobj); | |
38711 | #endif | |
38712 | ||
38713 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
d03fd34d | 38714 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
d14a1e28 RD |
38715 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
38716 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
38717 | ||
38718 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
38719 | ||
38720 | ||
38721 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
38722 | ||
38723 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
38724 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
38725 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
38726 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
38727 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
38728 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
38729 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); | |
38730 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
38731 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
38732 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
38733 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
38734 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
38735 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
38736 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
38737 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
38738 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
38739 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
38740 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
38741 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
38742 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
38743 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
38744 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
38745 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
38746 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
38747 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
38748 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
38749 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
38750 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
38751 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
38752 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
38753 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
38754 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
38755 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
38756 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
38757 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
38758 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
38759 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
38760 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
38761 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
38762 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
38763 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
38764 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
38765 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
38766 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
38767 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
38768 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
38769 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
38770 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
38771 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
38772 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
38773 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
38774 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
38775 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
38776 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
38777 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
38778 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
38779 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
38780 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
38781 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
38782 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
38783 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
38784 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
38785 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
38786 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
38787 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
38788 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
38789 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
38790 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
38791 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
38792 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
38793 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
38794 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
38795 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
38796 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
38797 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
38798 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
38799 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
38800 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
38801 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
38802 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
38803 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
38804 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
38805 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
38806 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
38807 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
38808 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
38809 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
38810 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
38811 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
38812 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
38813 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
38814 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
38815 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
38816 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
38817 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
38818 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
38819 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
38820 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
38821 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
38822 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
38823 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
38824 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
38825 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
38826 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
38827 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
38828 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
38829 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
38830 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
38831 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
38832 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
38833 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
38834 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
38835 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
38836 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
38837 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
38838 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
38839 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
38840 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
38841 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
38842 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
41f1cec7 | 38843 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
423f194a | 38844 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
d14a1e28 | 38845 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
d03fd34d | 38846 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
d14a1e28 RD |
38847 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
38848 | ||
38849 | // Initialize threading, some globals and such | |
38850 | __wxPyPreStart(d); | |
38851 | ||
38852 | ||
38853 | // Although these are defined in __version__ they need to be here too so | |
38854 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
38855 | // versions match. | |
38856 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
38857 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
38858 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
38859 | ||
38860 | } | |
38861 |